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)
| Table | Row | Write effect |
|---|---|---|
| claims | claim_01a2 | end_reason = submitted |
| attempts | att_01a2 | lifecycle = submitted, review_state = pending_review |
| idempotency_keys | submit-2 | stored receipt bytes for replay |
COMMIT, exit 0Fenced claim: olorin.sqlite3 rolled back
| Table | Row | Write effect |
|---|---|---|
| claims | claim_01a2 | unchanged, generation 2 stays active |
| attempts | att_01a2 | unchanged, active attempt preserved |
| idempotency_keys | submit-a-1 | not written on refused transition |
ROLLBACK, exit 4Validates transitions
Valid write: checks inside BEGIN IMMEDIATE
| Guard | Evaluated against ledger | Result |
|---|---|---|
| idempotency_key | submit-2 not replayed with different bytes | pass |
| task_open | task_01a1 status is open | pass |
| claim_fence | claim_01a2 matches active generation 2 | pass |
| claim_holder | worker-b holds the claim and lease is live | pass |
COMMIT, exit 0Fenced claim: checks inside BEGIN IMMEDIATE
| Guard | Evaluated against ledger | Result |
|---|---|---|
| idempotency_key | submit-a-1 not seen before | pass |
| task_open | task_01a1 status is open | pass |
| claim_fence | claim_01a1 gen 1 != active gen 2 | claim_fenced |
| claim_holder | skipped after refusal | skipped |
ROLLBACK, exit 4Reports 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" } }
}
}
} stderr: 0 bytes, exit 0Fenced 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" }]
}
} stderr: 0 bytes, exit 4What 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