oficina / equipo Public

S4 copy: apply the delegated review (Astra, 2026-11-12)

51 keys, 39 kept and 12 changed, applied verbatim and marked accepted
by delegation in copy.go and the Plan 3 inventory; the tests and
fixtures quoting them, and the progress file, follow.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev 1ecb1a77760a11122a70f8d9e697ef3945fcf754 parent fd99586
8 files changed, +125 −112
  • docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md +51 −51
  • docs/superpowers/plans/S4-USAGE-PROGRESS.md +14 −1
  • internal/equipo/copy.go +51 −51
  • internal/equipo/usage_page_test.go +2 −2
  • internal/headless/browser_usage_test.go +1 −1
  • internal/thintest/usage_contract_test.go +4 −4
  • internal/wire/wiretest/testdata/api/advice.json +1 −1
  • internal/wire/wiretest/testdata/api/card-advice.json +1 −1

CI cancelled — superseded by a newer push — run details

diff --git a/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md b/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
index 0a0f2afc..cef86bc1 100644
--- a/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
+++ b/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
@@ -6157,57 +6157,57 @@ records remain unchanged.
| `chat.held.budget` | %s has reached its budget. Raise it, or wait for the budget to reset. | Scheduler S3: the card for a step held on a budget (Wait only; Raise the budget is on Connections); %s provider | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
| `chat.card.wait_reset` | Wait | Scheduler S3: the held card's Wait button | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
| `chat.card.run_now` | Run it now | Scheduler S3: the held card's Run it now button | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
-| `nav.usage` | Usage | Usage S4: the sidebar entry beside Needs you (Connections rev 3 §6) | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `nav.usage_attention` | Something on Usage needs a look | Usage S4: the sidebar dot's label (screen readers): a connection limited or needing a sign-in, or a metered one paused | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `usage.title` | Usage | Usage S4: the page title | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `usage.lede` | What can run now, what it costs, and where the tokens went. | Usage S4: the page's lede under the title | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `usage.advice` | Advice | Usage S4: the advice card's label at the top of the page (screen readers) | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `usage.now` | Available now | Usage S4: heading of the availability part | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `usage.reading.as_of` | as of %s | Usage S4, ruling #7: a Codex reading's age after its meters and on a held step's line; %s is how long ago (2 h ago); Codex refreshes without a model turn | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `usage.reading.last_reported` | as last reported %s | Usage S4, ruling #7: a Claude reading's age; %s is how long ago; Claude reports headroom only on a turn | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `usage.reading.none` | Headroom not reported | Usage S4: a ready subscription whose provider reported no headroom | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `usage.no_connections` | Nothing is connected yet. | Usage S4: availability with nothing connected; followed by the Add a connection link | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `usage.connect` | Add a connection | Usage S4: link to Add a connection when nothing is connected | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `usage.spend` | Spend this month | Usage S4: heading of the spend part (metered connections and subscriptions' plans) | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `usage.price_source` | %s prices taken from the public page on %s. | Usage S4, controller's price note: where prices come from, read from the price table's version; %s the provider (TensorX), %s the day its public page was read (12 Nov 2026) | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `usage.plan_tokens` | %s tokens this month | Usage S4: a subscription's tokens this month (never a money figure); %s is a token count (1.2M) | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `usage.plan` | %s plan | Usage S4: a subscription's plan as its provider names it; %s is the plan (Pro) | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `usage.spend_none` | Nothing here spends money: every connection is a subscription. | Usage S4: the spend part when no connection is metered | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `usage.tokens` | Token use | Usage S4: heading of the token use part, and its tabs' label | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `usage.period.day` | Today | Usage S4: token use tab, today in the person's zone | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `usage.period.week` | This week | Usage S4: token use tab, since Monday | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `usage.period.month` | This month | Usage S4: token use tab, since the 1st | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `usage.by.connection` | Connection | Usage S4: token use grouping tab and first column heading | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `usage.by.role` | Role | Usage S4: token use grouping tab and first column heading | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `usage.by.project` | Project | Usage S4: token use grouping tab and first column heading | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `usage.by.task` | Task | Usage S4: token use grouping tab and first column heading | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `usage.col.input` | Input | Usage S4: token table column, every input token read | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `usage.col.cached` | Cached input | Usage S4: token table column, input read from cache | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `usage.col.output` | Output | Usage S4: token table column | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `usage.col.estimate` | Estimate | Usage S4: token table column, the cost a price table gave (metered rows only) | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `usage.tokens_empty` | No tokens recorded for this period. | Usage S4: the token table with no rows for the period | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `usage.no_task` | The conversation | Usage S4: the project or task row for usage with no task (coordinator turns) | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `usage.role.probe` | Connection checks | Usage S4: the role row for a metered key's one-token checks | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `usage.at_least` | at least %s | Usage S4: a token figure when a row lacked one; %s is the figure | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `work.hold.reading` | %s · %s | Usage S4, ruling #7: a held step's line with its reading's age; the first %s is the hold line, the second usage.reading.as_of or usage.reading.last_reported | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `advice.not_now` | Not now | Advice S4 (spec 9): the second button on a prefer_switch, defer_tasks or held_long card; silences the advice 14 days, then 60 | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `advice.leave_it` | Leave it | Advice S4: the second button on a budget_near card | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `advice.budget_near.day` | %s: %s of today’s %s. | Advice S4, budget_near: %s the provider (TensorX), %s spend today ($0.84), %s today's budget ($1) | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `advice.budget_near.month` | %s: %s of this month’s %s. | Advice S4, budget_near: %s the provider, %s spend this month, %s this month's budget | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `advice.budget_near.raise_day` | Raise today’s budget to %s | Advice S4, budget_near's action: doubles today's budget; %s the new figure ($2) | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `advice.budget_near.raise_month` | Raise this month’s budget to %s | Advice S4, budget_near's action: doubles this month's budget; %s the new figure | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `advice.prefer_switch` | %s is near its limit until %s. %s has room. Prefer %s until then? | Advice S4, prefer_switch: %s the preferred provider (Claude), %s the day its window resets (Thu 19 Nov), %s and %s the other provider (Codex); the preference is one for every role | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `advice.prefer_switch.act` | Prefer %s until %s | Advice S4, prefer_switch's action: prefers the other provider until the reset; %s the provider, %s the day | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `advice.defer_tasks.one` | One task could wait until %s so the urgent work goes first. Let it wait? | Advice S4, defer_tasks with one normal task: %s the day the urgent work's reset comes (Thu 19 Nov) | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `advice.defer_tasks.many` | %d tasks could wait until %s so the urgent work goes first. Let them wait? | Advice S4, defer_tasks: %d how many normal tasks, %s the day of the reset | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `advice.defer_tasks.one_no_reset` | One task could wait so the urgent work goes first. Let it wait? | Advice S4, defer_tasks with one task, no reset reported | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `advice.defer_tasks.many_no_reset` | %d tasks could wait so the urgent work goes first. Let them wait? | Advice S4, defer_tasks, no reset reported; %d how many | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `advice.defer_tasks.act_one` | Make it low priority | Advice S4, defer_tasks' action for one task | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `advice.defer_tasks.act_many` | Make them low priority | Advice S4, defer_tasks' action | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `advice.held_long.one` | A low-priority task has waited a week. | Advice S4, held_long with one low task held a week | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `advice.held_long.many` | %d low-priority tasks have waited a week. | Advice S4, held_long: %d how many low tasks | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `advice.held_long.act_one` | Make it normal | Advice S4, held_long's action for one task | Runtime; COPY REVIEW REQUIRED (S4 usage) |
-| `advice.held_long.act_many` | Make them normal | Advice S4, held_long's action | Runtime; COPY REVIEW REQUIRED (S4 usage) |
+| `nav.usage` | Usage | Usage S4: the sidebar entry beside Needs you (Connections rev 3 §6) | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `nav.usage_attention` | Something on Usage needs your attention | Usage S4: the sidebar dot's label (screen readers): a connection limited or needing a sign-in, or a metered one paused | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `usage.title` | Usage | Usage S4: the page title | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `usage.lede` | What can run now, what it costs, and where the tokens went. | Usage S4: the page's lede under the title | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `usage.advice` | Advice | Usage S4: the advice card's label at the top of the page (screen readers) | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `usage.now` | Available now | Usage S4: heading of the availability part | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `usage.reading.as_of` | as of %s | Usage S4, ruling #7: a Codex reading's age after its meters and on a held step's line; %s is how long ago (2 h ago); Codex refreshes without a model turn | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `usage.reading.last_reported` | last reported %s | Usage S4, ruling #7: a Claude reading's age; %s is how long ago; Claude reports headroom only on a turn | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `usage.reading.none` | Remaining usage not reported | Usage S4: a ready subscription whose provider reported no headroom | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `usage.no_connections` | Nothing is connected yet. | Usage S4: availability with nothing connected; followed by the Add a connection link | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `usage.connect` | Add a connection | Usage S4: link to Add a connection when nothing is connected | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `usage.spend` | Spend this month | Usage S4: heading of the spend part (metered connections and subscriptions' plans) | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `usage.price_source` | %s prices taken from the public page on %s. | Usage S4, controller's price note: where prices come from, read from the price table's version; %s the provider (TensorX), %s the day its public page was read (12 Nov 2026) | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `usage.plan_tokens` | %s tokens this month | Usage S4: a subscription's tokens this month (never a money figure); %s is a token count (1.2M) | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `usage.plan` | %s plan | Usage S4: a subscription's plan as its provider names it; %s is the plan (Pro) | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `usage.spend_none` | Every connection uses a subscription. There are no separate token charges. | Usage S4: the spend part when no connection is metered | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `usage.tokens` | Token use | Usage S4: heading of the token use part, and its tabs' label | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `usage.period.day` | Today | Usage S4: token use tab, today in the person's zone | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `usage.period.week` | This week | Usage S4: token use tab, since Monday | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `usage.period.month` | This month | Usage S4: token use tab, since the 1st | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `usage.by.connection` | Connection | Usage S4: token use grouping tab and first column heading | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `usage.by.role` | Role | Usage S4: token use grouping tab and first column heading | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `usage.by.project` | Project | Usage S4: token use grouping tab and first column heading | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `usage.by.task` | Task | Usage S4: token use grouping tab and first column heading | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `usage.col.input` | Input | Usage S4: token table column, every input token read | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `usage.col.cached` | Reused input | Usage S4: token table column, input read from cache | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `usage.col.output` | Output | Usage S4: token table column | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `usage.col.estimate` | Estimated cost | Usage S4: token table column, the cost a price table gave (metered rows only) | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `usage.tokens_empty` | No tokens recorded for this period. | Usage S4: the token table with no rows for the period | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `usage.no_task` | The conversation | Usage S4: the project or task row for usage with no task (coordinator turns) | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `usage.role.probe` | Connection checks | Usage S4: the role row for a metered key's one-token checks | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `usage.at_least` | at least %s | Usage S4: a token figure when a row lacked one; %s is the figure | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `work.hold.reading` | %s · %s | Usage S4, ruling #7: a held step's line with its reading's age; the first %s is the hold line, the second usage.reading.as_of or usage.reading.last_reported | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `advice.not_now` | Not now | Advice S4 (spec 9): the second button on a prefer_switch, defer_tasks or held_long card; silences the advice 14 days, then 60 | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `advice.leave_it` | Not now | Advice S4: the second button on a budget_near card | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `advice.budget_near.day` | %s: %s of today’s %s budget used. | Advice S4, budget_near: %s the provider (TensorX), %s spend today ($0.84), %s today's budget ($1) | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `advice.budget_near.month` | %s: %s of this month’s %s budget used. | Advice S4, budget_near: %s the provider, %s spend this month, %s this month's budget | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `advice.budget_near.raise_day` | Raise today’s budget to %s | Advice S4, budget_near's action: doubles today's budget; %s the new figure ($2) | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `advice.budget_near.raise_month` | Raise this month’s budget to %s | Advice S4, budget_near's action: doubles this month's budget; %s the new figure | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `advice.prefer_switch` | %s is near its limit, which resets on %s. %s has room. Prefer %s for all roles until then? | Advice S4, prefer_switch: %s the preferred provider (Claude), %s the day its window resets (Thu 19 Nov), %s and %s the other provider (Codex); the preference is one for every role | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `advice.prefer_switch.act` | Prefer %s until %s | Advice S4, prefer_switch's action: prefers the other provider until the reset; %s the provider, %s the day | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `advice.defer_tasks.one` | One task could wait until %s so the urgent work goes first. Let it wait? | Advice S4, defer_tasks with one normal task: %s the day the urgent work's reset comes (Thu 19 Nov) | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `advice.defer_tasks.many` | %d tasks could wait until %s so the urgent work goes first. Let them wait? | Advice S4, defer_tasks: %d how many normal tasks, %s the day of the reset | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `advice.defer_tasks.one_no_reset` | One task could wait so the urgent work goes first. Let it wait? | Advice S4, defer_tasks with one task, no reset reported | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `advice.defer_tasks.many_no_reset` | %d tasks could wait so the urgent work goes first. Let them wait? | Advice S4, defer_tasks, no reset reported; %d how many | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `advice.defer_tasks.act_one` | Make it low priority | Advice S4, defer_tasks' action for one task | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `advice.defer_tasks.act_many` | Make them low priority | Advice S4, defer_tasks' action | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `advice.held_long.one` | A low-priority task has waited a week. | Advice S4, held_long with one low task held a week | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `advice.held_long.many` | %d low-priority tasks have waited a week. | Advice S4, held_long: %d how many low tasks | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `advice.held_long.act_one` | Set it to normal priority | Advice S4, held_long's action for one task | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
+| `advice.held_long.act_many` | Set them to normal priority | Advice S4, held_long's action | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
| `work.row.step` | Step %d of %d | Tasks rows redesign (2026-11-12): the stepper's label for screen readers | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
| `work.done_more` | Show %d more | Tasks rows redesign (2026-11-12): Done's fold | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
| `chat.card.research_for` | For %s | Research task page (R5, 2026-11-12): the sources card; %s is the task's title | Runtime; COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12) |
diff --git a/docs/superpowers/plans/S4-USAGE-PROGRESS.md b/docs/superpowers/plans/S4-USAGE-PROGRESS.md
index f12b197e..2df08e09 100644
--- a/docs/superpowers/plans/S4-USAGE-PROGRESS.md
+++ b/docs/superpowers/plans/S4-USAGE-PROGRESS.md
@@ -219,7 +219,20 @@ provider: fakes only.
load and after each form.
- The staging witness waits for a release.
-## Copy keys (COPY REVIEW REQUIRED (S4 usage), in the Plan 3 inventory)
+## Copy keys (in the Plan 3 inventory)
+
+The 51 strings below, as first written, went through Astra as the
+copy-review gate (Paul's delegation of 2026-10-25): 39 kept, 12 changed,
+applied verbatim, each now `COPY ACCEPTED BY DELEGATION (Astra,
+2026-11-12)` in `copy.go` and in the inventory. The changes drop
+"headroom" and "cached" ("Remaining usage not reported", "Reused
+input"), name the estimate ("Estimated cost"), say a Claude reading was
+"last reported", say what the budget figures are ("$0.84 of today’s $1
+budget used."), make Leave it "Not now" like every other card, say the
+reset's day and that the preference covers every role ("…, which resets
+on Thu 19 Nov. Codex has room. Prefer Codex for all roles until then?"),
+say subscriptions bring no separate token charges, and say "Set them to
+normal priority". The tests and fixtures that quote these follow.
- `nav.usage`: Usage
- `nav.usage_attention`: Something on Usage needs a look
diff --git a/internal/equipo/copy.go b/internal/equipo/copy.go
index 9048bde3..bf834e90 100644
--- a/internal/equipo/copy.go
+++ b/internal/equipo/copy.go
@@ -986,57 +986,57 @@ var pageCopy = map[string]string{
"chat.held.budget": "%s has reached its budget. Raise it, or wait for the budget to reset.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
"chat.card.wait_reset": "Wait", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
"chat.card.run_now": "Run it now", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
- "nav.usage": "Usage", // COPY REVIEW REQUIRED (S4 usage)
- "nav.usage_attention": "Something on Usage needs a look", // COPY REVIEW REQUIRED (S4 usage)
- "usage.title": "Usage", // COPY REVIEW REQUIRED (S4 usage)
- "usage.lede": "What can run now, what it costs, and where the tokens went.", // COPY REVIEW REQUIRED (S4 usage)
- "usage.advice": "Advice", // COPY REVIEW REQUIRED (S4 usage)
- "usage.now": "Available now", // COPY REVIEW REQUIRED (S4 usage)
- "usage.reading.as_of": "as of %s", // COPY REVIEW REQUIRED (S4 usage)
- "usage.reading.last_reported": "as last reported %s", // COPY REVIEW REQUIRED (S4 usage)
- "usage.reading.none": "Headroom not reported", // COPY REVIEW REQUIRED (S4 usage)
- "usage.no_connections": "Nothing is connected yet.", // COPY REVIEW REQUIRED (S4 usage)
- "usage.connect": "Add a connection", // COPY REVIEW REQUIRED (S4 usage)
- "usage.spend": "Spend this month", // COPY REVIEW REQUIRED (S4 usage)
- "usage.price_source": "%s prices taken from the public page on %s.", // COPY REVIEW REQUIRED (S4 usage)
- "usage.plan_tokens": "%s tokens this month", // COPY REVIEW REQUIRED (S4 usage)
- "usage.plan": "%s plan", // COPY REVIEW REQUIRED (S4 usage)
- "usage.spend_none": "Nothing here spends money: every connection is a subscription.", // COPY REVIEW REQUIRED (S4 usage)
- "usage.tokens": "Token use", // COPY REVIEW REQUIRED (S4 usage)
- "usage.period.day": "Today", // COPY REVIEW REQUIRED (S4 usage)
- "usage.period.week": "This week", // COPY REVIEW REQUIRED (S4 usage)
- "usage.period.month": "This month", // COPY REVIEW REQUIRED (S4 usage)
- "usage.by.connection": "Connection", // COPY REVIEW REQUIRED (S4 usage)
- "usage.by.role": "Role", // COPY REVIEW REQUIRED (S4 usage)
- "usage.by.project": "Project", // COPY REVIEW REQUIRED (S4 usage)
- "usage.by.task": "Task", // COPY REVIEW REQUIRED (S4 usage)
- "usage.col.input": "Input", // COPY REVIEW REQUIRED (S4 usage)
- "usage.col.cached": "Cached input", // COPY REVIEW REQUIRED (S4 usage)
- "usage.col.output": "Output", // COPY REVIEW REQUIRED (S4 usage)
- "usage.col.estimate": "Estimate", // COPY REVIEW REQUIRED (S4 usage)
- "usage.tokens_empty": "No tokens recorded for this period.", // COPY REVIEW REQUIRED (S4 usage)
- "usage.no_task": "The conversation", // COPY REVIEW REQUIRED (S4 usage)
- "usage.role.probe": "Connection checks", // COPY REVIEW REQUIRED (S4 usage)
- "usage.at_least": "at least %s", // COPY REVIEW REQUIRED (S4 usage)
- "work.hold.reading": "%s · %s", // COPY REVIEW REQUIRED (S4 usage)
- "advice.not_now": "Not now", // COPY REVIEW REQUIRED (S4 usage)
- "advice.leave_it": "Leave it", // COPY REVIEW REQUIRED (S4 usage)
- "advice.budget_near.day": "%s: %s of today’s %s.", // COPY REVIEW REQUIRED (S4 usage)
- "advice.budget_near.month": "%s: %s of this month’s %s.", // COPY REVIEW REQUIRED (S4 usage)
- "advice.budget_near.raise_day": "Raise today’s budget to %s", // COPY REVIEW REQUIRED (S4 usage)
- "advice.budget_near.raise_month": "Raise this month’s budget to %s", // COPY REVIEW REQUIRED (S4 usage)
- "advice.prefer_switch": "%s is near its limit until %s. %s has room. Prefer %s until then?", // COPY REVIEW REQUIRED (S4 usage)
- "advice.prefer_switch.act": "Prefer %s until %s", // COPY REVIEW REQUIRED (S4 usage)
- "advice.defer_tasks.one": "One task could wait until %s so the urgent work goes first. Let it wait?", // COPY REVIEW REQUIRED (S4 usage)
- "advice.defer_tasks.many": "%d tasks could wait until %s so the urgent work goes first. Let them wait?", // COPY REVIEW REQUIRED (S4 usage)
- "advice.defer_tasks.one_no_reset": "One task could wait so the urgent work goes first. Let it wait?", // COPY REVIEW REQUIRED (S4 usage)
- "advice.defer_tasks.many_no_reset": "%d tasks could wait so the urgent work goes first. Let them wait?", // COPY REVIEW REQUIRED (S4 usage)
- "advice.defer_tasks.act_one": "Make it low priority", // COPY REVIEW REQUIRED (S4 usage)
- "advice.defer_tasks.act_many": "Make them low priority", // COPY REVIEW REQUIRED (S4 usage)
- "advice.held_long.one": "A low-priority task has waited a week.", // COPY REVIEW REQUIRED (S4 usage)
- "advice.held_long.many": "%d low-priority tasks have waited a week.", // COPY REVIEW REQUIRED (S4 usage)
- "advice.held_long.act_one": "Make it normal", // COPY REVIEW REQUIRED (S4 usage)
- "advice.held_long.act_many": "Make them normal", // COPY REVIEW REQUIRED (S4 usage)
+ "nav.usage": "Usage", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "nav.usage_attention": "Something on Usage needs your attention", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "usage.title": "Usage", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "usage.lede": "What can run now, what it costs, and where the tokens went.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "usage.advice": "Advice", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "usage.now": "Available now", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "usage.reading.as_of": "as of %s", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "usage.reading.last_reported": "last reported %s", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "usage.reading.none": "Remaining usage not reported", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "usage.no_connections": "Nothing is connected yet.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "usage.connect": "Add a connection", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "usage.spend": "Spend this month", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "usage.price_source": "%s prices taken from the public page on %s.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "usage.plan_tokens": "%s tokens this month", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "usage.plan": "%s plan", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "usage.spend_none": "Every connection uses a subscription. There are no separate token charges.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "usage.tokens": "Token use", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "usage.period.day": "Today", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "usage.period.week": "This week", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "usage.period.month": "This month", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "usage.by.connection": "Connection", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "usage.by.role": "Role", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "usage.by.project": "Project", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "usage.by.task": "Task", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "usage.col.input": "Input", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "usage.col.cached": "Reused input", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "usage.col.output": "Output", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "usage.col.estimate": "Estimated cost", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "usage.tokens_empty": "No tokens recorded for this period.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "usage.no_task": "The conversation", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "usage.role.probe": "Connection checks", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "usage.at_least": "at least %s", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "work.hold.reading": "%s · %s", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "advice.not_now": "Not now", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "advice.leave_it": "Not now", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "advice.budget_near.day": "%s: %s of today’s %s budget used.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "advice.budget_near.month": "%s: %s of this month’s %s budget used.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "advice.budget_near.raise_day": "Raise today’s budget to %s", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "advice.budget_near.raise_month": "Raise this month’s budget to %s", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "advice.prefer_switch": "%s is near its limit, which resets on %s. %s has room. Prefer %s for all roles until then?", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "advice.prefer_switch.act": "Prefer %s until %s", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "advice.defer_tasks.one": "One task could wait until %s so the urgent work goes first. Let it wait?", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "advice.defer_tasks.many": "%d tasks could wait until %s so the urgent work goes first. Let them wait?", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "advice.defer_tasks.one_no_reset": "One task could wait so the urgent work goes first. Let it wait?", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "advice.defer_tasks.many_no_reset": "%d tasks could wait so the urgent work goes first. Let them wait?", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "advice.defer_tasks.act_one": "Make it low priority", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "advice.defer_tasks.act_many": "Make them low priority", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "advice.held_long.one": "A low-priority task has waited a week.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "advice.held_long.many": "%d low-priority tasks have waited a week.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "advice.held_long.act_one": "Set it to normal priority", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
+ "advice.held_long.act_many": "Set them to normal priority", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-12)
"chat.connections.loading_sub": "This takes a moment.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
"chat.connections.codex_sub": "Your ChatGPT account, through Codex.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
"chat.connections.claude_sub": "Claude signs in on the machine that runs your runner.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
diff --git a/internal/equipo/usage_page_test.go b/internal/equipo/usage_page_test.go
index 8f27084b..9c1cc2cf 100644
--- a/internal/equipo/usage_page_test.go
+++ b/internal/equipo/usage_page_test.go
@@ -56,7 +56,7 @@ func TestUsagePage(t *testing.T) {
if c := got["cn_cx"]; c.Age != "as of "+ago(usageNow, usageNow.Add(-2*time.Hour)) || len(c.Meters) != 2 {
t.Fatalf("codex %+v", c)
}
- if c := got["cn_cl"]; c.Age != "as last reported "+ago(usageNow, usageNow.Add(-5*time.Hour)) || len(c.Meters) != 1 {
+ if c := got["cn_cl"]; c.Age != "last reported "+ago(usageNow, usageNow.Add(-5*time.Hour)) || len(c.Meters) != 1 {
t.Fatalf("claude %+v", c)
}
if c := got["cn_old"]; c.Age != "" || !strings.Contains(c.Name, "second@example.com") {
@@ -150,7 +150,7 @@ func TestHoldLineSaysTheReadingsAge(t *testing.T) {
v.Hold = holdOf(step, true)
v.StageLine = v.Hold.Line
holdReading(&v, usageConns(), usageNow)
- if !strings.HasPrefix(v.Hold.Line, "Waiting for your Claude allowance to reset") || !strings.HasSuffix(v.Hold.Line, " · as last reported "+ago(usageNow, usageNow.Add(-5*time.Hour))) || v.StageLine != v.Hold.Line {
+ if !strings.HasPrefix(v.Hold.Line, "Waiting for your Claude allowance to reset") || !strings.HasSuffix(v.Hold.Line, " · last reported "+ago(usageNow, usageNow.Add(-5*time.Hour))) || v.StageLine != v.Hold.Line {
t.Fatalf("hold line %q / %q", v.Hold.Line, v.StageLine)
}
step.Hold.Connection, step.Hold.Provider = "codex-2", wire.ProviderCodex
diff --git a/internal/headless/browser_usage_test.go b/internal/headless/browser_usage_test.go
index ec5cb470..e15e517d 100644
--- a/internal/headless/browser_usage_test.go
+++ b/internal/headless/browser_usage_test.go
@@ -57,7 +57,7 @@ func TestBrowserUsageAndAdvice(t *testing.T) {
p.check(`document.querySelector('#nav-usage').getAttribute('href')==='/usage'`, "the sidebar does not lead to Usage")
p.check(`!!document.querySelector('[data-advice-card]') && document.querySelectorAll('[equipo-card="advice"]').length===1`, "no one quiet advice card in the conversation")
p.run(chromedp.Navigate(inst.URL+"/usage"), browsertest.Wait(`!!document.querySelector('[data-usage]')`))
- p.check(`(()=>{const a=document.querySelector('[data-advice]');const now=document.querySelector('#usage-now');return a&&now&&a.compareDocumentPosition(now)&Node.DOCUMENT_POSITION_FOLLOWING&&a.querySelector('[data-advice-text]').textContent==='TensorX: $0.84 of today’s $1.'})()`, "the advice is not the card at the top")
+ p.check(`(()=>{const a=document.querySelector('[data-advice]');const now=document.querySelector('#usage-now');return a&&now&&a.compareDocumentPosition(now)&Node.DOCUMENT_POSITION_FOLLOWING&&a.querySelector('[data-advice-text]').textContent==='TensorX: $0.84 of today’s $1 budget used.'})()`, "the advice is not the card at the top")
p.check(`(()=>{const b=document.querySelector('[data-advice-act]').getBoundingClientRect();return b.width>0&&b.height>=`+map[bool]string{true: "24", false: "44"}[width > 600]+`&&b.top>=0})()`, "the advice's action is out of reach")
p.check(`document.querySelector('[data-available] [data-reading-age]').textContent==='as of 2 h ago'`, "no reading age on Codex's row")
p.check(`document.querySelector('[data-spend] [data-spend-line]').textContent.includes('$0.84 of $1 today')`, "no spend line")
diff --git a/internal/thintest/usage_contract_test.go b/internal/thintest/usage_contract_test.go
index 3440e8f1..84eb0861 100644
--- a/internal/thintest/usage_contract_test.go
+++ b/internal/thintest/usage_contract_test.go
@@ -57,7 +57,7 @@ func TestContractUsage(t *testing.T) {
owner := r.inst.Cookie()
page := r.get(owner, "/usage", 200)
- for _, want := range []string{`id="nav-usage"`, `data-available=`, `data-reading-age>as last reported 2 h ago`, `data-spend-line>$0.84 of $1 today · $6.20 of $10 this month`, `data-usage-table`} {
+ for _, want := range []string{`id="nav-usage"`, `data-available=`, `data-reading-age>last reported 2 h ago`, `data-spend-line>$0.84 of $1 today · $6.20 of $10 this month`, `data-usage-table`} {
if !strings.Contains(page, want) {
t.Fatalf("usage page lacks %s", want)
}
@@ -79,14 +79,14 @@ func TestContractUsage(t *testing.T) {
t.Fatal(err)
}
a := list.Items[0]
- if a.Kind != wire.AdviceBudgetNear || a.Act != "Raise today’s budget to $2" || a.Dismiss != "Leave it" || a.Text != "TensorX: $0.84 of today’s $1." {
+ if a.Kind != wire.AdviceBudgetNear || a.Act != "Raise today’s budget to $2" || a.Dismiss != "Not now" || a.Text != "TensorX: $0.84 of today’s $1 budget used." {
t.Fatalf("advice %+v", a)
}
page = r.get(owner, "/usage", 200)
if !strings.Contains(page, `data-advice="`+a.ID+`"`) || strings.Index(page, "data-advice=") > strings.Index(page, `id="usage-now"`) {
t.Fatal("the advice is not at the top of Usage")
}
- if conv := r.get(owner, "/conversation", 200); !strings.Contains(conv, `data-advice-choice="act"`) || !strings.Contains(conv, "TensorX: $0.84 of today’s $1.") {
+ if conv := r.get(owner, "/conversation", 200); !strings.Contains(conv, `data-advice-choice="act"`) || !strings.Contains(conv, "TensorX: $0.84 of today’s $1 budget used.") {
t.Fatal("no quiet advice card in the conversation")
}
if needs, err := r.client.NeedsYou(r.ctx); err != nil || len(needs.Items) != 0 {
@@ -117,7 +117,7 @@ func TestContractUsage(t *testing.T) {
_, d := r.expect(wire.FrameDispatch)
reset := time.Now().Add(70 * time.Hour).UTC().Truncate(time.Second)
r.hold("uh", d.(*wire.DispatchCommand), wire.StepHold{Reason: wire.HoldHeadroom, Connection: "claude-a", Provider: wire.ProviderClaude, ResetsAt: &reset, WakeAt: &reset, StepRevision: 1})
- if page := r.get(owner, "/tasks/"+id, 200); !strings.Contains(page, "Waiting for your Claude allowance to reset") || !strings.Contains(page, " · as last reported 2 h ago") {
+ if page := r.get(owner, "/tasks/"+id, 200); !strings.Contains(page, "Waiting for your Claude allowance to reset") || !strings.Contains(page, " · last reported 2 h ago") {
t.Fatal("the hold line does not say the reading's age")
}
diff --git a/internal/wire/wiretest/testdata/api/advice.json b/internal/wire/wiretest/testdata/api/advice.json
index f0fa1335..607f4d70 100644
--- a/internal/wire/wiretest/testdata/api/advice.json
+++ b/internal/wire/wiretest/testdata/api/advice.json
@@ -1 +1 @@
-{"items":[{"id":"ad_0001","kind":"budget_near","key":"budget_near:cn_0003","state":"open","subject":{"connection":"cn_0003"},"text":"TensorX: $0.84 of today’s $1.","act":"Raise today’s budget to $2","dismiss":"Leave it","revision":1,"created_at":"2026-11-12T09:00:00Z","visible_at":null}]}
+{"items":[{"id":"ad_0001","kind":"budget_near","key":"budget_near:cn_0003","state":"open","subject":{"connection":"cn_0003"},"text":"TensorX: $0.84 of today’s $1 budget used.","act":"Raise today’s budget to $2","dismiss":"Not now","revision":1,"created_at":"2026-11-12T09:00:00Z","visible_at":null}]}
diff --git a/internal/wire/wiretest/testdata/api/card-advice.json b/internal/wire/wiretest/testdata/api/card-advice.json
index 5a7b8973..7cfc59ba 100644
--- a/internal/wire/wiretest/testdata/api/card-advice.json
+++ b/internal/wire/wiretest/testdata/api/card-advice.json
@@ -1 +1 @@
-{"id":"c_0004","revision":1,"kind":"advice","state":"open","turn_id":"","project_id":"","name":"","question":"Claude is near its limit until Thu. Codex has room. Prefer Codex until then?","options":["act","dismiss"],"choice":"","task_id":"","created_at":"2026-11-12T09:00:00Z","updated_at":"2026-11-12T09:00:00Z","advice":{"id":"ad_0002","kind":"prefer_switch","key":"prefer_switch:engineering/cn_0002","state":"open","subject":{"connection":"cn_0002","role":"engineering"},"text":"Claude is near its limit until Thu. Codex has room. Prefer Codex until then?","act":"Prefer Codex until Thu","dismiss":"Not now","revision":1,"created_at":"2026-11-12T09:00:00Z","visible_at":null}}
+{"id":"c_0004","revision":1,"kind":"advice","state":"open","turn_id":"","project_id":"","name":"","question":"Claude is near its limit, which resets on Thu 19 Nov. Codex has room. Prefer Codex for all roles until then?","options":["act","dismiss"],"choice":"","task_id":"","created_at":"2026-11-12T09:00:00Z","updated_at":"2026-11-12T09:00:00Z","advice":{"id":"ad_0002","kind":"prefer_switch","key":"prefer_switch:engineering/cn_0002","state":"open","subject":{"connection":"cn_0002","role":"engineering"},"text":"Claude is near its limit, which resets on Thu 19 Nov. Codex has room. Prefer Codex for all roles until then?","act":"Prefer Codex until Thu 19 Nov","dismiss":"Not now","revision":1,"created_at":"2026-11-12T09:00:00Z","visible_at":null}}