# Glossary

One-line definitions of the internal terms used in this skill, grounded in what the bundled scripts do.

## Roles

- **Lead**: the person or agent that owns the goal, disputed evidence, and final acceptance.
- **Coordinator**: the agent that owns task contracts, scheduling, path custody, capacity, dispatch, and integration evidence; it runs the bundled scripts and is the only party that dispatches work. The inventory's top-level `coordinator` entry names it (agent and model); it is never a worker candidate.
- **Worker** (or **writer**): a model given one bounded task; it proposes changes first and implements only an approved proposal.
- **Reviewer**: a model that inspects a fixed patch in a fresh context; it must differ from every **author model** (any model that wrote or corrected the patch).
- **Executor**: whatever applies an approved change; the single-file gate is a local deterministic executor that writes approved bytes and never calls a model.

## Models, access, and capacity

- **Inventory**: `~/.config/organized-chaos/inventory.json`, the user's selected models, execution methods, roles, and billing policy, edited and checked by `scripts/onboarding.py`.
- **Observation**: the JSON that `onboarding.py check` writes about current access and availability; it is evidence for one point in time, not a standing grant.
- **Provider adapter**: a connection script (`codex_connection.py`, `grok_connection.py`, `local_connection.py`) that runs one provider's bounded access check; only the usage shapes these scripts understand can be routed.
- **Pool**: one account's shared quota; every model drawing on that account spends the same pool.
- **Usage snapshot**: normalized quota windows, resets, and workload that `route.py` reads to compare pools.
- **Local-first**: the routing default that prefers a selected local model when it has a free slot and enough context.
- **Admission**: the coordinator's check that a plan passes access, context, capacity, custody, and review-independence rules; only admitted plans are sorted.

## Routing

- **Staffing plan**: one complete assignment of models to the roles of one or more tasks; `route.py` selects one admitted plan by whether it starts work (plans that start none sort last), consumption, active work, recency, preference, then plan id.
- **Recent assignment**: one `recent_assignments` entry (`task_id`, `model_id`, `pool_alias`, `finished_at_utc`) for finished work the coordinator dispatched; it drives the recency key, and entries for a model not enabled under that pool in the current inventory are ignored and reported.
- **Proxy order**: `selection_method: proxy_order`, used when pool consumption cannot be compared across the plans; the choice then balances workload and recency, not subscription use.
- **Receipt**: the JSON a script prints for one decision, including rejection reasons; routing receipts always carry `dispatch_authorized: false`.
- **Dry run**: a router run that validates the packet and reports the would-be choice, offline and without runtime checks.

## Delivery

- **Custody**: which agent may write which paths at a given time.
- **Single-file gate**: `scripts/worker_gate.py`, which applies one reviewed exact source replacement through prepare, approve, and implement steps.
- **Retirement**: verified integration of a task on the cumulative accepted state, in dependency order; not deployment or worktree deletion.
- **Run** and **attempt**: one evaluation recorded by `scripts/performance_record.py`, and one dispatched try within it; see [record run evidence](delivery.md#record-run-evidence).
- **Symbol FS**: an optional read-only symbol filesystem that exposes a repository's symbols, context, and impact as files; it bounds code context, and no bundled script reads it.
