Skip to content

fix(planning): keep interview titles, revision banners and apply refusals accurate - #8114

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-7754-39105876572-1
Oct 18, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-7754-39105876572-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #7754

Summary

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

A superseding question that reuses its predecessor's short title is now refused, the Recommendation revised banner labels the text as Claude's reason, and a duplicate-id refusal says nothing was written and names the first duplicate. The surface spoke tells the session what revised is shown as.

Not verified

  • Independent diff review: the review subagent could not run git to read the diff, so no fresh-context review happened; I only re-read the change myself.
  • new-changelog-fragment could not run (detached HEAD), so the fragment was written by hand in the same format; check-changelog-fragments accepts it.

Fix

  • plugins/planning/surface/round.py: add_question refuses a superseding question whose short equals the superseded question's (case and whitespace insensitive); the duplicate id refusal now says it was refused and nothing was written
  • plugins/planning/surface/index.html: the revised banner prefixes a given reason with "Claude's reason:"
  • plugins/planning/surface/test_round.py: cases for the superseding short refusal and the duplicate-id message (first duplicate named, document unchanged)
  • plugins/planning/surface/tests/ui_page.js, surface.test.sh: browser case asserting the banner label; the revision of Q3 now passes --why; skipped-check count 556 to 557
  • plugins/planning/skills/interview/context/surface.md: documents both refusals and says a revise/reply why is shown as Claude's reason, never to be written as Your note (SKILL.md untouched)
  • .changes/planning/fix-interview-text-accuracy-7754a1c3.md: planning patch fragment

Verification

The run reports:

Left out: the items under Not verified.

Related

#7754

@github-actions

Copy link
Copy Markdown
Contributor

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

Security review of PR #8114 at ac57cae: no security issues found.

I read the full diff, 7 files in the planning plugin's interview surface. I did not read the instruction exception register, because the instruction-surface edit only adds clarifying text and removes no rule.

  • plugins/planning/surface/index.html
    • The revision banner now prepends a constant <b>Claude's reason:</b> label.
    • q.revised still goes through inline() exactly as before, so no new unescaped data reaches innerHTML.
  • plugins/planning/surface/round.py
    • The new supersede check calls find(doc, q["supersedes"]) only after the existing known reference check has confirmed the id exists, so there is no lookup crash.
    • The comparison uses a plain string normalisation and casefold, with no shell, path, regex or template use.
    • A missing short becomes the string "None" and only affects the comparison.
    • The check refuses before any write, which the new test confirms: the document stays unchanged.
    • The duplicate-id message is a text-only change.
  • plugins/planning/skills/interview/context/surface.md
    • The edits only document the new refusals and the "Claude's reason" label.
    • No rule is removed or softened.
  • Tests and changelog fragment: nothing security-relevant.

No tokens, secrets, authorization logic or Actions workflow files are touched.

@github-actions

Copy link
Copy Markdown
Contributor

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

No findings on #8114 (7 files).

I read the full diff and the closing issue #7754. I could not run the test suites: the run-test-file wrapper needed approval in this lane. The pass counts in the PR body are author-claimed and I did not confirm them. The browser case needs playwright-cli, which I did not run.

Checked against the diff and code

  • Superseding-short refusal (plugins/planning/surface/round.py:63): it runs after the required-field check and the unknown-reference check, so the superseded question exists and short is non-empty when it is compared. The comparison ignores case and whitespace. add-round goes through the same add_question, so it gets the same refusal.
  • Duplicate-id message (plugins/planning/surface/round.py:407): it names the first duplicate and says nothing was written. test_duplicate_id_says_nothing_was_written_and_names_the_first shows the document is unchanged when the second op of three is the duplicate.
  • Banner (plugins/planning/surface/index.html:1126): a revised of true or the default text still shows no label. A custom why gets "Claude's reason:". The why value passes through inline() as before.
  • Skipped-check count: the browser skip count goes from 556 to 557, matching the one new browser assertion.
  • Closing-issue criteria
    • test_round.py has cases for both the short-title refusal and the duplicate-id message.
    • The browser suite has a case for the banner label (plugins/planning/surface/tests/ui_page.js:96).
    • The surface spoke tells the session not to write "Your note" in revised, and SKILL.md is untouched.
    • A planning changelog fragment is present.

Not verified by me: the changelog fragment validity and the skill checks.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path enqueued this pull request at head ac57caee7f45481e9e96a0b5d89519517284e9ba.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Oct 18, 2026
Merged via the queue into main with commit 2b9e9b2 Oct 18, 2026
36 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-7754-39105876572-1 branch October 18, 2026 14: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): keep interview titles, revision banners and apply refusals accurate

0 participants