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.

I3296 — Each compaction is measured: the context before and after, from the provider's report

Record pre- and post-compaction token counts from the provider's own events (PreCompact/PostCompact and the compaction telemetry) against the episode, and derive the ratio and the time to the next compaction.

BLOKOVÁNO wave 2 · p3 · implementation profile · parallel safe

Part of every-sessions-usage-is-observed — What every AI session consumed is observed from the provider, attributed to the work it served, and never estimated into a fact.

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

Cíl

Record pre- and post-compaction token counts from the provider's own events (PreCompact/PostCompact and the compaction telemetry) against the episode, and derive the ratio and the time to the next compaction.

Proč

Compression strategies are argued about and never measured; the episode boundary already sees every compaction (ADR 0015). The PreCompact hook carries no token counts and the compaction event is an unverified vendor claim; transcript parsing is rejected by ADR 0213. It extends milestone execution-telemetry. Proposed in ADR 0213 (Usage is observed through each provider's official telemetry into one provider-neutral record, and reported, estimated and billed amounts are never merged) (proposed; it carries no authority until the owner accepts it). Sources: chatgpt-majordomus:c236#4.

Aktuální stav

PreCompact is captured as an episode event; no token counts are kept.

Cílový stav

Compaction ratio per episode is a derived metric with its sample size.

Rozsah

  • apps/majordomus-cli/src/economics
  • lib/capture.sh

Závislosti

Kritéria přijetí

  • A fixture compaction yields a ratio and both counts
  • A compaction without reported counts is recorded absent
  • Work starts only once a captured compaction event with pre- and post-token counts, from a dated client version, is a fixture; without it compaction counts are recorded absent and no transcript is parsed

Validace

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

Požadované důkazy

  • case_compaction_is_measured

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

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