Development
Troubleshoot host and run issues
Diagnose and fix macOS, Colima cage, SSH auth, mode.json, Request Review approval, merge sync, verification, mail, and Operator lockout issues.
How-to guide
Use these entries to diagnose and fix common host, cage, run, and web app failures in factory/.
Host & cages
Timeouts & auth
Fix Intel Mac unit timeouts, wedged Colima VMs, and agy SSH logins.
Runs & checks
Blocked lanes
Resolve failed installs, ui-unpredicted shots, 409 approvals, and conflicts.
App & mail
SMTP & lockout
Debug missing sign-in emails and recover locked-out Operator accounts.
Host and cage issues
- Symptom: QC unit checks inside the cage time out on an Intel Mac even when tests run in under a second.
- Cause:
UnitLimit(factory/internal/runner/timed.go) defaults to10 s, while startingnpmandvitestinside Colima on an Intel Mac takes5–9 s. - Fix: Set
T12_UNIT_LIMIT_S=30(1..300) in~/.config/t12/env(0600) and restartt12ort12 ui. On 4-CPU Intel Macs, stop other test suites and exclude demo/state folders from Spotlight.
- Symptom: Containerized build, install, or QC steps hang or run abnormally slowly on macOS.
- Cause: The Colima
t12VM (4CPUs,6 GiBRAM,vz+virtiofs) wedged, usescontainerd, or is competing with host load. - Fix: Restart Colima and verify Docker responds before resuming
t12 run(a coldwrangler devinside Colima takes ~90 s; Release/Red team wait up to300 sfor/healthz):
colima restart t12
docker infoIf a Colima profile uses containerd instead of Docker (runtime: containerd in colima.yaml, or containerd.sock without docker.sock), delete and recreate it with --runtime docker:
colima delete t12
colima start t12 --runtime docker --vm-type vz --mount-type virtiofs --cpu 4 --memory 6 --disk 60 --mount "$HOME:w" --mount /private/var/folders:w- Symptom: Commands using
agyprompt for auth over SSH on a machine already signed in at the desktop. - Cause:
agyreads the desktop keyring locally, but switches to a separate token file wheneverSSH_CONNECTION,SSH_CLIENT, orSSH_TTYis set. - Fix: Strip the SSH environment markers before running
t12ort12 ui(or sign in once viassh -t <host> agy):
env -u SSH_CONNECTION -u SSH_CLIENT -u SSH_TTY factory/bin/t12 run --home <HOME> --conversation <ID>Run and verification issues
- Symptom: A lane stops during
install-deps, or later steps fail on missing packages even thoughnode_modulesexists. - Cause:
npm citimed out or was interrupted mid-extract (or a Linux/tmptmpfsfilled up, causingTAR_ENTRY_ERROR-122). - Fix: Keep state homes and project repos off
tmpfs, clear incompletenode_modulesif needed, reinstall inside the cage image, and resume:
docker run --rm -v <WORKTREE>:/work -w /work <CAGE_IMAGE> npm ci
factory/bin/t12 run --home <HOME> --conversation <ID>- Symptom:
t12 run --home <HOME> --conversation <ID>exits and reports a blocked lane or release step. - Cause: A gate, review finding, Engineer question, or environment failure prevented the Orchestrator from recording
step-done. - Fix: Inspect the full report, fix the underlying issue (pass
--answer "<REPLY>"if an Engineer question blocked), and resume from the last checkpoint:
factory/bin/t12 report --home <HOME> --conversation <ID> --detailed
factory/bin/t12 run --home <HOME> --conversation <ID>- Symptom:
ui-checkfails withui-unpredictedblocking findings across pages or viewports. - Cause: A shared layout or CSS change altered screens missing from
Predicted(factory/internal/roles/uicheck/uicheck.go). - Fix: Compare the before/after screenshot pairs on the Sign-off page in
t12 ui. Add affected screen IDs to the plan if intentional, or revert the side effect.
- Symptom:
t12 conversation verify --home <HOME> --conversation <ID>exits1with a hash mismatch or modified blob. - Cause:
events.jsonlor a write-once file underreports/,evidence/, ordecisions/was edited manually afterfactory/internal/recordwrote it. - Fix: Do not try to patch hashes back into sync. Start a fresh conversation with
t12 ask --home <HOME>.
- Symptom: Worker commands stall or deny execution, and the Conversation permission menu in
t12 uishows an error banner. - Cause:
<home>/access/mode.jsonhas invalid JSON or an unknown mode; harness guard hooks fail closed when unreadable. - Fix: Select a valid mode (
review,default,auto, orturbo) from the Conversation permission menu int12 ui(or viaPOST /api/mode).
- Symptom: Clicking Allow/Deny in
Request Reviewreturns HTTP409(the session that asked has endedoralready decided), or the session stops waiting. - Cause: Command asks bind to the caller session (
approvals.GuardFor+defer approvals.EndSession). Shorter role timers (15manalyzer/explorer,10mcodereview/redteam/sre,5mdeslop,3mstrategist) close pending asks on exit even thoughWaitTimeoutis30m. - Fix: Approve asks promptly while active, or switch away from
Request Reviewfor unattended runs; retry paused steps from Needs you.
- Symptom: After a staging merge sends a lane back to
engineer, the lane blocks before Engineer edits start rather than leaving conflict markers. - Cause:
gitio.SyncOntoStagingkeeps text conflict markers for caged Engineers, but rolls back and blocks on binary or delete/modify (UD) conflicts. - Fix: Inspect the conflicting paths on the block, resolve or drop the binary/deleted-file change on the branch, and resume.
App and mail issues
- Symptom: Submitting an email on
t12 uishows confirmation, but no sign-in or invite email arrives. - Cause: The endpoint always returns a constant response. Either
T12_SMTP_ADDR/T12_SMTP_FROMare unset (links print only to logs) or SMTP rejected/timed out after30 s. - Fix: Check
t12 uilogs for the printed link ormail to <address> failed: .... ConfigureT12_SMTP_ADDR,T12_SMTP_USER,T12_SMTP_PASSWORD, andT12_SMTP_FROMin~/.config/t12/env(0600) and restartt12 ui.
- Symptom: Nobody can approve access requests, manage teams, or approve safety-group preferences in
t12 ui. - Cause: Existing Operator accounts were removed or sessions expired, and
--urltunnel setups disable first-signup auto-promotion. - Fix: Generate a 15-minute Operator recovery link (
<URL>/link?b=1&t=<TOKEN>) or set an Operator password from the host shell (omit--urlfor localhost):
factory/bin/t12 ui --home <HOME> --bootstrap --url <URL>
factory/bin/t12 access set-password --home <HOME> --email <EMAIL> --operator