Skip to content

fix(planning): keep a Brief's Decisions line current after commitments are ticked at Confirm - #11687

Merged
kyle-sexton merged 5 commits into
mainfrom
fix/11583-decisions-after-ticks
Oct 31, 2026
Merged

kyle-sexton merged 5 commits into
mainfrom
fix/11583-decisions-after-ticks

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #11583

Summary

Carries the change from #11613 (work-resolve-issue lane) on an owner-login branch, merged with current main and with the interview-defenses digest re-pinned, which the pr-unblock fix lane cannot do. When a restatement's recap was taken while unticked commitments held an accepted row open, export-brief now writes that Decisions line as Q<N> answered: with the row's whole current answer once the commitments are ticked. Each decision then appears once in the Brief, in its final status. SKILL.md Step 3 and surface.md "Confirmation gate" now agree: on the page, the restate may go out over a procedure-check exit 1 only when the open rows are all accepted questions held open by unticked commitments.

Fix

  • plugins/planning/surface/exporters.py: OPEN_RECAP, recap_head() and ticked_recap(). export_brief rewrites the confirmed restatement's pre-tick recap lines before carried_rows and marked_decisions read them.
  • plugins/planning/surface/test_exporters.py: TestBriefDecisionsOnce covers a ticked accepted row (whole and cut recap lines, each rewritten once as answered) and an alternative chosen after the recap (the line is kept, along with its own Constraints line).
  • plugins/planning/skills/interview/SKILL.md: the Step 3 halt rule names the page-surface exception for accepted rows held open only by unticked commitments.
  • plugins/planning/skills/interview/context/surface.md: Confirmation gate step 1 and Wrap-up step 2 match. The merge conflict with main is resolved keeping both sides: main's exit-6 note, the Goal bullets the export keeps and the why: line, plus this change's two additions.
  • plugins/planning/tests/interview-defenses.test.sh: re-pinned with plugins/planning/tests/repin.sh. Pin SKILL.md Step 3 section is unchanged (the confirmation-gate exemption lives here): ed7204776b800da55908c78a11d8fd2f088d4e0ae90a82ccd1267eaf287586a7 -> 615810e2204f03af8f43009577082011b1ae972fa78d96e64a348bbe3b3c80b6.
  • .changes/planning/fix-11583-decisions-after-ticks-5b2e81d4.md: patch changelog fragment.

Verification

  • Defense check: the pinned line "A non-zero exit HALTS the confirmation request" and the confirmation-gate paragraph are byte-identical. The added exception is the one the fix(planning): keep a Brief's Decisions line current after commitments are ticked at Confirm #11583 Observed section requires ("The restate must go out over exit 1"). It is limited to accepted rows held open by unticked commitments on the page surface. Any other defect still halts the confirmation request, and the Step 3 register gate still holds those rows until they are ticked.
  • bash plugins/planning/tests/repin.sh '<label>' '<reason>': printed the old -> new line above and PASS (exit 0), which runs interview-defenses.test.sh in full. Before the re-pin it was exit 1, PASS=173 FAIL=1, and the only failure was this pin.
  • On the pushed head, which includes a later merge of main: interview-defenses.test.sh PASS=174 FAIL=0 (exit 0), and python3 plugins/planning/surface/test_exporters.py ran 218 tests OK (exit 0).

Related

🤖 Generated with Claude Code

melodic-automation-lanes Bot and others added 5 commits October 31, 2026 15:42
Lane-Activity: work-resolve-issue/resolve-issue
…s are ticked at Confirm

Merge the work-resolve-issue head of #11613 (a2641d1) onto main. The
surface.md conflict keeps both sides: main's exit-6 note, Goal-bullet export
and why: line, plus this change's restate-over-exit-1 sentence and the
ticked-recap parenthetical.

Not re-pinned: the SKILL.md Step 3 section digest still fails, because the
added page-surface exception qualifies the pinned halt line "A non-zero exit
HALTS the confirmation request". That call is held for the owner.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…itment exception

SKILL.md Step 3 section is unchanged (the confirmation-gate exemption lives here):
ed7204776b800da55908c78a11d8fd2f088d4e0ae90a82ccd1267eaf287586a7 -> 615810e2204f03af8f43009577082011b1ae972fa78d96e64a348bbe3b3c80b6

