Skip to content

fix(planning): name the plan view template and the skip-token place - #13808

Merged
kyle-sexton merged 2 commits into
mainfrom
feat/7296-planning-plan-paths
Nov 6, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
feat/7296-planning-plan-paths

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Refs: #7296

Summary

Two planning eval findings from the #7296 cutoff runs:

  • plan-pasted-unknown-choice-rejected was INVALID twice. When page-input.mjs could not start, every with-arm run searched the whole plugin (Grep glob=**/*plan*.html) for the plan view's data-rv-choice values, and the eval sandbox denied it. The skill named no file for those choices.
  • plan-light-skips-reviewer scored 0 on both arms. Every with-arm run stopped at the Open Decisions block (SKILL.md "Open Decisions surfaced BEFORE plan body") because the prompt left the slugify behavior open, so Step 3 never ran. Separately, "the plan's review record" that should carry the skip token was defined nowhere.

Fix

  • skills/plan/SKILL.md, plan view paragraph: a pasted page-input block follows rendered-view.md "Reader input", and the plan view's choices are the data-rv-choice selects in ${CLAUDE_PLUGIN_ROOT}/skills/plan/templates/plan-view.html. When page-input.mjs cannot run, read that one file and do not search the plugin.
  • skills/plan/SKILL.md Step 3: under light/off, the reply that reports the step and the Step 5 presentation state verification: skipped (<level>).
  • evals/plan-light-skips-reviewer: the scaffold seeds a settled draft PLAN.md and a design early exit, and the prompt continues from Step 3. The grader is unchanged.

Verification

Local claude plugin eval pairs, 3 runs per arm. Before = origin/main with this PR's evals restored; after = head 8b786eabe1.

Pair 1 (after pla1, before plb1): both runs VALID, with the same scores.

Case with without
plan-light-skips-reviewer 1×3 0×3
plan-marker-* (4 cases) 1×3 0.67×3

Pair 2 (after pla2, before plb2): after VALID.

Case after: with before: with
plan-marker-inside-quote, posted-through-app, trusted-human 1×3 no denial
plan-pasted-approve-lock-not-approval 0.8 / 1 / 0.6 0.8 / 0.6 / 0.8
plan-pasted-unknown-choice-rejected 1×3 INVALID

The before side is INVALID only on the plugin-root Grep denial in plan-pasted-unknown-choice-rejected (2 of 3 with-arm runs), the defect this PR removes. Without that case the before side has no denial, so the pair counts, with that case reported alone as the fix's evidence: after, all 3 with-arm runs score 1 and none is denied.

validate-cases.py plugins/planning: 0 FAIL. check-affected.sh --tests: green.

Remaining on #7296

The other plugins' rows in the #7296 cutoff table.

Related

🤖 Generated with Claude Code

kyle-sexton and others added 2 commits November 6, 2026 13:46
The plan skill named no path for the plan view's choices, so a run whose
page-input.mjs check could not start globbed the whole plugin for
*plan*.html. It now names skills/plan/templates/plan-view.html.

Under verification: light, "the plan's review record" was defined
nowhere; the skip token now goes in the Step 3 reply and the Step 5
presentation. plan-light-skips-reviewer left the task's decisions open,
so every run stopped at Open Decisions before Step 3; it now seeds a
settled draft and continues from Step 3.

Refs: #7296

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 6, 2026 20:17
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-06T20:17:40.858509Z
We couldn’t complete this review. Comment @codex review to try again.
4bc8c68 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

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

Security review: PR #13808, head 4bc8c68

I found no security issues.

critical-findings: 0

I read all 4 changed files in full in .claude-lane/pr.diff. None of them matches a trusted-path glob, and the diff touches no plugin manifest, workflow, action or trust control.

  • plugins/planning/skills/plan/SKILL.md
    • Plan view paragraph: the edit only adds instructions. A pasted page-input block now follows rendered-view.md "Reader input". When page-input.mjs cannot run, the skill reads the choices from a single fixed in-plugin file (${CLAUDE_PLUGIN_ROOT}/skills/plan/templates/plan-view.html) and does not search the plugin directory. That makes the read smaller, not larger: it has no path built from user input, adds no tool grant and doesn't change how pasted input is treated.
    • Step 3: the edit moves where the verification: skipped (<level>) token is stated, from "the plan's review record" to the Step 3 reply and the Step 5 presentation. Under light/off, "dispatch no reviewer and never stress-test inline" is unchanged. I checked it under the instruction-surface lens: no rule is deleted or softened, so no protected class loses its enforcement. The register file was not needed, because nothing was removed.
  • plugins/planning/evals/plan-light-skips-reviewer/scaffold.sh: this is eval-sandbox setup. It writes a fixed draft PLAN.md and a design-resolution file from single-quoted heredocs, so nothing gets expanded inside them. The ${text//'[STATUS]'/[TODO]} substitution acts on file content the script just wrote itself, with no outside input.
  • plugins/planning/evals/plan-light-skips-reviewer/prompt.md: the prompt text and the description/expected-outcome metadata changed. allowed_tools, max_turns and timeout_seconds are unchanged.
  • .changes/planning/feat-7296-planning-plan-paths-4c1e9a7b.md: a changelog fragment, prose only.

The PR context file contains no embedded instructions aimed at this lane.

Spend: none beyond the existing eval configuration, which this PR leaves unchanged.

@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

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

Code review: no findings

I read every hunk of all 4 changed files in the diff and checked the change against the PR description. The PR refs #7296 but closes no issue, so there are no acceptance criteria to check.

plugins/planning/skills/plan/SKILL.md

  • Plan view paragraph (L112). Both things it names exist at head:
    • skills/plan/templates/plan-view.html holds the data-rv-choice="verdict" select (L156).
    • reference/rendered-view.md has a ### Reader input section (L174), which matches the description's claim.
  • Step 3 (L231). The skip token now goes in "the reply that reports this step, and the Step 5 presentation". This replaces "the plan's review record", which nothing defined: no other file in plugins/planning mentions a review record. The new wording fits docs/contracts/verification-level/README.md L24, which says the token is written "where the verdict would go". The plan-reviewer's verdict is reported in conversation, so that is the right place.

evals/plan-light-skips-reviewer

  • scaffold.sh. It seeds a settled draft PLAN.md and a design-resolution.md that records an early exit.
    • The heredoc is quoted, so nothing in it expands.
    • ${text//'[STATUS]'/[TODO]} treats the quoted pattern literally, so it swaps the placeholder for [TODO] as intended.
    • $(cat …) drops the trailing newline and printf '%s\n' puts it back.
  • prompt.md. The new prompt resumes at Step 3, so it avoids the Open Decisions stop described in the PR. The description and expected_outcome now match where the token is stated.
  • Grader. It is unchanged. It is a regex for verification: skipped (light), which the new prompt can reach.

Changelog fragment. bump: patch fits a doc and eval fix in a skill. No plugin manifest changed, so no manifest checks apply.

Unverified. The eval pair results (1×3 against 0×3, and the INVALID-to-VALID flip on plan-pasted-unknown-choice-rejected), validate-cases.py and check-affected.sh come from the PR author. I could not run them in this lane, so they are unverified.

Spend. The eval is still runs: 3 / max_turns: 60, so it spends the same eval-run credit as before. That is not a hold.

No embedded instructions found in the PR context or prior-findings files.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 6, 2026
Merged via the queue into main with commit 832a38c Nov 6, 2026
70 checks passed
@kyle-sexton
kyle-sexton deleted the feat/7296-planning-plan-paths branch November 6, 2026 20:29
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