Skip to content

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

Merged
kyle-sexton merged 5 commits into
mainfrom
replace/11616-planning-finish-warn
Oct 31, 2026
Merged

kyle-sexton merged 5 commits into
mainfrom
replace/11616-planning-finish-warn

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

Closes #11585

Summary

Replaces #11616, a lanes App pull request that conflicted with main. Merging main into it stages .github/workflows files, which the App cannot push, so this owner-login branch carries the same change: #11616's head (ae25b33) merged into current main.

The interview page's Finish warned whenever Claude's reply was the newest Notes entry, which happened on every run. Now each live user note answers the oldest needsAnswer note still open before it; Loose ends pins every open ask, oldest first with the reply box on the oldest, and Finish warns only while one is open. exporters.unanswered_asks applies the same pairing, so the Brief's unanswered-ask lines match what the page pins. #11616's body has the full design notes and its known limits.

Fix

Verification

  • bash plugins/planning/tests/interview-defenses.test.sh: PASS=174 FAIL=0, exit 0; no digest pin changed, so no re-pin.
  • python3 plugins/planning/surface/test_exporters.py: 219 tests OK, exit 0.
  • scripts/check-affected.sh --tests --no-fetch: 14 passed, 2 skipped (shellcheck: no shell changed; the 15 selected suites, the Playwright UI journey among them, are left to their CI lanes), exit 0.

Related

🤖 Generated with Claude Code

melodic-automation-lanes Bot and others added 5 commits October 31, 2026 16:04
Lane-Activity: work-resolve-issue/resolve-issue
Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM6ySWr0
…11616-planning-finish-warn

# Conflicts:
#	plugins/planning/surface/README.md
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-31T20:06:36.199169Z 8d8159f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

Copy link
Copy Markdown
Contributor

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

No findings. I read the full diff and the PR context, but I ran no tests: this lane has no shell, so the PR's reported passing runs are unverified here.

  • Pairing rule: exporters.unanswered_asks in Python and openAsks in index.html apply the same rule. Each live user note answers the oldest needsAnswer note still open before it, and withdrawn notes answer nothing.
  • Ordering: Python sorts on (at, by_user, i) and the page sorts on at then seq. Both put a Claude note before a user note with an equal timestamp, so the Brief and the page pin the same asks. The at strings share one ISO format, so the two sorts agree.
  • Finish warning: it now fires only for an open needsAnswer note. The old "Claude replied in Notes and you have not answered" loose end is removed, and no other source or test depends on that text.
  • Tests: the new Python tests cover one reply against two asks and a reply that comes before an ask. The Playwright journey covers one ask, two asks, an answered ask, and an ordinary Claude reply after the ask. I did not check the journey's asks.length >= 2 assertion against the earlier state of that run.
  • Docs and changelog: README.md, surface.md and the changelog fragment match the new behavior.

Spend: none. The change adds no billable resource, paid plan or extra lane run.

@github-actions

Copy link
Copy Markdown
Contributor

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

No security issues found in this pull request.

critical-findings: 0

I read the full diff (.claude-lane/pr.diff) and the PR context. Both are treated as data.

  • Scope: The change touches only the planning plugin's interview surface. That is the page's noteThread/openAsks/looseEnds and Finish logic, exporters.unanswered_asks, its tests, docs and a changelog fragment. It touches no workflow, token, trust-control, kill-switch, merge-hold or manifest file. No .github/workflows file is in the diff, as the PR text says. The trusted-path match is only the .claude-lane/ input directory, which is not part of the change.
  • Rendering: The new Loose-ends markup passes Claude-authored note text through the same lineHtml(trunc(...)) call as before. The new counts are numeric, and looseDraft still goes through esc(). This adds no new injection surface.
  • Logic: The pairing in unanswered_asks and openAsks is bounded array operations over local data. It has no auth, secret, path or command surface. Its only effect is whether a Finish warning or Brief line shows, and that is a UX concern, not a security one.
  • Instruction-surface lens: The surface.md edit only rewords a description of a forced-wrapup text item. It removes no guardrail.
  • Manifests: No plugin.json or marketplace.json change, so there are no manifest lines.
  • Spend: No change that can bill.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 31, 2026
Merged via the queue into main with commit 7c8f615 Oct 31, 2026
47 checks passed
@kyle-sexton
kyle-sexton deleted the replace/11616-planning-finish-warn branch October 31, 2026 20:37
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): stop Finish from warning about Notes the skill already answered

1 participant