Skip to content

feat(models): model registry pilot - weekly proposal-only robot for default model ids (Part B v1) - #47

Open
HomenShum wants to merge 8 commits into
mainfrom
claude/model-registry-pilot
Open

HomenShum wants to merge 8 commits into
mainfrom
claude/model-registry-pilot

Conversation

@HomenShum

@HomenShum HomenShum commented Oct 16, 2026 •

Copy link
Copy Markdown
Owner

Summary

Homen's goal: "all these app's top default models need to be updated too (and should be auto updated by release dates and performance)". This is Part B v1, "Keep it current", of SPEC-v9.md §B.0-B.7 and B.9 (performance ranking, §B.8, is v2 and is not built).

The situation. An app's default AI model is a name typed into code. Vendors retire models on dates posted on web pages that nobody re-reads, so one day the default stops answering. Worse than a dead model is a robot that quietly stops running, or misreads a page and says "nothing is retiring". This PR adds one reviewed list of exact model ids (models.yaml), a weekly robot that reads four public keyless catalogs and opens one pull request when a decision-relevant fact changes, and the checks that make that robot fail loudly instead of silently. A person merges. Nothing merges itself, no provider key exists in any workflow, and no paid call is made.

One sentence. A weekly, proposal-only robot keeps a reviewed list of exact model ids current from public vendor pages and asks a human to merge the change.

NodeRL is the pilot consumer (companion PR, merge after this one).

What is in it

Path What
models.yaml the registry, seeded and filled by the tooling itself from the live catalogs fetched 2026-10-16 (Anthropic haiku/sonnet/opus 5.5 reviewed; Haiku 4.5 and Sonnet 4.5 tracked, unreviewed)
models/snapshots/latest/* the four catalogs as fetched, with index.json (sha256, fetch time, rows)
schemas/nodeplatform.models.v1.schema.json shape of models.yaml
src/lib/model-catalogs.mjs fixed source list, bounded fetch, one strict parser per source
src/lib/model-registry.mjs select (B.4), validate (B.2), decision set + digest (B.3), bot-diff allowlist (G1), closed-PR guard, PR body
src/lib/model-lock.mjs, models-cli.mjs, models-main.mjs consumer lock `sync
.github/workflows/model-registry-refresh.yml weekly (Mon 13:47 UTC), proposal-only, permissions empty at top, contents: write + pull-requests: write on the one job
.github/workflows/model-registry-check.yml G1 on any PR that touches the registry; bot-writable allowlist on automation/model-registry
.github/workflows/model-bump.yml reusable consumer workflow (lint / watch / bump), called by 40-hex SHA. Two jobs: check (contents: read; syncs, lints, and runs the consumer's own install and tests as its last step) and write (the caller's write scopes; runs none of the consumer's code)
docs/MODEL_REGISTRY.md, CHANGELOG/library/model-registry.md plain-language docs
src/cli.mjs (+3 lines) routes `nodekit models snapshot

REA + ORX (decision D5)

REA, what was taken apart and what was adopted or rejected (research notes: _scratch/partb-research/{litellm,modelsdev,catalog-apis,proposal-bots}.md, brief brief.md):

  • LiteLLM refuses a fetched map under a minimum row count or under half its backup (constants.py#L167-L171@43be1c2); models.dev throws on a missing section, missing columns or fewer than 5 rows (anthropic.ts@618ace8). Adopted as the structure tripwire: every parser throws when it cannot read its page's table header, a state or a date, and (round 3) when a date table on the page has columns it cannot read; every snapshot needs rows >= source minimum and >= 0.5 x the last committed rows; and any failure aborts the run like a fetch failure. The OpenAI parser has one more floor, found in review: at least 50 rows must name a backticked model id (the live page has 153 of 157). Without it, a page that lost its backticks still parsed into rows with empty id lists and gpt-4.1-mini-2025-04-14 read as active, so "every parser throws on an unrecognised page" was not true for that case. Round 2 found the floor was page-wide only (one row losing its backticks while 62 others kept them passed it) and added a per-row check; see the round-2 table.
  • Renovate bots keep no state, so a closed grouped PR comes back ("immortal PR", docs). Adopted the closed-PR guard: each bot PR ends with <!-- model-defaults:decision-set sha256=... -->; a newer closed-unmerged PR with the same hash suppresses the run.
  • Renovate minimumReleaseAge / Dependabot cooldown: adopted as a registry status (soaking, 14 days), never a PR delay; an entry without releaseDate stays soaking (timestamp-required).
  • Renovate/Dependabot never merge by default; models.dev auto-merges only under churn limits. Rejected auto-merge for v1.
  • Aggregators (LiteLLM, models.dev) are wrong or silent on lifecycle (models.dev has status: null for the deprecated Sonnet 4.5; no dates). Rejected as snapshots.

ORX, primary sources, fetched 2026-10-16 (all keyless, $0): OpenRouter https://openrouter.ai/api/v1/models (465 rows, 18 with expiration_date); Anthropic https://platform.claude.com/docs/en/about-claude/model-deprecations.md (23 models); OpenAI https://developers.openai.com/api/docs/deprecations.md (157 rows in 40 shutdown tables); Google https://ai.google.dev/gemini-api/docs/deprecations?hl=en (81 models).

New facts found while building (each cost a failing run, each now has a test):

  1. Google's deprecations page redirects by locale: a plain Node fetch was sent to ?hl=es-419 and the English table header was gone. The tripwire fired. Fix: ?hl=en plus accept-language: en-US.
  2. Google's HTML carries a per-request token, so its byte hash changes on every fetch of an identical page. The input digest therefore hashes parsed rows for the three docs pages, not raw bytes.
  3. OpenAI's page has many table shapes (Model / system, Model snapshot, Deprecated model, Legacy model, System, Substitute model, extra price columns), ISO dates written with U+2011 hyphens, at earliest <date> (a floor, not a retirement), and \| inside cells.
  4. Google marks two models N/A shutdown with "automatically routes API requests to X": parsed as auto-routed, a trigger.
  5. A pure date horizon (state ok, date inside 90 days) occurs on OpenRouter expiration_date, which names no replacement, so the line is held-no-replacement rather than guessed. Anthropic, OpenAI and Google notices carry a replacement column, so those lines move.

Deviations from SPEC-v9 §B (each justified)

# Change Why
D-1 Anthropic/OpenAI snapshots use the .md URLs; Google stays HTML with ?hl=en. The Anthropic models-overview page is not fetched in v1. it is not used by any rule, and an unused page's layout change would abort the weekly run for nothing
D-2 structure tripwire on every snapshot (above) silent "nothing deprecated"
D-3 price.source names the transport that priced it; never copied across transports; OpenRouter overrides without min_prompt_tokens fold in as the per-key maximum price differs by transport
D-4/D-5/D-6/D-8 soak needs a date; closed-PR guard; watch reads the refresh workflow's last success (>14 d or unreadable = URGENT "registry refresh not running - lifecycle facts unverified"); URGENT issue found by label model-defaults + exact title brief
D-9 bump asks for contents: write and pull-requests: write only. actions: write and statuses: write are dropped: nothing in v1 dispatches a run or mirrors a status. Consequence: a bot PR shows no CI until a human clicks "Approve workflows to run". The brief said to keep the scopes until the first pilot PR shows whether that banner appears; this departs from it, and restoring the two scopes is a one-line change in the caller if the banner is a problem least privilege; GitHub now runs GITHUB_TOKEN PRs in an approval-required state
new registrySha256 in a lock hashes the slice of the registry the lock was derived from (its roles, known ids and each role's deprecation row on its own transport), not the whole file. A role carries its own transport's availability, and a price only when that transport priced it (D-3) otherwise another entry's change, or an OpenRouter-only unlisting or re-price of the pinned id, would open a PR in a repo that routes through Anthropic
new the consumer declares its roles in models.config.json, not a nodekit.yaml models: block NodeRL has no nodekit.yaml; adopting one pulls it under repo-conformance, out of v1 scope. schemas/nodekit.schema.json and ownership.yaml are therefore not edited (open PRs #31/#29 touch nearby files)
new validate re-derives availability from the snapshots at the evaluation clock instead of trusting the file, and (B.2.1 item 5) re-derives the bot-owned price, context, supported parameters, availability and deprecations from the recorded snapshots, so a hand edit fails on any PR "time-dependent rules evaluated every run"; a human PR could otherwise set a price or delete a deprecation row
new the 14-day snapshot-age bound is enforced by the refresh run, not by the PR check a proposal that waits more than 14 days for a reviewer is normal, and the check would fail it with no fact wrong, a bot PR as much as a human one (round 1 said "would only block human edits", which was false). What catches a stale bot PR is the replay in G1 (round 2): once main has moved, the PR's input registry no longer hashes to models/selection-input.json
B.4 a move does not write status: proposed-deprecation; the status value is removed from the schema the move is recorded in previous and the PR body, and status is the one the next run computes, so a merged move is not followed by a status-only PR. (Round 1 recorded this only in its fix table.)
B.2.1 item 1 a current must have releaseDate always, and context and price only on a line that routes through OpenRouter OpenRouter is the only catalog the bot reads prices and context from; an Anthropic-only line can never have a bot-derived price, so requiring it let one bad OpenRouter row stop the weekly run. A human can record a price or context window under the transport's own name (anthropic, openai, google)
B.3 each dated deprecation row carries horizon (30, 90 or null) on a line that is already held-no-replacement, neither status nor the date moves when a date crosses the 90 or 30-day line, so the decision set did not change and no PR opened. Consequence: one extra, legitimate PR per date crossing (the 52-week test now expects exactly 1, the Sonnet 4.5 retirement; it expected 0)
B.2.3 replay is also a step of the G1 check on automation/model-registry the field allowlist cannot tell a legitimate move from an edit to an allowed field (a move with no trigger, an edited releaseDate)
B.6 bump is two jobs, check and write the consumer's own commands can reach whatever the job they run in holds (round 2, finding 1)

Not built (stated, not implied): the keyed Anthropic /v1/models cross-check (no key), lint warnings (d)-(g), ranking (§B.8), new-id discovery for non-Anthropic lines, a CODEOWNERS file (a Homen decision, SPEC §C.3). Also not built, SPEC §B.1 loading: loadRegistry/validateRegistry in src/lib/registry.mjs, the CONTRACT_SCHEMA_FILES entry, a models property in schemas/nodekit.schema.json, and the nodeplatform.model-defaults concept in ownership.yaml. Those files are also edited by open PRs, so this PR leaves them alone; the consequence is that npm run registry:check PASS says nothing about models.yaml. What gates models.yaml is nodekit models validate in the g1 check (passes on this PR).

Round-1 adversarial review: what was found and fixed

The round-1 P1 fix below was only partly effective: it kept the gate and the push in one job, so the gate could still reach the write token (round-2 finding 1). Everything else in this table held up under round 2.

An independent review (plus a Codex review) refuted the first version of this PR. Each item below was reproduced, fixed at its cause, and given a test that fails without the fix (checked by reverting the fix).

Finding Fix Test
P1: GH_TOKEN set for the whole bump job, so the consumer's npm ci and test commands ran holding a write-capable token GH_TOKEN is an env: on only the steps that call gh/git push. The gate runs in its own step with no token. The lock is staged before the gate runs, and the PR is committed and pushed from a freshly initialised repo, so a hook or remote the gate planted in .git never sees the token the real push step is executed against a workspace with stolen-token hooks, a rewritten lock and a hostile remote; a structural test forbids a token on any step that runs consumer commands
P2: lint rule (a) always skipped on PRs lint mode fetches models.yaml at the lock's own pinned registryRef (40-hex or it fails closed) and passes it to lint workflow test; a hand-edited lock exits 1 (observed in NodeRL)
P2: reformatted OpenAI page read as "nothing deprecated" minIdRows: 50 page with backticks stripped is refused, also through fetchSnapshots; a page with 4 id-less API rows is accepted
P2: frozen-id warning path unreachable (§B.9) watch --snapshots derives a frozen id's row from the snapshots with the same functions select uses; an uncovered transport is listed under "Not checked" frozen tts-1 with a shutdown 47 days out is URGENT, through watchReport and through the CLI
P2: consumer PR for a transport it does not use the lock keeps only the role transport's availability and a price only when that transport priced it an OpenRouter-only unlisting, expiration or price change opens nothing for an Anthropic role; an OpenRouter role still moves
P2: baseline integrity (B.2.1 item 5) missing validateModels re-derives the bot-owned fields from the recorded snapshots price 999, flipped availability, changed context, deleted and invented deprecation rows each fail
P3: status-only PR after every merged move the move no longer writes proposed-deprecation (removed from the schema) three later runs are a fixed point
P3: replacement eligibility used the trigger test; the check could be deleted unnoticed it uses the B.4 eligibility test a replacement retiring in 31, 60 and 90 days is adopted; 30, 20, deprecated and retired are held
P3: stale OpenRouter price kept as verified a row with no price clears an OpenRouter-sourced price (a human-recorded price survives) pricing: {} row
P3: dead snapshot-shrink check in validateModels removed; the parser's check is the only one n/a (unreachable)
P3: liveness read unauthenticated gh api with the job's token (a shared-IP rate limit read as "status could not be read") workflow test
P3: PR body lacked snapshot hashes; index.json not fetched (§B.6) bump fetches index.json and sync --snapshot-index quotes it after checking it against models.yaml CLI test, mismatch refused

Not adopted: adding the 14-day snapshot-age check to the PR check (see the deviations table).

Round-2 adversarial review: what was found and fixed

A second independent review (plus a Codex review) judged head c2cc149 and returned FAIL with 11 defects. Each was reproduced, fixed at its cause, and given a test that fails without the fix (checked by knockout, see Verification).

# Finding Cause Fix
1 P1. The consumer's npm ci / npm test could still change what the bot pushes and capture the write token: the push step re-read the staged lock from $RUNNER_TEMP, and a fresh git init still reads the user's global git config (hooks); $GITHUB_ENV and $GITHUB_PATH were reachable too the gate and the push shared one job, so anything the gate did was reachable by the step that holds the token bump is two jobs. check has contents: read, syncs, lints and hashes the lock, then runs the gate as its last step (its outputs come from steps that ended before the gate; the runner records a step's outputs when the step ends). write starts on a fresh runner, runs none of the consumer's code, recomputes the lock with models sync from the registry commit check used, refuses to go on unless the hash equals check's, then commits (no token) and pushes (token only on the push step)
2a P2. A newly found, human-reviewed id with no OpenRouter row has no release date, context or price; once the vendor deprecated the incumbent and named it, select adopted it and validate --stage full failed every week, so no repair PR opened replacementFor did not check what validate requires of a current one rule, missingCurrentFields, used by both: a replacement missing a field is not adopted; the line is held with a row naming what a human must record
2b P2. A -1 or {} OpenRouter price on anthropic/claude-haiku-5.5 aborted the whole refresh although anthropic.haiku never routes through OpenRouter price, context and hygiene checks looked at every transport they look only at the transports the line uses
2c The schema allowed only price.source: "openrouter", so a human could not record a vendor price; a test used a state the schema rejects schema vs comment source may be openrouter, anthropic, openai or google; the test asserts the schema accepts the human value and refuses an arbitrary one
3 P2. A shutdown notice for a consumer's frozen id (B.9) was missed: watch read snapshots on main, which are committed only when the registry's own decision set changes, and a frozen id is never in it (an OpenAI tts-1 shutdown 47 days out gave urgent=false) wrong source watch fetches the four public catalogs live (models snapshot --out, same strict parsers) when the lock has frozen ids; a fetch or structure failure fails the run. Run against the real pages today
4 P2. Two parser tripwires missing: a re-laid-out Anthropic history table read as "the vendor names no replacement"; an OpenAI row that lost its backticks read as active while 62 others kept the page-wide floor satisfied optional table; page-wide floor only the Anthropic history table must be found; every OpenAI row whose name cell holds an id-shaped token without backticks fails the run (rows about APIs and headers are normal)
5 P3. A move to a replacement that itself retires in 31-90 days produced a status-only follow-up PR (current -> held-no-replacement) the new current was not judged in the move's own run selection loops: the new current is judged in the same run, with cycle protection
6 P3. G1 on the bot branch neither replayed selection nor limited line moves to B.4 allowlist only models replay is a step of the G1 check on automation/model-registry
7 P3 (NodeRL). Lint was path-filtered, but rule (b) scans the whole repo filter narrower than the check filter removed; a NodeRL test fails if one returns (NodeRL#9)
8 P3. The refresh job put GH_TOKEN on every step, including npm ci and git commit job-level env the token is an env: on the two steps that talk to GitHub, as in model-bump.yml; a test covers every model workflow
9 P3. 7 of 60 knockouts survived: M03 (non-200), M07c (replacement transport coverage), M25 (Google auto-route read as active), M26 (OpenAI notice read as active), M44 and M45 (lenient dates), W9 (token on the gate under another name) tests asserted the error class, not the reason; no test fed a trigger from every vendor page all seven are killed. "The Google auto-route has a test" is now true: a trigger from every vendor page moves a line to the vendor-named successor
10 P3. A 30-day crossing on a held line changed nothing; the "G1 freshness only blocks human edits" justification was false; the consumer PR body had no release facts (B.6); dropping proposed-deprecation was not in the deviations table horizon on dated rows; the justification corrected; sync renders the release date and per-transport lifecycle facts (labelled information, not in the lock); the deviations table above
11 P3. Wrong claims The report under review was stale (it said 3 commits, 45/45 and 38/38; actual at c2cc149: 4 commits, 59/59 and 39/39). "No unwired mechanism" was refuted by findings 1-3. "One required check red" was wrong: main has no branch protection or rulesets, so verify is red by repo policy, not a GitHub requirement. The push-test title ("cannot ... change what is pushed") was false and is replaced. NodeRL's "no GitHub token" wording is replaced by the two-job description. Corrected here and in NodeRL#9

What the gate can still do. The consumer's commands still run in check, so they can do whatever any read-only CI step of that repo can do (NodeRL's own ci.yml is the same). They can no longer change what is pushed, and no write token exists in their job.

Round-3 adversarial review: what was found and fixed

A third independent review (plus a Codex review, each Codex finding re-checked before use) judged head cac830b and returned FAIL with 8 defects. The report it judged was stale (it named 35309cb and 3 commits). Each defect was reproduced or read from source, fixed at its cause, and given a test that fails without the fix (checked by knockout, see Verification).

# Finding Cause Fix Test
1 P2. The parsers silently skipped whole notice tables. OpenAI: a table counted only if its second column header started with "Model", so 11 of the 40 shutdown tables ("Deprecated model", "Legacy model", "System") were dropped without an error, and gpt-4-32k, gpt-3.5-turbo-0613, text-davinci-003 and tts-1 read as active. Anthropic: renaming one history table's header dropped its notices (20 to 19) and the PR body then said "the vendor names no replacement". "Every parser throws when it cannot read its page's table header" was false for both the header regex decided whether to read a table, so an unfamiliar header was a silent skip instead of a failure one rule per page: every table whose first column is a date column (Shutdown date, Retirement date) must be read. OpenAI now reads all 40 (157 rows, not 107): the name is the second column, the replacement is the last and its header must say replacement or substitute, and a date table with a different second or last column fails the run (a renamed first column was NOT caught; see round 4, defect 1). Anthropic fails when the number of Retirement date tables differs from the number it could read every date table on the OpenAI and Anthropic pages is read whatever its column names...: on the committed live page the four ids above have notices; five table shapes; both throw cases; the renamed Anthropic header throws
2 P2. The robot could move a line to a replacement its own validation then rejects: a vendor-named, reviewed, active claude-haiku-5-6-20260901 was adopted, then validate --stage full failed with "is a dated Claude id", every week, and no repair PR opened the id-hygiene rule (no dated Claude id, :free, alias, router) ran in validate but not in replacementFor; the same class as round-2 defect 2a the rule is now one function, idProblems, called by both validate (on a current) and replacementFor (on a candidate). A candidate that fails it holds the line, with the reason in the PR body the robot never moves a line to an id its own validation rejects...: held with the reason, the held proposal validates, the same situation with a clean id moves
3 P2. The write job could still run consumer-controlled code: actions/setup-node ran after the consumer checkout in both jobs. It runs yarn --version in the workspace (a committed .yarnrc yarn-path would execute, with the action's default token in its environment), and with packageManager: npm in the consumer's package.json its automatic cache saves ~/.npm after the gate in check and restores it in write. Verified by reading the action's source, not reproduced step order and a default setup-node now runs before the consumer's checkout, with package-manager-cache: false, in both jobs setup-node runs before the consumer's files exist and without a package-manager cache, in both jobs...: structural, fails when either condition is undone in either job
4 P2. Two workflow paths could be broken with all workflow tests still passing: process.exit(w.urgent?0:3) changed to process.exit(3) (watch never opens the URGENT issue, which silences the liveness alarm and the frozen-id path), and DRY_RUN: 'true' forced in the refresh (every scheduled run green, no PR ever opens, liveness stays green) the Watch step's shell and the refresh's DRY_RUN expression were never executed or evaluated by a test the Watch step is now executed against a stubbed gh: an urgent report creates the issue, the one open issue is edited not duplicated, a dry run writes nothing, a quiet report opens nothing. The refresh's DRY_RUN expression is evaluated for schedule (false), workflow_dispatch default (true) and workflow_dispatch with dry_run: false (false) the Watch step opens the URGENT issue exactly when..., the scheduled refresh is never a dry run...
5 P3. Guards with no test: cycle protection (two models that name each other as replacements flipped back and forth on every run), the Anthropic notice-date fallback, the exact 14-day liveness boundary, --force-with-lease replaced by --force, the write job's mode check the cycle guard only avoided an infinite loop; where the loop stopped differed every run cycle: the line is held where it started and the held row names the cycle, so the next run reaches the same answer. The rest: tests only replacements that name each other... (three later runs are a fixed point), the Anthropic notice date fills a retirement..., watch liveness boundary... (14 d exactly is alive, one second more is not), a push never overwrites work it has not seen..., each job refuses a mode it does not run... (executes the Check-inputs step). Rejected from Codex's list: "error kind forced to structure" survives, but no code reads SnapshotError.kind, and the reason-message checks already catch removal of the non-200 guard
6 P3. SPEC B.3 says models replay asserts that clocks T1 and T2 give an identical digest; the command replayed at one clock, only unit tests covered T1/T2, and the gap was not declared replay also selects one day later and fails when the digest differs, or when the decision set differs with no horizon or soak boundary between the two clocks. The CLI prints the stronger statement on PASS replay also checks the clock (B.3)...: a leaky selector fails, a date crossing is allowed, a drifted status fails
7 P3. watch takes a role's lifecycle dates from main's committed deprecations (only frozen ids are read live), so a consumer's URGENT issue for its own pinned role waits for a person to merge the registry's refresh PR. Not listed in Known limits by design (SPEC B.6 reads the registry's deprecations) Declared, not changed. Reading roles live would make every consumer's daily watch depend on four vendor pages and go red when any one is down. docs/MODEL_REGISTRY.md Known limits now says so; the open refresh PR is the earlier signal. A decision for Homen if the delay matters docs only
8 P3. Stale or false claims in these bodies the repo setting is now ON in both repos (blocker 1); the shared-file claim is corrected (blocker 4: the only file this PR shares with an open PR is the generated repo-map.json, also edited by #39, #31, #29, #28 and #25); six smoke combinations, not five; NodeRL's job is lint / check; OpenAI is 157 rows (153 with ids); the commit trailer stays Claude Sonnet 5.5 (disclosed, not a code defect) n/a

Round-2 defects after this round: 1 (the two-job split) is complete with defect 3 here, 2 with defect 2, 3 is not complete until round-4 defect 1 (round 3 left a renamed first column unseen). 4 through 9 stand.

Round-4 adversarial review: what was found and fixed

A fourth independent review (plus a Codex review, each Codex finding reproduced before use) judged head d6cb103 and returned FAIL with 8 defects. Each was reproduced, fixed at its cause, and given a test checked by knockout.

# Finding Cause Fix Test
1 P1. A vendor page that changed in part was accepted and lost deprecation notices. Through the real models snapshot CLI, with the row floors still satisfied (157 to 153, 153, 154 rows): OpenAI's tts-1 table with its first column renamed, deleted, or turned into a list left tts-1 reading active with no notice (silent); Anthropic's history table renamed or deleted dropped notices 20 to 19 and Sonnet 4.5 lost its named replacement. Three statements were false ("a date table with a different first or last column fails the run", "Round-2 defect 3 complete", and docs/MODEL_REGISTRY.md: "A re-laid-out page fails the run") every header test is blind to a table it does not match; round 3 only caught a renamed second or last column snapshot compares each new page with the last committed one: an id that had a notice and has none now fails the run. No baseline (first run, or a human snapshotting into an empty directory after reviewing the diff) means no check. The claims are corrected, and the limit is declared in the docs: an id that never had a notice, and the first run, are not covered five mutations through the real CLI, each leaving the committed snapshots untouched; the unchanged live pages pass against their own baseline
2 P2 (NodeRL). The gate test threw on a valid successor with no efforts see NodeRL#9
3 P2 (NodeRL). The consumer workflow could be switched off by forcing dry_run: true with every test green see NodeRL#9
4 P2. "A current missing from Anthropic's table is unlisted, never active" was untested tests only the current's row removed: unlisted, a state deprecation row, held-no-replacement, no guessed replacement
5 P3. Knockouts that left every test green: the -preview rule, WATCH_HORIZON_DAYS 60 to 59, registrySha256 out of the decision fields, an OpenAI "at earliest" floor counted as a retirement, reviewed: false on a current, constraints on a bot-added entry, an empty workflow_runs list read as healthy, the refresh's PR step not gated on changed, the refresh's --base allowlist dropped "each such fact now has a test" was not true for all of them tests only one test each; all nine killed, plus the defect 4 mutant (ten in all)
6 P3. When a pinned role's date only crosses the 90 or 30-day line, the consumer lock changes only in registrySha256, and the PR body said "no role changed; known, frozen or exclude changed", which was false the sentence assumed any lock change came from those three fields the body names what moved: the changed fields, or "only the registry slice digest moved" with the deprecation rows and the old and new digests a pinned role's date crossing the 90 or 30-day line...; when known really changed the body still says so
7 P3. bump linted only when the lock changed; SPEC B.6 says sync, lint, then the gate if changed undeclared order change lint runs on every bump run (a dying pinned role must not pass a weekly run because the registry gave nothing newer); the gate still runs only for a changed lock the bump workflow lints on every bump run...
8 P3. Stale claims in these bodies: "smoke x5" (six ran), blockers numbered 1-4, 6, 5, NodeRL#9's file table (+3 tests; it has 4) corrected here and in NodeRL#9 n/a

Round-3 row 1 and "Round-2 defect 3 complete" are superseded by this round: row 1 was true only for a renamed second or last column, and round-2 defect 3 is complete only with round-4 defect 1.

Verification (observed at head b2e86ca)

  • node --test over the four model test files (registry, lock, workflows, ci-workflows): 93 of 93 pass (50 + 18 + 22 + 3; was 82). npm run registry:check PASS (platform registry only, see above); npm run typecheck:public clean; nodekit models validate --stage full PASS; repo map --write leaves repo-map.json unchanged. Through the real CLI: models select --write over the committed snapshots at a later clock prints "decision set unchanged (no PR)", and models replay --input-registry then prints PASS with the new clock statement.
  • Knockouts, round 4: 10 mutants, all killed (each applied, the three model test files run, the file restored): a missing Anthropic row read as active, the -preview rule, the watch horizon 60 to 59, registrySha256 out of the decision fields, the OpenAI at-earliest floor as a retirement, reviewed: false on a current, constraints on a bot entry, an empty workflow_runs list as healthy, the refresh PR step without its changed gate, the refresh without --base. A leftover mutant of the first kind was found in the working tree after an interrupted session and reverted before the commit.
  • Knockouts, round 3: 15 mutants, all killed. Each was applied to the tree, the named test file run, and the file restored: the Anthropic notice-date fallback, the cycle guard (killed because the cycle test then never terminates, so the whole file hits its 90-second timeout; no assertion names it), the hold-at-start block of the cycle rule, the liveness constant (14 to 15) and its <= (to <), a forced dry run in the refresh, a Watch step that never reports urgent, a bare --force, the write job's mode check, the Anthropic date-table check, OpenAI skipping tables whose second column is not "Model...", the OpenAI replacement-column check, the hygiene rule in replacementFor, package-manager-cache turned back on in one job, and replay without its second clock. The earlier rounds' 37 stand.
  • Live pages, keyless: models snapshot against the real catalogs with the stricter parsers succeeds (OpenRouter 469 rows, Anthropic 23 models, OpenAI 157 rows, Google 81 models); the Anthropic and OpenAI pages are byte-identical to the committed snapshots.
  • Full suite. CI test passes at this head. Local npm test on Windows: 1031 of 1041 pass; the failures are evolution-immutability, three evolution-ledger cases, package-install-proof-runner and reference-loop, and the same cases fail identically on a clean checkout of this PR's base bd8844d (the four files run there).
  • CI at head b2e86ca (observed): test, g1, the six smoke combinations (ubuntu, macos, windows x npm, pnpm), installed-candidate PostgreSQL, hosted-evidence and GitGuardian pass. verify (Evolution Ledger) fails with EVOLUTION MATERIALITY BLOCKED: 10 material files, 0 recorded events, 0 proof-backed deferred reviews, the same cause as before (blocker 6). Two jobs are skipped by design. NodeRL#9, which calls this head, is fully green. The g1 replay step and the write job have not run on Actions (the replay step runs only for automation/model-registry).

What has and has not run on GitHub Actions. model-registry-check.yml has run (the g1 check) and model-bump.yml has run in lint mode through NodeRL#9 (lint / check, lint / write skipped by design), including with setup-node now ahead of the consumer checkout. The refresh, watch and bump paths have not run: a schedule or workflow_dispatch needs the file on the default branch. They are covered by static tests, by executing the Watch, Check-inputs, push and push-guard steps' shell locally against stubs, and by running the other steps' commands against the real pages. The first workflow_dispatch (dry run by default) after merge is the real proof of those paths.

Needs Homen / blockers

  1. Resolved: the repo setting Allow GitHub Actions to create and approve pull requests is now ON in NodeKit and NodeRL (gh api repos/<repo>/actions/permissions/workflow -> can_approve_pull_request_reviews: true for both, read after the round-3 push). I changed no setting; an earlier version of this text said it was OFF.
  2. Merge order: this PR, then NodeRL. NodeRL pins this PR's head commit (b2e86ca); after merge, bump that pin to the merge commit in a reviewed one-line PR.
  3. CODEOWNERS for the human-owned models.yaml paths (SPEC §C.3) is left to Homen. The ownership.yaml concept nodeplatform.model-defaults and the rest of SPEC §B.1 loading are deferred (above) because open PRs edit those files.
  4. Overlap with open PRs (fix: restore ledger provenance and unblock Quality checks #44, fix: consolidate dashboard handoffs and repair required CI #40, Add resumable Caseflow outcomes and verified consumer handoff #39, docs: preserve brownfield inventory and parity in current owners #38, Add immutable reference chain edge contract #31, Add fail-closed stage-local execution graph #29, mew waves 1-4: the full pipeline traversal on the real graph model — chain PASS 6/6, every data field honest #28, feat(tools): tool operating model as a machine-readable registry + enforced gate #25), checked file by file against this PR's 23 changed files: the only file shared is repo-map.json, which Add resumable Caseflow outcomes and verified consumer handoff #39, Add immutable reference chain edge contract #31, Add fail-closed stage-local execution graph #29, mew waves 1-4: the full pipeline traversal on the real graph model — chain PASS 6/6, every data field honest #28 and feat(tools): tool operating model as a machine-readable registry + enforced gate #25 also edit. It is generated (npm run repo:map), so whichever PR merges second regenerates it. This PR does not edit src/cli-main.mjs, package.json, nodekit.yaml, ownership.yaml, CHANGELOG/README.md, .gitattributes or quality.yml. (An earlier version said this PR edits none of their files; that was false for repo-map.json.) CHANGELOG/library/model-registry.md is not yet linked from CHANGELOG/README.md (owned by fix: consolidate dashboard handoffs and repair required CI #40/Add immutable reference chain edge contract #31).
  5. Pre-existing failures on main (not from this PR): the evolution-immutability tests (test/evolution-immutability.test.mjs, cases 267/268/272/273 in the lane) fail identically on a clean origin/main worktree; PR fix: restore ledger provenance and unblock Quality checks #44 ("restore ledger provenance and unblock Quality checks") is the open fix.
  6. verify (Evolution Ledger) fails on this PR, and the cause is this PR, not main. It is red by this repo's policy, not because GitHub requires it: main has no branch protection or rulesets, so nothing stops a merge, but a red verify should not be merged over. The failure: EVOLUTION MATERIALITY BLOCKED: 10 material files, 0 recorded events, 0 proof-backed deferred reviews. The ledger needs a canonical event with a named human reviewer (nodekit evolution draft then record --file ... --approval ..., docs/EVOLUTION_LEDGER.md). The deferred-review receipt is not available because this PR touches workflow paths, which that lane fails closed on. I did not draft or record an event: recording needs Homen's approval, and PR fix: restore ledger provenance and unblock Quality checks #44 is rewriting ledger provenance, so a draft written now could collide with it. All other checks are green (test, g1, six smoke combinations, installed-candidate PostgreSQL, hosted-evidence).

🤖 Generated with Claude Code

A weekly, proposal-only robot keeps a reviewed list of exact model ids
(models.yaml) current from four public keyless catalogs (OpenRouter, and the
Anthropic, OpenAI and Google deprecation pages) and opens one PR when a
decision-relevant fact changes. A human merges; nothing auto-merges, no
provider key is used, no paid call is made.

- nodekit models snapshot | validate | select | replay | pr-guard | sync |
  lint | watch (own entry point routed from src/cli.mjs; cli-main untouched)
- strict parsers that throw on any layout change, row-count tripwires, bounded
  fetch with a host allowlist, atomic snapshot writes
- decision set vs provenance: a new date alone opens no PR; a horizon
  crossing does; closed-PR guard keyed on the decision-set hash
- G1 bot-writable allowlist, replay, eligibility and merge rule
- workflows: model-registry-refresh (weekly), model-registry-check (G1),
  model-bump (reusable consumer workflow, called by 40-hex SHA)
- scenario tests: retired incumbent, new successor, missing catalog field,
  unchanged catalog on a new date, network failure, hostile redirect, scale,
  52 sustained weekly cycles, closed-PR guard, workflow permissions

Source: SPEC-v9 Part B and the REA + ORX brief (2026-10-16).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
HomenShum and others added 7 commits October 16, 2026 04:16
… it cannot go stale

The seed's decisionDigest was computed before a parser whitespace fix, so it
did not reproduce from the committed snapshots. Re-ran select at the file's
own clock and ref (decision set unchanged; digest only) and added a test that
fails when the committed digest or decision set does not reproduce.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ate repo-map.json

Tours and START_HERE cite src/cli.mjs:4 by line, so the registry routing is
now folded into that line (tours.test.mjs and start-here-citations pass
again). repo-map.json is derived from source (npm run repo:map) and now lists
the new modules, schema and tests.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…istry pilot

- bump: GH_TOKEN is set per step, never on the job. The consumer's install and check
  commands run without it, and the PR is committed and pushed from a freshly initialised
  repository, so nothing the gate wrote into .git can reach the token. Tested by running
  the real push step against a tampered workspace.
- lint (a): PR-mode lint now fetches models.yaml at the commit the lock pins and compares
  the lock with it, instead of "(a) skipped".
- OpenAI parser: a page that loses its backticked ids is refused (minIdRows 50; the live
  page has 103 id rows) instead of reading as nothing deprecated.
- watch: a consumer's frozen ids are checked against the registry snapshots (B.9); an id
  no snapshot covers is listed as Not checked. Liveness is read with gh api.
- lock: a role carries only its own transport's availability, and a price only when that
  transport priced it, so an OpenRouter-only change opens no PR for an Anthropic role.
- validate: baseline integrity (B.2.1 item 5) re-derives the bot-owned fields from the
  recorded snapshots, so a hand-edited price or a deleted deprecation row fails.
- select: a merged move leaves no status-only follow-up PR (proposed-deprecation removed);
  a replacement is held to the B.4 eligibility test, not the trigger test; a row that
  stops giving a price clears the OpenRouter price; the unreachable shrink check in
  validateModels is removed.
- sync --snapshot-index: the consumer PR body quotes snapshot hashes from the fetched
  index.json (B.6).
- docs: record the deferred B.1 loading, the D-9 consequence and the age-bound decision.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…istry pilot

- P1 model-bump.yml: the consumer's install and test commands no longer share a job with the
  write token. `check` is read-only, runs sync, lint and the gate (as its LAST step) and
  publishes its outputs from steps that ended before the gate. `write` runs none of the
  consumer's code: it recomputes the lock with `models sync` from the registry commit `check`
  used, refuses to go on unless its hash equals the one `check` computed, then commits (no
  token) and pushes. Nothing the gate does to $GITHUB_ENV, $GITHUB_PATH, runner files or the
  user's global git config reaches the job that holds the token.
- P2 select/validate: a replacement the robot found but nobody fully recorded is held with a
  row naming the missing fields instead of being adopted and failing the weekly run; price,
  context and the -1 hygiene check apply only to lines that route through OpenRouter, and
  wire-id hygiene only to the transports a line uses. A human can record a price or context
  under the transport's name.
- P2 watch: a consumer's frozen ids are judged on the four public catalogs fetched during the
  run (`models snapshot`), not on snapshots on main that only change with the decision set.
- P2 parsers: the Anthropic history table must be found; every OpenAI row that names an
  id-shaped token without backticks fails the run.
- P3: a replacement that itself retires is held in the same run (no status-only follow-up PR);
  a date crossing the 90 or 30-day line changes the decision set (`horizon`); G1 on the bot
  branch replays selection; the refresh job holds GH_TOKEN only on the steps that talk to
  GitHub; the consumer PR body carries release and per-transport lifecycle facts.
- Tests: the knockouts that survived round 2 (non-200, replacement transport coverage, Google
  auto-route and OpenAI notice read as active, lenient Anthropic and Google dates, a token on
  the gate under another name) are caught; the new mechanisms are covered by tests that fail
  when each is removed (37 targeted knockouts, all killed).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…was loosened

The 52-week test expected 0 PRs and now expects exactly 1 (the Sonnet 4.5 retirement crossing
the 30-day line), because a date crossing a window is a decision-set change (SPEC B.3, the
`horizon` field). The old value now sits in the test as a comment so the change is auditable.
No behaviour change.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…istry pilot

Parsers: every OpenAI date table is read whatever its second column is called
(Deprecated model, Legacy model, System; 157 rows, not 107), and a table whose
first column is not exactly "Shutdown date" or whose last is not a replacement
fails the run. The Anthropic parser fails when any "Retirement date" table lacks
the notice columns. Before, such tables were skipped and their models read as
active with no notice (gpt-4-32k, gpt-3.5-turbo-0613, text-davinci-003, tts-1).

Selection: a vendor-named replacement is judged by the same id rule that
`validate` applies to a current (dated Claude id, :free, alias), so the robot
never moves to an id its own validation rejects; the line is held with the
reason. Replacements that name each other hold the line where it started
instead of flipping every week.

Replay: also runs selection a day later and checks the digest never moves with
the clock and the decision set moves only across a horizon or soak boundary
(SPEC B.3).

model-bump.yml: setup-node runs before the consumer is checked out and with
package-manager-cache off, in both jobs, so neither a committed .yarnrc nor a
restored npm cache reaches the job that writes.

Tests: the Watch step is executed (urgent opens or updates the one issue, dry
run opens nothing), a scheduled refresh is never a dry run, pushes use
--force-with-lease, each job refuses the other's mode, the 14-day liveness
boundary, the notice-date fallback, the cycle. Fifteen targeted knockouts, all
killed. No test was loosened.

docs: a consumer's role pins are judged on main's committed deprecations, so a
new notice reaches its URGENT issue once the refresh PR is merged (known limit).

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…istry pilot

- A vendor page that changes in part (a renamed date column, a deleted table, a table turned into a list) kept the
  row floors satisfied and silently dropped deprecation notices. `snapshot` now compares against the last committed
  page: an id that had a notice and has none now fails the run. Docs claim corrected, with the first-run limit.
- The consumer PR body no longer says "known, frozen or exclude changed" when only the registry slice digest moved
  (a pinned role's date crossing the 90 or 30-day line); it says what moved.
- bump lints on every bump run, not only when the lock changed (SPEC B.6).
- New tests kill the knockouts that left the suite green: a current that vanishes from Anthropic's table reads
  unlisted, the -preview rule, the 60-day watch horizon, registrySha256 in the decision fields, the OpenAI
  at-earliest floor, reviewed:false on a current, G1 constraints on a new entry, an empty workflow_runs list, and
  the refresh's changed gate and --base allowlist.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant