Skip to content

Capture: reflect and apply add, update and remove on one writer #10

Closed as not planned

Description

@lukemaj

What: One writer machine reflects each owner's candidates against the whole owner file and applies add, update and remove in code, with commit receipts and crash-safe resume.
Why: Without one serialized writer and code-enforced rules, captured lessons duplicate, contradict newer items, or are lost or applied twice after a crash.
So what: An agent builds reflect and apply; private owners first, project AGENTS.md only after the false-remove bar passes.

Parent

#2

Outcome

reflect prepare, a delegated reflection and reflect apply pull every machine's shaped items, and for each owner in turn produce one commit with one opaque trailer per decision, push it, and delete the applied queue items. Re-confirmations are updates that change only the date stamp.

Elon record

  • Requirements and who asked: exactly add, update and remove, AI decides and code edits (user); one writer machine (user, 2026-10-12); direct commits to project AGENTS.md only after 0 false removes on at least 50 remove-eligible cases (user, 2026-10-12); the 4,000-character preferences and persona budget (user) and a budget on every auto-loaded owner (gap review synthesis); replacement evidence on the same scope instead of "older loses" by timestamp (gap review synthesis).
  • Deleted: item ids in owners; retrieval inside reflection; a writer cursor; rebasing after a rejected push.
  • Bottleneck: the reflection gold set built from real items and owner snapshots.
  • Checked myself: the private capture design and roasts; current owner sizes (preferences within 4,000 characters; a project AGENTS.md near 17,600).

Acceptance criteria

  • old_text must match exactly; the owner cannot change; updates and removes need same-scope replacement evidence; a different scope is an add; each edit lands before the next candidate.
  • Every auto-loaded owner stays within its budget; an edit that cannot fit after one rewrite stays queued and the user is told.
  • Interrupting at decide, edit, commit, push and delete leaves the gold final state and trailers after resume, with nothing applied twice.
  • The reflection gold set shows 0 false removes on at least 50 remove-eligible cases before any automatic commit to a project AGENTS.md.

Non-goals

  • The missed-serving join (serving Spec).
  • A stale sweep or store moves.

Blocked by

Required proof

  • The reflection gold results, the interruption tests, and the first real run's commits (trailers only) on private owners.

Activity

  1. added a commit that references this issue on Oct 13, 2026
  2. lukemaj commented on Oct 15, 2026

    @lukemaj
    ContributorAuthor

    Superseded by the architecture in #84 (user decision, 2026-10-15): no capture judge, one model decision in the update step (#77), cards and one index instead of separate classify, reflect and shadow-scoring steps.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions