Skip to content

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.

BLOCKED 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.

Objective

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.

Why

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.

Current state

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.

Desired state

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.

Scope

  • 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

Out of scope

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

Dependencies

Acceptance criteria

  • 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

Validation

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

Evidence required

  • economics test over a reasoning-store fixture

Evidence

None recorded. Every token above needs a command or an artifact behind it before this issue can be completed; narrative is refused.

Timeline

started
—
verified
—
completed
—

Those three fields, the evidence above and the state of the dependencies are all the status is made of. There is no status field to disagree with them.

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

Searches the titles and descriptions of every page this site publishes.