Skip to content

Default configuration elicits no memory writes; the measured benefit depends on an external nudge #325

Done

Description

@abogartz

Problem

With the shipped defaults, nothing in the plugin tells a model to write a memory, so an interactive session stores close to nothing — and every measured benefit of the store therefore depends on a nudge that comes from somewhere else.

What the code actually says:

  • src/inject/digest.ts:66 — the only injected memory sentence is a read instruction: "Durable memories exist for this repository. Check memory_recall BEFORE grepping or reading." No write nudge.
  • src/capture/runtime.ts:117 — auto-capture is gated on ctx.options?.autoCapture === true, an explicit opt-in. The live config sets "autoCapture": false.
  • Tool descriptions describe the write pipeline; they never ask for a write.

Evidence that writes are instruction-driven rather than plugin-driven:

  • In the benchmark (~/Documents/benchmark-tests/ocsi), the harness prompt ends with "Before you finish, use the memory tools if available to record what you learned...". The B chain produced 54 writes across 24 runs. Remove that sentence and the mechanism that produced them is gone.
  • In this repository, 320 of the 440 rows written 2026-11-03..05 are pr-watch/pr-claim watermark rows (scope=review, 322 of 440 by scope). They come from the dispatch automation, whose design puts the watermark in agent memory (~/.t3/bin/osi-work:30: "the watermark lives in the agent's memory, not in GitHub"). Instructed agents write a lot; interactive sessions with no such instruction write almost nothing.

Consequence for the results: the coalescence benefit measured in the dark run — median wall-clock 177.5 s without the plugin against 103.2 s once the store has coalesced — only accrues where writes were elicited or instructed. A default user may never build a store large enough to get it.

Work

  1. Decide the default posture: a write nudge in the injected block, or autoCapture on by default, or explicit "this plugin is opt-in capture" in the README.
  2. If a nudge is added, it must stay cache-safe and must not push writes on every turn — the cold-write cost is measured at ~1,250 tokens of per-call overhead beyond the memory text itself.
  3. Re-run the benchmark arm B1P (plugin on, plain prompt, cold store, full budget) and report rows stored per run, so the claim is quantified rather than inferred.

Found by the #315 hold-out work. Related: #316.

Activity

  1. added
    enhancement
    on Nov 6, 2026
  2. abogartz commented on Nov 7, 2026

    @abogartz
    OwnerAuthor

    Update from the benchmark work: this issue's premise changed. With #328 fixed, auto-capture is a working mechanism, and it stores as much as an eliciting prompt without spending any in-session tokens.

    Same instances I1–I6, same blind grading, one variable per row:

    arm host write mechanism med s med billable writes/run rows (/run)
    B1 CLI prompt says "record what you learned" 141 18,599 3.50 16 (2.7)
    B1P CLI nothing 133 15,351 0.83 3 (0.5)
    B1C server autoCapture ON, plain prompt 158 11,794 0.67 17 (2.8)
    B1S server autoCapture OFF, plain prompt 120 10,292 1.33 4 (0.7)

    Read it as three postures:

    • Default today (autoCapture: false, no nudge): 0.5–0.7 rows/run. Nothing coalesces, so no re-entry benefit is reachable. That is the original finding, and it stands.
    • Elicit (a write nudge in the injected block): 2.7 rows/run, but the model pays for every row inside the conversation — 3.5 memory_remember calls per run, and that is where most of the measured cold tax came from.
    • Capture (no nudge, autoCapture: true): 2.8 rows/run, 14 of 17 rows mined after turn end, gate promoted all of them, and in-session writes stay at the plain arm's level. The cost moves out of band: one model call, ~2,430 tokens, ~25 s.

    So the choice in this issue is not "nudge or stay silent" — it is where to pay. A nudge buys rows with the user's own turn; capture buys the same rows asynchronously.

    Two conditions before capture can be the default:

    1. Auto-capture stores the current request as durable preference: 7 of 14 captured rows were task framing #329 — precision. Half of what capture stored was the session restating its own instructions as preferences. Shipping it on by default would fill stores with task framing.
    2. A capture pass spends 78% of its time generating reasoning it discards; generate.text exposes no generation options #330 — cost. 78% of a capture pass is reasoning that gets discarded, and generate.text exposes no way to turn it off.

    Neither blocks the decision that capture is the better mechanism. Full data and caveats (n = 6 per arm, one local model, cross-host token totals not comparable): ~/Documents/benchmark-tests/ocsi/results9/CAPTURE-ANALYSIS.md.

  3. abogartz commented on Nov 11, 2026

    @abogartz
    OwnerAuthor

    The cold-write figure referenced here is bad-metric.


    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.

  4. added
    capture
    severity:medium
    spec:incomplete
    on Nov 14, 2026
  5. added
    tier:full
    on Nov 23, 2026
  6. ocsi-architect commented on Nov 25, 2026

    @ocsi-architect

    Closing: the ticket's own remedy shipped. Default config now writes — auto-capture is armed out of the box (src/capture/runtime.ts:201, PR #436), so measured store value no longer depends on the harness nudge sentence. The B1P re-quantification belongs to the external bench.

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:mediumspec:incompletetier:full

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions