Skip to content

Generate the model catalog and native agents, with a catalog verifier feature (registry U2) #156

Closed

Description

@ericlitman

Goal

Generate the model catalog and the Claude-native agent files from the registry, and give the catalog its own verifier feature. This is unit U2 of the approved model and provider registry design (design, PR #154, issue #103). It depends on U1 (#155).

Scope

  • Add runner/registry/render.ts with --write and --check. It writes plugins/pstack/skills/poteto-mode/references/model-catalog.md (model matrix, kept predecessors and normalization, routes, provider notes, role defaults) and every plugins/pstack/agents/pstack-<family>-<effort>.md.
  • Reduce provider-dispatch.md to hand-written rules that link to the catalog. Its model matrix and route table move into the catalog.
  • Replace model-matrix.test.ts with registry.test.ts: catalog and agent drift, family invariants, released pairs.
  • Verifier (decision 6): add a catalog key to .claude/skills/verify-open-pstack/features/registry.json for references/model-catalog.md and the generated agents/pstack-*.md. Change scripts/core.ts so those paths select the catalog, setup and runner features instead of shared. Add a route-consumption case: the parent reads a model sheet and reports a role's descriptor and route.
  • Static invariants: U3 (Replace copied model slugs with role pointers to the model catalog (registry U3) #157) now ships in the same PR and deletes the Sol-row bash check (tests/skill-collision-repro.sh:405-423), so no temporary move is needed. The Greptile finding on PR docs(plans): design the model and provider registry (#103) #154 (docs(plans): design the model and provider registry (#103) #154 (comment)) is resolved by that deletion.

Acceptance criteria

  • Given the registry, when render.ts --write runs twice, then the second run changes nothing. The ten Fable and Opus agent files keep identical bytes.
  • Given a hand edit to the catalog or a generated agent, when bun run test runs, then it fails and prints the write command.
  • Given a change to only the catalog or generated agents, when the verifier classifies it, then it selects catalog, setup and runner and no skill check (verifier unit test).
  • Given a grok:grok-4.6 sheet, when setup reruns, then it proposes grok-4.7 at the same effort and keeps grok-4.6 on a decline.
  • Bun tests, strict typecheck, static invariants and plugin validation pass.

Live checks

  • This PR changes the verifier, so its live run uses the reviewed candidate head as the publisher revision (AGENTS.md).
  • Named features, in both harnesses: catalog (a route-consumption case: the parent reads a model sheet and reports a role's descriptor and route), setup (rerun on a grok:grok-4.6 sheet, with snapshot and restore), runner (a route from each parent, resolved through the catalog), and project-skill under --self-test. The verifier runs only named features, so the skill checks run only where Replace copied model slugs with role pointers to the model catalog (registry U3) #157 names one.

Order

After U1 (#155). U3 (#157) folds into the same PR as a second commit (design pass, 2026-10-13).

Activity

  1. added
    enhancement
    on Oct 12, 2026
  2. ericlitman commented on Oct 13, 2026

    @ericlitman
    OwnerAuthor

    Design pass (2026-10-13, Astra high, read-only at 7797748)

    Record: ~/projects/docs/projects/open-pstack/records/2026-10-13-batch-168/design-156.md (private docs repo).

    Accepted

    • Fold U3 (Replace copied model slugs with role pointers to the model catalog (registry U3) #157) into this PR, one commit per ticket. U2 already needs setup changes that U3 makes, the two share features/recipes.ts and tests/skill-collision-repro.sh, and folding removes the temporary Sol-row check move. The ticket's Scope, Live checks and Order are updated.
    • Extend U1's runner/registry.test.ts instead of replacing it. Migrate the useful assertions from model-matrix.test.ts, including setup's fail-closed cases, before deleting it.
    • Add only the metadata that rendering needs (provider notes, parent and route names) to registry/contract.ts and the adapters, not the design's whole future contract.
    • Setup changes for the Grok kept-predecessor migration are in scope: setup still special-cases Sol (setup-pstack/SKILL.md:38, :44, :87).
    • Verifier: registry.json, types.ts, core.ts, classification tests, feature docs and a catalog recipe. Catalog paths bypass shared expansion and the generic references/ skill match. Generated agents are listed by exact path, because core.ts supports only exact paths and terminal /**; the coverage test catches a new unmapped agent. Registry and provider source changes also select catalog, setup and runner (design, Implementation units).
    • Live checks name catalog, setup, runner, project-skill and, from U3, skill-invocation:interrogate, in both harnesses, from the candidate head. "Every skill check runs" was wrong: the verifier runs only named features (scripts/verify.ts:95-104).

    Rejected

  3. added a commit that references this issue on Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions