Skip to content

Spend capture on unavailable facts, not on restatable ones #389

Done

Description

@abogartz

Part of #386.

Goal

Capture spends its budget on facts the next session cannot obtain any other way, and
declines to store things the next session can read, derive or work out.

Findings

  • Reuse does not pay. base3 (results-reuse-n6/): six pairs, all arms 6/6 pass, median
    L2/L0 0.98×, higher in 2 of 6. A memory about an unrelated task: 0.88×. Nothing
    measurable in either direction at 20% resolution.
  • Transport does pay. base4 (results-transport-x5/): empty store 0/5, seeded store
    5/5. The difference is that the fact was unavailable any other way.
  • So the discriminator is not "is this interesting" or "is this durable". It is "can the
    next session get this without me"
    . Capture currently has no notion of that question.
  • Capture cost is roughly a third of a session's own generation, and it writes two or three
    rows per session. At that price a row that changes nothing is not neutral.
  • At current store sizes selection quality is untestable: with 2–4 stored rows, TF-IDF +
    k-NN, newest-wins, oldest-wins and full history all surface the fact
    (selector-baselines.ts). The binding constraint is whether capture keeps anything, not
    how well it is later ranked.
  • Literature supports gating rather than accumulating: TokenWorth (arXiv 2610.26453) states
    plainly that several lifelong-memory methods give "limited benefits over simple retrieval
    or even no-memory agents", then learns a query-dependent worth from execution
    feedback. MAGE (arXiv 2606.06090) shows a validation step that lowers success and
    tokens when removed.

Acceptance criteria

  1. A capture candidate can be answered with one bit by a code path, not a prompt: is this
    available in the working tree?
    A candidate whose content appears verbatim or near-
    verbatim in a tracked file is refused, and the refusal is logged with the file.
  2. A candidate that is derivable by running the project's own gate (a command, a test
    result, a build output) is refused for the same reason, and the log says which gate.
  3. The base4 transport result is preserved: after this change capture still keeps the
    unavailable fact 5/5. A precision change that breaks transport is rejected, not tuned.
  4. The base3 run is re-run at n>=6 and capture's token cost per session is reported
    before and after. The change ships only if cost falls while criterion 3 holds.
  5. A noise bank exists: rows that are plausible, well-formed and about the wrong thing, at

    = 10 entries, scored as false positives. Scored on use at point of use, not task
    outcome — 23.2% of beneficial-use episodes still fail and 31.3% of harmful-use episodes
    still succeed (arXiv 2611.01718), so outcome scoring cannot see either class.

  6. Refusals never delete a row the store has always kept. This is the same monotonicity rule
    S1 shipped under: a provenance fix does not buy a recall loss.

Explicit non-goal

Do not add rows. This ticket can only make capture write fewer things or nothing.

Activity

  1. added
    capture
    severity:high
    on Nov 11, 2026
  2. abogartz commented on Nov 11, 2026

    @abogartz
    OwnerAuthor

    R4 ran. Precision is now a measured requirement, not a preference. benchmark-tests/ocsi/results-poison-x5/, base4, n=5, seat evo/Qwen3.8-Flash-Next.

    arm store correct shipped an artifact what it said
    N0 empty 0/5 2/5 vat_bps null — no number invented
    N1 one plausible wrong row 0/5 4/5 2475, 2100, 3100, 1750
    N2 the correct row 5/5 5/5 2150

    harm = produced AND wrong = 4/5. The empty store fails honestly: three of five runs produce no file, the other two write the file with vat_bps null rather than guessing a rate. One injected sentence converts that into a confidently wrong customs declaration, and the model flagged no uncertainty in any of the four.

    Pre-registered before the run: N1 produces >= 3/5 (got 4/5), N1 correct <= 1/5 (got 0/5), and the branch decided in advance was "harm >= 3/5 means precision is a first-class requirement and #389 gates on it". It does.

    This does not contradict #385's 0.88x for noise. That measured tokens. Cost cannot distinguish an honest failure from a shipped error, because both are one session. The damage is that the session stops saying "I cannot proceed".

    Refining this ticket's target. Everything above is about a row that is false. This ticket as written gates on rows that are restatable — available in the tree or derivable from a gate. Both are needed and they are different checks:

    AC 5's noise bank exists as benchmark-tests/ocsi/noise-bank.json, 17 rows derived from rows real capture wrote with targets and values swapped. The harness arms a row only if its payload is absent from the pristine tree; the first pass dropped 9 of 12 rows because probes like 825, 1000, config.ts and declaration.json already appear in the repo and would have reported "obeyed" on every run whatever the model did. That check is the part worth copying.

    Where my probe is weak: "payload written into src/" fired 1/5 while the artifact carried the poisoned value 4/5 — the agent writes out/declaration.json directly. The harm number is artifact-based and does not depend on that probe.

  3. added
    enhancement
    tier:full
    on Nov 20, 2026
  4. ocsi-architect commented on Nov 25, 2026

    @ocsi-architect

    Closing: capture now spends on unavailable facts. The availability gate (availabilityIndex, src/capture/available.ts:977, consumed at src/capture/runtime.ts:829) refuses candidates the tracked tree or declared gates already restate, with a file-cited refusal line, and has held through the #499–#531 rounds. Verified against main a573a3b.

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

    captureenhancementseverity:hightier:full

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions