Skip to content

fix(planning): carry scope and criteria into the exported Brief and keep commitments out of Captured assumptions - #10495

Merged
melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-6051-40544698967-1
Oct 27, 2026
Merged

melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-6051-40544698967-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #6051

Summary

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

This finishes the four parts of #6051 that the owner's 2026-10-27 decision left open (E5, E6, E7 and the E8 TLDR); that decision records the other findings as already done on main. The interview page now takes a tldr restate section, which the user confirms and export-brief writes at the head of the TLDR. restate refuses a criterion that asks the user something. An unanswered Notes question, which is how the coverage prompt is asked, is reported under Captured assumptions. round.py warns when a recommendation points at a table or visual it does not carry. Confirmed commitments no longer export as confirmed on Q<N>; revisit if assumptions.

Not verified

  • The Python suites (plugins/planning/surface/test_round.py, test_exporters.py) and bash plugins/planning/scripts/check-open-questions.test.sh were not executed: this lane's Bash runs only the named wrappers, and check-affected runs without --tests. They were desk-checked and reviewed by reading only.
  • The browser UI journey (plugins/planning/surface/tests/ui_journey.js) was not run; the page change is one added label in the restatement section list. Left to the PR's CI.
  • check-affected skipped typos (not installed), changed-skills and three validate-plugins steps; these, and its CI-only checks (markdown and editorconfig composites, line-citations, evals-quality), are left to the PR's CI.
  • The issue's markdownlint-clean criterion for the merged PLAN.md (E4/Q12) is one the 2026-10-27 decision records as already done; this run did not re-verify it.

Fix

  • plugins/planning/surface/round.py: new tldr restate section. check_restated_lines refuses an acceptance line that asks the user something (rec_asks_user plus a say/choose lead, after the bullet, number, AC id and EARS tag are stripped) and a tldr line opening Restatement: or `Page title:
  • plugins/planning/surface/exporters.py: export_brief opens the TLDR with the confirmed tldr bullets. Captured assumptions no longer lists confirmed commitments: it keeps unconfirmed ones as named risks and adds - asked in Notes, not answered: <text> for each needsAnswer note that no user
  • plugins/planning/surface/schema/questions.schema.json: tldr added to the restatement sections (ops.schema.json takes it by $ref).
  • plugins/planning/surface/index.html: the restatement box shows tldr first, as Scope (TLDR), so the user confirms scope before the export.
  • plugins/planning/surface/README.md: the restate op row lists tldr and the new refusals and warning; the export-brief row describes the TLDR bullets and the new Captured assumptions content.
  • plugins/planning/skills/interview/context/surface.md: the restate op table, Confirmation gate step 1 (tldr first, the refusals, the coverage prompt asked as a needsAnswer note-reply and reported when unanswered), the Wording lint paragraph on recommendations that point at a table or visual, and Wrap
  • plugins/planning/skills/interview/context/loop.md: Captured assumptions says a confirmed commitment stays with its decision; the TLDR template line says a page export writes the confirmed tldr bullets there.
  • plugins/planning/skills/interview/SKILL.md: the coverage prompt section says the prompt is never a criterion, is asked as a page Notes question, and lands in Captured assumptions when unanswered at export.
  • plugins/planning/surface/test_round.py: tests for the table and visual warning (add warns; no warning when commitments carry the content or no visual or facts table exists; revise warns), the acceptance refusals and the criteria that must pass (code-span ?, Pick lists, Reply emails), tldr acce
  • plugins/planning/surface/test_exporters.py: tests that the tldr leads the TLDR and passes the gate, that every schema restatement section reaches the Brief, and that an unanswered Notes ask is reported and an answered one is not. Existing assertions on confirmed on Q<N>; revisit if were repl
  • .changes/planning/fix-6051-export-brief-scope-and-criteria-3f9a6c1e.md: minor-bump changelog fragment for the planning plugin.

Verification

The runner ran each check from the base copy against 287cc83:

  • 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 4 changelog fragment(s) under .changes/ are valid (run after the final edit).
  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-affected: 11 passed, 6 skipped over 11 changed files (run after the final edit; skipped: shellcheck (no shell changed), typos (not installed), changed-skills, and three validate-plugins steps that run code from the chec
  • cant-fail-scan --file plugins/planning/surface/test_round.py --check: PASS, 319 test blocks, no findings.
  • cant-fail-scan --file plugins/planning/surface/test_exporters.py --check: PASS. A first run raised one report-only conditional-assertion note on the new every-section test; I added a length assertion before the loop and the re-run had no findings.
  • Fresh-context review subagent over the whole diff: confirmed 2 findings and I fixed both. (1) A ticked commitment on a decision still open on unticked ones would have vanished from the Brief; it now gets a TLDR confirmed so far line, with tests. (2) A tldr Page title: with doubled whitespace or
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40544698967

Left out: the items under Not verified.

Related

#6051

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

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

No security issues in the incremental change (since 287cc83).

  • plugins/planning/skills/interview/SKILL.md: the only change removes one blank line at line 238, so the "lock skips it…" paragraph now runs into "The prompt is never itself a criterion…". No rule is deleted, narrowed or softened. The text still forbids treating the coverage prompt as a criterion and still says lock reports it unexamined.
  • plugins/planning/tests/interview-defenses.test.sh: this updates two pin_section hashes and adds two comment lines. The pinned Stance section (SKILL.md lines 93–330) contains line 238, so its hash has to change after the whitespace edit. The loop.md Step 4 hash changes because loop.md was edited earlier in this PR, which the earlier review covered. No pin was removed, narrowed or skipped, and the test still checks the same section boundaries. I could not run a shell here, so I did not recompute the hashes. If one is wrong, the test fails closed in CI.

The PR touches no trusted path, plugin manifest, token scope, kill switch or merge hold in this increment.

critical-findings: 0

@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

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

Incremental review of plugins/planning/skills/interview/SKILL.md and plugins/planning/tests/interview-defenses.test.sh since 287cc83. I found nothing to report.

  • SKILL.md: The only change is that a blank line is removed at line 241. The "Per action" paragraph and "The prompt is never itself a criterion" now render as one paragraph, which is cosmetic. The sentence about the coverage prompt keeps the same wording.
  • Pinned digests: The digest for the Stance section covers ## Stance through ## The interview loop, so it includes ## Acceptance-criteria capture where the edit sits. The new cae25d91… hash in interview-defenses.test.sh is therefore expected. The loop.md Step 4 hash change (624e983f…) follows from loop.md changes earlier in the PR. Both hashes have a comment that says what changed and that the STOP-on-gap, auto-guard and no-silent-resolve lines are byte-identical.
  • Not verified: I cannot run a shell here, so I did not recompute the two SHA-256 digests or run interview-defenses.test.sh. The PR also says its Python and bash suites were not executed (author-claimed). CI is the check that the hashes match.
  • Closing issue fix(planning): make export-brief carry the confirmed restatement and gate it #6051: Nothing in this increment affects the acceptance criteria. The earlier review already covered them.
  • Cost: This change spends nothing beyond normal CI runs.

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor Author

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

pr-merge's gate refuses its verifier verdict (verify:missing)

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 17c7007d95e476d755bccb41c7b142faf5fab153.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Oct 27, 2026
Merged via the queue into main with commit 9b43ee1 Oct 27, 2026
114 of 116 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-6051-40544698967-1 branch October 27, 2026 20:31
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): make export-brief carry the confirmed restatement and gate it

0 participants