Repository navigation
docs(plans): design the model and provider registry (#103) - #154
Conversation
Records the pstack:architect design for one registry of model families and provider adapters: typed family entries and role defaults, one adapter module per provider CLI, generated provider-dispatch.md regions and native agent files, and role pointers in the Cursor-derived skill files. Shows GPT-6.1 Sol, an optional GPT-6 Luna and a Devin CLI provider as single entries, compares three whole shapes, and orders the implementation into seven units with their live checks. Draft for maintainer approval; no runtime file changes. 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.
🟢 🚦 Auto-queueWhen all merge protections are satisfied and these conditions match, this pull request will be queued automatically.
|
|
| export type FamilyEntry<P extends ProviderId = ProviderId> = P extends ProviderId | ||
| ? FamilyCommon<P> & (EffortInOf<P> extends "model-id" | ||
| ? { readonly efforts: { readonly [E in Effort]?: string } } // effort → CLI model ID | ||
| : { readonly efforts: readonly Effort[]; readonly predecessors?: readonly KeptPredecessor[] }) | ||
| : never; |
There was a problem hiding this comment.
The model-id branch of FamilyEntry cannot describe kept predecessors. If a released Devin family changes its model slug, RELEASED_PAIRS requires the old pair to keep resolving to that family, but this shape cannot store its old effort-to-model mapping.
Add a predecessor shape for model-id families and cover it in the resolution tests. Otherwise, a later model update requires changing the shared contract or dropping support for saved descriptors.
There was a problem hiding this comment.
Valid, and it matters only when a Devin model slug changes. No Devin family exists until U5, so this is recorded on #69 (U5). U5 either adds a predecessor shape for model-id families with a resolution test, or records why SWE-2 and SWE-1.6 do not need one.
Folds the six approved answers into the design: unregistered pairs pass through the runner unchanged, grok-4.6 is a kept predecessor, a registered exact pin wins over the rolling pattern, models without effort tiers use a `default` effort, and generated content moves to a separate model catalog with its own verifier feature. Links the U1 to U3 implementation issues (#155, #156, #157). Co-Authored-By: Claude Opus 5.5 <[email protected]>
| | U2 Model catalog | `render.ts`; the generated `model-catalog.md`; `provider-dispatch.md` reduced to hand-written rules that link to it; regenerated agents with identical bytes; `registry.test.ts` replacing `model-matrix.test.ts`; the verifier's `catalog` feature. U2 changes the verifier, so its live run uses the candidate head as the publisher revision | `setup` rerun on a `grok:grok-4.6` sheet (snapshot and restore) showing the proposed replacement; `runner` route from each parent reading the catalog; a verifier unit test that a catalog-only change selects `catalog`, `setup` and `runner` and no skill check | | ||
| | U3 Role pointers | the twelve Cursor-derived files, setup steps 5 to 7, `codex-tools.md`, `docs/reference.md`, `README.md`, an `UPSTREAM.md` ledger entry; deletes three bash checks; adds the text scans | `setup` first run with no sheet, seeding from role defaults; a verifier case where the sheet lacks `arena runners` and `bug-fix` and the parent reports both role defaults and routes; `skill-invocation:interrogate` | |
There was a problem hiding this comment.
U2 removes the model matrix from provider-dispatch.md, but U3 deletes the bash checks that read it. Between those separate PRs, tests/skill-collision-repro.sh cannot find the Sol row and fails CI. This does not block the documentation PR, but U2 cannot land as written. Move that reader to model-catalog.md in U2, or move its replacement check into U2.
There was a problem hiding this comment.
Confirmed. tests/skill-collision-repro.sh:404-413 reads the Sol row from provider-dispatch.md, so U2 alone would fail CI until U3 deletes that check. #156 (U2) now requires moving that reader to model-catalog.md, or replacing it with an equivalent registry.test.ts check, in the same PR. It also gains an acceptance criterion that the static invariants pass with U2 merged and U3 not yet merged.
Live evidence: Open Pstack
|
✅ No blocking findingsLight review ran with 1 elected reviewer. WalkthroughThis PR adds one design document, Details
First review of this pull request. @unfret review · @unfret status · @unfret help |
Merge Queue Status
This pull request spent 15 seconds in the queue, including 2 seconds running CI. Required conditions to merge
|
…man#163) Mergify queued PR ericlitman#154 with two unanswered Greptile threads, because it checks only verify, Unfret and live-gate. The queue rule and the merge protection now also require #review-threads-unresolved = 0. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Summary
Design document for #103, produced with
pstack:architect. This PR adds onlydocs/plans/2026-10-11-model-provider-registry.md. Eric approved the design on 2026-10-11. His six decisions are folded in, and the implementation issues are #155 (U1), #156 (U2) and #157 (U3).registry/models.ts. Devin is one adapter module and its test, one line inregistry/providers.ts, and one SWE-2 family entry.grok-4.6is a kept predecessor.defaulteffort.model-catalog.mdwith its own verifier feature, so a model change no longer runs every skill check.Evidence
codex debug models:gpt-6.1-sollistsultra;gpt-6-lunadoes not.grok models.devin --help,devin auth statusanddevin models list --format json.--exportfile holds the model ID, session and usage.bun run test274 pass;bun run typecheckpasses;PSTACK_STATIC_ONLY=1 bash tests/skill-collision-repro.shexit 0;claude plugin validate plugins/pstackpasses.Merge Danger
Door: two-way
Blast Radius: none
The PR adds one document under
docs/**, which the verifier's feature map classifies as no runtime change.Findings recorded in the design
poteto-mode/SKILL.md:94andREADME.md:83still name GPT-5.6 Sol as a default. Unit U3 replaces both.grok:grok-4.6sheets have no rule today. Open question 3 covers them.ROUTEpattern, its setup assertion andDEFAULT_ROUTEShard-code providers or slugs. Units U3 and U5 change them.Not verified
Closes #103
🤖 Generated with Claude Code