Snapshot taken 2026-11-10, 06:52 to 07:05 UTC. Read-only page. All times are UTC.
Where tests run now, and where we get blindsided
CI did not go away; it moved. The test robot on the git server was switched to manual on 11-07 and now runs nothing by itself.1 The tests moved inside every factory room: a room must pass the repo's own test script before it may deliver.2 But merges into the main branch (the seat's, the helpers', the factory's) run almost no tests.3 So a bad merge is found later, by the rooms, and every room fails at once.
"CI" means tests that run by machine on every change. "Main branch" is the one shared copy of the code that everything ships from. A "room" is one sealed machine where an agent builds one ticket.
One change, from ask to live
Each row is one repo. Each coloured bar is a place where a check runs. The colour says what a failure there stops.
Ask
You ask the seat.
Ticket
Seat writes a ticket file. Small fixes skip this and go straight to merge.
Room
Blocks only a roomTicket's own tests: the room must add a test and pass it.4 Blocks only a roomRepo script, 30 min limit: copy-paste check plus only the test files this change touched.5Merge
Blocks a mergeRoom's work: changed files must load. No tests.6 Blocks a mergeSeat's own merge: changed files must load, extensions must start. No tests.3 Blocks nothingGit-server CI: manual only since 11-07.1Deploy
Every push: each machine pulls the newest main.7
Blocks nothing"Only deploy green" is switched off.7 Blocks that deployFeCode only: the app must build, or the old app stays and a note is written.8Live
Agents and FeCode run the new code.
Ask
You ask the seat.
Ticket
Ticket file lives in pi. The room works on Ferrum.
Room
Blocks only a roomTicket's own tests.4 Blocks only a roomRepo script, 30 min limit: code check, type check, a long API test list, plus whole-repo checks that fail if main itself is broken.9Merge
Blocks a mergeRoom's work: files must load, web types must pass. No tests.6 Blocks a mergeSeat's own merge: one naming check, added tonight after the break. No tests.3 Blocks nothingGit-server CI: manual only since 11-07.1Deploy
Server checks for new main every 5 minutes.15
Blocks nothingCI result is read, then ignored: "deploying anyway".15 Blocks that deployA database change not yet applied stops the deploy there.16Live
Undoes a deployHealth check and a live smoke test run after deploy. A failure puts the old version back.16Ask
You ask the seat.
Ticket
None. The factory only works on pi and ferrum.17
Room
None. No repo test script exists here.17
Deploy
The scripts run from this folder, so a commit is live at once. A push also syncs published pages.17
Live
These scripts do the merging and room-starting for the other two repos.
Read the picture this way. The amber bars are the only real tests. They sit in the room. The red bars at merge only ask "does the file load". So nothing tests the main branch itself, yet every room depends on the main branch being healthy.
Where we get blindsided
| The gap | What happened because of it | What it cost |
|---|---|---|
| Whole-repo checks run inside every room, but never when main changes. | 11-10: three merges each broke a whole-repo check on Ferrum's main. No machine noticed at merge time. Rooms found out one by one.10 | 27 failed room runs. 9 tickets. 3 h 55 min from first to latest failure, and still open.11 |
| The seat's and helpers' merges skip the tests. | 11-10 06:07: the seat added one check to its Ferrum merge script. At 06:10:36 the next merge (PR 1729) broke a different check that the script does not run.12 | Main red again 3 min 47 s after it was fixed. 2 more rooms failed by 06:52.12 |
| When main is broken, the dispatcher blames the ticket. | 11-10 05:19: 7 tickets parked as "failed twice today". 06:07: 8 parked as "gate-dead" (three gate failures in a row). The seat had to un-park them by hand-editing a date file, three times.13 | 11 to 16 rooms free with 0 to 2 starts per run, 06:05 to 06:56. 10 tickets parked at 06:52.14 |
| One break hides the next. | The test script stops at its first failure. Break 2 merged at 02:51:42 but stayed hidden behind break 1 until 05:25:42.18 | 2 h 34 min before anyone could see the second break. It then took 41 more minutes to fix.18 |
| Nothing retries when the system is quiet. | 11-10: the dispatcher wrote no rows from 03:03:47 to 05:01:42. It runs when something is pushed, and nothing was. Cause not confirmed.19 | 1 h 58 min with zero room starts.19 |
| Scripts and notes still talk as if CI runs. | The pi merge script says "CI post-merge still runs and reports". It does not: the workflow is manual only. The Ferrum deploy notes say "deploys only green"; the code says "deploying anyway".20 | No hours measured. This is why "do we have CI" has no clear answer. |
| The room log is split across machines. | The log on the main factory machine shows 6 hit tickets. The desktop's log holds the rest. Read one file and you see about half.11 | The first count tonight was 6 tickets. The real count is 9. |
| Same gap, earlier dates (from notes left in the scripts). | 10-30: three reds on pi's main from skipping one test. 11-07: a merge deleted a folder and pi would not start. 11-08 to 11-09: a ticket broke every FeCode build.21 | FeCode: 7 hours stale and nobody knew.21 |
What tonight looked like
The seat's lead was "one bad test merge, failures from 05:12". The logs say otherwise: failures began at 02:56, and there were three causes, overlapping. Red bars show when each check was broken on Ferrum's main.
- Break 1. PR 1718 merges. The module boundary check now fails on main. (That check stops code areas from reaching into each other.) PR 1719 at 02:51:39 adds a second failure to it.10
- Break 2. PR 1720 merges the form probe test. One line trips the naming check. This is the merge the seat knew about.10
- First room fails the repo test gate (ticket 1260). Six more follow by 03:03:45.11
- Last Ferrum ticket to open a pull request (ticket 1254). A pi ticket delivered later, at 05:17:51, so "nothing delivered after 03:02" is true for Ferrum only.11
- Dispatcher goes quiet. No rows for 1 h 58 min.19
- Dispatcher wakes and restarts 10 tickets in five runs.19
- Rooms start failing again. Nine fail by 05:25:42. At 05:19:39 the dispatcher has parked 7 tickets as "failed twice today".13
- Fix 1. PR 1727 makes the boundary check pass. Two minutes later a room shows the naming failure for the first time.18
- Third wave. Nine rooms fail by 06:08:11, eight of them on the naming check.11
- Fix 2. PR 1728 renames the variable. Naming check passes. At 06:07:07 the dispatcher shows 12 rooms free, 8 tickets parked as "gate-dead", 0 started.14
- Break 3. PR 1729 merges a change to alert mails. Its own test now fails on main.12
- Ticket 1235 fails on break 3. Ticket 1253 follows at 06:52:04. Ten tickets parked.12
- Still red when this page was made. Checked on the newest main (commit 9fc00e1cb).12
Two real rows from the room log (cut where marked with …):
2026-11-10T02:56:40.183Z ticket=1260 run=37324 admission=admitted room_run=failed exit=1 outcome=gate-blocked pr=unknown room=pi-9b6df65834f7e5f08c2f5321 reason=room: guest exit 1: goal blocked: gate failed: timeout=1800s bash -o pipefail -c 'set -e; head=$(git rev-parse HEAD); … echo "repository CI needs clean committed HEAD" … (exit 1): raise AssertionError("\n".join(failures))
2026-11-10T05:25:42.666Z ticket=1235 run=37335 admission=admitted room_run=failed exit=1 outcome=gate-blocked pr=unknown room=pi-f7cbba5e79010c82c2196364 reason=room: guest exit 1: goal blocked: gate failed: timeout=1800s bash -o pipefail -c 'set -e; head=$(git rev-parse HEAD); … (exit 1): schema-name self-test: PASS (155 cases) ap
And one from the dispatcher log:
{"at": "2026-11-10T06:07:07Z", "free": 12, "started": 0, "skipped": {"delivered": 210, "gate-dead": 8, "recent": 2}, …}
A simpler design
What each rule would have changed tonight
- Rule 1: the 27 room failures were all on checks about main, not about the ticket. Rooms would not have run those checks.
- Rule 2: one run at 02:45 would have said "main is red, PR 1718 did it". Today that answer arrived through nine tickets over four hours.
- Rule 3: no ticket gets blamed for a broken main, so nothing is parked by mistake and nothing needs un-parking by hand.
- Rule 4: breaks 2 and 3 came from seat and helper merges. Both fail a check that takes seconds to run.
Still to decide before building: which checks count as "quick", where the one main run lives (the idle git-server CI or the factory machine), and who is woken when main turns red.
Not verified
- Branch protection on the git server. Reading it needs a token I may not use. The only evidence is a note in Ferrum's repo saying protection requires no checks.20
- What the Ferrum deploy did tonight. I was told not to log in to the server. I read the deploy script, not its log. I do not know whether broken-main commits went live or whether the smoke test passed.
- What the deploy's CI reader returns when CI never ran. "Waiting" or "red" means deploy anyway. "Cannot read" means stop. I did not run it.
- Why the dispatcher was silent 03:03 to 05:01. The gap is in the log. The cause is my reading of the trigger design.
- Which script merged the helper pull requests (1718, 1719, 1720, 1727, 1729).
- Two early failures (tickets 1274 and 1262 at 03:03): the log row is cut before the failing check's name. One failure at 06:01:51 shows the boundary error after its fix; that room likely started on older code.
- Room-hours lost. I counted failed runs, not how long each ran.
- "12 rooms idle all night." Before 06:05 the dispatcher printed "free 2", which looks like a start limit, not a count of empty rooms. Only the 06:05 to 06:56 rows show 11 to 16.
- The third factory machine had no rows for 11-10. I took that as "ran no rooms".
- "Every ticket has its own test gate." 49 of the 56 ticket files numbered 12xx name it. Not all.
- Live rooms match the repo. I read the gate code on disk, not the copy baked into running rooms.
- Two other git-server jobs still run by themselves (a pi release job on version tags, a Ferrum mobile release job on a 30-minute timer). I did not read what they do.
- copilot has a tests folder. I found nothing that runs it, but did not search every timer.
Sources (every number above)
/home/jay/.pi/.forgejo/workflows/ci.yml:2-4and/home/jay/ferrum/.forgejo/workflows/ci.yml:20-22: comment "Jay 2026-11-07: PR/push CI gutted … Manual runs only", trigger isworkflow_dispatchonly. copilot has no.forgejo/workflowsfolder./home/jay/.pi/agent/extensions/factory/repository-ci.mjs:8-9(script path, 1800000 ms = 30 min),:20(runs as user pi-ci),:88-89(gate added to every room contract),:117. Wired in atdeliver.mjs:17,164,264./home/jay/copilot/scripts/force-merge.sh:12-17("tests report, never refuse. Only a load smoke blocks"),:38(forced merge)./home/jay/copilot/scripts/ferrum-merge.sh:3-7(one check:gate_schema_name.py),:11(forced merge). That check was added in copilot commitc391989, 2026-11-10 06:07:22Z./home/jay/ferrum/scripts/room-own-tests.sh:2-7and the same file in pi: pass = the room added or changed a test file and it passes. Example use:/home/jay/.pi/plans/ticket-1263-ferrum-audit-deck.md:73. Count 49 of 56:grep -c room-own-tests.sh /home/jay/.pi/plans/ticket-12*.md./home/jay/.pi/scripts/ci-room.sh:2-7("slop job … then only the node test files under tests/ changed since the merge base. Never the full suite"),:27-34. File is on pi's main:git ls-tree origin/master -- scripts/ci-room.sh./home/jay/copilot/scripts/factory-land.py:2-7("Only a parse failure blocks"),:99-106(parse check, Ferrum web type check),:115(forced merge),:14(repos: pi and ferrum only)./home/jay/copilot/trigger/hook.py:5,22-24,52-55./home/jay/.pi/scripts/pi-autodeploy.sh:538-540: "Shadow CI … deploy the master tip; the post-merge gate returns only with PI_AUTODEPLOY_REQUIRE_GREEN=1"./home/jay/copilot/trigger/fecode_deploy.sh:8,16-17,24-27./home/jay/ferrum/scripts/ci-room.sh:273-293(the room lane),:96-184(API list with changed-file selector at:69-94),:119-120(code and type check),:282(module boundaries, no selector),:253-271(docs lane::256alert test,:268-269naming check, no selector),:11(stops at first failure).- Ferrum
git log origin/master:4a24fc283PR 1718 merged 02:45:27Z;663396967PR 1719 02:51:39Z;05542c65fPR 1720 02:51:42Z;e2966dd79PR 1727 05:23:08Z;93e92ee2cPR 1728 06:06:49Z;270576f0cPR 1729 06:10:36Z. I ran each check on a clean copy of the commit before and after:test_module_boundaries.pypasses before 4a24fc283, fails at it, passes at e2966dd79.gate_schema_name.pypasses before 05542c65f, fails at it (fileapps/sites/scripts/test_zz_deploy_probe.mjs:161), passes at 93e92ee2c.scripts/test_status_alert_quota.pypasses at 93e92ee2c, fails at 270576f0c and at 9fc00e1cb. /var/lib/forgejo-runner/factory-runs/factory.logon the main factory machine (rows 2319-2331) plus the same file on the desktop, rows dated 2026-11-10T02 to T06. Rows withoutcome=gate-blockedand "repository CI": 7 (02:56:40 to 03:03:45), 9 (05:12:25 to 05:25:42), 9 (06:01:51 to 06:08:11), 2 (06:49:01, 06:52:04) = 27. Tickets: 1235 1253 1260 1261 1262 1263 1271 1272 1274. Main-machine file alone: 1235 1253 1260 1262 1263 1271. Deliveries: ticket 1254 PR 1725 at 03:00:39; ticket 1276 PR 5601 at 03:02:22 (pi); ticket 1275 PR 5603 at 05:17:51 (pi).- Copilot commit
c391989at 06:07:22Z added the check; PR 1729 merged 06:10:36Z (06:06:49 + 3 min 47 s). Desktop factory.log rows 06:49:01 (ticket 1235, run 37354) and 06:52:04 (ticket 1253, run 37355) end in"RECOVERED" in recovered[0]["subject"]), which is/home/jay/ferrum/scripts/test_status_alert_quota.py:120. Re-run by me at 06:58Z on 9fc00e1cb: exit 1, IndexError. /home/jay/copilot/.dispatch.log: row 05:19:39Z"failed2x": 7; row 06:07:07Z"gate-dead": 8; row 06:52:33Z"gate-dead": 10. Rules:/home/jay/copilot/scripts/factory-dispatch.py:217-225(gate-dead = last 3 runs all gate-blocked),:239-251(failed twice today),:358-360. Hand edits ofops/base-fixed.json: copilot commits96f7e55(05:37:55Z),c391989(06:07:22Z),15084c2(06:10:37Z)./home/jay/copilot/.dispatch.logrows 06:05:23Z ("free": 13) through 06:56:42Z ("free": 14); lowest 11 once at 06:06:33, highest 16 at 06:28:16. Starts in that span: 2 at 06:35:07, 1 at 06:39:07./home/jay/ferrum/infra/vps/systemd/ferrum-auto-cd.timer:5(OnCalendar=*-*-* *:0/5:00)./home/jay/ferrum/scripts/auto-cd.sh:731-732(reads CI),:754-758("CI is shadow (Jay 2026-11-05): report it, deploy the tip anyway"),:760-764(unreadable = halt). Reader:scripts/auto_cd_ci_gate.py:2-28./home/jay/ferrum/scripts/auto-cd.sh:27-33(database-change halt, smoke, rollback, skip a bad commit),:1038(rollback),:1164-1171(health wait),:1212-1215,1248(smoke, two tries, then roll back),:770(staging check defaults to shadow).- No
/home/jay/copilot/.forgejoand no/home/jay/copilot/scripts/ci-room.sh(also absent on its main branch).factory-land.py:14andfactory-dispatch.py:127: factory targets are pi and ferrum.hook.py:56-57: a copilot push only syncs published pages. Direct commits:git -C /home/jay/copilot log. - Break 2 merged 02:51:42Z (source 10). First room row showing it: 05:25:42Z ticket 1235 (source 11) = 2 h 34 min. Fixed 06:06:49Z = 41 min later. Before 05:23:08Z every row ends in the boundary error
raise AssertionError("\n".join(failures))from/home/jay/ferrum/apps/api/scripts/_honest_checks.py:28. /home/jay/copilot/.dispatch.loglines 8077 (03:03:47Z) and 8082 (05:01:42Z) are consecutive status rows. Lines 8080-8098: ten "rerun=2 dispatched" rows between 05:01:42 and 05:06:16. Trigger design:/home/jay/copilot/trigger/hook.py:2-8. 45-minute "recent" skip:factory-dispatch.py:366./home/jay/copilot/scripts/force-merge.sh:22against source 1./home/jay/ferrum/infra/vps/README.md:23andauto-cd.sh:17-18againstauto-cd.sh:754-758./home/jay/ferrum/.forgejo/required-checks.jsoncomment: "CI is shadow (Jay 11-05): protection requires no contexts".- Notes inside the scripts:
/home/jay/copilot/scripts/force-merge.sh:3-5(10-30),:15(11-07, pi pull request 5144),/home/jay/copilot/trigger/fecode_deploy.sh:24(11-08/09, ticket 1193, 7 hours). I did not re-check these older events.