Skip to content

feat(planning): flag all-accept runs and tick named commitments at interview Confirm - #10695

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-9692-40729798414-1
Oct 28, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-9692-40729798414-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #9692

Summary

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

Before the Confirm, the interview page's restatement box now shows N of M answers accepted as recommended. When every answer is an accept, it offers "Have agents check these answers", which sends the existing accept-audit event for the eligible accepted questions. It also lists the unticked commitments of accepted and own answers beside a "Tick these and confirm" button, which sends one confirm per commitment and then the confirm-understanding. Plain Confirm is unchanged, surface.md documents both controls, and two new ui_c page-test phases cover the issue's two Done-when cases.

Not verified

  • bash plugins/planning/surface/surface-ui-c.test.sh: needs playwright-cli and a browser, and the lane runs only its named wrappers, so the new phases 9 and 10 were not executed here. Left to the PR's CI.
  • python3 -m pytest plugins/planning/surface -q: not runnable in this lane (no interpreter calls). No .py file changed. Left to the PR's CI.
  • bash scripts/affected-tests.sh --run: not runnable in this lane. Left to the PR's CI.
  • htmlhint on index.html (run by surface-checks.sh --part main when installed): not run here. Left to the PR's CI.
  • tidy recorded as skipped: all four tidy-diff passes ran, but pass 4 (ai-slop fix) could not run its detect.sh detector or the findings-file steps in this lane. It was a manual rubric read only, with nothing to fix.
  • Review nit left as is: the tally and the agents-check offer show only in the unconfirmed restatement box (the Confirm area), not on a summary that has no restatement yet. surface.md states this as 'Before the Confirm'.
  • Review nit left as is: the summary-level accept-audit's alt names the round of the last question by id, even when the accepted questions span rounds. Routing to /planning:audit-answers uses items, so the audit is unaffected.
  • The issue's 'Confirm dialog' was built as controls in the restatement box beside Confirm, not as a modal. A modal on Confirm would intercept the existing ui_journey Confirm clicks, and the issue requires plain Confirm to keep today's behavior.
  • Not committed: the lane instructions say to leave every change uncommitted in the working tree for the runner's patch.

Fix

  • plugins/planning/surface/index.html: adds tickRows, acceptTally, noteOf, auditSent and auditSplit; preConfirmHtml renders the tally, the agents-check offer and the unticked-commitment list in the unconfirmed restatement box; a "Tick these and confirm" button (confirmUnderstanding's tick path); and
  • plugins/planning/surface/tests/ui_c.js: phase 9 (three accepted questions: the tally reads 3 of 3 answers accepted as recommended and the agents check posts one accept-audit listing A1, A2 and A3) and phase 10 (one accepted question with two commitments: Tick these and confirm posts two confirm
  • plugins/planning/surface/surface-checks.sh: runs phases 9 and 10, each on its own server restated through round.sh apply, stops both servers in finish, and raises group c's check count from 201 to 207.
  • plugins/planning/surface/tests/fixtures/ui_f/questions-9.json: new fixture with A1 to A3 and no commitments.
  • plugins/planning/surface/tests/fixtures/ui_f/questions-10.json: new fixture with T1 holding two commitments.
  • plugins/planning/skills/interview/context/surface.md: the accept-audit row says the summary's agents check sends questions that are already accepted; the Auto-handled events section describes the tally and the agents-check offer with its exclusions; the Confirmation gate says Tick these and confirm
  • .changes/planning/issue-9692-confirm-time-checks-4c9e1a7b.md: new minor changelog fragment for planning (planning is in fragment mode, so plugin.json and CHANGELOG.md are bumped at release).

Verification

The runner ran each check from the base copy against 228fbf8:

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

The run reports:

  • check-changelog-fragments: all 2 fragments valid, both before and after tidy and the review fixes
  • check-affected: 12 passed, 6 skipped (no changed .py, typos not installed, steps that run code from the checked tree), the rest CI only; same result after the tidy and the review fixes
  • cant-fail-scan --file plugins/planning/surface/tests/ui_c.js --lines 703-730: no adapter claims the Playwright run-code file, 0 test files examined, so not applicable
  • fresh-context review subagent over the whole diff: no bug that breaks the new tests. It confirmed that the server accepts the page's accept-audit on already-accepted questions (contentRev and eligibility), that the phase 9 and 10 setup is valid, that 207 matches the ok() count, and that the existing
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40729798414

Left out: the items under Not verified.

Related

#9692

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

Copy link
Copy Markdown
Contributor

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

No security issues found in this PR.

critical-findings: 0

I read the whole diff (7 files) and the PR context. None of the changed files match a trusted path. The change is limited to the planning interview page (plugins/planning/surface/index.html), its page tests and fixtures, surface.md, and a changelog fragment. It touches no trust control, no plugin manifest and no instruction-surface rule.

  • Rendering: the new preConfirmHtml writes question ids, commitments and the "left out" reasons into HTML. Ids go through esc(), and refHtml escapes the id and title. inline() escapes the text first and then re-adds only http(s) links and code spans. I found no injection from question or commitment text.
  • New events: "Have agents check these answers" and "Tick these and confirm" send the same accept-audit, confirm and confirm-understanding events that existing controls already send. They go to the page's local server API. They add no new endpoint, no token handling and no new privilege.
  • Order of events: a failed tick stops before the Confirm is sent, so the gate cannot be passed by accident. A plain Confirm is unchanged.

Spend: no billed resource or paid plan is involved, so there is no hold.

@github-actions

Copy link
Copy Markdown
Contributor

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

No findings. I read the full diff and the PR context, and checked the new page code against the helpers and the server it calls. I ran no tests and no browser here. The PR's own verification claims are author-claimed and unverified by me.

What I checked

  • Agents check: auditAccepted posts accept-audit with alt set to a stage:round string and items as {id, contentRev} pairs. That matches check_accept_audit in plugins/planning/surface/server.py:845 and the existing acceptAllDialog post. contentRev comes from crev(q), the same value acceptAllDialog sends. The server's split_accept_audit (server.py:906) only refuses a question whose derived state is not open (stale or upstream-changed), a contentRev mismatch, or the other listed ineligible cases. A question that is already accepted stays eligible. So the all-accept offer reaches the server. If one question is stale, the page toasts Skipped … changed or not eligible.
  • Tick path: confirmUnderstanding("tick") loops over tickRows(), and confirmCommit skips commitments already ticked. A failed tick stops before the Confirm and sets S.uMsg. tickRows leaves out hedged accepts, so their conditions stay open, as surface.md now says. The contentRev captured before the ticks is checked by the existing 409 handling if Claude restates mid-way.
  • Tests and counts: surface-checks.sh raises group c from 201 to 207, which matches 3 ok() calls in each of phases 9 and 10 (two new asserts plus AC37 each). The helpers the new phases use (counter, open, shown, saved, until, events, post) all exist in ui_c.js. Both servers are stopped in finish.
  • Closing issue feat(planning): flag all-accept runs and tick named commitments at interview Confirm #9692 criteria:
    • A new page test on a three-accepted-question fixture asserts 3 of 3 answers accepted as recommended and one accept-audit listing A1, A2 and A3. This is covered by phase 9.
    • A new page test on one accepted question with two unticked commitments asserts two confirm events before confirm-understanding, then an empty header chip. This is covered by phase 10.
    • surface-ui-c.test.sh, pytest and scripts/affected-tests.sh --run exiting 0 are CI gates. The PR says it did not run them, and I did not either.
    • The issue's "Confirm dialog" was built as inline controls in the restatement box, not a modal. The PR body gives a reason: a modal would intercept the existing Confirm clicks in the journey tests. I treat this as an acceptable, disclosed deviation.
  • Changelog: the minor fragment for planning matches an additive feature.
  • Manifests: the diff changes no plugin.json or marketplace.json, so no manifest <field> lines apply.
  • Trusted paths: none of the changed files match a trusted-path glob.
  • Embedded instructions: the PR context contains no instructions aimed at the reviewer.

Minor observations, not counted as findings

  • The tally counts an accept with a note as "accepted as recommended", and the offer text says "Every answer took the recommendation". The offer's Left out line names the noted questions, and surface.md documents the behaviour.
  • The PR already discloses that the summary-level accept-audit names the round of the last question by id.

Spend: none beyond prepaid or subscription usage.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Oct 28, 2026
Merged via the queue into main with commit f714f1e Oct 28, 2026
51 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-9692-40729798414-1 branch October 28, 2026 17:43
@github-actions

Copy link
Copy Markdown
Contributor

Post-merge mutation testing

Killed 0, survived 0, timeout 0, no coverage 0, invalid 0, not run 8.
Covered-code score n/a; mutation score n/a.

File Killed Survived Timeout No coverage Invalid Not run
plugins/planning/surface/surface-checks.sh 0 0 0 0 0 8

The run's summary has the full report.

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): flag all-accept runs and tick named commitments at interview Confirm

0 participants