Command reference

oko-cli auto-goals rebuild-window

Stages a rebuilt auto-goal projection for a bounded date window.

Invocation

oko-cli auto-goals rebuild-window --user-id UUID --from YYYY-MM-DD --to YYYY-MM-DD [--org-id UUID] [--pace MS] [--limit N] [--window-only] [--indexed] [--sidecar PATH]

Inputs and options

  • Required local --user-id and valid ordered --from/--to dates.
  • Optional scope, pacing, positive limit, source-selection flags, and sidecar path.

Output and state effect

  • Writes a deterministic recompute sidecar and diff/duplicate diagnostics; Supabase is not modified.

Refusals and safe exits

  • Refuses missing/reversed dates, non-local scope, alternate tables, invalid pace/limit values, missing operating-store identity, and rebuild/artifact failures.