Repository navigation
Done
Labels
captureAuto-capture pipeline: envelope compatibility, trigger coverage, trigger economicsenhancementNew feature or requestseverity:mediumReal but narrow: robustness, hygiene, or gated behind multiple preconditionstier:fullNew predicate or policy: full loop with blind architecture review
Description
Problem
Auto-capture is the mechanism the whole store depends on, and on the shipped default it never runs.
Verified on main @ f8f42fd today:
src/capture/runtime.ts:185—if (ctx.options?.autoCapture === true). Anything other than an explicittrueregisters no subscription, so a default install writes nothing automatically.README.md:71documents the default asfalse, with the rationale "the install stays zero-token".README.md:93still says auto-capture "has never been observed firing on a live opencode 2.x store". That is no longer true: the chain harness has watched it fire on real stores, andFINDINGS-2026-11-08-rules-ab.mdrecords 5/5 guided rows stored across five sessions.- The benchmark profiles already run it on.
benchmark-tests/ocsi/profiles/chain-on.jsoncandchain-f-main.jsoncboth set"autoCapture": trueplus acaptureModel.
Consequence: every measured benefit of this plugin is measured on a configuration the plugin does not ship. That is #325's finding, and it stays true until the default moves.
What this ticket is
Flip autoCapture to default ON, and make the surfaces honest about it. Precedent for the shape: #352 did exactly this for contradictionSurface — default-ON decision gated on merged-main confidence runs.
Acceptance
- The default is ON and a test proves it: with no
optionsat all, the capture subscription registers and a turn-end event runs a pass. Today's tests that assert "off unlessautoCapture: true" are inverted deliberately, not left to rot. captureModelstill resolves per capture (per-session ref → host default, captureModel should default to the session's model — event.model is already delivered to every hook and never read #139). A default-ON install must not require the user to type a model.- One explicit kill switch keeps the old behaviour:
autoCapture: falseregisters nothing and costs zero tokens, and the startup log says so once. - README changes together: the option table row, and the "Auto-capture is experimental" section, which must stop claiming it has never fired while stating what it now costs.
- The cost is stated in the reply, not buried: capture is measured at roughly 2k prompt tokens and 20–35 s of model time per session (
#317wire evidence,FINDINGS-2026-11-07-chat.md§23). Default-ON spends that on every session, including ones that store nothing. bun run gategreen.
Open decisions the bench should settle first
- Do the two cost levers ship ON with it —
captureOnSignalandcaptureDelta(Cheaper auto-capture: measure the cost and add the two switches #365, both currently OFF "until the benchmark says which way to set them")? Default-ON capture without them re-reads the whole transcript every turn. - Does default-ON replace the "zero-token install" claim in the README, or is the claim kept by scoping it to the write gate only?
The merged-main confidence runs (#347) and the #365 cost table are the evidence for both. Do not merge this ticket before they land.
Part of #325 (the default-configuration finding) and #335 (guidance precision and cache economics).
Metadata
Metadata
Assignees
Labels
captureAuto-capture pipeline: envelope compatibility, trigger coverage, trigger economicsenhancementNew feature or requestseverity:mediumReal but narrow: robustness, hygiene, or gated behind multiple preconditionstier:fullNew predicate or policy: full loop with blind architecture review
Activity
ocsi-architect commentedon Nov 25, 2026
Closing: default flipped.
src/capture/runtime.ts:201arms auto-capture unlessautoCapture: false, and the README states on-by-default with live-receipts evidence (README lines 35 and 54, verified this session).