Repository navigation
fix(session-flow): keep carry checks failing after a size-only predecessor failure - #17334
Conversation
…essor failure A predecessor that failed only on size downgraded its successor's carry checks to WARN, so a dropped rule passed validation silently. Each finding now carries a CheckKind. Writers stamp `checks: 2`; for a successor stamped 2 or higher only a content-kind predecessor FAIL (order, malformed) downgrades its carry checks, on both the validate path and `new`'s shape-2 UNVERIFIED tagging. An unstamped file validates as before. amend's introduced-FAIL diff exempts size kinds by kind. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…l-after-size-fail
…ument the stamp The downgrade compared a file's stamp with CHECKS, so bumping the stamp writers write would hand every checks: 2 file the old downgrade back. CONTENT_ONLY_DOWNGRADE_FROM now holds that generation on its own. CheckKind keeps only the members something emits; a test pins every size finding to a size kind, so an untagged size FAIL can neither downgrade a successor nor block an amend. structure.md states the stamped rule and lists checks: in both frontmatter blocks. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Lane run report
Failed GitHub API calls
|
… failure `new` again tags every carried shape-2 row UNVERIFIED whenever the predecessor fails validation, whatever it failed on, as on main. Only validate's carry-check downgrade follows the stamped content-only rule. The shape-2 test now pins the tag next to the failing drop, and structure.md states the two rules apart. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
claude-security-review reviewed Security review: PR #17334 (incremental, blocking only)I found no security issues in this push. This was an incremental review of the changes since
This lane had already reviewed an earlier head, so this review covers only CRITICAL and IMPORTANT findings. What changed:
What I checked:
Spend: none. critical-findings: 0 |
|
claude-review reviewed Code review (incremental, blocking only): no findings. This lane already reviewed an earlier head ( What changed. What I checked against the head source:
Closing issue: the PR says Loosened-check verdict: fail (default; the prompt gave no verdict line); patterns: 0. The citation requirement was not checked because the prompt gave no decision-record line. Spend: none beyond this review run. Verifier dropped 0 of 0 candidates. |
Refs: #16427
Summary
After a predecessor handoff failed validation only on size,
validatedowngraded every carry check on its successor to a WARN, so a successor that dropped a carried rule, decision or question still passed. Reproduced: a size-failed predecessor plus a deleted[R1]exited 0; after a passing predecessor the same drop exited 1.Scope: shapes 2 and 3; the per-slot size check is later work. This merges on its unit tests under the owner's exception for a fix that can only turn a silent content loss into a FAIL; a later eval arm measures it. The shape-2 skeleton's UNVERIFIED tagging is unchanged here (owner decision: any change to it is measured first).
Fix
checks: 2in the frontmatter.newstill tags carried rows UNVERIFIED after any predecessor FAIL, as before.amendkeeps the stamp, and its introduced-FAIL diff exempts size kinds.reference/structure.mdstates the stamped rule and listschecksin both frontmatter schemas.Acceptance criteria
[R1]from the successor makesvalidateexit 1.Verification
test_save_point.py: 317 passed.Left out: the full
.githubsuite locally (CI runs it).Related
N/A
Remaining
Deferred review findings
A missing
checksline in a successor of a stamped predecessor restores the old downgrade; the two skeleton builders duplicate the frontmatter head; thecheckskey literal appears at four sites. Each is left for the redesign's chain-reader step.🤖 Generated with Claude Code