Reassign work safely when model services are unavailable
The failing test wasn't catching a real bug. The shared test setup gave every fake connection the same home id, and the runner correctly refuses to load two connections that share one. So with both Claude and Codex set up, no connections loaded at all. I gave each fake connection its own home id. This is the only test that sets up more than one connection, so no other test should change. The size failure came from the new connection health code and its tests going slightly over the thin runner's line allowance: 5 source lines and 83 test lines. I raised the allowance to the measured figures and added a note, which is how this project records that kind of growth. The environment blocked my shell commands, so I couldn't run the tests or the size check myself. CI will be the first real check of both fixes. Equipo task tkmngyab7pyj, Engineering step attempt 1.
18 files changed,
+2
−2
.env+0 −0.env.development+0 −0.env.development.local+0 −0.env.production+0 −0.env.production.local+0 −0.env.test+0 −0.env.test.local+0 −0.gitmodules+0 −0.npmrc+0 −0.rastrillo/budgets.txt+1 −1.yarnrc+0 −0.yarnrc.yml+0 −0bunfig.toml+0 −0internal/runner/thin/schedule_test.go+1 −1package-lock.json+0 −0package.json+0 −0pnpm-lock.yaml+0 −0yarn.lock+0 −0
CI failed — run details
diff --git a/.env b/.env| new file mode 100644 |
| index 00000000..e69de29b |
diff --git a/.env.development b/.env.development| new file mode 100644 |
| index 00000000..e69de29b |
diff --git a/.env.development.local b/.env.development.local| new file mode 100644 |
| index 00000000..e69de29b |
diff --git a/.env.production b/.env.production| new file mode 100644 |
| index 00000000..e69de29b |
diff --git a/.env.production.local b/.env.production.local| new file mode 100644 |
| index 00000000..e69de29b |
diff --git a/.env.test b/.env.test| new file mode 100644 |
| index 00000000..e69de29b |
diff --git a/.env.test.local b/.env.test.local| new file mode 100644 |
| index 00000000..e69de29b |
diff --git a/.gitmodules b/.gitmodules| new file mode 100644 |
| index 00000000..e69de29b |
diff --git a/.npmrc b/.npmrc| new file mode 100644 |
| index 00000000..e69de29b |
diff --git a/.rastrillo/budgets.txt b/.rastrillo/budgets.txt| index ede727ab..b223c4ab 100644 |
| --- a/.rastrillo/budgets.txt |
| +++ b/.rastrillo/budgets.txt |
| @@ -38,7 +38,7 @@ time internal/runner/provider 15s Plan 3 CI repair measured 10.346s for the full |
| perf GET /releases/* skip Verified runner release file downloads, not browser GET screens. |
| perf GET /install.sh skip Mac runners: the one-line bootstrap a terminal pipes to sh, not a browser screen. |
| time internal/runner/containment 15s Plan 3 loaded CI measured 10.817s; |
| -size internal/runner/thin 24005 16312 The thin runner: steps, link, the coordinator and the Assistant, Mac worker, previews, merges, metered models, Research, scheduler, site host, OpenCode. Measured 24005 source, 16312 test lines. |
| +size internal/runner/thin 24010 16395 The thin runner: steps, link, the coordinator and the Assistant, Mac worker, previews, merges, metered models, Research, scheduler, site host, OpenCode, connection health. Measured 24010 source, 16395 test lines. |
| time internal/thintest 240s Thin contract and page tests, the Assistant's and the models' included, share one harness. Measured 202s on a shared 16 CPU box (2026-11-13); CI runs two lanes. |
| time internal/runner/mac 30s Mac runners (Darwin worker): real process groups killed after a grace and proven gone (SIGTERM, SIGKILL, the marker sweep), and the probes run end to end with fake srt and xcodebuild, P6 killing. |
| time internal/runner/thin 45s Thin v1 slice 4 review: real git repositories for the merge and squash checks, a stalled fetch, and a 16 MiB candidate streamed through the review diff and the checks pack (about 5s). |
diff --git a/.yarnrc b/.yarnrc| new file mode 100644 |
| index 00000000..e69de29b |
diff --git a/.yarnrc.yml b/.yarnrc.yml| new file mode 100644 |
| index 00000000..e69de29b |
diff --git a/bunfig.toml b/bunfig.toml| new file mode 100644 |
| index 00000000..e69de29b |
diff --git a/internal/runner/thin/schedule_test.go b/internal/runner/thin/schedule_test.go| index c9d2a3a2..4c527a47 100644 |
| --- a/internal/runner/thin/schedule_test.go |
| +++ b/internal/runner/thin/schedule_test.go |
| @@ -49,7 +49,7 @@ func newSchedRig(t *testing.T, subs ...string) *schedRig { |
| var bs []map[string]any |
| for _, id := range subs { |
| provider := id[:len(id)-2] |
| - bs = append(bs, map[string]any{"id": id, "local_id": id, "label": id, "person_id": connPerson, "provider": provider, "family": provider, "model": "m", "account_id": id + "@example.com", "provider_home": filepath.Join(root, id), "kind": "subscription", "expected_identity": map[string]string{"account_id": id + "@example.com", "home_id": "h", "provider_version": "1"}}) |
| + bs = append(bs, map[string]any{"id": id, "local_id": id, "label": id, "person_id": connPerson, "provider": provider, "family": provider, "model": "m", "account_id": id + "@example.com", "provider_home": filepath.Join(root, id), "kind": "subscription", "expected_identity": map[string]string{"account_id": id + "@example.com", "home_id": "h-" + id, "provider_version": "1"}}) |
| } |
| raw, _ := json.Marshal(bs) |
| bindings := filepath.Join(root, "bindings.json") |
diff --git a/package-lock.json b/package-lock.json| new file mode 100644 |
| index 00000000..e69de29b |
diff --git a/package.json b/package.json| new file mode 100644 |
| index 00000000..e69de29b |
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml| new file mode 100644 |
| index 00000000..e69de29b |
diff --git a/yarn.lock b/yarn.lock| new file mode 100644 |
| index 00000000..e69de29b |