Skip to content

chore(models): refresh stale model defaults (NodeSlide) - #203

Draft
HomenShum wants to merge 27 commits into
claude/pi-ai-1-1-0-nodeslidefrom
claude/model-refresh-nodeslide
Draft

HomenShum wants to merge 27 commits into
claude/pi-ai-1-1-0-nodeslidefrom
claude/model-refresh-nodeslide

Conversation

@HomenShum

@HomenShum HomenShum commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

Status (head bd9d10b): draft, label needs-live-eval; one paid gate not run (executor receipt; no OpenRouter key), one open human decision (the A.0.6 pricing-agreement conflict with the A.2.8 auto-router freeze, below). The D2 executor decision is settled: Homen (2026-11-06) chose the paid OpenRouter model deepseek/deepseek-v4.1-flash-1017 for the executor, an exception to D2 for NodeSlide only (SPEC "Homen decisions"). Round 16 (head 304816e, section at the end) implements it. The three held price ceilings are settled by SPEC D3 (Homen 2026-10-16).

Executor (convex/lib/nodeslideRoutingPolicy.ts): deepseek/deepseek-v4.1-flash-1017 (SPEC "Homen decisions", NodeSlide executor, 2026-11-06: exact dated id, not the deepseek/deepseek-v4.1-flash alias). History: Google deprecated gemini-3.5-flash on 2026-10-08, so A.0.1 moved the role; A.2.8's target was google/gemini-3.8-flash; a :free target (round 6) cannot run because the ledger refuses every zero-priced :free route (dynamicRoute, pricing_unknown). The new id is priced in the ledger, so the split dispatches. google/gemini-3.8-flash stays as an offered picker row.

Marking: the executor is live-unverified until Homen adds OPENROUTER_API_KEY to sit-flow/.env. No working OpenRouter key exists today, so the paid receipt has not been produced; the needs-live-eval label and draft state stay.

Paid gate not run (blocker until the key exists). Both receipt calls go through OpenRouter (kimi-k3 planner, deepseek executor). On a machine with the key, against a dev Convex deployment stamped with the tested revision:

node scripts/write-convex-build-identity.mjs <testedCommit>
npx convex dev --once
npx convex run nodeslideModelProbe:runExecutorSplit
git checkout -- convex/lib/nodeslideBuildIdentity.generated.ts   # before the receipt-only commit (A.0.3 form a)

Cost estimate (real ledger reservation, convex/nodeslideExecutorSplitProbeBudget.test.ts): 0.427208 USD = kimi-k3 planner 0.408756 (114,252 in / 4,400 out at 3 / 15) + deepseek executor 0.018452 (107,010 in / 4,000 out at 0.15 / 0.60, rounded up). Was 0.504014 with the gemini-3.8-flash executor. Capped by the committed NODESLIDE_EXECUTOR_SPLIT_DEFAULT_BUDGET_USD = 0.55 USD (SPEC D3, unchanged); 0.25 USD still refuses the planner with 0 requests. Accepted iff routing.reason === 'split_premium_planner_bulk_copy', routing.executorModel === 'deepseek/deepseek-v4.1-flash-1017', the executor span's provider-echoed responseModel is that id with non-zero usage, executorOutcome === 'applied', no budget refusal and buildIdentity.commitSha === testedCommit (executorSplitReceiptFailures). The post-deploy run is the same probe from the nightly-production-probe.yml workflow_dispatch step and needs the same key on production. A failed production run reverts the executor by PR.

Ledger row and max_price ceiling for the executor (shared/nodeslideRunBudget.ts): $0.15 in / $0.60 out per M, context 1,048,576, max output 393,216, cache read $0.003, from https://openrouter.ai/api/v1/models fetched 2026-11-06T10:39:31Z (created 2026-10-17, tools + response_format + structured_outputs + reasoning, no expiration_date). The listing also carries weekday time-of-day overrides: DeepSeek's own endpoint doubles to 0.30 / 1.20 at 01:00-04:00 and 06:00-10:00 UTC. The row is the base price and, as for every row, the OpenRouter max_price ceiling, so OpenRouter never bills above what the ledger reserved; at peak only DeepSeek's own endpoint drops out. GET /api/v1/models/deepseek/deepseek-v4.1-flash-1017/endpoints (same minute): 50 endpoints, 18 at or below the ceiling on base price, 17 at every hour, 16 with structured_outputs. The frozen auto-router prices (D3) are untouched.

Open for Homen: A.0.6 pricing agreement vs the A.2.8 freeze of nodeslideAutoRoutingPolicy.ts (NO approval exists: this is an unapproved exception and blocks merge until Homen resolves it). A.0.6 requires every pricing source in the repo to agree. A.2.8 freezes convex/lib/nodeslideAutoRoutingPolicy.ts, which prices moonshotai/kimi-k3, z-ai/glm-5.2 and openai/gpt-5.6-sol at the bundled pi-ai catalog rate, not the ledger rate (kimi-k3 at 100k input / 1k output tokens: $0.065 against the ledger's $0.315). A frozen site is not edited, and changing the ledger rates would reopen the prices D3 settled, so neither is this PR's to do. convex/nodeslideModelPricing.test.ts ("pins where the frozen auto-router estimate differs from the ledger rate") pins the divergence so it can neither widen nor close unnoticed; it is not the A.0.6 equality. Exposure: the auto-router's receipt is NOT only advisory. cost_cap_exceeded is in ENFORCEABLE_REFUSALS (nodeslideRoutingReceipt.ts:185) and resolveNodeSlideEnforcedCreateRequest (:187-221, applied at nodeslideJobs.ts:251) rewrites a refused create request to providerMode deterministic, so the pinned pi-ai-versus-ledger divergence can change execution: glm-5.2 output is 7.2 in pi-ai against 2.4156 in the ledger, so the router can refuse (and force deterministic) a create request the ledger would admit (replayed case: router $0.007371 refused, ledger $0.003185, enforced deterministic). The ledger still reserves the worst case before any dispatch, so no spend is under-reserved. Homen chooses: (1) accept the pinned divergence as an approved A.0.6 exception, (2) lift the A.2.8 freeze for the auto-router so it reads the ledger (a small follow-up edit), or (3) change the ledger rates to match, which reopens D3.

Probe cap (SPEC D3, Homen 2026-10-16): the default is 0.55 USD, committed in NODESLIDE_EXECUTOR_SPLIT_DEFAULT_BUDGET_USD (convex/lib/nodeslideExecutorSplitProbe.ts), so it applies to a bare npx convex run on dev and to the nightly production probe step. convex/nodeslideExecutorSplitProbeBudget.test.ts runs the real nodeslideBudgets mutations over an in-memory database with only HTTP faked (no price stand-in) and asserts: 0.55 is the default; 0.25 refuses the planner with 0 requests; planner plus the priced executor reserves 0.427208 (0.504014 with the earlier gemini-3.8-flash executor) and fits 0.55; the executor is dispatched and the receipt passes executorSplitReceiptFailures.

No provider call was made by this PR's author.

Stacked on #204. The spec lands @earendil-works/pi-ai 0.80.6 -> 1.1.0 as its own pre-PR with its own gate (npm run check plus a nightly-production-probe.yml dispatch) so that a failing post-deploy probe can be traced to the SDK or to the model change, not both. Round 1 folded it into this PR; round 2 split it out: #204 carries the lockfile bump, the one fix the bump forces and its tests. This branch contains #204 (a merge commit) and this PR's base is claude/pi-ai-1-1-0-nodeslide, so the diff here is the model refresh only. Round 6: main gained #205 (e0b35c9); #204 is rebased onto it (ef2e0d0) and this branch merges that, so both are 0 behind main (#205 touched nodeslideEditVerifyAction.test.ts and CodeTours 01/02; no conflicts; tours:check resolves all 32 steps). Merge #204 first, let its post-deploy probe pass, then this PR retargets main. (If #204 is squash- or rebase-merged, merge main into this branch; the only overlap is .map(priceFromLedger) beside the line #204 changes in openrouterProviderWithOverrides.)

Decision taken in round 4, settled by SPEC D3 (Homen 2026-10-16) (production availability)

shared/nodeslideRunBudget.ts is both the reservation quote and the OpenRouter max_price ceiling (nodeslideBudgetedProvider.ts -> nodeslideProvider.ts:874-875; asserted in convex/nodeslideBudgetEnforcement.test.ts). The /models listing price is the cheapest endpoint's, so a row refreshed to it leaves OpenRouter only the few endpoints at or below it. Dated readings from the free GET /api/v1/models/{id}/endpoints (no paid call), endpoints at or below the ceiling on both rates, with structured_outputs in brackets (require_parameters demands it on a json_schema request):

Route Ceiling Endpoints admitted
moonshotai/kimi-k3 (production default) main: 3 / 15 21 of 25 [18] at 2026-10-15 23:08 UTC
round 3 head: 0.7 / 15 3 of 25 [2] at 23:08 UTC (3 of 25 at about 18:30 UTC; 2 of 25 at about 17:52 UTC)
the spec: 0.64 / 13.5 0 of 25 at 23:00 UTC
z-ai/glm-5.2 (offered, productionEnabled:true; BYOK default) main: 0.7686 / 2.4156 6 of 33 [4] at 23:08 UTC
round 3 head: 0.05 / 7 0 of 33 at about 18:30 and 18:49 UTC; 2 of 33 [1, Wafer] at 22:35, 23:00 and 23:08 UTC (it flaps)
openai/gpt-5.6-sol main: 5 / 30 6 of 7 [6] at 23:08 UTC
round 3 head: 2 / 10 1 of 7 [1] at 22:35 and 23:08 UTC; its listed price moved from 2 / 10 to 4 / 20 on 2026-10-15

The earlier statement in this body that glm-5.2 "cannot be routed at all / 0 of 33" was a single stale reading and is withdrawn: it is the dated series above.

Chosen (option b, limited to the three routes that already exist on main): kimi-k3, glm-5.2 and gpt-5.6-sol are back on main's prices and windows, as are NODESLIDE_KIMI_K3.cost (3 / 15, cacheRead 0.3) and the transcription in convex/nodeslideModelPricing.test.ts. The refresh now changes no ceiling that main already routed: the four new rows and gpt-5.6-terra (which moved up, 1.25 / 7.5 -> 2 / 12) are the only price changes, and each of the 12 metered routes has at least 3 admitted endpoints, at least 2 with structured outputs (recorded and asserted in convex/nodeslideModelPricing.test.ts; a route recorded with fewer fails the test, and a ledger row that moves without its observation being re-fetched fails it too). This departs from SPEC A.2.8's literal "kimi-k3 3/15 -> 0.64/13.5, glm-5.2, gpt-5.6-sol/terra" refresh for three rows; the spec's own kimi figure admits 0 endpoints.

Options (a) to (d), as dispositioned: (a) keep round 3 as is: rejected, it leaves the production default and the BYOK default on one to three providers. (b) restore main's ceilings: done for the three routes. (c) split the quote from the ceiling, with the price of record kept and max_price carrying a margin: not done. A margin above the price of record only helps if the reservation and the settlement are also priced at the ceiling; otherwise OpenRouter may bill up to the ceiling while the ledger settles at the lower recorded price, and the campaign cap under-counts spend. Priced at the ceiling, (c) is (b) plus a second field, and it is a change to the accounting seam that belongs in its own PR. (d) productionEnabled:false on glm-5.2: not needed once its ceiling routes. Settled, no longer open: SPEC D3 (Homen 2026-10-16) directs keeping main's prices for kimi-k3, glm-5.2 and gpt-5.6-sol and fixing the pricingAsOf label to the date the kept values were verified, which is what this section did. A later PR may re-refresh them with the endpoint-count evidence above (the series shows listing prices moving daily); that is a follow-up, not a condition of this PR.

Round 1 review (Codex): what changed

Rounds 1 to 3 below are the history of earlier heads. Figures that depend on the kimi-k3, glm-5.2 or gpt-5.6-sol prices (for example $0.085 and $0.015700 for kimi-k3, $0.007050 for glm-5.2) describe those heads; round 4 put the three rows back on main's prices, and the current figures are in the Round 4 table and in the tests.

# Finding Disposition
1 Pricing sources disagree (pi-ai 1.1.0 vs ledger) Fixed. The ledger is the one price of record. The provider (openrouterProviderWithOverrides, which prices every response) and the auto-router estimate now price ledger-priced OpenRouter routes at the ledger rate; pi-ai still supplies limits, capabilities, tiers and the free rows. The agreement test now loads four sources (ledger, Model<> overrides, the built provider, the auto-router) for every metered OpenRouter route; it fails on 3 assertions without the source change. Kimi is no longer admitted on an estimate below the ledger worst case ($0.085 for 100k in / 1k out). Disclosure: this edits nodeslideAutoRoutingPolicy.ts (3 lines of price sourcing plus one new pricing.source literal nodeslide-run-budget-ledger; the old literal stays for persisted receipts). The row is reclassified in round 3 from "freeze (id)" to migrate (A.0.6, pricing sources must agree), see the site table and round 3 item 5; it needs a human acknowledgement, and the alternative to veto it is to align the ledger to pi-ai, which cannot hold for glm-5.2 (the live catalog contradicts pi-ai's 0.171 / 7.2). The one-micro-dollar cost-cap test moved to the ledger's 7,050 micro-USD for glm-5.2, old figures in a comment.
2 Open ledger row charged as final Fixed. nodeGymLedgerReceiptMicroUsd returns a figure only for a finalized row; an open row keeps the full reservation, for deck-gym and node-gym. Test reproduces the finding (failed run, pptx_export_timeout, open ledger at 0).
3 --per-run-max-cost-micro-usd allowed 0 / below the backend cap Fixed by removal in both runners. nodeGymRunReservationMicroUsd takes no override, so a paid run always reserves the 1,000,000 backend cap (pinned to normalizeNodeSlideRunBudget({}) by a test). Codex's cap-0 replay now refuses the first dispatch. Spec test (c) now runs at the real binding cap (cap 100,000 vs 1,000,000; the 180,000 figure was only possible with the flag), old figures in a comment.
4 deck-gym spend not durable across invocations Fixed. Each run directory keeps budget-charges.json: the reservation is written before dispatch and replaced by the ledger charge afterwards, so a process that dies mid-run stays charged and a re-run adds to it. restoreDeckGymSpend seeds the meter before any run is scheduled (completed-and-skipped runs included); a legacy run directory with no record is charged one reservation and the record is written. Replay of the finding (1,000,000 before, cap 2,000,000) now stops.
5 Executor receipt not A.0.3-shaped; weak acceptance Fixed. Receipt now carries command, candidateIds, echoedModels, rows (requested / resolved / echoed model, usage, costUsd, fallbackUsed, dispatches), testedCommit, constantSha256, budget {maxUsd, estimateUsd, spentUsd, requests, stoppedBy} read from the ledger's own books (replay), dispatchPolicy, startedAt, environment. (Superseded by round 2 below: the probe now switches the second call off and records the enforced policy.) executorSplitReceiptFailures now rejects: no planner span or row, wrong planner or executor identity, no or too little ledger spend, a budget stop, retries or fallback, wrong candidate, wrong constant hash, wrong command, tested-commit mismatch. 30 tests, each rejection starting from an accepted receipt. testedCommit in the receipt is the deployment's stamped commit; the caller's own commit is the independent check. A planner echo that differs from moonshotai/kimi-k3 (for example a dated alias) is treated as a fallback and rejected; if that ever happens it needs a human reading, not an edit.
6 Merge block not enforced Fixed. Label needs-live-eval created and applied; PR converted to draft.
7 kimi-k3 ceiling routes the default through one provider Disclosed above; decision needed.
8 Request-shape guard missed tool_choice / prefill / effort Fixed. Forbidden: tool_choice, tools; prefill is checked as a trailing assistant message; effort must be one of low / medium / high / xhigh / max. The guard has its own test, and injecting toolChoice: 'required' into the provider now fails 5 tests.
9 receiptForRun returns a new schema Disclosed, kept. The spec names nodeslide.run-budget-receipt/v1, but that string already denotes a different shape (the per-call accounting receipt, NodeSlideRunBudgetReceipt). Reusing it for a run-level read model would make two shapes share one version. The new query returns nodeslide.run-budget-ledger-receipt/v1.
10 Deterministic / recovery executors reserved 0 Fixed (behavior restored to the spec). Only local, :free and openrouter/free routes reserve 0. Consequence to know: the recovery executor on a paid route now reserves and is charged the 1,000,000 reservation per run (it names no backend run), where main reserved the plan cap and charged 0. The deterministic executor accepts only local models, so it is unaffected.
11 Capability cards publish medium with 0 runs Fixed. Generator reports none — no evaluated runs for zero evaluations (it was a hard-coded floor); the four new cards are regenerated. Cards with evidence are unchanged.
12 nodeSlideAgentModel falls back to the paid Nebius route Fixed. Unknown ids throw; a SPEC 1.2 verified free id the catalog does not serve throws (round 8); a free-looking id in neither the catalog nor SPEC 1.2 resolves to the openrouter/free row; the unguarded probe path rejects before dispatch. This is the first resolver (A.0.10); the public validators already reject such ids at the API boundary.

Round 2 review: what changed

Re your review of 464069a: the scope note (item 1) is taken as given; the head here is the round-2 tip, and the test counts are from a fresh run (below).

# Finding Disposition
2 Opus 5.5 got high when no effort was passed Fixed. Catalog rows may carry defaultEffort; Opus 5.5 carries medium. nodeSlideDefaultReasoningEffort(model) is read at every server defaulting boundary: the provider (callNodeSlideFreeJson), the public edit/variation consent (nodeslideProviderConsent.ts), the public create validator (nodeslideValidators.ts) and the inspector's request builders. The create dialog, landing composer and inspector pickers use nodeSlideEffortAfterModelChange: an effort still at the previous row's default follows the new row; an effort the person chose is kept. Explicit caller efforts are unchanged (tested through both public boundaries). The request-shape test now asserts medium for Opus 5.5 and that an explicit high is kept.
3 Probe sent paid calls with the repair retry on; maxRetries was an observed count; a failed planner reported requests: 0 Fixed. NodeSlideDispatchPolicy.maxRetries?: 0 turns off both second completions (JSON repair and the schema-compatibility retry) and the probe passes it on every dispatch. The receipt's dispatchPolicy is the policy enforced (a constant shared with the dispatch), not a count. Every dispatch is recorded as it returns, so a failed planner that made 2 requests reports 2 (test). Edit-planner fallback is deterministic and issues no request, so crossModelFallback: false is also enforced, not merely observed.
4 executorSplitReceiptFailures accepted missing or contradictory accounting Fixed. Required per row: usage (non-zero), costUsd, and dispatches === 1. Reconciled: row against span (model, usage, cost), spans/rows are exactly one planner and one executor, spentUsd >= max(rows, spans), spentUsd <= estimateUsd, estimateUsd <= maxUsd, requests === 2 and equal to the rows' dispatches. I ran the real validator on your three hand-built receipts (stripped rows with requests 0, both rows at 10 USD against 0.021 spent, every row at 0 dispatches): all rejected, and the accepted baseline still passes. 41 tests; each new rejection starts from an accepted receipt. The probe test's fake ledger now quotes 50,000 micro-USD per call instead of the shared stub's 1,000,000, which could never fit a 0.25 USD probe.
5 MCP BYOK client priced from the raw pi-ai catalog Fixed. mcp/src/lib/llmClient.ts prices OpenRouter responses through nodeSlideLedgerPricedCost, the function the Convex provider uses. It is source 5 of the agreement test (no date of its own; it takes NODESLIDE_MODEL_PRICING_VERIFIED_AT), which now drives the real client with a fake fetch at 1k in / 1k out: kimi-k3 $0.015700, glm-5.2 $0.007050. Fails without the change.
6 Cached-read rate above the quote's input rate Fixed. nodeSlideLedgerPricedCost caps cacheRead at the ledger input rate (glm-5.2: 0.162 -> 0.05). Cache write was checked as asked: Claude 5, 5.5, Opus 5.5, Fable and the GPT rows bill writes at 1.25x input (2.5 vs 2, 5 vs 4, 12.5 vs 10); the quote's input estimate is bytes x 2 attempts plus overhead, i.e. at least 2x the tokens ever sent, so a 1.25x premium cannot settle above it. The agreement test asserts cacheRead <= input and cacheWrite <= 2 x input for every metered route, and settles 100k cached tokens + 10 output through both response paths (Convex provider and MCP) at or below the quote. Both new tests fail without the cap. Above-threshold tiers (272K+ prompt tokens on the GPT rows, 200K on Gemini Pro) remain pi-ai data the flat ledger does not model; a NodeSlide prompt is bounded far below them by the read-context limit.
7 deck-gym charge history rewritten non-atomically Fixed at the root. writeDeckGymRunCharges writes through writeNodeGymFileAtomic (temp file + rename), so an interrupted rewrite leaves the old history whole. The test kills the publish step: before, the history 2,000,000 came back as 1,000,000; now it stays 2,000,000 with no temp file left. (The unreadable-file fallback, one reservation, was reversed in round 3: see item 2 below.)
8 --limit narrowed what restore counted Fixed. restoreDeckGymSpend({ runsDir }) reads every run directory in the runs directory, regardless of selection. Test: 2,000,000 spent, a later run selecting only run-3 under a 2,000,000 cap restores 2,000,000 and dispatches nothing. A missing runs directory is zero; any other read error stops the campaign.
9 -free suffix threw Fixed. nodeSlideAgentModel resolves -free and :free suffixes to the free router row; free-model, vendor/freedom (no suffix) still throw. The unguarded probe never sends foo-free to a paid provider (test).
10 pi-ai bump folded into this PR Split out as the spec asks: #204 (see top). No waiver was requested or recorded.
11 Cold-import timeout in the request-shape test Fixed. vi.setConfig({ testTimeout: 30_000 }) for that file (it paid 6,565 ms against 5 s under load). No assertion changed.
12 Verification record Noted. Unchanged by this round: the revert knockouts, the four wire ids, override precedence, the disposition tables. The configuration-validation.json digest drift in the working tree was pre-existing (main's harness.json already hashed to sha256:2f1a6c...); the refreshed digest is committed in 15fb4f8, so the diff against main changes that one line (configDigest).

Round 3 review: what changed

Judged head was 6ddce9b. No rebase needed (0 behind main, mergeable clean).

# Finding Disposition
2 MAJOR Spend cap failed open on an unreadable budget-charges.json Fixed at the root. readDeckGymRunCharges returned one 1,000,000 reservation for any non-ENOENT read error, a JSON parse failure and a schema mismatch. Every caller either restores spend or appends to the history, so a made-up figure could undercount (2,000,000 held, 1,000,000 restored, one more paid run admitted at a 2,000,000 cap) or overwrite the lost history. It now throws (spend is unknown, so the campaign stops), so restoreDeckGymSpend stops before the budget exists, and recordDeckGymReservation / recordDeckGymCharge refuse instead of overwriting. Only a missing file is still "no charges yet". The test that locked in the fallback now expects a refusal for invalid JSON, a wrong schema, a negative charge and a non-ENOENT read error (EISDIR stands in for EACCES/EBUSY), and checks the record paths refuse too.
3 MAJOR OpenRouter max_price ceilings leave glm-5.2 unroutable Not changed; needs Homen. Evidence refreshed above (glm-5.2: 0 of 33 endpoints; kimi-k3: 3 of 25 against 21 on main). PR stays blocked.
4 Opus 5.5 still got high on two paths Fixed. (a) mcp/src/lib/llmClient.ts passes the NodeSlide row's default effort (pi-ai 1.1.0 would otherwise send high for every managed-effort Claude row); mcp/src/lib/llmClient.test.ts fails without it. (b) AiInspector initial state and the restore fallback read nodeSlideRestoredReasoningEffort(model in force, saved effort): the saved effort when valid and supported, otherwise the row default; a saved Opus with no saved effort gives medium. Unit test in nodeslideProvider.requestShape.test.ts, plus a render test that a fresh Opus composer shows Medium.
5 Auto-routing row mislabelled "freeze (id)" Reclassified to migrate (A.0.6) in the site table; runtime-role counts are now migrate 10, freeze 16, defer 4. Human acknowledgement requested (see the table row).
6 Paid gates Unchanged and not run: see Status. Gate 1 ledger estimate 0.241235 USD against the 0.25 USD NODESLIDE_PROBE_BUDGET_USD cap; gate 2 is the same step against production.
7 Moving from Sonnet with an explicit high to Opus shows medium Not changed: the documented behavior of nodeSlideEffortAfterModelChange, visible in the picker before anything is sent; server boundaries keep an explicit caller effort (tested).

Round 4 review: what changed

Judged head was 799dc2f. The clone held 13 uncommitted edits from an interrupted fix attempt; they were inspected first (diff read in full, not applied blindly): the picker rewrite and the glm-5.2 revert were kept and finished, the rest was checked against the tests below.

# Finding Disposition
2 MAJOR anthropic/claude-sonnet-5.5 and anthropic/claude-opus-5.5 threw in the local MCP BYOK path (planLocalByokEdit -> callByModel): canonicalizeModelId stripped the prefix to the dotted slug, which pi-ai 1.1.0's anthropic registry lacks Fixed at the root. mcp/src/lib/llmClient.ts has an explicit table (DIRECT_ANTHROPIC_WIRE_ID: the four catalog Claude ids -> claude-sonnet-5, claude-fable-5, claude-sonnet-5-5, claude-opus-5-5, SPEC 1.2 anthropic column). inferProvider is untouched, so the provider choice and the key lookup in byok.ts are as before. The row default effort reaches that call (the request carries effort: medium for Opus 5.5, high for Sonnet 5.5). New mcp/src/lib/llmClient.wire.test.ts drives the real callByModel and pi-ai with a fake fetch: URL is api.anthropic.com, body model is the wire id, the effort is in the body. With the old source both new ids throw Cannot read properties of undefined (reading 'api') with 0 requests; the existing Sonnet 5 row still sends claude-sonnet-5.
3 MAJOR each ledger row is also the OpenRouter max_price ceiling; the refreshed rows left kimi-k3, glm-5.2 and gpt-5.6-sol on one to three providers Decided and fixed, acknowledgement requested: see "Decision taken in round 4". Rows restored to main for those three routes; admitted-endpoint observation for all 12 metered routes is recorded in the test with a floor of 3 admitted / 2 structured. The glm-5.2 0 of 33 statement is restated as dated readings. Side effects, all asserted: the agreement-test figures are back on main's (kimi-k3 $0.018000 per 1k in / 1k out, glm-5.2 $0.0031842), the auto-router estimate for glm-5.2 is 3,185 micro-USD, and the gate-1 estimate is 0.504014 USD (see Status).
4 MINOR nodeSlideEffortAfterModelChange overwrote an effort the person chose when it equalled the previous row's default (Sonnet 5.5 explicit high -> Opus 5.5 became medium; Opus 5.5 explicit medium -> Sonnet 5.5 became high) Fixed at the root. The pickers no longer infer intent from the value. Each holds the person's choice (null until the effort control is touched, or a saved draft/storage effort is restored) and shows nodeSlideEffortForModel(model, choice): the choice when the row supports it, else the row default. Changing the model changes nothing about the choice, so an untouched effort follows each row and a chosen one is kept (and comes back after a row that does not support it). nodeSlideEffortAfterModelChange and nodeSlideRestoredReasoningEffort are deleted (no caller left). Tests: NodeSlideLanding.effort.test.tsx and ProjectDialog.effort.test.tsx drive the real pickers through the replays above, plus the untouched and saved-draft cases; nodeSlideEffortForModel unit test in nodeslideProvider.requestShape.test.ts; the inspector keeps AiInspector.defaultEffort.test.tsx (its Radix select cannot be driven in jsdom, so its chosen-effort path is covered by the shared helper and by the two native-select pickers).
5 BLOCKER paid gate: executor receipt not run Unchanged, still blocking (draft, needs-live-eval). Exact steps in Status; no provider call was made. The estimated cost changed (0.504014 USD, needs NODESLIDE_PROBE_BUDGET_USD raised on the deployment).
6 Auto-routing policy edit goes against A.2.8's literal "freeze" Recorded, unchanged, needs Homen's acknowledgement. Model ids and the line-235 derivation are unchanged; only the price source for priced rows moves to the ledger (A.0.6). In production it only feeds the advisory advisory_v1 create-routing receipt.
7 Codex: frozen taste judge missing from the agreement test Rejected. scripts/nodeslide-taste-judge.mjs never reads cost, usage, price or budget; completeTasteJudgeWithPiAi returns only text and stop reason. It turns no tokens into dollars or reservations, so it is not an A.0.6 pricing source.

Round 6 review: what changed

Judged head was ef24e55.

# Finding Disposition
1 MAJOR probe default cap 0.25 USD refuses the real planner reservation (0.504014 USD together) Fixed. Default is 0.55 USD in the committed constant (D3), applies to dev and the nightly step; new real-ledger test, see Status.
2 MAJOR D2 neither applied nor dispositioned for the executor Applied. Executor -> nvidia/nemotron-3.5-super-vl:free from a dated public-list fetch, marked live-unverified (no key, Homen 2026-10-16), see Status. Catalog row (productionEnabled:false, not offered in the picker), validator literal, nodeSlideModelProbeProfile (512 tokens, as the other free routes), a pi-ai model registered like Kimi K3 (the bundled catalog was cut before the row was listed, so getModel would throw), a ledger dynamicRoute entry, the receipt-core mirror and the tests follow the new id. The new consequence (ledger denies it) is in Status.
3 MINOR three held price rows (kimi-k3 3/15, glm-5.2 0.7686/2.4156, gpt-5.6-sol 5/30) stamped with the 2026-10-14 listing's source and time Fixed. Those rows now carry sourceUrl = .../api/v1/models/{id}/endpoints and verifiedAt = 2026-10-15T23:08:00Z (NODESLIDE_HELD_PRICE_VERIFIED_AT), the endpoint check that verified them. The other rows keep the listing's time and URL. In nodeslideModelPricing.test.ts the three are removed from OPENROUTER_CATALOG_2026_10_14 (which no longer claims they came from it) and have their own HELD_AT_MAINS_CEILING table with the listing they differ from (0.7/15, 0.05/7, 2/10) and a test that each row is labelled with the endpoint date and URL, not the listing's.
4 PROCESS behind origin/main by #205 Done. #204 rebased onto main (ef2e0d0), this branch merges it (a fast-forward push; #204 was already pushed). npm run check re-run, below.
5 MINOR the MCP direct path dropped the row default effort for non-Claude rows (pi-ai 1.1.0 reads effort only on the Anthropic path) Fixed. llmClient.ts also passes reasoningEffort for openai-responses models and thinking.level for google-generative-ai models (effort is still passed for all, as before). New wire tests drive the real client with a fake fetch: openai/gpt-6.1-sol posts to /v1/responses with reasoning.effort: high, google/gemini-3.8-flash posts thinkingConfig.thinkingLevel: HIGH, neither carries a sampling key. Both fail without the change. Behavior note (superseded in round 14): this round applied the row default to every catalog row, which changed gpt-5.6-sol/terra from reasoning.effort: none to high and gave the Gemini rows an explicit thinking level. Round 14 scopes the default to the four new rows; the older rows send main's request again. The claim "names the row default" now holds for Claude, GPT and Gemini rows.
6 MINOR MCP resolver broke openrouter/free (prefix stripped to free) and threw an opaque reading 'api' on free-looking unknowns Fixed. An OpenRouter id is never prefix-stripped. Unknown ids: free-looking (:free, -free, openrouter/free) resolve to the verified openrouter/free route on OpenRouter; every other unknown throws Unknown model ... before any request. Wire tests: openrouter/free, bogus/model:free, vendor-free each POST to OpenRouter with model: openrouter/free; bogus/model, gpt-nonexistent, claude-unknown-9 throw with 0 requests.
7 NIT site count Fixed. The header now says 30 spec sites plus one additional row outside the spec.
8 environment incident (judge's worktree removal) No PR change; the tree was repaired by the judge and every check was re-run here (below).

Round 7 review (judge round 4): what changed

Judged head was 8328210.

# Finding Disposition
1 MAJOR known catalog ids (google/gemma-4-26b-a4b-it:free, google/gemma-4-31b-it:free, nvidia/nemotron-3.5-super-vl:free) were POSTed to OpenRouter as openrouter/free (D1) Fixed at the root. mcp/src/lib/llmClient.ts: a NodeSlide catalog id that pi-ai cannot serve now throws before any request; only an id that is not in the catalog and looks free falls back to openrouter/free (A.0.10). Because a :free id exists only on OpenRouter, inferProvider now returns openrouter for it, so the gemma and nemotron-3-super catalog ids are found in pi-ai's OpenRouter registry and sent as themselves. The nemotron-3.5 row no longer exists (finding 3). Wire tests POST each catalog id and assert model equals the id; they fail without the change.
2 MINOR the key check (requireLocalKeys, byok.ts) and the resolver disagreed on the provider Fixed by one decision. byok.ts already calls inferProvider; callByModel calls the same function, so changing it in finding 1 changes both. vendor-free and the gemma ids now demand OPENROUTER_API_KEY (not OPENAI_API_KEY / GEMINI_API_KEY) and a user with only an OpenRouter key passes the check and reaches OpenRouter. Tests: the key reported and the host reached agree for six ids, and a user holding only the old inferred key is refused with the OpenRouter variable named.
3 MAJOR the :free executor is always refused by the ledger, so the split never runs in production Fixed by reverting the target to google/gemini-3.8-flash (see Status). Removed with it: the nvidia/nemotron-3.5-super-vl:free catalog row, validator literal, probe profile, pi-ai model registration, ledger dynamicRoute entry and the tests that followed the id. Not done: a free-tier admission rule (weakens the ledger's rule 10) or retiring the split (a product decision).
4 MAJOR post-deploy gate always red Resolved by the same revert. The workflow is unchanged and still requires EXECUTOR_SPLIT == success; with a priced executor a keyed run can pass it. It stays red until production holds a working OpenRouter key (see Status), which is an environment fact, not a weakened gate.
5 MAJOR frozen site nodeslideAutoRoutingPolicy.ts edited Reverted. The file and its test are byte-identical to the base branch (#204); the new pricing.source literal and the ledger pricing in admission/selection are gone, and the PR no longer asks for an acknowledgement. The agreement test (A.0.6) still enumerates the auto-router as a pricing source but pins the three rows where its pi-ai price differs from the ledger (AUTO_ROUTER_DIFFERS_FROM_LEDGER: kimi-k3, glm-5.2, gpt-5.6-sol) instead of asserting equality, so the divergence cannot move unnoticed. The "kimi-k3 not admitted below the ledger worst case" test exercised the reverted edit and is removed; the router only feeds the advisory create-routing receipt and the ledger still reserves the worst case. Runtime-role counts return to the spec's: migrate 9, freeze 17, defer 4.
6 MAJOR the existing proposeEdit test priced the :free executor as Gemini via vi.mock Fixed. nodeslideRoutedProposeEdit.test.ts is the round 5 version again: no ledger mock, so the real ledger admits the priced executor and the test asserts what production persists (executor applied, attribution rows). The stand-in mocks are also gone from nodeslideExecutorSplitProbeBudget.test.ts and scripts/tests/executor-split-probe.test.mjs.
7 MINOR nodeslideEditPlanner.test.ts changed an exact id with no provenance Reverted to main's value (google/gemini-3.5-flash is an arbitrary catalog row there and was never retired from the catalog). The other exact-id changes in the PR carry the 2026-10-08 deprecation in a comment, including the Executor . Gemini 3.5 Flash label in nodeslideRoutedProposeEdit.test.ts.
8 NIT stale pricingAsOf comment on NODESLIDE_KIMI_K3 Fixed: it names the held row's NODESLIDE_HELD_PRICE_VERIFIED_AT.
9 PROCESS stale claim (head, executor, counts) Replaced: every figure in this body is for the head named under "Check output".

Why

Two defaults in NodeSlide stopped being safe to ship. Google deprecated gemini-3.5-flash on 2026-10-08 (it now auto-routes to 3.6, so the "executor" model the edit planner hands bulk copy to is no longer what the code says it is; it moves to google/gemini-3.8-flash, live-unverified), and OpenRouter no longer lists openai/gpt-oss-20b:free (2026-10-10). Separately, Claude Sonnet 5.5, Claude Opus 5.5 and GPT-6.1 Sol are the vendor-named successors the picker did not offer. This PR moves the executor, adds the new rows beside the old ones (old literals stay valid so persisted job requests still resolve), and adds the budget and proof machinery the spec requires before any keyed run.

Wire ids come only from SPEC section 1.2 (openrouter column): anthropic/claude-sonnet-5.5, anthropic/claude-opus-5.5, google/gemini-3.8-flash, openai/gpt-6.1-sol. All four are in 1.2; no id outside it is written.

Runtime-role sites (30 spec sites: migrate 9, freeze 17, defer 4; plus one additional migrate row outside the spec's 30, mcp/src/lib/llmClient.ts)

Site Disposition What / why
shared/nodeslide.ts:225,226 freeze moonshotai/kimi-k3 default; evidence-gated. MCP/CLI copies now import NODESLIDE_DEFAULT_AGENT_MODEL (collapse, no id change)
shared/nodeslide.ts:227 freeze Nebius GLM-5.2 route, productionEnabled:false
shared/nodeslide.ts:24 (catalog) migrate +anthropic/claude-sonnet-5.5, +anthropic/claude-opus-5.5, +google/gemini-3.8-flash, +openai/gpt-6.1-sol; all supportsTemperature:false. nodeSlideAgentModel now fails closed on unknown ids. Round 12: nvidia/nemotron-3-super-120b-a12b:free (unlisted on OpenRouter 2026-10-31) loses freeRouterCandidate, row kept for persisted requests and known-id paths, and the scripts/lib/model-fleet-receipt-core.mjs mirror drops it too; three candidates remain, including openrouter/free
shared/nodeslide.ts:53 freeze z-ai/glm-5.2 offered row; BYOK UI default copies now import one constant NODESLIDE_BYOK_DEFAULT_MODEL
shared/nodeslide.ts:66, :79 defer claude-sonnet-5 / claude-fable-5 active (floors 2027); 5.5 rows sit beside them; promoting them in the picker is a human/v2 choice
shared/nodeslide.ts:92 migrate google/gemini-3.5-flash -> productionEnabled:false (row kept for persisted requests); new google/gemini-3.8-flash row
shared/nodeslide.ts:105 freeze gemini-3.1-pro-preview, only Pro; preview exception
shared/nodeslide.ts:118, :131 defer gpt-5.6-sol / gpt-5.6-terra active previous generation; gpt-6.1-sol row added beside; picker move is human/v2
shared/nodeslide.ts:144, :159 freeze openrouter/free, gemma-4-26b-a4b-it:free listed on OpenRouter
shared/nodeslide.ts:201 migrate gpt-oss-20b:free -> productionEnabled:false, freeRouterCandidate removed; validator literal kept
convex/lib/nodeslideValidators.ts:715 migrate +4 literals (add-only: claude-sonnet-5.5, claude-opus-5.5, gemini-3.8-flash, gpt-6.1-sol)
shared/nodeslideRunBudget.ts:560,584 migrate +4 price rows; gpt-5.6-terra refreshed; kimi-k3, glm-5.2 and gpt-5.6-sol deliberately kept at main's prices (round 4, see "Decision taken in round 4") and labelled with their own endpoint evidence, NODESLIDE_HELD_PRICE_VERIFIED_AT = 2026-10-15T23:08Z (round 6); the rest NODESLIDE_MODEL_PRICING_VERIFIED_AT = 2026-10-14T16:03Z; paired convex/nodeslideModelPricing.test.ts updated
convex/lib/nodeslideProvider.ts:19 freeze follows default constant
convex/lib/nodeslideProvider.ts:368 migrate probe profiles for the 4 ids (default branch is 64 tokens, starves adaptive thinking)
convex/lib/nodeslideRoutingPolicy.ts:19 migrate executor -> google/gemini-3.8-flash (live-unverified; the paid receipt is the blocker in Status). Round 6's :free executor was refused by the ledger and is reverted
convex/lib/nodeslideAutoRoutingPolicy.ts:235 freeze derived from the installed pi-ai catalog; unchanged and identical to the base branch (A.2.8). Its price differs from the ledger on three rows; pinned in the agreement test, see Round 7 finding 5
scripts/lib/model-fleet-receipt-core.mjs:1 migrate mirror add-only rows; executor constant follows the routing policy (google/gemini-3.8-flash); gpt-oss-20b:free dropped from the free list
scripts/nodeslide-taste-judge.mjs:17 freeze TasteBench judge, provenance '3.5'. ADVISORY: Google auto-routes 3.5 -> 3.6 so the provenance string may not describe what runs; temperature:0 at :248 is deprecated on 3.6+. Re-pinning is a human decision with a provenance bump
mcp/src/lib/nodeslideTools.ts:15, packages/cli/src/cli.ts:56 freeze kimi-k3 default; now import the constant
mcp/src/lib/llmClient.ts:99,115 migrate (round 4) inferProvider still picks the provider; canonicalizeModelId now reads an explicit table for the four catalog anthropic/... ids (A.0.5), so the 5.5 rows reach the direct Anthropic API as claude-sonnet-5-5 / claude-opus-5-5 instead of throwing on the dotted string; round 5: the row default effort is looked up from the resolved wire id, so anthropic/claude-opus-5.5, anthropic/claude-opus-5-5 and claude-opus-5-5 all send medium; round 6: the same effort reaches OpenAI Responses (reasoning.effort) and Gemini (thinkingLevel) rows, OpenRouter ids are never prefix-stripped, and unknown ids follow A.0.10
src/lib/sessionByok.ts:61, NodeSlideConnectionsDialog.tsx:91 freeze glm-5.2 BYOK default; now import the constant
src/lib/sessionImageGeneration.ts:3 freeze gpt-image-2 image generation, frozen class
.github/workflows/nodeslide-bench.yml:175 freeze follows judge constant / catalog
.github/workflows/nightly-production-probe.yml:101 freeze no literal to move; gains the runExecutorSplit capture step (below)

Executable (E) and runtime-adjacent (R) sites (13: migrate 5, freeze 7, defer 1)

Site Class Disposition What / why
convex/lib/nodeslideProvider.ts:27 R defer Nebius GLM-5.2 hand-typed 1.4/4.4; route disabled, ledger row is unknown (denied). Verify against the Nebius price list when the route is enabled (asserted in the agreement test)
convex/lib/nodeslideProvider.ts:72 R migrate NODESLIDE_KIMI_K3.cost stays 3/15 (cacheRead 0.3; round 4 reverted the 0.7/15 move) and is now exported; the agreement test asserts it equals nodeSlideModelPricing('moonshotai/kimi-k3') (same transport, same pricingAsOf)
convex/lib/nodeslideProvider.ts:646 R migrate json_object workaround now keyed by catalog flag structuredOutputMode, stated per row
convex/lib/nodeslideProvider.ts:713 R freeze temperature only when supportsTemperature; new rows declare false (correct guard)
convex/lib/nodeslideModelFleetProbe.ts:23 R freeze iterates the catalog
scripts/a5-production-acceptance.ts:19 E freeze kimi-k3, unchanged default
tests/e2e/nodeslide-benchmark-producer.live.spec.ts:108 E freeze Nebius GLM-5.2 producer route
scripts/build-model-capability-ledger.mjs:21 R migrate policies for the 4 new rows; 3.5 policy kept; zero-evidence cards no longer report medium
benchmarks/deck-gym/v1/harness.json:8 E freeze benchmark identity (72 runs, zero 3.8 rows, so deck-gym:run cannot be the executor receipt); adding rows is a re-baseline (human, v2)
benchmarks/deck-gym/v2/gym.json:283 E migrate execution.disabled on the gpt-oss-20b:free row + runner exclusion (below)
benchmarks/artifact-atlas/v1/harness.json:8 E freeze benchmark identity
production-agent.json:116 R freeze pinnedModel kimi-k3; deck-gym:matrix stays the deterministic plan
package.json:119, mcp/package.json:20 R migrate (moved to #204) @earendil-works/pi-ai 0.80.6 -> 1.1.0 (0.80.6 lacks every 5.5 id) is the spec's own pre-PR, #204; this branch contains it and the base of this PR is that branch

Class N: 18 entries (doc 4, eval-fixture 1, example 1, other 2, test-assertion 10). Exact-id test assertions moved with the Google 2026-10-08 deprecation, cited in a comment beside each; the one test that changed an id without a citation (nodeslideEditPlanner.test.ts) is reverted. One round-1 test that exercised the reverted auto-router edit is removed (Round 7 finding 5).

Breaking-parameter fixes (SPEC 1.3)

  • New Claude 5.5 / GPT-6.1 Sol / Gemini 3.8 rows: supportsTemperature:false, so no temperature/top_p/top_k is ever sent (a 400 on Claude 5.5 and GPT-6 and deprecated on Gemini 3.6+).
  • Every request carries an explicit reasoning.effort; reasoning:{enabled:false} is never sent for these rows. Default effort is explicit per row: high everywhere except Opus 5.5, whose row carries defaultEffort: 'medium' (its vendor default; Opus 5 was high). The provider, the public create and edit boundaries, the three pickers and the inspector's restored state (nodeSlideEffortForModel: the effort the person chose, else the row default) and the local MCP client (which now names the row default instead of letting pi-ai 1.1.0 send high) read it; an explicit caller effort is kept.
  • Efforts: Claude 5.5 and GPT-6.1 Sol low..max; Gemini 3.8 Flash low..high (xhigh/max unsupported).
  • Probe max_tokens per id: 2048 for the three adaptive-thinking rows (thinking counts toward it), 256 for Gemini 3.8 (also the executor).
  • The executor is google/gemini-3.8-flash, a SPEC 1.3 id: its request is held to the full forbidden-key list (no temperature, top_p, top_k, legacy thinking keys, prefill, tool_choice).
  • Found by the request-shape test, not in the spec: pi-ai 1.1.0 ships OpenRouter's Claude rows as anthropic-messages at https://openrouter.ai/api. The pin to chat-completions on /api/v1 (asOpenRouterChatCompletionsRoute) is part of the SDK upgrade and now lives in chore(deps): @earendil-works/pi-ai 0.80.6 -> 1.1.0 (model-defaults pre-PR) #204 with its own test; this PR keeps the request-shape assertions for the new rows.

Test proof (fails before, passes after)

convex/lib/nodeslideProvider.requestShape.test.ts builds real requests through the repo's own provider code with a fake fetch (nothing leaves the process) and asserts the URL, model equals the SPEC 1.2 id, none of temperature/top_p/top_k/thinking/budget_tokens/thinking_budget/candidate_count/logprobs/prefill/tool_choice/tools is present, no assistant turn trails the messages, and an accepted explicit effort is sent. Against the pre-change source it failed 11 of 12 when the file had 12 tests (round 1; for example an unknown id falling back to the first catalog row, and the Claude rows POSTing to /api/chat/completions). Current figure, head a2cfeb5 (the file and the source it tests are unchanged since a405de9): the file has 29 tests; with shared/nodeslide.ts and convex/lib/nodeslideProvider.ts taken from origin/main it fails 18 and passes 11, with this branch's source 29 of 29 pass (round 12 measured 14 failed / 10 passed of 24 before its new test; the 3 tests added in round 15 are the provider-echo ones, which also fail on main). Executor-receipt and deck-gym guard tests are separate files: scripts/tests/executor-split-probe.test.mjs and scripts/tests/deck-gym-campaign-budget.test.mjs. Round 1 added a guard self-test (eight forbidden shapes the guard must object to) and a knockout: injecting toolChoice: 'required' into the provider fails 5 tests.

Gates and budget controls added

  • Executor receipt (candidate-bound, deployment-bound). nodeslideModelProbe:runExecutorSplit runs one premium-planner (moonshotai/kimi-k3) edit turn through planNodeSlideEditRouted and the reserve-before-dispatch provider, capped by NODESLIDE_PROBE_BUDGET_USD (default 0.55 USD, SPEC D3; planner + executor together). Receipt shape and acceptance rule: finding 5. capture-model-fleet-probe.mjs allows the function/schema pair and nightly-production-probe.yml gains a workflow_dispatch step writing receipt-<sha>.json.
  • deck-gym:run is not the executor receipt (no campaign meter, frozen v1 matrix with zero 3.8 rows, create/export never reaches the executor). It gains --max-total-cost-micro-usd (required unless --limit <= 12), in-flight runs reserved at the 1,000,000 backend cap, spend read from the backend ledger via new public query nodeslideBudgets.receiptForRun (finalized rows only), durable across invocations; a missing or open receipt keeps the full reservation.
  • Node-gym accounting. One exported charge rule (nodeGymRunCharge / chargeNodeGymAttempt) charges the finalized ledger figure, or the full reservation on crash / timeout / failure / missing, unreadable or open receipt; orphaned attempt directories are charged on resume; the cap-100,000 scenario never admits a second run.
  • Node-gym execution exclusion. gpt-oss-20b:free keeps its row (720 stays the identity) with execution:{disabled:true,since,reason}; validateNodeGymConfig accepts only that shape; the runner partitions disabled runs before runtime filtering and subset selection; --include-disabled is the only override; --subset all selects 600 and reports 120 skippedDisabled; matrix regenerated in this commit.

Check output (the round 7 to 9 runs below are historical; the current head's run is in the newest "Review round" section at the end of this body)

npm run lint        biome check .   Checked 1094 files. No fixes applied.
npm run typecheck   tsc -b + workspaces   (no errors)
VITEST_MAX_WORKERS=4 npm run check, vitest step:   Test Files 4 failed | 323 passed (327) | Tests 5 failed | 3000 passed | 7 skipped (3012)
  the 5 failures are 5000 ms cold-import / worker timeouts on a machine running ~175 node processes (one also "Failed to start forks worker"):
  convex/nodeslideModelPricing (MCP BYOK ledger-rate test), convex/nodeslideUploadExtraction,
  NodeBookWorkspacePanel (2 tests), AiInspector.openUiWiring.
  Rerun with --testTimeout=60000: 8 of those 9 files pass (121 of 122 tests); the one that timed out at 60 s inside the group,
  NodeBookWorkspacePanel, passes 5 of 5 alone in 17 s. Also in that rerun: nodeslideProvider.requestShape, nodeslideRoutedProposeEdit,
  nodeslideExecutorSplitProbeBudget and nodeslideAutoRoutingPolicy all pass.
workspaces          npm run test --workspaces: 11 + 5 + 7 + 53 tests passed
npm run build       vite build  built in 2m 19s
npm run test:nodeslide-gates   43 files, 595 passed | 5 skipped

I did not reproduce a single full vitest run with zero failures on this machine; the previous body's "328 passed (328)" is withdrawn. npm run check stops at the vitest step, so build and the workspace tests were run separately, as listed.

Knockouts (round 7): with the llmClient.ts change reverted, 6 of the new wire tests fail (two gemma catalog ids sent as openrouter/free; vendor-free and the gemma ids demanding the wrong key; the old-key refusal test). With nodeslideAutoRoutingPolicy.ts back on the base branch, the old agreement test failed as expected and is replaced by the pinned divergence.

Round 8 head a733479 (re-run 2026-10-16 22:57 PDT): biome clean on the 4 changed files, tsc -b clean, nodeslideProvider.requestShape 24/24, nodeslideProvider 39/39 with the new resolver test, MCP llmClient.wire 33/33. GitHub CI on a733479: all required jobs pass (App + packages, MCP, Gate unit tests, PR corpus, conformance, packed consumer). The full local vitest run was not repeated (machine saturated); CI is the full-run evidence for this head.

The paid gate (executor receipt, estimated 0.504014 USD, command in Status) did not run. No provider call was made by this PR's author.

Round 9 head 8c320f5 (run 2026-10-17, local, log _scratch/judge-nodeslide/r9/): npm run lint clean (1094 files), npm run typecheck clean (tsc -b + workspaces), npm run test --workspaces 11 + 5 + 7 + 54 passed, npm run build passes (2m 13s), mcp/src/lib/llmClient.wire.test.ts 33/33, scripts/tests/deck-gym-campaign-budget.test.mjs 18/18. Root vitest, run with --testTimeout=120000 --maxWorkers=2 because the machine runs about 135 node processes: Test Files 1 failed | 327 passed (328), Tests 1 failed | 3011 passed | 7 skipped (3019). The one failure is scripts/tests/nodeslide-reference-authority.test.mjs ("keeps one immutable authority receipt across retry bursts and sustained worker retries", its own 30 s per-test timeout; it also fails alone on this machine with EBUSY on rmdir). This PR does not touch that file or what it tests, and CI passes it; it is not a check this PR loosened. GitHub CI on the pushed head is the other full-run evidence.

Round 8 review (judge round 5): what changed

# Finding Disposition
1 MAJOR SPEC 1.2 verified :free ids rerouted to openrouter/free (D1): MCP callByModel('nvidia/nemotron-3.5-content-safety:free'), and nodeSlideAgentModel('nvidia/nemotron-3.5-lightning:free') / ('apodex/apodex-1.1-mini:free') Fixed at the root. shared/nodeslide.ts carries the 15 SPEC 1.2 verified free ids (isNodeSlideVerifiedFreeModelId); nodeSlideAgentModel throws for one the catalog does not serve, and mcp/src/lib/llmClient.ts throws for one pi-ai has no row for, before any request. Only an id in neither the catalog nor SPEC 1.2 that looks free still falls back to openrouter/free. Tests: the MCP wire test asserts no request is sent for nvidia/nemotron-3.5-content-safety:free (fails without the change); the resolver test asserts the two replayed ids throw.
2 MAJOR executor is paid, D2 says :free Not fixable in this PR. Recorded as a merge blocker needing a Homen exception (see Open for Homen).
3 NIT body said +5 validator literals Fixed. The table says +4 and names them.
(r5-2) Generation defaults to low for Opus 5.5 (CLI resolveGenerateEffort, MCP nodeslideTools.ts .default('low')) Not a defect. Both are byte-identical to main (A.0.4: caller-facing defaults are untouched), and low is an accepted explicit effort for Opus 5.5; the request names it. The row default (medium) applies where no effort is passed at all, which is the Convex and MCP-client paths fixed in rounds 2 to 4 and in round 9 below. Codex agrees.

Round 9 review (judge round 6): what changed

Judged head a733479 (round 8); fixes are in 8c320f5. The scope note is taken as given: the implementer's earlier claim naming 15fb4f8 is round 0 and stale; this branch is 0 behind main (merge-base e0b35c9), every commit is authored by homen, frozen files have empty diffs.

# Finding Disposition
1 Scope note and verification record Taken as given. The scripts/tests/nodeslide-reference-authority.test.mjs timeout (its own 30 s per-test limit, plus EBUSY on rmdir) is outside this PR (untouched here, passes in CI); recorded under Check output.
2 MAJOR, open, needs Homen (r5-3): the executor is paid Not changed; wording narrowed. The factual claim holds (the ledger refuses every zero-priced :free route before dispatch, on main as well). The earlier "none can meet D2 here" was too broad: a conservative priced reservation plus a separately enforced zero-price max_price ceiling could keep the financial controls. That is an accounting change for its own PR, not a target swap. Status and Open for Homen now list the three choices (paid-executor exception to D2, the separate accounting PR, or retiring the split). Blocks merge until Homen decides.
3 MAJOR (plausible, from the documented API contract; no live call) MCP direct-Anthropic Opus 5.5 ran at high, not the row default medium: pi-ai 1.1.0 hard-codes top-level output_config.effort: "high" and appends the requested effort only as a trailing effort-only message, which the migration guide says takes effect from the next user turn; this request has none Fixed at the root. mcp/src/lib/llmClient.ts passes pi-ai an onPayload hook (withTopLevelEffort) that writes the row effort into the top-level output_config.effort for the Anthropic Messages API when the body carries one (Sonnet 5, which sends none, is untouched). pi-ai's trailing message is left as it is. mcp/src/lib/llmClient.wire.test.ts now asserts body.output_config.effort equals the row effort (high for the two Sonnet 5.5 spellings, medium for all three Opus 5.5 spellings), and its comment no longer claims the trailing message governs the reply. Knockout: with llmClient.ts back on the round 8 source, the 3 Opus 5.5 cases fail (top-level high). The documented contract is the basis; the real API was not called.
4 MINOR (Codex: MAJOR) the deck-gym campaign cap did not hold across two invocations on one runs directory (replay: cap 1,000,000, two runs dispatched, 1,600,000 finalized, 800,000 persisted, both stoppedBy: null) Fixed at the root. acquireDeckGymCampaignLock(runsDir) in scripts/lib/deck-gym-campaign.mjs creates <runsDir>/campaign.lock with O_EXCL (openSync(..., 'wx')) and scripts/run-deck-gym.mjs takes it before restoreDeckGymSpend, holding it to exit (released on exit; SIGINT and SIGTERM exit through it). A second invocation is refused at start with the holder's pid and start time. A crashed holder leaves the file and the next start refuses, naming it; there is deliberately no liveness probe, because a wrong guess would admit the second invocation. The lock is a file, not a run directory, so it adds no spend. New test in scripts/tests/deck-gym-campaign-budget.test.mjs: two racing invocations, exactly one is admitted and the other is refused before restoring anything; release is idempotent and the lock is free afterwards.
5 NIT PR body stale Fixed. (1) Status lists one open decision; the three held ceilings are settled by SPEC D3. (2) The full local run for this head is recorded under Check output. (3) The Round 8 table has the r5-2 row (not a defect, with the reason). (4) The digest note is corrected (the refreshed configDigest is committed, in 15fb4f8), and docs/codebase/INTEGRATIONS.md is listed: its nodeslideTools.ts pointer moved :414 -> :417, where registerNodeSlideTools now sits.

Re-verification of head 5fccd58 (2026-10-29, local, no code change): npm run check ran lint clean (1094 files) and typecheck clean; the vitest step ended Test Files 5 failed | 323 passed (328), Tests 7 failed | 3009 passed | 7 skipped, all seven being cold-start timeouts or Windows EBUSY in files this PR does not change (nodeslideModelPricing BYOK-client case 5 s, immutable-upgrade-consumer-core 30 s, nodeslide-reference-authority 15/30 s + EBUSY rmdir, AiInspector.openUiWiring, NodeBookWorkspacePanel 60 s). The same five files re-run with --testTimeout=120000 --maxWorkers=2: 5 files, 64 tests passed. npm run build passes (43.55 s). Knockout of the executor role: with NODESLIDE_ROUTING_EXECUTOR_MODEL set back to google/gemini-3.5-flash, nodeslideProvider.requestShape.test.ts fails 1 of 24 (expected 'google/gemini-3.5-flash' to be 'google/gemini-3.8-flash'); restored, 24/24 pass. GitHub CI on this head: all required jobs pass. No provider call was made.

Round 10 review (judge round 7): what changed

Judged head 8c320f5; fixes are in 469f5db. The earlier claim naming 15fb4f8 and "322 passed (322)" is stale and withdrawn: the head under review was 8c320f5 (16 commits ahead of main, 0 behind, all authored by homen).

# Finding Disposition
1 MAJOR a second node-gym run on the same campaign takes over the first run's live workspace and spends past the cap (replay: 3,000,000 dispatched against a 2,000,000 cap, the first run's next result write failing with ENOENT, evidence mixed). A live attempt has no receipt, exactly like a dead one, and the default campaign id is the same for every launch Fixed for overlapping launches; the POSIX signal path was still open and is fixed in round 11. scripts/run-node-gym.mjs takes the same O_EXCL lock as deck-gym (acquireDeckGymCampaignLock(campaignRoot, 'NodeGym'), <campaignRoot>/campaign.lock) before campaign-plan.json is written or any attempt directory is read, and holds it to exit (exit releases; SIGINT/SIGTERM exit through it). The second launch is refused with the holder's pid and start time, touching nothing. The orphan-recovery rule itself is unchanged. New test in scripts/tests/node-gym-campaign-budget.test.mjs spawns the real script: refused while the lock is held (campaign directory still holds only the lock), runs and releases once free. Knockout: with run-node-gym.mjs back on 8c320f5 it fails.
2 MAJOR, open, needs Homen: the executor is the paid google/gemini-3.8-flash; D2/D2a say :free Not changed, as instructed. Every zero-priced :free route is a dynamicRoute that the budgeted provider refuses before dispatch (pricing_unknown), so a swap would stop the split from running, and relabelling the price would weaken the ledger. Homen chooses one of the three options under Open for Homen. Still blocks merge.
3 MINOR releasing the deck-gym lock can delete another process's lock (replay: A acquires, the file is deleted, B acquires, A exits, B's lock is gone and a third invocation is admitted) Narrowed, not closed (see round 11). The lock file carries a random token; release unlinks only a file that still carries it. New test in scripts/tests/deck-gym-campaign-budget.test.mjs replays the sequence. Knockout: fails with the unconditional unlink.
4 NIT Status said the pre-merge receipt "runs from a keyed machine" and blamed only the post-deploy run on the missing key Fixed. Status and Open for Homen option (1) now say both receipt calls go through OpenRouter, no working key exists per D2, and a paid-executor exception alone leaves the PR blocked on a receipt nobody can produce unless Homen also accepts the "live-unverified, merge allowed" marking or a key is provisioned.
5 PROCESS stale head and test count Withdrawn, see the note above. The reviewer's 8c320f5 run (3 timeouts in files this PR does not change, 13/13 alone) is the baseline.

Round 10 head 469f5db (run 2026-10-17, local): npm run lint clean (1094 files), npm run typecheck clean, root vitest with VITEST_MAX_WORKERS=4: Test Files 2 failed | 326 passed (328), Tests 2 failed | 3012 passed | 7 skipped (3021). The 2 failures are 5 s / 60 s timeouts under load in convex/nodeslideUploadExtraction.test.ts and NodeBookWorkspacePanel.test.tsx, files this PR does not change. Re-run with --testTimeout=180000 together with nodeslideProvider.requestShape.test.ts and both campaign-budget files, 75 of 76 pass; the one failure is NodeBookWorkspacePanel timing out again inside the group, and it passes 5/5 alone in 8.7 s. No provider call was made.

Round 11 review (judge round 8): what changed

Judged head 469f5db; fixes are in 5fccd58. The earlier implementer claim (head 15fb4f8, NODESLIDE_KIMI_K3.cost moved to 0.7/15, pi-ai 0.80.6 -> 1.1.0 in this PR, "322 passed (322)") is withdrawn and does not describe this head: the head keeps main's 3/15, 0.7686/2.4156 and 5/30 under D3, and the pi-ai bump is #204, this PR's base.

# Finding Disposition
1 MAJOR, open, needs Homen: the executor is the paid google/gemini-3.8-flash (convex/lib/nodeslideRoutingPolicy.ts:24); D2/D2a send a role moved under A.0 rule 1 to a non-expiring :free target Not changed; the decision is Homen's. Non-expiring :free rows with structured outputs exist on the public list fetched 2026-10-17T10:58Z (nvidia/nemotron-3.5-super-vl:free, nvidia/nemotron-3-super-120b-a12b:free), so capability is not the obstacle. The obstacle is the accounting rule: on main and here every zero-priced :free route is a dynamicRoute (shared/nodeslideRunBudget.ts:706-724) and the ledger refuses it before dispatch with pricing_unknown (convex/lib/nodeslideRunBudget.ts:236-243). Swapping the id would stop the split from running; relabelling the price or bypassing admission would weaken the gate. The PR does not conform to D2 until Homen picks one of the three options under Open for Homen. Still blocks merge.
2 MINOR (Codex: MAJOR) node-gym's SIGINT/SIGTERM handler called process.exit(1) and the exit handler released campaign.lock while the executor child could still be running; runProcess never killed or waited for it. On POSIX a SIGTERM sent only to the parent (kill <pid>, a supervisor, docker stop on PID 1) leaves the executor writing its attempt workspace, a second launch takes the lock, charges the live workspace as an orphan, sets it aside and may re-issue the path the survivor still writes (the r7 evidence-mixing case; spend stays bounded because the orphan is charged its full reservation) Fixed. createNodeGymChildGuard (scripts/lib/node-gym-runner-core.mjs) tracks the one running executor; runProcess registers it. The signal handler in scripts/run-node-gym.mjs now calls stop() (signal the child, resolve only on its close, escalate to SIGKILL after 10 s) and only then process.exit(1), so exit releases the lock after the child is dead. The exit handler also SIGKILLs a tracked child synchronously for any other exit path. Tests in scripts/tests/node-gym-campaign-budget.test.mjs run real child processes: stop() resolves only once the child is dead, a no-op with no child, and a child that ignores SIGTERM is killed by the escalation. Knockout: with stop() not acting on the tracked child both fail. Limits: verified on Windows, where child.kill() is already forceful, so the SIGTERM-ignoring case exercises the timer path but not POSIX signal semantics; the signal-handler wiring itself is not exercised end to end (a full campaign launch needs a real plan). Deck-gym spawns no executor child, so it is unchanged.
3 NIT (Codex: MINOR) releaseCampaignLock reads the token and unlinks the path in two steps; if an operator deletes a live holder's lock and another launch acquires it inside that window, the first holder deletes the new lock (Codex reproduced it with a deterministic interleaving) Narrowed, not closed; not counted as blocking. A pathname lock has no atomic compare-and-unlink. Round 10 closed replacement before the token read; replacement between the read and the unlink needs a manual deletion (which the refusal message warns against) plus a second acquire inside a window well under a millisecond. The doc comment on acquireDeckGymCampaignLock now says so. The Round 10 row 3 wording "Fixed" is corrected above.
4 PROCESS implementer claim does not match the head Withdrawn, see the note above.
5 DISCLOSED MERGE BLOCKER paid executor receipt not run Unchanged: nodeslideModelProbe:runExecutorSplit on a dev deployment stamped with the tested commit, then the nightly-production-probe.yml workflow_dispatch step; estimated 0.504014 USD against the 0.55 USD cap. No working OpenRouter key exists (D2). Draft, needs-live-eval.
6 CHECK CAVEAT Not attributed to this PR, see below.

Round 11 head 5fccd58 (run 2026-10-17, local): npm run lint clean (1094 files); VITEST_MAX_WORKERS=4 npm run check exited 1 at the test step with 3 timeouts under load (5 s convex/nodeslideModelPricing.test.ts BYOK-client case, convex/nodeslideUploadExtraction.test.ts, 60 s NodeBookWorkspacePanel.test.tsx), Test Files 3 failed | 325 passed (328), Tests 3 failed | 3013 passed | 7 skipped; none of those files is changed by this PR. Re-run alone: nodeslideModelPricing + nodeslideUploadExtraction 52/52 passed, NodeBookWorkspacePanel + nodeslideProvider.requestShape 29/29 passed, scripts/tests/node-gym-campaign-budget.test.mjs 26/26 passed; npm run build passed (typecheck ran clean in the check before tests). The GitHub CI job on this head is the full-suite result of record. No provider call was made.

Round 12 (2026-10-31): free-lane recheck, head 2d38ab7

  • OpenRouter public list re-read 2026-10-31 (no key): nvidia/nemotron-3-super-120b-a12b:free and poolside/laguna-* are no longer listed (SPEC "OpenRouter recheck 2026-10-31"). In this repo only nemotron-3-super is a catalog row. It gets the same A.0.1 treatment as openai/gpt-oss-20b:free: the row stays for persisted requests and the node-gym/BYOK known-id paths (productionEnabled was already false), it is no longer a free-router candidate (shared/nodeslide.ts), and the verifier mirror drops it (scripts/lib/model-fleet-receipt-core.mjs; the existing mirror-equality test passes unchanged). No assertion was loosened. The poolside/laguna-*:free strings in the SPEC 1.2 verified-free set are known ids, not rows; they stay known (D1) and nothing routes to them. The NodeSlide executor is the paid google/gemini-3.8-flash and does not use a free lane, so the NodeBenchAI free-model re-pick (recursive/flint-v1.0:free) does not change any NodeSlide site. Live-unverified marking for OpenRouter roles (D2) is unchanged.
  • New test removes nemotron-3-super:free from the free-router candidates but keeps the row (nodeslideProvider.requestShape.test.ts): fails against main's shared/nodeslide.ts, passes here. Re-proof of the whole request-shape file against main's shared/nodeslide.ts + convex/lib/nodeslideProvider.ts: 14 failed | 10 passed (24) before the new test; 25/25 after.
  • Also committed: the pricing test's testTimeout (30 s, only the timeout moves; the cold pi-ai import timed out at 5 s under load), and a dated note on the google/gemini-3.8-flash ledger row: Google doubles the intro price on 2027-01-01 (SPEC 1.3), after which the max_price ceiling admits 0 endpoints and the row must be re-read and raised together with its pricing test and the 0.55 USD probe cap.
  • Check, head 2d38ab7 (local, Windows): npm run lint clean (1094 files); npm run typecheck clean; npm run test:nodeslide-gates (vitest run scripts/tests) 43 files, 600 passed | 5 skipped. Root vitest as part of npm run check under load: Test Files 9 failed | 319 passed (328), Tests 10 failed | 3006 passed | 7 skipped, all 5 s / 30 s timeouts in files this PR does not touch (PDF extraction, node-gym lock test, CLI installer, trust-surface census, immutable-upgrade consumer, reference-authority, NodeBook panel, two AiInspector tests). Rerun with --testTimeout=120000 --maxWorkers=2, 6 of the 9 files pass; the remaining three (reference-authority, NodeBookWorkspacePanel, AiInspector.openUiWiring) each pass when run alone. CI is the full-run evidence for this head.
  • No provider call was made. The paid executor receipt (0.504014 USD estimated, 0.55 USD cap) is still the blocker and still needs a keyed machine.

Round 13 review (Codex round 1 on 2d38ab7): what changed, head a535920

# Finding Disposition
1 P1, needs Homen: the executor is the paid google/gemini-3.8-flash; D2/D2a say :free Not changed. Unchanged under Open for Homen. Verified again: shared/nodeslideRunBudget.ts marks every zero-priced :free row dynamicRoute, so a :free swap is refused with pricing_unknown and the split never runs.
2 P1: executor receipt (nodeslideModelProbe:runExecutorSplit) not run Not changed, still the recorded blocker. Needs a keyed machine (none exists per D2); estimated 0.504014 USD against the 0.55 USD cap. PR stays draft with needs-live-eval.
3 P2: A.0.6 pricing-agreement conflict missing from Open for Homen though the test comment says it is listed Fixed in the body. New second item under Open for Homen (A.2.8 freeze of the auto-router vs the A.0.6 equality, kimi-k3 $0.065 vs $0.315, advisory path only, three options). Status line updated. The code comment is now accurate as written.
4 P3: request-shape guard checked only reasoning.enabled and effort, so reasoning: {effort, max_tokens} passed Fixed. expectNoForbiddenKeys asserts Object.keys(reasoning) equals ['effort']; guard self-test gains a reasoning token budget. Knockout: removing the assertion fails that case.
5 P3: since check used Date.parse, which normalizes 2026-02-30 Fixed. scripts/lib/node-gym-config-core.mjs requires new Date(since + 'T00:00:00Z').toISOString().slice(0, 10) === since. Gate test gains 2026-02-30, 2027-02-29, 2026-13-01 rejections and a 2028-02-29 acceptance. Knockout: the two calendar cases fail against the old check.
6 P3: empty "Round 10" heading; catalog table row omits the nemotron change Fixed. Catalog row (shared/nodeslide.ts:24) now records the round-12 nemotron-3-super change and the model-fleet-receipt-core.mjs mirror. The Round 10 section was not empty in the body as fetched (it holds its findings table); it sat out of order between Rounds 7 and 8 and is now moved between Rounds 9 and 11.

Not in this round's defect list: Codex's P2 that recursive/flint-v1.0:free is missing from shared/nodeslide.ts known ids (it resolves to openrouter/free). No NodeSlide site uses it; flagged for a decision rather than changed here.

Check, head a535920 (local, Windows, no provider call): npm run lint clean (1094 files); npm run typecheck clean; npm run test:nodeslide-gates 43 files, 604 passed | 5 skipped; request-shape + gate + pricing tests 88/88; root vitest run --testTimeout=120000 with VITEST_MAX_WORKERS=4: 328 files, 3022 passed | 7 skipped (one earlier run had a single NodeBook panel timeout under load, passes on rerun).

Round 14 review (Codex round 2 on a535920): what changed, head bdfd3d8

# Finding Disposition
1 P1 restoreDeckGymSpend read readdir(runDir).catch(() => []), so a prior run directory with artifacts, no budget-charges.json and an unlistable directory (EACCES, EBUSY, EPERM, EMFILE) restored 0 spend (replayed: {spent: 0}) Fixed. Every readdir error except ENOENT is rethrown, as the function's doc comment already said. New test mocks readdir to EACCES for one run directory and asserts the rejection, that nothing was written, and that the directory counts as one reservation once it lists again. Fails against the old line.
2 P1/P2 the row-default effort was applied to every catalog row. Against main through pi-ai 1.1.0: openai/gpt-5.6-sol and gpt-5.6-terra went from reasoning.effort: none to high (plus summary: auto, include: reasoning.encrypted_content); frozen google/gemini-3.1-pro-preview and google/gemini-3.5-flash from no thinkingConfig to thinkingLevel: HIGH. The earlier body said main used the vendor default (medium); main sent none. Fixed. llmClient.ts sets an effort only for the four rows this refresh adds (anthropic/claude-sonnet-5.5, anthropic/claude-opus-5.5, openai/gpt-6.1-sol, google/gemini-3.8-flash), found from the wire id so every spelling still resolves. New wire test callByModel leaves the requests of rows this refresh does not add byte-identical to main drives gpt-5.6-sol, gpt-5.6-terra, gemini-3.1-pro-preview and gemini-3.5-flash through the real client with a fake fetch and compares URL and body with main's pi.complete(model, ctx, {maxOutputTokens}) request (toEqual and string equality). The round-3 assertion that moonshotai/kimi-k3 gets effort: high is replaced, old expectation kept in a comment: kimi-k3 is not a new row. Fails against the old client.
3 P2 recursive/flint-v1.0:free (verified free id, 2026-10-31 recheck) was not in NODESLIDE_VERIFIED_FREE_MODEL_IDS, so callByModel posted it as openrouter/free; main threw Fixed, no longer deferred. The id joins the verified free set, so nodeSlideAgentModel and the MCP call() refuse it ("known NodeSlide id ... not rerouted") before any request. New wire test asserts the refusal and that fetch was never called.
4 P2 the runner accepted a --matrix with a repeated runId; two workers on one run directory read-modify-write one budget-charges.json and a charge is lost (Codex replay: $1.20 spent, $0.60 durable, $2.10 actual against a $2 cap) Fixed. assertUniqueDeckGymRunIds (scripts/lib/deck-gym-campaign.mjs) runs in scripts/run-deck-gym.mjs right after the matrix schema check and before any dispatch; it rejects a repeated id, ids that differ only in case (one directory on a case-insensitive filesystem) and a run without a string runId. Tests cover each case and assert the committed v1 matrix (72 runs) passes.
5 PROCESS the claim named 2d38ab7 and 600 passed, but the head was a535920 Withdrawn. The numbers below are for this head.

Not in this round's defect list, still open at that head: Codex's P1 that the executor acceptance cannot tell a provider-echoed model name from the requested one (convex/lib/nodeslideExecutorSplitProbe.ts; fixed in round 15 below), and its P2 that the pricing agreement test asserts disagreement (still under Open for Homen).

Check, head bdfd3d8 (local, Windows, no provider call): npm run lint clean; npm run typecheck clean; npm run test:nodeslide-gates 43 files, 609 passed | 5 skipped; mcp llmClient.test.ts and llmClient.wire.test.ts pass; root npm run test -- --maxWorkers=4 exit 0; npm run build exit 0. Two earlier full-suite runs under default parallelism each had one load timeout in a file this PR does not touch (nodeslidePdfExtraction.test.ts, then AiInspector.openUiWiring.test.tsx); both pass alone and the --maxWorkers=4 run is green.

Round 15 review (Codex round 3 on bdfd3d8): what changed, head a405de9

# Finding Disposition
1 P1 the executor receipt accepts a model name the provider never sent: completionResult returns responseModel ?? model, and pi-ai 1.1.0 sets result.model = model.id (the requested id), so telemetry.actualModel equals the requested id when the response names no model, and the probe copied it into span.responseModel and row.echoedModel (replayed: callNodeSlideFreeJson('google/gemini-3.8-flash') over an SSE with no model field gave actualModel === 'google/gemini-3.8-flash'; the full probe plus the real ledger returned [] from the receipt check) Fixed at the source, no check touched. pi-ai also keeps responseModel only when the chunk's model differs from the requested id, so an exact echo cannot be told from no echo there; reading result.responseModel ?? null alone would have made a faithful google/gemini-3.8-flash echo fail the receipt forever. The provider call therefore reads the raw chunk through pi-ai's onProviderStreamEvent and carries it as NodeSlideCompletionResult.echoedModel / NodeSlideProviderTelemetry.echoedModel, separate from the effective model; absent when the provider sent none. The probe's span.responseModel and row.echoedModel come from telemetry.echoedModel and are null when absent. executorSplitReceiptFailures already rejects null and is unchanged; actualModel and isVerifiedNodeSlideRouteAttribution are unchanged. Tests: no-model SSE leaves echoedModel absent while actualModel still reads as the requested id (the defect, pinned); an exact echo is recorded; a different model is recorded; a probe whose executor response carried no model string yields null in span and row and the receipt fails with executor responseModel is null, executor row echoedModel is null, echoedModels does not include the executor. The two echo-recording tests fail against the old provider.
2 P2 the deck-gym run-id guard compares lowercased strings, but every run directory is path.join(runsDir, runId): ['same','group/../same','../../escape'] passed, the first two resolve to one directory and the third leaves runsDir (Codex: 1,200,000 micro-USD spent in memory, 600,000 restored from disk) Fixed. assertUniqueDeckGymRunIds requires each runId to be one safe path component (/^[A-Za-z0-9_-][A-Za-z0-9._-]*$/, no trailing dot, so no /, backslash, :, NUL, ., .., and no Windows trailing-dot alias); uniqueness is still checked case-insensitively on top. New test: the three-id replay is refused, each separator/alias form is refused, and accepted ids resolve to a direct child of runsDir. The committed 72-run v1 matrix still passes.
3 OPEN, needs Homen: the executor is the paid google/gemini-3.8-flash, D2/D2a say :free Not changed, no code touched. Unchanged under Open for Homen (three choices: paid-executor exception, separate accounting PR, retire the split). Blocks merge.
4 OPEN, needs Homen: AUTO_ROUTER_DIFFERS_FROM_LEDGER records three disagreements (kimi-k3, glm-5.2, gpt-5.6-sol) instead of the A.0.6 equality; kimi-k3 at 100k in / 1k out is $0.065 vs $0.315 Not changed, no code touched. The frozen auto-router and the D3 ledger prices are not edited. Unchanged under Open for Homen (second item).
5 P3 body: (a) stale test proof, (b) Status and Open-for-Homen omit the echoed-model defect, (c) the claim named 2d38ab7, head was bdfd3d8 Fixed. (a) "Test proof" states the current file (29 tests, 18 fail / 11 pass against main's source, 29/29 here) and keeps the round 1 and round 12 figures labelled as historical. (b) The defect is fixed in code (row 1), and Status now names it and the head. (c) Every figure in this section is for a405de9.

Check, head a405de9 (local, Windows, no provider call): npm run check (lint, typecheck, npm run test, build) exit 0 with 328 test files, 3032 passed | 7 skipped, and npm run test:nodeslide-gates 43 files, 611 passed | 5 skipped. An earlier full run of the same head exited 1 on two load timeouts in files this PR does not touch (convex/lib/nodeslidePdfExtraction.test.ts, AiInspector.openUiWiring.test.tsx); both pass alone (7 tests) and the repeat run is green. The paid executor receipt (0.504014 USD estimated, 0.55 USD cap; npx convex run nodeslideModelProbe:runExecutorSplit on a dev deployment stamped with the tested revision) was not run: no keyed machine, no provider call was made.

Noticed, not changed: NodeSlideProviderTelemetry.actualModel is documented as provider-returned only but is filled from result.model, which falls back to the requested id; production route attribution (isVerifiedNodeSlideRouteAttribution) reads it. Moving that qualifier to echoedModel is a behaviour change on a production gate and is not part of this PR.

Review round 6 (Codex round 6 on 0c7cc6d): what changed, head a2cfeb5

# Finding Disposition
1 P2 DIRECT_FORBIDDEN_KEYS names only snake_case top_p/top_k; Gemini's own keys are generationConfig.topP/topK, and the allowlist covers only thinkingConfig, so injecting topP=0.9/topK=5 into the real builder left all 49 wire tests green (a gate that cannot fail; the builder does not send them today) Fixed. topP and topK join DIRECT_FORBIDDEN_KEYS (the walk is recursive, so they are caught at any depth; generationConfig.temperature was already caught through FORBIDDEN_KEYS). The guard self-test now rejects generationConfig.topP, .topK and .temperature. Knockout: injecting topP/topK into the real Gemini body fails the wire test with body.generationConfig.topP is forbidden and ...topK is forbidden. No check weakened.
2 P1 rowEffortOption maps openai-responses but not openai-completions, the api pi-ai uses for OpenRouter routes, which reads reasoningEffort; call({provider:'openrouter', modelId:'openai/gpt-6.1-sol'}) and the Gemini 3.8 equivalent went out with no reasoning block Fixed at the source (mcp/src/lib/llmClient.ts, one case label; only the four rows this refresh adds get an effort, other rows are unchanged). Two request-body tests (one per row) assert reasoning: {effort: 'high'} on the OpenRouter wire; reverting the mapping fails both.
3 OPEN, needs Homen: executor is the paid google/gemini-3.8-flash, D2/D2a say :free (the ledger refuses every zero-priced :free route as dynamicRoute, pricing_unknown) Not changed, no code touched. Unchanged under Open for Homen (paid-executor exception, separate accounting PR, or retire the split). Blocks merge.
4 OPEN, needs Homen: AUTO_ROUTER_DIFFERS_FROM_LEDGER pins the frozen auto-router's pi-ai 1.1.0 prices for kimi-k3, glm-5.2, gpt-5.6-sol against the D3 ledger rates instead of A.0.6 equality (glm-5.2 at 1k in / 1k out: $0.007371 router vs $0.0031842 ledger; cost_cap_exceeded is enforceable) Not changed, no code touched. The frozen nodeslideAutoRoutingPolicy.ts and the D3 prices are not edited; closing it is an edit to a frozen site or reopening D3. Unchanged under Open for Homen. Blocks merge.
5 needs-live-eval: no paid executor receipt Not run (hard rule: no paid provider call). Command, estimate and cap unchanged: node scripts/write-convex-build-identity.mjs <testedCommit>, npx convex dev --once, npx convex run nodeslideModelProbe:runExecutorSplit; estimated 0.504014 USD (kimi-k3 planner 0.408756 + gemini-3.8-flash executor 0.095258), capped at 0.55 USD; needs a working OpenRouter key on a keyed dev deployment, and the same key for the nightly-production-probe.yml workflow_dispatch step. PR stays draft with needs-live-eval.
6 P3 stale claim and PR body: the claim named 2d38ab7; the heading of "Check output" pointed at a last paragraph that is for 8c320f5; no figures for 0c7cc6d Fixed. The heading now says the older runs are historical and the current head's run is in this section; the Status line and "Test proof" name a2cfeb5.

Check, head a2cfeb5 (local, Windows, no provider call): npm run lint clean; npm run typecheck clean; npm run test: root vitest 328 files, 3032 passed | 7 skipped, plus workspaces 11 + 5 + 7 + 76 passed; npm run build exit 0; npm run test:nodeslide-gates 43 files, 611 passed | 5 skipped; convex/lib/nodeslideProvider.requestShape.test.ts 29/29, and with shared/nodeslide.ts and convex/lib/nodeslideProvider.ts taken from origin/main it fails 18 and passes 11. The first full npm run check run of this head exited 1 on one load timeout in AiInspector.openUiWiring.test.tsx (a file this PR does not touch; it passes alone, 4 of 4, and the repeat full run is green). The paid executor receipt was not run; no provider call was made.

Review round 8 (Codex round 8 on a2cfeb5): what changed, head 2cf28da

# Finding Disposition
1 P1, needs Homen: executor is the paid google/gemini-3.8-flash; D2/D2a send a role moved under A.0.1 to a non-expiring :free target, which per the 2026-10-31 recheck is recursive/flint-v1.0:free (listed with no expiration on the public list, 2026-11-01 11:13Z) Not changed, no code touched; blocks merge. Swapping the id alone reproduces the round 7 defect: the ledger refuses every zero-priced :free route (dynamicRoute, pricing_unknown), so the split never dispatches and the workflow_dispatch gate (EXECUTOR_SPLIT == success) is red. That is an implementation obstacle, not an authorized exception. Homen chooses: (1) a paid-executor exception to D2 for this role, (2) a separate ledger-accounting PR so a :free route can be admitted under a conservative priced reservation plus a zero-price max_price ceiling, after which the executor moves to recursive/flint-v1.0:free, or (3) retire the split. Unchanged from "Open for Homen" above.
2 P1, needs Homen: A.0.6 equality across pricing sources not met; AUTO_ROUTER_DIFFERS_FROM_LEDGER (convex/nodeslideModelPricing.test.ts:171, :685-705) asserts the frozen auto-router's pi-ai 1.1.0 prices differ from the ledger on kimi-k3, gpt-5.6-sol, glm-5.2. The router estimate is enforced (cost_cap_exceeded rewrites the create request to deterministic): glm-5.2 at 1k in / 1k out is 7,371 microUSD on the router against 3,185 on the ledger, so a 5,000 microUSD cap refuses what the ledger admits Not changed, no code touched; blocks merge. Equality needs either an edit to the frozen nodeslideAutoRoutingPolicy.ts (A.2.8 freeze) or new ledger rates (reopens D3), neither of which this PR may do; the test keeps pinning the divergence so it cannot widen unnoticed, and is not presented as the equality. The nodeslideAutoRoutingPolicy.test.ts expected-value edit (2,204 -> 7,371 microUSD) stays: it cites the 2026-10-15 measurement of the installed pi-ai 1.1.0 catalog and keeps the old figures in a comment. Homen chooses among the three options under "Open for Homen" above.
3 P2 the explicit OpenRouter case for openai/gpt-6.1-sol / google/gemini-3.8-flash (mcp/src/lib/llmClient.wire.test.ts) read only body.model and body.reasoning; injecting temperature:0 for api openai-completions into call() left all 57 MCP tests green Fixed (test only; llmClient.ts is unchanged). directWireProblems gains an openrouter shape: the recursive forbidden-key walk (temperature, top_p, top_k, tool_choice, budget_tokens, logprobs, ...), reasoning limited to effort in low..max, and the last message not an assistant prefill. Both OpenRouter cases assert it; the guard self-test rejects temperature, top_p, top_k, a trailing assistant message, reasoning.max_tokens and reasoning.enabled:false on that shape. Knockout rerun: the reviewer's injection now fails both cases with body.temperature is forbidden; builder restored. No check weakened.
4 Blocker: merge gate open, the paid executor receipt has not been produced Unchanged. node scripts/write-convex-build-identity.mjs <testedCommit>, npx convex dev --once, npx convex run nodeslideModelProbe:runExecutorSplit; estimate 0.504014 USD, cap 0.55 USD; needs a working OpenRouter key. Draft, needs-live-eval. #204 merges first, then this PR retargets main.
5 P3 the implementer report was stale (named 2d38ab7 and 600 passed; head was a2cfeb5) and its frozen list said "workflow files (follow constants)" while nightly-production-probe.yml gains the runExecutorSplit capture step Fixed in the claim. Head is 2cf28da; the workflow edit is required by A.2.8 (allowedProbeFunctions and the dispatch step) and is disclosed in the runtime-role table row for nightly-production-probe.yml:101; it is not a frozen-site edit.

Check, head 2cf28da (local, Windows, no provider call): npm run lint clean (1094 files); npm run typecheck clean; root vitest 328 files, 3032 passed | 7 skipped (run with --maxWorkers=3); npm run build exit 0; npm run test:nodeslide-gates 43 files, 611 passed | 5 skipped; MCP workspace 6 files, 82 passed. Two full npm run test runs at default concurrency each failed one test in an untouched file under machine load (nodeslidePdfExtraction.test.ts / AiInspector.openUiWiring.test.tsx; both pass alone), and the unchanged head a2cfeb5 fails a different untouched test (packages/cli/src/installer.test.ts) the same way, so none relates to this change. The paid executor receipt was not run; no provider call was made.

Round 16 (2026-11-06, Homen executor decision + open judge findings): what changed, head 304816e

# Item Disposition
1 D2 decision for the executor (rounds 13 to 8, "needs Homen") Settled by Homen 2026-11-06 and implemented. NODESLIDE_ROUTING_EXECUTOR_MODEL = deepseek/deepseek-v4.1-flash-1017; the receipt-core mirror (scripts/lib/model-fleet-receipt-core.mjs EXECUTOR_SPLIT_EXECUTOR_MODEL) follows. New catalog row in shared/nodeslide.ts (productionEnabled: false: executor only, not offered in the picker, so the fleet probe, validators and capability ledger, which cover offered rows, are unchanged), a Model<> override in nodeslideProvider.ts (pi-ai 1.1.0's bundled catalog has only deepseek-v4.1-flash and :batch, not the dated id), and the ledger row above. No temperature is sent (supportsTemperature: false); reasoning: {effort: 'low'} as before.
2 Failing tests first Before the implementation, against 2cf28da's source: 6 failed / 119 passed across the routing-policy, request-shape, edit-verify, provider and probe-budget files (expected 'google/gemini-3.8-flash' to be 'deepseek/deepseek-v4.1-flash-1017'; expected 0.504014 to be close to 0.427208; the override missing from the provider). All pass after. Knockout: removing the deepseek override from NODESLIDE_OPENROUTER_MODEL_OVERRIDES fails 5 tests (pricing agreement, cache cap, both executor request-shape cases).
3 A.0.6 agreement + request shape for the new row Pricing test: the row equals the 2026-11-06 listing and carries that verifiedAt (NODESLIDE_EXECUTOR_PRICE_VERIFIED_AT) and URL; endpoint-admission observation {of: 50, admitted: 17, structured: 16} at ceiling 0.15 / 0.60; the override's cost equals the ledger row; the dispatcher's provider prices it at the ledger rate. Request shape: the executor request names exactly the dated id (not the alias, not 3.8), carries no forbidden key, reasoning: {effort: 'low'}, and through the budgeted dispatch policy sends response_format: json_schema with provider: {require_parameters: true, max_price: {prompt: 0.15, completion: 0.6}}.
4 Frozen auto-router and the new row The frozen nodeslideAutoRoutingPolicy.ts reads only pi-ai's catalog, so it refuses the dated id with pricing_unavailable rather than estimating it; the executor is reached only through the routed edit planner and the ledger, never through job-create auto-routing. Pinned as AUTO_ROUTER_CANNOT_PRICE beside the existing AUTO_ROUTER_DIFFERS_FROM_LEDGER pin (exact list equality, refusal code asserted). The auto-router file is not edited; the A.0.6 decision below is unchanged.
5 Judge finding: nodeslideModelPricing BYOK cold-import timeout (round 12 raised the file's testTimeout to 30 s) Fixed at the cause. The MCP BYOK client imports @earendil-works/pi-ai/compat lazily inside call(), and pi-ai's lazy API wrapper imports the chat-completions transport on first send, so the first BYOK case paid both cold imports inside its own test budget. The test file now imports both modules statically (collection has no per-test timeout; the client's dynamic import resolves from the module cache) and the 30 s vi.setConfig is removed, back to the 5 s default. Measured unloaded: the BYOK case 568 ms before, 52 ms after. mcp/src/lib/llmClient.ts is unchanged.
6 PR body accuracy Status, executor, marking, paid-gate command and estimate rewritten for this head; the resolved D2 "Open for Homen" item is removed (its history stays in the round tables).

Check, head 304816e (local, Windows, no provider call): npm run lint clean (1094 files); npm run typecheck exit 0; root vitest run --maxWorkers=4 328 files, 3034 passed | 7 skipped, 2 failed on load timeouts in files this change does not touch (convex/nodeslideUploadExtraction.test.ts 5 s, NodeBookWorkspacePanel.test.tsx 60 s), both pass alone (9/9); workspaces 11 + 5 + 7 + 82 passed; npm run test:nodeslide-gates 43 files, 611 passed | 5 skipped; npm run build exit 0. Key-prefix grep over the diff and every file written: 0 hits. The paid executor receipt was not run; no provider call was made.

Left for Homen: (1) add OPENROUTER_API_KEY so the executor receipt (0.427208 USD estimated, 0.55 USD cap) can be produced and needs-live-eval cleared; (2) the A.0.6 auto-router decision above (accept the pinned divergence, lift the A.2.8 freeze, or reopen D3); (3) the google/gemini-3.8-flash ledger row's 2027-01-01 price doubling (re-read and raise with its pricing test); (4) whether deepseek/deepseek-v4.1-flash-1017 should ever be offered as a planner (it is executor-only here).

Spec: model-defaults SPEC Part A §A.2 (NodeSlide)

🤖 Generated with Claude Code

Round 17 (Codex 2026-11-06 on 304816e): what changed, head bd9d10b

# Finding Disposition
1 [P1] A.0.6 pricing agreement unmet: the frozen auto-router (A.2.8) disagrees with the ledger on three rows (kimi-k3 100k/1k: $0.065 router vs $0.315 ledger) Open for Homen, unchanged from round 16: accept the pinned divergence, lift the freeze, or reopen D3. Blocks merge.
2 [P2] The MCP BYOK client costs OpenRouter at the ledger rate but sent no price ceiling, so a pricier endpoint could be billed while the cheaper figure was persisted (Codex replay: GLM billed $0.006806, 3,184 micro-USD persisted) Fixed in bd9d10b: mcp/src/lib/llmClient.ts sends provider.max_price at the same ledger rate, as the Convex dispatcher does, so the persisted cost is an upper bound on what is billed. New test in convex/nodeslideModelPricing.test.ts fails before the fix (provider undefined) and passes after. pi-ai never keeps OpenRouter's reported usage.cost (it always recomputes from the model row), so the ceiling is the fix that holds for every call.

Checks on bd9d10b: the pricing file 51/51, mcp llmClient, llmClient.wire, nodeslideTools 73/73, root and mcp typecheck exit 0, biome clean on both files. Key-prefix scan of the diff: 0 hits.

HomenShum and others added 2 commits October 14, 2026 12:02
Gemini 3.5 Flash was deprecated by Google on 2026-10-08 (auto-routed to 3.6) and
openai/gpt-oss-20b:free is unlisted on OpenRouter (2026-10-10). Move the routed
executor to google/gemini-3.8-flash, add Claude Sonnet 5.5 / Opus 5.5 and GPT-6.1
Sol rows (add-only; old literals stay valid for persisted rows), bump pi-ai to
1.1.0, refresh the price table from the OpenRouter catalog, and add the budget
controls the spec requires before any keyed campaign.

- catalog/validators/pricing/probe profiles/fleet receipt/capability ledger rows
- structuredOutputMode catalog flag replaces the gemini-3.5 literal at the json_object workaround
- NODESLIDE_KIMI_K3 cost agrees with the price table (agreement test)
- Claude rows pinned to OpenRouter chat-completions under pi-ai 1.1.0
- request-shape tests (fake transport) for every new/changed role
- nodeslideModelProbe:runExecutorSplit + executor-split-probe/v1 receipt validator
- deck-gym:run --max-total-cost-micro-usd; node-gym ledger-charged campaign accounting
- node-gym execution.disabled mechanism (600 selected / 120 skipped)

Spec: model-defaults SPEC Part A section A.2.8 (NodeSlide)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Pricing (A.0.6): the ledger is the one price of record. The provider and the auto-router
priced ledger-priced OpenRouter routes from the bundled pi-ai 1.1.0 catalog, which disagreed
on kimi-k3 and glm-5.2 (the auto-router under-estimated kimi at $0.065 against the ledger's
$0.085). Both now price from the ledger; the agreement test loads the provider and the
auto-router as sources and fails without the fix.

Campaign accounting (A.2.8): a run is charged its ledger row only once that row is finalized
(an open row keeps the reservation); --per-run-max-cost-micro-usd is removed, so a run always
reserves the backend cap; deck-gym spend is durable across invocations (reservation written
before dispatch, restored before scheduling, legacy run dirs charged one reservation);
deterministic and recovery executors reserve by route again.

Executor receipt (A.0.3): carries candidateIds, echoedModels, rows, testedCommit, constant
hash, ledger books (maxUsd/estimateUsd/spentUsd/requests/stoppedBy), dispatchPolicy and
startedAt/environment; counts the JSON-repair second call and rejects it; the validator
rejects a missing planner, wrong planner/executor identity, no spend, retries and fallback.

Also: request-shape guard covers tool_choice, tools, assistant prefill and accepted efforts;
nodeSlideAgentModel fails closed on unknown ids (free-looking ids resolve to the free router
row); capability cards with no evaluated runs report artifact_quality none, not medium.

Spec: model-defaults SPEC Part A section A.2.8 (NodeSlide)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@HomenShum HomenShum added the needs-live-eval Merge blocked until a paid/keyed eval receipt is produced (SPEC A.0.3) label Oct 14, 2026
@HomenShum
HomenShum marked this pull request as draft October 14, 2026 20:00
HomenShum and others added 3 commits October 15, 2026 05:18
Default effort (A.2.8 Breaking parameters): Opus 5.5 defaults to medium, so the catalog row now
carries defaultEffort and every defaulting boundary reads it through nodeSlideDefaultReasoningEffort
(provider, public edit/variation consent, public create validator, the inspector request builders).
An explicit caller effort is kept as given. The request-shape test no longer asserts 'high' for Opus.

Executor-split probe (A.0.3): the probe switches the provider's second completion off
(dispatchPolicy.maxRetries 0 turns off both the JSON-repair call and the schema-compatibility
retry) and the receipt records the policy enforced, not an observed count. Every dispatch is
recorded as it returns, so a failed planner that made requests no longer reports requests 0.
executorSplitReceiptFailures now requires row usage, cost and exactly one dispatch per span,
reconciles rows against spans and the ledger (spent >= rows, spent <= summed quotes), requires
requests === 2 and estimateUsd <= maxUsd. The three hand-built receipts from the review are rejected.

Pricing (A.0.6): the MCP BYOK client priced responses from the raw pi-ai catalog; it now uses the
ledger rate through the same nodeSlideLedgerPricedCost the provider uses and is a fifth source in
the agreement test. That function also caps the cached-read rate at the ledger input rate (glm-5.2
carried 0.162 against 0.05, which settled 100k cached tokens above their quote); cache-write
premiums are asserted to stay inside the quote's 2x input headroom.

Deck-gym budget durability: the per-run charge history is written through temp file + rename, and
restore reads every run directory in the runs directory, not only the selected runs.

nodeSlideAgentModel resolves a "-free" suffix to the free router row as well as ":free" (A.0.10).
The request-shape test file gets an explicit timeout for the cold pi-ai import.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…e-PR)

SPEC Part A section A.2.8 makes the pi-ai bump its own PR, gated by `npm run check` and a
`nightly-production-probe.yml` dispatch, so a failure in the post-deploy probe can be traced to the
SDK and not to a model change. pi-ai 1.1.0 brings major transitive bumps (@anthropic-ai/sdk 0.91 -> 0.129,
@google/genai 1 -> 2, openai 6 -> 7).

Two things the bump forces, nothing else:
- pi-ai 1.1.0 ships OpenRouter's Claude rows as `anthropic-messages` at https://openrouter.ai/api; this
  provider speaks chat-completions for every OpenRouter route, so the existing claude-sonnet-5 and
  claude-fable-5 routes would POST to /api/chat/completions (not an OpenRouter endpoint). The provider
  pins those rows to chat-completions on /api/v1; a fake-fetch test fails without it.
- The auto-router estimate reads the bundled pi-ai catalog, where z-ai/glm-5.2 is 0.171 / 7.2 under 1.1.0
  (it was 0.532 / 1.672 under 0.80.6). The cost-cap test moves to 7_371 micro-USD, old figures in a
  comment, one-micro-dollar boundary kept.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The pi-ai 0.80.6 -> 1.1.0 upgrade is now its own PR (SPEC A.2.8 Pre-PR). This branch keeps the
content it already had; the merge records the stack so that PR 203 diffs against the pre-PR branch.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
HomenShum and others added 2 commits October 15, 2026 05:37
…eview round 2)

The create dialog, the landing composer and the AI inspector pre-selected 'high' for every model and
kept it when the person switched to Opus 5.5, so an untouched picker sent 'high' for a row whose
default is 'medium' (A.2.8). nodeSlideEffortAfterModelChange moves an effort that is still the
previous row's default to the new row's default and keeps an effort the person chose; the create
dialog's initial and restored-draft effort also read the row default.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@HomenShum
HomenShum changed the base branch from main to claude/pi-ai-1-1-0-nodeslide October 15, 2026 12:47
HomenShum and others added 3 commits October 15, 2026 11:38
…effort in MCP and inspector (NodeSlide review round 3)

deck-gym: readDeckGymRunCharges treated a charges file it could not read (non-ENOENT read error,
bad JSON, schema mismatch) as ONE reservation, so a two-attempt history (2,000,000 micro-USD)
restored as 1,000,000 and a 2,000,000 cap admitted one more paid run; recordDeckGymReservation on
the same file then overwrote the lost history. It now throws, so restore stops the campaign and
nothing is appended over the unknown history. The test that locked in the fallback now expects a
refusal for each unreadable shape and for the record paths.

effort: the local MCP client sent no effort, so pi-ai 1.1.0 used 'high' for Opus 5.5; it now names
the NodeSlide row default. The inspector initial state and its restore fallback were a hard-coded
'high'; both read the row default of the model in force (nodeSlideRestoredReasoningEffort).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…s, explicit effort choice (NodeSlide review round 4)

mcp llmClient: callByModel inferred the direct Anthropic transport for anthropic/claude-sonnet-5.5
and anthropic/claude-opus-5.5, then stripped the prefix to the dotted slug, which pi-ai 1.1.0's
anthropic registry lacks, so both threw before any request. canonicalizeModelId now reads an explicit
table (SPEC 1.2 anthropic column, A.0.5); inferProvider is unchanged. New llmClient.wire.test.ts drives
callByModel with a fake fetch and asserts the URL, the wire id and the row default effort.

pricing: each ledger row is also the OpenRouter max_price ceiling. The refreshed kimi-k3 (0.7/15),
glm-5.2 (0.05/7) and gpt-5.6-sol (2/10) admitted 3 of 25, 0-2 of 33 and 1 of 7 endpoints on
2026-10-15 against 21, 6 and 6 at main's prices. The three rows (and NODESLIDE_KIMI_K3.cost, and the
tests that transcribe them) are back on main's values. The admitted-endpoint observation for all 12
metered routes is recorded in nodeslideModelPricing.test.ts with a floor of 3 admitted / 2 structured.
Gate-1 executor estimate becomes 0.504014 USD (was 0.241235), so the deployment needs
NODESLIDE_PROBE_BUDGET_USD raised; the default is not.

effort: nodeSlideEffortAfterModelChange guessed "untouched" from equality with the previous row's
default and overwrote a chosen effort. The three pickers now hold the person's choice (null until
touched) and show nodeSlideEffortForModel(model, choice). Landing and ProjectDialog render tests.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ng of a Claude 5.5 row; wire test checks the full request shape (NodeSlide review round 5)

llmClient.call looked the row default effort up from the caller's spelling, so
anthropic/claude-opus-5.5 got medium while the same wire request spelled
claude-opus-5-5 (or anthropic/claude-opus-5-5) fell to pi-ai's high. The lookup now
starts from the wire id the explicit DIRECT_ANTHROPIC_WIRE_ID table resolved, so every
spelling of one row sends one wire id and one default effort.

llmClient.wire.test.ts drives callByModel with a fake fetch for all spellings and asserts
the SPEC A.0.6 shape (no temperature/top_p/top_k/tool_choice/budget_tokens anywhere,
adaptive thinking, no assistant prefill, effort carried by the trailing effort-only
message); its checker has its own rejection self-test. First-call timeout raised to 30 s
(cold import of the pi-ai catalog timed out at 5 s).

llmClient.test.ts: the "not a NodeSlide row" case used claude-opus-5-5, which since the
round 4 wire-id table is the Opus 5.5 row itself; it now uses claude-haiku-5-5 (not in the
catalog), old id kept in a comment. No assertion loosened.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@HomenShum
HomenShum force-pushed the claude/pi-ai-1-1-0-nodeslide branch from 5bdfac2 to ef2e0d0 Compare October 16, 2026 11:10
HomenShum and others added 15 commits October 16, 2026 04:11
…-nodeslide

# Conflicts:
#	convex/lib/nodeslideAutoRoutingPolicy.test.ts
#	convex/lib/nodeslideProvider.ts
…rice provenance, MCP effort and unknown ids (NodeSlide review round 6)

- Executor -> nvidia/nemotron-3.5-super-vl:free (SPEC D2, newest :free with structured outputs on the
  public OpenRouter list, fetched 2026-10-16; live-unverified, no key). Catalog row, validator literal,
  probe profile, pi-ai model, ledger dynamicRoute (still denied) and tests follow the id.
- Executor-probe default cap 0.25 -> 0.55 USD (SPEC D3); new real-ledger test checks the estimate
  against the committed cap (planner 0.408756, with a priced executor 0.504014).
- Held kimi-k3 / glm-5.2 / gpt-5.6-sol rows carry their endpoint-check source and date
  (2026-10-15T23:08Z), not the 2026-10-14 listing's.
- MCP client: row default effort reaches OpenAI Responses (reasoningEffort) and Gemini
  (thinking.level); OpenRouter ids are not prefix-stripped; unknown ids follow A.0.10.
  Wire tests for GPT, Gemini, free-looking and unknown ids.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ored, catalog ids never rerouted (NodeSlide review round 7)

- Executor -> google/gemini-3.8-flash again (SPEC A.2.8 target). The run-budget ledger denies every
  zero-priced :free route, so the round 6 :free executor was refused before dispatch on every edit
  and runExecutorSplit could never produce an accepted receipt (nightly gate always red). Removed the
  nvidia/nemotron-3.5-super-vl:free catalog row, validator literal, probe profile, pi-ai model and
  ledger dynamicRoute. The ledger rule is untouched. The paid receipt stays a blocker (needs-live-eval).
- nodeslideAutoRoutingPolicy.ts and its test restored to the base branch (frozen site, A.2.8). The
  agreement test now pins where the frozen router differs from the ledger instead of asserting equality.
- proposeEdit routed-attribution test restored to drive the real ledger, no price stand-in; the budget
  test and the executor-split test drop their stand-ins too.
- MCP client: a free-looking id resolves to OpenRouter in inferProvider (one decision shared by the key
  check and the call); a NodeSlide catalog id pi-ai cannot serve throws instead of becoming
  openrouter/free (SPEC D1). Wire tests: gemma/nemotron catalog ids sent as themselves; the key demanded
  is the key used.
- nodeslideEditPlanner.test.ts back to the base value (no exact-id change); stale kimi-k3 pricingAsOf
  comment fixed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…rerouted to openrouter/free (NodeSlide review round 8)

- shared/nodeslide.ts carries the 15 SPEC 1.2 verified free ids. nodeSlideAgentModel throws for one
  the catalog does not serve; only an id in neither the catalog nor SPEC 1.2 that looks free still
  resolves to the openrouter/free row (A.0.10, D1).
- MCP callByModel throws before any request for a verified free id pi-ai has no registry row for
  (was POSTed as openrouter/free).
- Tests: MCP wire test (fails without the change) and resolver test for the replayed ids.
- The paid-executor D2 exception stays an open Homen decision and merge blocker. The paid executor
  receipt was not run; no provider calls were made.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…gn per runs directory (NodeSlide review round 9)

- mcp/src/lib/llmClient.ts: pi-ai 1.1.0 hard-codes top-level output_config.effort "high" for managed-effort
  Claude rows and appends the requested effort only as a trailing effort-only message, which the API applies
  from the next user turn; a single-turn request has none, so Opus 5.5 ran at high, not the row default
  medium. An onPayload hook now writes the row effort into the top-level field. The wire test asserts
  body.output_config.effort for every Sonnet 5.5 and Opus 5.5 spelling (fails on the 3 Opus cases without
  the hook).
- scripts/run-deck-gym.mjs: two invocations on one runs directory each restored the same balance and
  overwrote each other's charge history (cap 1,000,000, 1,600,000 finalized, 800,000 persisted). The runner
  now takes an O_EXCL campaign.lock before restoring spend and holds it to exit; a second invocation is
  refused. New test races two invocations: one admitted, one refused.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…elease only unlinks its own file (NodeSlide review round 10)

Node-gym: a live attempt has no receipt yet, exactly like a dead one, and the
default campaign id is the same for every launch. A second launch therefore set
the first run's workspace aside, restored its reservation and re-issued the
attempt: replayed, 3,000,000 micro-USD dispatched against a 2,000,000 cap.
run-node-gym.mjs now takes the same O_EXCL campaign lock as deck-gym on the
campaign directory before any attempt directory is read, and holds it to exit.

Deck-gym: release closed the descriptor and unlinked the path unconditionally,
so a holder whose lock file had been deleted and re-taken by another invocation
removed that invocation's lock on exit. The lock now carries a random token and
release unlinks only a file that still carries it.

Tests: a real run-node-gym launch is refused while the campaign is held and
runs again once released; a deck-gym release does not delete a lock taken by
another invocation. Both fail with the fixes reverted.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ing the campaign lock; deck-gym lock release documented as narrowed (NodeSlide review round 11)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ed 2026-10-31), pricing-test timeout, 3.8 intro-price note (NodeSlide)

OpenRouter's public list (no key, 2026-10-31) no longer carries
nvidia/nemotron-3-super-120b-a12b:free (only the paid id remains). Same
treatment as openai/gpt-oss-20b:free on 2026-10-10: the catalog row stays for
persisted requests (productionEnabled stays false), it stops being a free-router
candidate, and the verifier mirror drops it so the probe no longer requests a
route that returns 404. No assertion changed.

Also: the pricing test's cold pi-ai import gets the same 30 s budget as its
sibling tests (only the timeout moves), and the gemini-3.8-flash ledger row
records Google's 2027-01-01 intro-price doubling as a dated follow-up.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…tes, row kept (NodeSlide)

Fails against main's shared/nodeslide.ts (row still a candidate), passes here.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…g.max_tokens in request-shape guard (NodeSlide review round 13)

- node-gym-config-core: Date.parse normalizes 2026-02-30 to 2026-03-02, so the "not a real date"
  check never fired. Require the exact UTC round-trip. Gate test gains impossible-date,
  non-leap-year, month-13 rejections and a real leap-day acceptance.
- requestShape.test: reasoning must carry only `effort` (OpenRouter encodes budget_tokens as
  reasoning.max_tokens, a 400 on Claude 5.5, SPEC 1.3). Guard self-test gains a
  reasoning.max_tokens rejection case.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…listed free ids stay known, deck-gym budget gate fails closed (NodeSlide review round 14)

- scripts/lib/deck-gym-campaign.mjs: restoreDeckGymSpend rethrows every readdir
  error except ENOENT. An earlier run directory that cannot be listed (EACCES,
  EBUSY, EPERM, EMFILE) is unknown spend and stops the campaign instead of
  restoring as 0 (replayed: {spent: 0} before). Test mocks readdir to EACCES.
- mcp/src/lib/llmClient.ts: the row-default effort is set only for the four rows
  this refresh adds (claude-sonnet-5.5, claude-opus-5.5, gpt-6.1-sol,
  gemini-3.8-flash). gpt-5.6-sol/terra, gemini-3.1-pro-preview, gemini-3.5-flash,
  kimi-k3 and the rest send the request main sent (SPEC A.0.4). New wire test
  compares the fetch body byte for byte with main's pi.complete call. The
  round-3 kimi-k3 effort assertion is replaced, with the old expectation kept in
  a comment.
- shared/nodeslide.ts: recursive/flint-v1.0:free joins the verified free ids, so
  a caller-supplied Flint id is refused, not rerouted to openrouter/free (D1).
- scripts/run-deck-gym.mjs + deck-gym-campaign.mjs: assertUniqueDeckGymRunIds
  rejects a matrix that repeats a run directory before dispatch, so two workers
  cannot read-modify-write one budget-charges.json.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… or null, deck-gym runIds must be one path component (NodeSlide review round 15)

- convex/lib/nodeslideProvider.ts: pi-ai 1.1.0 sets AssistantMessage.model to the
  requested id and keeps responseModel only when the chunk's model differs, so
  telemetry.actualModel read as an echo even when the response named no model
  (replayed: callNodeSlideFreeJson('google/gemini-3.8-flash') over an SSE with no
  model field gave actualModel === the requested id). The provider call now reads
  the raw chunk model through onProviderStreamEvent and carries it as
  NodeSlideCompletionResult.echoedModel / NodeSlideProviderTelemetry.echoedModel,
  separate from the effective model. Absent when the provider sent none.
  actualModel and the route-attribution qualifier are unchanged.
- convex/lib/nodeslideExecutorSplitProbe.ts: span.responseModel and row.echoedModel
  come from telemetry.echoedModel, null when absent. The acceptance rule
  (executorSplitReceiptFailures) already rejects null; no check was touched.
  Tests: no-model SSE leaves echoedModel undefined (requestShape), an exact echo is
  recorded though pi-ai drops it, a different model is recorded, and a probe whose
  executor response carried no model string fails the receipt (executor-split-probe).
- scripts/lib/deck-gym-campaign.mjs: assertUniqueDeckGymRunIds requires each runId
  to be one safe path component (it is path.join'ed onto runsDir), so
  'group/../same' and '../../escape' are refused; they passed the lowercase string
  comparison and resolved onto 'same' / outside runsDir. Tests cover both.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…T-6.1 and Gemini direct wire shapes (NodeSlide review round 5)

- convex/nodeslideModelPricing.test.ts: the two pricing-divergence comments said the frozen
  auto-router feeds only the advisory create-routing receipt. cost_cap_exceeded is in
  ENFORCEABLE_REFUSALS (nodeslideRoutingReceipt.ts) and nodeslideJobs.ts applies
  resolveNodeSlideEnforcedCreateRequest, which rewrites a refused create request to
  providerMode 'deterministic'. The pinned pi-ai-vs-ledger divergence can therefore change
  execution (glm-5.2 output 7.2 vs 2.4156). The ledger still reserves the worst case.
- mcp/src/lib/llmClient.wire.test.ts: the gpt-6.1-sol and gemini-3.8-flash direct cases checked
  only FORBIDDEN_KEYS and toMatchObject. They now run the whole body through directWireProblems
  (reasoning keys only effort+summary, no enabled/max_tokens, no assistant-prefill input; Gemini
  thinkingConfig only includeThoughts+thinkingLevel, no thinkingBudget/candidateCount, no
  model-turn prefill), with a guard self-test covering each forbidden shape.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…Gemini calls carry the row effort (NodeSlide review round 6)

Gemini's sampling keys are camelCase (generationConfig.topP/topK); the direct-wire guard
listed only the snake_case spellings, so injecting topP=0.9/topK=5 into the real body left
all 49 wire tests green. DIRECT_FORBIDDEN_KEYS now names topP and topK (the walk is
recursive; generationConfig.temperature was already covered by FORBIDDEN_KEYS), and the
guard self-test rejects each of the three. Knockout: injecting topP/topK into the real
Gemini body now fails the wire test.

rowEffortOption handled openai-responses but not openai-completions, which is the api
pi-ai uses for OpenRouter routes; that adapter reads reasoningEffort, so call({provider:
'openrouter', modelId: 'openai/gpt-6.1-sol' | 'google/gemini-3.8-flash'}) went out with no
reasoning block. Mapped, with a request-body test per row; reverting the mapping fails both.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… forbidden-key guard (NodeSlide review round 8)

The explicit OpenRouter case read only body.model and body.reasoning, so a regression that
added temperature, top_p, top_k or a trailing assistant turn to the chat-completions builder
passed all 57 MCP tests (Codex r8 mutation). directWireProblems gains an 'openrouter' shape
(recursive forbidden-key walk, reasoning limited to effort, last message not an assistant
prefill) and both rows now assert it; the guard self-test rejects each forbidden shape.
Knockout: injecting temperature:0 for api openai-completions into call() now fails both
OpenRouter cases ('body.temperature is forbidden'); builder restored.

Not changed, still open for Homen (PR body): the paid gemini-3.8-flash executor against
D2/D2a, and the A.0.6 pricing-agreement conflict with the frozen auto-router.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
HomenShum and others added 2 commits November 6, 2026 03:11
…-1017 (Homen 2026-11-06)

SPEC "Homen decisions", NodeSlide executor (2026-11-06): exception to D2 for this
role only; the exact dated OpenRouter id, not the deepseek-v4.1-flash alias.

- NODESLIDE_ROUTING_EXECUTOR_MODEL and the receipt-core mirror move to the new id.
- New catalog row (productionEnabled:false, executor only), a pi-ai Model<>
  override (pi-ai 1.1.0 has no row for the dated id) and a ledger row at
  $0.15 in / $0.60 out per M, which is also the OpenRouter max_price ceiling.
  Source: https://openrouter.ai/api/v1/models fetched 2026-11-06T10:39:31Z;
  ceiling admits 17 of 50 endpoints at every hour (16 structured_outputs).
- Probe estimate against the committed 0.55 USD cap: 0.427208 USD
  (was 0.504014 with gemini-3.8-flash); cap unchanged.
- Frozen auto-router cannot price the id (not in pi-ai's catalog): pinned as
  AUTO_ROUTER_CANNOT_PRICE next to the existing divergence pin.
- nodeslideModelPricing BYOK case: the cold pi-ai compat + transport imports
  move to collection (static imports); the 30 s testTimeout bump is removed.
  BYOK case 568 ms -> 52 ms unloaded.

Live-unverified until Homen adds OPENROUTER_API_KEY; no provider call made.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…(Codex 2026-11-06 P2)

The MCP BYOK client costs OpenRouter responses at the run-budget ledger rate
but sent no price ceiling, so OpenRouter could bill a pricier endpoint while
the cheaper ledger figure was persisted (Codex replay: GLM billed $0.006806,
3,184 micro-USD persisted). The client now sends provider.max_price at the
same ledger rate, as the Convex dispatcher already does, so the persisted
cost is an upper bound on what is billed. New test fails without the fix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-live-eval Merge blocked until a paid/keyed eval receipt is produced (SPEC A.0.3)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant