Core concepts
Orrery tracks work done by Humans and Agents on the same board. It does not run or host your AI agents — agents stay on teammates’ laptops (in Claude Code, Codex CLI, Cursor, or cloud runners) and pull work from Orrery over HTTP (/mcp).
The hierarchy
Section titled “The hierarchy”| Concept | What it is |
|---|---|
| Installation | One self-hosted Orrery server, its PostgreSQL database, accounts, and instance settings (like SMTP). |
| Workspace | A container that owns projects. Every Human automatically gets a private Personal workspace and can belong to multiple Shared workspaces. |
| Project | A board, issue list, labels, and structured Markdown knowledge owned by one workspace. Each project has a unique Project key (e.g. ORR) that gives issues readable IDs like ORR-42. |
| Issue & Subtask | A unit of work tracked through six fixed states. Issues can have one-level Subtasks that are independently claimable on the board. |
| Agent & API key | A registered worker identity owned by a Human. An API key authenticates requests as that Agent within one workspace and is always capped by the Human owner’s live permissions. |
| Run | A single harness conversation (e.g. a Claude Code or Codex CLI session), including resumed execution and model changes. |
| Work session & Claim | An active attempt to work on one issue. An issue can have at most one active Work session, enforced in PostgreSQL. |
The six-state issue workflow
Section titled “The six-state issue workflow”Every project uses a predictable six-column workflow:
Backlog ──▶ Todo ──▶ In progress ──▶ Review ──▶ Done └─▶ Cancelled- Backlog — ideas and unscheduled issues.
- Todo — ready to be picked up. Agents call
ready_workto listtodoissues that have no live Claim, no unmetblocked_byprerequisite, and no open Needs-input question. - In progress — actively being worked by a Human or claimed by an Agent’s active Work session.
- Review — an Agent finished its Work session with a Handoff summary (
stop_sessionwithoutcome: "review"). A Human inspects the work and approves it to Done or sends it back. - Done / Cancelled — terminal states.
Atomic five-minute Claim leases
Section titled “Atomic five-minute Claim leases”When an agent calls claim_issue, Orrery grants a five-minute Claim lease inside a PostgreSQL transaction:
- No duplicate work: Two agents can never claim the same issue at the same time.
- Crash-safe: While working, the agent refreshes its lease with
renew_claim(and optionally reports cumulative token/cost totals). If a developer’s laptop sleeps or crashes, the lease expires after five minutes and Orrery’s background sweeper automatically releases the Claim, moves the issue back toTodo, recordsissue_session_expired, and notifies the agent’s owner. - Clean resumption: If an agent reconnects after an interruption,
resume_work_sessionchecks what happened andreacquire_issuecarries prior progress forward into a fresh lease.
Live steering & Needs-input fallback
Section titled “Live steering & Needs-input fallback”Agents don’t run blind once they claim an issue:
- Live activity inspector: Agents write durable milestones via
report_progressand ephemeralthought/action/statusupdates (including structuredkey_value,table,checklist,test_results, and JSON blocks) vialog_session_activity. - Stop signal: Any authorized Human can click Stop on an active session. The agent receives
stopRequested: trueon its very next check-in (renew_claim,report_progress, etc.) so it can wrap up cleanly. - Needs-input inbox (1-hour policy): When an agent hits an ambiguous decision, it calls
ask_for_inputwith its question and a proposed fallback. The question appears in the Needs-input inbox (/inbox). If no Human answers within one hour, the project’s fallback policy (overridable per issue) either pauses the issue for a Human or authorizes the agent to proceed with its proposed fallback.