Skip to content

fix(planning): clean up interview export and history text defects - #11635

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-11587-41216686921-1
Oct 31, 2026
Merged

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

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #11587

Summary

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

Fixes the six text defects from #11587 in the planning interview surface. 1: a revise that changes checkedAgainst now logs 'Revised constraints checked.' 2: a restated deferred or planningOwned bullet that only says 'none' is dropped. 3: a carried row's why: line now sits under the restated constraints or decisions line that carries it. 4: sync-ledger puts a blank line between rows written into an empty register and the text after them. 5: export-brief keeps the restated goal's '-' lines (Intent, Vision, tiebreak) as bullets under the outcome paragraph. That ends the conflict between 'rewrite the Goal after every export' and 'an edit after Confirm needs a new restate'. I picked this means over a docs-only change because the --brief gate already reads the Goal paragraph only up to the first list item (scripts/check-open-questions.sh brief_fields, lines 260-294), and SKILL.md Step 4 is hash-pinned by tests/interview-defenses.test.sh. 6: the revise op row in surface.md now lists checkedAgainst.

Not verified

  • The Python unit suites (test_exporters.py, test_round.py) were not executed here because the lane allows no interpreter. They were checked by reading and by the reviewer's hand trace, and are left to the PR's CI.
  • new-changelog-fragment refused on a detached HEAD (it names the fragment from the branch), so the fragment was written by hand in the existing lane naming shape. check-changelog-fragments accepts it.
  • check-affected skipped typos (not installed), validate-plugins sub-checks and changed-skills (they run code from the checked tree), and listed many CI-only checks. Those are left to the PR's CI.
  • Behaviour note from review: a restated goal whose prose line equals the page title, followed by bullets, now reads as the placeholder Goal at the --brief gate (brief=placeholder). The old export folded the bullets into the paragraph and hid it. check-open-questions.test.sh:907-918 already treats tha
  • sync-ledger does not repair a ledger that an earlier sync already left with rows directly followed by prose. Rows that already exist are replaced in place, unchanged from before.
  • Tidy passes 2 and 3 found nothing to change, and the ai-slop findings file was not persisted (report-only for this line-scoped tidy run).

Fix

  • plugins/planning/surface/round.py: REVISED_WORDS maps checkedAgainst to 'constraints checked' in the revise history text. The machine-read 'changed' list is unchanged.
  • plugins/planning/surface/exporters.py: NONE_BULLET skips a bare 'none' restated deferred/planningOwned bullet. New carries/why_of/with_whys helpers put a carried row's why: under the restated line that carries it, and constraint_lines no longer writes a lone 'Qn why:' bullet. goal_lines keeps the go
  • plugins/planning/surface/test_exporters.py: new tests for the none deferred bullet, the Goal bullets, a why: under a restated Decisions line, and sync-ledger into an empty register with prose. The existing why-line test's expected Constraints output moves the Q2 why: under its restated line.
  • plugins/planning/surface/test_round.py: the checkedAgainst revise test now asserts the history line's changed list and its text 'Revised constraints checked.'
  • plugins/planning/skills/interview/context/surface.md: revise row lists checkedAgainst. Confirmation-gate step 1 and Wrap-up step 2 now say the export keeps the Goal bullets, with no hand edit after export. The restate row notes a bare 'none' bullet is skipped. Wrap-up step 2 notes where a carried ro
  • .changes/planning/work-resolve-issue-issue-11587-7c3a1f52.md: new patch changelog fragment (Fixed).

Verification

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

  • 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 16 changelog fragment(s) under .changes/ are valid (run before and after tidy).
  • /home/runner/work/claude-code-plugins/claude-code-plugins/.lane/checks/bin/check-affected: 12 passed, 6 skipped over 6 changed files (run after the edits, after tidy, and after the review fixes).
  • ai-slop detect.sh on the fragment and surface.md: 0 findings across 2 files.
  • Fresh-context review subagent (local venue, no review-venue.txt): no correctness bugs found. It traced every new and changed test against the code and helpers and judged that each passes, and found no existing test in test_exporters.py, test_round.py or surface-checks.sh that the change breaks. It f
  • Grep for line citations of exporters.py, round.py and surface.md: only test fixture strings, so no citation drifts.
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41216686921

Left out: the items under Not verified.

Related

#11587

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

Copy link
Copy Markdown
Contributor

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

Security review of #11635 found no security issues, so there are no findings and no hold.

I read the whole diff (6 files) and the PR context. None of the changed files match a trusted path, and nothing touches a trust control, plugin manifest, workflow, token scope, kill switch or merge hold.

  • plugins/planning/surface/exporters.py:
    • The new code is text formatting only: goal_lines, NONE_BULLET, carries, why_of, with_whys, and a blank-line fix in sync_ledger.
    • It takes no new input source and runs no commands. It does no path handling or network access, and it handles no secrets.
    • The two new regexes (^\s*[-*+]\s and ^- none\.?$) are linear, so they carry no ReDoS risk.
    • Restated goal text is user-supplied page data, as it was before. The export still writes it as markdown into PLAN.md, and the change adds no new sink.
    • The sync_ledger change only inserts an eol line. It doesn't alter which lines are dropped or replaced, and it keeps the existing CRLF handling.
  • plugins/planning/surface/round.py: REVISED_WORDS only changes the display text of a history line. The machine-read changed list is unchanged.
  • Tests, surface.md and the changelog fragment: these are docs and tests only.
  • Instruction-surface lens (surface.md):
    • The Confirmation-gate and Wrap-up edits drop the manual step of redoing the Goal bullets after export. The exporter now does it.
    • The --brief gate that reads the Goal paragraph is unchanged. The PR notes a placeholder-Goal behaviour change at that gate. It is a correctness edge case, not a security one.
    • No guardrail is removed, and nothing in the protected classes is weakened.
  • PR context: it holds no embedded instructions aimed at the review lane.

manifest fields: none hit.

critical-findings: 0

Spend: none. The change touches no billing, turn limits, models or schedules.

@github-actions

Copy link
Copy Markdown
Contributor

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

No blocking or advisory findings. I read the whole diff (6 files) and the closing issue #11587 by hand. I did not run the Python suites, so every trace below is from reading, not a run. The PR's own verification claims are author-claimed and unverified by me.

Issue #11587 criteria, each traced to the code:

  1. REVISED_WORDS in round.py renames checkedAgainst only in the history text. The machine-read changed list is unchanged. The test in test_round.py asserts both.
  2. NONE_BULLET in exporters.py skips a bare - none or - None. in the restated deferred and planningOwned. The - none fallback when nothing is left is unchanged. The test covers both.
  3. carries, why_of and with_whys put the why: under the restated line that carries the row. carried_rows and with_whys use the same carries predicate, so a row that skips its own Constraints line gets its why: under the carrying line. The given set stops a row carried by both Constraints and Decisions from showing its why: twice. marked_decisions only appends to lines, so a carried line stays recognisable.
  4. sync_ledger adds a blank line only when the register had no rows (not drop) and non-blank text follows. It reuses the file's own line ending, so CRLF files are handled. Registers with existing rows are replaced in place as before.
  5. goal_lines keeps the prose as one paragraph and the - lines as bullets. surface.md is updated to match, with no hand edit after export.
  6. The revise row in surface.md now lists checkedAgainst.

Each of items 1 to 4 has a test that would fail if the fix were reverted. The existing Q2 why: test is updated to the new placement.

Notes (not counted as findings):

  • The PR body discloses that a restated goal whose prose equals the page title, followed by bullets, now reads as the placeholder Goal at the --brief gate. That trade-off is documented and consistent with the existing check-open-questions.test.sh treatment.
  • Manifest checks: no plugin.json or marketplace.json change. The fragment is bump: patch for a text-only fix, which fits.
  • No cost or security hold. No trusted-path file in this diff changes a gate or a trust boundary.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head f235060e59f62e78902fd8f4322ae4af90881575.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Oct 31, 2026
Merged via the queue into main with commit 5cc61a1 Oct 31, 2026
48 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-11587-41216686921-1 branch October 31, 2026 16:54
@github-actions

Copy link
Copy Markdown
Contributor

Post-merge mutation testing

Killed 2, survived 1, timeout 0, no coverage 0, invalid 0, not run 4.
Covered-code score 67%; mutation score 67%.

File Killed Survived Timeout No coverage Invalid Not run
plugins/planning/surface/exporters.py 0 0 0 0 0 3
plugins/planning/surface/round.py 0 0 0 0 0 1
plugins/sql-server/src/executor.mjs 2 1 0 0 0 0

Surviving mutants

Location Operator Disposition Cause
plugins/sql-server/src/executor.mjs:20 ROR productive input-gap

The run's summary has the full report.

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): clean up interview export and history text defects

0 participants