Skip to content

Status honesty: invalidations counts byte-moving recomputes, not provider cache busts #353

Closed

Description

@abogartz

Part of #349.

Context (measured, #346 audit)

The epoch re-scores at every user prompt (prompt_reveal) and counts every byte-moving recompute as an invalidation. The provider receipts say the real cost is much smaller: the memory block rides at the END of the system message, so a selected-row change re-prefills only the tail — 68–427 input tokens/turn on the audited session, cache share 94.4% (fixed build) vs 97.5% (frozen baseline). The current wording ("every one invalidated a prompt cache") overstates cost and makes the honest number invisible.

Change

Relabel the metric everywhere it surfaces — src/status/payload.ts docs, the memory_status tool text, and the TUI panel (src/tui.tsx):

Acceptance

  • All three surfaces carry the corrected wording; no counter logic changes (git diff touches no increment site).
  • A short docs note records the measured numbers: ~344 input tokens/turn average, one 3,257-token spike on a full block removal, 94.4% cache share over a 6-turn audit.
  • Existing status tests keep passing; a wording test pins the new phrase.

Footguns

  • Do not "fix" the counter into a cache-bust estimate — the plugin cannot see provider cache state; receipts live in the bench, not the plugin.

Activity

  1. added
    retrieval
    agent:ready
    on Nov 8, 2026
  2. abogartz commented on Nov 8, 2026

    @abogartz
    OwnerAuthor

    Landed: PR #358 (fix/353-epoch-wording) merged to main; present at 0.20.0. Status surfaces label byte-moving epochs without claiming provider cache misses.

  3. abogartz commented on Nov 11, 2026

    @abogartz
    OwnerAuthor

    The "~344 input tokens/turn average, one 3,257-token spike" note is input-only, which on this provider is the uncached remainder. The spike is real and it is the interesting event; the average is not a cost.


    Cost retraction (#392). The token figure above came from runSession().tokens = input + output + reasoning, with cache excluded and capture excluded. On this provider input is only the uncached remainder: one run reported 13,393 of 187,856 tokens that actually moved — 7%. A metric that undercounts by 93% still produces a plausible number, and a plausible number gets quoted.

    Disposition: retracted as a cost claim. Do not quote it as tokens moved, saved, or spent. The stored wire logs for this run carry no provider usage object, so no recomputed figure exists.

    Corrected metric, in force: work = session generation + capture generation, with cache read/write reported separately and never folded in. Two results survive it, both with n and seat named on #386: transport 0/5 to 5/5 (leak-checked, one seat) and reuse median 0.98x (n=6, no measurable effect).

    Rules now written down where contributors hit them: no cost claim below n=6 pairs per arm; a ratio at 6 <= n < 21 is labelled "20% resolution"; the word "cheaper" does not appear without an n, a seat and a metric named on the same line; no dollar figure without a hosted-provider measurement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent:readyretrieval

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions