- Goal: Follow complete source records, including rewritten journals, without periodic rescans.
- Risk: Local Lake mutation and vendor-source reads.
- Environment: macOS terminal with installed Transcript Lake and an existing valid Lake.
- Preconditions: No other writer owns the Lake; source files use a supported runtime format.
- Inputs: Existing
LAKE_DATAand subsequent local agent activity. - Artifacts and side effects: Masked canonical events and affected Oko rows reach disk before the source cursor advances. Vendor files remain unchanged. Rewrites recover missing occurrences without deleting or duplicating retained history.
- 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
startandcommitrecords with file, failure, and duration counts. Replacement recovery names the source, reason, previous offset, and observed size; per-runtime summaries includereplayedFiles. Inspecteventsorshowto confirm the recovered instructions rather than treating a running process as proof. - Failure path: An invalid segment, parser failure, unreadable file, or corrupt canonical recovery input names the failed path and does not advance past failed output. Recovery retains its pre-replay cursor until the whole source succeeds. Preserve damaged authoritative state and use separate-root reconstruction when necessary.
- Off-switch: Send SIGINT or SIGTERM through the owning supervisor. The process records
state: stopped; retention is independent. - Related operations: Query sessions, compact to Parquet, or reconstruct the Oko projection.