Skip to content

feat(planning): check draft interview rounds against earlier answers and label sweep rounds - #10428

Merged
melodic-automation-lanes[bot] merged 3 commits into
mainfrom
work-resolve-issue/issue-9695-40452554568-1
Oct 27, 2026
Merged

melodic-automation-lanes[bot] merged 3 commits into
mainfrom
work-resolve-issue/issue-9695-40452554568-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #9695

Summary

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

Before every round after the first is shown, /planning:interview now runs a pre-round contradiction pass: a fresh-context sub-agent checks the draft against answered rows and confirmed constraints, using only the assumption sweep's contradiction category, and each conflict is fixed in the draft first. On the page, add-round takes meta.kind "sweep" (stored on the round's rounds entry, not in meta) and a per-question reconciles list of earlier question ids. The page labels a sweep round 'Sweep: reconciling earlier answers' and shows each reconciled question's decision beside the question. A reconciles id that is not in the register is refused, naming it.

Not verified

  • python3 -m pytest plugins/planning/surface -q was not run: this lane's Bash runs only the named wrappers, so the new TestSweepRound tests are traced by hand and by the review, not executed. Left to the PR's CI.
  • bash scripts/affected-tests.sh --run was not run, for the same reason. Left to the PR's CI.
  • The ui_page.js phase 18 browser test was not run (it needs playwright-cli and a page server). Left to the PR's CI surface suites.
  • cant-fail-scan has no adapter for tests/ui_page.js (0 files examined), so the new page assertions were not scanned.
  • check-affected skipped changed-skills (skill-quality over the edited interview skill) and typos (not installed). Left to CI.
  • The new eval case 36 was not executed (the issue scopes it as statically valid only, with no paid eval run).

Fix

  • plugins/planning/skills/interview/SKILL.md: Step 2 paragraph 'Check each draft round against earlier answers before it is shown', the contradiction pass that runs before a round is asked inline or posted with add-round
  • plugins/planning/skills/interview/context/assumption-sweep.md: new 'Pre-round contradiction pass' section (dispatch, scope limited by pointer to the Contradictions category, return shape, disposition); Disposition now says how to post a sweep round (meta.kind sweep, reconciles; terminal-lane label)
  • plugins/planning/skills/interview/context/surface.md: documents a question's reconciles field and add-round's meta.kind
  • plugins/planning/skills/interview/evals/evals.json: eval case 36 pre-round-contradiction-pass (statically valid; not run)
  • plugins/planning/surface/round.py: round_kind() takes meta.kind out of the meta merge, refuses an unknown kind or a kind on a round with no questions, and stores it on the rounds entry (a later write to the same round with no kind keeps it); check_reconciles() refuses a non-list or an id not in the
  • plugins/planning/surface/schema/questions.schema.json: rounds[].kind (enum sweep) and question reconciles
  • plugins/planning/surface/schema/ops.schema.json: roundMeta def (metaSet keys plus kind) for add-round's meta
  • plugins/planning/surface/index.html: sweep rounds get the 'Sweep: reconciling earlier answers (round N)' restate heading and a Sweep chip; new 'Earlier answers this reconciles' block shows each reconciled question's decision text
  • plugins/planning/surface/README.md: add-round row documents kind and reconciles
  • plugins/planning/surface/test_round.py: TestSweepRound, 11 tests (sweep round with reconciles [Q1] exits 0; unknown reconciles id refused, naming it; apply path; bad shape; unknown kind; kind without questions; same-write reference refused; kind kept on a later write; ordinary round has no kind)
  • plugins/planning/surface/tests/ui_page.js: phase 18 asserts the sweep label and Q1's decision text beside Q17
  • plugins/planning/surface/surface-checks.sh: drives phase 18 (record-terminal on Q1, then a sweep add-round), gphases 18, CHECKS[page] 109
  • .changes/planning/feat-9695-sweep-round-reconciles-3a7c5e91.md: minor changelog fragment for planning (written by hand: new-changelog-fragment refused on a detached HEAD)

Verification

The runner ran each check from the base copy against 24c4347:

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

The run reports:

  • check-changelog-fragments: all 8 fragments valid
  • check-affected: 12 passed, 5 skipped (validate-plugins sub-checks, typos, changed-skills: these run code from the checked tree or need tools not installed)
  • check-evals-quality plugins/planning/skills/interview/evals/evals.json: PASS; its 1 warning is on existing case 14, not the new case
  • cant-fail-scan --file plugins/planning/surface/test_round.py --check: PASS, 311 test blocks, no gating findings
  • grep -n -i contradiction plugins/planning/skills/interview/SKILL.md: line 375 is the new pre-round pass paragraph naming add-round
  • fresh-context review subagent over the whole diff: 4 findings, all fixed (ui_page regex missed the missing space between heading and button text; skill text could put a C<N> id in reconciles; reconciles could name a question from the same write; a later write could drop the sweep kind)
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40452554568

Left out: the items under Not verified.

Related

#9695

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 910bbe7e13ada9e2fe5ea4ede0cfa64d16ae4028: 0 finding(s), 0 as inline comments.

No security findings in the incremental change (plugins/planning/tests/interview-defenses.test.sh).

The change re-pins three digests and adds explanatory comments:

  • the Step 2 section of SKILL.md
  • context/assumption-sweep.md
  • the eval-case roster for case 36

I checked each re-pin against the pull request's full diff. The additions to assumption-sweep.md are a sweep-round posting note and a "Pre-round contradiction pass" section. They leave the sweep's scope, item shape and USER-RESERVED disposition untouched. The new text says a draft conflict becomes no register row and nothing is captured as an assumption. It also says the pass runs only the Contradictions category and that the full sweep still runs once the frontier is empty. Nothing there licenses auto-answering a reserved row or weakens the STOP-on-gap or auto-guard rules. The re-pinned digests are consistent with the stated rationale. I did not recompute the digests, since I have no shell.

The file is a test, not a trust control. It is outside the listed trust-control paths, and no manifest fields are touched.

manifest: not applicable (no plugin manifest in this incremental change).

Spend: none; no turn limits, schedules or paid resources change.

critical-findings: 0

@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

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

Incremental review of plugins/planning/tests/interview-defenses.test.sh since 3a39cb4. I found nothing to report.

The change adds three comments and re-pins three digests. The comments are for the Step 2 section, assumption-sweep.md and the eval-case roster. Each describes what the full diff adds:

  • Pre-round contradiction pass: the new "Pre-round contradiction pass" section in assumption-sweep.md revises the draft or asks one question naming both sides, and it opens no register row.
  • Sweep-round labeling: assumption-sweep.md also gains the sweep-round labeling paragraph.
  • Eval case 36: evals.json adds pre-round-contradiction-pass, which registers no row.

Not verified: I had no shell, so I could not recompute the three new SHA-256 digests (f6733e5d…, d6f9547c…, 111ee4d6…). The test run in CI will show whether they match the current SKILL.md, assumption-sweep.md and eval-case content.

Cost: the change spends no money and sets no hold. It touches no trusted path.

@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 3a39cb4346331fc33ef9011a6f9d7cb7ee4ab46b. 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 910bbe7e13ada9e2fe5ea4ede0cfa64d16ae4028.

@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 bc09d12 Oct 27, 2026
46 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-9695-40452554568-1 branch October 27, 2026 06:53
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.

feat(planning): check draft interview rounds against earlier answers and label sweep rounds

0 participants