Repository navigation
Conversation
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
marked this pull request as draft
October 14, 2026 20:00
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>
…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>
…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
force-pushed
the
claude/pi-ai-1-1-0-nodeslide
branch
from
October 16, 2026 11:10
5bdfac2 to
ef2e0d0
Compare
…-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>
…-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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Status (head
bd9d10b): draft, labelneeds-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 modeldeepseek/deepseek-v4.1-flash-1017for the executor, an exception to D2 for NodeSlide only (SPEC "Homen decisions"). Round 16 (head304816e, 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 thedeepseek/deepseek-v4.1-flashalias). History: Google deprecatedgemini-3.5-flashon 2026-10-08, so A.0.1 moved the role; A.2.8's target wasgoogle/gemini-3.8-flash; a:freetarget (round 6) cannot run because the ledger refuses every zero-priced:freeroute (dynamicRoute,pricing_unknown). The new id is priced in the ledger, so the split dispatches.google/gemini-3.8-flashstays as an offered picker row.Marking: the executor is live-unverified until Homen adds
OPENROUTER_API_KEYtosit-flow/.env. No working OpenRouter key exists today, so the paid receipt has not been produced; theneeds-live-evallabel 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:
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 committedNODESLIDE_EXECUTOR_SPLIT_DEFAULT_BUDGET_USD= 0.55 USD (SPEC D3, unchanged); 0.25 USD still refuses the planner with 0 requests. Accepted iffrouting.reason === 'split_premium_planner_bulk_copy',routing.executorModel === 'deepseek/deepseek-v4.1-flash-1017', the executor span's provider-echoedresponseModelis that id with non-zero usage,executorOutcome === 'applied', no budget refusal andbuildIdentity.commitSha === testedCommit(executorSplitReceiptFailures). The post-deploy run is the same probe from thenightly-production-probe.ymlworkflow_dispatchstep and needs the same key on production. A failed production run reverts the executor by PR.Ledger row and
max_priceceiling 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, fromhttps://openrouter.ai/api/v1/modelsfetched 2026-11-06T10:39:31Z (created 2026-10-17, tools + response_format + structured_outputs + reasoning, noexpiration_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 OpenRoutermax_priceceiling, 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 withstructured_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 freezesconvex/lib/nodeslideAutoRoutingPolicy.ts, which pricesmoonshotai/kimi-k3,z-ai/glm-5.2andopenai/gpt-5.6-solat 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_exceededis inENFORCEABLE_REFUSALS(nodeslideRoutingReceipt.ts:185) andresolveNodeSlideEnforcedCreateRequest(:187-221, applied atnodeslideJobs.ts:251) rewrites a refused create request to providerModedeterministic, 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 barenpx convex runon dev and to the nightly production probe step.convex/nodeslideExecutorSplitProbeBudget.test.tsruns the realnodeslideBudgetsmutations 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 passesexecutorSplitReceiptFailures.No provider call was made by this PR's author.
Stacked on #204. The spec lands
@earendil-works/pi-ai0.80.6 -> 1.1.0 as its own pre-PR with its own gate (npm run checkplus anightly-production-probe.ymldispatch) 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 isclaude/pi-ai-1-1-0-nodeslide, so the diff here is the model refresh only. Round 6:maingained #205 (e0b35c9); #204 is rebased onto it (ef2e0d0) and this branch merges that, so both are 0 behindmain(#205 touchednodeslideEditVerifyAction.test.tsand CodeTours 01/02; no conflicts;tours:checkresolves all 32 steps). Merge #204 first, let its post-deploy probe pass, then this PR retargetsmain. (If #204 is squash- or rebase-merged, mergemaininto this branch; the only overlap is.map(priceFromLedger)beside the line #204 changes inopenrouterProviderWithOverrides.)Decision taken in round 4, settled by SPEC D3 (Homen 2026-10-16) (production availability)
shared/nodeslideRunBudget.tsis both the reservation quote and the OpenRoutermax_priceceiling (nodeslideBudgetedProvider.ts->nodeslideProvider.ts:874-875; asserted inconvex/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 freeGET /api/v1/models/{id}/endpoints(no paid call), endpoints at or below the ceiling on both rates, withstructured_outputsin brackets (require_parametersdemands it on a json_schema request):moonshotai/kimi-k3(production default)z-ai/glm-5.2(offered,productionEnabled:true; BYOK default)openai/gpt-5.6-solThe 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.2andgpt-5.6-solare back on main's prices and windows, as areNODESLIDE_KIMI_K3.cost(3 / 15, cacheRead 0.3) and the transcription inconvex/nodeslideModelPricing.test.ts. The refresh now changes no ceiling that main already routed: the four new rows andgpt-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 inconvex/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_pricecarrying 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:falseon glm-5.2: not needed once its ceiling routes. Settled, no longer open: SPEC D3 (Homen 2026-10-16) directs keeping main's prices forkimi-k3,glm-5.2andgpt-5.6-soland fixing thepricingAsOflabel 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.
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 editsnodeslideAutoRoutingPolicy.ts(3 lines of price sourcing plus one newpricing.sourceliteralnodeslide-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.nodeGymLedgerReceiptMicroUsdreturns a figure only for afinalizedrow; 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).--per-run-max-cost-micro-usdallowed 0 / below the backend capnodeGymRunReservationMicroUsdtakes no override, so a paid run always reserves the 1,000,000 backend cap (pinned tonormalizeNodeSlideRunBudget({})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.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.restoreDeckGymSpendseeds 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.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.)executorSplitReceiptFailuresnow 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.testedCommitin the receipt is the deployment's stamped commit; the caller's own commit is the independent check. A planner echo that differs frommoonshotai/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.needs-live-evalcreated and applied; PR converted to draft.tool_choice/ prefill / efforttool_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 injectingtoolChoice: 'required'into the provider now fails 5 tests.receiptForRunreturns a new schemanodeslide.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 returnsnodeslide.run-budget-ledger-receipt/v1.:freeandopenrouter/freeroutes 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.mediumwith 0 runsnone — no evaluated runsfor zero evaluations (it was a hard-coded floor); the four new cards are regenerated. Cards with evidence are unchanged.nodeSlideAgentModelfalls back to the paid Nebius routeopenrouter/freerow; 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).highwhen no effort was passeddefaultEffort; Opus 5.5 carriesmedium.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 usenodeSlideEffortAfterModelChange: 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 assertsmediumfor Opus 5.5 and that an explicithighis kept.maxRetrieswas an observed count; a failed planner reportedrequests: 0NodeSlideDispatchPolicy.maxRetries?: 0turns off both second completions (JSON repair and the schema-compatibility retry) and the probe passes it on every dispatch. The receipt'sdispatchPolicyis 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, socrossModelFallback: falseis also enforced, not merely observed.executorSplitReceiptFailuresaccepted missing or contradictory accountingcostUsd, anddispatches === 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 === 2and equal to the rows' dispatches. I ran the real validator on your three hand-built receipts (stripped rows withrequests 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.mcp/src/lib/llmClient.tsprices OpenRouter responses throughnodeSlideLedgerPricedCost, the function the Convex provider uses. It is source 5 of the agreement test (no date of its own; it takesNODESLIDE_MODEL_PRICING_VERIFIED_AT), which now drives the real client with a fakefetchat 1k in / 1k out: kimi-k3 $0.015700, glm-5.2 $0.007050. Fails without the change.nodeSlideLedgerPricedCostcapscacheReadat 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 isbytes x 2 attemptsplus overhead, i.e. at least 2x the tokens ever sent, so a 1.25x premium cannot settle above it. The agreement test assertscacheRead <= inputandcacheWrite <= 2 x inputfor 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.writeDeckGymRunChargeswrites throughwriteNodeGymFileAtomic(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.)--limitnarrowed what restore countedrestoreDeckGymSpend({ runsDir })reads every run directory in the runs directory, regardless of selection. Test: 2,000,000 spent, a later run selecting onlyrun-3under 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.-freesuffix threwnodeSlideAgentModelresolves-freeand:freesuffixes to the free router row;free-model,vendor/freedom(no suffix) still throw. The unguarded probe never sendsfoo-freeto a paid provider (test).vi.setConfig({ testTimeout: 30_000 })for that file (it paid 6,565 ms against 5 s under load). No assertion changed.configuration-validation.jsondigest drift in the working tree was pre-existing (main'sharness.jsonalready hashed tosha256:2f1a6c...); the refreshed digest is committed in15fb4f8, so the diff againstmainchanges that one line (configDigest).Round 3 review: what changed
Judged head was
6ddce9b. No rebase needed (0 behindmain, mergeable clean).budget-charges.jsonreadDeckGymRunChargesreturned 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), sorestoreDeckGymSpendstops before the budget exists, andrecordDeckGymReservation/recordDeckGymChargerefuse 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.max_priceceilings leave glm-5.2 unroutablehighon two pathsmcp/src/lib/llmClient.tspasses the NodeSlide row's default effort (pi-ai 1.1.0 would otherwise sendhighfor every managed-effort Claude row);mcp/src/lib/llmClient.test.tsfails without it. (b)AiInspectorinitial state and the restore fallback readnodeSlideRestoredReasoningEffort(model in force, saved effort): the saved effort when valid and supported, otherwise the row default; a saved Opus with no saved effort givesmedium. Unit test innodeslideProvider.requestShape.test.ts, plus a render test that a fresh Opus composer shows Medium.NODESLIDE_PROBE_BUDGET_USDcap; gate 2 is the same step against production.highto Opus showsmediumnodeSlideEffortAfterModelChange, 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.anthropic/claude-sonnet-5.5andanthropic/claude-opus-5.5threw in the local MCP BYOK path (planLocalByokEdit->callByModel):canonicalizeModelIdstripped the prefix to the dotted slug, which pi-ai 1.1.0's anthropic registry lacksmcp/src/lib/llmClient.tshas 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.2anthropiccolumn).inferProvideris untouched, so the provider choice and the key lookup inbyok.tsare as before. The row default effort reaches that call (the request carrieseffort: mediumfor Opus 5.5,highfor Sonnet 5.5). Newmcp/src/lib/llmClient.wire.test.tsdrives the realcallByModeland pi-ai with a fakefetch: URL isapi.anthropic.com, bodymodelis the wire id, the effort is in the body. With the old source both new ids throwCannot read properties of undefined (reading 'api')with 0 requests; the existing Sonnet 5 row still sendsclaude-sonnet-5.max_priceceiling; the refreshed rows left kimi-k3, glm-5.2 and gpt-5.6-sol on one to three providersglm-5.2 0 of 33statement 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).nodeSlideEffortAfterModelChangeoverwrote an effort the person chose when it equalled the previous row's default (Sonnet 5.5 explicithigh-> Opus 5.5 becamemedium; Opus 5.5 explicitmedium-> Sonnet 5.5 becamehigh)nulluntil the effort control is touched, or a saved draft/storage effort is restored) and showsnodeSlideEffortForModel(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).nodeSlideEffortAfterModelChangeandnodeSlideRestoredReasoningEffortare deleted (no caller left). Tests:NodeSlideLanding.effort.test.tsxandProjectDialog.effort.test.tsxdrive the real pickers through the replays above, plus the untouched and saved-draft cases;nodeSlideEffortForModelunit test innodeslideProvider.requestShape.test.ts; the inspector keepsAiInspector.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).needs-live-eval). Exact steps in Status; no provider call was made. The estimated cost changed (0.504014 USD, needsNODESLIDE_PROBE_BUDGET_USDraised on the deployment).advisory_v1create-routing receipt.scripts/nodeslide-taste-judge.mjsnever reads cost, usage, price or budget;completeTasteJudgeWithPiAireturns 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.nvidia/nemotron-3.5-super-vl:freefrom 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, sogetModelwould throw), a ledgerdynamicRouteentry, the receipt-core mirror and the tests follow the new id. The new consequence (ledger denies it) is in Status.sourceUrl = .../api/v1/models/{id}/endpointsandverifiedAt = 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. InnodeslideModelPricing.test.tsthe three are removed fromOPENROUTER_CATALOG_2026_10_14(which no longer claims they came from it) and have their ownHELD_AT_MAINS_CEILINGtable 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.origin/mainby #205main(ef2e0d0), this branch merges it (a fast-forward push; #204 was already pushed).npm run checkre-run, below.effortonly on the Anthropic path)llmClient.tsalso passesreasoningEffortforopenai-responsesmodels andthinking.levelforgoogle-generative-aimodels (effortis still passed for all, as before). New wire tests drive the real client with a fakefetch:openai/gpt-6.1-solposts to/v1/responseswithreasoning.effort: high,google/gemini-3.8-flashpoststhinkingConfig.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 changedgpt-5.6-sol/terrafromreasoning.effort: nonetohighand 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.openrouter/free(prefix stripped tofree) and threw an opaquereading 'api'on free-looking unknowns:free,-free,openrouter/free) resolve to the verifiedopenrouter/freeroute on OpenRouter; every other unknown throwsUnknown model ...before any request. Wire tests:openrouter/free,bogus/model:free,vendor-freeeach POST to OpenRouter withmodel: openrouter/free;bogus/model,gpt-nonexistent,claude-unknown-9throw with 0 requests.Round 7 review (judge round 4): what changed
Judged head was
8328210.google/gemma-4-26b-a4b-it:free,google/gemma-4-31b-it:free,nvidia/nemotron-3.5-super-vl:free) were POSTed to OpenRouter asopenrouter/free(D1)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 toopenrouter/free(A.0.10). Because a:freeid exists only on OpenRouter,inferProvidernow returnsopenrouterfor 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 assertmodelequals the id; they fail without the change.requireLocalKeys,byok.ts) and the resolver disagreed on the providerbyok.tsalready callsinferProvider;callByModelcalls the same function, so changing it in finding 1 changes both.vendor-freeand the gemma ids now demandOPENROUTER_API_KEY(notOPENAI_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.:freeexecutor is always refused by the ledger, so the split never runs in productiongoogle/gemini-3.8-flash(see Status). Removed with it: thenvidia/nemotron-3.5-super-vl:freecatalog row, validator literal, probe profile, pi-ai model registration, ledgerdynamicRouteentry 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).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.nodeslideAutoRoutingPolicy.tseditedpricing.sourceliteral 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.proposeEdittest priced the:freeexecutor as Gemini viavi.mocknodeslideRoutedProposeEdit.test.tsis 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 fromnodeslideExecutorSplitProbeBudget.test.tsandscripts/tests/executor-split-probe.test.mjs.nodeslideEditPlanner.test.tschanged an exact id with no provenancegoogle/gemini-3.5-flashis 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 theExecutor . Gemini 3.5 Flashlabel innodeslideRoutedProposeEdit.test.ts.pricingAsOfcomment onNODESLIDE_KIMI_K3NODESLIDE_HELD_PRICE_VERIFIED_AT.Why
Two defaults in NodeSlide stopped being safe to ship. Google deprecated
gemini-3.5-flashon 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 togoogle/gemini-3.8-flash, live-unverified), and OpenRouter no longer listsopenai/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 (
openroutercolumn):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)shared/nodeslide.ts:225,226moonshotai/kimi-k3default; evidence-gated. MCP/CLI copies now importNODESLIDE_DEFAULT_AGENT_MODEL(collapse, no id change)shared/nodeslide.ts:227productionEnabled:falseshared/nodeslide.ts:24(catalog)anthropic/claude-sonnet-5.5, +anthropic/claude-opus-5.5, +google/gemini-3.8-flash, +openai/gpt-6.1-sol; allsupportsTemperature:false.nodeSlideAgentModelnow fails closed on unknown ids. Round 12:nvidia/nemotron-3-super-120b-a12b:free(unlisted on OpenRouter 2026-10-31) losesfreeRouterCandidate, row kept for persisted requests and known-id paths, and thescripts/lib/model-fleet-receipt-core.mjsmirror drops it too; three candidates remain, includingopenrouter/freeshared/nodeslide.ts:53z-ai/glm-5.2offered row; BYOK UI default copies now import one constantNODESLIDE_BYOK_DEFAULT_MODELshared/nodeslide.ts:66,:79claude-sonnet-5/claude-fable-5active (floors 2027); 5.5 rows sit beside them; promoting them in the picker is a human/v2 choiceshared/nodeslide.ts:92google/gemini-3.5-flash->productionEnabled:false(row kept for persisted requests); newgoogle/gemini-3.8-flashrowshared/nodeslide.ts:105gemini-3.1-pro-preview, only Pro; preview exceptionshared/nodeslide.ts:118,:131gpt-5.6-sol/gpt-5.6-terraactive previous generation;gpt-6.1-solrow added beside; picker move is human/v2shared/nodeslide.ts:144,:159openrouter/free,gemma-4-26b-a4b-it:freelisted on OpenRoutershared/nodeslide.ts:201gpt-oss-20b:free->productionEnabled:false,freeRouterCandidateremoved; validator literal keptconvex/lib/nodeslideValidators.ts:715claude-sonnet-5.5,claude-opus-5.5,gemini-3.8-flash,gpt-6.1-sol)shared/nodeslideRunBudget.ts:560,584gpt-5.6-terrarefreshed; 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 restNODESLIDE_MODEL_PRICING_VERIFIED_AT= 2026-10-14T16:03Z; pairedconvex/nodeslideModelPricing.test.tsupdatedconvex/lib/nodeslideProvider.ts:19convex/lib/nodeslideProvider.ts:368convex/lib/nodeslideRoutingPolicy.ts:19google/gemini-3.8-flash(live-unverified; the paid receipt is the blocker in Status). Round 6's:freeexecutor was refused by the ledger and is revertedconvex/lib/nodeslideAutoRoutingPolicy.ts:235scripts/lib/model-fleet-receipt-core.mjs:1google/gemini-3.8-flash);gpt-oss-20b:freedropped from the free listscripts/nodeslide-taste-judge.mjs:17temperature:0at:248is deprecated on 3.6+. Re-pinning is a human decision with a provenance bumpmcp/src/lib/nodeslideTools.ts:15,packages/cli/src/cli.ts:56mcp/src/lib/llmClient.ts:99,115inferProviderstill picks the provider;canonicalizeModelIdnow reads an explicit table for the four cataloganthropic/...ids (A.0.5), so the 5.5 rows reach the direct Anthropic API asclaude-sonnet-5-5/claude-opus-5-5instead of throwing on the dotted string; round 5: the row default effort is looked up from the resolved wire id, soanthropic/claude-opus-5.5,anthropic/claude-opus-5-5andclaude-opus-5-5all 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.10src/lib/sessionByok.ts:61,NodeSlideConnectionsDialog.tsx:91src/lib/sessionImageGeneration.ts:3gpt-image-2image generation, frozen class.github/workflows/nodeslide-bench.yml:175.github/workflows/nightly-production-probe.yml:101runExecutorSplitcapture step (below)Executable (E) and runtime-adjacent (R) sites (13: migrate 5, freeze 7, defer 1)
convex/lib/nodeslideProvider.ts:27unknown(denied). Verify against the Nebius price list when the route is enabled (asserted in the agreement test)convex/lib/nodeslideProvider.ts:72NODESLIDE_KIMI_K3.coststays 3/15 (cacheRead 0.3; round 4 reverted the 0.7/15 move) and is now exported; the agreement test asserts it equalsnodeSlideModelPricing('moonshotai/kimi-k3')(same transport, samepricingAsOf)convex/lib/nodeslideProvider.ts:646structuredOutputMode, stated per rowconvex/lib/nodeslideProvider.ts:713supportsTemperature; new rows declare false (correct guard)convex/lib/nodeslideModelFleetProbe.ts:23scripts/a5-production-acceptance.ts:19tests/e2e/nodeslide-benchmark-producer.live.spec.ts:108scripts/build-model-capability-ledger.mjs:21mediumbenchmarks/deck-gym/v1/harness.json:8deck-gym:runcannot be the executor receipt); adding rows is a re-baseline (human, v2)benchmarks/deck-gym/v2/gym.json:283execution.disabledon thegpt-oss-20b:freerow + runner exclusion (below)benchmarks/artifact-atlas/v1/harness.json:8production-agent.json:116deck-gym:matrixstays the deterministic planpackage.json:119,mcp/package.json:20@earendil-works/pi-ai0.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 branchClass 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)
supportsTemperature:false, so notemperature/top_p/top_kis ever sent (a 400 on Claude 5.5 and GPT-6 and deprecated on Gemini 3.6+).reasoning.effort;reasoning:{enabled:false}is never sent for these rows. Default effort is explicit per row:higheverywhere except Opus 5.5, whose row carriesdefaultEffort: 'medium'(its vendor default; Opus 5 washigh). 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 sendhigh) read it; an explicit caller effort is kept.max_tokensper id: 2048 for the three adaptive-thinking rows (thinking counts toward it), 256 for Gemini 3.8 (also the executor).google/gemini-3.8-flash, a SPEC 1.3 id: its request is held to the full forbidden-key list (notemperature,top_p,top_k, legacy thinking keys, prefill,tool_choice).anthropic-messagesathttps://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.tsbuilds real requests through the repo's own provider code with a fakefetch(nothing leaves the process) and asserts the URL,modelequals the SPEC 1.2 id, none oftemperature/top_p/top_k/thinking/budget_tokens/thinking_budget/candidate_count/logprobs/prefill/tool_choice/toolsis 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, heada2cfeb5(the file and the source it tests are unchanged sincea405de9): the file has 29 tests; withshared/nodeslide.tsandconvex/lib/nodeslideProvider.tstaken fromorigin/mainit 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 onmain). Executor-receipt and deck-gym guard tests are separate files:scripts/tests/executor-split-probe.test.mjsandscripts/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: injectingtoolChoice: 'required'into the provider fails 5 tests.Gates and budget controls added
nodeslideModelProbe:runExecutorSplitruns one premium-planner (moonshotai/kimi-k3) edit turn throughplanNodeSlideEditRoutedand the reserve-before-dispatch provider, capped byNODESLIDE_PROBE_BUDGET_USD(default 0.55 USD, SPEC D3; planner + executor together). Receipt shape and acceptance rule: finding 5.capture-model-fleet-probe.mjsallows the function/schema pair andnightly-production-probe.ymlgains aworkflow_dispatchstep writingreceipt-<sha>.json.deck-gym:runis 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 querynodeslideBudgets.receiptForRun(finalized rows only), durable across invocations; a missing or open receipt keeps the full reservation.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.gpt-oss-20b:freekeeps its row (720 stays the identity) withexecution:{disabled:true,since,reason};validateNodeGymConfigaccepts only that shape; the runner partitions disabled runs before runtime filtering and subset selection;--include-disabledis the only override;--subset allselects 600 and reports 120skippedDisabled; 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)
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 checkstops at the vitest step, sobuildand the workspace tests were run separately, as listed.Knockouts (round 7): with the
llmClient.tschange reverted, 6 of the new wire tests fail (two gemma catalog ids sent asopenrouter/free;vendor-freeand the gemma ids demanding the wrong key; the old-key refusal test). WithnodeslideAutoRoutingPolicy.tsback 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 -bclean,nodeslideProvider.requestShape24/24,nodeslideProvider39/39 with the new resolver test, MCPllmClient.wire33/33. GitHub CI ona733479: 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 lintclean (1094 files),npm run typecheckclean (tsc -b+ workspaces),npm run test --workspaces11 + 5 + 7 + 54 passed,npm run buildpasses (2m 13s),mcp/src/lib/llmClient.wire.test.ts33/33,scripts/tests/deck-gym-campaign-budget.test.mjs18/18. Root vitest, run with--testTimeout=120000 --maxWorkers=2because 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 isscripts/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 withEBUSYonrmdir). 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
:freeids rerouted toopenrouter/free(D1): MCPcallByModel('nvidia/nemotron-3.5-content-safety:free'), andnodeSlideAgentModel('nvidia/nemotron-3.5-lightning:free')/('apodex/apodex-1.1-mini:free')shared/nodeslide.tscarries the 15 SPEC 1.2 verified free ids (isNodeSlideVerifiedFreeModelId);nodeSlideAgentModelthrows for one the catalog does not serve, andmcp/src/lib/llmClient.tsthrows 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 toopenrouter/free. Tests: the MCP wire test asserts no request is sent fornvidia/nemotron-3.5-content-safety:free(fails without the change); the resolver test asserts the two replayed ids throw.:freelowfor Opus 5.5 (CLIresolveGenerateEffort, MCPnodeslideTools.ts.default('low'))main(A.0.4: caller-facing defaults are untouched), andlowis 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 in8c320f5. The scope note is taken as given: the implementer's earlier claim naming15fb4f8is round 0 and stale; this branch is 0 behindmain(merge-basee0b35c9), every commit is authored by homen, frozen files have empty diffs.scripts/tests/nodeslide-reference-authority.test.mjstimeout (its own 30 s per-test limit, plusEBUSYonrmdir) is outside this PR (untouched here, passes in CI); recorded under Check output.:freeroute before dispatch, onmainas well). The earlier "none can meet D2 here" was too broad: a conservative priced reservation plus a separately enforced zero-pricemax_priceceiling 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.high, not the row defaultmedium: pi-ai 1.1.0 hard-codes top-leveloutput_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 nonemcp/src/lib/llmClient.tspasses pi-ai anonPayloadhook (withTopLevelEffort) that writes the row effort into the top-leveloutput_config.effortfor 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.tsnow assertsbody.output_config.effortequals the row effort (highfor the two Sonnet 5.5 spellings,mediumfor all three Opus 5.5 spellings), and its comment no longer claims the trailing message governs the reply. Knockout: withllmClient.tsback on the round 8 source, the 3 Opus 5.5 cases fail (top-levelhigh). The documented contract is the basis; the real API was not called.stoppedBy: null)acquireDeckGymCampaignLock(runsDir)inscripts/lib/deck-gym-campaign.mjscreates<runsDir>/campaign.lockwithO_EXCL(openSync(..., 'wx')) andscripts/run-deck-gym.mjstakes it beforerestoreDeckGymSpend, holding it to exit (released onexit;SIGINTandSIGTERMexit 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 inscripts/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.configDigestis committed, in15fb4f8), anddocs/codebase/INTEGRATIONS.mdis listed: itsnodeslideTools.tspointer moved:414->:417, whereregisterNodeSlideToolsnow sits.Re-verification of head
5fccd58(2026-10-29, local, no code change):npm run checkran 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 WindowsEBUSYin files this PR does not change (nodeslideModelPricingBYOK-client case 5 s,immutable-upgrade-consumer-core30 s,nodeslide-reference-authority15/30 s +EBUSY rmdir,AiInspector.openUiWiring,NodeBookWorkspacePanel60 s). The same five files re-run with--testTimeout=120000 --maxWorkers=2: 5 files, 64 tests passed.npm run buildpasses (43.55 s). Knockout of the executor role: withNODESLIDE_ROUTING_EXECUTOR_MODELset back togoogle/gemini-3.5-flash,nodeslideProvider.requestShape.test.tsfails 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 in469f5db. The earlier claim naming15fb4f8and "322 passed (322)" is stale and withdrawn: the head under review was8c320f5(16 commits ahead ofmain, 0 behind, all authored by homen).scripts/run-node-gym.mjstakes the sameO_EXCLlock as deck-gym (acquireDeckGymCampaignLock(campaignRoot, 'NodeGym'),<campaignRoot>/campaign.lock) beforecampaign-plan.jsonis written or any attempt directory is read, and holds it to exit (exitreleases;SIGINT/SIGTERMexit 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 inscripts/tests/node-gym-campaign-budget.test.mjsspawns the real script: refused while the lock is held (campaign directory still holds only the lock), runs and releases once free. Knockout: withrun-node-gym.mjsback on8c320f5it fails.google/gemini-3.8-flash; D2/D2a say:free:freeroute is adynamicRoutethat 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.token;releaseunlinks only a file that still carries it. New test inscripts/tests/deck-gym-campaign-budget.test.mjsreplays the sequence. Knockout: fails with the unconditional unlink.8c320f5run (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 lintclean (1094 files),npm run typecheckclean, root vitest withVITEST_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 inconvex/nodeslideUploadExtraction.test.tsandNodeBookWorkspacePanel.test.tsx, files this PR does not change. Re-run with--testTimeout=180000together withnodeslideProvider.requestShape.test.tsand both campaign-budget files, 75 of 76 pass; the one failure isNodeBookWorkspacePaneltiming 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 in5fccd58. The earlier implementer claim (head15fb4f8,NODESLIDE_KIMI_K3.costmoved 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.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:freetarget:freerows 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: onmainand here every zero-priced:freeroute is adynamicRoute(shared/nodeslideRunBudget.ts:706-724) and the ledger refuses it before dispatch withpricing_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.SIGINT/SIGTERMhandler calledprocess.exit(1)and theexithandler releasedcampaign.lockwhile the executor child could still be running;runProcessnever killed or waited for it. On POSIX aSIGTERMsent only to the parent (kill <pid>, a supervisor,docker stopon 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)createNodeGymChildGuard(scripts/lib/node-gym-runner-core.mjs) tracks the one running executor;runProcessregisters it. The signal handler inscripts/run-node-gym.mjsnow callsstop()(signal the child, resolve only on itsclose, escalate toSIGKILLafter 10 s) and only thenprocess.exit(1), soexitreleases the lock after the child is dead. Theexithandler alsoSIGKILLs a tracked child synchronously for any other exit path. Tests inscripts/tests/node-gym-campaign-budget.test.mjsrun real child processes:stop()resolves only once the child is dead, a no-op with no child, and a child that ignoresSIGTERMis killed by the escalation. Knockout: withstop()not acting on the tracked child both fail. Limits: verified on Windows, wherechild.kill()is already forceful, so theSIGTERM-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.releaseCampaignLockreads 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)acquireDeckGymCampaignLocknow says so. The Round 10 row 3 wording "Fixed" is corrected above.nodeslideModelProbe:runExecutorSpliton a dev deployment stamped with the tested commit, then thenightly-production-probe.ymlworkflow_dispatchstep; estimated 0.504014 USD against the 0.55 USD cap. No working OpenRouter key exists (D2). Draft,needs-live-eval.Round 11 head
5fccd58(run 2026-10-17, local):npm run lintclean (1094 files);VITEST_MAX_WORKERS=4 npm run checkexited 1 at the test step with 3 timeouts under load (5 sconvex/nodeslideModelPricing.test.tsBYOK-client case,convex/nodeslideUploadExtraction.test.ts, 60 sNodeBookWorkspacePanel.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+nodeslideUploadExtraction52/52 passed,NodeBookWorkspacePanel+nodeslideProvider.requestShape29/29 passed,scripts/tests/node-gym-campaign-budget.test.mjs26/26 passed;npm run buildpassed (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
2d38ab7nvidia/nemotron-3-super-120b-a12b:freeandpoolside/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 asopenai/gpt-oss-20b:free: the row stays for persisted requests and the node-gym/BYOK known-id paths (productionEnabledwas alreadyfalse), 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. Thepoolside/laguna-*:freestrings 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 paidgoogle/gemini-3.8-flashand 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.removes nemotron-3-super:free from the free-router candidates but keeps the row(nodeslideProvider.requestShape.test.ts): fails against main'sshared/nodeslide.ts, passes here. Re-proof of the whole request-shape file against main'sshared/nodeslide.ts+convex/lib/nodeslideProvider.ts: 14 failed | 10 passed (24) before the new test; 25/25 after.testTimeout(30 s, only the timeout moves; the cold pi-ai import timed out at 5 s under load), and a dated note on thegoogle/gemini-3.8-flashledger row: Google doubles the intro price on 2027-01-01 (SPEC 1.3), after which themax_priceceiling admits 0 endpoints and the row must be re-read and raised together with its pricing test and the 0.55 USD probe cap.2d38ab7(local, Windows):npm run lintclean (1094 files);npm run typecheckclean;npm run test:nodeslide-gates(vitest run scripts/tests) 43 files, 600 passed | 5 skipped. Root vitest as part ofnpm run checkunder 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.Round 13 review (Codex round 1 on
2d38ab7): what changed, heada535920google/gemini-3.8-flash; D2/D2a say:freeshared/nodeslideRunBudget.tsmarks every zero-priced:freerowdynamicRoute, so a:freeswap is refused withpricing_unknownand the split never runs.nodeslideModelProbe:runExecutorSplit) not runneeds-live-eval.reasoning.enabledandeffort, soreasoning: {effort, max_tokens}passedexpectNoForbiddenKeysassertsObject.keys(reasoning)equals['effort']; guard self-test gainsa reasoning token budget. Knockout: removing the assertion fails that case.sincecheck usedDate.parse, which normalizes2026-02-30scripts/lib/node-gym-config-core.mjsrequiresnew Date(since + 'T00:00:00Z').toISOString().slice(0, 10) === since. Gate test gains2026-02-30,2027-02-29,2026-13-01rejections and a2028-02-29acceptance. Knockout: the two calendar cases fail against the old check.shared/nodeslide.ts:24) now records the round-12 nemotron-3-super change and themodel-fleet-receipt-core.mjsmirror. 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:freeis missing fromshared/nodeslide.tsknown ids (it resolves toopenrouter/free). No NodeSlide site uses it; flagged for a decision rather than changed here.Check, head
a535920(local, Windows, no provider call):npm run lintclean (1094 files);npm run typecheckclean;npm run test:nodeslide-gates43 files, 604 passed | 5 skipped; request-shape + gate + pricing tests 88/88; rootvitest run --testTimeout=120000withVITEST_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, headbdfd3d8restoreDeckGymSpendreadreaddir(runDir).catch(() => []), so a prior run directory with artifacts, nobudget-charges.jsonand an unlistable directory (EACCES, EBUSY, EPERM, EMFILE) restored 0 spend (replayed:{spent: 0})readdirerror except ENOENT is rethrown, as the function's doc comment already said. New test mocksreaddirto 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.openai/gpt-5.6-solandgpt-5.6-terrawent fromreasoning.effort: nonetohigh(plussummary: auto,include: reasoning.encrypted_content); frozengoogle/gemini-3.1-pro-previewandgoogle/gemini-3.5-flashfrom nothinkingConfigtothinkingLevel: HIGH. The earlier body said main used the vendor default (medium); main sentnone.llmClient.tssets 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 testcallByModel leaves the requests of rows this refresh does not add byte-identical to maindrivesgpt-5.6-sol,gpt-5.6-terra,gemini-3.1-pro-previewandgemini-3.5-flashthrough the real client with a fakefetchand compares URL and body with main'spi.complete(model, ctx, {maxOutputTokens})request (toEqualand string equality). The round-3 assertion thatmoonshotai/kimi-k3getseffort: highis replaced, old expectation kept in a comment: kimi-k3 is not a new row. Fails against the old client.recursive/flint-v1.0:free(verified free id, 2026-10-31 recheck) was not inNODESLIDE_VERIFIED_FREE_MODEL_IDS, socallByModelposted it asopenrouter/free; main threwnodeSlideAgentModeland the MCPcall()refuse it ("known NodeSlide id ... not rerouted") before any request. New wire test asserts the refusal and thatfetchwas never called.--matrixwith a repeatedrunId; two workers on one run directory read-modify-write onebudget-charges.jsonand a charge is lost (Codex replay: $1.20 spent, $0.60 durable, $2.10 actual against a $2 cap)assertUniqueDeckGymRunIds(scripts/lib/deck-gym-campaign.mjs) runs inscripts/run-deck-gym.mjsright 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 stringrunId. Tests cover each case and assert the committed v1 matrix (72 runs) passes.2d38ab7and 600 passed, but the head wasa535920Not 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 lintclean;npm run typecheckclean;npm run test:nodeslide-gates43 files, 609 passed | 5 skipped;mcpllmClient.test.tsandllmClient.wire.test.tspass; rootnpm run test -- --maxWorkers=4exit 0;npm run buildexit 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, thenAiInspector.openUiWiring.test.tsx); both pass alone and the--maxWorkers=4run is green.Round 15 review (Codex round 3 on
bdfd3d8): what changed, heada405de9completionResultreturnsresponseModel ?? model, and pi-ai 1.1.0 setsresult.model = model.id(the requested id), sotelemetry.actualModelequals the requested id when the response names no model, and the probe copied it intospan.responseModelandrow.echoedModel(replayed:callNodeSlideFreeJson('google/gemini-3.8-flash')over an SSE with nomodelfield gaveactualModel === 'google/gemini-3.8-flash'; the full probe plus the real ledger returned[]from the receipt check)responseModelonly when the chunk's model differs from the requested id, so an exact echo cannot be told from no echo there; readingresult.responseModel ?? nullalone would have made a faithfulgoogle/gemini-3.8-flashecho fail the receipt forever. The provider call therefore reads the raw chunk through pi-ai'sonProviderStreamEventand carries it asNodeSlideCompletionResult.echoedModel/NodeSlideProviderTelemetry.echoedModel, separate from the effectivemodel; absent when the provider sent none. The probe'sspan.responseModelandrow.echoedModelcome fromtelemetry.echoedModeland arenullwhen absent.executorSplitReceiptFailuresalready rejectsnulland is unchanged;actualModelandisVerifiedNodeSlideRouteAttributionare unchanged. Tests: no-model SSE leavesechoedModelabsent whileactualModelstill 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 yieldsnullin span and row and the receipt fails withexecutor responseModel is null,executor row echoedModel is null,echoedModels does not include the executor. The two echo-recording tests fail against the old provider.path.join(runsDir, runId):['same','group/../same','../../escape']passed, the first two resolve to one directory and the third leavesrunsDir(Codex: 1,200,000 micro-USD spent in memory, 600,000 restored from disk)assertUniqueDeckGymRunIdsrequires eachrunIdto 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 ofrunsDir. The committed 72-run v1 matrix still passes.google/gemini-3.8-flash, D2/D2a say:freeAUTO_ROUTER_DIFFERS_FROM_LEDGERrecords 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.3152d38ab7, head wasbdfd3d8main'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 fora405de9.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, andnpm run test:nodeslide-gates43 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:runExecutorSpliton a dev deployment stamped with the tested revision) was not run: no keyed machine, no provider call was made.Noticed, not changed:
NodeSlideProviderTelemetry.actualModelis documented as provider-returned only but is filled fromresult.model, which falls back to the requested id; production route attribution (isVerifiedNodeSlideRouteAttribution) reads it. Moving that qualifier toechoedModelis a behaviour change on a production gate and is not part of this PR.Review round 6 (Codex round 6 on
0c7cc6d): what changed, heada2cfeb5DIRECT_FORBIDDEN_KEYSnames only snake_casetop_p/top_k; Gemini's own keys aregenerationConfig.topP/topK, and the allowlist covers onlythinkingConfig, so injectingtopP=0.9/topK=5into the real builder left all 49 wire tests green (a gate that cannot fail; the builder does not send them today)topPandtopKjoinDIRECT_FORBIDDEN_KEYS(the walk is recursive, so they are caught at any depth;generationConfig.temperaturewas already caught throughFORBIDDEN_KEYS). The guard self-test now rejectsgenerationConfig.topP,.topKand.temperature. Knockout: injectingtopP/topKinto the real Gemini body fails the wire test withbody.generationConfig.topP is forbiddenand...topK is forbidden. No check weakened.rowEffortOptionmapsopenai-responsesbut notopenai-completions, the api pi-ai uses for OpenRouter routes, which readsreasoningEffort;call({provider:'openrouter', modelId:'openai/gpt-6.1-sol'})and the Gemini 3.8 equivalent went out with noreasoningblockmcp/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) assertreasoning: {effort: 'high'}on the OpenRouter wire; reverting the mapping fails both.google/gemini-3.8-flash, D2/D2a say:free(the ledger refuses every zero-priced:freeroute asdynamicRoute,pricing_unknown)AUTO_ROUTER_DIFFERS_FROM_LEDGERpins 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_exceededis enforceable)nodeslideAutoRoutingPolicy.tsand 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.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 thenightly-production-probe.ymlworkflow_dispatchstep. PR stays draft withneeds-live-eval.2d38ab7; the heading of "Check output" pointed at a last paragraph that is for8c320f5; no figures for0c7cc6da2cfeb5.Check, head
a2cfeb5(local, Windows, no provider call):npm run lintclean;npm run typecheckclean;npm run test: root vitest 328 files, 3032 passed | 7 skipped, plus workspaces 11 + 5 + 7 + 76 passed;npm run buildexit 0;npm run test:nodeslide-gates43 files, 611 passed | 5 skipped;convex/lib/nodeslideProvider.requestShape.test.ts29/29, and withshared/nodeslide.tsandconvex/lib/nodeslideProvider.tstaken fromorigin/mainit fails 18 and passes 11. The first fullnpm run checkrun of this head exited 1 on one load timeout inAiInspector.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, head2cf28dagoogle/gemini-3.8-flash; D2/D2a send a role moved under A.0.1 to a non-expiring:freetarget, which per the 2026-10-31 recheck isrecursive/flint-v1.0:free(listed with no expiration on the public list, 2026-11-01 11:13Z):freeroute (dynamicRoute,pricing_unknown), so the split never dispatches and theworkflow_dispatchgate (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:freeroute can be admitted under a conservative priced reservation plus a zero-pricemax_priceceiling, after which the executor moves torecursive/flint-v1.0:free, or (3) retire the split. Unchanged from "Open for Homen" above.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_exceededrewrites 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 admitsnodeslideAutoRoutingPolicy.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. ThenodeslideAutoRoutingPolicy.test.tsexpected-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.openai/gpt-6.1-sol/google/gemini-3.8-flash(mcp/src/lib/llmClient.wire.test.ts) read onlybody.modelandbody.reasoning; injectingtemperature:0for apiopenai-completionsintocall()left all 57 MCP tests greenllmClient.tsis unchanged).directWireProblemsgains anopenroutershape: the recursive forbidden-key walk (temperature, top_p, top_k, tool_choice, budget_tokens, logprobs, ...),reasoninglimited toeffortin 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_tokensandreasoning.enabled:falseon that shape. Knockout rerun: the reviewer's injection now fails both cases withbody.temperature is forbidden; builder restored. No check weakened.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 retargetsmain.2d38ab7and 600 passed; head wasa2cfeb5) and its frozen list said "workflow files (follow constants)" whilenightly-production-probe.ymlgains therunExecutorSplitcapture step2cf28da; the workflow edit is required by A.2.8 (allowedProbeFunctions and the dispatch step) and is disclosed in the runtime-role table row fornightly-production-probe.yml:101; it is not a frozen-site edit.Check, head
2cf28da(local, Windows, no provider call):npm run lintclean (1094 files);npm run typecheckclean; root vitest 328 files, 3032 passed | 7 skipped (run with--maxWorkers=3);npm run buildexit 0;npm run test:nodeslide-gates43 files, 611 passed | 5 skipped; MCP workspace 6 files, 82 passed. Two fullnpm run testruns 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 heada2cfeb5fails 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
304816eNODESLIDE_ROUTING_EXECUTOR_MODEL=deepseek/deepseek-v4.1-flash-1017; the receipt-core mirror (scripts/lib/model-fleet-receipt-core.mjsEXECUTOR_SPLIT_EXECUTOR_MODEL) follows. New catalog row inshared/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), aModel<>override innodeslideProvider.ts(pi-ai 1.1.0's bundled catalog has onlydeepseek-v4.1-flashand:batch, not the dated id), and the ledger row above. No temperature is sent (supportsTemperature: false);reasoning: {effort: 'low'}as before.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 fromNODESLIDE_OPENROUTER_MODEL_OVERRIDESfails 5 tests (pricing agreement, cache cap, both executor request-shape cases).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 sendsresponse_format: json_schemawithprovider: {require_parameters: true, max_price: {prompt: 0.15, completion: 0.6}}.nodeslideAutoRoutingPolicy.tsreads only pi-ai's catalog, so it refuses the dated id withpricing_unavailablerather than estimating it; the executor is reached only through the routed edit planner and the ledger, never through job-create auto-routing. Pinned asAUTO_ROUTER_CANNOT_PRICEbeside the existingAUTO_ROUTER_DIFFERS_FROM_LEDGERpin (exact list equality, refusal code asserted). The auto-router file is not edited; the A.0.6 decision below is unchanged.nodeslideModelPricingBYOK cold-import timeout (round 12 raised the file'stestTimeoutto 30 s)@earendil-works/pi-ai/compatlazily insidecall(), 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 svi.setConfigis removed, back to the 5 s default. Measured unloaded: the BYOK case 568 ms before, 52 ms after.mcp/src/lib/llmClient.tsis unchanged.Check, head
304816e(local, Windows, no provider call):npm run lintclean (1094 files);npm run typecheckexit 0; rootvitest run --maxWorkers=4328 files, 3034 passed | 7 skipped, 2 failed on load timeouts in files this change does not touch (convex/nodeslideUploadExtraction.test.ts5 s,NodeBookWorkspacePanel.test.tsx60 s), both pass alone (9/9); workspaces 11 + 5 + 7 + 82 passed;npm run test:nodeslide-gates43 files, 611 passed | 5 skipped;npm run buildexit 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_KEYso the executor receipt (0.427208 USD estimated, 0.55 USD cap) can be produced andneeds-live-evalcleared; (2) the A.0.6 auto-router decision above (accept the pinned divergence, lift the A.2.8 freeze, or reopen D3); (3) thegoogle/gemini-3.8-flashledger row's 2027-01-01 price doubling (re-read and raise with its pricing test); (4) whetherdeepseek/deepseek-v4.1-flash-1017should 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, headbd9d10bbd9d10b:mcp/src/lib/llmClient.tssendsprovider.max_priceat the same ledger rate, as the Convex dispatcher does, so the persisted cost is an upper bound on what is billed. New test inconvex/nodeslideModelPricing.test.tsfails before the fix (providerundefined) and passes after. pi-ai never keeps OpenRouter's reportedusage.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, mcpllmClient,llmClient.wire,nodeslideTools73/73, root and mcp typecheck exit 0, biome clean on both files. Key-prefix scan of the diff: 0 hits.