Execution state for coding agents

A local SQLite ledger for work items, stage graphs, claims and reviews. Every command prints one JSON document with an exit code for the error class.

$ curl -fsSL https://cadumagalhaes.dev/olorin/install.sh | sh && olor status --path .

Stage graph with derived states. Drag to orbit, click any node.

What Olorin does

Follow one write through the ledger. Switch between an accepted write and a fenced worker.

Valid write, exit 0

$ olor stage submit stage_01a1... --claim-id claim_01a2... \
    --generation 2 --outcome succeeded \
    --no-evidence --reason "docs only" \
    --idempotency-key submit-2 --actor worker-b \
    --session sess-2 --harness cli

Fenced claim, exit 4

$ olor stage submit stage_01a1... --claim-id claim_01a1... \
    --generation 1 --outcome succeeded \
    --no-evidence --reason "docs only" \
    --idempotency-key submit-a-1 --actor worker-a \
    --session sess-1 --harness cli

Records facts

Valid write: rows written in olorin.sqlite3 (WAL)

TableRowWrite effect
claimsclaim_01a2end_reason = submitted
attemptsatt_01a2lifecycle = submitted, review_state = pending_review
idempotency_keyssubmit-2stored receipt bytes for replay
olorin.sqlite3COMMIT, exit 0

Fenced claim: olorin.sqlite3 rolled back

TableRowWrite effect
claimsclaim_01a2unchanged, generation 2 stays active
attemptsatt_01a2unchanged, active attempt preserved
idempotency_keyssubmit-a-1not written on refused transition
olorin.sqlite3ROLLBACK, exit 4

Validates transitions

Valid write: checks inside BEGIN IMMEDIATE

GuardEvaluated against ledgerResult
idempotency_keysubmit-2 not replayed with different bytespass
task_opentask_01a1 status is openpass
claim_fenceclaim_01a2 matches active generation 2pass
claim_holderworker-b holds the claim and lease is livepass
BEGIN IMMEDIATECOMMIT, exit 0

Fenced claim: checks inside BEGIN IMMEDIATE

GuardEvaluated against ledgerResult
idempotency_keysubmit-a-1 not seen beforepass
task_opentask_01a1 status is openpass
claim_fenceclaim_01a1 gen 1 != active gen 2claim_fenced
claim_holderskipped after refusalskipped
BEGIN IMMEDIATEROLLBACK, exit 4

Reports JSON

Valid write: one JSON doc on stdout, 0 B stderr

{
  "schema_version": 1,
  "ok": true,
  "command": "stage.submit",
  "result": {
    "attempt": {
      "id": "att_01a2...",
      "state": { "lifecycle": "submitted", "review": { "state": "pending_review" } }
    }
  }
}
stdoutstderr: 0 bytes, exit 0

Fenced claim: error JSON on stdout, 0 B stderr

{
  "schema_version": 1,
  "ok": false,
  "command": "stage.submit",
  "error": {
    "code": "conflict",
    "details": { "reason": "claim_fenced", "current_generation": 2 },
    "next_actions": [{ "code": "reread-stage", "hint": "run olor stage show" }]
  }
}
stdoutstderr: 0 bytes, exit 4

What it is not

Four boundaries that stay outside the binary.

  • Not an agent runner. Olorin never starts a process, calls a model, or picks the next step.
  • Not a task tracker. There is no web UI, no daemon, and no human-formatted output.
  • Not access control. Owner, editor and approver are recorded names, not authentication.
  • Not a Git wrapper. Olorin reads Git context and never writes inside your repository.

Install

Prebuilt binaries for Linux and macOS (x86_64, aarch64) and Windows (x86_64), or build with Rust 1.100 and git.

# Install the prebuilt binary, SHA-256 verified, runs olor migrate
curl -fsSL https://cadumagalhaes.dev/olorin/install.sh | sh
olor status --path .

# Register a repository and create a claimed task
export OLOR_ACTOR=me OLOR_SESSION=sess-1 OLOR_HARNESS=cli
olor repo register --path . --idempotency-key reg-1
olor work create --title "Ship site" --repository repo_01a1... \
  --idempotency-key work-1
olor task create --work work_01a1... --title "Add docs" \
  --simple --claim --idempotency-key task-1