- Goal: Make Lake sessions searchable in Oko after the live projection or a reconstruction changes.
- Risk: Derived mutation in Oko's local SQLite index and external process invocation.
- Environment: macOS, valid Lake projection, compatible installed
oko-cli. - Preconditions: Oko includes
LAKE_DATA/exports/oko; no Oko index migration is in progress;OKO_CLIis set only for a deliberate alternate executable. - Inputs: Existing canonical projection and Oko's local index configuration.
- Artifacts and side effects:
oko-refreshinvokes Oko without rebuilding Lake files.rebuild-oko --reindexfirst reconstructs every projection file, then invokes the compatible JSON reindex. - Steps:
sh
LAKE="/absolute/operator-owned/lake"
transcript-lake --data-dir "$LAKE" doctor
transcript-lake --data-dir "$LAKE" oko-refresh
transcript-lake --data-dir "$LAKE" signals --report freshnessUse rebuild-oko --reindex only when projection reconstruction is also needed.
- Observable result: The command exits zero only when Oko reindex succeeds. Oko's transcript inventory then exposes current Lake-projected sessions.
- Failure path: If
oko-cliis absent or exits non-zero, the command names the dependency or status and leaves the projection intact for later reindex. - Off-switch: Stop invoking reindex. Disconnect the projection in Oko before previewing its removal with
clean --target oko.