Skip to content

Auto-capture stores the current request as durable preference: 7 of 14 captured rows were task framing #329

Closed

Description

@abogartz

Problem

Now that auto-capture actually fires (fixed in #328), the question moves from "does it store" to "does it store the right things". Measured on the benchmark: about half of what it stores is the session's own request, restated as a durable preference.

Six runs of the fix-task arm (~/Documents/benchmark-tests/ocsi/results9/B1C, plugin bench-capture@694a6c5, plain prompt, autoCapture: true), 14 captured rows, read by hand:

  • 7 restate the current request. Examples, verbatim from the store:
    • preference scope=repo-work — "For this repository task, work only inside the current directory; modify only src/, do not create tests, edit docs, or inspect parent/harness…"
    • context scope=repo — "Hidden CI tests run against src/; do not inspect parent directories, harness files, grading scripts, create test/, or edit documentation."
    • preference scope=build — "For hidden CI checks, modify only src/ in the current repo; do not create test/ or edit docs/."
      Three of these are one instruction worded three ways, in three scopes, so GATE-3's 0.9 overlap floor let all three through.
  • 5 are the durable value, and they are good rows: learning scope=pricing "tax rate invariant is 8.25% (0.0825), applied after discounts and rounded to cents at the end; 0.08 is incorrect"; decision scope=cart "round once after subtracting the restock fee"; decision scope=cart "SAVE10 is a flat 10.00, not 10%".
  • 2 are method, not fact.

In the benchmark the framing rows are harness text. In a real repository the same failure stores last week's ticket as a permanent preference, and then injects it into every future session of that repo. Volume is not the problem — captureMax is already 3 per pass — precision is.

Work

  1. Add a skip rule to buildCapturePrompt (src/capture/prompt.ts): do not store anything that restates what the user asked for in this session, or the constraints of the current task. The existing "Skip" list covers small talk and code-derivable facts, not request framing.
  2. Re-measure precision the same way: classify captured rows as lesson vs restatement, report the ratio before and after. Reproduce with run-capture.sh and the classification in results9/CAPTURE-ANALYSIS.md.
  3. Consider making the same-subject collapse (Per-cycle mutable state (PR watermarks) is appended as durable memory and never superseded #326) apply here: three near-identical preferences in three scopes is exactly the shape that issue describes.

Found by the #315 benchmark work. Related: #325, #326, #328.

Activity

  1. added
    bug
    on Nov 7, 2026
  2. abogartz commented on Nov 7, 2026

    @abogartz
    OwnerAuthor

    Prompt rule implemented in #331. The fixture result, because it settles which part of the fix does the work.

    Fixture reproducing the reported shape — the harness restates the same constraint in every user turn — temperature: 0, identical across repeated passes, thinking on to match the results9/B1C arms:

    prompt variant framing row stored? completion tokens wall
    old (shipped) yes 656 11.4 s
    all three new lines (#331) no 1,095 19.7 s
    ablation: no overlap-collapse line no 3,084 63.2 s
    ablation: durability test only yes 1,025 17.7 s

    Old prompt produced exactly the row this issue quotes:

    [preference scope=repo constraints] User requires changes only inside src/; no new
    files outside src/, no docs edits, no test/ directory, and no inspecting harness or
    grading scripts.
    

    With the rule, that row is gone and the slot is taken by a fact the old prompt missed: [learning scope=testing] The repo's own test suite can be run with \bun test ./src` from src/tests.`

    Two findings worth keeping:

    • The framing rule is load-bearing. The durability test alone still stores the framing row.
    • The "few is better than full" line bounds reasoning, it does not improve precision. Dropping it took reasoning from 2,931 to 11,534 characters and wall clock from 19.7 s to 63.2 s. Permission to emit fewer rows makes the model stop thinking sooner.

    Work items 1 and 3 are done in #331 (3 only for capture-side overlap; the watermark rows in this issue's item 3 are a separate mechanism and stay open). Item 2 is not done: the live run-capture.sh re-measure against a build of the branch has not been run, so this issue stays open. #331 measures the rule offline, which isolates it better but is not the end-to-end number.

  3. abogartz commented on Nov 8, 2026

    @abogartz
    OwnerAuthor

    Implementation chosen: the labelled REQUESTS split, landing as #354 (capture-input-shape @ 652ac10). PR #331 is closed as the alternative; its ablation table is reproduced in the #331 close comment and in the #354 body, so nothing measured there is lost.

    Work items 1 and 3 are done on that branch. Item 2, the run-capture.sh re-measure, runs post-merge as #338 against the merged prompt on main.

    This issue stays open until #338 records the framing-row rate (target 0) and the completion-token cost against the 656-token shipped baseline.

  4. added a commit that references this issue on Nov 8, 2026
  5. abogartz commented on Nov 8, 2026

    @abogartz
    OwnerAuthor

    Fixed by #354 (fire on 2.2.5 hosts and store facts, not briefs); PR #331 closed unmerged by the #337 decision. The precision re-measurement on main is tracked as its own ticket, #338 — record its result here when posted.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions