Skip to content

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

Closed
melodic-automation-lanes[bot] wants to merge 1 commit into
mainfrom
work-resolve-issue/issue-11583-41213628994-1
Closed

melodic-automation-lanes[bot] wants to merge 1 commit into
mainfrom
work-resolve-issue/issue-11583-41213628994-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #11583

Summary

Opened by the work-resolve-issue lane. The run's own summary:

export-brief now rewrites a confirmed restatement's Decisions recap line that was taken while unticked commitments held an accepted row open (Q<N> open: ...). Once those commitments are ticked, the line reads Q<N> answered: with the row's whole current answer, including when the recap had cut that answer short. The rewritten line then carries the row, so it adds no second Constraints line, and each decision appears once, in its final status. A line whose answer changed after the recap (an alternative, an own answer, a cleared hold, an edited note) is left as written. SKILL.md Step 3 and surface.md 'Confirmation gate' now agree: on the page, the restate goes out over a procedure-check exit 1 when the only open rows are accepted questions waiting on commitment ticks (the accepted, to confirm: lines of round.sh status), because the restatement box offers those ticks. Any other defect, including a hedged row whose condition is still open, still halts it. Design choice: the fix is in the exporter, not in a second restate after the tick, because the tick and the Confirm are one action on the page ("Tick these and confirm"), and asking for a second Confirm would undo that.

Not verified

  • plugins/planning/surface/test_exporters.py was not run: this lane runs no interpreter or test runner, so the new test and the existing suite are left to the PR's CI
  • check-affected skipped typos (not installed), changed-skills and three validate-plugins checks (they run code from the checked tree); its CI-only checks are left to the PR's CI
  • tidy ran passes 1-4 (no code edits, two wording edits in SKILL.md:303 and surface.md:229) but pass 5 (ai-slop) was only the rubric read: the ai-slop detector script is not one of this lane's runnable wrappers, and no rewrite was needed, so no semantic-diff verifier ran
  • A decisions line a person hand-edited to end in '; replaces Q<N>' does not match OPEN_RECAP and keeps its pre-tick 'open' status; the generated recap never writes that suffix
  • review-venue.txt was absent from the scratchpad, so the review ran locally in one fresh-context subagent, as the skill's fallback says

Fix

  • plugins/planning/surface/exporters.py: new OPEN_RECAP regex, recap_head() and ticked_recap(); export_brief applies ticked_recap to the confirmed restatement's decisions before carried_rows and marked_decisions read them; module docstring notes the rewrite
  • plugins/planning/surface/test_exporters.py: new TestBriefDecisionsOnce test covering a ticked accepted row (whole and cut recap lines rewritten once, as answered) and an alternative chosen after the recap (line kept, own Constraints line kept), gated with check-open-questions.sh --brief
  • plugins/planning/skills/interview/SKILL.md: Step 3 procedure-check 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 says when to post the restate over exit 1 and how export-brief writes those recap lines; Wrap-up step 2 says a pre-tick recap line is rewritten first, so it counts
  • .changes/planning/fix-11583-decisions-after-ticks-5b2e81d4.md: patch changelog fragment for the planning plugin

Verification

The runner ran each check from the base copy against a2641d1:

  • scripts/check-changelog-fragments.sh --check: passed

The run reports:

  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-changelog-fragments: All 25 changelog fragment(s) under .changes/ are valid (run after the last edit)
  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-affected: 12 passed, 6 skipped over 5 changed files (run after the last edit)
  • fresh-context review subagent over the whole diff: traced the new test through confirmation_recap, register, readable and the --brief gate and judged it passing; found 4 issues: unanchored match (fixed), hedged rows not tickable from the restatement box (docs narrowed to accepted rows), cut recap li
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41213628994

Left out: the items under Not verified.

Related

#11583

Lane-Activity: work-resolve-issue/resolve-issue
@melodic-automation-lanes

melodic-automation-lanes Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head a2641d11a6d51a00f457fe388afa8801227d5165. The lanes clear this reason on their own; the next scheduled run judges it again.

a pr-unblock lane stopped its head (pr-unblock/conflict is failure, pr-unblock/fix-ci is failure),
  which ci-status fails in the merge queue

@github-actions

Copy link
Copy Markdown
Contributor

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

No security issues found in this pull request.

critical-findings: 0

What I read. All five changed files: a changelog fragment, plugins/planning/skills/interview/SKILL.md, .../context/surface.md, plugins/planning/surface/exporters.py and plugins/planning/surface/test_exporters.py. I also read the PR context. None of the changed files matches a trusted path, and none is a trust control, an Actions workflow or a plugin manifest. So there are no manifest <field> lines to report.

