chore: record the runner test budget until legacy removal
2 files changed,
+89
−1
.rastrillo/budgets.txt+1 −1docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md+88 −0
CI failed — run details
diff --git a/.rastrillo/budgets.txt b/.rastrillo/budgets.txt| index 3cf8194b..2de1a25b 100644 |
| --- a/.rastrillo/budgets.txt |
| +++ b/.rastrillo/budgets.txt |
| @@ -21,5 +21,5 @@ time internal/runner 330s Final corrected package rerun measured 152.897s; revie |
| perf GET /live skip Authorized notification stream, bounded to 30 seconds; not a GET screen. |
| perf GET /api/runner/v1/artifacts/{assignment}/{artifact} skip Authenticated runner artifact download, not a browser GET screen. Runner long-poll and blob downloads use POST and are outside the screen inventory. |
| -size internal/runner 9200 - Task 9 wires direct namespaces, durable events, tool relay and recovery. Current source count is 8980 lines; historical Paseo readers remain until Task 11a. |
| +size internal/runner 9200 9500 Task 9 wires direct namespaces, durable events, tool relay and recovery. Current source count is 8980 lines; historical Paseo readers remain until Task 11a. Direct-launch tests landed before Task 11a deletes legacy Paseo, trial and process-inventory tests in internal/runner: containment_r1/r2/r3_test.go, ci_proc_test.go, process_linux_test.go, trial*_test.go and dedicated_user tests. Current test count is 9402 lines; Task 11a must lower or remove the test exemption. |
| time internal/runner/provider/claude 45s Task 5 measured 32.430s for fake CLI sessions and fsynced account, policy, capture and refresh checks; 45s gives 38 percent headroom on the shared runner. |
diff --git a/docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md b/docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md| index 86fbf78c..061669c8 100644 |
| --- a/docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md |
| +++ b/docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md |
| @@ -21042,3 +21042,91 @@ No other runtime copy was added. The label enters persisted provenance from `cop |
| Copy review remains a release requirement. No live provider, account sign-in, machine enrollment or real credential-home creation was performed. Existing offline fixtures use synthetic provider data and local fake CLIs. A response is evidence of scoped consent and transport, not proof of a live provider's effects. Task 11b still owns deployed-policy and live-provider certification. Persistent root grants and unsupported action shapes remain refused as described above. |
| All test processes were awaited. Test-owned HTTP servers and fixture processes use their existing cleanup hooks. Session scratch is confined to `/home/paulca/t/e2b/t8b` and will be removed after the report and commit are saved. Go caches remained at their defaults, and every build/test used `CGO_ENABLED=0`. No merge, push, deployment, server intended to outlive the task, subagent or change in another worktree occurred. |
| + |
| + |
| +## Runner test budget until Task 11a (2026-11-03) |
| + |
| +Changed `.rastrillo/budgets.txt` to allow 9,500 test lines in `internal/runner`, |
| +the next hundred above the measured 9,402. Retained the existing 9,200 source |
| +ceiling and its reason. The appended reason names the legacy tests that Task |
| +11a deletes and requires 11a to lower or remove the test exemption. |
| +No tests moved and no production code changed. Files changed: the budget file |
| +and this appended report section. |
| + |
| +### Why an exemption |
| + |
| +Read the repository AGENTS.md, the supplied global-context.md and the pinned |
| +Rastrillo v0.30.1 `docs/site/testing.md` in the module cache. The latter prefers |
| +feature packages and permits reasoned exceptions when a split is not yet |
| +practical. It forbids duplicate size records, so the existing runner record |
| +now contains both ceilings. |
| + |
| +A test-only move would lose access to runner internals. For example, |
| +`containment_r1_test.go` uses `p.root`, `p.entry`, `p.records`, `ownerKey`, |
| +`s.inspector` and `s.cleanup`; `ci_proc_test.go` uses `p.identity`, |
| +`processRecord` and `p.boot`. These tests also share package-local fixtures. |
| +Extracting a feature would require production changes beyond this task. |
| +The reason names tests in `internal/runner` itself: containment_r1/r2/r3_test.go, |
| +ci_proc_test.go, process_linux_test.go, trial*_test.go and dedicated_user tests. |
| +`internal/runner/paseo` is a separate package and does not reduce this count. |
| + |
| +### RED, GREEN and mutation evidence |
| + |
| +All commands ran in `/home/paulca/amadan.net/oficina/equipo-plan-2b` on `plan-2b`, |
| +starting from clean HEAD `0a257aa`. |
| + |
| +- RED, before editing: `make budget`, exit 2. |
| + `internal/runner: 9402 test lines, ceiling 8000. Split it by feature (docs/site/testing.md), or record an exemption with a reason in .rastrillo/budgets.txt` |
| + `rastrillo: budget size: 1 problem(s)` |
| +- GREEN: `CGO_ENABLED=0 make budget`, exit 0. |
| + `budget size: 20 directories within budget` |
| +- GREEN: `CGO_ENABLED=0 go vet ./internal/runner/...`, exit 0, no output. |
| +- Mutation: temporarily changed only the test ceiling from 9500 to 9401, |
| + then ran `CGO_ENABLED=0 make budget`, exit 2. |
| + `internal/runner: 9402 test lines, over the 9401 its exemption (line 24) allows` |
| + `rastrillo: budget size: 1 problem(s)` |
| + The budget command compiled and reached the size check. |
| +- Restored 9500 and ran `CGO_ENABLED=0 make budget`, exit 0. |
| + `budget size: 20 directories within budget` |
| + |
| +Exact mutation and restoration commands, respectively: |
| + |
| +```sh |
| +python3 - <<'PY' |
| +from pathlib import Path |
| +p = Path('/home/paulca/amadan.net/oficina/equipo-plan-2b/.rastrillo/budgets.txt') |
| +s = p.read_text() |
| +assert s.count('size internal/runner 9200 9500 ') == 1 |
| +p.write_text(s.replace('size internal/runner 9200 9500 ', 'size internal/runner 9200 9401 ')) |
| +PY |
| +CGO_ENABLED=0 make budget |
| +``` |
| + |
| +```sh |
| +python3 - <<'PY' |
| +from pathlib import Path |
| +p = Path('/home/paulca/amadan.net/oficina/equipo-plan-2b/.rastrillo/budgets.txt') |
| +s = p.read_text() |
| +assert s.count('size internal/runner 9200 9401 ') == 1 |
| +p.write_text(s.replace('size internal/runner 9200 9401 ', 'size internal/runner 9200 9500 ')) |
| +PY |
| +CGO_ENABLED=0 make budget |
| +``` |
| + |
| +### Interpretations |
| + |
| +The later binding rules require this report and allow it in the commit, despite |
| +the earlier request for only the budget file and no report section. This is a |
| +configuration fix with an existing failing gate; no new test or runtime guard |
| +was needed. The existing budget gate supplied RED before implementation and |
| +was exercised again with the insufficient-ceiling mutation. The initial |
| +`make budget` used the exact requested command; subsequent Go invocations |
| +explicitly set `CGO_ENABLED=0`. |
| + |
| +### User-facing strings and concerns |
| + |
| +No new application strings or copy.go entries. Only the budget explanation |
| +and this controller report were added. No copy-review server, provider prompt, |
| +subagent, credentials, server, scratch file, push or deployment was used. |
| +Go caches stayed at their defaults. Task 11a must lower or remove the test |
| +exemption after removing the named legacy coverage. No other concerns. |