Skip to content

Auto-capture turns task-brief boilerplate into a persistent repo fact #382

Closed

Description

@abogartz

Finding

Auto-capture converts generic task instructions into persistent repo "facts".

In benchmark-tests/ocsi/results-learn-t3-diag (2026-11-10, plugin f8f42fd v0.22.2), the only row a failed session wrote was:

[preference/docs] tags=auto-capture,user-guided
"In this repository, src module invariants are authoritative over docs/ARCHITECTURE.md; documentation may contain stale behavior claims."

The session's brief contained: "Documentation in docs/ may be stale: trust the code's invariants over the docs." That sentence is boilerplate from a benchmark harness prompt. It is not a fact about the repository, it was not discovered, and it will now ride every later session on that repo path.

Why the existing rule did not stop it

The prompt already says:

Mine a preference from it ONLY when it names a tool, package, format or convention that outlives the task ("we use bun here", "no semicolons"); never from wording that scopes this job ("only touch src/", "do not create tests").

"Trust the code over the docs" reads as a convention that outlives the task, so the model kept it. The rule draws the line at job-scoping imperatives, and this is an imperative that is not obviously job-scoping. The line is in the wrong place.

Why it matters

  • It is noise with a cost: prompt bytes on every later session's prefix, and a prompt-cache bust.
  • It is tagged user-guided, so it carries the highest provenance the store has, for a statement the user never made about this repo.
  • It crowds the injection budget. inject_budget=1200 is small, and a platitude occupies a slot a real fact could have used.

Suggested direction

A preference mined from the REQUESTS block should require evidence the convention was used in the session, not merely stated — the same attestation discipline taken in #learn-from-failure. "we use bun here" is confirmable by a bun command in the tool ledger. "trust the code over the docs" is confirmable by nothing, which is exactly why it should not be stored.

At minimum, a REQUESTS-only row with no supporting tool call should be recorded as a distinct evidence outcome so the bench can count how many captured rows are brief echoes.

Reproduce

benchmark-tests/ocsi/results-learn-t3-diag/store-l1/*.logfmt holds the row; l1/stdout.ndjson holds the brief that produced it.

Activity

  1. added
    bug
    on Nov 10, 2026
  2. added
    capture
    severity:high
    on Nov 14, 2026
  3. ocsi-triager commented on Nov 22, 2026

    @ocsi-triager

    Closed by PR #486 (merged at b611b40, shipped in 0.33.11).

    The grant is now checked at entry: a user-guided row keeps the tag only when it states a number or its declared keywords are corroborated by the tool ledger; otherwise it is demoted to plain auto-capture prose, counted on an auto_capture_brief_echo evidence line. The reproducer sentence from this ticket loses the grant in the regression test (test/capture/capture-brief-echo.test.ts), which fails on the pre-fix tree, while the two narrowness guards (brief-stated value, exercised tool convention) pass before and after.

    Not covered: user-guided rows already stored from harness boilerplate. No back-scan exists; per-row human cleanup stays the safe path, as stated in the PR.

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

    bugcaptureseverity:high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions