Skip to content

fix(planning): warn at Finish only for unanswered needsAnswer Notes and pin each one - #11616

Closed
melodic-automation-lanes[bot] wants to merge 3 commits into
mainfrom
work-resolve-issue/issue-11585-41213630310-1
Closed

melodic-automation-lanes[bot] wants to merge 3 commits into
mainfrom
work-resolve-issue/issue-11585-41213630310-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #11585

Summary

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

The interview page's Finish warned whenever Claude's reply was the newest Notes entry. Since the skill replies to every note, that warning fired on every run, and only the newest needsAnswer note was pinned, with any user note clearing it. A new openAsks helper in index.html pairs each live user note with the oldest needsAnswer note still open before it. Loose ends pins every open ask (oldest first, reply box on the oldest), and outstanding() warns only while one is open. The removed 'Claude replied in Notes and you have not answered' loose end had the same false premise. Design choice: user notes carry no reply target, so first-in-first-out pairing is the rule the existing thread data supports. exporters.unanswered_asks uses the same rule, so the Brief's 'asked in Notes, not answered' lines match what the page pins.

Not verified

  • Python tests (test_exporters.py) and the Playwright UI journey (surface-checks.sh / tests/ui_journey.js) were not executed: this lane runs no interpreter or test runner. Left to the PR's CI.
  • Review finding labeled uncertain and left unfixed: if Claude posts a needsAnswer note-reply in the same second as the user note it replies to, the tie puts Claude's note first, so that user note counts as answering it. Timestamps have one-second resolution. A fix would require an answering note's se
  • Tidy: the ai-slop deterministic detector (detect.sh) and its fix guard could not run, since Bash runs only the lane's wrappers, so the ai-slop pass applied the catalog rubric by reading only. The docs-hygiene:write-for-agents pass was not invoked for the one changed phrase in surface.md (checked by
  • new-changelog-fragment refused to run on a detached HEAD ('HEAD is not on a branch'), so the fragment was written by hand in the lane's existing work-resolve-issue-issue-<n>-<hex> naming; check-changelog-fragments validates it.
  • The untracked dotfiles at the checkout root (.bashrc, .bash_profile, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) were not created by this run and are not part of the change.

Fix

  • plugins/planning/surface/index.html: noteThread carries each user note's withdrawn flag; new openAsks(nt) pairs each live user note with the oldest open needsAnswer note; looseEnds pins every open ask, with the reply box on the oldest, and drops the 'Claude replied in Notes' line; outstanding() warn
  • plugins/planning/surface/exporters.py: unanswered_asks applies the same oldest-first pairing (ties on at put Claude's note first, as the page does) instead of treating any later user note as answering every ask.
  • plugins/planning/surface/test_exporters.py: with_coverage_prompt accepts extra asks; new tests check that one reply answers only the oldest of two asks, and that a reply posted before an ask does not answer it.
  • plugins/planning/surface/tests/ui_journey.js: the phase 16 Loose-ends check now asserts every open ask is pinned oldest first, the reply box sits on the oldest only, and the newest ask is listed last.
  • plugins/planning/surface/README.md: Captured assumptions wording follows the new pairing rule.
  • plugins/planning/skills/interview/context/surface.md: the wrapup event row names 'a needsAnswer Notes post with no answer' as the skipped Notes item.
  • .changes/planning/work-resolve-issue-issue-11585-8c4f2a17.md: new patch fragment under Fixed.

Verification

The runner ran each check from the base copy against 024030f:

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

The run reports:

  • .lane/checks/bin/check-changelog-fragments: all 27 fragments valid (run before and after tidy, and after the review fixes).
  • .lane/checks/bin/check-affected: 12 passed, 6 skipped over 7 changed files; the skips are the check's own (typos not installed, no shell changed, code-from-checked-tree validators).
  • Fresh-context review subagent over the full diff: it confirmed both done-when items and page/exporter agreement, and found 2 confirmed issues (a stale ui_journey.js phase 16 assertion and a stale README.md line), both fixed.
  • Read surface-checks.sh group_journey (lines 374-449): the 8 needsAnswer asks the journey posts, which back the rewritten phase 16 assertion.
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41213630310

Left out: the items under Not verified.

Related

#11585

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

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

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

No security findings in the incremental change since 024030f.

I read .claude-lane/incremental.diff, which changes only plugins/planning/surface/tests/ui_journey.js. It adds a Playwright test block for #11585 that checks the Finish confirm list's Notes line.

  • Scope: the block opens a second page against the test's own local surface server. It stubs api/state with route.fetch() and route.fulfill(), and sets window.EventSource = undefined. It then saves and restores localStorage and closes the tab.
  • Attack surface: none. There is no network egress beyond the local test base URL, no secrets or tokens, no command execution, and no untrusted input reaching a credentialed lane.
  • Trust controls and trusted paths: the file matches none of the trusted-path globs, and no manifest, workflow, action, or hold path changed.
  • Skip gate: skip 2 applies. The diff has no security-relevant surface and deletes no standing instruction.
  • Spend: none.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on 024030f7d79a8cf10b336ffb202ad6437e023c67; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread plugins/planning/surface/index.html Resolved
@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

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

Incremental review of plugins/planning/surface/tests/ui_journey.js: no findings. I did not run the tests; everything below comes from reading the diff, the page code and the harness steps.

The change adds a phase 5 block that opens a second tab, adds Notes lines through a route on api/state, and reads the Finish confirm list. It covers four cases: one unanswered Claude ask, two unanswered asks, an ask answered by a user note, and an ask answered by a user note followed by an ordinary Claude reply.

  • Fixture shape: the route sets s.questions.notes and s.responses.events, the same shape as the existing route at line 176 and the page's S.doc = Object.assign(..., data.questions) at index.html:2338.
  • Expected strings: they match outstanding() at index.html:1584-1585 ("Claude asked for an answer in Notes and you have not given one" and "N Claude questions in Notes have no answer from you"). The #dlgBody li and #dlgCancel selectors match the confirm dialog at index.html:2089-2094.
  • "Both real asks are answered by now": this holds. The harness posts only two asks before phase 5, d2 and e2. Phase 3 (line 302) and phase 4 (line 359) each send a user note after them, and the first-in-first-out pairing in openAsks (index.html:1547) closes both. The real page is therefore clean of open asks when the block runs.
  • Other outstanding items: the existing wrap-up chip assertion right after the block requires a visible, non-zero count on the real page. That is why the all > 1 and all > 0 guards hold.
  • Regression coverage: the last case, where the newest Notes entry is Claude's ordinary reply, would fail on the old "any Claude-last thread warns" behaviour.
  • Timing and cleanup: the fake notes sit 300 to 900 ms before the test's clock reading, well after the last real user note. localStorage is restored and the tab's page errors are asserted.

Closing issue #11585, both "Done when" items:

  • Finish warns only for an unanswered ask: covered by the four cases above, plus test_exporters.py per the PR description.
  • Every unanswered ask stays pinned until a user note answers it: covered by the phase 16 assertion at line 569, which is outside this incremental range and was reviewed earlier.

No hold. Nothing here changes billing.

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM6ySWr0
@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor Author

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

a pr-unblock lane stopped its head (pr-unblock/conflict is failure), which ci-status fails in the
  merge queue

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on b3e9e58.

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped resolve-conflicts on this pull request: the merge stages the pull request's own .github/workflows/ changes together with the base's, which the lane token cannot push, so a session merges main by hand. The lane sets no label: the run ends in a failing pr-unblock/conflict status on the head the lane gated.

When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean.

To run it again on this head now, dispatch the pr-unblock workflow:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=11616 -f activity=resolve-conflicts

@kyle-sexton

Copy link
Copy Markdown
Member

Hold: superseded by #11691. Releases when: never; the original closes after #11691 merges.

@kyle-sexton

Copy link
Copy Markdown
Member

Superseded by #11691, merged 2026-10-31T20:37:50Z.

@github-actions
github-actions Bot deleted the work-resolve-issue/issue-11585-41213630310-1 branch November 3, 2026 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge Hard merge gate: do not merge while applied.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(planning): stop Finish from warning about Notes the skill already answered

1 participant