Operator Manual
Status: Ready
Truth label: Current
Audience: Fleet operator
Reader outcome: Run the agency day to day: the mental model, starting and stopping, the daily loop, writing a good goal, pipelines, clients and confidentiality, what to do when something goes wrong, and what things cost.
Last verified: 2026-09-13
canonical complete guide is System manual, and current release blockers are in Audit report.
How to run the agency day to day. This is the "what do I do" document; Runbook is the command reference, and Architecture explains how the parts fit together.
Everything here was learned by running it, including the mistakes. Where something bit us, it says so.
1. The mental model
You are the operator. Agents do the work; you decide what ships.
- Central (port 8080) holds the queue, the state, and the gates.
- Brain (8081) holds knowledge, learnings, and retrieval.
- Cortex (3000) is your screen.
- Workers run on machines you own and execute tasks through real coding CLIs. Any number, any platform.
Work reaches you in one of two shapes:
- A task: one unit of work on one project.
- A pipeline: a chain of tasks with roles and gates. This is the normal way to run client work.
Nothing gated reaches "done" without your approval. That is the whole point.
2. Starting and stopping
You start things by hand (DEC-20260825-01). Commands are in Runbook under "Manual start is the supported default".
Desktop, all three services: run-all.bat.
Mac worker: nohup ./run-worker.sh <central-url> <brain-url> > /tmp/forge-worker-mbp16.log 2>&1 &
run-all runs python -m brain.preflight first and stops on a failed check, so
a missing influence library or voice pack directory is named before anything
starts; run it by hand after editing .env. A worker has no influence or voice
responsibility and starts either way.
After starting, confirm the fleet is real rather than assuming it:
curl -s -H "Authorization: Bearer $AA_API_TOKEN" localhost:8080/workers
A worker must show idle with a recent heartbeat. offline means it is not
going to pick up your work.
Backups are on you now. The nightly Central backup runs from the Windows supervisor. If that is not running, run it yourself:
.venv\Scripts\python.exe scripts\backup_data.py --keep 7
The archive covers the whole data root and carries a checksum manifest. Check one occasionally, and run the same command on each worker, because a worker's credentials and outbox live on that machine and cannot be in Central's archive:
.venv\Scripts\python.exe scripts\backup_data.py --verify <archive>
Rehearse the restore before you need it. It runs into a scratch directory without taking the agency down: see "Drill it" in Runbook. An archive you have never restored is a guess, not a backup.
3. The daily loop
- Launch work. Cortex → Tasks → New Pipeline. Pick a template, a project, optionally pin a worker, and write the goal.
- Walk away. The middle of a pipeline is machine-gated on purpose so you are not the bottleneck.
- Check the Checkpoints tab when the badge shows a number. That is the only screen you must watch.
- Decide: Approve, Request changes (with feedback), or Fail. At a plan checkpoint you also get Approve plan, mark as done: the plan was what you wanted, or its work is already done, so the task closes with no second run. Failing it would file a success as a rejection and cancel everything waiting on it.
- Grade what you approve, 1 to 5. Grades are not decoration; they feed the outcomes readout and the knowledge-candidate inbox.
The alert bar at the top of Cortex tells you when work is waiting or a worker has gone quiet.
4. Writing a good goal
The goal is a brief, not a ticket title. What made the difference in practice:
- State the definition of done as a command. "node --check passes and the test suite still passes" beats "make sure it works".
- Name the scope boundary. "Only touch
cortex-ui/" prevents sprawl. - Say what must not change. Safety properties get dropped silently otherwise; one pilot run lost a strict type check its own plan promised.
- Do not over-specify the how. The scope stage plans better than a paragraph of instructions does.
If the goal conflicts with the repo's own rules, the agent follows the repo and tells you it did. That is correct behavior, not disobedience.
5. Pipelines
| Template | Stages | Use for |
|---|---|---|
delivery | scope → execute → QA → audit → report | Client work, anything you will hand over |
quickfix | execute → QA → summary | A known, contained change |
delivery gates you twice: approve the plan before work starts,
approve the deliverable before it ships. Everything between is automatic.
The QA gate is machine-enforced. A stage must end with
QA-GATE: PASS or QA-GATE: FAIL: <reasons>. A failure sends the work
back for rework automatically, up to a budget (default 2). When the budget
runs out, it lands in your inbox and you decide.
Nothing downstream of QA runs unless QA passed, or unless you override it with your name on the record.
6. Clients and confidentiality
This is the part that ends an agency if you get it wrong.
- Give every client project a
client_idthrough the Forge API. Noclient_idmeans internal. Cortex does not yet expose this field. - Scoped CPMI and learning HTTP search exists, but Brain chat, LangGraph search tools, direct CPMI records, and direct knowledge documents bypass the same filter.
- A project marked
sharedis intended to export internal methodology to client work. Promoted shared knowledge is not currently returned to a client scope by the general knowledge route. - Cross-scope HTTP search with
scope=allrequires a separate operator token, but most other operator routes still use only the fleet bearer.
The rule: do not run two confidential clients on the current build. Project labels reduce risk but do not form a complete isolation boundary. See Security model.
7. When something goes wrong
A worker shows offline. It is not picking up work. Restart it. Polling now counts as liveness, so a worker that can reach Central will come back on its own next poll.
A task is stuck at "assigned" and the worker died. The lease expires (~60s) and the task fails with "lease expired, worker presumed dead". If it opted into auto-retry, it re-runs on the same worker; otherwise it waits for you.
A pipeline stage failed on something cosmetic. Look at
verification_result before assuming the work is bad. A stage can fail on
its gate while the work is correct. If the gate cannot be passed by any
action the agent can take, review it and approve with override_gate=true
through the Forge API. Cortex does not yet expose the override flag. The work
is accepted and the failure remains on the decision record.
A stage says it could not verify. Believe it. Agents here report what they could not do rather than claiming a pass. Check the command yourself before assuming the code is broken.
Work landed on the wrong machine. Tasks execute at their literal
project_path. A Mac path cannot run on the Windows worker. Pin the task,
and use assigned_worker_id; a mistyped field name is silently dropped
and the task runs anywhere.
8. Traps that actually bit us
- Verification commands are platform-specific. The worker now prepends a
project
.venvto PATH when it exists, but the command and tool still must exist on the target worker. Confirm the exact command before an engagement depends on it. - A green test suite on one machine is not fleet-wide evidence. A security control once passed every test on macOS while being completely inert on Windows. Cross-check anything involving paths or platforms.
safepermission is not an OS sandbox. Plan mode limits the coding CLI, but approved tests and independent verification execute repository code with the worker environment. Use trusted repositories only.- A finding is not a fact until measured. A reported "57 files missing changelog entries" was 4 when counted properly.
9. What things cost
Historical pilot runs observed about $5 for one small clean pipeline. This is not a price guarantee. Provider, model, task size, retries, and environment change the result.
If a run costs several times that, something may be wrong with the environment rather than the work. The first pilot cost $26 for a task that cost $5 once its configuration was fixed.
Per-run cost, tokens, and duration are in the Analytics tab.
10. Where the records live
- the changelog: what changed and why, newest first.
- the task ledger: what is planned, in progress, and recommended.
- the decisions record: decisions with their reasoning and alternatives.
runs.jsonl: every run, with cost and outcome.decisions.jsonl: every approval you made, with your grades.scope_audit.jsonl: denials seen by the scoped HTTP retrieval filter. It does not record paths that bypass that filter.
The first three are the agency's memory and are indexed for retrieval. Keep them true; agents read them and act on what they say.