Repository navigation
feat(planning): interview surface registry with the one-line default-and-alternatives offer - #12712
Conversation
…and-alternatives offer Adds plugins/planning/surfaces/registry.mjs and one SurfaceEntry file per surface (terminal, page, shared session). resolveSurface reads a surface the user asks for, then planning's surface userConfig, then a surface key in the repository's .claude/interview-surface.json, then the plugin.json default; it reads no rendered-view medium. With surface unset and another surface available it returns one offer line, which the interview prints and then proceeds. The interview skill drops its lane table and calls the resolver. Re-pinned interview-defenses digests (repin.sh): - SKILL.md Action Router section: 9081800701e5a506a131c1929285a2a767c8d2e8f59cc89b213e922d4ec73521 -> 298e9864e4f8df46d8b3deea403af71eb5724c815a325d623ee663d6a9da6b66 - SKILL.md Stance section: 6e225b3afedb890bb993196b17b90536c81ea5d1ee1f6f259ab69c0a2de2a8c7 -> 6abc026c684d4b26f2c5817504e1ce9c4cae4c4c500cd6c8a297abb755442a52 Why the defenses hold: the lane table gives way to the registry call, its offer line opens the round-1 message, the share row passes share as its argument, and the Stance surface sentence names the resolution; each changes how the surface is picked and resolves no row. The lock row, STOP-on-gap and no-silent-resolve lines are byte-identical. Closes #12658 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VcupojdnckzkRQMdQRVNbt
…ons docs Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VcupojdnckzkRQMdQRVNbt
The registry replaced SKILL.md's lane table, so the page lane's mirror rule lives in context/lane-page.md (and the page entry's handle rules); the pin follows it there. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VcupojdnckzkRQMdQRVNbt
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-review reviewed Code review: incremental (03bb2a3 → 81a41dc)I found nothing to flag in this push. I read every hunk of all 6 files in the incremental scope:
I also read the PR context, the settled threads and the prior findings. One round has had findings so far; the cap is 3 and this review is not past it. What changed: the registry no longer reads the Checks:
Note, not counted as a finding: the PR description is now out of date. Its Fix and Security sections still say a tracked repository file can select the surface, and that Not verified by me: this lane has no shell, so I ran no tests. No embedded instructions were found in the PR context, settled-threads or prior-findings files. I left security out of scope because this repository runs a separate security lane. |
|
claude-security-review reviewed Security review: PR #12712, incremental (03bb2a3 → 81a41dc)No security issues found. I read every hunk of all 6 files in scope: the changelog fragment, critical-findings: 0 What I checked
Plugin manifest
Prior findings and settled threads
Spend: none beyond this review run. |
…n path Node resolves symlinks for the main module, so import.meta.url is the real path while process.argv[1] keeps the symlink. The entry guard compared the two, so a plugin root reached through a symlink made `registry.mjs resolve` print nothing and exit 0. Compare real paths on both sides, as the repository's other Node CLIs do, and add a test that runs the CLI through a symlink. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VcupojdnckzkRQMdQRVNbt
|
The pr-verify verifier failed head What it wrote (33 lines)This pull request leaves the merge queue, and ci-status holds it out while it carries |
Decision D5 of #12658 says resolveSurface reads today's sources unchanged and leaves the interview server's settings file for a separate issue. Drop the repository .claude/interview-surface.json `surface` source and the --project-root option from the registry, and revert the server's REGISTRY_KEYS skip with its test. Resolution is now the session argument, then planning's `surface` userConfig, then the plugin default. The order test now asserts a repository file never picks the surface; the manifest description, README options row, lane-page.md and the changelog fragment drop the repo source. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VcupojdnckzkRQMdQRVNbt
|
Reply to the pr-verify note on
Byte-identity proof (finding 6). The script takes each pinned passage's line from pick() { git show "$1:plugins/planning/skills/interview/SKILL.md" | grep -F -- "$2"; }
for p in <each passage below>; do cmp <(pick origin/main "$p") <(pick HEAD "$p"); done
git diff --unified=0 origin/main HEAD -- plugins/planning/skills/interview/SKILL.md | grep -E '^[-+][^-+]'Output: The only changed lines are the Tests on 81a41dc: |
Closes #12658
Summary
Slice 5 of epic #12646:
/planning:interviewnow picks its question surface through a surface registry instead of its own lane table. Withsurfaceunset and another surface available, it prints one line naming the default and the alternatives, then goes on with round 1.Fix
plugins/planning/surfaces/registry.mjs:loadEntriesreads oneSurfaceEntryper file undersurfaces/entries/(terminal,page,shared-session);resolveSurfacepicks one in this order: a surface the user asks for in the session (--argument, matched on id, report name or alias), planning'ssurfaceuserConfig, asurfacekey in the repository's.claude/interview-surface.json, then theplugin.jsondefault. A literal${user_config.surface}token, an empty value or an unknown value counts as unset (an unknown one is named in a notice). No rendered-view medium is read, so settingmediumnever moves the surface. CLI:node registry.mjs resolve --surface <value> [--argument <word>]prints one JSON line.available(context)only checks PATH (no network, no process start). A configured surface whose tools are missing stays chosen withavailable.ok: false, so its spoke's existing degrade runs (eval 45 behavior kept).start(session)returns a handle (spokes to read, rules); the spoke's own command starts any process. The shared session's handle setsneedsYesunless the user asked for it, so a stored setting never opens a public link on its own;shared-sessionstays out ofplugin.json'ssurfaceoptions.SKILL.md"Question lanes" calls the resolver, prints its offer line once as the first line of the round-1 message, and names no surface value; theshareaction passesshare.lane-page.mdandlane-shared.mdpoint at the resolution.interview_server.pyskips the repo file'ssurfacekey without a stderr note; the file is not moved onto ADR 0075 (separate issue, D5).interview-surface-unset-offer-one-line; changelog fragment for planning.Security: no new path off the machine. A tracked repo file can now select the surface (before, only userConfig could); the page stays on 127.0.0.1 and the shared session still needs
shareor the owner's yes.Verification
plugins/planning/tests/surface-registry.test.sh(11 tests, pass): AC5 setsmediumin every scope (userConfig,~/.claude/rendered-views.md,.claude/rendered-views.md,.claude/rendered-views.local.md,docs/conventions/rendered-views{,.local}.yaml,.claude/interview-surface.json) and asserts the resolution equals the empty-fixture one; AC13 asserts exactly one offer line with surface unset and two surfaces available (in-process and through the CLI), with paired no-offer cases; AC15 adds a fixture entry file and the resolver offers and selects it with no skill edit.mediumturned AC5 red; splitting the offer over two lines turned both AC13 tests red.interview-defenses.test.sh: PASS=178 after re-pinning the Action Router and Stance digests (justification in the commit message and the test file).test_interview_server.pysettings resolver tests pass;scripts/run-ruff.sh checkclean on the changed Python.validate-cases.pyonplugins/planning/evals: no FAIL for the new case. It lists Bash, which a PR eval run does not grant, so it grades only on a run with--allow-tools Bash.Related
SKILL.mdgate sections (Gates--surface, Step 2-4 page clauses, the "Page surface exit codes" heading); moving them means editing pinned defense sections and is left for a follow-up.session: html-plan
🤖 Generated with Claude Code
https://claude.ai/code/session_01VcupojdnckzkRQMdQRVNbt