Skip to content

test(planning): grade the interview handing a decision to /architecture:adr by domain_docs - #18222

Merged
kyle-sexton merged 2 commits into
mainfrom
test/planning-interview-adr-handoff-evals
Nov 23, 2026
Merged

kyle-sexton merged 2 commits into
mainfrom
test/planning-interview-adr-handoff-evals

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

No related issue: owner decision Q81 / Q1531 in alignment pass 02; held for its eval run (R43)

Summary

Two eval cases grade the owner decision that /planning:interview hands a resolved decision that weighed an alternative to /architecture:adr when domain_docs: auto, and does not when domain_docs: off.

Fix

  • plugins/planning/evals/interview-adr-handoff-auto: a scaffold writes domain_docs: auto to docs/conventions/planning.yaml and seeds the interview checklist. The user answers the last round, accepting a partner-facing X-Event-Id (a UUIDv7 weighed against the outbox bigint row id; hard to reverse because partners persist it), and confirms. Grader adr-invoked: tool_used, tool Skill, input_match "skill"\s*:\s*"(?:architecture:)?adr", min: 1, arm: with-only.
  • plugins/planning/evals/interview-adr-handoff-off: the same prompt and scaffold, with domain_docs: "off" (quoted so a YAML 1.1 reader does not take it as boolean false). Graders: adr-not-invoked (the same tool_used grader with min: 0, max: 0, arm: with-only), and q3-recorded-as-candidate (regex on .work/webhook-retries/interview-checklist.md: the Q3 row says ADR candidate, arm: with-only), so the max-0 grader cannot pass on a run where the interview did nothing.
  • Each case loads an architecture stand-in plugin (architecture-stub/, the adr skill's real description, a body that returns a fixed result and writes nothing). Eval runs start with other plugins absent, and the interview hands decisions over only when that plugin is enabled. Without the stand-in, case A could not pass and case B would pass whatever the setting said.
  • Changelog fragment .changes/planning/test-interview-adr-handoff-evals-5b8e21d4.md (patch).

Verification

  • /evals:validate (validate-cases.py on plugins/planning/evals): 0 FAIL. Each new case gets the same 3 WARN as interview-adr-verdict-overruled: allowed_tools lists Bash, Edit and Write, which a case cannot grant itself.
  • Sample answers are graded offline: a deliberately broken sample made the validator exit 1; the sample was then restored.
  • No eval was run. The run is dispatched separately. It must grant Bash,Write,Edit through the workflow's allow-tools input (default Bash(playwright-cli *)), as the sibling cases need: case B reads the setting and writes the register row.

Related

  • Sibling cases: plugins/planning/evals/interview-adr-verdict-overruled, plugins/planning/evals/interview-brief-keeps-adr-verdicts
  • #18186: the record-decision to adr rename these cases grade against

session: AI Hero

🤖 Generated with Claude Code

https://claude.ai/code/session_01RAoAtTH8RQe4ZKtmQdB7Rh

…re:adr by domain_docs

Two eval cases share one prompt: the user answers the last interview
round, accepting a partner-facing X-Event-Id (UUIDv7 weighed against the
outbox row id, hard to reverse because partners persist it), and
confirms. A scaffold sets domain_docs in docs/conventions/planning.yaml.

- interview-adr-handoff-auto (domain_docs: auto): a tool_used grader
  needs at least one Skill call to architecture:adr.
- interview-adr-handoff-off (domain_docs: off): the same grader with
  max 0, plus a regex grader that Q3's register row records an ADR
  candidate.

Each case loads an architecture stand-in plugin, since eval runs start
with other plugins absent; only the setting decides the handoff.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RAoAtTH8RQe4ZKtmQdB7Rh
@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 22, 2026
@kyle-sexton

Copy link
Copy Markdown
Member Author

Held: new eval cases merge after their run (R43).

@kyle-sexton

Copy link
Copy Markdown
Member Author

Hold released (eval). This PR adds two eval cases with deterministic graders only (tool_used, regex) and changes no skill text, so it merges before its run under docs/review/evals.md:53-56 (Q43, Q56). /evals:validate on plugins/planning/evals: exit 0, no FAIL. Owner decision 2026-11-22 ("go w/ recommendations"). After merge, the hub dispatches one run on main scoped to interview-adr-handoff-* once CLAUDE_API_KEYS_DISABLED is false, states its cost first, and fixes or reverts a failing case (evals.md:58).

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

Copy link
Copy Markdown
Member Author
  • verify skipped by kyle-sexton for this run: 10 failures in lib/prerequisites.test.mjs also fail on a tree with current main; they come from the local machine, and this PR only adds eval cases. CI runs the full suites after the flip.

@kyle-sexton
kyle-sexton marked this pull request as ready for review November 23, 2026 04:13
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 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-23T04:15:59.040644Z 1d5b73b 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 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-security-review: 2 inline finding(s) on 1d5b73b617ea042df80918d4c0a7b288da77dd3d; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #18222 (head eca5af3)

No security issues found. This review reported only blocking findings, because the lane already reviewed an earlier head (1d5b73b6).

The PR adds two eval cases under plugins/planning/evals/: interview-adr-handoff-auto and interview-adr-handoff-off. Each case has its own case.yaml, scaffold, grader samples and an architecture stand-in plugin. The PR also adds a changelog fragment. I read the whole diff, which covers all 10 files on the to-read list. The -off copies of the stand-in's plugin.json and skills/adr/SKILL.md are byte-identical to the -auto files. Their paths sit inside the eval case directory and don't change what the content does.

  • Scaffolds (scaffold.sh in both cases): they run only in the eval sandbox. Each one:

    • creates a local git repo;
    • writes fixed, quoted heredoc content and the domain_docs setting;
    • commits it.

    They take no outside input, make no network calls and touch no secrets. The sender.py they write is fixture text that nothing runs.

  • Stand-in adr skill: its body returns a fixed string and writes nothing. It grants no tools and adds no hooks or servers.

  • Case files: allowed_tools lists Bash, Write, Edit. The eval workflow's allow-tools input grants those tools; a case can't grant them to itself. The diff touches no trust control, workflow, token request, kill switch or merge hold. It deletes or softens no instruction surface.

  • PR context: I found no embedded directives aimed at this lane.

  • Spend: the separately dispatched eval run will use prepaid API credit (two cases, up to 20 turns and 900 s each). That is not a hold.

The two default-deny manifest flags from the earlier head (name and version in the stand-in plugin.json) are now settled. Owner kyle-sexton answered both threads with a decision ("false positive for this layout", resolved), and the job reports no lines changed since resolution. Neither flag is CRITICAL or a trust-control widening. The stand-in has no hooks, mcpServers, lspServers, monitors or dependencies, and marketplace.json is unchanged.

critical-findings: 0

Manifest lines (5)
  • manifest name: settled by kyle-sexton, plugins/planning/evals/interview-adr-handoff-auto/architecture-stub/.claude-plugin/plugin.json, lines 2-2 at the head
  • manifest version: settled by kyle-sexton, plugins/planning/evals/interview-adr-handoff-auto/architecture-stub/.claude-plugin/plugin.json, lines 3-3 at the head
  • manifest description: pass (in the auto stand-in and its identical off copy; the field is in the inert set)
  • manifest hooks/mcpServers/lspServers/monitors/dependencies: pass (absent from both stand-ins)
  • manifest userConfig: pass (absent)

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: no blocking findings

This review covers blocking findings only, because this lane already reviewed an earlier head (1d5b73b6). The current head eca5af3d is a merge of origin/main into the branch.

The PR adds two eval cases for the /planning:interview round step 8, "Decision record":

  • interview-adr-handoff-auto: domain_docs: auto. One tool_used grader requires a Skill call to (architecture:)?adr, min: 1.
  • interview-adr-handoff-off: domain_docs: "off". It has two graders:
    • a tool_used grader with max: 0;
    • a multiline regex requiring ADR candidate on the Q3 register row.

Each case also loads an architecture stand-in plugin. The PR adds a changelog fragment with bump: patch.

What I checked:

  • Behaviour under test. I re-read context/loop.md step 8. With the architecture plugin enabled, the interview invokes /architecture:adr via the Skill tool. Under off, it records "an ADR candidate in the resolution field of the register row that resolved it". Both cases grade exactly that.
  • Off case cannot pass empty. The seeded Q3 row has no "ADR candidate" text. The max: 0 grader therefore needs the regex grader beside it, and the regex rejects the note when it sits on another row (sample 3 of fail).
  • Grader and sample fit. The input_match regex accepts both architecture:adr and adr, and rejects architecture:improve and planning:interview. The pass and fail samples match the graders as written.
  • Copies. The architecture-stub files under the off case are identical to the auto case's. Their path inside an eval case directory does not change what they do.

Settled threads. Both threads on architecture-stub/.claude-plugin/plugin.json (the name and version flags) were resolved with an owner decision that they are a false positive for the eval stand-in layout. Their lines have not changed since, so I did not raise them again.

Not verified: I ran no tool and no eval. The PR's /evals:validate result (0 FAIL, 3 WARN per case) and its offline sample grading are the author's claims.

Loosened checks. The prompt has no loosened_check_verdict:, loosened_check_patterns: or loosened_check_decision_record: line. I therefore used fail with no consumer entries, and did not check the citation requirement. None of the changed files (new eval fixtures and a changelog fragment) loosens a check. Loosened checks would be marked: none.

Closing issue. The PR closes no issue. Its body cites "owner decision Q81 / Q1531", so there are no acceptance criteria to check.

Spend. When the eval run is dispatched, the two new eval cases use prepaid model usage, at up to 20 turns and 900 s each.

Advisory and manifest lines (1)
  • manifest version: pass. The repository releases from changelog fragments. The fragment's bump: patch fits a change that only adds eval fixtures, and the stand-in plugin.json files are eval-only, with no userConfig.

Verifier dropped 0 of 0 candidates.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 23, 2026
Merged via the queue into main with commit 5c14387 Nov 23, 2026
54 checks passed
@kyle-sexton
kyle-sexton deleted the test/planning-interview-adr-handoff-evals branch November 23, 2026 05:23
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 23, 2026
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