Přeskočit na obsah

Tato stránka byla automaticky přeložena z angličtiny, jediného jazyka, ve kterém se tento web píše. Číst originál.

I3380 — A task's spend is the usage attributed to it, as reported tokens with their class, and money stays not observed until it is a separate field

Fill spend from the usage-by-task reading I3293 provides: reported input, output, cache-read and cache-write tokens, the models reported and the measurement class, with the usage event ids. Never re-join or estimate; a task with no received usage reads not_observed with the receiver's reason; any money amount stays not_observed until I3292's fields exist.

BLOKOVÁNO vlna 3 · p1 · profil implementation · bezpečné paralelně

Part of every-task-states-its-delivery-economics — Every task states its delivery economics: wall time, typed human interventions, CI reruns, spend and acceptance, each from a named record or said not observed.

Blocked. This issue cannot start until I3376, I3293 are done. The status is derived from that, not declared.

Cíl

Fill spend from the usage-by-task reading I3293 provides: reported input, output, cache-read and cache-write tokens, the models reported and the measurement class, with the usage event ids. Never re-join or estimate; a task with no received usage reads not_observed with the receiver's reason; any money amount stays not_observed until I3292's fields exist.

Proč

T3 of the owner's report of 2026-10-19 asks for spend per task. every-sessions-usage-is-observed owns receiving and attributing usage and forbids an estimate shown as spend, so depending on I3293 keeps one account of usage.

Aktuální stav

apps/majordomus-cli/src/economics/usage.rs:106-134 normalises benchmark harness usage only; I3288 and I3293 are BLOCKED and not on master; docs/ECONOMICS.md:139-140 says cost is the harness's projection, not a bill.

Cílový stav

Every record shows reported tokens with class and event ids, or not_observed with a reason.

Rozsah

  • apps/majordomus-cli/src/economics
  • apps/majordomus-cli/tests/economics.rs
  • docs/ECONOMICS.md

Mimo rozsah

  • Receiving or attributing usage (I3288, I3293)
  • Pricing (I3292)
  • Any saving figure

Závislosti

Kritéria přijetí

  • A fixture task shows each token category with class and event ids
  • A task with no received usage reads not_observed with I3293's reason
  • No money amount appears
  • spend equals I3293's reading for the same task on the same fixture

Validace

  • cargo test --manifest-path apps/majordomus-cli/Cargo.toml --test economics
  • bash test/run.sh 431_economics_claims_gated

Požadované důkazy

  • test_task_spend_is_attributed_usage

Důkazy

Nic nezaznamenáno. Za každým tokenem výše musí stát příkaz nebo artefakt, než lze tento úkol dokončit; vyprávění se odmítá.

Časová osa

zahájeno
—
ověřeno
—
dokončeno
—

Tato tři pole, důkazy výše a stav závislostí jsou vše, z čeho se stav skládá. Neexistuje žádné pole stavu, které by s nimi mohlo být v rozporu.

Canonical record: .ai/repo/project/issues/I3380.yaml. Read it back with majordomus plan show I3380.

Prohledává názvy a popisy všech stránek, které tento web publikuje.