Skip to content

fix(planning): correct interview skill docs, shrink required reading, smooth round tooling #6050

Closed
3 of 3 issues completed

Description

@kyle-sexton

Part of #6049

Problem

Docs, schema, size and authoring-tool findings E10, E11, E12, I9, Q1, Q2, Q3, Q4 from the audit, plus the boolean user_config report from a second session (folded into E10). Paths relative to plugins/planning/; checked on origin/main 6f59096.

E10, low. The user_config substitution record is wrong, and it cites a retired doc slug

  • skills/interview/SKILL.md:90 says "an unset key with a default substitutes that default", calling that "a reading of" the reference's default row. SKILL.md:87 passes --emoji-markers '${user_config.use_emoji_question_markers}'; SKILL.md:151 gates the terminal anchors on the same token. surface/round.py:1785-1787 (emoji_flag) maps anything other than true/1/yes/on, an unexpanded token included, to false.
  • Upstream, fetched this pass: https://code.claude.com/docs/en/plugins/manifest-reference.md, "Reference a saved value": "${user_config.KEY}: substituted in MCP server config, LSP server config, exec-form hook args, and skill and agent content. In skill and agent content, only non-sensitive values are substituted, and a sensitive value there becomes a placeholder". The heading speaks of saved values; the page states no type restriction (nothing says a boolean is not substituted) and says nothing about a default substituting for an unsaved key. The userConfig table defines default as "Value used when the user provides nothing".
  • Two observations, 2026-10-03:
    1. Audit session (05:08Z item): the token arrived unexpanded while use_emoji_question_markers was not saved in user-scope pluginConfigs (only "surface": "page"), and surface did expand. Consistent with the doc: only saved values substitute. SKILL.md's record is the defect. Project and local settings were not probed.
    2. A later home-rooted session (handoff item 20261003-055631, kept separate below): with use_emoji_question_markers: true saved as a JSON boolean in [email protected], the skill body still showed the literal token while the string surface in the same block substituted to page. User settings on this machine now hold "surface": "page", "use_emoji_question_markers": true (read this pass). If the value was saved before that session loaded the skill, this contradicts the doc ("only non-sensitive values are substituted", no type exception) and is a Claude Code harness behavior, not a planning defect. Not reproduced here: the observation could also come from saving the value mid-session after the skill loaded. No matching upstream report was found (gh search issues --repo anthropics/claude-code for "user_config boolean substitution" and "user_config skill content not substituted": no results).
  • Effect: the emoji preference is honored only by accident of the fail-safe. When unset, false is right; when saved as true and not substituted, the user's choice is silently dropped.
  • SKILL.md:90 and :478 cite en/plugins-reference.md anchors. The audit found that slug absent from https://code.claude.com/docs/llms.txt and serving byte-identical content (a retired alias); the section now lives at plugins/manifest-reference ("Reference a saved value", "Where each variable resolves"). README.md:169-170 cites the same old slug. The llms.txt claim was not re-checked this pass.

E11, low. The missing short refusal names no question, and short is missing from the documented round shape

  • surface/round.py:314 sys.exit(f"missing {req}"). context/surface.md:27 lists recommendation, basis, alternatives, commits, dependsOn but not id, short or title. Reproduced in the audit: a one-question round-1.json lacking short gave add-round stderr missing short, exit 1.

E12, low. Binary questions fail the two-alternative minimum

  • round.py:322-327 refuses with "every question needs at least 2 genuine alternatives besides the recommendation (R-I)" (reproduced in the audit). SKILL.md's per-question shape shows alternatives but states no minimum. The mechanism tripwire (SKILL.md:363, "now or at planning") is binary, so Q8 was padded with "Settle only the CI/CD data sources now, and leave the rest to planning", a third option nobody asked for.

I9, medium. About 195 KB of required reading per page run, and the gates sit outside what survives compaction

  • On main: SKILL.md 498 lines, 71,322 bytes; context/surface.md 51,100; context/loop.md 50,418 (audit also counted assumption-sweep.md 4,413, session-config.md 9,288, recommendation-basis.md 1,707, templates/checklist.md 6,911, relentless-mode.md 1,203). SKILL.md passes the 500-line tip only because its lines are long; it crosses 20,000 bytes near line 145. The Step 3 register gate (SKILL.md:371), confirmation gate (:382) and Step 4 persist (:395) sit past that point. The coverage-prompt exemption appears 14 times across files, the post-confirm rule 4 times.
  • Upstream (https://code.claude.com/docs/en/skills.md, fetched by the audit 2026-10-03): "so every line is a recurring token cost.", "Claude Code re-attaches the most recent invocation of each skill after the summary, keeping the first 5,000 tokens of each.", "Keep SKILL.md under 500 lines. Move detailed reference material to separate files."
  • Inferred (about 4 bytes per token): about 49k tokens of required reading; compaction keeps about SKILL.md lines 1 to 145. Unverified: that Read-loaded context files are not re-attached after compaction (no doc span found). Note: feat(planning): restate the interview gates in an early Gates block #5771 added an early Gates block; the audit still found the Step 3 and Step 4 commands outside the first 5,000 tokens.

Q1, medium. Worktree-isolated sessions refuse the documented compound round step

  • SKILL.md:90 and surface.md:27 say to write the register's open rows "in the same step". A chained add-round && sync-ledger && grep with shell variables was refused by the worktree guard ("this command runs bash in a plain command; what it reads or is handed as shell text cannot be shown not to run git"); the same guard refused a python call with a $P variable and a pipeline with ${PIPESTATUS}.

Q2, low. Lint warnings arrive only after the write

  • lint_questions (round.py:480) only warns; validate checks existing files, not a candidate round. R12 warnings (200 characters before the first sentence break; basis over 3 sentences) fired several times after the write, each forcing a revise.

Q3, low. Questions added mid-round carry an earlier round label

  • Q10 and Q11 were added at 03:20:20Z, after round 2 was posted at 03:18:54Z, and carry round 1, stage frame, per the stage inheritance rule (surface.md:27). The register's round column then misstates when they were asked.

Q4, low. Inline python edits of round files are blocked by a sibling guard

  • The guardrails plugin's block-hook-bypass refused a python inline write ("python inline-code file write bypasses Write/Edit hooks"); the agent fell back to four Edit calls. surface.md:20 says ops go through Write and apply but does not cover editing round files.

Boolean user_config report (from handoff item 20261003-055631-planning-interview-page-inline-references.md, second defect)

Kept separate so later updates to that item fold in here. Verbatim claim: "use_emoji_question_markers: true (user settings [email protected]) was not substituted into the skill body: the text kept the literal ${user_config.use_emoji_question_markers} token, while the string option surface in the same block substituted to page. Either boolean userConfig values do not substitute or the token form differs". Assessment in E10 above: the token form matches the doc, so this is either harness behavior for booleans (upstream) or a timing artifact; not a planning text defect beyond the wrong record.

Evidence

Verified this pass: the manifest reference text above; SKILL.md:87, :90, :151, :363, :478; round.py:314, :324, :480, :1785-1810; surface.md:27; file sizes; user-scope pluginConfigs for planning. From the audit, restated: the E11 and E12 reproductions, the guard refusal texts, the timings. Not researched (all eight findings).

Proposed approach

  • E10: rewrite the record: only saved values substitute; an unset key arrives as the literal token, which the start command and round.py tolerate. Re-cite plugins/manifest-reference and its anchors in SKILL.md and README.md, with an as-of date and recheck trigger per .claude/rules/skill-bodies-state-current-rules.md. Optionally have /planning:setup save every key explicitly. For the saved-boolean case: first reproduce in a fresh session with the value saved before launch; if the token still arrives unexpanded, record it as an upstream harness behavior and report it to anthropics/claude-code with that repro (a human decision; not filed from here). A plugin-side workaround (for example a string option with on/off) would change the saved type for existing users; weigh it only after the repro.
  • E11: refusal refused: Q1 missing short (the one-line label the page lists); name id, short, title and stage in surface.md:27; optionally ship a round template JSON.
  • E12: state the minimum in SKILL.md's per-question shape, or allow a yes/no question one alternative (for example binary: true) keeping R-I's collision check.
  • I9: one-line "after compaction, re-read context/surface.md" near the top; Step 3, Step 4 and export commands in the top Gates block; move the EARS ladder (SKILL.md:245-311) and the repeated coverage-prompt exemption into one context file each; split surface.md into a page quickstart and a reference file.
  • Q1: surface.md says to run each round.sh call as its own Bash call with literal single-quoted paths; or add add-round --sync-ledger <ledger> so the step is one command.
  • Q2: add-round --check runs refusals and lint without writing.
  • Q3: the page labels such a question "added in round 2", or a question added in response to an ask defaults to the newest round, keeping its stage.
  • Q4: one surface.md line: edit round-<n>.json with Write or Edit before add-round, or use revise ops after it.

Files: skills/interview/SKILL.md, context/surface.md, new context files for the moved material, README.md, surface/round.py, surface/index.html (Q3), templates/.

Acceptance criteria

  • SKILL.md's substitution record matches the manifest reference's "Reference a saved value" section, and no planning file cites en/plugins-reference.md.
  • The saved-boolean substitution case has a recorded fresh-session repro result, and the issue states whether it is upstream behavior.
  • add-round on a question missing short names the question id in its refusal, and surface.md's round field list names id, short and title.
  • Either a yes/no question with one alternative passes add-round, or SKILL.md's per-question shape states the two-alternative minimum.
  • The Step 3 and Step 4 gate commands appear within the first 5,000 tokens of SKILL.md.
  • surface.md's documented round step runs in a worktree-isolated session without a guard refusal.
  • A candidate round can be checked for refusals and lint warnings without writing it.
  • A question added after round N is posted is distinguishable on the page and in the register from one asked in an earlier round.
  • surface.md names the sanctioned way to edit a round file.

Constraints and gotchas

  • Skill bodies point at upstream sources rather than restating them (.claude/rules/skill-bodies-state-current-rules.md); keep quotes short and dated.
  • Moving SKILL.md text into context files must keep the gates reachable after compaction, which is the point of I9.
  • Version bump and CHANGELOG line in plugins/planning; skill-quality:check on the repo copy must still pass.
  • Interim: run every round.sh call as its own Bash call with literal single-quoted paths; every page question needs id, short, title and two real alternatives.

Context

Source: local handoff items 20261003-050831-planning-interview-intent-transfer-audit.md (findings E10, E11, E12, I9, Q1, Q2, Q3, Q4) and 20261003-055631-planning-interview-page-inline-references.md (second defect), retired into this issue. Related: #5771 (early Gates block), #5684.

Sub-issues

Sub-issues

3 of 3 Issues completed
Loading 3 sub-issues

Activity

  1. added
    needs-owner-decision
    on Oct 3, 2026
  2. kyle-sexton commented on Oct 13, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded. The owner approved applying independently verified recommendations on 2026-10-12.

    Docs, schema, size and round-tooling fixes for /planning:interview: a wrong user_config substitution record, refusals that name no question, a forced second alternative on yes/no questions, about 195 KB of required reading, and worktree-guard refusals of the documented compound step. The retired doc slug was repinned (#6541), but the record's default-substitutes claim, the refusals and the size remain; SKILL.md has grown to 499 lines, 74,807 bytes.

    Verification notes:

    • E10: a second source disagrees with the recommended premise. The manifest reference (fetched 2026-10-12) is silent on whether a default substitutes into skill content, but the Claude Code CHANGELOG 2.1.288 says 'Fixed plugin LSP servers receiving literal ${user_config.*} ... placeholders ... instead of substituted values or manifest defaults', i.e. defaults are meant to substitute (at least for LSP). Writing 'only saved values substitute' would assert unverified behavior
    • E10 basis cites SKILL.md:88 for the substitution record; correct line (it sits at the end of line 88 on origin/main) but the line also holds the Q1 sync-ledger text

    Verified by an independent fresh-context check (doubtful, risk low): gh issue view 6050 (OPEN); SKILL.md:88 substitution record text; SKILL.md 499 lines / 74,807 bytes; round.py:312-325 missing {req} and <2 alternatives refusal; manifest-reference.md fetched (lines 435, 489-500); skills.md fetched: re-attach keeps first 5,000 tokens per skill

    Admission to an agent lane stays with the work-class rules and owner ratification.

  3. removed
    needs-owner-decision
    on Oct 13, 2026
  4. kyle-sexton commented on Oct 13, 2026

    @kyle-sexton
    MemberAuthor

    Owner batch-ratified this admission in an attended session on 2026-10-12: work-class: scoped. Rule: class C1-C3, no trust surface, the independent check confirmed the recorded decision, and no owner step remains.

  5. added
    agent-ready
    on Oct 13, 2026
  6. self-assigned this
    on Oct 14, 2026
  7. kyle-sexton commented on Oct 14, 2026

    @kyle-sexton
    MemberAuthor
    No description provided.
  8. kyle-sexton commented on Oct 14, 2026

    @kyle-sexton
    MemberAuthor

    Work-loop slot: a PR (opening shortly) covers E11, E12 (binary: true in round.py), Q1, Q2, Q3 and Q4 and will say Refs, not close.

    Needs owner (left open on this issue):

    • E10 (substitution record) and I9 (Step 3/Step 4 gate commands into the top Gates block) both edit digest-pinned SKILL.md sections (Action Router, Gates, Step 3, Step 4 in tests/interview-defenses.test.sh). The suite makes re-pinning attended-only, so an unattended lane cannot change them. Recommendation: an attended run rewrites the record to "only saved values substitute; an unset key arrives as the literal token", moves the gate commands into Gates, and re-pins in the same change.
    • Saved-boolean repro: needs a fresh session launched with use_emoji_question_markers: true already saved, then a check whether the token arrives unexpanded. If it does, the upstream report to anthropics/claude-code is your call.
  9. added
    needs-human
    and removed
    agent-ready
    on Oct 14, 2026
  10. added theissue type on Oct 15, 2026
  11. added
    status: ready
    and removed
    needs-human
    on Oct 24, 2026
  12. 22 remaining items

  13. melodic-automation-lanes commented on Oct 27, 2026

    @melodic-automation-lanes
    Contributor

    The lanes App's pull request #10493 merged with Refs:, so this issue stays open and nothing starts the lane on it again. work-unblock removed status: ready and agent-ready, so the hourly triage sweep sends it back to intake triage, which decides what work is left and admits it again.

  14. removed
    status: ready
    agent-ready
    on Oct 27, 2026
  15. github-actions commented on Oct 28, 2026

    @github-actions
    Contributor

    The triage sweep dispatched intake triage for this issue (attempt 1 of 2).

  16. added
    needs-human
    on Oct 28, 2026
  17. melodic-automation-lanes commented on Oct 28, 2026

    @melodic-automation-lanes
    Contributor

    The triage verdict left this issue at status: needs-decision:

    • held by needs-human
    • no lanes App verdict comment shows whether an earlier verdict was flagged
  18. added
    needs-owner-decision
    on Oct 28, 2026
  19. kyle-sexton commented on Oct 28, 2026

    @kyle-sexton
    MemberAuthor

    Re-triage. The decision is recorded (#6050 (comment): go with the facts and data), and the host-run probe is done (#9886 closed, record fixed by #10493). Checked on origin/main f714f1e112: E10 is done by #10493, and E11, E12 and Q1-Q4 by #7424.

    What remains is two slices:

    No owner question is open, so needs-human comes off and this issue tracks the two slices.

  20. added
    status: confirmed
    and removed
    needs-owner-decision
    needs-human
    on Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

status: confirmed

Type

Fields

No fields configured for Task.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions