Commit 7c288be
Phase 3d: add actionable configuration parse errors
This change reports malformed JSON separately from typed policy errors and makes configuration failures actionable without leaking secrets or allowing untrusted text to corrupt diagnostics.
Details:
- include complete JSON paths and source locations for one-shot and state-aware failures
- preserve state-aware output ownership while rejecting trailing data and malformed experimental blocks
- escape control characters, redact secret-bearing values, and avoid retaining a full untyped request tree
- document the diagnostic contract and add focused parser coverage
Tests:
- cargo fmt --all -- --check
- cargo check -p wxc_common -p wxc --all-targets
- cargo clippy -p wxc_common -p wxc --all-targets -- -D warnings
- cargo test -p wxc_common -p wxc
- node scripts/versioning/check-schema-codegen.js
- node scripts/versioning/check-sdk-types-codegen.js
- node scripts/versioning/check-schema-versions.js
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Generated-with: gpt-5.6-sol
Copilot-Session: f66f1e4b-72f7-4508-abb2-3bb3d4c808b91 parent fa32478 commit 7c288be
12 files changed
Lines changed: 905 additions & 122 deletions
File tree
- .github
- docs
- state-aware-lifecycle
- src
- core/wxc_common
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
213 | | - | |
| 213 | + | |
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
675 | 675 | | |
676 | 676 | | |
677 | 677 | | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
678 | 685 | | |
679 | 686 | | |
680 | 687 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
441 | 449 | | |
442 | 450 | | |
443 | 451 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
0 commit comments