Skip to content

fix(planning): state the register row shape the interview's own gate grades - #17340

Merged
melodic-automation-lanes[bot] merged 7 commits into
mainfrom
work-resolve-issue/issue-17279-44424519443-1
Nov 19, 2026
Merged

melodic-automation-lanes[bot] merged 7 commits into
mainfrom
work-resolve-issue/issue-17279-44424519443-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Refs: #17279

Summary

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

Audit of /planning:interview cost and bookkeeping friction, measured against the skill text and the run the issue describes (7 rounds, 2 sweeps, 34 sweep items). This PR fixes the bookkeeping rules. The other proposals need an owner decision and are listed under remaining.

Friction report (each point: measured cost, then proposed change):

  1. Pre-round contradiction pass. Cost: one fresh-context subagent before every round after the first (assumption-sweep.md "Pre-round contradiction pass"), so 6 subagents for 7 rounds, each given every answered row and confirmed constraint. Proposal: run it only for a draft round with a recommendation whose Checked against line or reconciles list names an answered row or confirmed constraint. It is not one of the three gates, so they are unchanged. Not built: owner call.
  2. Assumption sweeps and quote checks. Cost: one fresh-context sweep subagent per sweep, given the whole ledger, Brief draft and composed artifacts, repeated until a sweep adds no open row (2 here). Each sweep with fact-settled items adds one quote-check subagent. Total for the run: 8 to 10 fresh-context passes (6 + 2 + up to 2). Proposal: scope a follow-up sweep to the rows the previous sweep's answers changed, which the When section already implies, and say so in the dispatch list. Not built.
  3. Design- and plan-level sweep items reach the owner as rows. Cost: every decision-class item becomes an open register row asked in a round (assumption-sweep.md Disposition). check-open-questions.sh:598 rejects a deferred: disposition for a decision item, so the owner had to answer items they had already sent to design (several of the 34). Proposal: a decision item below the skill's level (SKILL.md: interfaces are /planning:design's, files /planning:plan's), or one a quoted owner ruling already routed there, becomes a register row written deferred with arbiter /planning:design. It still counts for the register gate and still must appear in the Brief's Deferred questions, which --brief cross-checks. The confirmation gate is untouched. Not built: it changes what the owner sees, so it needs an owner decision.
  4. Round field on re-asked questions. Cost: --procedure fails any round field other than exactly 'round <N>' (check-open-questions.sh:874-879). The skill never said which round a re-asked question keeps. Fixed: loop.md now says the field keeps the round the row was first written in.
  5. Sweep item numbering. Cost: --procedure requires S ids from S1 within each sweep (check-open-questions.sh:608-617). Fixed: assumption-sweep.md now says the ids restart at S1 in each sweep.
  6. Out-of-order rows. Cost: a Q id lower than the row above it makes the register ungradeable (exit 2) with or without --procedure (check-open-questions.sh:783-784). Fixed: loop.md now says to append each new row, late commitment and sweep rows included, at the end of the register.
  7. Re-ask-only rounds (found in the audit). Cost: --procedure needs a row in every round from 1 to…

Remaining work

  • Decide whether design- or plan-level sweep items (and items a quoted owner ruling already sent to design) become register rows written deferred with arbiter /planning:design instead of open rows the owner answers (report item 3).
  • Decide how a round that only asks registered rows again is numbered, or relax the --procedure round contiguity check (report item 7).
  • Make check-open-questions.sh --procedure accept the '(added in round <N>)' round cell the page exporter writes, or change the exporter (report item 8).
  • Decide whether the pre-round contradiction pass runs only for rounds whose recommendations depend on answered rows or confirmed constraints, and scope follow-up sweeps to changed rows (report items 1 and 2).

Not verified

  • tidy pass 5 (ai-slop): detect.sh could not run, because this lane's Bash runs only the named wrappers. The changed lines were read against the rubric by hand, with no findings. Passes 1-3 had no code lines to work on. Pass 4 made two wording edits.
  • check-open-questions.test.sh and surface/test_round.py were not run here (no interpreter allowed); the docs-only change touches no script. Left to the PR's CI.
  • check-affected skipped comment-hygiene (fetch blocked), size-check (script missing in the lane) and typos (not installed); markdownlint was skipped by check-changed-skills. Left to the PR's CI.
  • Owner turns and the number of procedure-check failures in the 2026-11-18 run were not measured: that run's ledger is not in the repository.
  • review-venue.txt was absent, so the review ran as one local fresh-context subagent.
  • The working tree also holds untracked runner files (.bashrc, .profile, .gitconfig, .idea, .vscode, .mcp.json and others) that this run did not create or change; they are not part of the change.

Fix

  • plugins/planning/skills/interview/context/loop.md: new paragraph 'Write each row in the shape the gate grades' in the open-question register section. In the terminal lane, the round field reads exactly round <N> (the round the row was first written) and keeps it when the question is asked…
  • plugins/planning/skills/interview/context/assumption-sweep.md: 'Record every item' now says to keep the sub-agent's S<N> ids, which restart at S1 in each sweep.
  • .changes/planning/work-resolve-issue-issue-17279-44424519443-1-08c14d77.md: patch changelog fragment for the planning plugin.

Verification

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

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • read plugins/planning/scripts/check-open-questions.sh: round field regex at :874, round contiguity at :1049-1060, Q-order row_error at :783-784, sweep S-id contiguity at :608-617, decision-item deferred refusal at :598; the new text matches each
  • grep 'added in round' under plugins/planning: exporters.py:715-722 and test_round.py:4219 confirm the page export writes a round cell --procedure rejects (reported, not changed)
  • check-changelog-fragments: all 18 fragments valid (run after the final edit)
  • check-changed-skills: interview PASS, 0 errors, 3 pre-existing size warnings (run after the final edit)
  • check-affected: 14 passed, 9 skipped over 3 changed files (run after the final edit)
  • fresh-context review subagent over the whole diff: 9 findings (1 high: the page-lane round cell contradiction). All were addressed by scoping the rule to the terminal lane, dropping the re-ask round-numbering rule (now remaining item), using 'first written', stating the exit code of the order…
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44424519443

Left out: the items under Not verified.

Related

#17279

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

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/fix-ci
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none (read lane)
Run 44441823736

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-patch
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed 06cd66f
Run 44441823736

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed d255cc7f7f54f8afb971324864548a03f2bd1309: read 4 of 4 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #17340 (blocking only)

I found no security issues.

Scope: I read every hunk of all 4 changed files in the full diff. None of them matches a trusted-path glob.

What changed:

  • plugins/planning/skills/interview/context/loop.md gets one new paragraph, "Write each row in the shape the gate grades". It says the round field reads round <N>, that the field keeps the round the row was first written in, and that each new row goes at the end of the register.
  • plugins/planning/skills/interview/context/assumption-sweep.md gets one clause: the sub-agent's S<N> ids are kept and restart at S1 in each sweep.
  • plugins/planning/tests/interview-defenses.test.sh updates the SHA-256 values of the two pins to match the edited text and adds a comment line for each. This head also adds a comment line for the merge from main. The pinned section markers and files are the same as before.
  • A patch changelog fragment is added.

Instruction surface: the change only adds bookkeeping guidance. It removes, narrows or weakens no standing instruction. The pin hashes now cover text that only grew by the added row-shape guidance, and the ask-time writes, the gate, the unattended ladder and the sweep's dispositions are unchanged. Since the change is docs and a test, it reaches no credentials and runs no code.

Trust controls and manifests: the change touches no trust control, workflow, token request or plugin manifest.

Prior findings: this lane's earlier review had 0 findings, so nothing is posted again. This lane already reviewed an earlier head, so this review reports only CRITICAL and IMPORTANT findings.

Embedded text: the PR context contains no instruction aimed at this lane.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed d255cc7f7f54f8afb971324864548a03f2bd1309: read 4 of 4 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #17340

No findings. This lane already reviewed an earlier head (1742862c) of this pull request, so this review looked only for blocking findings.

What changed since the last review. Main was merged into the branch. The change itself is the same as before:

The cross-reference "Commitment rows written after later ids exist" still resolves in the merged loop.md, at L325.

Not checked. I could not recompute the new SHA-256 pin hashes because this lane has no shell. The PR's CI test run settles them. The author's verification is author-claimed and I did not verify it, including the test runs the PR says it skipped.

Closing issue. The PR says Refs: #17279 and closes no issue. The context file has no closing-issue section, so there were no acceptance criteria to check.

Trusted paths. No changed file matches a trusted-path glob.

Embedded instructions. I found none in the PR context or the prior-findings file.

Prior findings. The only earlier post is a summary comment with no findings, so nothing carries forward.

Spend. None. The change edits only docs, a test and a changelog fragment.

Loosened-check verdict: fail. This is the default: the prompt gave no loosened_check_verdict: or loosened_check_patterns: line, so there are no consumer entries. It also gave no loosened_check_decision_record: line, so I did not check the citation requirement. The pin updates replace hashes because the pinned text changed. They do not loosen any assertion.

Verifier dropped 0 of 0 candidates.

@melodic-automation-lanes

melodic-automation-lanes Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 1742862ce4a346210014513c15da45f1b2686bba. No person needs to act: a lane clears this reason, and the next scheduled run judges it again.

a pr-unblock lane stopped its head (pr-unblock/conflict is failure), which clears when the lane runs
  again

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/fix-ci
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none (read lane)
Run 44443556092

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-patch
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed a76e778
Run 44443556092

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 19, 2026
@kyle-sexton

Copy link
Copy Markdown
Member

A session is reworking this PR to fix the comment-lint failure in Lint Repo. It set the do-not-merge label to keep the lane off it meanwhile and will remove the label when the rework is pushed.

The comment lint's necessary posture passes a comment that links its
outside constraint; a bare #17279 is not a link, so Lint Repo failed on
interview-defenses.test.sh:583.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 19, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head fa6c3f1f02c1a7fb01f444a106740225143de382, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=LOW demote=false head=fa6c3f1f02c1a7fb01f444a106740225143de382 rubric=10.4.0 rater=claude-opus-5-5 checker=claude-opus-5-5

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 19, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 19, 2026
@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 19, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 19, 2026
@melodic-automation-lanes

melodic-automation-lanes Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor Author

Unattended merge: the merge queue removed head fa6c3f1f02c1a7fb01f444a106740225143de382 4 times for failed checks, so the pr-merge lane will not enqueue it again. A push resets the count.

Failing merge_group runs:

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 19, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 19, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 19, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 19, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 1742862ce4a346210014513c15da45f1b2686bba, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=1742862ce4a346210014513c15da45f1b2686bba rubric=10.4.0 rater=claude-opus-5-5 checker=claude-opus-5-5

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 19, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 19, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/resolve-conflicts
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none (read lane)
Run 44589887209

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-conflict-patch
Model rung 0
Leg base
Run job success
Activity step skipped
Commits pushed none recorded
Run 44589887209

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/report-escalation
Model rung 0
Leg base
Run job failure
Activity step skipped
Commits pushed none recorded
Run 44589887209

Failed GitHub API calls

No failed call recorded by the run job's scripts.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/resolve-conflicts
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none (read lane)
Run 44593041953

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-conflict-patch
Model rung 0
Leg base
Run job success
Activity step skipped
Commits pushed none recorded
Run 44593041953

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes

melodic-automation-lanes Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped resolve-conflicts on this pull request: the lane could not resolve every conflict. The lane sets no label: the run ends in a failing pr-unblock/conflict 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=17340 -f activity=resolve-conflicts

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/report-escalation
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44593041953

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/resolve-conflicts
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none (read lane)
Run 44595897800

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-conflict-patch
Model rung 0
Leg base
Run job success
Activity step skipped
Commits pushed none recorded
Run 44595897800

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/report-escalation
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44595897800

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head d255cc7f7f54f8afb971324864548a03f2bd1309, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=LOW demote=false head=d255cc7f7f54f8afb971324864548a03f2bd1309 rubric=10.4.0 rater=claude-opus-5-5 checker=claude-opus-5-5

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 19, 2026
Merged via the queue into main with commit 4e6ec28 Nov 19, 2026
74 of 77 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-17279-44424519443-1 branch November 19, 2026 20:28
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 4e6ec28e22af806c336bb774b1af0084029b84d8; later checks count it verified from this comment.

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.

1 participant