Repository navigation
feat(registry): generate the model catalog and point skills at its role defaults (#156, #157) - #178
Conversation
`registry/render.ts` renders `references/model-catalog.md` (model matrix, kept predecessors and rolling aliases, routes, provider notes, role defaults) and every `agents/pstack-<family>-<effort>.md` from the runner registry. `--write` is idempotent and deletes stray `pstack-*.md` agents; `--check` and `bun run test` fail on a stale, missing or stray file and print the write command. The ten Fable and Opus agents keep their bytes. The adapter contract gains only the `docs` metadata rendering needs, and `PARENTS` gains each harness's name and native primitive. `provider-dispatch.md` keeps the hand-written rules and links to the catalog. Setup treats every kept predecessor, including `grok:grok-4.6`, the way it treated the previous Sol default: it proposes the family's current model at the same effort and keeps the old model on a decline. `registry.test.ts` takes the useful assertions of `model-matrix.test.ts`, including setup's fail-closed rules, and the matrix parser is deleted. The Sol-row bash check read the removed dispatch table, so it goes too. Verifier: a `catalog` key in `features/registry.json` lists the catalog, the generated agents by exact path, and the registry and provider sources. Those paths select `catalog`, `setup` and `runner` and skip the shared expansion and the skill match. The `catalog` recipe has the parent report a role's descriptor and route from a fixture sheet and compares them with the installed candidate's catalog. The setup recipe gains a `grok:grok-4.6` rerun that declines the proposed replacement. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…faults (#157) Arena, Architect, How, Interrogate and Swarm, the bug-fix, feature, hillclimb, perf-issue and refactoring playbooks, poteto-mode's delegation defaults, setup and `codex-tools.md` now name a role and link to its role default in the model catalog instead of naming a descriptor. Interrogate's reviewer table goes. Setup seeds a first run from the role defaults, finds each probe's route in the catalog's route table, reads provider notes for the Codex-parent access check, asks no effort question for a family whose only effort is `default`, and loses its probe table and in-file example sheet. `README.md` and `docs/reference.md` drop their versioned model names. `UPSTREAM.md` records the role-pointer rule. `registry.test.ts` replaces the three bash checks: a `ROLE_POINTERS` table requires each file's role-defaults link and backticked roles that exist, a text scan rejects descriptors and versioned model names outside the generated files, and a code scan keeps versioned Claude literals to `registry/models.ts`. Verifier: the runner recipe's default route is the first lane of a role default in the installed candidate's catalog. The `catalog` case's sheet lacks `arena runners` and `bug-fix`, and the parent must report their role defaults and routes. The setup recipe gains a first run with no sheet that must seed from the role defaults. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Brings in PR #177 (#168), which changed REVIEW.md, AGENTS.md and the verifier feature map, so this PR is reviewed under them. 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.
|
|
✅ Accepted riskAccepted by ericlitman: GH-156 (authority 48fa77b) 🔴 High · Exercise generated agents through native dispatch Advisories (1)
DetailsRun: @unfret review · @unfret status · @unfret help |
There was a problem hiding this comment.
🛑 4 blocking findings
🔴 High · Role-default port divergence guards deleted without replacement
🔴 High · Kept-predecessor gate accepts lost role assignments
🔴 High · Claude version-pin scan narrowed; agent model fields, --model and tests/ unchecked
🔴 High · Exercise each changed native agent
Check
… and check every kept role (#156, #157) The solo code roles stay on Sol and every panel on Opus, Sol and Grok, as UPSTREAM.md records; registry.test.ts now asserts this at family level, so an upstream sync that edits registry/models.ts cannot revert it with CI green. The Claude version-pin grep in tests/skill-collision-repro.sh read no moved file, so it comes back for Markdown model fields, --model invocations and tests/. The setup keep-predecessor case compares every role line with the expected sheet, so a rerun that drops a role fails. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Live evidence: Open Pstack
|
There was a problem hiding this comment.
🛑 2 blocking findings
🔴 High · Retain independent default-effort policy checks
🔴 High · Exercise the generated native agents in live verification
Check
…ssertions (#156) model-matrix.test.ts pinned the families' default efforts, the Claude rolling aliases and Sol as the only ultra family; the move to registry.test.ts dropped them. UPSTREAM.md keeps Opus at max against Cursor's df58112, so a sync that lowers it now fails CI. Why and Reflect also stay on inherit-parent, because external lanes lack the parent's MCP surface. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Live evidence: Open Pstack
|
There was a problem hiding this comment.
🛑 1 blocking finding
🔴 High · Exercise generated agents through native dispatch
Check
|
Operator waiver on head Exercise generated agents through native dispatch. I accepted this as operator.
|
Live evidence: Open Pstack
|
Merge Queue Status
This pull request spent 12 seconds in the queue, including 1 second running CI. Required conditions to merge
|
Summary
Registry units U2 (#156) and U3 (#157) of the model and provider registry design, one commit each. Model facts now live in one place, the runner registry. A generated catalog and the native agents come from it, and Cursor-derived files point at the catalog's role defaults instead of copying model names. The design pass folded U3 into this PR (decision on #156).
A model change now edits
registry/models.ts, thenrender.ts --write. The ten Fable and Opus agent files keep identical bytes.Evidence
--writechanges nothing.git diff 7797748 HEAD -- plugins/pstack/agentsis empty. A hand edit of an agent or the catalog failsbun run testwithRun \bun runner/registry/render.ts --write``. The lane checked this with real edits, then reverted them.README.mdordocs/reference.mdnames a descriptor or a versioned model. The scan was checked to fail on an injected "GPT-6.1 Sol", "Grok 4.6" and a descriptor.registry.test.tsasserts thatbug-fix,perf-issueandhillclimbstay on the Sol family and that every panel is Opus, Sol and Grok, the port choicesUPSTREAM.mdrecords. Movingbug-fixto Grok inmodels.tsfails it. Head 3 restores the assertions the move frommodel-matrix.test.tsdropped: default efforts (Fable max, Sol max, Grok xhigh, Opus max), the Claude rolling aliases, andultraon Sol only. It also checks that Why and Reflect stay oninherit-parent. Lowering Opus toxhighfails it.core.test.ts): a catalog-only change selectscatalog,setupandrunnerand no skill check. Mixed, renamed and unlisted-agent paths are covered. Generated agents are listed by exact path, andsharednow listspoteto-agent.mdandcomment-sicko.mdby exact path, so a new unlistedpstack-*.mdfails as unmapped.51526ab(evidence), passed on head 2b3e200f(evidence), and on head 3bde250b(evidence). Both run from the candidate head, with--self-test, in both harnesses:catalog,setup,runner,skill-invocation:interrogate.catalog: the parent reads a fixture sheet that lacksarena runnersandbug-fix, withjudgment and prosechanged to another role's default. It must report every descriptor and route exactly as the installed catalog gives them.setupkeep-predecessor: agrok:grok-4.6@highsheet. Setup proposesgrok:grok-4.7@high, keeps 4.6 on a decline, and materializes a missing role. From head 2, every role line must equal the expected sheet, so a rerun that drops a role fails.setupfirst-run: no sheet. The written sheet equals the catalog's role defaults.runner: each parent's default external route, taken from the installed catalog.Merge Danger
Door: two-way
Blast Radius: setup and dispatch
Every parent now reads
model-catalog.mdfor model facts and role defaults. A parent that skipped the link would fall back to nothing: the copied defaults are gone from the Cursor-derived files. The livecatalogandsetupcases test exactly that consumption. Users' existing sheets are untouched.Acceptance criteria
#156
render.ts --writeruns twice, then the second run changes nothing. The ten Fable and Opus agent files keep identical bytes."registry.test.ts"change nothing on a second write" and "match the committed catalog and agents"; empty agent diff.bun run testruns, then it fails and prints the write command."registry.test.ts"report a hand edit, a missing file and a stray agent".catalog,setupandrunnerand no skill check."core.test.ts.grok:grok-4.6sheet, when setup reruns, then it proposesgrok-4.7at the same effort and keepsgrok-4.6on a decline." Livesetupkeep-predecessor; static rule inregistry.test.ts.#157
README.mdordocs/reference.mdcontains a descriptor or a versioned model name ... The text scan enforces this."registry.test.tstext scan.model-catalog.md#role-defaultsand names roles that exist inROLE_DEFAULTS."ROLE_POINTERStest.setupfirst-run.arena runnersandbug-fix, when the parent dispatches those roles, then it uses the catalog's role defaults and routes." Livecatalogconsume-sheet.Gate results
My run on the committed head
bde250b, 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
arena runnersandbug-fixlines, so for those two roles a parent reading the real sheet would answer the same. The changedjudgment and proseline is what proves the fixture sheet was read.ROUTEand the setup descriptor pattern still accept onlyclaude,codexandgrok. Generalizing them belongs to U5 (Support Devin CLI workers using SWE-2 and SWE-1.6 #69).Unfret rebuttals
Closes #156
Closes #157
🤖 Generated with Claude Code