Skip to content

feat(planning): auto-handle plain accepts and confirms so they wake no agent - #9654

Merged
melodic-automation-lanes[bot] merged 3 commits into
mainfrom
work-resolve-issue/issue-7969-40096215776-1
Oct 24, 2026
Merged

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

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #7969

Summary

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

The interview server now marks a plain accept (no text) and a plain confirm autoHandled at save time, so the watcher's unhandled() set skips them. The accept that settles its round's last open question stays unhandled so the agent still wakes. Undo of an auto-handled accept works until the agent handles a later event; agent-handled undo still returns 409.

Not verified

  • test_server.py and test_exporters.py were not run: Bash in this run only permits the named wrappers, so the new and edited tests are untested locally and left to the PR's CI
  • Fragment created by hand, not by new-changelog-fragment.sh: HEAD was detached so the script refused; check-changelog-fragments passes on it
  • Test-first ordering for the exporter test cannot be demonstrated: the exporters ignore the handled state, so the test passes before and after the server change

Fix

  • plugins/planning/surface/server.py: round_complete helper; record() sets autoHandled on plain accept/confirm (not the round-completing accept); Hub.unhandled and the revising set skip autoHandled; _undo refuses an auto-handled accept only once a later event was agent-handled
  • plugins/planning/surface/round.py: unhandled_events and guard_revision skip autoHandled events
  • plugins/planning/surface/schema/event.schema.json: autoHandled property
  • plugins/planning/surface/test_server.py: TestAutoHandle (plain accept absent from unhandled, accept with text present, plain confirm, round-completing accept wakes, undo of auto-handled succeeds, undo of agent-handled 409, undo 409 after a later handled event); TestConfirm test_1 now expects the con
  • plugins/planning/surface/test_exporters.py: TestAutoHandledAccepts, ledger, brief and sync-ledger output identical for agent-handled vs auto-handled accepts
  • plugins/planning/skills/interview/context/surface.md: Auto-handled events section and table rows; dedicated-session offer unchanged
  • .changes/planning/feat-auto-handle-plain-accepts-3c9a51e7.md: planning patch fragment

Verification

The runner ran each check from the base copy against 92fac24:

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

The run reports:

  • /home/runner/work/_temp/lane-checks/bin/check-changelog-fragments: all 3 fragments valid
  • /home/runner/work/_temp/lane-checks/bin/check-affected: 10 passed, 6 skipped (skips reported by the check)
  • sync-shared-copies --check: all 520 registered copies match; no shared-copy file touched
  • Fresh-context subagent review of the diff (read-only): 2 findings confirmed (guard_revision and revising ignoring autoHandled), both fixed
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40096215776

Left out: the items under Not verified.

Related

#7969

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

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

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

Incremental security review of ui_c.js and ui_live.js, the changes since 2b26610. I found no security issues.

critical-findings: 0

The change only touches Playwright UI test drivers. ui_c.js now posts the P1 accept with the note "Fine for now". ui_live.js fills #note with the same text before it accepts Q3. Both edits adapt the tests to the server change, which auto-handles a plain accept, so the accepts must carry a note to stay unhandled. The edits add no production code, no trust boundary, no secrets handling, no injection surface, and no manifest or workflow change. They touch no trust-gate path.

The PR context file contains no embedded directives aimed at the reviewer.

The skip gate applies here: the incremental change has no security-relevant surface. I did not re-review the rest of the PR. It is unchanged since 2b26610 and was reviewed then.

@github-actions

github-actions Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

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

Incremental review of ui_c.js and ui_live.js since 2b26610. I found nothing to flag.

The change makes two UI tests send an accept that carries a note. A plain accept (no text) is auto-handled by the server (server.py:1062, schema/event.schema.json:20). Without the note, the "unhandled event" state those tests need would never occur.

  • ui_c.js:313: the SPEC 5.2 revising check now posts the P1 accept with text: "Fine for now". The assertions only look at the "Answer not handled yet" chip, so the note doesn't affect them.
  • ui_live.js:22-24: Q3 is now accepted after #note is filled with "Fine for now". The later assertions for Q3 only check the "Sent" chip appearing and clearing.

I read the diffs and grepped the server and the tests. I did not run the tests, and the Playwright UI behaviour is untested by me. I didn't re-review the other 8 files in the PR; they are unchanged since the last review.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 92fac249effbdc59bd0958acb1bf5645718c5e06. 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 melodic-automation-lanes Bot added the needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. label Oct 24, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped on this pull request and needs a person: the lane could not fix every failing check; its run log names each one and why.

  • Reason: ci-fix-escalated
  • Resume key: 2b266105099edc2f0c6e8330bd64781aa3c125b1 (the head the lane stopped on)

To resume, deal with the reason above, remove the needs-human label (and do-not-merge, if set), then dispatch the pr-unblock workflow with pr-number=9654 and activity=fix-ci:

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

…arrying a note

The server now auto-handles a plain accept, so ui_live and ui_c, which
used a plain accept as their unhandled delivered event, saw no event to
handle. They now send an accept with a note, which still needs a reply.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kyle-sexton

Copy link
Copy Markdown
Member

Hold lifted (Issue Triage session). fix-ci's escalation was caused by the PR's own tests: two fixtures used a plain accept as their unhandled event, and #7969's change now auto-handles a plain accept. Fixed in 59fbcf7: both tests now use an accept carrying a note, which #7969 lists as unhandled, and every assertion is unchanged. Local: surface-ui-c 184/0, surface 216/0, surface-journey 247/0, test_server 211 OK, test_exporters 175 OK.

@kyle-sexton kyle-sexton removed the needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. label Oct 24, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 59fbcf70db1a3a1f28f1a92ea83db65f0d7d0eaf.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Oct 24, 2026
Merged via the queue into main with commit 3379970 Oct 24, 2026
69 of 70 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-7969-40096215776-1 branch October 24, 2026 15:28
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): auto-handle plain accepts and confirms so they wake no agent

1 participant