Why the defense holds: #11583 Observed says an accepted row with
commitments stays open until the user ticks them inside the restatement
box, so "The restate must go out over exit 1". The added exception covers
only that case: accepted rows held open by unticked commitments, on the
page surface. Any other defect still halts the confirmation request, and
the Step 3 register gate still holds those rows until they are ticked. The
pinned line "A non-zero exit HALTS the confirmation request" and the
confirmation-gate paragraph are byte-identical.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-31T20:03:28.988813Z b2f97d8 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed b2f97d88d9e60c60725db88beb7877b6bbd29dee: 0 finding(s), 0 as inline comments.

No security issues found in this pull request.

I read the full diff and the PR context. No manifest, workflow, token, kill-switch or trusted-actor control is touched.

  • plugins/planning/surface/exporters.py (ticked_recap, recap_head, OPEN_RECAP): This is local string rewriting of the confirmed restatement's recap lines.
    • It runs no commands, makes no network calls, opens no paths and handles no secrets.
    • The regex is anchored and linear.
    • recap_head scans ( positions per line, which is quadratic at worst. The restate is capped at 20,000 characters and the tool runs locally, so this is not a denial-of-service concern.
    • A line is rewritten only when the ledger row is answered, carries commitments, and all are confirmed. A line whose answer changed is kept as written, so a stale recap cannot hide a changed decision.
  • SKILL.md Step 3 and surface.md: The halt rule is narrowed on the page surface only. An exit 1 no longer stops the restate when the only open rows are accepted questions waiting on commitment ticks.
    • I checked this against the instruction-surface lens. No protected class is removed; this is a workflow-gate exception.
    • The register gate still holds those rows until they are ticked, and hedged rows and other defects still halt.
    • I did not consult docs/conventions/instruction-exception-register/README.md. I judged by consequence instead.
  • Throughput-phase note: The digest re-pin in plugins/planning/tests/interview-defenses.test.sh is a pin or repin ceremony. The loosened halt line is a friction hold. Neither is a finding, and nothing is held for them.
  • Embedded text: The PR context contains no directives aimed at the review lane.
  • Spend: The change adds no billable or paid-usage surface.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed b2f97d88d9e60c60725db88beb7877b6bbd29dee: 0 finding(s), 0 as inline comments.

No findings. I read the full diff, the PR context and the surrounding exporters.py code (register, held_open, carried_rows, carries, marked_decisions). I ran no tests; this lane has no shell. The PR's claims of 218 exporter tests OK, interview-defenses.test.sh PASS=174 and a successful re-pin are author-claimed and unverified here.

Closing issue #11583

  • "The Brief lists each decision once, in its final status": met. ticked_recap rewrites a pre-tick Q<N> open: recap line to answered with the row's whole answer. That makes carried_rows see the line as carrying the full answer, so no second Constraints line is written. TestBriefDecisionsOnce.test_commitments_ticked_at_confirm_leave_one_line_in_its_final_status covers the whole line, a line cut short by the recap, and a row whose answer changed after the recap (kept as open). It also runs the --brief gate.
  • "SKILL.md and surface.md agree on whether a restate may be posted while only unticked commitments hold rows open": met. Both now name the same page-surface exception, limited to accepted rows held open by unticked commitments. round.sh status does print the accepted, to confirm: lines the exception points to (test_round.py:1665).

Code checks

  • ticked_recap runs before marked_decisions, so a ; replaces Q<N> suffix is added afterwards and does not stop the rewrite.
  • Bullet prefix and indentation are dropped from rewritten lines. This is harmless because bullets() normalizes them anyway.
  • A row whose recap line shows a different answer, or that is not both answered and carrying ticked commitments, is left untouched.
  • A partially ticked row at recap time is handled by the startswith(base + "; confirmed: ") branch in recap_head.

Safety-relevant change
The SKILL.md Step 3 halt rule gains a narrow exception, and the pinned halt line is unchanged. Any exit 1 other than accepted rows held open by unticked commitments still halts, and the Step 3 register gate still holds those rows until they are ticked. The pin is updated and the PR documents the re-pin.

Spend
No hold. The change adds no paid plan, billing setting or billed resource.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 31, 2026
Merged via the queue into main with commit a33c08a Oct 31, 2026
45 checks passed
@kyle-sexton
kyle-sexton deleted the fix/11583-decisions-after-ticks branch October 31, 2026 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(planning): keep a Brief's Decisions line current after commitments are ticked at Confirm

1 participant