exporters.py.

  • The new OPEN_RECAP, recap_head and ticked_recap rewrite the restated decisions recap before export-brief writes it. The input is the local interview session's questions.json and responses.json and the ledger. No command execution, file path, template or network call uses it.
  • The regex is anchored and runs once per line, with no nested quantifiers.
  • recap_head scans ( positions and does string comparisons. The restate cap of 20,000 characters bounds it, so I see no ReDoS or runaway-cost path.
  • The rewrite only changes open to answered when the row is answered, carries commitments, and has them confirmed. Otherwise it leaves the line as written, so the change doesn't lead to a Brief that shows unconfirmed content as confirmed.

Instruction-surface lens. The SKILL.md and surface.md changes soften a standing halt rule. A non-zero procedure-check exit used to always halt the restate. Now, on the page surface only, it lets the restate go out when the only open rows are accepted questions waiting on commitment ticks. I checked this against the instruction exception register (docs/contracts/instruction-exception-register/README.md; it defers to the six Gate 0 classes in the instruction-placement routing rubric, which I did not open). The relaxed check is an interview-procedure completeness check. It guards none of the six classes: irreversible-action, secret-handling, data-integrity, external-publication, legal-compliance, agent-authority. The exception is narrow and the text keeps the other protections:

  • Hedged rows still halt.
  • Any other defect still halts.
  • The Step 3 register gate still holds those rows until they are ticked.
  • The --brief gate still fails an unconfirmed Brief.

Not a finding.

PR text. The PR context contains no embedded instructions aimed at the review lane.

Spend. None. This change touches no billing, plan, or lane run or turn limits.

@github-actions

Copy link
Copy Markdown
Contributor

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

No findings. I read the full diff and traced ticked_recap and recap_head in plugins/planning/surface/exporters.py against register(), readable(), confirmation_recap(), bullets() and carried_rows(). I ran no tests, so the new test and the existing suite are unverified here. The PR says they were left to CI.

Closing issue #11583

  • "The Brief lists each decision once, in its final status": met. ticked_recap rewrites the stale Q<N> open: line to answered with the row's whole current answer, and carried_rows then finds that answer in the line, so no second Constraints line is added. test_commitments_ticked_at_confirm_leave_one_line_in_its_final_status would fail if this broke. It covers a whole recap line, a cut recap line, and a row whose answer changed after the recap, which stays open and keeps its own Constraints line.
  • "SKILL.md and surface.md agree on restating while unticked commitments hold rows open": met. SKILL.md Step 3 and surface.md "Confirmation gate" name the same exception: accepted rows on accepted, to confirm: lines, with hedged rows and any other defect still halting. No test covers this, which is reasonable for prose.

Code checks

  • ticked_recap rewrites a line only when the row is answered, carries its commitments, and has them all ticked. The line must also show the row's pre-tick answer, whole or cut with …. Anything else is kept as written.
  • A recap line with a leading bullet loses it in the rewrite. bullets() strips bullets before the Decisions section is written, so the Brief is unaffected.
  • A recap line ending ; replaces Q<N> doesn't match OPEN_RECAP and keeps its open status. The PR lists this under Not verified, and the generated recap never writes that suffix.

The change has no paid-plan or billing effect, so there is no hold.

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Oct 31, 2026
@melodic-automation-lanes

melodic-automation-lanes Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped fix-ci on this pull request: the lane could fix a failing check only by weakening a required check, and the head has no fresh fixer round left (it ran one, or an earlier lane stop already spent its same-head retry), so a session builder takes it. The lane labels it needs-session for a session builder, who makes the change this lane cannot, and the run ends in a failing pr-unblock/fix-ci status on the head the lane gated.

When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean.

To run it again on this head now, dispatch the pr-unblock workflow:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=11613 -f activity=fix-ci

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped resolve-conflicts on this pull request: the merge stages the pull request's own .github/workflows/ changes together with the base's, which the lane token cannot push, so a session merges main by hand. The lane sets no label: the run ends in a failing pr-unblock/conflict status on the head the lane gated.

When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean.

To run it again on this head now, dispatch the pr-unblock workflow:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=11613 -f activity=resolve-conflicts

@kyle-sexton

Copy link
Copy Markdown
Member

Hold: superseded by #11687. Releases when: never; close after #11687 merges.

@kyle-sexton

Copy link
Copy Markdown
Member

Superseded by #11687, merged 2026-10-31T20:14:59Z.

@github-actions
github-actions Bot deleted the work-resolve-issue/issue-11583-41213628994-1 branch November 3, 2026 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge Hard merge gate: do not merge while applied. needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop.

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