Documentation

Install the binary, upgrade an existing store, read scoped pages, and parse the JSON contract. Detailed CLI flags stay in the repository.

Install and default state paths

Prebuilt binaries for Linux and macOS (x86_64, aarch64) and Windows (x86_64). The installer verifies SHA-256 and runs olor migrate. Source fallback: Rust 1.100 and git, not crates.io.

curl -fsSL https://cadumagalhaes.dev/olorin/install.sh | sh
irm https://cadumagalhaes.dev/olorin/install.ps1 | iex
cargo install --git https://github.com/1cadumagalhaes/olorin.git --locked
olor migrate
olor --version
olor status --path .

Without --db-path, Olorin resolves <state_root>/olorin/olorin.sqlite3 from the first non-empty absolute path below. Relative environment values are ignored.

PlatformFirst choiceFallback
Linux and Unix $XDG_STATE_HOME $HOME/.local/state
macOS $XDG_STATE_HOME $HOME/Library/Application Support
Windows %LOCALAPPDATA% %APPDATA%

Full installation and troubleshooting table in docs/installation.md

Upgrading from 0.2.0 to 0.3.0

Storage schema v6 (0.3.0) extends v5 (0.2.0) additively inside one BEGIN IMMEDIATE transaction: three side tables, no ALTER TABLE, no row rewritten. A v4 file from 0.1.0 goes straight to v6 in the same call.

olor migrate
# {"schema_version":1,"ok":true,"command":"migrate","result":{"applied":true,"from":5,"to":6,"reason":null}}
  • The installer runs olor migrate automatically. After cargo install, run olor migrate yourself.
  • Reads never migrate. Running olor status against a v5 file exits 6 with migration_required.
  • The upgrade is one way. Copy the SQLite file first if you may need to run 0.2.0 again, because 0.2.0 refuses a v6 file with schema_too_new (exit 6).
  • On a machine with no database yet, olor migrate exits 0 with storage_not_initialized and creates no file.

Read scope and pagination

work list, task list and finding list default to the repository resolved read-only from --path (current directory by default). Every list payload includes scope ("repository" or "global") and repository_id.

olor task list                      # scope: "repository"
olor task list --all-repositories   # scope: "global"
olor task list --repository repo_01a1...
olor task list --limit 50 --cursor <CURSOR>
  • Combining --repository and --all-repositories fails with usage (exit 2).
  • Explicit entity filters (--work, --task, --stage) are not narrowed by the implicit repository scope.
  • --limit defaults to 50 and accepts 1 to 200. Responses include next_cursor and has_more.
  • Cursors are opaque and bound to their resolved scope. Replaying a cursor under another repository fails with usage (exit 2).
  • Bounded nested lists report truncation explicitly: active_tasks_total and active_tasks_has_more on status, and tasks_total and tasks_has_more on work payloads.

JSON contract and exit codes

Every invocation prints one JSON document to stdout and keeps stderr empty. Read .result on success (never .data) and .error.{code,message,details,next_actions} on failure.

{"schema_version":1,"ok":true,"command":"task.show","result":{...}}
{"schema_version":1,"ok":false,"command":"stage.submit","error":{"code":"conflict","message":"...","details":{"reason":"claim_fenced"},"next_actions":[{"code":"...","hint":"..."}]}}
ExitError classMeaning
0 success Command succeeded. status and repo inspect also exit 0 for unavailable context.
2 usage Invalid flag, value, id form, scope combination or cursor.
3 not_found Requested repository, work item, task, stage, attempt or finding does not exist.
4 conflict, ambiguous Stale expected version, fenced claim, active claim collision, idempotency key mismatch or ambiguous repo match.
5 invalid_transition Valid request refused by current state, unmet dependencies, deferral, role check or closed task.
6 storage Missing database on read, migration_required, schema_too_new, corrupt data or Git discovery failure.
7 not_implemented Operation reserved for a later milestone.
8 internal Unexpected invariant failure.
10 work remains olor gate only: inside a success envelope, it means runnable work remains. It is not an error class.

Derived stage state precedence

Stages have no mutable state column. Olorin evaluates these rules top to bottom on every read and returns the first match. Hover or focus a row to isolate its rule.

  1. 1 The stage was superseded by another stage. superseded
  2. 2 Any attempt of the stage was accepted. accepted
  3. 3 The parent task is completed, failed or cancelled. task_closed
  4. 4a An open claim has a live lease. claimed
  5. 4b An open claim has an expired lease (never auto-released). stale
  6. 5 A succeeded attempt waits for approver review. submitted
  7. 6 An active task or stage deferral applies. deferred
  8. 7 Any explicit predecessor stage is not accepted. blocked_by_dependencies
  9. 8 The latest attempt was submitted with outcome blocked. externally_blocked
  10. 9 All earlier rules failed to match. eligible

Local telemetry

Every invocation appends one JSON line to <state_root>/olorin-telemetry/events.jsonl. The binary has no network code, and records hold only frozen command ids, exit codes, error reasons, duration and optional actor metadata (never titles, paths or arguments).

OLOR_TELEMETRY=0 olor status --path .

Canonical references in the repository

Command flags and state-machine details live once in the repository so web pages do not drift.