Repository navigation
fix(compliance): correct VERSION_UNSUPPORTED recovery enum value in error-compliance storyboard - #7376
Conversation
…rror-compliance storyboard Replace invalid `fatal` (not in the recovery enum) with the correct values from core/error.json and enumMetadata: - unsupported_major_version expected block: fatal → correctable - General error-shape narrative: correctable, transient, or fatal → transient, correctable, or terminal No storyboard validation asserts recovery, so conformance test outcomes are unchanged. Fixes misleading prose that could cause hand-implementers to emit schema-invalid error envelopes. Closes #7375 Co-Authored-By: Claude Sonnet 4.6 <[email protected]> Claude-Session: https://claude.ai/code/session_01HBpEm5DvuLPLfdTAPVDPCi
|
CI failure: Sales storyboard orchestrator (6/8) — infra flake, not this PR Failing check: The failure is a network error during This PR only changes two lines of prose in Re-running the failed job. Generated by Claude Code |
|
CI failure: The Ladon reviewer agent failed because the Claude Code native binary was not found at This is unrelated to the diff (two YAML prose corrections + a changeset file). Re-running the failed job. Generated by Claude Code |
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean, well-scoped fix with no blocking or medium findings.
This PR corrects two recovery: fatal occurrences in static/compliance/source/universal/error-compliance.yaml to match the core/error.json enum (transient/correctable/terminal), with VERSION_UNSUPPORTED.recovery=correctable per enumMetadata. Machine validations do not assert recovery, so no wire drift is introduced, and the accompanying changeset is present and correctly patch-scoped.
Verified: schema↔docs coherence holds (enum value corrected to match the source enum), changeset scope/type correct, no oneOf discriminator regression, no released-artifact mutation (only source YAML touched), and no governance-precedent conflict. gated_paths is false, high_risk is false, and the author is not on a no-auto-approve team.
Non-blocking follow-up noted by the reviewer (not a finding): the sibling error-compliance-signals.yaml (L217, L269) still carries the identical recovery: fatal prose off-diff, so no inline anchor exists — worth a future cleanup PR.
No rows 1–8 fired; falls through to row 9 → approve.
…3.1.x `recovery: fatal` is not a member of the recovery enum; enumMetadata confirms VERSION_UNSUPPORTED is correctable. Also fixes the general error-shape narrative in validate_error_shape from `correctable, transient, or fatal` to `transient, correctable, or terminal`. Backport of the fix from #7376 (merged to main 2026-09-08) to the 3.1.x source so the next 3.1 release ships correct prose. Refs #7375. Co-Authored-By: Claude Sonnet 4.6 <[email protected]> Claude-Session: https://claude.ai/code/session_01Vq72YPAReVbooFYbimvpn2
…3.1.x (#7572) `recovery: fatal` is not a member of the recovery enum; enumMetadata confirms VERSION_UNSUPPORTED is correctable. Also fixes the general error-shape narrative in validate_error_shape from `correctable, transient, or fatal` to `transient, correctable, or terminal`. Backport of the fix from #7376 (merged to main 2026-09-08) to the 3.1.x source so the next 3.1 release ships correct prose. Refs #7375. Claude-Session: https://claude.ai/code/session_01Vq72YPAReVbooFYbimvpn2 Co-authored-by: Claude Sonnet 4.6 <[email protected]>
Closes #7375
Replace invalid
fatal(not in therecoveryenum) with the correct enum values instatic/compliance/source/universal/error-compliance.yaml.Non-breaking justification: The storyboard
expected:blocks are informational prose — the automated compliance validations for theunsupported_major_versionandunsupported_release_versionsteps assert onlyerror_code,field_present, andfield_value, neverrecovery. No existing conformance test outcome changes. The fix corrects misleading guidance without adding or removing any machine-checked assertion.Changes:
unsupported_major_versionexpected block):recovery: fatal→recovery: correctable, matchingenumMetadata.VERSION_UNSUPPORTED.recoveryacross all 3.0 / 3.1 / 3.1.1 / 3.2.0-rc.* bundles.correctable, transient, or fatal (optional)→transient, correctable, or terminal (optional), matching the enum declaration order incore/error.json(["transient", "correctable", "terminal"]).Pre-PR review:
correctableis unambiguously correct;fatalis not in the recovery enum and the enumMetadata + semantics both confirmcorrectable; non-breaking patch.patchchangeset required (included).Session: https://claude.ai/code/session_01HBpEm5DvuLPLfdTAPVDPCi
🤖 Generated with Claude Code
https://claude.ai/code/session_01HBpEm5DvuLPLfdTAPVDPCi
Generated by Claude Code