Skip to content

fix(planning): drop a replaced recommendation's commitments from an own answer at Confirm - #11090

Closed
melodic-automation-lanes[bot] wants to merge 1 commit into
mainfrom
work-resolve-issue/issue-11039-40961271273-1
Closed

melodic-automation-lanes[bot] wants to merge 1 commit into
mainfrom
work-resolve-issue/issue-11039-40961271273-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #11039

Summary

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

An own answer on the interview page now replaces the recommendation, so it carries none of the recommendation's commitments, as an alternative already did. The page's commitment lists, the Tick these and confirm list, the Brief and the report leave them out, even one ticked before the own answer, while the ledger row keeps the ticks so an import restores them. round.sh status now lists hedged rows with unticked commitments beside accepted ones, so it names the same commitments as the page's To confirm list. This reverses the earlier rule (Q24) that an own answer carries the recommendation's commitments as named risks.

Not verified

  • The Python suites (plugins/planning/surface/test_exporters.py, test_round.py) and the Playwright UI checks (surface-checks.sh: ui_c, ui_journey) were not run here: the lane runs no interpreter. Left to the PR's CI; the new and changed tests were checked only by reading them
  • ai-slop's deterministic detector (detect.sh) could not run in this lane; the changed markdown lines got a manual rubric read only, with no findings
  • Review (uncertain, not changed): an alternative with earlier ticks still prints confirmed: in the Brief while an own answer now prints none; a legacy free-text: hedged: ledger row imports as own and now loses its commitments in the Brief; a ledger-only Brief row and the terminal-lane recap can s
  • Design note: this reverses the earlier deliberate rule (Q24, loop.md 'over-counts an unhedged own answer, the safe direction') that an own answer's unticked commitments reach the Brief as named risks; a part an own answer keeps now has to be written into its resolution

Fix

  • plugins/planning/surface/index.html: accepted and commitRows count accept and hedged only, tickRows ticks accept only, the Confirm list says 'your accepted answers', and an own-answered question's pane heads its commitments 'replaced by your own answer' (checkboxes disabled)
  • plugins/planning/surface/exporters.py: new CARRIES (accept, hedged) drives a row's carries; for an own decision, register() empties confirmed and unconfirmed and drops the confirmed tail from readable and display, while the ledger resolution still encodes every tick
  • plugins/planning/surface/round.py: status lists every CARRIES state with unticked commitments, as an accepted, to confirm: or hedged, to confirm: line and in status --json toConfirm
  • plugins/planning/surface/test_exporters.py: the Q24 test now expects only the accept's commitment as a risk (and its report checks are restored to it); new test for the issue's case (accept, tick, then own answer: the Brief names no commitment and shows 0 confirmed, while the ledger keeps the tick);
  • plugins/planning/surface/test_round.py: new status test, where a hedged row with an unticked commitment is in toConfirm and an own answer is not
  • plugins/planning/surface/tests/ui_c.js: the counter's reference count (openAssumptions) counts accept and hedged only
  • plugins/planning/skills/interview/context/surface.md: documents the new carrying rule, the Tick these and confirm scope, and the status to-confirm lines
  • plugins/planning/skills/interview/context/loop.md: commitment parts on the page: an own answer withdraws them, and a part an own answer keeps goes into its resolution
  • .changes/planning/fix-11039-own-answer-commitments-5c1d9e27.md: patch fragment (Fixed) for both behavior changes; written by hand because new-changelog-fragment refuses on a detached HEAD

Verification

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

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

The run reports:

  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-changelog-fragments: all 13 fragments valid (run after the edits, after tidy, and after the review fixes)
  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-affected: 12 passed, 6 skipped (shellcheck: no changed shell; typos not installed; four validators that run checked-tree code), over 9 changed files; run after the edits, after tidy, and after the review fixes
  • fresh-context review subagent over the whole diff: 3 confirmed findings, all fixed (report assertions misplaced into the new test, test_brief_shape still expecting the own answer's risk, loop.md still stating the old rule)
  • tidy (code-tidying:tidy-diff) over the 23 changed hunks: one edit (quoted the UI label in the changelog fragment); no simplify or comment edits
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/40961271273

Left out: the items under Not verified.

Related

#11039

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

Copy link
Copy Markdown
Contributor

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

No security findings. critical-findings: 0

The PR changes only the planning plugin's interview surface (page logic, Brief/report exporters, round.sh status, tests, docs) so an own answer no longer carries the replaced recommendation's commitments.

  • No changed file matches a TRUSTED PATHS glob. No trust control, merge hold, token scope, kill switch, workflow or action is touched.
  • No new injection surface. The new heading in index.html is picked from fixed strings, and the new status output uses json.dumps. The new st value comes from the CARRIES tuple (accept or hedged), not from user input.
  • No command execution, path handling, secrets, tokens or network calls are added.
  • Instruction-surface lens: the removed rule (an own answer's unticked commitments reach the Brief as named risks) is a planning-quality convention, not a protected class in the exception register. The change is deliberate and consistent across code, tests and docs. The register file was not consulted; I judged by consequence.
  • No plugin.json or marketplace.json change, so there are no manifest lines.
  • Spend: none.

@github-actions

Copy link
Copy Markdown
Contributor

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

No findings. I read the full diff and the closing issue #11039, and read the surrounding code in exporters.py, round.py and index.html. I ran nothing: the lane has no shell, so every test result is unverified here. The PR's own "Not verified" section says the Python suites and the Playwright checks were not run.

Acceptance criteria for #11039

  • "A question answered with an own answer offers no commitment from the replaced recommendation at Confirm, or offers it marked as replaced." Met. In index.html, accepted and commitRows now count accept and hedged only, and tickRows ticks accept only. An own-answered question's pane heads its commitments "replaced by your own answer" with the checkboxes disabled. The confirm handler near index.html:2210 also refuses a tick on an own-answered question. No UI test fails if the pane heading or the Tick-list exclusion regresses. ui_c.js only changes its reference count, so the page half is covered by the ui_c.js counter alone, which is a minor gap and not a finding.
  • "The Brief never shows a confirmed commitment from a recommendation the own answer replaced." Met. In register() (exporters.py:638-641), an own decision empties confirmed, unconfirmed and the briefed list that feeds readable and display. The ledger resolution still encodes every tick. The new test test_an_own_answer_drops_a_ticked_commitment_of_the_recommendation_it_replaced would fail if this broke. It covers the accept, tick, then own-answer case, and it checks that the ledger keeps the + tick.
  • "The page and round.sh status agree on which commitments are still to confirm." Met. cmd_status now filters on exporters.CARRIES, the same accept and hedged set the page's commitRows uses. The accepted, to confirm: and hedged, to confirm: lines and toConfirm come from that one filter. test_a_hedged_row_is_named_and_an_own_answer_is_not covers the hedged and own cases.

Other checks

  • The own-answer status is not affected by the unticked-commitment gate. Only accept and hedged rows are forced to open (exporters.py:601), and held_open reads carries, which is now false for an own answer.
  • The docs (surface.md, loop.md) and the changelog fragment match the code. The fragment is bump: patch for a bug fix, which is the right level.
  • .claude-lane/, .claude/ and the other trusted-path globs match no changed file, and the change touches no workflow, action or manifest. I checked no plugin manifest because none changed.

Not counted as findings

  • The PR's "Not verified" section lists the same uncertain edge cases I looked at: an own answer prints no confirmed: in the Brief while an alternative with earlier ticks still does, a legacy free-text: hedged: ledger row imports as own and loses its commitments, and the ledger-only Brief row and terminal recap. These reverse the earlier Q24 rule on purpose and the docs now say so. I found no failing input beyond what the author already named.
  • Spend: none beyond the normal review run. No hold.

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor Author

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

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped fix-ci on this pull request: the lane could fix a failing check only by weakening a test, which is refused, so it runs one fresh fixer round on this head that must keep the test's assertions. The lane sets no label: the run ends in a failing pr-unblock/fix-ci 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=11090 -f activity=fix-ci

@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 30, 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 fix a failing check only by weakening a required check, and the head has no fresh fixer round left (it ran one, or an earlier lane stop already spent its same-head retry), so a person decides.

  • Reason: ci-fix-weaken-required
  • Resume key: b9d7344afe5d153094146708d64fc3cbbacb510f (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=11090 and activity=fix-ci:

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

@kyle-sexton kyle-sexton added needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. and removed needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. labels Oct 30, 2026
@kyle-sexton

Copy link
Copy Markdown
Member

Moving this from needs-human to needs-session. The fix-ci lane stopped with ci-fix-weaken-required: the only failing check, test-bash (4) on plugins/planning/tests/interview-defenses.test.sh, pins text this pull request rewrote on purpose for #11039. That is a session's call, not one of the owner's three reasons for a person (an intent change, a finding that changes intent or the primary design, or a real HIGH/CRITICAL security or cost risk). The session judged it: re-pinning the two pins to the new text keeps both defenses, so it is not a weakened check. The review comment on plugins/planning/skills/interview/context/loop.md asks address-feedback for that re-pin.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped address-feedback on this pull request: the pull request has an unresolved review thread the lane does not take (a reviewer it does not act on, a review of an older head, or a thread it already answered), so nothing will resolve it. The lane sets no label: the run ends in a failing pr-unblock/address-feedback 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=11090 -f activity=address-feedback

@kyle-sexton

Copy link
Copy Markdown
Member

Superseded by #11158 and #11159, which merged this change from the owner login.

@github-actions
github-actions Bot deleted the work-resolve-issue/issue-11039-40961271273-1 branch October 31, 2026 06:27
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. needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(planning): drop a replaced recommendation's commitments from an own answer at Confirm

1 participant