Repository navigation
refactor(runner): move Claude, Codex and Grok behind the provider adapter contract (#155) - #169
Conversation
…pter contract (#155) Co-Authored-By: Claude Opus 5.5 <[email protected]>
…155) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Brings in REVIEW.md (#153) and the Reflect verifier fixes (#152, #166) before this branch opens, since both PRs edit features/recipes.ts. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merge Protections🟢 All 2 merge protections satisfied — ready to merge. Show 2 satisfied protections🟢 Queue ready pull requestsAutomatically queue non-draft pull requests targeting main after verify, Unfret, and live-gate pass on the head and every review thread is resolved.
🟢 🚦 Auto-queueWhen all merge protections are satisfied and these conditions match, this pull request will be queued automatically.
|
Live evidence: Open Pstack
|
|
✅ Accepted riskAccepted by ericlitman: GH-155 (authority 48fa77b) 🔴 High · Writer gate accepts a different runner revision 🟡 Medium · Glob-bearing TMPDIR makes the writer gate unpassable 🟡 Medium · Test helper splits fixture paths containing spaces DetailsRun: @unfret review · @unfret status · @unfret help |
There was a problem hiding this comment.
🛑 3 blocking findings
🔴 High · Writer gate accepts a different runner revision
🟡 Medium · Glob-bearing TMPDIR makes the writer gate unpassable
🟡 Medium · Test helper splits fixture paths containing spaces
Check
|
Waived on this head. Each blocking finding is real but not material in this repository's actual usage (
|
Merge Queue Status
This pull request spent 45 minutes 12 seconds in the queue, including 44 minutes 57 seconds running CI. Required conditions to merge
|
Live evidence: Open Pstack
|
Summary
Unit U1 of the model and provider registry (design, #103). Claude, Codex and Grok move behind one provider adapter contract and a typed registry. Behavior is unchanged except for the two changes the issue names.
Intended behavior changes:
claude:opus@ultra. Before,cli.tsaccepted any effort in the global list.defaultis a valid effort, and every adapter omits its effort flag for it. No U1 family lists it yet.Evidence
main'spstack-runner(748a9bc) and this branch's, against the same fake CLIs. Only timestamps, elapsed time and the run directory were normalized. All 21 receipts, exit codes and stderr outputs were identical. The lanes covered:denyWrite;gpt-5.6-sol@ultraandgrok-4.6;providers/grok.ts.default, and argv fixtures that built same-provider lanes get a valid parent.af6fd1b. This PR changes the verifier, so the run is from this candidate head with--self-test,--feature claude:runner --feature codex:runner, and--runner-routeforcodex:gpt-6.1-sol@max,codex:gpt-5.6-sol@max(kept predecessor),grok:grok-4.7@xhigh,grok:grok-4.5@high(unregistered, passed through) andclaude:opus@max. From Claude that is four external lanes; from Codex it is three, plus thelinked-worktree-writercase.Merge Danger
Door: two-way
Blast Radius: runner
Every external lane goes through the new adapters. The parity run and the live run cover each provider. A sheet that names an effort its family does not list now fails validation instead of reaching the CLI.
Acceptance criteria
main." Shown by the receipt parity run above.registry.test.ts"rejects an effort that a registered family or kept predecessor does not list",cli.test.ts"rejects an effort the registered family does not list", and "accepts the default effort for an unregistered pair".(provider, model)pair, when the runner runs it, then the pair passes to the CLI unchanged." Covered byregistry.test.ts(grok:grok-4.5@highargv) and the livegrok:grok-4.5@highlane.claude-opus-<revision>that the parent did not normalize, when the runner receives it, then it refuses with today's message." Covered byregistry.test.tsandcli.test.ts(exit 64).run.tscontains no child-provider branch; the parent sandbox diagnostic stays. Outsideproviders/, onlyregistry/providers.tsimportsproviders/*." Covered byregistry.test.ts.registry.test.ts"resolves every released pair to its recorded family".run.test.tspass unchanged.Gate results
My run on the committed head
af6fd1b, every command withMASTRA_TELEMETRY_DISABLED=1:bun install --frozen-lockfile(poteto-mode scripts)bun run testbun run typecheck(strict)bun install --frozen-lockfile --ignore-scripts(verifier)PSTACK_STATIC_ONLY=1 bash tests/skill-collision-repro.sh(includes the verifier's tests and typecheck)claude plugin validate plugins/pstackNot verified
run.test.tscovers it.tests/skill-collision-repro.shexempts only the exactRELEASED_PAIRSline shape inregistry/models.tsfrom the pinned-model check. U3 (Replace copied model slugs with role pointers to the model catalog (registry U3) #157) replaces that check.Closes #155
🤖 Generated with Claude Code