Skip to content

feat(planning): redesign the interview flow, layout and numbering - #17965

Merged
kyle-sexton merged 60 commits into
mainfrom
feat/interview-redesign
Nov 23, 2026
Merged

kyle-sexton merged 60 commits into
mainfrom
feat/interview-redesign

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

Closes #17964

Summary

Redesigns /planning:interview from the owner-locked Brief and the approved plan (published copy below):

  • Question ids come from round.sh next-id and are never reused or renumbered; a gap passes the register gate only where a - gap | line declares it, and the exporter writes - gap | Q<a>-Q<b> | never assigned for ids nothing ever held.
  • A contradicted answer reopens under its own id with round.sh reopen, its old answer kept under ## Reopened answers and every dependent flagged recheck:: at any depth; register rows carry a fixed-shape tag tail (kind::, problem::, depends::, reopened::, recheck::).
  • Rounds are saved as the full block and printed through round.sh show at the new question_detail setting (standard by default); the round-file check fails a question with no answer line and a header with no Scope check: line.
  • The flow: gap triage before round 1, an intake round of open discovery questions, questions held while a lookup that could change them runs, one blind interview-recommender agent per round, the per-round contradiction pass removed (the end sweep reports every finding), terms agreed where they first appear.
  • The layout: the round-8 opening lines, blank lines and a --- rule between questions, and one home per rule for every item the consistency audit found stated two ways.

Fix

Phases 2 to 8 of the plan, one or more commits each; every edit inside a digest-pinned region of plugins/planning/tests/interview-defenses.test.sh is re-pinned in its commit, whose message gives old digest, new digest and why the defense still holds. Owner decisions behind the changes a review would read as loosened checks:

Verification

Merge gate: met at 4e90cdc895 as the owner amended it (2026-11-22: "Known gaps, then merge"). Old skill = main's planning plugin with this branch's cases; new skill = this branch. One run per case (opus-5-5, sonnet judge), each results file checked with run-validity.py --runs 1 --scaffolded; two of three runs decide a case. 574 of the owner's 620-run cap used.

Batch Head Scope Result
F6 be24b8047b pilot, 8 cases, with a per-round reviewer agent (+24% cost) 4 of 8 pass; reviewer removed (ad3f3aea70)
F7 ad3f3aea70 same pilot, no reviewer 5 of 8 pass
F8 ad3f3aea70 full set, 74 cases 59 pass, 15 fail, 1 INVALID; 4 confirmed regressions, all old-behavior graders or a frontier slip, fixed
F9 d3f21d446e full set, 74 cases 62 pass, 12 fail, 3 INVALID
F10 a339baf487 targeted reruns and old checks, F9 adjudication below
F11 4e90cdc895 pilot of the unknown-field fix, 8 runs unknown-field P P; every touched case passes except intake-discovery-only
F12 26362cdfda the 3 cases main's record-decision -> adr rename changed (after merging main) adr-verdict-overruled, brief-keeps-adr-verdicts, plan-close-out-posts-adr-verdicts: all PASS, VALID
F13 d8a4cc8ff8 single-pacing-one-question, 3 runs, after the single-pacing header change P P F: PASS 2 of 3 (was 1 of 3), VALID

The eval gate is #17964's Person check: item (the results live in the gitignored .work/); the owner confirmed it on 2026-11-22: "Known gaps, then merge (Recommended)".

Gate evidence for the head f585bda7fb. Every commit after 4e90cdc895 that touches plugins/planning, and what covers it:

  • Merge of main (26362cdfda): main's changes are in both arms (old = the merge base), and the three cases whose text it changed reran in F12, all PASS.
  • 337b1be7e7: one word in SKILL.md and loop.md ("contract" -> "Brief", the retired vocabulary sense), plus a shared copy restored and test-scope lines; no rule changed, no rerun.
  • 1871405c7f (single-pacing header accepts Term: and one restate line; SKILL.md lists them): the only case run with --pacing single reran in F13.
  • a4c399b4ba, d8a4cc8ff8 (ledger import numbering, reopen surviving sync): surface/exporters.py only, page-lane sync and import paths no eval case exercises; covered by new unit tests (263 pass).
  • e3e58aca32, bc24224a95, f585bda7fb, 512d5c44b8: grader and sample edits only. Each regex grader was checked against its PASS and FAIL samples (validator 0 FAIL) and regraded on every saved reply of its case: same verdict as before on all 13. The tool-grader widening fails only a Write or Edit to a Brief file, which no saved run made. The expected-outcome wording is not shown to the judge.

So the gate stands at this head as it stood at 4e90cdc895: no kept or out-of-tag case regresses, rewritten cases fail on old and pass on new, new cases pass except the known gaps in #18216, and every run that decides a case is VALID (each INVALID run was rerun or left out of its two of three, its cause named in the run log). 580 of the 620-run cap used.

