- Goal: Follow complete source bytes as agents append them, without periodic rescans.
- Risk: Local mutation and provider-facing reads.
- Environment: macOS terminal with installed Transcript Lake and one existing valid Lake.
- Preconditions: No other writer owns the Lake; vendor transcript changes are append-only.
- Inputs: Existing
LAKE_DATAand subsequent local agent activity. - Artifacts and side effects: Appends masked canonical events and affected Oko session rows, then atomically advances only the source cursor. Vendor files remain unchanged.
- Steps:
sh
LAKE="/absolute/operator-owned/lake"
transcript-lake --data-dir "$LAKE" doctor
transcript-lake --data-dir "$LAKE" stream --jsonIn another terminal:
sh
transcript-lake --data-dir "$LAKE" status --json
transcript-lake --data-dir "$LAKE" events --limit 20- Observable result: The stream prints
start, then onecommitline per changed source withfiles,failures, andms.statusreports the live process and durable cursors. Unchanged sources cause no work. - Failure path: A source truncation, same-size rewrite, invalid segment, parser failure, or unreadable file logs a named source failure without advancing that cursor. Preserve non-append sources and use rebuild into an empty root.
- Off-switch: Send SIGINT or SIGTERM, or unload the supervising service. The process records
state: stopped; retention is independent. - Related operations: Query sessions, compact to Parquet, or reconstruct the Oko projection.