S1 progress: what was built, tests, mutations, decisions, copy keys
Budgets follow the measured sizes of the store, the web layer, the thin runner and the contract tests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 files changed,
+295
−4
.rastrillo/budgets.txt+4 −4docs/superpowers/plans/S1-METERED-PROGRESS.md+291 −0
CI failed — run details
diff --git a/.rastrillo/budgets.txt b/.rastrillo/budgets.txt| index adb0bc54..63d2c179 100644 |
| --- a/.rastrillo/budgets.txt |
| +++ b/.rastrillo/budgets.txt |
| @@ -14,7 +14,7 @@ perf GET /* skip Unknown private paths render 404; this fallback contains no scr |
| time internal/equipo/team 60s Plan 3 loaded CI measured 45.985s; niced serial reruns measured 18.079s and 22.031s. Keep migration, recovery, accounting and concurrency assertions; 60s leaves 30 percent headroom above loaded CI. |
| time internal/equipotest 300s Final fix package rerun measured 187.035s (review 172.4s); 300s gives 60 percent headroom for HTTP, sandbox, authority and final regression coverage. |
| -size internal/equipo 17988 - The instance web layer: pages, handlers, templates and copy for every screen. Measured 17988 source lines. |
| +size internal/equipo 18244 - The instance web layer: pages, handlers, templates and copy for every screen. Measured 18244 source lines. |
| size internal/equipotest - 13400 Task 21 repairs historical migration and conversation fixtures after Plan 3. Measured 13024 test lines; the 300s time ceiling is unchanged. |
| time internal/runner/checks 90s CI worker measured 44.553s (44.6s rounded); |
| time internal/runner 330s Plan 3 CI repair measured 292.120s for the full package (controller CI 472.184s). |
| @@ -34,7 +34,7 @@ time internal/runner/provider 15s Plan 3 CI repair measured 10.346s for the full |
| perf GET /releases/* skip Verified runner release file downloads, not browser GET screens. |
| perf GET /install.sh skip Mac runners: the one-line bootstrap a terminal pipes to sh, not a browser screen. |
| time internal/runner/containment 15s Plan 3 loaded CI measured 10.817s; |
| -size internal/runner/thin 18301 10077 The thin runner: steps, link, coordinator, Mac worker, previews, publication and merges. Measured 18301 source and 10077 test lines. |
| +size internal/runner/thin 19028 10609 The thin runner: steps, link, coordinator, Mac worker, previews, publication, merges and metered connections. Measured 19028 source and 10609 test lines. |
| time internal/thintest 180s Contract tests for Mac runners, transitions and the thin core share one instance harness; loaded CI needs 180s. |
| time internal/runner/mac 30s Mac runners (Darwin worker): real process groups killed after a grace and proven gone (SIGTERM, SIGKILL, the marker sweep), and the probes run end to end with fake srt and xcodebuild, P6 killing. |
| time internal/runner/thin 45s Thin v1 slice 4 review: real git repositories for the merge and squash checks, a stalled fetch, and a 16 MiB candidate streamed through the review diff and the checks pack (about 5s). |
| @@ -49,7 +49,7 @@ perf GET /api/v1/notebook skip Thin v1 person API: bearer-only JSON for devices; |
| perf GET /api/v1/thinking skip Thin v1 person API: bearer-only JSON for devices; the browser reads thinking words on /settings/thinking. |
| perf GET /api/v1/tasks skip Thin v1 person API: bearer-only JSON for devices; the browser reads tasks through /tasks. |
| perf GET /api/v1/tasks/{id} skip Thin v1 person API: bearer-only JSON for devices; the browser reads a task through /tasks/{id}. |
| -size internal/equipo/chat 16691 - The instance store: tasks, steps, cards, merge authority, housekeeping, triage and placement. Measured 16691 source lines. |
| +size internal/equipo/chat 17095 - The instance store: tasks, steps, cards, merge authority, housekeeping, triage, placement and metered connections. Measured 17095 source lines. |
| perf GET /api/v1/questions/{id} skip Thin v1 person API: bearer-only JSON for devices; the browser reads questions on /tasks/{id}. |
| perf GET /api/v1/steps/{id}/log skip Thin v1 person API: bearer-only JSON for devices; the browser shows the log tail on /tasks/{id}. |
| perf GET /api/v1/connections/preference skip Connections slice 1 person API: bearer-only JSON for devices; the browser shows the preference on /conversation/connections. |
| @@ -62,5 +62,5 @@ perf GET /conversation/attachments/{id}/preview skip Composer attachments: an im |
| perf GET /api/v1/runners skip Mac runners person API: bearer-only JSON for devices; the browser shows runners in the Team section. |
| time cmd/equipo-runner 60s TestReleaseRunnerHasNoFakeWorker builds the release runner and the thin package under testbuild (about 12s locally). |
| size internal/headless - 9387 End-to-end scenarios through a real runner and instance, plus browser drives. Measured 9387 test lines. |
| -size internal/thintest - 16694 Thin v1 contract and page tests; one package keeps one instance harness. Measured 16694 test lines. |
| +size internal/thintest - 16982 Thin v1 contract and page tests; one package keeps one instance harness. Measured 16982 test lines. |
| perf GET /api/v1/projects/{id}/merge-policy skip Merge authority person API: bearer-only JSON for devices; the browser reads the policy on /projects/{id}. |
diff --git a/docs/superpowers/plans/S1-METERED-PROGRESS.md b/docs/superpowers/plans/S1-METERED-PROGRESS.md| new file mode 100644 |
| index 00000000..cd8c83e0 |
| --- /dev/null |
| +++ b/docs/superpowers/plans/S1-METERED-PROGRESS.md |
| @@ -0,0 +1,291 @@ |
| +# S1 progress: metered connections |
| + |
| +Branch `connections-s1-metered` from main 1d7b4e41. Spec: |
| +`docs/superpowers/specs/2026-11-12-equipo-connectors-and-token-scheduling.md` |
| +revision 3.1 (on `connections-slice2-design`, 629221f6), approved by Paul |
| +as recommended, all eight decisions. Slice S1 (§11): §0 decisions 3, 4 |
| +and 7, §2.1 to §2.3, the S1 parts of §3, §7's metered guard for Ask, and |
| +§10's wire, API and fixtures for them. Builds on the Claude token |
| +connection (2e5a6103 to 92105191) and Connections rev 3 §2.4. |
| + |
| +There is no real harness in S1: Pi arrives in S2. The metered provider is |
| +TensorX (`https://api.tensorx.ai`, harness Pi) with a versioned price |
| +table; tests use a fake harness (functions standing in for the S2 |
| +adapter) and a fake OpenAI-compatible provider on 127.0.0.1. No real |
| +provider, key or sign-in was used. |
| + |
| +## Done |
| + |
| +1. Wire (b5720ae5). Protocol 12, `ProtocolMetered`. `KindAPIKey` |
| + (`api_key`), prompts `api_key` and `model` (`ConnectPrompt.models`), |
| + billing `subscription | metered`, the provider table |
| + `wire.APIKeyProviders` (TensorX: Pi, upstream, `/v1`, endpoint |
| + `https://api.tensorx.ai:443`, per token, USD), the §2.1 rule |
| + (`CheckConfirmations`, `Billing`), `Budget` and `Spend`. |
| + `Connection` gains `harness`, `upstream`, `billing`, `model`, |
| + `limit_confirmed_at`, `payg_off_confirmed_at`, `budget`, `spend`, |
| + `budget_pending`; `Connect` gains `limit_confirmed`, |
| + `payg_off_confirmed`, `budget`; `ConnectCommand` `billing`, `budget`; |
| + `HeldConnection` the metered facts; `Usage` gains `cost_micros`, |
| + `currency`, `price_version`, `cost_reported_micros`; `UsageReport` |
| + gains `probe_id`. Frames (instance to runner, durable): `model`, |
| + `budget` (acked when applied), `resume_spend`. Hold reasons `busy`, |
| + `budget`, `spend_unknown` (also question reasons); connect reasons |
| + `key_refused`, `no_priced_model`. All new fields are omitempty, so |
| + every earlier fixture is byte-identical. Below 12, `Encode` drops |
| + API-key connections from hello and sync and the cost fields from |
| + usage rows, says a probe's usage as a check, and refuses the new |
| + frames, an API-key connect and a held question's report: an older |
| + runner is refused metered connections rather than downgraded. |
| + Fixtures: `api/connection-metered.json`, `api/connection-choose-model.json`, |
| + `api/connect-request-api-key.json`, `api/budget.json`, |
| + `api/resume-request.json`, `api/model-request.json`, |
| + `frames/budget.json`, `frames/model.json`, `frames/resume_spend.json`, |
| + `frames/connect-api-key.json`, `frames/usage-probe.json`, |
| + `frames/hello-metered.json`; the secret-field guard covers every new |
| + type and fixture (the only allowance: `"kind":"api_key"`, a value). |
| + |
| +2. Egress (0268db20). `egress.ProviderPolicy` and `Policy.Hash` read one |
| + table keyed by `(harness, provider)`: `(claude, claude)`, |
| + `(codex, codex)`, `(pi, tensorx)` to `api.tensorx.ai` only. |
| + `NetworkContract` and `Policy` gain `Harness` (empty for a provider's |
| + own CLI), so the Claude and Codex policy hashes are unchanged; a pair |
| + that is not a row is refused. A test ties each API-key provider's row |
| + to its upstream host. |
| + |
| +3. The ledger (f0f18906), `internal/runner/metered`: |
| + - price tables, versioned (`tensorx-2026-11-12`), in integer |
| + micro-units per million tokens; usage normalised into |
| + `uncached_input`, `cached_input`, `cache_write`, `output` and |
| + `reasoning` (reasoning apart only where the table says so); each |
| + part rounded up, 128-bit intermediate, overflow is unknown; an |
| + unpriced model, an unpriceable component or an incomplete row is |
| + unknown; the larger of the priced and the reported cost is charged |
| + and both kept; |
| + - thin.db tables `metered_connections`, `metered_slot` (one per |
| + connection) and `budget_charge` keyed by the usage row's key |
| + `(turn, step, attempt, connection, model)`; |
| + - `Admit`: the slot free, spend known, reported spend under the day's |
| + and the month's budget, claimed in the caller's transaction (a |
| + question's start rides in it); `Charge` with the report in one |
| + transaction; `Settle` only after the termination proof, releasing |
| + the slot with the charge or with `spend_unknown` under a new |
| + `pause_revision`; `Resume` consumed once and only for the current |
| + pause; `ApplyBudget` above the revision held; |
| + - `Meter.Run` is the entry a harness adapter (S2's Pi) calls; |
| + `Meter.Recover` reconciles claimed slots at start-up (in `run.go`, |
| + before the connector and the step engine start): namespace proven |
| + gone, committed charges kept, otherwise `spend_unknown`, then the |
| + slot released; one that cannot be proven stays held. Slots of |
| + attempts running in this process are never touched; |
| + `StepEngine.Probe` runs it again for ended, unproven ones. |
| + |
| +4. The runner (956f2d59): |
| + - API-key attempts reuse the token delivery (`Secret`, `keep`, the |
| + staged and committed file, `seen_seals`, restart recovery), bound to |
| + the provider's endpoint; the key lands 0600 in the connection's own |
| + home under the accounts root (`tensorx-N`); |
| + - the runner, outside any namespace, reads `GET /v1/models` with the |
| + key (`connect.APIClient`), offers the models the price table knows |
| + (prompt `model`), waits for the `model` frame, adds the connection |
| + unvalidated, then runs the one-token probe |
| + (`POST /v1/chat/completions`, `max_tokens: 1`) through `Meter.Run` |
| + with role `probe`; its usage row is charged and sent in a usage |
| + frame with `probe_id`; success validates the connection, a 401/403 |
| + ends the attempt `key_refused`; |
| + - Check again on a metered connection runs the probe again (through |
| + the guard; a refused key reads `sign_in_again`); hello carries each |
| + validated metered connection with its budget and spend; `budget` |
| + and `resume_spend` frames apply in the transaction that records |
| + their frame id; sign-out deletes the record, then the home, through |
| + the durable cleanup; |
| + - the metered guard for questions (`askmetered.go`): a question whose |
| + kept session is on a metered connection is admitted through |
| + `Meter.Admit` with its start in the same transaction; refused, it |
| + is held (asks `hold`, `not_before`), reports `queued` with the hold |
| + as its reason once per hold, is never moved, and is looked at again |
| + on any change of a connection's standing (slot released, budget |
| + applied, Resume) or, for the budget, at the next UTC day or month. |
| + With no harness for it (S1), it fails `account_unavailable` without |
| + claiming the slot. |
| + |
| +5. The instance (79f4daad): `POST /api/v1/connections` with |
| + `kind: api_key` (refused 422 without the limit confirmation, with a |
| + pay-as-you-go confirmation on a per-token provider, without a budget |
| + in bounds; 409 `runner_too_old` below protocol 12); the |
| + confirmations kept with their time on the record; the box on |
| + `POST /connections/{id}/secret` bound to the provider's endpoint; |
| + `POST /connections/{id}/model`; `PUT /connections/{id}/budget` |
| + (revision-checked, pending until the runner's ack); |
| + `POST /connections/{id}/resume` (bound to the pause shown); hello's |
| + metered facts recorded; usage rows keep their cost; a probe's row has |
| + role `probe`; a held question keeps its hold as its reason. Migration |
| + 0068 (additive). |
| + |
| +6. The page (68cdc2f6): Add a connection offers TensorX with the |
| + required confirmation, how TensorX limits a key (its billing docs), |
| + what Equipo cannot see, and the budget pre-filled at 1 and 10; a |
| + refusal says why. The key card seals in the page (connections.js, |
| + `data-key-form`) for TensorX's origin; the model card lists the |
| + runner's models. A metered row: model, the spend line ("$0.84 today |
| + of $1 · $6.20 this month of $10", "Reported by Pi, can go over by one |
| + step"), "Paused until tomorrow" / "Paused until 1 Dec", "Spend |
| + unknown: check TensorX, then Resume" with Resume, "Applies when |
| + <runner> confirms", Change budget, Check again, Sign out. Metered |
| + connections stay out of the coordinator lines and the preference. |
| + |
| +## Tests |
| + |
| +- `internal/wire`: `TestEncodeBelowProtocol12DropsMetered` (mixed |
| + versions: the new frames, an API-key connect and the metered fields |
| + never reach an older peer), `TestMeteredConfirmations`, the secret |
| + guards over the new types and fixtures, fixture round trips. |
| +- `internal/runner/egress`: `TestEgressTableKeyedByHarnessAndProvider`. |
| +- `internal/runner/metered`, with a fake harness, the S1 finish line: |
| + (a) `TestMeteredBudgetHoldsTheNextAttempt`, (b) |
| + `TestMeteredRaceAdmitsExactlyOne` (Engineering, Review and a question |
| + race, eight rounds), (c) `TestMeteredCrashBeforeChargeIsSpendUnknown`, |
| + (d) `TestMeteredStaleResumeLeavesTheNewerPause`, (e) |
| + `TestMeteredResentUsageChargesOnce`, (f) |
| + `TestMeteredUnpricedModelIsSpendUnknown`; `TestPricesNormalisedComponents`. |
| +- `internal/runner/connect`: `TestAPIClientModelsAndProbe` (fake |
| + provider on 127.0.0.1). |
| +- `internal/runner/thin`: `TestAPIKeyConnectionRoundTrip` (sealed paste, |
| + model list, probe charged as role probe, hello, Check again, a refused |
| + key, budget frames, sign-out; the key in no frame or log line), |
| + `TestAPIKeyBoxBoundToTheProvider`, `TestMeteredGuardHoldsQuestions`, |
| + `TestMeteredQuestionWithNoHarness`. |
| +- `internal/thintest`: `TestContractMeteredConnection` (an older runner |
| + refused; confirmations, budget and provider refused without; the |
| + sealed key's binding; the model pick; the probe row charged once when |
| + resent; budget pending until the ack; Resume bound to its pause; the |
| + page's add form, refusal, key and model cards, spend line, pending and |
| + spend unknown; the key nowhere on the instance); |
| + `TestPagesConnectionsAdd` now expects TensorX offered and two greyed. |
| +- Local runs were targeted only (`-run`), plus gofmt, go vet (linux, |
| + testbuild, darwin), staticcheck on the changed packages, `make |
| + budget` and the dead-reference scan. |
| + |
| +## Mutations, each observed failing |
| + |
| +- wire M1: downgradeMetered kept API-key connections in hello -> TestEncodeBelowProtocol12DropsMetered (hello at protocol 11) |
| +- wire M2: meteredOnly refusal off -> TestEncodeBelowProtocol12DropsMetered (budget encoded at protocol 11) |
| +- wire M3: api_key field on ResumeSpendCommand -> TestConnectionTypesCarryNoSecrets |
| +- wire M4: CheckConfirmations ignores the limit -> TestMeteredConfirmations |
| +- wire M5: probe usage not said as a check below 12 -> TestEncodeBelowProtocol12DropsMetered (usage at 11) |
| +- egress E1: tensorx row allowed a second host -> TestEgressTableKeyedByHarnessAndProvider (tensorx through pi) |
| +- egress E2: an empty harness taken as pi -> TestEgressPolicy, TestEgressPolicyFrozen, TestEgressTableKeyedByHarnessAndProvider (tensorx with no harness admitted) |
| +- egress E3: harness always set on the policy -> TestEgressTableKeyedByHarnessAndProvider (claude policy hash changed) |
| +- metered MM1: Admit ignored a held slot -> TestMeteredRaceAdmitsExactlyOne (round 4: two held, none ran: the claim overwrote; with the conditional UPDATE alone kept the race still admitted one, so the holder check is the guard and the conditional UPDATE is belt and braces) |
| +- metered MM2: budget check disabled -> TestMeteredBudgetHoldsTheNextAttempt (after the budget: admitted, ran) |
| +- metered MM3: Settle never pauses -> TestMeteredCrashBeforeChargeIsSpendUnknown, TestMeteredUnpricedModelIsSpendUnknown |
| +- metered MM4: Resume not bound to pause_revision -> TestMeteredStaleResumeLeavesTheNewerPause (stale resume cleared) |
| +- metered MM5: ledger without the usage key -> TestMeteredResentUsageChargesOnce (charged 700000, 4x) |
| +- metered MM6: an unpriced model priced at zero -> TestMeteredUnpricedModelIsSpendUnknown |
| +- metered MM7: Recover released a slot whose namespace was not proven gone -> TestMeteredCrashBeforeChargeIsSpendUnknown |
| +- runner AK1: an API-key box accepted when bound to Claude's endpoint -> TestAPIKeyBoxBoundToTheProvider (the bad box was taken; the attempt waited for a model) |
| +- runner AK2: the probe's usage not reported -> TestAPIKeyConnectionRoundTrip (probe usage []) |
| +- runner AK3: unpriced models offered -> TestAPIKeyConnectionRoundTrip (offered [vendor/unpriced z-ai/glm-5.3]) |
| +- runner AK5: a refused probe not recorded -> TestAPIKeyConnectionRoundTrip (no sign_in_again) |
| +- runner Q1: a metered question sent down the Claude path -> TestMeteredGuardHoldsQuestions (a metered question went to the Claude path) |
| +- runner Q2: holds not looked at again on a change -> TestMeteredGuardHoldsQuestions (q1 stayed queued busy) |
| +- runner Q3: a refused question run anyway -> TestMeteredGuardHoldsQuestions (the slot is not this attempt's; answered while the probe held it) |
| +- instance I1: confirmations not checked -> TestContractMeteredConnection (no limit confirmation accepted) |
| +- instance I2: no protocol check -> TestContractMeteredConnection (a protocol 11 runner accepted) |
| +- instance I3: the budget frame's ack not applied -> TestContractMeteredConnection (timed out waiting for the budget applied) |
| +- instance I4: Resume not bound to the pause -> TestContractMeteredConnection (a stale resume accepted) |
| +- instance I5: probe usage recorded as a check -> TestContractMeteredConnection (probe usage role check) |
| +- page U1: the spend line dropped -> TestContractMeteredConnection (the row lacks "$0.84 today of $1 · $6.20 this month of $10") |
| +- page U2: the add form taken as confirmed -> TestContractMeteredConnection (unconfirmed add went through) |
| + |
| +## Decisions where the spec was open |
| + |
| +- Metered connections live in thin.db (`metered_connections`), not in |
| + the bindings file: the bindings file is the certified launcher's |
| + config and admits only Claude and Codex; S2 adds the Pi launch from |
| + the metered record. |
| +- The sealed key travels on `POST /connections/{id}/secret`, as the |
| + token's does, not on `POST /connections` (§10 lists `sealed` there): |
| + the box is bound to the connection's id, which does not exist before |
| + the POST. |
| +- The model pick needs a frame the spec does not name: `model` |
| + (instance to runner, durable, refused below 12). |
| +- The key is kept in the home under the token's file names |
| + (`.oauth-token`, staged as the token is), so delivery and recovery are |
| + one code path. |
| +- The probe runs in the runner process (no namespace); a 401/403 is not |
| + billed (nothing charged, no pause); any other failure after the |
| + request (no answer, 5xx, no usage reported) is spend unknown. |
| +- Normalisation: input or output not reported, or the row not complete, |
| + is unknown; a cached or cache-write figure not reported counts as none. |
| + TensorX's table: the 2026-11-12 published prices of ten models |
| + (tensorx.ai/pricing, matching models.dev); cache writes unpriced (any |
| + is unknown), reasoning part of output; to be checked before release. |
| +- A connection keeps the price version it was made with. |
| +- Budgets: UTC days and months; a day at most 1,000 and a month at most |
| + 10,000 in the currency, day not above month; pre-filled 1 and 10. |
| +- `budget_pending` is the person's budget revision above the highest |
| + the runner applied (its frame's ack, or hello's revision), and is not |
| + shown while connecting (the first budget rides the connect frame). |
| +- A held question reports `queued` with the hold as its reason, once per |
| + hold. A runner restart fails it `runner_restarted`, as it already does |
| + for any question not yet started. |
| +- In S1 no Engineering or Review step can be admitted to a metered |
| + connection: `Conns.Mine` and `connect.Choose` stay Claude and Codex |
| + (metered work is `urgent` or released, which is S3). `Meter.Run` is |
| + the entry S2's adapter calls; the race test runs all three roles |
| + through it. |
| +- A restart in the middle of the connect probe that leaves the spend |
| + unknown ends the attempt `provider_refused` (the unvalidated record |
| + goes; its charge stays in the ledger). |
| +- The slot's holder is `role|turn|step|attempt`. |
| +- Pay-as-you-go off on a per-token provider is refused (422), not |
| + ignored. The overflow rule is tested with a fake table row only. |
| + |
| +## New copy keys (pending, COPY REVIEW REQUIRED, in the Plan 3 inventory) |
| + |
| +- `chat.connections.metered.title`: Connect %s |
| +- `chat.connections.metered.key_sub`: An API key, billed per token. You set its spending limit at %s. |
| +- `chat.connections.metered.limit_confirm`: This key has a spending limit at %s |
| +- `chat.connections.metered.limit_how.tensorx`: At TensorX the limit is your prepaid balance: keys stop working below $0.05. Keep the balance at what you are willing to spend, and check that no automatic top-up is set. |
| +- `chat.connections.metered.limit_docs`: How TensorX billing works |
| +- `chat.connections.metered.cannot_see`: Equipo can’t see this limit. It is the only thing that stops spending for certain: Equipo’s own budget is checked between steps, and a step that is running can use this key up to the limit you set at %s. |
| +- `chat.connections.metered.budget_legend`: Equipo’s budget for this key |
| +- `chat.connections.metered.budget_day`: A day, in $ |
| +- `chat.connections.metered.budget_month`: A month, in $ |
| +- `chat.connections.metered.budget_note`: Equipo stops starting new steps when the reported spend reaches either figure. A step that is running finishes, so it can go over by one step. |
| +- `chat.connections.metered.continue`: Continue |
| +- `chat.connections.metered.confirm_first`: Confirm the spending limit and set a budget first. |
| +- `chat.connections.metered.too_old`: Your runner needs an update before it can use a metered connection. |
| +- `chat.connections.metered.key_paste`: Paste your %s API key |
| +- `chat.connections.metered.key_bad`: That does not look like an API key. Paste it again. |
| +- `chat.connections.metered.waiting_key`: Reading the models this key can use… |
| +- `chat.connections.metered.model_pick`: Pick the model this connection uses. Another model needs another connection. |
| +- `chat.connections.metered.model_use`: Use this model |
| +- `chat.connections.metered.waiting_probe`: Trying the model with one token. It is charged to the budget. |
| +- `chat.connections.metered.spend`: %s today of %s · %s this month of %s |
| +- `chat.connections.metered.reported_by`: Reported by %s, can go over by one step |
| +- `chat.connections.metered.paused_day`: Paused until tomorrow |
| +- `chat.connections.metered.paused_month`: Paused until %s |
| +- `chat.connections.metered.unknown`: Spend unknown: check %s, then Resume |
| +- `chat.connections.metered.resume`: Resume |
| +- `chat.connections.metered.pending`: Applies when %s confirms |
| +- `chat.connections.metered.change_budget`: Change budget |
| +- `chat.connections.reason.key_refused`: The provider refused the key: the balance may be empty, or the key was revoked. |
| +- `chat.connections.reason.no_priced_model`: None of the models this key can use has a price Equipo knows, so it cannot keep a budget for it. |
| +- `work.ask.held.busy`: Waiting: its connection is running another step |
| +- `work.ask.held.budget`: Waiting: its connection has reached today’s budget |
| +- `work.ask.held.spend_unknown`: Waiting: its connection’s spend is unknown. Check it, then Resume |
| +- `chat.connections.metered.key_failed`: That did not go through. Paste the key again. |
| + |
| +## Open |
| + |
| +- Hosted CI's copy step (`05-copy`, `make copy-release-check`) fails |
| + while these keys are pending; the controller's delegated copy pass |
| + clears it. |
| +- No browser test of the key card's sealing in the page (S1's UI is |
| + checked server-side and by the runner's own seal test); a `-tags |
| + browser` test like the token card's is owed with the UI pass. |
| +- The spec's spend line starts "TensorX:"; the row already names TensorX, |
| + so the line starts at the figures. |
| +- Staging and the real pinned harness are S2. |