Known gaps, accepted by the owner and not blocking (#18216): context-unfamiliar-term-upstream, recommendation-basis-and-flip, single-pacing-one-question, and two new cases with no confirmed cause after replay diagnosis: intake-discovery-only (0 of 3; narrowed to the round-1 scope question) and round-quality-standard (0 of 2; the delivery question fails only with its own Context and Alternatives together). Evidence: #18216 comment.

Failing on both arms with the current grader, each grader's PASS sample passing on the real judge, so pre-existing: crux-on-rejection, final-brief-changes-only, intent-prototype-one-line (old F F), reported-problem-instance-question (old F F).

Regressions found and fixed, each confirmed two of three on new:

  • interview-coverage-prompt-asked (old P P P, new F P F): the model deferred the coverage prompt to a pending code lookup and never opened frontier.md, where the rule lived. The timing now lives in coverage-prompt.md, the file read when the prompt is asked (8ef3fe930a). New: P F P.
  • interview-unknown-field-candidates (old P P, new F P F): lookups.md let the intake round state a candidate only when a lookup found it, though problem-framing.md draws candidates from the repository too (4e90cdc895). New: P P.

Also decided: intent-asked-recorded P P F after a grader fix (c433db9f4a), coverage-unattended-unexamined F P P, the three F9 INVALID cases rerun VALID.

Graders found wrong and fixed (a339baf487, c433db9f4a), each checked against the skill text or on the real judge both ways:

  • handoff-unsure-midflow: the negation guard read a negation inside a quoted user phrase; the F9 reply now passes (regex, deterministic regrade).
  • prescribed-solution-rethink: the Discovery-line check accepted only literal verbs; both new replies pass on regrade, and both halves are still required.
  • intake-discovery-only: the rubric failed a reply whose quality-bar Context names the three bars, which SKILL.md requires; corrected rubric PASS 3/3 on a clean reply, FAIL 3/3 on the F9 reply.
  • intent-asked-recorded: the regex missed a build-specific-or-generalize question the judge accepted; a third branch takes it.
  • reported-problem-instance-question: the rubric failed its own PASS sample 3/3 ("writes a Brief or plan" cannot be judged from a reply; the tool graders own it); corrected rubric PASS 3/3 on that sample, FAIL 3/3 on a reply that reopens the fix.

Earlier on this branch, four grader alignments and a 507-grader sweep (1 conflict, 12 risks) were each validated on the real judge both ways.

Efficiency (F8 traces): the gather block runs its git calls serially (212 calls, 3 per run); the skill explores its own plugin files with shell commands (48 ls, plus wc, sed, grep; the cause of most INVALID results); loop.md is read whole 12 times. Fixes follow after merge; the gather block is its own PR.

Found while evaluating

  • validate-cases.py passed two case.yaml files the CLI's YAML parser refuses (an unquoted scalar holding : ).
  • plugin-eval does not cover a mise-shimmed node: the shim fails in the sandbox's throwaway home, so runs need the real node bin first on PATH.
  • The eval judges store votes but no reasons, so a failing judge grader cannot be diagnosed without another run or an offline re-judge.

Related

Eval audit table (all 68 interview cases)

Every case tagged interview in plugins/planning/evals/ (68), classified before any paid run.
The per-case facts behind each verdict (quoted grader and sample text) were extracted read-only and
judged in the main session.

Decision codes in the reasons:

  • INTAKE: a fresh interview's round 1 asks only open discovery questions, each with a Discovery: line and no recommendation (AC8).
  • DETAIL: the default question_detail: standard prints no Origin:, Basis: or Checked against: line; the recommendation keeps its reason (AC5, AC6).
  • OPENING: the opening lines print one sentence per line (AC14).
  • NOPASS: the per-round contradiction pass is removed (AC10).

Each rewrite moves the prompt past round 1 where INTAKE applies ("round 1 is answered: ..."), keeps
every existing grader's requirement the redesigned skill still holds (the changes the review
lane reads as loosened checks, each with its reason, are listed in #17964 "Eval check changes in
scope"), and gains one assertion only the new skill passes, so it can
fail on the old skill (AC2):

  • scope-check-line: regex on the last message, (?:^|\n)[^\n]{0,8}Scope check:. The old skill never prints this line (grep -c "Scope check" plugins/planning/skills/interview/SKILL.md prints 0 at 7844889).
  • no-basis-line: regex, match: not_contains, (?:^|\n)[^\n]{0,8}(?:Basis|Origin):. The old per-question layout prints Basis: on every recommended question.
  • opening-lines: regex requiring the surface offer split over lines, one sentence each.

Every rewrite lists Bash and Agent in its allowed_tools, and Phase 9 passes --allow-tools Bash
(Agent is read-only and needs no grant; plugins/evals/skills/plugin-eval/SKILL.md:108-113), so
round.sh and the recommender can run. The new skill text still writes the Scope check: line
and the standard print by the same rules when round.sh cannot run.

Case Verdict Reason New-only assertion
brainstorm-spec-stage-no-candidates keep No grader needs a recommendation; intake detail questions pass the fail-only judge none
interview-adr-verdict-overruled keep Closing turn; grades the overrule hand-off, no round shape none
interview-bare-vague-build-asks keep Needs one problem, users or scope question, which the intake round asks none
interview-bare-vague-explore-no-extra keep The interview must not fire; untouched by any decision none
interview-brief-keeps-adr-verdicts keep Grades the Brief's ADR verdicts section only none
interview-closing-probe-something-else keep Grades only the "something else ...?" probe, which every round keeps none
interview-coded-terms-round-answerable keep Mid-interview round; the judge's "basis" is met by the recommendation's reason; risk DETAIL noted none
interview-consumer-standard-override keep Grades a Brief line and a Read; untouched none
interview-context-unfamiliar-term-upstream rewrite INTAKE: a fresh me round 1 asked for decision questions; the Context regex must also end a block at the new Discovery:, Held:, Second view:, Departs from:, Scope check: and --- lines scope-check-line
interview-coverage-prompt-asked keep auto with goal and criteria given; grades the pre-Brief coverage prompt, not a round none
interview-coverage-unattended-unexamined keep Unattended summary line; untouched none
interview-crux-on-rejection keep Mid-interview crux question; round 1 is history in the prompt none
interview-discuss-sets-discussing keep Grades the discussing status; the optional re-ask's "basis" is met by the reason; risk DETAIL noted none
interview-document-dba-replica keep Document surface; any ### Q<N>: id passes none
interview-ears-convention-tags keep Brief criteria tags; untouched none
interview-ears-convention-tags-criteria keep Brief criteria tags; untouched none
interview-fact-looked-up-not-asked keep The looked-up fact is stated with its source in round 1; the recommendation check is conditional none
interview-final-brief-changes-only keep Closing restatement; untouched none
interview-final-confirm-active-reply keep Closing confirmation wording; untouched none
interview-goal-keeps-user-why keep Brief Goal lines; untouched none
interview-handoff-no-design-question keep Hand-off routing; untouched none
interview-handoff-small-contract-is-plan keep Hand-off routing; untouched none
interview-handoff-unsure-midflow keep Hand-off routing; untouched none
interview-idea-routes-brainstorm keep Grades the brainstorm routing recommendation, not a question's recommendation none
interview-intent-asked-recorded rewrite INTAKE: the variation-intent question must carry a recommended answer, which round 1 no longer has scope-check-line
interview-intent-prototype-one-line keep Graders need a Q1 question and no quality-requirement question; no recommendation needed none
interview-intent-unattended-blocked keep Unattended Brief lines; untouched none
interview-later-line-known-rounds keep Grades only the round header's Later: line, which every round keeps none
interview-lock-restates-problem keep lock problem confirmation; untouched none
interview-negative-recommendation-yes-accepts rewrite INTAKE: the React-rewrite question must carry a recommendation in the first reply scope-check-line
interview-nfr-quality-requirement keep Unattended Brief constraint lines; untouched none
interview-option-existing-control-drops rewrite INTAKE: needs a recommendation in the first round; DETAIL: the documented-not-verified label must now sit in the printed reason (criterion 4 unchanged) scope-check-line
interview-option-known-repetition-keeps rewrite INTAKE: needs a recommendation in the first round; DETAIL: the R2 citation must sit in the printed reason scope-check-line
interview-owner-deferred-document keep Hand-off routing; untouched none
interview-pacing-round-arm retire Group: the pre-registered pacing experiment concluded (run 3: ROUNDS HOLD UP) and measured a round layout the owner has since changed (ledger rows Q16 and Q21: the question_detail levels); its graders are frozen by its own rule, so they cannot follow the new layout; recorded as a dated amendment in interview-pacing.md n/a
interview-pacing-single-arm retire Group, as interview-pacing-round-arm n/a
interview-pacing-single-arm-open-b retire Group, as interview-pacing-round-arm n/a
interview-pacing-single-arm-open-d retire Group, as interview-pacing-round-arm n/a
interview-pacing-single-arm-step-2 retire Group, as interview-pacing-round-arm n/a
interview-pacing-single-arm-step-3 retire Group, as interview-pacing-round-arm n/a
interview-person-deferred-document keep Hand-off routing; untouched none
interview-prd-seeds-brief keep Brief sections from the PRD; untouched none
interview-prescribed-solution-rethink keep The rethink-or-accept question needs no recommendation none
interview-prototype-split-by-question keep Mid-interview round 2 with a recommendation; untouched none
interview-quality-bar-asked-bookmark-sync keep Needs the quality-bar question, a discovery question round 1 asks none
interview-quality-bar-asked-ticket-dashboard keep As bookmark-sync none
interview-quality-bar-stated-production keep Needs scoping questions including a production concern; no recommendation needed none
interview-quality-bar-stated-prototype keep Needs scoping questions with no production concern; no recommendation needed none
interview-readback-dictated-answer keep Read-back of a dictated answer; untouched none
interview-recommendation-basis-and-flip rewrite INTAKE: fails a reply with no recommended question; DETAIL: the checkable basis must sit in the printed reason scope-check-line
interview-reported-problem-instance-question keep Needs one open instance question, a discovery question none
interview-round-topic-groups rewrite DETAIL: criterion 3 requires "a Basis: line" per question; reworded to "a recommendation with its reason (its basis)" scope-check-line
interview-round1-unknowns-offers-wayfind keep The wayfind offer is a routing suggestion, not a question recommendation; round 1 keeps it with its other questions none
interview-scenario-walk-two-purchase-kinds rewrite INTAKE: each scenario needs its own recommendation in the first reply scope-check-line
interview-scope-cut-moscow rewrite INTAKE: needs a recommended bucket per item in the first reply scope-check-line
interview-single-pacing-one-question rewrite DETAIL: criterion 2 requires "a recommendation with its Basis: line"; reworded to its reason no-basis-line
interview-skips-quick-behavior-change keep The skip happens before any interview step; untouched none
interview-skips-quick-change-typo keep As quick-behavior-change none
interview-stated-problem-no-rethink keep Fail-only judge; intake questions with no rethink pass none
interview-surface-unset-offer-one-line rewrite OPENING: its grader requires the offer on one line; INTAKE and DETAIL: criterion 3 requires a round-1 recommendation with its basis opening-lines
interview-term-clash-qualified-name rewrite INTAKE: the qualified name must be recommended in the first message scope-check-line
interview-tiny-diff-not-cheap-to-retry keep Needs any numbered question round; intake asks one none
interview-unattended-default-finish-line keep Unattended Brief Goal line; untouched none
interview-unattended-needs-human-stops keep Unattended stop line and deferred entry; untouched none
interview-unattended-no-plugin-offer keep Resolver call and no install; untouched none
interview-unattended-problem-blocked keep Unattended Brief Problem status; untouched none
interview-unknown-field-candidates keep A looked-up candidate for a problem field, with its source and a confirm request, is a lookup result round 1 states none
interview-wayfind-size-suggestion keep Mid-interview round 7; the scope count matches the existing trigger none

Coverage kept for the retired pacing group: a new case interview-round-quality-standard reuses
the round-arm prompt (round 2 of the invoice CSV export, four planted decisions) with graders for
the new standard layout: every planted decision asked; each question with a Context: line citing
a stated fact, a recommendation whose printed reason names its evidence (or Withheld:), and
alternatives; --- between questions; a Scope check: header line (new-only). It is not part of the
frozen experiment, so the freeze holds.

Totals: 50 keep, 12 rewrite, 6 retire. No case grades the removed contradiction pass (NOPASS); its
eval evidence is the new case interview-sweep-reports-contradiction.

Risks carried into Phase 9 (each a kept case whose judge reads "basis" against the printed reason):
interview-coded-terms-round-answerable, interview-discuss-sets-discussing. Requirements the new
skill text must meet so kept cases hold (Phases 7 and 8): every round header keeps Later: and the
closing probe; a recommendation's printed reason carries its evidence and source at every level;
routing suggestions (brainstorm, wayfind) are not intake questions and still appear in round 1; a
looked-up candidate for a problem field is stated with its source and a confirm request; the
glossary loads only once an interview starts, after the quick-change skip; with no Agent tool the
main session drafts the recommendation, and with no Bash the next id is read from the ledger
(no case allows Agent; 10 allow no Bash).

Second table: legacy cases and cases outside the tag

Legacy plugins/planning/skills/interview/evals/evals.json (51 entries, a rubric with no graders, so
no paid run). Case digests pin ids 1, 2, 3, 8, 12, 13, 15, 16 and 25 (interview-defenses.test.sh
lines 684, 884, 922-949; the header comment says eight and is corrected in Phase 2); the roster pin
(line 913) covers all 51.

Entry Pinned Action Reason
1 relentless-me-mode-frontier-rounds digest edit, re-pin INTAKE: expects a fresh first round with a recommendation on each question; the scenario moves past intake
5 dependent-questions-split-across-rounds no edit INTAKE: expects recommendations from the first round
7 engineering-term-resolution-delegates no edit Terms are written only after the user confirms the restatement (AC11)
8 facts-looked-up-decisions-asked digest edit, re-pin INTAKE: the precedence decision is asked with a recommendation after intake; the fact-versus-decision line it guards is unchanged
20 mechanism-tripwire-asks-now-or-at-planning no edit INTAKE: "first round" becomes the first decision round
23 inherited-constraint-asked-not-assumed no edit DETAIL: Checked against: is in the saved full block, not the standard print
25 out-of-band-return-supersedes-before-the-reply digest edit, re-pin DETAIL: the restatement prints at the detail level, so "recommendation with Basis" becomes the recommendation with its reason; the supersede rule it guards is unchanged
27 resumed-recommendation-re-grounded-against-a-later-constraint no edit DETAIL: the revised Checked against: line is in the saved block
28 self-answer-from-mcp-and-research-and-offer-to-connect no edit INTAKE and DETAIL: round-1 candidates with a Basis: line
36 pre-round-contradiction-pass roster remove NOPASS (Phase 2); the roster pin is re-pinned
43 late-return-restates-every-open-question-in-full no edit DETAIL: "a Basis line" becomes the reason
44 held-question-release-restates-every-open-question-in-full no edit DETAIL, as 43
48 document-self-answerable-stays-a-round no edit INTAKE: "an ordinary round with a recommendation" is the first decision round
all others as listed in the pins keep No decision makes their expectations false

No pinned case is retired, so the plan's user-approval gate for retiring a pinned case does not come due.

Cases outside the tag whose inputs a decision changes, run once on the new skill in Phase 9:

Case Why
work-items/evals/decompose-decisions-no-coined-ids Reads a register row (Q2 | answered | ...); the tag tail must not change what it reads
planning/evals/wayfind-chart-seeds-from-interview-ledger Wayfind seeds from the ledger, which gains ## Problems and ## Reopened answers
planning/evals/wayfind-purpose-settled-facts-recorded Its fixture ledger is section-shaped with no register rows
planning/evals/wayfind-ready-questions-asked-in-one-round-and-items-are-topics Wayfind asks ready questions "in one /planning:interview round" with recommendations (INTAKE)
planning/evals/plan-close-out-posts-adr-verdicts Its graders key on the interview's Q1-Q4 ids

Rubric-only entries outside the tag edited in Phase 6 or 7 where an expectation becomes false:
audit-answers evals.json id 1 (accepts "each open question's recommended answer"; a discovery row
has none, so /planning:audit-answers must skip kind:: discovery rows).

Cost estimate (no paid run before this)

Runs, one per case and one arm (--ablation none), per plugins/evals/skills/plugin-eval/SKILL.md "Cost":

Item Runs
Rewritten cases on the old skill (12), plus 2 extra for the 3-run reproduce in Phase 9 step 2 14
Kept cases on the new skill 50
Rewritten cases on the new skill 12
New cases on the new skill (the sandbox probe is one of them) 6
Out-of-tag cases on the new skill 5
Subtotal 87
Reserve, one quarter, for two-of-three reruns and old-skill reruns of failing kept cases 22
Run budget 109 (inside the 150 cap)

Price basis: the suite's last recorded run, 14.47 USD list price for 36 runs on claude-opus-5-5
(plugins/planning/evals/interview-pacing.md:178-179), about 0.40 USD a run with regex graders
only. Most cases here add an llm judge (three calls a run), so 87 runs is roughly 35 to 55 USD list
price, and the full 109 roughly 45 to 70 USD. On this plan that is subscription usage, not a bill.
The tokens of the first 2 runs in Phase 9 resize it before any batch.

Published plan (standard depth)

Standard: these constraints and the order of work; the details are yours.

Brief

TLDR

  • One PR in melodic-software/claude-code-plugins redesigning the /planning:interview skill: layout, flow, agent roles, glossary loading, numbering, wayfind scope check
  • Every contradiction inside the interview skill resolved to one source of truth with links
  • Measured: free eval audit first (keep, rewrite or retire each case); paid runs only where they measure something; new numbering and reopening evals
  • Mechanics (config precedence, new question fields, numbering tool, file list) decided in /planning:plan
  • Out: Gemini work, HTML report, explore/research semantics, glossary skill changes, the 24 architecture candidates

Problem

  • Gap: the interview starts nearly every human-in-the-loop session and is not efficient: answers get overturned by research that runs later, its files contradict each other, question numbers jump or collide, recommendations can bias answers, too little is configurable, and it does not reliably say when work belongs in /planning:wayfind
  • Who / how many: the owner, every interactive session that starts with an interview (unknown count)
  • Frequency: every interview (observed across this session's 14 rounds)
  • Trend: unknown
  • Cost: rework after research (observed: the update-policy recommendation flipped after a lookup; the Q28 answer was reopened), skipped scope check (observed this session), numbering jumps to ~600 (reported)
  • Evidence: consistency-audit.md (verified, file:line pairs), skill-map.md (verified), issue fix(planning): interview page sync-ledger renumbers register ids and breaks cross-file references #7541 (verified, numbering jump to Q500), this session's ledger (observed)

Intent

"The primary thread or thing across all of these skills, especially in the human loop, as understanding what the intent, vision, and goals are, and what the problem we're solving is upfront. If the user doesn't know, then it's getting that and helping the user understand and figure out what they want. Once that's captured, everything across all phases should be driven by data, facts, metrics, truth, plus the latest consensus-based research from official, authoritative, and trusted sources."

  • note: "I don't care about rounds being long. I care that they be efficient." (round 13)
  • note: "script the deterministic things that require absolutely zero reasoning or judgment, and then make sure that we use judgment, agent judgment, and reasoning where needed." (round 14)
  • Q13 own answer: "any questions whose answer could change based on in-flight exploration and research validation? I just don't want to create wasted effort."
  • Q35 own answer: keep ubiquitous-language, loadable on its own; the interview loads it with one framing line; ADRs stay in their own skill
  • Q50 own answer: every inconsistency inside the interview skill is resolved now, one source of truth, proper encapsulation and linking

Goal

An interview that captures intent, vision, goals and the problem first (helping a user who does not know yet), then grounds every recommendation in facts and current authoritative research, asks each question once with no rework from late lookups, shows rounds in a readable, configurable layout, keeps question numbers stable, guards against bias in both directions, and says accurately when work should move to /planning:wayfind.

  • Intent (why, in the user's words): "every human-in-the-loop session usually starts with this skill"; "This is a very crucial skill to get right."
  • Vision (where this heads): composable lifecycle skills, each with one responsibility, iterating in whatever order the problem needs, driven by facts and the user's decisions
  • When goals conflict, prefer: accuracy, intent and quality over speed and tokens ("I don't want to sacrifice at all accuracy, intent, quality")
  • Finish line: merged — checked by the PR's required checks plus the before/after interview eval comparison in the PR body

Work size

  • Appetite: not assessed
  • Size: large (one skill hub, about 20 spoke files, round and gate scripts, about 30 mapped evals)
  • Uncertainty: medium; mechanics left to /planning:plan
  • Split signals: the 24 architecture candidates split out to /planning:wayfind (Q29); explore/research and glossary work split to their own sessions (Q30, Q35)

Constraints

  • Interview, design and plan keep separate responsibilities; no duplicated step (C22)
  • Script only what needs zero judgment; judgment stays with the agent (C25)
  • Name no model version; lookups go through explore and research, which route their model (C21, Q47)
  • Skill wording: plain imperatives, scoped "never" with a reason, named stops (Q46)
  • Outside the planning plugin, pointer edits only; no discovery-plugin edits (Q50)
  • Every change measured against the baseline, not judged by feel (C17, Q28)
  • File ownership (owner decision, 2026-11-21): the "Architecture Improve" session owns lib/ui-feedback/proto-pin.js and its synced copy plugins/planning/shared/web/proto-pin.js (fixes ui-feedback: keep a picked element or marked region drawn until its note is sent or cancelled #17800-ui-feedback: a move-arrow note anchored from an element to where it should go #17803); this PR owns the rest of plugins/planning. Message that session before editing its files
  • Quality requirement: accuracy: no loss of intent, accuracy or quality for speed or tokens (C19)

Acceptance criteria

  • AC1: Before any paid eval run, /evals:validate runs on the interview suite and every one of the 68 cases is classified keep, rewrite or retire with a one-line reason, in a table in the PR body
  • AC2: Rewritten cases land in their own commit, each naming its decision; each rewritten case fails once on the old skill and passes on the new skill; retired cases are removed with their reason
  • AC3: Every kept case passes on the new skill; a kept case that fails is run once on the old skill to tell a regression from a pre-existing failure; the no-spend cost estimate is shown before each paid run
  • AC4: New evals cover numbering (a tool assigns numbers in display order; none reused or renumbered) and reopening (a contradicted answer reopens under its number and its dependents are flagged)
  • AC5: A question_detail setting offers full, standard and minimal, defaulting to standard; the saved round file holds the full block at every level
  • AC6: Rounds show Context first with short named links, blank lines after the title, the recommendation and "Alternatives:", and a --- rule between questions; no level hides the recommendation and its reason, a reused literal, commitment parts, Withheld or Flips if
  • AC7: The round-file check fails an open decision question with no recommendation and a round header with no scope-check line
  • AC8: Before round 1, every unknown is sorted into a lookup, a discovery question or a decision question; the intake round asks only discovery questions, open, with no recommendation
  • AC9: A question whose answer a running lookup could change is held until it returns
  • AC10: Each round runs one blind recommender agent fed facts, constraints and settled decisions without the conversation; the per-round contradiction pass is gone; the end sweep reports every finding and a separate pass filters them
  • AC11: ubiquitous-language loads in every interview with one line saying why; terms are written only after the user confirms the restatement
  • AC12: Problems are numbered P1, P2 and questions carry the tag; the wayfind criteria stay too-big-and-foggy with the three measured triggers
  • AC13: Each rule the consistency audit found stated two ways is stated once, with every other file linking to it
  • AC14: The opening lines use the round-8 shape, one sentence per line
  • AC15: Lines per round, questions reopened and answers changed after research are recorded before and after the change

Captured assumptions

  • Quality bar: production
  • Variation intent: not applicable (confirmed): a redesign of one existing skill
  • Coverage prompt: skipped, unexamined
  • Line citations from claude-code-plugins 3757988 still hold: revisit if the interview skill changes on main before the PR opens
  • The ~600 numbering jump comes from hand-picked ids and the old global counter: revisit if jumps recur after the numbering tool ships

Out-of-scope

  • Gemini and Antigravity evaluation and installs (the "Google Gemini" session)
  • /architecture:improve HTML report (the "Architecture Improve" session)
  • What explore and research each cover, including machine state (Q54)
  • Moving term challenging into ubiquitous-language; where non-repository glossaries live (Q55)
  • The 24 architecture candidates (/planning:wayfind after this PR)
  • Hard retrieval evals (multi-agent: add hard retrieval cases to the routing evals #17732)

ADR verdicts

  • Q23 gap triage and intake round: ADR candidate, not checked
  • Q22 discovery and decision questions: ADR candidate, not checked
  • Q52 blind recommender, per-round contradiction pass dropped: ADR candidate, not checked
  • Q27 numbering scheme: ADR candidate, not checked
  • Q16 question_detail setting: ADR candidate, not checked
  • All other decisions: scope or process, never handed over

Deferred questions

  • Q49: mechanics (config precedence, new question fields, numbering tool, file list, minimal contents, recommender display, sweep filter owner, measurement tooling, lookup concurrency), defer until planning; arbiter: /planning:plan
  • Q54: where machine-state lookups belong, and the discovery-plugin role mapping, defer until the explore/research session; arbiter: USER-RESERVED
  • Q55: moving term challenging into ubiquitous-language, defer until the glossary session; arbiter: USER-RESERVED

Design

Early exit, tier B (design/design-resolution.md in the topic's memory slice): the owner assigned the mechanics to /planning:plan (ledger row Q49), the Brief locks the behavior, and no module boundary changes. [EXEC-SHAPE D1]

Contracts

Register row: the column count is unchanged. Five new tags form a tail at the end of the resolution cell, after the answer (plain text or the exporter's named fields) and before stale::. Each tag's value is a fixed token shape with no free text, so the tail is peeled from the right by one anchored pattern, the way the stale tail is today (plugins/planning/surface/exporters.py:174-177, plugins/planning/scripts/check-open-questions.sh:747). The tags are not added to the exporter's ordered field list (plugins/planning/surface/exporters.py:164), whose parser refuses unknown and out-of-order fields.

- Q<N> | <status> | round <N> | <question> | [<answer>][; kind:: discovery][; problem:: P<n>][; depends:: Q<a>, Q<b>][; reopened:: round <N>][; recheck:: Q<a>, Q<b>][; stale:: C<n>]
- gap | Q<a>-Q<b> | <why these ids have no row>
  • kind:: is written only on a discovery question; a row without it is a decision question.
  • problem:: names one row of the ledger's new ## Problems section: - P<n> | <one-line problem> | <proposed|agreed>.
  • depends:: lists the earlier questions this one rests on.
  • reopened:: is written by the reopen command, which sets the row back to open. The old answer and the contradicting fact are free text, so they go in the ledger's new ## Reopened answers section, never in the row: - Q<N> | round <N> | was: <old answer> | fact: <the fact and its source>.
  • recheck:: is written on every row that depends, directly or through other rows, on a reopened one, naming the reopened ids; the gate blocks on it as it blocks on stale::, and round.sh reopen --rechecked Q<N> removes it once the user has reconfirmed or changed that row.
  • A - gap | line declares ids that intentionally have no row; the gate refuses any other gap. It is written by hand where a gap is intended (a legacy ledger, a shared session whose ids ran ahead), and sync-ledger keeps it because it replaces only question rows (plugins/planning/surface/exporters.py:943-951). Amended 2026-11-21 (owner, "go w/ recommendations", new D2): export-ledger and sync-ledger also write - gap | Q<a>-Q<b> | never assigned for ids no ledger row and no page question ever held, only where no gap line already covers them; an id the ledger held is never declared.
  • Page lane: an import reads the tail into meta.seededFrom beside the round cells the exporter already carries (plugins/planning/surface/exporters.py:43-46), and an export writes it back unchanged, so a page session never drops a tag. The page's own one-hop stale marking is untouched.

Commands added to plugins/planning/surface/round.py, run through round.sh, each reading the ledger alone unless --dir is given:

round.sh next-id --ledger <ledger> [--dir <data dir>] [--count <n>]
    prints the next n ids, one per line: the highest id in the ledger (and the data dir) plus 1; never a reused or gap-filling id
round.sh reopen --ledger <ledger> Q<N> --round <n> --fact-file <file>
    sets the row to open with reopened::; moves the old answer and the fact to "## Reopened answers";
    writes recheck:: on every dependent at any depth; prints each id it marked
round.sh reopen --ledger <ledger> --rechecked Q<N>...
    removes recheck:: from the named rows
round.sh scope-check --ledger <ledger> --round <n> --limit <n> [--rounds-dir <dir>]
    prints the counts half of the round header's "Scope check:" line: questions registered against the limit
    (the resolved wayfind_suggest_questions value, passed in), and questions added and settled in each of the last two rounds
round.sh show --level full|standard|minimal <round-N.md>
    prints the round at that detail level; the file itself always holds the full block
round.sh measures --ledger <ledger> --rounds-dir <dir> --level <level>
    prints rounds, median lines per shown round, rows reopened, answers changed after a lookup

Setting: question_detail, values full, standard, minimal, default standard, declared beside question_pacing and resolved through the same four layers (plugins/planning/reference/config.md:143-149), with a request in the session overriding it.

What each level prints, from the same full block:

Part of a question full standard minimal
Title line yes yes yes
Context: block, short named links yes yes no
Source: quote yes link only no
My recommendation: with its reason, including any reused literal value yes yes yes
Withheld: or Discovery: line yes yes yes
Second view: and Departs from: lines (the recommender's) yes yes yes
Flips if: yes yes yes
Commits you to: parts yes yes yes
Origin:, Basis:, Checked against: yes no no
Alternatives: yes yes, one line each a count and say "more Q<N>"
Blank line after the title, after the recommendation block and after Alternatives:; --- between questions yes yes yes

Round file: each question block carries exactly one of My recommendation:, Withheld:, Discovery: or, in the product action, Strong answer: (plugins/planning/skills/interview/context/product.md:57-61); the round header carries one Scope check: line.

Agent: plugins/planning/agents/interview-recommender.md, read-only tools, no conversation context, and no model field, so it runs on the session's model and the file names none. Input: facts, constraints and settled decisions. Output per decision question: one recommendation with a short basis, plus a one-sentence Departs from: line where it departs from a settled decision.

Behavior

  • B1: Each new question gets its number from a tool, in the order the round shows it, and no number is ever reused or changed. (AC4)
  • B2: An answered question that a later fact contradicts reopens under its own number, with the old answer kept, and every question built on it is flagged for recheck. (AC4)
  • B3: A round prints at the question_detail level (standard unless set), no level hides what the user accepts, and the saved round file always holds the full block. (AC5, AC6)
  • B4: The round-file check fails an open decision question that has no recommendation and a round header that has no scope-check line. (AC7)
  • B5: Before round 1 every unknown is sorted into a lookup, a discovery question or a decision question, and round 1 asks only discovery questions, open, with no recommendation. (AC8)
  • B6: A question whose answer a running lookup could change is held until the lookup returns. (AC9)
  • B7: Each round one blind recommender drafts the recommendations, no per-round contradiction pass runs, and the end sweep reports every finding while a separate pass filters them. (AC10)
  • B8: Every interview loads the ubiquitous-language skill with one line saying why, and terms are written only after the user confirms the restatement. (AC11)
  • B9: Problems are numbered P1, P2, each question carries its problem's tag, and the wayfind criteria stay too-big-and-foggy with the three measured triggers. (AC12)
  • B10: Each rule the consistency audit found stated two ways has one home in the interview skill, and every other mention links to it. (AC13)
  • B11: The opening lines print one sentence per line in the round-8 shape. (AC14)
  • B12: The skill text states each rule the F3 evals found missing, buried or contradicted: Context lines that state a document-only control carry the documented-unverified label, Flips if: carries a Second view: fact, a reason's unsourced fact is researched or withheld, and single pacing names no open branch. (AC6, AC7)
  • B13: A fresh-context reviewer reads each round dropped (Phase 11 scope change); the AC10 recommender is unchanged. (AC10)

Process criteria: AC1, AC2, AC3, AC15

Phase outline

  • Phase 1: Audit the eval suite and estimate the paid runs [DONE]
  • Phase 2: Remove the per-round contradiction pass [DONE]
  • Phase 3: Numbering that never reuses or renumbers [DONE]
  • Phase 4: Register fields and the reopen command [DONE]
  • Phase 5: Round file check, detail levels and the setting [DONE]
  • Phase 6: Eval cases: rewrite, retire, add [DONE]
  • Phase 7: Flow text: triage, holds, recommender, sweep, glossary, problems [DONE]
  • Phase 8: Layout text, opening lines and one home per rule [DONE]
  • Phase 9: Paid runs, measures and the pull request [DONE]
  • Phase 10: Merge main and fix the two defective graders [DONE]
  • Phase 11: The reply is the checked round, and a reviewer reads it [DONE]
  • Phase 12: Offline proof, replay runs and the pilot [DONE]

🤖 Generated with Claude Code

https://claude.ai/code/session_015XWwmeDkiEnVmSx4dtkkfh

kyle-sexton and others added 24 commits November 21, 2026 02:21
The interview no longer dispatches a sub-agent before each round to check
the draft against earlier answers. The end sweep keeps its Contradictions
category and reconcile rule, and the answer-time conflict rule still
catches a reply that conflicts with an earlier answer. Brief AC10: "the
per-round contradiction pass is gone".

- SKILL.md: drop the Step 2 paragraph and the pacing clause that named the
  pass; the sweep paragraph's pointer names the sweep-round label, whose
  rule lives in context/assumption-sweep.md.
- context/assumption-sweep.md: drop "Pre-round contradiction pass".
- context/product.md: the pacing note names only the sweep.
- evals.json: remove case 36 pre-round-contradiction-pass, which graded the
  removed pass. Its replacement evidence is the new eval case
  interview-sweep-reports-contradiction (added later on this branch).
- docs/contracts/verification-level: the interview's exemption names the
  sweep and the quote check only.

Re-pins (interview-defenses.test.sh), old -> new, and why each defense
still holds:
- Stance: 53ff69a1cc4af1af5f7df38a03b272977431a6e8374c52df8f9ca044e70e7ef6
  -> e059b8a9bdadf3a44593745098d9365d46b80fe2e2e9bdb3d449ab124d0481b0.
  Only the pacing clause naming the pass changed; the no-silent-resolve
  rule is byte-identical.
- Step 2: 91e71ea48b46fdefdb4fa77f32cd6d48b47245f04c0c1bbdcf4884427211fff4
  -> f332b13eda79cde79825d912827e70b18971870c60accde42f0ff5c79ca3bcea.
  The pass's paragraph is gone and the sweep paragraph points at its
  spoke; the constraint ledger, candidates, currency, tripwire and sweep
  rules are unchanged, and no row is resolved for the user.
- context/assumption-sweep.md:
  2054938d89851cd80602ba2d80aed3bd49722420cd836155c9ccdfe8e0f47e2a
  -> 4d1a6e8c8789645fb58bbae26822fc34d2fdcefda674e0d7210247dcccc8f0f3.
  Only the per-round section is deleted; scope, item shape and every
  disposition, USER-RESERVED included, are unchanged.
- Case roster: 9f9747c65eb92352e3b940f53808bac632a4f2691a95dfd08ac74a152818d713
  -> 7bd78ae7a7bc7a32988b8a7b526a189373ac3fa961f79f7aa56c826a280d588b.
  Only case 36 left the roster; cases 15 and 16 and every digested case
  are unchanged, and no case added contradicts them.

The three test comments that described the pass are deleted; the reasons
above replace per-pin comments, which the comment lint refuses.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015XWwmeDkiEnVmSx4dtkkfh
Question numbers are now handed out and kept, never reused or renumbered
(issue #7541, owner ruling "Keep ids (do not refuse)").

- round.sh next-id --ledger <ledger> [--dir <data dir>] [--count <n>]
  prints the next n ids: the highest number the ledger's register rows
  and `- gap |` lines hold (and, with --dir, every number the merged
  export writes and every pending proposal's Q<N>) plus 1. It never fills
  a gap. It refuses a file without exactly one open-question register
  heading (check_ledger, as sync-ledger does) and a --count below 1.
- exporters.numbering(ids, held): a row the ledger already holds keeps its
  ledger number and its [<id>] lead whatever its page id; a Q<N> id new to
  the ledger keeps N unless a ledger row already has that number (then it
  takes the next number and a [Q<N>] lead); any other id takes the next
  number after the highest so far (ledger numbers and the Q<N> ids kept in
  this export), in natural id order. A row leads with [<id>] only when its
  number is not its own id. The second parameter is now the ledger's
  {id: number} map (ledger_numbers), since a bool cannot carry the
  numbers. ledger_gapped had no caller left and is removed with its test.
- export-ledger --ledger X keeps each hand-written `- gap |` line of X,
  placed before the first row past its range, as sync-ledger keeps it.
- check-open-questions.sh accepts a gap only where a hand-written
  `- gap | Q<a>-Q<b> | <why>` line in the register section declares it;
  an undeclared gap (or the undeclared part of one) still exits 2 and its
  message names the gap line to write; a malformed or fenced gap line
  declares nothing.
- templates/checklist.md: the register header names the gap line.
- surface/README.md: a next-id row in the command table.

Intended reversals (the plan's numbering contract replaces the
renumbering rule):
1. test_non_contiguous_ids_are_renumbered_with_the_original_id is
   rewritten as test_non_contiguous_ids_are_never_renumbered.
2. test_numbering_keeps_gapped_q_ids_only_for_a_gapped_ledger is
   rewritten as
   test_numbering_keeps_every_q_id_and_numbers_others_after_the_highest.
The Brief test test_without_a_ledger_a_gap_keeps_the_register_number_and_
adds_the_id is updated to test_without_a_ledger_a_gap_keeps_every_id_with_
no_lead: it now asserts the gate refuses the undeclared gap, then passes
with brief=ok once a gap line declares it.

New tests: test_numbering_keeps_ledger_numbers_and_numbers_only_new_ids,
test_a_renumbered_ledger_exports_twice_with_the_numbers_it_holds,
test_export_ledger_keeps_each_hand_written_gap_line_in_place,
test_a_q_id_new_to_the_ledger_keeps_its_number,
test_a_new_q_id_whose_number_the_ledger_holds_takes_the_next_number,
TestNextId (6 tests), and the gate's declared, partly declared, fenced
and malformed gap-line cases plus the gap-line message check.

Known limit: an export with no ledger text (export-ledger without
--ledger, the report, a recap with a data dir and no ledger) numbers an
imported renumbered ledger's rows from their ids, not the numbers the
ledger held (rows [Q7] at Q1 and [J1] at Q2 export as Q7 and Q8). A
later phase records each row's number in meta.seededFrom at import.

Pre-flight: readers of register ids and of numbering()
- surface/exporters.py: ROW regex in scan_register/parse_register (row
  number, cells); LEAD regex in ledger_register, import_ledger, ledger_row
  and recap_answer ([<id>] lead -> question id); REGISTER_LEAD in
  locate_row/split_lead (supersede and resolve find a row by Q<N> or its
  lead); numbering() called by register(), merged_register() and
  export_brief(); brief_label() shows "Q<N> [<id>]" when number != id.
- surface/round.py: export-ledger, ledger-check, sync-ledger, add-round
  --sync-ledger and recap go through merged_register(); supersede and
  resolve take Q<N> or the [<id>] lead (locate_row); record_ledger_sync
  reads Q<N> from merge notes.
- scripts/check-open-questions.sh: row_candidate_re and the id regex in the
  register loop (track_id: duplicate, out of order), the gap pass after
  the loop, deferred_ids for --brief, and the sweep's "register through
  Q<N>" and Q<N> disposition checks.
- shared/session.py: QID regex Q[1-9][0-9]{0,5} validates shared-session
  question ids; it reads no ledger.
- skills/audit-answers/SKILL.md: reads register rows by status
  (superseded-by-plan, hedged:) in prose; no id parsing.
- skills/wayfind/SKILL.md: chart step 1 seeds from interview-checklist.md
  by row status in prose; no id parsing.
- plugins/work-items/skills/decompose/SKILL.md: reads answered Q<N> rows of
  interview-checklist.md in prose; no id parsing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015XWwmeDkiEnVmSx4dtkkfh
Code-design review findings on 146fa27, all in Phase 3's files.

- numbering(ids, held, gaps) treats every number inside a declared
  `- gap | Q<a>-Q<b> |` range as taken: a new non-Q id never lands in a
  gap, and a page Q<N> id inside one is numbered after the highest
  number with its [<id>] lead. page_numbering() builds the id list once
  from the page, its pending proposals, the ledger-only ids and the
  ledger's numbers and gaps; register() takes that numbering from its
  caller, so merged_register and export_brief no longer compute it twice,
  and export_report still gets the page's own.
- highest_id (next-id) also counts each [Q<N>] lead in the register and,
  with --dir, each page question's own Q<N> id.
- One gap-line grammar: Python's GAP_LINE/parse_gap now match the gate
  (no leading zero at either end, a <= b, a non-empty reason, both ends
  captured).
- Gate: a declared range that covers a register row, or whose high end is
  past the highest row, exits 2 naming the gap line; the gap candidate is
  `gap` followed by optional spaces and `|`, so a prose bullet such as
  `- gap, see below` is not read as a gap line.
- register_lines() places gap lines by range for both writers:
  export_ledger and sync_ledger now agree (sync_ledger used to leave a
  gap line where it stood while the rows moved above it).
- Docstrings: numbering says what happens with no ledger; the module
  header states the gap-line order.

Tests: test_a_new_id_never_lands_in_a_declared_gap,
test_a_page_q_id_inside_a_declared_gap_is_numbered_after_it,
test_export_ledger_keeps_a_gap_line_past_the_last_row_and_the_gate_refuses_it,
test_sync_ledger_places_each_gap_line_by_its_range,
test_the_gap_line_grammar_matches_the_gate (runs the gate and parse_gap
on the gate test's valid and malformed gap lines),
TestNextId.test_a_renumbered_row_lead_is_never_reused,
TestNextId.test_a_pending_proposal_id_is_never_reused, and gate cases for
a gap covering a row, a gap past the highest row and a prose `- gap,`
bullet.

The decision that a gapped export fails the gate until a hand-written gap
line declares it is unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015XWwmeDkiEnVmSx4dtkkfh
A register row's resolution can now end in five fixed-shape tags, and an
answer a later fact contradicts reopens under its own number with every
row built on it flagged (Phase 4 of the interview redesign plan).

- exporters.py: one anchored pattern (TAG_TAIL, beside STALE_TAIL) peels
  a tail of `kind:: discovery`, `problem:: P<n>`, `depends:: Q<a>[, ...]`,
  `reopened:: round <N>` and `recheck:: Q<a>[, ...]` from the right of a
  stale-free resolution (split_tags; join_tags writes it back). The tags
  are not in the ordered named-field list. parse_register still returns
  the cell with its tail, so rows copied as they stand (ledger-only rows,
  a kept conflict) keep it; each parse point peels it first.
  import_ledger keeps each row's tail in meta.seededFrom.tags (declared in
  questions.schema.json); register() writes it back after the answer and
  before `stale::`. A merge into a ledger keeps the ledger's own tail for
  a row it holds, so a tag the terminal lane wrote after an import (a
  reopen, a --rechecked) is not undone by the next sync.
- edit_row is split into locate + rewrite_row, which peels the tail before
  change() and re-appends it, so supersede and resolve keep tags (before,
  a named row with a tag was refused as an unknown field).
- reopen_row / round.sh reopen --ledger L Q<N> --round <n> --fact-file P:
  answered row -> open with `reopened:: round <n>`; `- Q<N> | round <n> |
  was: <old answer> | fact: <fact>` appended to `## Reopened answers`
  (created right after the register when absent); `recheck:: Q<N>` merged
  into every row whose depends:: reaches Q<N> at any depth (visited set,
  so a cycle ends); prints `marked Q<M>` per row. `--rechecked Q<M>...`
  (clear_recheck) removes recheck:: and refuses a row with none. Refuses a
  row that is not answered and an empty fact. Follows the cmd_supersede ->
  supersede_row precedent: no data dir, backup, gate verdict.
- check-open-questions.sh: a resolution ending in a tail with recheck::
  (before any stale::) counts as `recheck=<n>` and blocks like stale::; a
  settled row whose resolution is only tags has an empty resolution under
  --procedure; rows_outside skips a `## Reopened answers` section, so its
  `- Q<N> | round <N> | ...` lines are not rows outside the register.
  `- P<n> |` rows in `## Problems` were never graded and still are not.
- check-round-codes.sh: `- P<n> |` rows join the ledger codes.
- The two scripts' header comments are not extended for the tags, the
  recheck count or P<n> codes: the pre-commit comment lint refuses new
  comment lines, so this message and surface/README.md carry the contract.
- Phase 3 carry-over (a): export_ledger and sync_ledger both refuse a gap
  line the gate reads as malformed (gap_lines with a writer's `where`);
  before, export dropped it and sync kept it in place.
- Phase 3 carry-over (b): surface/README.md's next-id row lists every
  source highest_id counts ([Q<N>] leads, page question ids); new reopen
  row; the import-ledger row names the tag tail.
- templates/checklist.md: `## Problems` and `## Reopened answers`
  sections; the register header names the tags and points at loop.md.

Not in this commit (reported to the orchestrator, blocked by existing
tests the plan does not name as intended reversals): the exporter's
`- gap | Q<a>-Q<b> | never assigned` lines (new D2) and carry-over (c),
the trailing gap line the gate and numbering disagree on.

Sanity check 1 as written (register byte-identical after import and
export) does not hold for a plain-text answer: the exporter writes every
row in its named grammar, so `free-text: staff; then contractors` comes
back as `answer:: free-text: staff\; then contractors`, as it did before
this phase. Every tag, every named-field row and `## Reopened answers`
round-trip byte for byte, and the exported ledger is a fixed point.

Pre-flight: parsers of the resolution cell and the tail
- exporters.py parse_register: drops stale, keeps the tag tail in the cell
  (rows written back as they stand keep it).
- exporters.py ledger_register / ledger_numbers / highest_id / row_id:
  read the [<id>] lead at the start and the row number; the tail is
  opaque to them.
- exporters.py merged_register: compares and copies cells whole; takes
  each held row's tail from the ledger (split_tags) for register().
- exporters.py import_ledger: LEAD, then split_tags, then parse_named /
  parse_hold / split_tail / PROPOSES on the peeled answer.
- exporters.py parse_named: called only on peeled text (import_ledger,
  recap_answer, ledger_row, displaced_answer and resolve_row through
  rewrite_row).
- exporters.py drop_stale: unchanged; runs first, tags sit before stale.
- exporters.py LEAD / REGISTER_LEAD (split_lead, locate_row): the lead
  is at the start; split_tags keeps it on the resolution.
- exporters.py encode: writes named fields only; register() appends the
  tail after it (join_tags).
- exporters.py recap_answer, ledger_row: peel before parse_named and
  readable(), so a recap or Brief line shows no tags.
- check-open-questions.sh: stale_tail_re unchanged (the tail is before
  stale); recheck_tail_re and tags_only_re read the tail.
- skills/audit-answers/SKILL.md: reads rows by status and a `hedged:`
  substring in prose; opaque text, unaffected.
- skills/wayfind/SKILL.md: seeds from the checklist's settled answers in
  prose; opaque text.
- plugins/work-items/skills/decompose/SKILL.md: reads answered Q<N> rows
  in prose; opaque text.

Tests added
- test_exporters.py TestRegisterTags:
  test_split_tags_peels_only_a_tail_of_whole_tags,
  test_import_keeps_each_tail_beside_the_answer,
  test_an_import_then_export_writes_every_tag_back_byte_for_byte,
  test_an_import_then_sync_leaves_the_register_and_reopened_answers_byte_identical,
  test_a_merge_keeps_the_ledgers_newer_tail,
  test_supersede_and_restore_keep_the_tail_on_a_named_row,
  test_the_brief_reads_a_ledger_only_row_without_its_tags,
  test_a_recap_reads_the_answer_without_its_tags.
- test_exporters.py TestExportLedger:
  test_export_ledger_refuses_a_malformed_gap_line,
  test_sync_ledger_refuses_a_malformed_gap_line.
- test_round.py TestReopen:
  test_a_reopen_flags_every_row_built_on_it_three_deep,
  test_rechecked_clears_only_the_named_rows,
  test_a_second_reopen_adds_to_the_reopened_answers_section,
  test_only_an_answered_row_reopens,
  test_a_reopen_lists_its_entry_under_the_sections_own_text,
  test_a_reopen_keeps_crlf_line_endings.
- check-open-questions.test.sh: tags, Problems rows and Reopened answers
  rows grade clean; recheck rows counted beside stale (escaped `\;` not
  a mark); a recheck row blocks; cleared recheck is clean; tags-only
  resolution is empty under --procedure.
- check-round-codes.test.sh: a bare problem id fails; a named one passes.
No existing test changed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015XWwmeDkiEnVmSx4dtkkfh
…aps reserve ids

Finishes Phase 4 on the coordinator's decisions (DEVIATIONS.md "Phase 4,
decisions"; owner row
https://github.com/melodic-software/architecture/blob/b668e15b1993eb4df14ae8c0c60a31c43fa4adc7/docs/owner-decisions.md#L298).

- D2: export-ledger and sync-ledger write `- gap | Q<a>-Q<b> | never
  assigned` for each run of numbers below the highest row that no row and
  no gap line covers and the data dir never recorded (never_assigned).
  "An id the ledger held is never declared" is enforced by a floor: no
  number at or below the highest number the ledger text holds (its rows,
  [Q<N>] leads and accepted gap ends) is declared, so a row dropped from the
  ledger still fails the gate. "No page question ever held" is a
  membership test over what the data dir records (page_held): every
  question's id and the ids it names (supersedes, followUpOf, dependsOn),
  every event in responses.json, each round's restate decided/open lists,
  the import's rows/roundCells/tags keys and meta.ledgerSync rows. It is a
  set, not a maximum, so a stray Q600 still leaves Q3-Q599 declared. Limit:
  the data dir keeps no question history, so a question removed from
  questions.json by hand that left no event and no restate entry is
  declared; test_a_question_lost_with_no_record_is_declared_the_limit
  shows it. A written line is a well-formed gap line the next run covers,
  so a second export or sync adds nothing.
- N2 (carry-over c): the gate accepts a declared gap past the highest row
  (it reserves those ids); a range covering a row is still refused.
  numbering() and next-id honor exactly the lines the gate accepts
  (accepted_gaps), so a covering line no longer reserves ids. Basis: a
  deleted trailing row is undetectable with or without a gap line, and the
  tests this flips were added on this branch.
- round.py edit_ledger runs the gate with shutil.which("bash"): on Windows
  a bare "bash" resolves to System32's WSL launcher, which cannot open the
  Windows path and exits 127, so reopen, supersede and resolve printed no
  verdict here (fixes the three TestSupersedeResolve host failures).
- surface/README.md documents recheck=, the P<n> codes, tags-only
  resolutions, trailing gaps and the never-assigned lines (the scripts'
  header comments cannot grow under the comment lint).

Intended reversals (authorized; only the gate-refusal assertions):
- TestExportLedger.test_non_contiguous_ids_are_never_renumbered: rc 2 and
  "no row for Q1 to Q6" become the written `- gap | Q1-Q6 | never
  assigned` line and rc 0; the never-renumbered and lead assertions stay.
- TestBriefIds.test_without_a_ledger_a_gap_keeps_every_id_with_no_lead:
  rc 2 and the gap-line message become the written `- gap | Q2-Q2 | never
  assigned` line and rc 0; the no-lead and hand-declared steps stay.
- test_export_ledger_keeps_a_gap_line_past_the_last_row_and_the_gate_refuses_it
  is renamed ..._and_the_gate_accepts_it: rc 2 and "runs past the highest
  row Q2" become rc 1 and "registered=2 open=2" (two open rows).
- check-open-questions.test.sh "a declared gap past the highest row -> 2"
  and "a gap past the highest row is named with its line" become "... ->
  0" and "a gap past the highest row is not an error" (empty stderr).

Tests added
- TestNeverAssigned: test_without_a_ledger_ids_the_page_never_held_are_declared,
  test_a_second_export_and_a_second_sync_add_nothing,
  test_a_row_the_ledger_held_and_the_page_dropped_is_not_declared (gate
  exit 2), test_a_question_the_page_once_recorded_is_never_declared,
  test_a_question_lost_with_no_record_is_declared_the_limit.
- TestRegisterTags: test_export_import_export_is_a_fixed_point,
  test_a_plain_answers_words_survive_the_named_form.
- check-open-questions.test.sh: an escaped `\;` in the answer before
  `; recheck::` still blocks (exit 1, recheck=1).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015XWwmeDkiEnVmSx4dtkkfh
Rewrites the 12 cases the Phase 1 audit marks rewrite and retires the six
interview-pacing-* cases, per the approved interview-redesign plan.

Rewritten (each moves its prompt past the intake round by stating the
round-1 answers, adds Bash and Agent to allowed_tools, and gains one grader
only the new skill passes):
- intake round asks discovery questions with no recommendation (Brief AC8),
  so cases that graded a round-1 recommendation now grade round 2, and gain
  scope-check-line (the round header's Scope check: line, AC7):
  interview-intent-asked-recorded, interview-negative-recommendation-yes-accepts,
  interview-option-existing-control-drops, interview-option-known-repetition-keeps,
  interview-recommendation-basis-and-flip, interview-scenario-walk-two-purchase-kinds,
  interview-scope-cut-moscow, interview-term-clash-qualified-name,
  interview-context-unfamiliar-term-upstream (its Context regex also ends a
  block at Discovery:, Held:, Second view:, Departs from: and Scope check:)
- the default standard detail level prints no Basis: or Origin: line (AC5,
  AC6), so "a Basis: line" becomes "a recommendation whose reason names its
  basis": interview-round-topic-groups (gains scope-check-line),
  interview-single-pacing-one-question (gains no-basis-line)
- the opening lines take the owner-approved round-8 shape (AC14):
  interview-surface-unset-offer-one-line swaps one-offer-line for
  opening-lines (count 1, same strength) and accepts an open round-1 question

Retired: interview-pacing-round-arm, -single-arm, -single-arm-open-b,
-single-arm-open-d, -single-arm-step-2, -single-arm-step-3. The experiment
concluded (run 3: ROUNDS HOLD UP) and measured a layout the owner changed
(question_detail levels); its graders are frozen by its own rule. Recorded
as Amendment 3 in interview-pacing.md; question-quality coverage moves to
the new case interview-round-quality-standard (next commit).

Legacy skills/interview/evals/evals.json: entries 1, 5, 7, 8, 20, 23, 25,
27, 28, 43, 44, 48 edited where an expectation became false (intake round,
standard print, terms written after confirmation).

Re-pins in tests/interview-defenses.test.sh (the read of each case's diff
shows the defense intact):
- case 1 still resolves codebase-answerable questions without asking:
  5e38782253a410890320cddc3c5c44d71ab64666bb596bc954167f1447059bdd ->
  1065f9d322d8ae3b5179ac13ec75e615044f42b7ada5455737d285048032a217;
  the codebase-resolution expectation is unchanged; only the
  recommendation expectation is scoped to decision questions.
- case 8 still asks decisions and only looks up facts:
  869a487d5f0abe19cdbe5693b90beabb55f56fbdacf6642bedad62494ce029f5 ->
  bedb9fd8e5923395d229e36cf50479530e58abcd8503a3ae989212162b789c45;
  the format is still looked up and the precedence still asked with a
  recommendation, now placed in the first decision round.
- case 25 still refuses to settle a row on a superseded recommendation:
  186a511bef86bbc7fe9679359c350c39111c3eab0c8761eb8f98196882f40b9f ->
  a3e7ffd4412ccfb51465f0be3d871221a6c288d53131c8436ef6025bc30974bd;
  only "recommendation with Basis" became "recommendation with its reason
  (its basis)"; the supersede and revalidate expectations are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015XWwmeDkiEnVmSx4dtkkfh
Seven new cases under plugins/planning/evals, each one prompt with a
scaffolded ledger or stated round-1 answers, deterministic graders first:

- interview-numbering-tool-display-order: a ledger ending at Q7; the run
  calls round.sh next-id, new questions start at Q8 in the order shown,
  none reuses Q1-Q7, and the ledger gains an open Q8 row (AC4).
- interview-numbering-stray-id-not-reused: a ledger with Q1, Q2, a declared
  gap and a stray Q600; new ids start at Q601 and no id changes (AC4).
- interview-reopen-contradicted-answer: a reported fact contradicts answered
  Q3, and Q5 depends on Q3; the run calls round.sh reopen, the ledger shows
  Q3 open with reopened::, Q5 with recheck:: Q3, and the old answer under
  ## Reopened answers (AC4).
- interview-held-until-lookup-returns: a lookup reports back in another
  session tomorrow; the dependent question sits on the Held: line and is
  not asked (AC9).
- interview-intake-discovery-only: a first request with unknowns; round 1
  asks only open questions with a Discovery: line and no My recommendation:
  line (AC8).
- interview-sweep-reports-contradiction: every row answered, two that cannot
  both hold; the reply asks one question naming both. The eval evidence for
  removing the per-round contradiction pass (AC10).
- interview-round-quality-standard: the retired round-arm prompt with
  graders for the standard layout (coverage of the four planted decisions,
  Context citing a stated fact, a recommendation whose reason names its
  evidence or Withheld:, alternatives, a three-dash rule between questions,
  the Scope check: line, the closing probe). Not part of the frozen pacing
  experiment.

Every case validates offline (validate-cases.py exit 0) and holds no
transcript.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015XWwmeDkiEnVmSx4dtkkfh
…wer entries

Code-design review of Phases 3-4
(.work/reviews/feat-interview-redesign/20261121T1100Z-code-reviewer.md).

- C1: rewrite_row, on the reopen and --rechecked paths (the ones that pass
  retag), writes the row's `stale::` mark back after the new tag tail, and
  format_tags keeps every tag the path does not own. Before, reopen then
  --rechecked removed `stale:: C<n>` and the gate passed a row whose
  constraint was never rechecked. supersede and resolve (edit_row, no
  retag) still drop the mark, as main does.
- C2: check-open-questions.sh rows_outside skips under `## Reopened
  answers` only a line in the entry shape `- Q<N> | round <N> | was: ... |
  fact: ...`; any other `- Q<N> |` line there is a row outside the
  register again (exit 2), as on main.
- S4: export-ledger --ledger writes the ledger's `## Problems` above the
  register and its `## Reopened answers` last (carried_section), as
  sync-ledger leaves them, so the amended round trip holds through
  export-ledger too.
- S1: add_reopened creates the section after the register's whole level-2
  section (section_span), its `### Deferred questions` included, where the
  checklist template puts it; headings() now returns each heading's level.
- S2: parse_tags names the row in its repeated-tag refusal; a parity test
  runs the gate on rows split_tags reads and compares the recheck count and
  the tags-only rows.
- S3: the never_assigned docstring states its floor as the highest number
  the ledger's current text holds, and the limit above it; README too.
- S5: meta.ledgerSync.rows holds `Q<N>` strings (round.py
  record_ledger_sync builds them from each drift note's leading Q<N>, or
  `order`); page_held reads them as such, tested through the real
  ledger-check writer.
- The TestRegisterTags fixture puts `### Deferred questions` inside the
  register section and `## Reopened answers` after it, the template's order.

Tests added
- test_round.py TestReopen: test_reopen_and_rechecked_keep_a_rows_stale_mark
  (fails with the fix disabled), test_a_new_section_goes_after_the_registers_deferred_questions.
- test_exporters.py TestRegisterTags:
  test_export_ledger_keeps_the_problems_and_reopened_answers_sections,
  test_the_tag_grammar_matches_the_gate, test_a_repeated_tag_is_refused_naming_its_row.
- test_exporters.py TestNeverAssigned:
  test_an_id_only_the_last_ledger_check_recorded_is_never_declared.
- check-open-questions.test.sh: a register row under Reopened answers is
  still outside the register -> 2; only the entry-shaped line is skipped.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015XWwmeDkiEnVmSx4dtkkfh
…estion_detail setting

Phase 5 of the interview redesign, without the round-file structure
check (see below).

- round.sh show --level full|standard|minimal <round-N.md>: prints a
  saved round at the plan's detail level. full is byte for byte;
  standard drops Origin:, Basis:, Checked against: and the Source:
  quote's body (its links stay) and puts each alternative on one line;
  minimal also drops Context: and Source: and prints
  `Alternatives: <n> (say "more Q<N>")`. The header, blank lines and
  `---` rules stay at every level; line endings are kept.
- round.sh scope-check --ledger L --round N --limit M [--rounds-dir D]:
  `<rows> of M questions registered; round <n> added <a>, settled <s>`
  for the two rounds before N (settled: answered, deferred, withdrawn,
  blocked). With D, the two rounds are the highest below N that have a
  round-<n>.md.
- round.sh measures --ledger L --rounds-dir D --level V:
  `rounds= median_lines= reopened= after_lookup=`; a fact names a
  lookup when it holds a /<plugin>:<skill> or the word lookup.
- The shared fixture surface/tests/fixtures/round-file/round-full.md,
  read by test_round.py and check-round-codes.test.sh.
- question_detail (full, standard, minimal; default standard) in
  plugin.json userConfig and planning.schema.json beside
  question_pacing, its row in reference/config.md "Convention-home
  keys" (now five interview keys), the generated README options table,
  and surface/README.md rows for show, scope-check and measures.

Not in this commit: the two structure checks in check-round-codes.sh.
Added unconditionally, they fail eight existing check-round-codes.test.sh
cases whose rounds have no Scope check: header or a question with no
recommendation line; the brief forbids editing those tests.

Tests added
- test_round.py TestRoundShow: test_full_prints_the_file_byte_for_byte,
  test_standard_drops_the_evidence_lines_and_the_quote_body,
  test_standard_keeps_the_source_link,
  test_minimal_keeps_the_answer_lines_and_counts_the_alternatives,
  test_no_level_hides_a_flips_if_or_commits_you_to_line,
  test_crlf_line_endings_are_kept, test_an_unknown_level_is_refused.
- test_round.py TestScopeCheck:
  test_the_last_two_rounds_before_the_shown_one,
  test_round_two_has_one_earlier_round_and_round_one_none,
  test_the_rounds_dir_names_the_rounds_that_were_shown,
  test_a_round_below_one_is_refused.
- test_round.py TestMeasures: test_rounds_median_lines_and_reopened_rows,
  test_median_lines_count_the_round_at_the_shown_level.
- check-round-codes.test.sh: the shared round fixture names every code.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015XWwmeDkiEnVmSx4dtkkfh
The rest of Phase 5: check-round-codes.sh runs two structure checks
beside the bare-code check, unconditionally, as the plan specifies.

- Each question block holds exactly one My recommendation:, Withheld:,
  Discovery: or (the product action) Strong answer: line; the lines
  before the first question hold a Scope check: line. Failures print
  `missing=<line>:recommendation|single-recommendation|scope-check`, and
  the summary keeps its `codes= bare= status=` prefix and appends
  `structure=<n>`. Exit 1 on a bare code or a structure failure.
- One label grammar in both parsers: an optional marker (characters
  outside printable ASCII, such as an emoji), optional bold, the label
  and its colon. round.py show used `[^\x00-\x7f]*\s*`; both now use
  `[^ -~]*[ \t]*`, so a Context bullet such as `- Basis:` is never a
  label in either.
- The eight existing check-round-codes.test.sh rounds that the checks
  would fail gain only a Scope check: header line and an answer line;
  no assertion text changes. The passing run of the walk-overlap round
  reads a sibling file, walk-overlap-round.md, so the failing run's
  `bare=3:S1` line number stays as it was.

Tests added
- check-round-codes.test.sh: the shared round fixture passes the
  structure checks; a Context bullet that starts with a label word is
  not a label; a decision question with no recommendation fails; a
  missing recommendation fails the summary; a discovery question with a
  Discovery: line passes; a header with no Scope check: line fails; a
  bold recommendation label after a marker counts; a question with two
  answer lines fails; a product-action round with a Strong answer: line
  passes.
- test_round.py TestRoundShow:
  test_a_context_bullet_that_starts_with_a_label_word_is_not_a_label
  (fails with the old `[^A-Za-z0-9]*` prefix).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015XWwmeDkiEnVmSx4dtkkfh
…nd recommender and stable ids

Rewrites the interview's flow text so the model calls the Phase 3-5
tools and follows the redesigned flow (Brief AC8-AC12; plan Phase 7).

- context/lookups.md (new): the one home for the gap triage before
  round 1 (lookup, discovery question or decision question), the intake
  round (only open discovery questions; none when the triage leaves
  none), when a lookup runs and what its brief carries (lookups named by
  what they read; one running dispatch per lookup skill; an inline read
  when no explore or research skill is listed), held questions (a
  lookup the user reports running elsewhere holds too), and round.sh
  reopen for a fact from any source that contradicts an answered row.
- agents/interview-recommender.md (new): the blind recommender; Read,
  Grep and Glob only; no model or effort field; one line per question,
  recommendation with sourced basis, flips-if and departs-from, or
  withheld; no reasoning written out.
- SKILL.md: Stance item 4 loads the glossary at the start of every
  interview with one line and writes a term only after the user
  confirms its restatement (IMMEDIATELY removed); the pre-round-1 terms
  question becomes "Agree a term where it first appears"; a discovery
  question carries a Discovery: line and no recommendation (the
  idea-stage withheld case moves to it); ids come from round.sh next-id
  in display order (no-Bash fallback stated); held questions, the
  lookup rule and reopen point at lookups.md; Step 2 gains the
  recommender dispatch with Second view: and Departs from: lines and
  the no-Agent fallback; the sweep reports every finding and the
  disposition pass filters; quality bar asked as a discovery question.
- context/loop.md: Frontier rounds item 2 states the round order,
  items 3, 4, 7 and 9 match the new flow; the register documents
  declared gap lines, the tag tail and the Problems and Reopened answers
  sections; Out-of-band drift checks answered rows too (outcome 4,
  reopen); terminology matrix rows are added at first use.
- context/assumption-sweep.md: the brief asks for every finding with no
  cut; Disposition is named the filter pass; new rows take next-id; a
  contradiction question names both rows by id and plain name.
- context/routing.md: Problems section (P1, P2 agreed in round 1, the
  problem:: tag, no fourth wayfind trigger) and the scope-check line
  from round.sh scope-check, with its no-Bash fallback; the round-1
  wayfind question keeps its recommendation in an intake round.
- context/composition.md: explore and research are lookups whose brief
  carries the constraint ledger (no "reads the Brief as scope"); rows
  for the recommender and the glossary lookup.
- context/handoff.md: no after-the-Brief explore or research pass.
- context/term-clash.md: an agreed qualified name is written with the
  other agreed terms after confirmation; the matrix keeps it otherwise.
- context/gotchas.md: "gapped Q<N>" reads "an undeclared gap".
- templates/checklist.md: Step 2 and the sweep exit match the new flow;
  Step 5 no longer routes to exploration or research; matrix and
  Reopened answers notes updated; the example register rows are deleted
  before the first next-id or scope-check call, which count them (a
  copied template made next-id print Q4).
- audit-answers SKILL.md Steps 1 and 4 and evals.json id 1: an open
  kind:: discovery row is held out of the auto-accept and goes to the
  human.

Re-pins in tests/interview-defenses.test.sh (no pin added, removed or
loosened; every phrase and pin_exact pin passes unchanged):
- SKILL.md Stance: e059b8a9bdadf3a44593745098d9365d46b80fe2e2e9bdb3d449ab124d0481b0
  -> 7d7f2372cef7aaa76d271c3e57e6a9a6208727c94b4dce3c6d33357f2d2926e4:
  the edits add the discovery shape, next-id numbering, the lookups
  pointer and term agreement; the no-silent-resolve rule and the
  partial-round rules are byte-identical, and a discovery row is never
  resolved by an accept-shorthand.
- loop.md open-question register: e44127457a9cf37557b903698e15949a28c723a1ed32049c53c5b1fa861c45bf
  -> 17235dec719241d850f2ed32efecce845e4d4eac28df159c58c0cead6a05ca81:
  adds declared gaps (the gate still refuses any other gap) and the tag
  tail; outcome 4 reopens a contradicted answer instead of changing it;
  ask-time writes, the drift check, the unattended ladder and the gate
  are unchanged.
- SKILL.md Step 2: f332b13eda79cde79825d912827e70b18971870c60accde42f0ff5c79ca3bcea
  -> d9c84aac832447d47e2f50d5008a449d378bfa3282291d0334c9bd65129a8744:
  adds the recommender paragraph and the sweep's report-all wording;
  the constraint ledger, candidates, currency, tripwire and sweep rules
  still hold and no row is resolved for the user.
- loop.md Step 2: d91d5185a66e75854f16198128e991ce047bc6129c947a435078d12dca083df0
  -> cd3481b6f2d547f82f33ee14cc69e22b38a5c936f857461f9e8538e18cdfd3d1:
  round order, the lookup pointer, the recommender clause and term
  agreement; the constraint ledger rows and the process-change
  definition are byte-identical.
- loop.md relentless mechanics: 493b9e062228d39672b85ea3256e8a3c360fce9df183d08de9ea081666e20076
  -> 53ad96eee9dc6133be50f497d4228b725006506df953ad9d24bedbc087ea9c9d:
  next-id on the counter line and matrix rows added at first use; the
  late commitment row still takes the next free id.
- context/assumption-sweep.md: 4d1a6e8c8789645fb58bbae26822fc34d2fdcefda674e0d7210247dcccc8f0f3
  -> 19473131cf19c03e6f3f17d95c9012b143b505435d0d0eb8a21239774b4b6c0a:
  the sweep now reports every finding and Disposition is the filter;
  scope, item shape, every disposition, USER-RESERVED and the fork ban
  are unchanged.
- audit-answers Step 1: d1141bf7988e5cca6c1f9566d2b61ee48d7d627d8ebe5fe1855799d6fb539b71
  -> fcd7f1b010811f56cc798884acb234563423896cec52d507c8a6d2520686195f:
  adds one floor item (an open discovery row is never auto-accepted);
  the never-auto floor only widens.
- audit-answers Step 4: 58e23f0911f4ee7a3cc0ff33cf3ccadf7a539cc2b680e1dc7f1344fe0fb40240
  -> bdbde2c21e6f1c7bc05b752b25541ce15d59f703ba6d83a936d64842e0c1fd44:
  discovery rows join the rows routed to the human; hedged rows still
  always reach the human.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015XWwmeDkiEnVmSx4dtkkfh
scripts/validate-plugin-contracts.mjs fails any agent definition with no
model line, and accepts `model: inherit` only with a trailing
`# reason:` comment. The plan's Design wants the recommender to run on
the session's model and name none; `inherit` does exactly that, so the
Design's intent holds and the contract check passes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015XWwmeDkiEnVmSx4dtkkfh
… for settled statuses

Code-design review of Phase 5
(.work/reviews/feat-interview-redesign/20261121T1200Z-code-reviewer-phase5.md).

- C1: a list item (`- Q4: ...`, `1. Q4: ...`, after any `>` quote)
  never opens a question, in check-round-codes.sh question_id and in
  round.py question_id. The shared fixture gains a `- Q4:` Context
  bullet under Q10.
- C2: exporters.SETTLED (answered, deferred, withdrawn, blocked) beside
  UNSETTLED, used by the status count, the import status check and
  round.py scope-check. The gate restates the set in bash, so a test
  runs the gate on each status and compares the ones it settles.
- C3: exporters.reopened_entry writes and REOPENED_ENTRY /
  reopened_entries read the `## Reopened answers` entry; reopen_row and
  round.py measures use them. TestMeasures builds its entries with
  `round.sh reopen`, and a test runs the gate on reopen_row's output.
- I1: a line that starts with a protected label word in any form
  (Flips if, Commits you to, Withheld, Discovery, Second view, Departs
  from) starts a segment kept at every level, whatever field it follows.
- I2: round.py takes check-round-codes.sh's fence rule (quote and list
  prefixes, the fence character, a closing run at least as long with
  nothing after it). The shared fixture gains a four-backtick fence
  holding a three-backtick line, a `Q9:` line and a `Basis:` line.
- I3: LOOKUP matches lookup, lookups and looked up, and a
  /<plugin>:<skill> only when not inside a path.
- I4: tests for the even-count median (integer and .5), zero rounds, a
  Source: with no link, and inline alternatives, which now stay as
  written at every level instead of printing `Alternatives: 0`.
- S3: the changelog names every protected line. S4: the show docstring
  and surface README say every run of blank lines collapses. S5: the
  header needs exactly one Scope check: line
  (`missing=1:single-scope-check`).

Tests added
- test_round.py TestRoundShow:
  test_a_protected_line_under_a_dropped_field_is_kept,
  test_a_source_with_no_link_prints_nothing_at_standard,
  test_inline_alternatives_are_kept_as_written; the fixture's new Q4
  bullet and fence are asserted by the existing minimal and standard
  literal tests.
- test_round.py TestMeasures (entries now written by reopen):
  test_the_reopen_writer_and_the_measures_reader_agree,
  test_an_even_count_median_is_the_mean_of_the_middle_two; the other
  two expect reopened=5 after_lookup=3 and the fixture's 58 lines.
- test_exporters.py TestRegisterTags:
  test_the_gate_settles_exactly_the_settled_statuses,
  test_the_gate_skips_the_entry_reopen_writes.
- check-round-codes.test.sh: a list item that opens with Q<N>: is not a
  question line; a header with two Scope check: lines fails.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015XWwmeDkiEnVmSx4dtkkfh
…one home per rule

Phase 8 of the interview redesign (Brief AC5, AC6, AC13, AC14), plus the
four IMPORTANT findings and the cheap SUGGESTIONs of the Phase 7
code-design review (.work/reviews/feat-interview-redesign/
20261121T1300Z-code-reviewer-phase7.md).

- SKILL.md: the per-question template is the saved full block, with a
  blank line after the title and a `---` line between questions. "Keep
  the layout whole" owns Context first and the `---` rule (product.md is
  a declared exception); new "Save the full block; print it at the detail
  level": the round sent is `round.sh show --level <question_detail>`
  output, "more Q<N>" and "full round", the protected lines, and the
  no-Bash standard print. Origin:/Basis: bind the full block; the printed
  reason ends with its evidence label and source at every level. New
  "Open the round header with its scope check". The bare-code paragraph
  describes the structure checks and how to fix each missing= line
  (scope-check, single-scope-check, recommendation,
  single-recommendation). "One question at a time" is renamed "Question
  pacing". Round order, ids, the shared lane's cap, commitment parts per
  lane, scenario ids, Context terms, held questions and lookups point at
  their homes. New "Three glossaries, and who writes each"; the closing
  summary group is renamed "Project glossary changes". Step 4 gains
  "When the contract is persisted". The Question lanes resolver call
  passes --pacing and --ledger and prints `line` as the opening lines.
- Review fixes: a term's restatement is registered like any question
  (finding 2); the glossary plugin offer is in offers/offerable.json
  (finding 3); a routing suggestion in an intake round is one plain line,
  never a `My recommendation:` block, in lookups.md and routing.md
  (finding 4); interview-recommender.md says it inherits the session's
  model (finding 1); a withheld question shows no Second view: line, a
  basis fact missing from the Context is added to it, the quality bar's
  three bars sit in its Context, discovery questions may arise in any
  round, the sweep's "no severity, confidence or blocking cut" matches
  assumption-sweep.md, the hold and reopen rules are stated once in
  lookups.md (SUGGESTIONs 5-10). Skipped: 11 (unattended rung for an open
  discovery row: loop.md Unattended path is a pinned ladder and the
  change is a design call), 12 (interview-person-deferred-document grader:
  an eval grader edit outside Phase 8's files).
- lookups.md: one home for A1-A4, A6, A7: a released held question is
  asked in the next message that presents questions; a recommendation is
  never shown before its facts (held, else withheld); new "Passes around
  the interview" (before round 1, during the rounds, after confirmation;
  no context clear between passes).
- loop.md: Frontier rounds item 2 is the one statement of round order
  (item 4 and SKILL.md point at it); the header names Scope check:; item
  5 points at SKILL.md Step 4 for when the Brief is written; the counter
  points at question-shape.md; the shared cap is the one exception to
  "never capped"; the degrade table's column is headed `Q`; the glossary
  is read at the start of every interview; terminology restatements are
  registered.
- question-shape.md: the `id` row (one counter per topic, assigned by
  next-id when first shown); the alternatives count in every lane; the
  Context terms rule is the one home.
- lane-shared.md: "Round cap" (8), the id rule via next-id, gaps declared
  by a gap line, terminal-only layout rules. lane-page.md, lane-document.md
  and surface.md: id and gap pointers, terminal-only layout rules.
- product.md, scenario-comparison.md: the declared exception; the scenario
  id home. templates/document.md: a blank line between label blocks.
  templates/checklist.md: the sweep's seven categories.
- composition.md, handoff.md: pointers to lookups.md and the renamed group.
- reference/config.md, schemas/planning.schema.json: question_detail names
  every line no level hides.
- surfaces/registry.mjs: `line` is the round-8 opening, one sentence group
  per line: `Asking here, one round|question at a time. A local page or a
  shared session is also available; say which to switch.`, `Questions are
  saved to <ledger>.` (with --ledger), then one `Optional:` line per
  installed planner and per offer. Entries gain optional `where`
  (terminal: here) and `offerName` (page: local page). Readers of `line`:
  SKILL.md "Question lanes" only (the lane spokes print notices, not it).
- offers/offer-source.mjs: the offer text is `<name> <helps>. Say "install
  <name>" to add it`; offerable.json adds domain-driven-design.
- Legacy skills/interview/evals/evals.json: "next contiguous Q<N>" becomes
  "next id from round.sh next-id" (no digested case touched).
- session-flow steps.md and pre-implementation-order.md: pointers only.

Tests
- surface-registry.test.mjs: the opening lines asserted exactly against
  the Q38 wording and the eval's first-line regex; pacing single; no
  ledger, no saved-to line; planner and offer lines; the offer name is
  an argument word. The null-line, unavailable-surface, document and
  kiosk assertions are kept.
- offer-source.test.mjs: the owner-approved offer text; the glossary
  entry is listed by this marketplace at ./plugins/domain-driven-design.

Re-pins in tests/interview-defenses.test.sh (sha literals only; no pin
added, removed or loosened; every phrase and pin_exact pin passes):
- SKILL.md Stance: 7d7f2372cef7aaa76d271c3e57e6a9a6208727c94b4dce3c6d33357f2d2926e4
  -> 2f45a095d33c22488286ffd2c5b0248b1f3f9123084245b4c2fbc9916fd94406:
  layout, detail levels, scope-check header, pointers to the rules'
  homes and term restatements registered; partial rounds still never
  resolve an unanswered question, and only where it re-surfaces moved to
  loop.md item 2.
- SKILL.md Step 4: 3fee6385252f2f476aef4e00797c9f416e7a7c7f89e3ea6ebdabad267177a640
  -> 6e6577f57f115fa749e6fb5ec9bef7bf860cfdc07d36aa7aa064563f7f02b981:
  adds "When the contract is persisted"; the cross-check, the
  UNCONFIRMED stamp and the scope path are unchanged and nothing acts on
  an unconfirmed Brief.
- SKILL.md Action Router: 9ec05ae465fc8e693fde59be1e81d386cd350f63021787ecc29179fc23eff758
  -> 368743e50f46c68695014cc10793b89a1cf2c0b2e84258798579c4fbe0e5c36d:
  the resolver passes --pacing and --ledger, the opening prints as lines,
  and the cap names the shared lane's exception; the lock row and
  STOP-on-gap are byte-identical.
- SKILL.md Step 3: 101586e9916d476589a8519aa93cf89121ad517d46278a480aab737027563419
  -> d1aedd09a3cc54f12763212381e7ef7b0731165303cf4b18ba6e1da2c9526533:
  the Glossary group is renamed "Project glossary changes"; the gates and
  the confirmation exemption are unchanged.
- SKILL.md "does NOT do": 261ea805a3e429229840ef9c86bacdae791acedfa9aedbfb2d95c5e949273d84
  -> 6fbbb933036f9c1f2b060ec0e16099fa04bfb8082a8f429e396a462cd16856de:
  "in-flight lookup" becomes "a lookup" with its link; the fudge
  prohibition is byte-identical.
- SKILL.md Step 2: d9c84aac832447d47e2f50d5008a449d378bfa3282291d0334c9bd65129a8744
  -> 4f1230d595f67a615b884320885dcc743dd42080822d3197a2f4a823ab7cb95d:
  a failing consequential recommendation is held for a lookup instead of
  shown "not yet researched" (stricter), the recommender's withheld and
  missing-fact clauses, the sweep's full no-cut wording; constraint
  ledger, candidates, tripwire and sweep rules hold.
- loop.md Step 2: cd3481b6f2d547f82f33ee14cc69e22b38a5c936f857461f9e8538e18cdfd3d1
  -> 221af05eb4cb7c1f58a756f9218fc7f23ad420e5266d569ca2db6ca379ffd416:
  item 2 is the one round order, the header names Scope check:, item 5
  points at Step 4, restatements are registered; the constraint rows and
  the process-change definition are byte-identical.
- loop.md relentless mechanics: 53ad96eee9dc6133be50f497d4228b725006506df953ad9d24bedbc087ea9c9d
  -> 713bf5f475597226013d471a5cc1a41a4579e256b844c69d8d5c9b28aea15a01:
  counter and cap pointers, the `Q` column, the restored registration of
  a term restatement; the late commitment row still takes the next free
  id.

Not changed: the Gates section, since no text may be added above the
Action Router; its "Full rule: Step 3/Step 4" pointers already lead to the
G1 home.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015XWwmeDkiEnVmSx4dtkkfh
A colon followed by a space inside an unquoted YAML scalar made claude plugin eval refuse both case files (YAML Parse error: Unexpected token); validate-cases.py did not catch it. The text now reads 'a Scope check line'.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

Claude-Session: https://claude.ai/code/session_015XWwmeDkiEnVmSx4dtkkfh
…nded discovery rows

Phase 8 code-design review
(.work/reviews/feat-interview-redesign/20261121T1400Z-code-reviewer-phase8.md).

- IMPORTANT 1: SKILL.md "Save the full block": under `single` pacing each
  message carries the round header and only that question's block from
  the `round.sh show` output (text only; round.py unchanged). "The full
  layout" becomes "the whole question layout", defined there as a block
  printed at the resolved level, never the `full` level (SKILL.md,
  loop.md "Discussing", routing.md, term-clash.md). The
  interview-single-pacing-one-question graders still match: they check
  one question with its context, reasoned recommendation and
  alternatives, and no Basis:/Origin: line.
- IMPORTANT 2: legacy evals.json case 27
  (resumed-recommendation-re-grounded-against-a-later-constraint): the
  "marked not yet researched" alternative becomes "held for a lookup and
  named on the round header's Held: line", in expected_output and
  expectation 2. Not digest-pinned.
- IMPORTANT 3: loop.md "Frontier rounds" item 2 says how its classes sit
  inside topic groups; SKILL.md "Group the round by topic" and item 4
  point at it.
- Open question (decided by the coordinator): loop.md Unattended path
  gains "An open discovery question takes rung 3" beside the problem
  confirmation's rung; rungs 1-5 are byte-identical.
- SUGGESTIONs: config.md and planning.schema.json point at SKILL.md's
  protected-line list instead of copying it; lookups.md says the
  interview routes no explore or research pass after the Brief, while
  design and plan run their own (session-flow steps.md 2-3 agree);
  SKILL.md Step 4 names round.sh export-brief as the UNCONFIRMED stamp's
  writer, and says the confirmation gate alone holds a Brief written by
  hand.

Re-pins in tests/interview-defenses.test.sh (sha literals only):
- SKILL.md Stance: 2f45a095d33c22488286ffd2c5b0248b1f3f9123084245b4c2fbc9916fd94406
  -> 913182d8f122427687e3daa10eb5a74f25cd0af1df918c68a094d162ac4bb128:
  the single-pacing print, the "whole question layout" wording and the
  topic-group order pointer; no-silent-resolve and partial rounds are
  unchanged.
- loop.md open-question register: 17235dec719241d850f2ed32efecce845e4d4eac28df159c58c0cead6a05ca81
  -> 272e5524066f4072445dcf55f67574eb3ed49ceeee681fcbcc71f86d075df83f:
  "Discussing" says the whole question layout, and the Unattended path
  paragraph below; the gate, drift check and ladder rungs are unchanged.
- loop.md Unattended path: dde4506c0ec506447f50ebe6aea64cc35a2f917a6707d924a62bd7777910df77
  -> fd049b8e15a5dcc646e5a69e778d17f60b3e3df17353d0f2d5d72d6919a7f0f7:
  adds one paragraph putting an open discovery row on rung 3 (blocked,
  USER-RESERVED), which only widens what is never assumed; rungs 1-5
  are byte-identical.
- SKILL.md Step 4: 6e6577f57f115fa749e6fb5ec9bef7bf860cfdc07d36aa7aa064563f7f02b981
  -> 68a8e1087285efdae51d408be2e5d551399de6c98cf1c4e8142a5d3633dd3317:
  the persistence paragraph names export-brief as the stamp's writer;
  the cross-check and brief=unconfirmed exit are unchanged.
- loop.md Step 2: 221af05eb4cb7c1f58a756f9218fc7f23ad420e5266d569ca2db6ca379ffd416
  -> f458232e95be64764519502cbb91bf973ce0cef5f8d1e7dbf96b1e4f87eebb6f:
  item 2 orders questions inside topic groups and item 4 points at it;
  the constraint rows and the process-change definition are
  byte-identical.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015XWwmeDkiEnVmSx4dtkkfh
The shared round fixture holds a round exactly as the interview saves it (Context: with its bullets directly under it, a fence inside a Context bullet), which MD031 and MD032 reject; a per-directory .markdownlint-cli2.jsonc turns off those two rules for that fixture directory only, as seven other fixture and vendor directories already do. round.py: labelled -> labeled (typos check).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

Claude-Session: https://claude.ai/code/session_015XWwmeDkiEnVmSx4dtkkfh
run-validity.py marks a with-arm run INVALID on a sandbox network denial
unless its case is tagged no-network (plugins/evals/skills/plugin-eval/
SKILL.md "a case whose prompt.md or case.yaml tags include no-network";
only run-validity reads the tag, the CLI does not). Rule, written before
any counted batch: a case gets the tag when its prompt or scaffold
supplies every fact its graders depend on, so no grader can be met only
through a network lookup.

Applied by reading every case of the Phase 9 run set (74: the 68 interview
cases including brainstorm-spec-stage-no-candidates, the seventh new case,
and five out-of-tag cases). All 74 meet it: the graders judge what the reply
does (questions asked, wording, ledger rows, files written), and every fact
they name comes from the prompt or the scaffolded repository. Where a grader
names a vendor (Loqate, Shopify, PagerDuty, Kafka) it grades behavior, not a
vendor value; interview-recommendation-basis-and-flip accepts a fact the
user stated, so a URL is never the only way to pass. No scaffold fetches
anything (grep for curl, wget, git clone, pip, npm, http in every scaffold).
Ten cases already carried the tag and fit; 64 gain it, one line each,
nothing else changed. The per-case table with each reason goes in the PR.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015XWwmeDkiEnVmSx4dtkkfh
…acter budget

validate-plugins failed the pre-push gate: the description was 359 characters (docs/contracts/plugin-option-naming/README.md budget 300); now 294, README options row regenerated with scripts/sync-plugin-options-docs.py.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

Claude-Session: https://claude.ai/code/session_015XWwmeDkiEnVmSx4dtkkfh
@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 21, 2026
Case edits from the Phase 9 eval diagnosis (CASE and ENV rows), approved
by the owner on 2026-11-21 ("Approve the edits"). No grader check is
dropped; each change aligns a check with the approved design.

CASE rows:
- quality-bar-stated-production, quality-bar-stated-prototype,
  intent-prototype-one-line, asks-a-round regex:
  `(?:\*\*)?(?:Q1...` -> `(?:❓\s*)?(?:\*\*)?(?:Q1...`. The default layout
  prints the emoji marker before Q<N> (layout-contract.md); the check
  still needs a numbered question ending in `?`. A pass sample of the
  emoji shape is added to each.
- intent-prototype-one-line (AC8 clash): the prompt now supplies the
  intake round's answers and asks for round 2, and the scaffold writes
  the ledger with Q1-Q2 answered `kind:: discovery`. asks-a-round's id
  anchor `Q1\b|1[.)]` -> `Q[1-9]\d*\b|[1-9]\d*[.)]`, because round 2
  opens at Q3; it still requires a numbered question. one-line-intent
  and the no-quality-requirement check are unchanged; description and
  expected_outcome now say round 2.
- coverage-prompt-asked (AC8 clash): the prompt supplies the intake
  answers (quality bar, users) and asks for round 2; the coverage regex
  is unchanged.
- coded-terms-round-answerable, answerable-without-session criterion 3:
  "shown again with its context, recommendation, basis and
  alternatives" -> the same, plus a withheld question meets
  recommendation and basis with a `Withheld:` line naming the settling
  evidence, still with context and alternatives (SKILL.md "A withheld
  question carries no recommendation marker"; Brief AC6).
- round-topic-groups, topic-groups criterion 3: same `Withheld:`
  acceptance; alternatives stay required.
- lock-restates-problem, restates-problem-and-asks:
  `(?:that|this)\b[^\n?]{0,80}\?` -> `{0,300}`; a one-line problem title
  of ~190 characters is still a restate-and-confirm question. Pass
  sample of that length added.
- owner-deferred-document, document-beside-next-step criterion 3:
  "does not choose an SSH key type" -> the same, plus naming example
  key types without choosing or recommending one is not choosing. A
  chosen or recommended type still fails.
- single-pacing-one-question: the one-question-full-layout pass sample
  carried the Origin:/Basis: lines the case's own no-basis-line regex
  forbids; it now shows the standard layout. Graders unchanged.

ENV rows:
- max_turns raised to 20 where a run used 12 or more turns in
  b2-new-main or b3-old-kept-failing: closing-probe-something-else
  (12 -> 20; measured 13 and 19), crux-on-rejection (12; 12 and 13),
  document-dba-replica (15; 18), fact-looked-up-not-asked (16; 23),
  prototype-split-by-question (12; 13 and 19),
  quality-bar-asked-bookmark-sync (12; 20),
  quality-bar-asked-ticket-dashboard (12; 19),
  quality-bar-stated-production (12; 23),
  quality-bar-stated-prototype (12; 21),
  round1-unknowns-offers-wayfind (12; 17),
  wayfind-size-suggestion (12; 15).
- adr-verdict-overruled, scenario-walk-two-purchase-kinds: the prompt
  invokes the skill in words instead of a slash command, since
  run-validity never counts a slash expansion as a Skill call; request
  text and skill-fired grader unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015XWwmeDkiEnVmSx4dtkkfh
@github-actions github-actions Bot added the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 22, 2026
kyle-sexton and others added 5 commits November 22, 2026 19:15
- handoff-unsure-midflow names-workflow-navigator: a quoted span is
  skipped whole instead of ending a clause, so a negation inside a
  quoted user phrase is still ignored and a negation before a quoted
  navigator ("no need to run \"/session-flow:workflow\"") fails again.
  Two FAIL samples added (straight and curly quotes).
- intent-prototype-one-line asks-a-round: a numbered list item counts as
  a question only when its own line ends in "?"; a Q<N> keeps the
  400-character window. A numbered plan list followed by an unnumbered
  lock question fails (FAIL sample added).
- reported-problem-instance-question no-plan-write and no-plan-edit:
  a Write or Edit to any Brief file (PLAN.md, *brief*.md) fails, so the
  write half of the dropped rubric clause (e) is checked
  deterministically.

Validator 0 FAIL; the edited regexes give the same verdict as HEAD's on
all 13 saved replies of the two regex cases. No digest pin touched.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015XWwmeDkiEnVmSx4dtkkfh
…Term: lines

check-round-codes.sh --pacing single failed every header line but the
round title, Scope check:, Later:, Held:, Settled by evidence: and ---.
The skill also puts a Term: restatement at the top of the next message
and a working-understanding restate (with any problems restate) at the
top of each round, so a correct single-paced round failed with
extra=<line>:single-header.

The check now accepts Term: lines anywhere in the header and exactly one
plain line as the first non-blank line after the round title. A plain
line before the title, a second plain line, or one after Scope check:
still fails. This takes the checker-only route rather than moving the
restate onto the title line: SKILL.md already had to change to list the
accepted lines, and loop.md and routing.md stay as written.

SKILL.md (the Stance section's round-check paragraph) now lists the
restate line and Term: lines. Re-pinned interview-defenses.test.sh
"SKILL.md Stance section is unchanged (the in-round no-silent-resolve
rule lives here)":
2a7f350e82ae34ad27f0ac02e199cf516416fac631cfd19dcd741224b66b553e ->
3186a92e888b864d54c9226e7a4144772ce7932e69eb27f7a2cd705f5a0469ce.
The edit only lists the header lines the round check accepts under
single pacing; the in-round no-silent-resolve rule is untouched.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015XWwmeDkiEnVmSx4dtkkfh
The grader accepts 32 when the count includes Q32, asked in the same
message; the expected_outcome now says the same. The judge reads only
the rubric and the last message, so no verdict changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015XWwmeDkiEnVmSx4dtkkfh
Collision-aware numbering can write a legacy question as `Q1 ... [J1]`
and a page question as `Q2 ... [Q1]`. import-ledger kept only the source
ids, so importing that ledger into an empty data dir and exporting
without --ledger gave Q1 back to the page question and moved J1 to Q2,
swapping the two rows' numbers.

import-ledger now records, in meta.seededFrom.numbers, the register
number of each row whose number is not its own id, and page_numbering
uses those numbers when no ledger text is given. A ledger's own numbers
still win when one is passed. Imports with no renumbered row write the
same questions.json as before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015XWwmeDkiEnVmSx4dtkkfh
`round.sh reopen` sets an answered ledger row to open with
`reopened:: round <n>` and moves the answer to `## Reopened answers`,
but it changes only the ledger. When the answer had been given on the
page, the next sync-ledger merge only let a settled ledger row override
the page, so it wrote the old page answer back and the contradicted
answer stood without the user reconfirming it.

merged_register now keeps a ledger row that is open with a
`reopened::` tag while the page still holds the answer the reopen
moved out (its `was:` entry), unless the page answered the question
after the round that asks it again was posted. A different page answer
is a fresh decision and wins, and so does the same answer given once
that round is up, so reconfirming the old answer does not leave the row
open for good. The merge reports the kept row as a `kept` note, not a
conflict, so sync-ledger and ledger-check do not exit 6 while the
question waits to be asked again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015XWwmeDkiEnVmSx4dtkkfh

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on d8a4cc8ff841dee0b603b89e4e053b6d3c2ba580; the summary is in this lane's pull request comment.

claude-lane: claude-review

…cter class

With quotes allowed as plain characters, the quoted-span branch could
match from one span's closing quote to the next span's opening quote and
skip a negation between them ("You said \"I'm unsure\", so don't use
\"/session-flow:workflow\"" passed). A quote now enters only through a
whole quoted span. FAIL sample added for that reply, PASS sample added
for a curly-quoted user phrase; all 13 samples check out under node,
validator 0 FAIL, and the 13 saved replies keep their verdicts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015XWwmeDkiEnVmSx4dtkkfh

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on bc24224a951f559b2c13d2cf224aadefde688136; the summary is in this lane's pull request comment.

claude-lane: claude-review

With quotes kept out of the plain-character class, a quoted span
swallowed a quoted navigator, so `Run "/session-flow:workflow" now.`
failed. The navigator may now start with an opening quote; a negation
before it in the same clause still fails. PASS samples added for a
straight- and a curly-quoted navigator; all 15 samples check out under
node, validator 0 FAIL, and the 13 saved replies keep their verdicts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_015XWwmeDkiEnVmSx4dtkkfh
@kyle-sexton

Copy link
Copy Markdown
Member Author

pr-verify (run 45093304303) passed all 6 chunks on f585bda and failed the whole spec only on the eval-gate item, because the eval results are not in the diff. They cannot be: this repository keeps raw eval run data in the gitignored .work/ (AGENTS.md). The person check the verifier asks for was made by the owner, verbatim, 2026-11-22: "Known gaps, then merge (Recommended)", after reviewing the gate. The evidence for this head is in the PR body's Verification section (F12, F13 and the per-commit list). Removing pr-verify-failed on that decision and merging.

@kyle-sexton kyle-sexton removed the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 23, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 23, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 23, 2026
@github-actions github-actions Bot added the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 23, 2026
@kyle-sexton

Copy link
Copy Markdown
Member Author

Bug report for this PR's plugins/planning/scripts/check-open-questions.sh, found by the cohort-005 Codebase Design session (UNVERIFIED by the hub; its report, relayed): a ledger that uses a cross-session id block (rows starting at Q1600 or Q1700) is reported ungradeable with "no row for Q1 to Q1699". Workshop 04's ledger (Q1600-) fails the same way. The check seems to assume ids start at Q1. Since this PR already changes that script, the fix belongs here; nothing else is editing it. Expected: a ledger whose rows form one contiguous block starting above Q1 is graded normally.

@github-actions github-actions Bot removed the pr-verify-failed pr-verify failed this head; a pass at a new commit, or after a trusted body edit, removes it. label Nov 23, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 74c2601 Nov 23, 2026
125 checks passed
@kyle-sexton
kyle-sexton deleted the feat/interview-redesign branch November 23, 2026 03:11
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 23, 2026
kyle-sexton added a commit that referenced this pull request Nov 23, 2026
…s destination

Owner round Q1809-Q1816 (workshop 03 alignment pass), unfenced once #17965
merged: blocker resolutions and touched decisions reach the routed skill and
a contradiction is named before it is recorded; deferred questions become
items or fog; the sweep comments on affected items; a confirmed provisional
decision is offered to /architecture:adr; fog may be ruled out of scope in
any session; the map closes once the destination skill reports its artifact;
chart offers a glossary seed and accepts a non-coding destination; "map of
decision items" replaces "decision map".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UJUn7NCsAcFEjGeau4GHGL
@kyle-sexton

Copy link
Copy Markdown
Member Author

Old vs new /planning:interview, scored from the saved eval results (no new runs)

  • These are regression checks, not an effect size. Old-skill runs exist for 20 of the 55 cases
    whose expected behavior did not change. Every one was launched because the new skill had just failed
    that case, and many of those cases were then fixed. The bias is of unknown direction.
  • Like-for-like cases: 13. Each has the same grader and case text on both arms, valid runs only,
    and 1 to 3 runs per arm.
    • Better on new: 4. Same: 8 (5 pass on both, 3 fail on both). Worse: 1 (coverage-prompt-asked,
      2/3 against 3/3).
    • Passes: new 13/18 (72%), old 9/19 (47%). Mean grader score per case: new 0.85, old 0.73.
  • Sensitivity checks.
    • Pooling every new run since the first full-suite run: 24/40 (60%); 4 better, 6 same, 3 worse.
    • Dropping the old runs built from an earlier main (the only old evidence for two of the four
      "better" cases): 8 cases; 2 better, 5 same, 1 worse; passes new 7/11, old 6/13.
  • Unchanged cases, new skill only: 54/60 runs pass, and 49 of the 55 cases pass every run.
  • Fail on both skills: three cases. Each one's grader passes a correct reply.
  • Rewritten cases (12): old passes 0 of 16 runs, new passes 9. Of the other three, one passes after
    a logged regrade and two are known gaps.
  • New cases (7): 5 pass. Two are known gaps.
  • Cost on like-for-like cases: median 1.29 USD per run on new against 1.04 USD on old (list price,
    judge excluded). That is a 1.14 per-case ratio; median turns go from 20 to 25.

Caveats

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

1 participant