Skip to content

fix(planning): carry note text typed on an Accept into the Brief's Intent section - #11067

Merged
melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-11038-40952528355-1
Oct 29, 2026
Merged

melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-11038-40952528355-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #11038

Summary

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

The interview page's Brief export now lists the note a user typed on an Accept, an alternative or a Hedged choice under ### Intent, labeled accepted with note, chose (&lt;key&gt;) with note or accepted on condition under its Q<N>, beside asks, notes and own answers. Before, user_words in exporters.py collected only ask, note and own events, so that text reached the Brief only inside the row's Constraints line. An identical Intent line is listed once, so a Reconfirm that re-posts the kept choice and note adds no second bullet.

Not verified

  • The planning Python unit tests (plugins/planning/surface/test_exporters.py, including the new test) and check-open-questions.test.sh were not run directly: this lane runs no interpreter or test runner, and check-affected's output does not name which suites it ran. Left to the PR's CI.
  • Tidy pass 4 (ai-slop) ran only its rubric, read by hand over the added markdown lines with no findings; the deterministic detector detect.sh is not a command this lane may run. Passes 1-3 ran with no edits.
  • review-venue.txt was absent from the scratchpad, so the review ran locally in one fresh-context subagent instead of the CI code-review lane.
  • new-changelog-fragment refused on a detached HEAD (it names the fragment after the branch), so the fragment was written by hand in the existing fragment format; check-changelog-fragments accepts it.
  • An Intent bullet for a noted choice the user later replaced with a different choice (not undone) stays in the Brief, as an own answer already does; left as is to match existing behavior.

Fix

  • plugins/planning/surface/exporters.py: USER_WORDS gains accept, alt and hedged labels (alt names its key); user_words formats the label per event and skips a line already listed; module and function docstrings updated
  • plugins/planning/surface/test_exporters.py: new TestBriefIntent test covering a note on an accept, an alt and a hedged choice, a bare accept left out, whitespace collapsed and a repeated alt note listed once; class docstring updated
  • plugins/planning/skills/interview/context/surface.md: the restate row says Intent also lists each note typed on an Accept, alternative or Hedged choice
  • plugins/planning/skills/interview/context/loop.md: the hand-written Intent rule lists notes typed on an accepted, alternative or hedged choice, matching the page export
  • plugins/planning/scripts/check-open-questions.sh: header comment for the --surface Intent comparison names notes typed on a choice
  • .changes/planning/fix-11038-accept-note-in-intent-3e8a41c7.md: new patch changelog fragment (Fixed)

Verification

The runner ran each check from the base copy against f6e1a4d:

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

The run reports:

  • .lane/checks/bin/check-changelog-fragments: all 9 fragments valid (run before and after the review fixes)
  • .lane/checks/bin/check-affected: 13 passed, 5 skipped (typos not installed; checks that run the checked tree's own code), over 6 changed files (run before and after the review fixes)
  • fresh-context review subagent over the whole diff: no bugs; it confirmed the new test's expected lines match the code and that no other test or the --surface gate asserts an exact Intent that the new bullets contradict; its duplicate-bullet-on-Reconfirm finding and loop.md doc gap were fixed
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40952528355

Left out: the items under Not verified.

Related

#11038

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

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

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

Incremental security review of plugins/planning/surface/exporters.py and test_exporters.py since f6e1a4d.

I found no security issues.

  • The change is in user_words. It adds a CHOICE_WORDS tuple and changes the de-duplication so only choice-derived lines (accept, alt, hedged) are skipped when already listed. Repeated asks, notes and own answers are now listed each time.
  • It touches no trust control, token scope, kill switch, merge hold, workflow, manifest or instruction surface.
  • It adds no new input source, no command or path handling, and no network, secret or credential handling. The text it formats is the same user text, already whitespace-collapsed by the existing clean helper.
  • The new test only asserts the Intent output for repeated ask and note events.
  • The PR context contains no embedded directives aimed at the lane.

No manifest items are hit by the diff. No spend or cost hold applies.

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 f6e1a4d6bb810eb1204088856c0164c489262d7b; the summary is in this lane's pull request comment.

claude-lane: claude-review

Comment thread plugins/planning/surface/exporters.py Resolved
@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

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

Incremental review of exporters.py and test_exporters.py since f6e1a4d: no findings.

The change narrows the duplicate skip in user_words (plugins/planning/surface/exporters.py:1144) to choice events (accept, alt, hedged). A Reconfirm that re-posts a kept choice and its note still adds no second bullet. Repeated asks, notes and own answers are listed again, as they were before this PR. The docstring now says so.

The new test test_a_repeated_ask_or_note_is_listed_each_time expects the Intent lines the code produces. I read the code and the test and did not run the planning suite. The PR's CI has to run it.

The closing issue's two criteria are still met. Accept, alt and hedged notes reach ### Intent (the neighbouring test covers all three), and test_exporters.py has tests for them.

No manifest items are hit. No spend beyond prepaid credit and no hold class applies.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

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

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 221802eb4546e76eff48385d58ae7d7a17867208.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Oct 29, 2026
Merged via the queue into main with commit c888e8c Oct 29, 2026
50 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-11038-40952528355-1 branch October 29, 2026 22:30
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): carry note text typed on an Accept into the Brief's Intent section

0 participants