Skip to content

fix(planning): fail the --brief gate when Intent, Decisions or the operator's words are missing - #11049

Merged
melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-11029-40943577831-1
Oct 29, 2026
Merged

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

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #11029

Summary

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

check-open-questions.sh --brief --procedure now fails a stamped page-export Brief (one with a - Restatement: line) that has no ### Intent. A new opt-in --surface <data_dir> (requires --brief and --procedure) re-runs surface/round.sh export-brief --ledger <ledger> on the interview page's data dir and fails (procedure=fail) when the Brief lacks a section that export writes (such as ### Decisions from a confirmed restatement's decisions) or any line of the export's Intent (the intent paragraph and each live ask, note and own-answer line). The gate itself only has the ledger and the Brief, and the restatement and events live only in the page's data dir, so cases 2 and 3 need the data dir passed in; the page lane's wrap-up doc now tells the session to pass it.

Not verified

  • Test suites not executed: this lane's Bash runs only named wrappers, so plugins/planning/scripts/check-open-questions.test.sh (including the new case 60), plugins/planning/tests/interview-defenses.test.sh and plugins/planning/surface/test_exporters.py are left to the PR's CI. The new gate code and t
  • Criteria 2 and 3 (a restated section such as Decisions missing; the user's ask/note/own text missing from Intent) fail only when the caller passes the new --surface <data_dir>: without the page data the gate cannot know what the restatement or events held. A plain --brief --procedure run c
  • loop.md's Gate-before-locking paragraph was not updated to mention the Intent heading requirement: the paragraph is inside a section that interview-defenses.test.sh pins by sha256, and this lane cannot run tests/repin.sh to re-pin it
  • Tidy: the ai-slop pass was a by-hand catalog read of the added markdown lines. The detector (detect.sh), the digest guard and the fresh-context verifier could not run, because the lane's Bash allows only named wrappers. Every other tidy pass ran (one edit, at surface.md:291)
  • Windows Git Bash: --surface passes a mktemp path to native Python through round.sh; this was not verified on Windows

Fix

  • plugins/planning/scripts/check-open-questions.sh: --surface <data_dir> option and its validation (exit 2 without --brief and --procedure, on a missing dir, or when the export fails); intent added to the --procedure template-heading check for stamped Briefs; new heading_texts and `section
  • plugins/planning/scripts/check-open-questions.test.sh: case 60 builds a page data dir (confirmed restatement with intent and decisions, an ask, a note and an own event), exports a real Brief, and asserts that the whole export passes, while the export with ### Intent, ### Decisions or the user's-
  • plugins/planning/skills/interview/context/surface.md: wrap-up step 2 tells the page lane to pass --surface '<data_dir>' to the Step 4 --brief --procedure gate, and says what that gate then fails
  • .changes/planning/fix-11029-brief-gate-intent-decisions-7d3a91c4.md: patch changelog fragment for planning

Verification

The runner ran each check from the base copy against 7df4cbf:

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

The run reports:

  • read https: //github.com/melodic-software/claude-code-plugins/issues /6052: parent issue; done-when comment 'The export gate passes on that Brief and fails when one of these is removed', with the intent section above Goal holding the operator's goal paragraph and verbatim Ask/Note/own-answer text; i
  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-changelog-fragments: all 3 fragments valid (run before and after tidy and after the review fix)
  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-affected: 12 passed, 6 skipped, 0 failed over the changed files (run before and after tidy and after the review fix)
  • fresh-context review subagent over the whole diff: traced the exporter on the case-60 fixture and expects the export to contain every line the test greps for, the whole export to exit 0, and each mutated Brief to fail with the expected exit and stderr. It found one bug, fixed: a loop.md edit broke t
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40943577831

Left out: the items under Not verified.

Related

#11029

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

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

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

Incremental security review of plugins/planning/scripts/check-open-questions.test.sh, covering the change since 7df4cbf.

No security findings. The only change is one test-fixture string, where "queueing" becomes "queuing" in the intent text of an inline JSON heredoc (line 959). The change adds no executable code, command, path handling, secret, permission or trust-control logic. The file matches none of the trusted-path globs, and the change touches no plugin manifest or standing instruction. This meets skip gate 2 (no security-relevant surface).

No spend: nothing here changes turn limits, models, schedules or billing.

critical-findings: 0

@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

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

Incremental review of plugins/planning/scripts/check-open-questions.test.sh, covering only the change since 7df4cbf.

The change is one word in a test fixture: "queueing" becomes "queuing" in the intent string of the Export test's questions.json (line 959). I searched plugins/planning and the rest of the repo for the old spelling and for the sentence "merges stop". The only hit is the fixture line itself, so no assertion, expected-output file, or other fixture depends on the old spelling.

No findings. I did not run the test script, so this is a read-only check. No closing-issue criteria are affected, and there are no cost or security concerns.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 7df4cbf637599dac3b0c84dec52ccd8bc00f48a2. 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 1ba3fc4bb78614129dfe37d75d791e62d34118b3.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Oct 29, 2026
Merged via the queue into main with commit c71b401 Oct 29, 2026
48 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-11029-40943577831-1 branch October 29, 2026 20:56
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): fail the --brief gate when Intent, Decisions or the operator's words are missing

0 participants