Repository navigation
Conversation
…ses changes to (Part B v1 pilot) NodeRL stops typing its default model. DEFAULT_REASONING_MODEL is now the reasoner role in models.lock.json, generated by NodeKit's `nodekit models sync` from its reviewed registry. A weekly workflow opens ONE proposal PR when a decision-relevant fact changes; a human merges; no provider key, no paid call. - models.config.json: role reasoner = anthropic.haiku on the anthropic transport - models.lock.json: pins claude-haiku-5-5 with wire ids, constraints, lifecycle, price (priced by openrouter, valid only there) - packages/nodetrace/src/models.ts: lookup-only resolveModel / wireId - request-shape tests now read the lock and assert its constraints against the real request body; all four resolveModel sources are covered - .github/workflows/model-defaults.yml: weekly watch + bump, lint on PRs, NodeKit tooling pinned by 40-hex SHA, least-privilege permissions per job No behaviour change: the default is still claude-haiku-5-5 and the request is unchanged. Depends on HomenShum/NodeKit claude/model-registry-pilot. Source: SPEC-v9 Part B (B.5, B.6) and the REA + ORX brief (2026-10-16). Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
NodeKit's seed registry digest was recomputed (provenance only; the decision set is unchanged, so every locked role, id and constraint is identical). The lock's registryRef/decisionDigest and the three workflow pins follow. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…5309cb) Only the NodeKit entry-point routing and generated repo map changed there; the registry and its decision set are identical, so the locked role, id and constraints are unchanged. Lock registryRef and the three workflow pins follow. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… to the reviewed fixes - models.test.ts: the default id, its wire string and the effort option are asserted against models.lock.json (and wireId) instead of the literal claude-haiku-5-5. The weekly bump runs npm test before it opens its PR, so the literal made every legitimate default change fail at that gate and no PR could ever open. Verified by temporarily moving the lock to a reviewed successor, with and without "low" in its efforts: 39/39 both times. - reasoning.ts: effort "low" is sent only when the lock's constraints for the default list it (providerOptionsFor is exported and tested), instead of to whatever id the lock names. - Re-pin NodeKit (uses refs and platform_sha) to c2cc149, which fixes the token exposure to this repo's install and test commands and makes lint rule (a) fail on a PR, and regenerate the lock: a role now carries its own transport's availability and no OpenRouter price. - docs: describe the lint-against-pinned-registry and the token-free gate. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…-2 fixes - model-defaults.yml: drop the `pull_request` path filter. Lint rule (b) scans the whole repo for raw model ids, so a raw id added outside packages/ used to merge unlinted and then block the next weekly bump at the lint step. A test fails if a filter comes back. - Re-pin NodeKit (the three `uses:` refs and `platform_sha`) to bb85e06. That commit splits NodeKit's bump workflow into a read-only job that runs this repo's `npm ci` and `npm test` (as its last step) and a write job that runs none of this repo's code, so the consumer's own commands can no longer reach the token that opens the pull request. The lock is unchanged by `models sync`; lint passes against both the registry it pins and the new one. - docs: describe the two jobs. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The only change since bb85e06 is a comment in a NodeKit test; the three uses refs and platform_sha move together so they name the PR head. The lock is unchanged. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Both uses refs and platform_sha move together. The lock is unchanged: `models sync --check` against NodeKit d6cb103 reports it unchanged, lint passes, npm test 40/40 and typecheck clean. No paid call. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…sumer pilot - The gate test read `efforts` off the locked role without a default, so a reviewed successor that carries none (sonnet-5-5 and opus-5-5 do not) crashed it and the weekly bump's own gate could never deliver that successor. The expectation now tolerates a role with no efforts, and a test pins that. - A test now evaluates watch's and bump's dry_run for the scheduled event (must act) and a default manual run (must not push). Forcing either to true used to leave every test green and every scheduled run silently inert. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
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
Part B v1 pilot, consumer side (SPEC-v9 §B.5-B.6): NodeRL stops typing its default model and reads it from
models.lock.json, which NodeKit's weekly proposal-only robot proposes changes to. 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)".The situation. NodeRL's reasoning step defaults to one model (
claude-haiku-5-5, set by the merged Part A refresh, #6/#8). A default typed into code is never re-read, so when the vendor announces a retirement nobody notices until requests fail. Now the default is thereasonerrole in a lock file; a weekly job compares the lock with NodeKit's reviewed registry and, if something this repo uses changed (the id, its request constraints, its lifecycle dates, its price), opens one pull request onautomation/model-defaults. A person merges. It never merges itself, uses no provider key and makes no paid call.Behaviour change: none. The default is still
claude-haiku-5-5; the request shape is unchanged. The existing request-shape tests now read the lock instead of naming the id (see the review section): they assert the same request for today's default and keep passing when the default moves. Callers can still pass any model id toaiSdkReasoner(id); an id the registry has not reviewed comes back asoverride-unknownand keeps today's routing (providerFor).Depends on HomenShum/NodeKit#47 (its
verifycheck currently fails on a missing Evolution Ledger event that needs Homen's reviewer approval). Merge that first: this PR's workflow reads NodeKit'smodels.yamland tooling, pinned to that PR's head commitb2e86cadd9160969d089cada65b9364052f5ba0a. After NodeKit merges, bump the pin (the threeuses:refs andplatform_sha) to the merge commit in a one-line reviewed PR.What is in it
models.config.jsonreasoner= lineanthropic.haikuon transportanthropic;frozen: [];exclude: []; the gate (npm ci,npm test && npm run typecheck); the raw-id allowlistmodels.lock.jsonnodekit models syncfrom NodeKitc2cc149(unchanged by the re-pins tocac830b,d6cb103andb2e86ca:syncrewrites the lock only when a decision field changes, soregistryRefstays at the commit that last changed it, which still exists on NodeKit#47's branch); pinsclaude-haiku-5-5, its wire ids per transport, constraints and lifecycle on its own transport (Anthropic: Active; floor 2027-10-07, advisory only). It carries no price: only OpenRouter priced it and this role routes through Anthropic, so an OpenRouter-only change cannot open a PR herepackages/nodetrace/src/models.tsresolveModel(role, override?)(sourceslock,override,override-incompatible,override-unknown) andwireId(throws instead of constructing an id)packages/nodetrace/src/reasoning.tsDEFAULT_REASONING_MODEL = resolveModel("reasoner").id(was a literal).github/workflows/model-defaults.ymlwatchthenbump;linton every pull request (no path filter).permissions: {}at top; read for lint,issues: writefor watch,contents: write+pull-requests: writefor bump. Calls NodeKit's reusable workflow by 40-hex SHAmodels.test.ts(+6),test/model-defaults-workflow.test.ts(+5)docs/model-defaults.md;docs/codebase/INTEGRATIONS.md(the line-20 citation became line 21 because of the new import, whichtest/citations.test.tscaught)The check the spec defines (G2 lint + G3)
nodekit models lintruns on every PR (a path filter would let a raw model id added outsidepackages/merge unlinted and then block the next weekly bump, because rule (b) scans the whole repo), comparing the lock with NodeKit'smodels.yamlfetched as data at the commit the lock itself pins: (b) no raw model id in code outside the allowlist, (b2) the role's transport is one its line offers and has a wire id, (c) the pinned id is not retired/unlisted and not within 30 days of an announced retirement on the transport in use (a floor is never a finding; an unverified transport warns). (a) the lock must equal what the registry gives for this repo's config; it fails on a PR that hand-edits the lock (observed: a lock edited toclaude-opus-5-5exits 1, the same lock unedited passes). On the weekly run the lock is also regenerated from the current registry first. G3 is this repo's ownnpm test && npm run typecheckplus the request-shape tests, which read the lock: the model string must equal the lock's wire id and the lock'sconstraints(sampling/prefill/budget_tokens forbidden) are asserted against the real request body. This repo's install and test commands run in NodeKit's read-onlycheckjob (contents: read), as its last step. The pull request is opened by a separatewritejob that runs none of this repo's code: it starts from a fresh checkout, recomputes the lock from the same registry commit, and pushes nothing unless that lock's hash equals the one the gate ran on. (Round 1 said the commands ran "with no GitHub token". That was literally true and not enough: they shared a job with the push step and could change what was pushed; see round 2.)REA + ORX (decision D5)
Reverse-engineered before building: LiteLLM's and models.dev's catalog sync guards, Renovate's stateless "immortal PR" behaviour, Dependabot/Renovate cooldown and no-automerge defaults, GitHub's
GITHUB_TOKENPR run policy and the 60-day schedule auto-disable. Facts adopted/rejected, with links and fetch dates, are in the NodeKit PR andD:/VSCode Projects/model-defaults/_scratch/partb-research/brief.md. Primary sources (fetched 2026-10-16, keyless): Anthropic model-deprecations.md, OpenAI deprecations.md, Google deprecations, OpenRouterGET /api/v1/models.Round-1 adversarial review: what was found and fixed here
models.test.tsassertedDEFAULT_REASONING_MODEL === "claude-haiku-5-5"and the same literal in the request body. The weekly bump runsnpm testbefore it opens its PR, so the first legitimate registry move (a reviewed successor) would have failed that gate every week and no PR would ever open. Reproduced: a lock moved to a successor madenpm test37 of 38. Fixed: the test reads the id, the wire string (wireId) and the effort from the lock. Re-run with a temporary lock moved to a successor, both with and without"low"in itsefforts: 39 of 39 each time (the lock was restored afterwards).effort: "low"went to whatever id the lock named.providerOptionsFor(now exported) sends it only to the lock's default, and only when the lock'sconstraints.effortslistlow. New test covers a successor with and without it, no constraints, and a caller-supplied id.WARN (a) skippedin run 38894610385). Fixed in NodeKit's reusable workflow; the lock is now compared with the registry at the commit it pins. Observed locally: a hand-edited lock fails, the real one passes,sync --checkis clean.gate.installis still plainnpm ci.c2cc149in round 1 and regenerated the lock; the lock no longer carries another transport's availability or the OpenRouter price.Round-2 adversarial review: what was found and fixed here
A second independent review (plus a Codex review) judged head
4f37a64and returned FAIL. The two findings that concern this repo:npm ciandnpm testcould still change what the bot pushes and capture the write token. They ran in the same job as the push step; the push step re-read the staged lock from the runner's temp directory without checking it again, and a freshgit initstill reads the user's global git config, so a hook set bynpm testran on the push step's commit with the token in its environment. The reviewers ran the real push step after a simulated test step and got exit 0, a bot-branch commit with attacker-chosen content, and the token captured. NodeRLmainis unprotected, the default workflow permission is read andci.ymlonly getscontents: read, so the pilot would have added a write path that did not exist. Fixed in NodeKit#47 (cac830b): the bump is two jobs, a read-onlycheckthat runs this repo's gate last and awritethat runs none of this repo's code and pushes only a lock it recomputed itself. This PR re-pinned the threeuses:refs andplatform_shatocac830b(and, after round 3, tod6cb103);models syncleaves the lock unchanged, and lint passes against both the registry the lock pins and the new one.pull_requesttrigger was filtered to the lock, the config andpackages/**, so a raw model id added undertest/,experiments/orpromotion/passed its own PR and then blocked the next weekly bump at the lint step. Fixed: the filter is removed, andtest/model-defaults-workflow.test.tsfails if apaths,paths-ignoreorbranchesfilter returns.mainhas no branch protection or rulesets, soverifyis red by that repo's policy, not as a GitHub requirement. Heads and counts in the earlier report were stale.Round-3 adversarial review: what changed here
A third independent review judged NodeKit#47
cac830band this PR atde60e40and returned FAIL. Its eight defects are all in NodeKit (parsers that skipped notice tables, a replacement the robot's own validation rejects,setup-noderunning consumer-controlled code before the write job, workflow paths no test executed, untested guards, replay without the second clock, role dates read frommain, stale claims); see NodeKit#47's round-3 table. What this PR needed:uses:refs andplatform_shato NodeKitd6cb103. The lock is unchanged:nodekit models sync --checkagainstd6cb103prints "lock unchanged",models lintpasses,npm test40 of 40,npm run typecheckclean.test/model-defaults-workflow.test.ts(all references are the same 40-hex commit) passes unchanged.lint / check, notlint / run(already so below), and that the Actions setting named in blocker 1 is now ON.Round-4 adversarial review: what changed here
A fourth independent review judged NodeKit#47
d6cb103and this PR at66f7c38and returned FAIL. Five of its eight defects are in NodeKit (see its round-4 table). Two are here:models.test.tsreadrole.constraints.effortswithout a default, and two of the three reviewed ids (claude-sonnet-5-5,claude-opus-5-5) carry noefforts. Removingeffortsfrom the locked role gave 9 pass and 1 fail (TypeError), so the weekly bump's own gate (G3) failed and the robot could never deliver that successor. Fixed: the expectation is(efforts ?? []).includes("low"), in one helper, with a test that a role with noefforts, or no constraints, is handled. Checked by removingeffortsfrom the lock: 11 of 11 pass in that file (was 9 and 1).dry_run: trueon the scheduledwatchorbumpleft every test green; every scheduled run would then stay green while the URGENT issue (including the "registry refresh not running" alarm) and the proposal PR never opened. Fixed:test/model-defaults-workflow.test.tsevaluates bothdry_runvalues for the scheduled event (must act), a default manual run (must not push) and a manual run with the box unticked (must act). Checked by knockout: forcing either job'sdry_runto true now fails the file (4 pass, 1 fail each).uses:refs andplatform_shato NodeKitb2e86ca. The lock is unchanged:models sync --checkprints "lock unchanged",models lintpasses.Verification (observed 2026-10-17, head
38afa86)npm test: 42 of 42 pass at38afa86(was 31 before the pilot; +6 inmodels.test.ts, +5 workflow-contract tests);npm run typecheck: clean.nodekit models lint --registry <NodeKit models.yaml>PASS;nodekit models sync --checkunchanged; a hand-edited lock fails rule (a).dry_run: trueonwatch, onbump(each fails the workflow test), and the lock witheffortsremoved (the gate test passes). Earlier, in a throwaway copy: 12 mutants of the accessor and the workflow (effort sent to any id, override transport or constraints taken from the role, an unknown override resolved as the lock,wireIdconstructing an id,actions: writeon bump, a divergingplatform_shaoruses:ref,bumpno longer needingwatch, a path filter back on lint, write on the lint job). 11 are killed by the tests. The twelfth, a typed literal default, is not meant to be caught by a test: lint rule (b) blocks it (observedMODELS LINT BLOCKED ... raw model id "claude-haiku-5-5" at packages/nodetrace/src/reasoning.ts). The literal assertions are gone, so a moved default no longer fails the tests.38afa86:lint / checkpassed,lint / write,watchandbumpwere skipped by design,source-checksand GitGuardian passed (the two-job workflow inlintmode, called by NodeKitb2e86ca, whosesetup-nodenow runs before the consumer checkout with its cache off). Earlier, atde60e40(run 38991826347) the same job passed againstcac830b. At the earlier head4f37a64(run 38961030868,lint / run) NodeKit'smodel-bump.ymlinlintmode resolved the lock'sregistryRefto a 40-hex commit, fetchedmodels.yamlandindex.jsonfromraw.githubusercontent.comat that commit, validated it against the schema, ranmodels lint --registry ...and printedMODELS LINT PASSwith no(a) skippedwarning.Observed about the cross-repo read the weekly
watchdoes: NodeKit is public and its commits endpoint answers an unauthenticated request (200), so the registry-commit lookup does not depend on NodeRL's token. The workflow-runs endpoint it uses for liveness answers 404 today becausemodel-registry-refresh.ymlis not on NodeKit's default branch yet. After NodeKit#47 merges, the first Tuesdaywatchwill therefore raise the URGENT issue "registry refresh not running" until the NodeKit refresh has had one successful run (any successful run counts, including a dry-runworkflow_dispatch). That is the intended honest answer, not a false alarm; dispatch NodeKit's refresh once right after merging to clear it.Not observed: the
watchandbumppaths have not run on GitHub Actions (a schedule orworkflow_dispatchneeds the file on the default branch); the firstworkflow_dispatch(dry run by default) after both PRs merge is the proof. Whether GitHub shows an "Approve workflows to run" banner on aGITHUB_TOKEN-created PR is also unobserved (brief D-9): the bump token has noactions: write, so a bot PR shows no CI until a human approves its runs.Needs Homen / blockers
verifycheck is red on a missing Evolution Ledger event that needs your reviewer approval; that repo has no branch protection, so the check is red by its policy and nothing technically stops a merge). The repo setting Settings > Actions > General > Allow GitHub Actions to create and approve pull requests is now ON in both repos (can_approve_pull_request_reviews: true, read after the round-3 push); an earlier version of this text said OFF. I changed no repo setting.evidence/model-refresh-20261015/receipt.json) is bound totestedCommit ba8f2edand the oldreasoning.tsblob hash. This PR changes that file without changing the default value or the request, and makes no paid call, so the receipt is not regenerated. A fresh keyed receipt is Homen's call (SPEC §C.1).🤖 Generated with Claude Code