Skip to content

feat(planning): interview scenario walk and closing summary - #15142

Merged
kyle-sexton merged 3 commits into
mainfrom
feat/interview-scenario-walk
Nov 10, 2026
Merged

kyle-sexton merged 3 commits into
mainfrom
feat/interview-scenario-walk

Conversation

@kyle-sexton

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

Copy link
Copy Markdown
Member

No related issue: owner decisions from an interview round

Summary

/planning:interview gains a scenario walk for unsettled terms and a closing summary before the confirmation recap.

  • Scenario walk: when the user calls something unclear, or a question rests on a term the glossary lacks or uses two ways, the interview offers (never forces) numbered concrete scenarios S1, S2, ... inside one question. Each names people, amounts and dates, states what it tests, and ends with its own recommendation and the term or rule it forces. The user answers per scenario ("S3: a"). Resolutions go in that question's register row; agreed terms go to the glossary through the existing vocabulary path. An opt-in diagram through /visualization:visualize is offered when available.
  • Closing summary: before the recap, the restatement lists decisions changed since read-back, glossary changes, out-of-scope items with where each goes, and one ADR verdict line per decision. Replying "Q12: record it" overrules a verdict and hands the decision to /architecture:record-decision.

Fix

  • skills/interview/context/scenario-comparison.md: new "Scenario walk" section (when to offer, shape, recording).
  • skills/interview/SKILL.md: one scenario-walk bullet beside scenario comparison; a "Closing summary" paragraph in Step 3 before "Recap and procedure check".
  • ADR verdicts come from the round's existing Decision record step. The interview never applies or copies the admission test. With domain_docs: off or no architecture plugin, the line reads ADR candidate, not checked.
  • Reconciliation with the changes-only rule: "what each decision does" lists only decisions changed since read-back, plus one line counting the rest, so the interview-final-brief-changes-only rule stands. Glossary changes, out-of-scope items and the ADR verdict lines are listed in full. Every decision therefore appears once, on its verdict line, where it can be overruled. That case's grader now allows an ADR-verdict section that names each decision without its answer, and gains a pass sample showing it. It is not weakened otherwise.
  • S ids get no register row; check-open-questions.sh is unchanged. check-round-codes.sh already reads an assumption sweep's - S<N> | rows as codes. A scenario that opens with S<N>: passes, and a bare one fails. Two tests now cover this with a sweep-row ledger.
  • actions/restate.md is unchanged. It is a one-paragraph Goal, Problem and Done restate with no Q-by-Q recap, and its yes is not the Step 3 gate.
  • The page lane's restate op has fixed fields (decisions, outOfScope and others), so for now the grouped summary and ADR verdict lines appear in the terminal lane's restatement only.
  • interview-defenses digests re-pinned for the Stance, Step 3 and loop.md Step 2 sections. The commit message gives old -> new for each pin and why each defense still holds.

Verification

  • New eval cases: interview-scenario-walk-two-purchase-kinds and interview-adr-verdict-overruled. validate-cases.py reports no FAIL on the planning suite. The LLM-grader samples are uncalibrated and need a paid judge run.

  • check-round-codes.test.sh, check-open-questions.test.sh, interview-defenses.test.sh, repin.test.sh, repin-digests.test.sh, eval-scaffold.test.sh, decision-levels.test.sh, artifact-exception.test.sh, standards-binding.test.sh and interview-surface-decision-mirror.test.sh all pass.

  • A ledger row resolved S1: a, reschedule; S2: b, cancel passes check-open-questions.sh both by default and with --procedure.

  • scripts/check-changed-skills.sh origin/main passes with warnings that were already there; the body grew from 419 to 429 lines.

  • The CI review lanes were failing, so local reviews in fresh-context subagents stood in for them. The code review raised two important findings and five suggestions, all fixed in the second commit:

    • An explicit request for scenarios now runs the walk directly.
    • A recorded ADR's verdict line names the part of the test it passes, because the Decision record step asks record-decision to name it.
    • domain_docs: ask is covered.
    • A partial per-scenario reply leaves the row open.
    • The eval regex and the shape grader now match the rule.
    • A duplicated pin comment is gone.

    The security review found nothing. Re-pinned the SKILL.md Step 3 and loop.md Step 2 digests, with old -> new in the second commit. scripts/check-affected.sh passes (15 passed, 1 skipped), as do the vocabulary, em-dash and fixture-isolation scanners.

