Repository navigation
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
Open
feat(models): model registry pilot - weekly proposal-only robot for default model ids (Part B v1)#47HomenShum wants to merge 8 commits into
HomenShum wants to merge 8 commits into
Conversation
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]>
… 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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
models.yamlmodels/snapshots/latest/*index.json(sha256, fetch time, rows)schemas/nodeplatform.models.v1.schema.jsonmodels.yamlsrc/lib/model-catalogs.mjssrc/lib/model-registry.mjssrc/lib/model-lock.mjs,models-cli.mjs,models-main.mjs.github/workflows/model-registry-refresh.ymlpermissionsempty at top,contents: write+pull-requests: writeon the one job.github/workflows/model-registry-check.ymlautomation/model-registry.github/workflows/model-bump.ymllint/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) andwrite(the caller's write scopes; runs none of the consumer's code)docs/MODEL_REGISTRY.md,CHANGELOG/library/model-registry.mdsrc/cli.mjs(+3 lines)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, briefbrief.md):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 needsrows >= source minimumand>= 0.5 xthe 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 andgpt-4.1-mini-2025-04-14read asactive, 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.<!-- model-defaults:decision-set sha256=... -->; a newer closed-unmerged PR with the same hash suppresses the run.minimumReleaseAge/ Dependabot cooldown: adopted as a registry status (soaking, 14 days), never a PR delay; an entry withoutreleaseDatestayssoaking(timestamp-required).status: nullfor 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 withexpiration_date); Anthropichttps://platform.claude.com/docs/en/about-claude/model-deprecations.md(23 models); OpenAIhttps://developers.openai.com/api/docs/deprecations.md(157 rows in 40 shutdown tables); Googlehttps://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):
fetchwas sent to?hl=es-419and the English table header was gone. The tripwire fired. Fix:?hl=enplusaccept-language: en-US.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.N/Ashutdown with "automatically routes API requests to X": parsed asauto-routed, a trigger.expiration_date, which names no replacement, so the line isheld-no-replacementrather than guessed. Anthropic, OpenAI and Google notices carry a replacement column, so those lines move.Deviations from SPEC-v9 §B (each justified)
.mdURLs; Google stays HTML with?hl=en. The Anthropic models-overview page is not fetched in v1.price.sourcenames the transport that priced it; never copied across transports; OpenRouter overrides withoutmin_prompt_tokensfold in as the per-key maximumwatchreads the refresh workflow's last success (>14 d or unreadable = URGENT "registry refresh not running - lifecycle facts unverified"); URGENT issue found by labelmodel-defaults+ exact titlebumpasks forcontents: writeandpull-requests: writeonly.actions: writeandstatuses: writeare 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 problemGITHUB_TOKENPRs in an approval-required stateregistrySha256in 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)models.config.json, not anodekit.yamlmodels:blocknodekit.yaml; adopting one pulls it under repo-conformance, out of v1 scope.schemas/nodekit.schema.jsonandownership.yamlare therefore not edited (open PRs #31/#29 touch nearby files)validatere-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 anddeprecationsfrom the recorded snapshots, so a hand edit fails on any PRmainhas moved, the PR's input registry no longer hashes tomodels/selection-input.jsonstatus: proposed-deprecation; the status value is removed from the schemapreviousand the PR body, andstatusis 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.)currentmust havereleaseDatealways, andcontextandpriceonly on a line that routes through OpenRouteranthropic,openai,google)horizon(30, 90 or null)held-no-replacement, neitherstatusnor 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)automation/model-registryreleaseDate)bumpis two jobs,checkandwriteNot built (stated, not implied): the keyed Anthropic
/v1/modelscross-check (no key), lint warnings (d)-(g), ranking (§B.8), new-id discovery for non-Anthropic lines, aCODEOWNERSfile (a Homen decision, SPEC §C.3). Also not built, SPEC §B.1 loading:loadRegistry/validateRegistryinsrc/lib/registry.mjs, theCONTRACT_SCHEMA_FILESentry, amodelsproperty inschemas/nodekit.schema.json, and thenodeplatform.model-defaultsconcept inownership.yaml. Those files are also edited by open PRs, so this PR leaves them alone; the consequence is thatnpm run registry:checkPASS says nothing aboutmodels.yaml. What gatesmodels.yamlisnodekit models validatein theg1check (passes on this PR).Round-1 adversarial review: what was found and fixed
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).
GH_TOKENset for the whole bump job, so the consumer'snpm ciand test commands ran holding a write-capable tokenGH_TOKENis anenv:on only the steps that callgh/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.gitnever sees the tokenmodels.yamlat the lock's own pinnedregistryRef(40-hex or it fails closed) and passes it to lintminIdRows: 50fetchSnapshots; a page with 4 id-less API rows is acceptedwatch --snapshotsderives a frozen id's row from the snapshots with the same functionsselectuses; an uncovered transport is listed under "Not checked"tts-1with a shutdown 47 days out is URGENT, throughwatchReportand through the CLIvalidateModelsre-derives the bot-owned fields from the recorded snapshotsproposed-deprecation(removed from the schema)pricing: {}rowvalidateModelsgh apiwith the job's token (a shared-IP rate limit read as "status could not be read")index.jsonnot fetched (§B.6)index.jsonandsync --snapshot-indexquotes it after checking it againstmodels.yamlNot 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
c2cc149and 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).npm ci/npm testcould still change what the bot pushes and capture the write token: the push step re-read the staged lock from$RUNNER_TEMP, and a freshgit initstill reads the user's global git config (hooks);$GITHUB_ENVand$GITHUB_PATHwere reachable toobumpis two jobs.checkhascontents: 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).writestarts on a fresh runner, runs none of the consumer's code, recomputes the lock withmodels syncfrom the registry commitcheckused, refuses to go on unless the hash equalscheck's, then commits (no token) and pushes (token only on the push step)selectadopted it andvalidate --stage fullfailed every week, so no repair PR openedreplacementFordid not check whatvalidaterequires of acurrentmissingCurrentFields, used by both: a replacement missing a field is not adopted; the line is held with a row naming what a human must record-1or{}OpenRouter price onanthropic/claude-haiku-5.5aborted the whole refresh althoughanthropic.haikunever routes through OpenRouterprice.source: "openrouter", so a human could not record a vendor price; a test used a state the schema rejectssourcemay beopenrouter,anthropic,openaiorgoogle; the test asserts the schema accepts the human value and refuses an arbitrary onewatchread snapshots onmain, which are committed only when the registry's own decision set changes, and a frozen id is never in it (an OpenAItts-1shutdown 47 days out gave urgent=false)watchfetches 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 todayactivewhile 62 others kept the page-wide floor satisfiedcurrent->held-no-replacement)models replayis a step of the G1 check onautomation/model-registryGH_TOKENon every step, includingnpm ciandgit commitenv:on the two steps that talk to GitHub, as inmodel-bump.yml; a test covers every model workflowproposed-deprecationwas not in the deviations tablehorizonon dated rows; the justification corrected;syncrenders the release date and per-transport lifecycle facts (labelled information, not in the lock); the deviations table abovec2cc149: 4 commits, 59/59 and 39/39). "No unwired mechanism" was refuted by findings 1-3. "One required check red" was wrong:mainhas no branch protection or rulesets, soverifyis 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#9What 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 ownci.ymlis 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
cac830band returned FAIL with 8 defects. The report it judged was stale (it named35309cband 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).gpt-4-32k,gpt-3.5-turbo-0613,text-davinci-003andtts-1read asactive. 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 bothShutdown 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 ofRetirement datetables differs from the number it could readevery 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 throwsclaude-haiku-5-6-20260901was adopted, thenvalidate --stage fullfailed with "is a dated Claude id", every week, and no repair PR opened:free, alias, router) ran invalidatebut not inreplacementFor; the same class as round-2 defect 2aidProblems, called by bothvalidate(on a current) andreplacementFor(on a candidate). A candidate that fails it holds the line, with the reason in the PR bodythe 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 moveswritejob could still run consumer-controlled code:actions/setup-noderan after the consumer checkout in both jobs. It runsyarn --versionin the workspace (a committed.yarnrcyarn-pathwould execute, with the action's default token in its environment), and withpackageManager: npmin the consumer'spackage.jsonits automatic cache saves~/.npmafter the gate incheckand restores it inwrite. Verified by reading the action's source, not reproducedsetup-nodenow runs before the consumer's checkout, withpackage-manager-cache: false, in both jobssetup-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 jobprocess.exit(w.urgent?0:3)changed toprocess.exit(3)(watch never opens the URGENT issue, which silences the liveness alarm and the frozen-id path), andDRY_RUN: 'true'forced in the refresh (every scheduled run green, no PR ever opens, liveness stays green)DRY_RUNexpression were never executed or evaluated by a testgh: 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'sDRY_RUNexpression is evaluated forschedule(false),workflow_dispatchdefault (true) andworkflow_dispatchwithdry_run: false(false)the Watch step opens the URGENT issue exactly when...,the scheduled refresh is never a dry run...--force-with-leasereplaced by--force, the write job's mode checkreplacements 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 readsSnapshotError.kind, and the reason-message checks already catch removal of the non-200 guardmodels replayasserts 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 declaredreplayalso 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 PASSreplay also checks the clock (B.3)...: a leaky selector fails, a date crossing is allowed, a drifted status failswatchtakes a role's lifecycle dates frommain's committeddeprecations(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 limitsdeprecations)watchdepend on four vendor pages and go red when any one is down.docs/MODEL_REGISTRY.mdKnown limits now says so; the open refresh PR is the earlier signal. A decision for Homen if the delay mattersrepo-map.json, also edited by #39, #31, #29, #28 and #25); six smoke combinations, not five; NodeRL's job islint / check; OpenAI is 157 rows (153 with ids); the commit trailer staysClaude Sonnet 5.5(disclosed, not a code defect)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
d6cb103and returned FAIL with 8 defects. Each was reproduced, fixed at its cause, and given a test checked by knockout.models snapshotCLI, with the row floors still satisfied (157 to 153, 153, 154 rows): OpenAI'stts-1table with its first column renamed, deleted, or turned into a list lefttts-1readingactivewith 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", anddocs/MODEL_REGISTRY.md: "A re-laid-out page fails the run")snapshotcompares 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 coveredeffortsdry_run: truewith every test greenunlisted, neveractive" was untestedunlisted, astatedeprecation row,held-no-replacement, no guessed replacement-previewrule,WATCH_HORIZON_DAYS60 to 59,registrySha256out of the decision fields, an OpenAI "at earliest" floor counted as a retirement,reviewed: falseon a current,constraintson a bot-added entry, an emptyworkflow_runslist read as healthy, the refresh's PR step not gated onchanged, the refresh's--baseallowlist droppedregistrySha256, and the PR body said "no role changed;known,frozenorexcludechanged", which was falsea pinned role's date crossing the 90 or 30-day line...; whenknownreally changed the body still says sobumplinted only when the lock changed; SPEC B.6 says sync, lint, then the gate if changedthe bump workflow lints on every bump run...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 --testover the four model test files (registry, lock, workflows, ci-workflows): 93 of 93 pass (50 + 18 + 22 + 3; was 82).npm run registry:checkPASS (platform registry only, see above);npm run typecheck:publicclean;nodekit models validate --stage fullPASS;repo map --writeleavesrepo-map.jsonunchanged. Through the real CLI:models select --writeover the committed snapshots at a later clock prints "decision set unchanged (no PR)", andmodels replay --input-registrythen prints PASS with the new clock statement.active, the-previewrule, the watch horizon 60 to 59,registrySha256out of the decision fields, the OpenAI at-earliest floor as a retirement,reviewed: falseon a current,constraintson a bot entry, an emptyworkflow_runslist as healthy, the refresh PR step without itschangedgate, 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.<=(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 inreplacementFor,package-manager-cacheturned back on in one job, and replay without its second clock. The earlier rounds' 37 stand.models snapshotagainst 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.testpasses at this head. Localnpm teston Windows: 1031 of 1041 pass; the failures areevolution-immutability, threeevolution-ledgercases,package-install-proof-runnerandreference-loop, and the same cases fail identically on a clean checkout of this PR's basebd8844d(the four files run there).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 withEVOLUTION 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. Theg1replay step and thewritejob have not run on Actions (the replay step runs only forautomation/model-registry).What has and has not run on GitHub Actions.
model-registry-check.ymlhas run (theg1check) andmodel-bump.ymlhas run inlintmode through NodeRL#9 (lint / check,lint / writeskipped by design), including withsetup-nodenow ahead of the consumer checkout. The refresh,watchandbumppaths have not run: a schedule orworkflow_dispatchneeds 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 firstworkflow_dispatch(dry run by default) after merge is the real proof of those paths.Needs Homen / blockers
gh api repos/<repo>/actions/permissions/workflow->can_approve_pull_request_reviews: truefor both, read after the round-3 push). I changed no setting; an earlier version of this text said it was OFF.b2e86ca); after merge, bump that pin to the merge commit in a reviewed one-line PR.CODEOWNERSfor the human-ownedmodels.yamlpaths (SPEC §C.3) is left to Homen. Theownership.yamlconceptnodeplatform.model-defaultsand the rest of SPEC §B.1 loading are deferred (above) because open PRs edit those files.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 editsrc/cli-main.mjs,package.json,nodekit.yaml,ownership.yaml,CHANGELOG/README.md,.gitattributesorquality.yml. (An earlier version said this PR edits none of their files; that was false forrepo-map.json.)CHANGELOG/library/model-registry.mdis not yet linked fromCHANGELOG/README.md(owned by fix: consolidate dashboard handoffs and repair required CI #40/Add immutable reference chain edge contract #31).main(not from this PR): theevolution-immutabilitytests (test/evolution-immutability.test.mjs, cases 267/268/272/273 in the lane) fail identically on a cleanorigin/mainworktree; PR fix: restore ledger provenance and unblock Quality checks #44 ("restore ledger provenance and unblock Quality checks") is the open fix.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:mainhas no branch protection or rulesets, so nothing stops a merge, but a redverifyshould 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 draftthenrecord --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