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.

I3422 — Advisor consultations are economics usage with their measurement class, and a consultation over its plan's budget is a finding

Read each consultation's reported usage, model, latency and outcome into the economics usage record as reported tokens, with no invented cost and absent where the transport reported nothing. Report a consultation whose reported tokens exceed its plan's budget as an economics check finding.

BLOKOVÁNO wave 6 · p2 · implementation profile · parallel safe

Part of an-inference-names-its-source-and-budget — Every inference a decision rests on names its model and source, stays inside a declared budget, counts independent sources rather than answers, and is never reached from a hook path.

Blocked. This issue cannot start until I3418, I3421, I3292, milestone:an-inference-names-its-source-and-budget are done. The status is derived from that, not declared.

Cíl

Read each consultation's reported usage, model, latency and outcome into the economics usage record as reported tokens, with no invented cost and absent where the transport reported nothing. Report a consultation whose reported tokens exceed its plan's budget as an economics check finding.

Proč

The owner's 2026-10-19 Cognitive Fabric pack asks for model calls and tokens to be attributed, and for estimates to be kept apart from billing (campaigns/prismatic-way-cognitive-fabric-prompt-pack/contracts/ECONOMICS.md). prompts/04_REASONING_MESH.md names unexpected model cost as a required test.

Aktuální stav

AdvisorUsage holds input and output tokens only (apps/majordomus-cli/src/reasoning/record.rs:384-390), and no file under apps/majordomus-cli/src/economics names a consultation or an advisor. I3292 plans reported, estimated and billed fields for provider usage.

Cílový stav

economics summary has an advisor-consultation row per source with reported tokens, latency and outcome counts. Cost is absent unless I3292's estimate applies, and economics check names an over-budget consultation.

Rozsah

  • apps/majordomus-cli/src/economics/model.rs
  • apps/majordomus-cli/src/economics/report.rs
  • apps/majordomus-cli/src/capability/builtin/economics.rs
  • apps/majordomus-cli/tests/economics.rs
  • docs/ECONOMICS.md

Mimo rozsah

  • Price lists or billing reconciliation (I3292)
  • Provider session usage (milestone every-sessions-usage-is-observed)
  • Any UI screen

Závislosti

Kritéria přijetí

  • A fixture task with two consultations yields their reported tokens in economics summary with class reported
  • A consultation that reported no usage shows absent with a reason, never zero
  • A consultation above its plan's budget is an economics check finding that names it

Validace

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

Požadované důkazy

  • economics test over a reasoning-store fixture

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/I3422.yaml. Read it back with majordomus plan show I3422.

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