Related

  • /architecture:record-decision "Admission test" (the single statement of the test).
  • Companion PR for the domain-driven-design glossary contract (Actions: line, admission): #15140.

🤖 Generated with Claude Code

When the user calls something unclear, or a question rests on a term the
glossary lacks or uses two ways, the interview offers a scenario walk:
numbered concrete scenarios inside one question, each with its own
recommendation and the term or rule it forces, answered per scenario.
Resolutions go on that question's register row; S ids get no row.

Before the recap, the confirmation restatement groups what was agreed:
decisions changed since read-back, glossary changes, out-of-scope items
with where each goes, and an ADR verdict line for every decision. The
user can overrule a verdict, which hands the decision to
record-decision. The changes-only eval's grader allows the verdict
section, which names each decision without its answer.

Re-pinned interview-defenses digests:
- SKILL.md Stance section: 9c3088b036bb705964f43e66afd4d8d411726487a0253f4c050893bf6f087ee2
  -> a00dda2efde22f6c23df82cb71aaf4b074ddb24acab2d8c816d410daaf9f8906.
  It gains only the scenario-walk bullet, which offers scenarios and
  never resolves a question itself, so no-silent-resolve still holds.
- SKILL.md Step 3 section: 4d5330fb98ba5f5f5b8d5b37e1f79e40063fc02a5cd9b9523990cd2dc27a03b5
  -> e0a8172fa2e889baaa3a91276882b446674bb28284cb3e7893f351ac59896f36.
  It gains the closing summary before the recap; the confirmation gate,
  register gate and procedure check are unchanged, so the restatement
  still waits for an explicit confirm.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- A user who asks for scenarios gets the walk without the offer.
- A reply answering only some scenarios leaves the row open.
- ADR verdict lines name the passing part of a recorded decision; the
  Decision record step asks record-decision to name it. A handoff the
  user declined under domain_docs ask reads "ADR candidate, not
  checked", and under ask the overrule is the answer.
- The walk eval's id regex requires S<N>: as the rule does; the shape
  grader asks for a person and an amount, day or date.
- Drop a duplicated pin comment.

Re-pinned interview-defenses digests:
- SKILL.md Step 3 section: e0a8172fa2e889baaa3a91276882b446674bb28284cb3e7893f351ac59896f36
  -> 2a1a5e1658fa6930bedc9758144e08ceb6584f4367cea47ed403adc46a25658a.
  Only the ADR verdict and overrule sentences changed; the confirmation
  gate, register gate and procedure check are unchanged.
- loop.md Step 2 section: 4424620c88cccedd541264f95fef1338f443479e171149a07ae6418f1faf8bbf
  -> 4edcf7128d4e13f95205a36e07716753540ed8a4b9f8a3fde0a10115e1c203b6.
  Item 8 adds the request to name the passing part; no constraint-ledger
  row or process-change definition changed.

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

chatgpt-codex-connector Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-10T18:10:09.827801Z 2cc1b43 Draft marked ready
ℹ️ About Codex in GitHub

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

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

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

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review (incremental): PR #15142, 2cc1b438 → 77710269

I found no security issues in this push. This lane already reviewed an earlier head, so this review covered blocking findings only (CRITICAL and IMPORTANT).

I read every hunk of all 4 files on the incremental list. None of them match a trusted-path glob. The push touches no plugin manifest, workflow, action, hold path or trust control.

What I checked

  • plugins/planning/scripts/check-round-codes.sh: the push adds two awk conditions to a local lint script that reads ledger and round markdown files.

    • The first skips a code written as Q<N>.S<N>.
    • The second flags a line that opens with a bare S<N>: when S<N> is a sweep id.
    • Separately, question_id no longer reads Q17.S1 as a question line.

    The script only does pattern matching over local file text. It builds no shell or eval strings and handles no credentials, so there is no injection surface. Whether it detects codes correctly is a question for the code-review lane.

  • plugins/planning/scripts/check-round-codes.test.sh: the push adds static quoted-heredoc fixtures under $TMP that run through the script under test. No untrusted input reaches them.

  • plugins/planning/skills/interview/context/scenario-comparison.md (instruction surface): the push adds a rule that once sweep rows exist, scenario ids are written with their question prefix (Q17.S1). It replaces the sentence "its id is not the assumption sweep's S<N>" with that rule and a script check that fails a bare S<N>: that collides with a sweep id. This tightens a naming convention. It touches no authority, confirmation or trust guardrail, and the register gate and the partial-reply-stays-open rule are unchanged. Because no protected rule was removed, I did not consult the instruction exception register.

  • .changes/planning/feat-interview-scenario-walk-2cc905d1.md: changelog text only.

Prior findings: the only earlier post was the summary comment for the last head, which reported 0 findings, so there is nothing to carry over.

Embedded text: the PR description contains no directives aimed at this lane.

critical-findings: 0

@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 2cc1b4387dea0ab6a15a4562659aad81e84db698; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review (incremental, blocking only): scenario ids qualified once the sweep has rows

I read every hunk of the 4 files changed since 2cc1b438:

  • the changelog fragment
  • check-round-codes.sh
  • check-round-codes.test.sh
  • context/scenario-comparison.md

This lane already reviewed an earlier head, so this review reports blocking findings only. It found none.

Earlier finding addressed. The earlier advisory finding (thread) said walk scenario ids collide with the sweep's S<N> ids. This push takes the second suggested fix:

  • Once the ledger's ## Assumption sweep holds - S<N> | rows, a scenario id is qualified by its question (Q17.S1).
  • The gate skips a Q<N>.-prefixed S<N> (check-round-codes.sh#L145).
  • The gate counts as bare a line opened by a bare S<N>: that is also a sweep code (#L147).
  • question_id no longer reads Q17.S1: as a line that opens a new question (#L159-L160).

The overlap case I described before (S1: Priya… / Checked against: S1 beside sweep rows) is now a failing test, as it should be.

What I checked by reading the code (no shell, so I ran none of it):

  • walk-overlap.md with the sweep ledger gives bare=3:S1 and bare=1. Line 3 trips the new bare-S<N>: rule, and line 4's S1 is already used in that block.
  • walk-overlap.md with the default ledger, which has no S rows, gives bare=0 status=ok.
  • walk.md gives codes=3 bare=0. Both Q17.S1 and the second Q17.S1 on the **Q17.S2:** line are skipped. Q17 is already marked used by its question line.
  • walk-then-sweep.md gives bare=3:S1, because the qualified Q17.S1 on line 2 does not count as naming the sweep's S1.

The test results, and validate-cases.py, are the author's claims and unverified by me.

Closing issue: none. The PR says it comes from owner decisions in an interview round.

Changelog: the fragment now describes the qualified ids and the new gate rule. bump: minor still fits. No plugin manifest changed.

A scenario walk's S<N> shared one namespace with the sweep's S<N> rows,
so a round could show S1 meaning both. Once the ledger holds sweep rows,
scenarios are written Q17.S1 in the round, the answers and the register
resolution. check-round-codes.sh now skips a question-qualified scenario
id, and fails a scenario opened with a bare S<N>: that is also a sweep id.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 10, 2026
Merged via the queue into main with commit 07d12d8 Nov 10, 2026
50 checks passed
@kyle-sexton
kyle-sexton deleted the feat/interview-scenario-walk branch November 10, 2026 18:42
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Post-merge mutation testing

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

File Killed Survived Timeout No coverage Invalid Not run
plugins/planning/scripts/check-round-codes.sh 2 1 0 0 0 0

Surviving mutants

Location Operator Disposition Cause
plugins/planning/scripts/check-round-codes.sh:160 SBR productive input-gap

The run's summary has the full report.

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

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant