oficina / equipo Public

docs: record final fix wave verification and remaining limits

codex agent, operated by paul@keymail.dev pushed by claude agent, operated by paul@keymail.dev e75ea6069b1c2dbebfc4948e4806b028ff8ea8f2 parent d613a5c
2 files changed, +285 −0
  • docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md +243 −0
  • scripts/runner-reference-allowlist.json +42 −0

CI passed — run details

diff --git a/docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md b/docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md
index 2f537a09..d5fd57b7 100644
--- a/docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md
+++ b/docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md
@@ -27285,3 +27285,246 @@ Exit 0:
```
+
+## Tagged worker verification
+
+The optional direct_live command entrypoint also compiles. This is a build-only check; no worker or provider was started.
+
+### direct-live-tag-build
+
+`CGO_ENABLED=0 go test -tags direct_live ./cmd/equipo-runner -run ^$ -count=1`
+
+Exit 0:
+
+```text
+ok amadan.net/oficina/equipo/cmd/equipo-runner 0.040s [no tests to run]
+```
+
+
+## Final verification
+
+All FIX and FIX-MINOR findings are implemented. The complete restored gate passed at d613a5c. Build, vet, formatting, staticcheck, vulnerability scan, secret scan, package budgets, complete tests, adapter checks, namespace checks, migration check and performance all passed. The required initial /tmp make test was red; its failures were fixed in a separate commit and the affected tests passed under another fresh /tmp directory. Both temporary directories were removed. The .amadan entrypoints still delegate to the same Make targets. No push, merge, deployment or live certification was performed.
+
+### gate-ci-final
+
+`CGO_ENABLED=0 make ci`
+
+Exit 0:
+
+```text
+3.04s amadan.net/oficina/equipo/internal/equipotest TestRunnerDirectEndToEnd
+receipt: slow test 14.96s amadan.net/oficina/equipo/internal/runner TestRunnerEventDrainBacklog
+receipt: slow test 9.71s amadan.net/oficina/equipo/internal/equipotest TestBugPreparationIntegration
+python3 scripts/runner-prerequisites.py
+CGO_ENABLED=0 go test ./internal/runner/provider/... ./internal/runner/checks -run 'TestDirect|TestProvider|TestCheckSandbox' -count=1
+ok amadan.net/oficina/equipo/internal/runner/provider 0.043s
+ok amadan.net/oficina/equipo/internal/runner/provider/claude 0.701s
+ok amadan.net/oficina/equipo/internal/runner/provider/codex 0.500s
+ok amadan.net/oficina/equipo/internal/runner/checks 6.607s
+CGO_ENABLED=0 go test ./internal/runner/containment -run '^TestNamespace' -count=1
+ok amadan.net/oficina/equipo/internal/runner/containment 4.122s
+CGO_ENABLED=0 go test ./internal/equipo -run '^TestMigrationModels$' -count=1
+ok amadan.net/oficina/equipo/internal/equipo 0.082s
+go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -require TestPerfScreens,TestPerfBoot -tags perf -count=1 -p 1 -parallel 1 -run '^TestPerf' ./...
+perf: GET /: median 127µs, worst 133µs, budget 150ms
+perf: GET /auth/callback: median 56µs, worst 68µs, budget 150ms
+perf: GET /auth/verify: median 46µs, worst 55µs, budget 150ms
+perf: GET /connections: median 2.839ms, worst 3.005ms, budget 150ms
+perf: GET /conversation: median 3.764ms, worst 4.023ms, budget 150ms
+perf: GET /journey: median 3.798ms, worst 4.105ms, budget 150ms
+perf: GET /needs-you: median 3.55ms, worst 3.729ms, budget 150ms
+perf: GET /people: median 2.351ms, worst 3.56ms, budget 150ms
+perf: GET /projects: median 2.754ms, worst 3.105ms, budget 150ms
+perf: GET /projects/new: median 2.619ms, worst 2.829ms, budget 150ms
+perf: GET /projects/{id}: median 4.04ms, worst 4.097ms, budget 150ms
+perf: GET /projects/{id}/edit: median 2.749ms, worst 4.025ms, budget 150ms
+perf: GET /runners/enrol: median 8.277ms, worst 8.648ms, budget 150ms
+perf: GET /settings: median 2.442ms, worst 2.748ms, budget 150ms
+perf: GET /settings/recovery: median 7.642ms, worst 8.374ms, budget 150ms
+perf: GET /settings/recovery/release: median 7.765ms, worst 8.227ms, budget 150ms
+perf: GET /signin: median 188µs, worst 215µs, budget 150ms
+perf: GET /specialists/{key}: median 3.562ms, worst 3.893ms, budget 150ms
+perf: GET /tasks/new: median 2.426ms, worst 2.731ms, budget 150ms
+perf: GET /tasks/{id}: median 3.176ms, worst 3.789ms, budget 150ms
+perf: GET /tasks/{id}/merge: median 2.838ms, worst 2.988ms, budget 150ms
+perf: GET /tasks/{id}/questions/{question}: median 3.138ms, worst 3.281ms, budget 150ms
+perf: GET /work: median 2.395ms, worst 2.711ms, budget 150ms
+perf: cold boot: median 52ms of [51.635992ms 51.959211ms 58.493726ms], budget 500ms
+
+receipt: test step 9.164s against a 60s target (the gate's other steps are not in this figure)
+receipt: 1 packages ran, 0 cached, 22 without tests, 0 failed
+receipt: slow package 4.475s amadan.net/oficina/equipo/internal/equipotest
+receipt: slow package 0s amadan.net/oficina/equipo/internal/runner/checks
+receipt: slow package 0s amadan.net/oficina/equipo/internal/directlive
+receipt: slow package 0s amadan.net/oficina/equipo/internal/equipo
+receipt: slow package 0s amadan.net/oficina/equipo/internal/equipo/team
+receipt: slow test 4.29s amadan.net/oficina/equipo/internal/equipotest TestPerfScreens
+receipt: slow test 190ms amadan.net/oficina/equipo/internal/equipotest TestPerfBoot
+```
+
+
+## Timing concern
+
+The local complete gate reported advisory package times above the default 10-second limit: containment 10.101s, forge 11.106s and provider 10.471s. These timings become failures when CI or AMADAN_CI is set. The required /tmp run also reported forge at 11.463s. The final functional suite had zero failed packages. Limits were not raised, and no timing waiver was added. Controller should retain this as a CI timing risk on the shared machine.
+
+
+## Pending copy and release limits
+
+New user-facing entries remain individually pending in internal/equipo/copy.go:
+
+- task.old_runner_stopped: Old runner stopped
+- task.old_runner_stopped.help: Confirm that the old runner and all its processes have stopped before continuing this task.
+- trial.history: Historical supervised trial
+
+No copy-review server was started. No new accent borders were added. The release remains uncertified until the separate live gate supplies actual provider evidence; missing hook/currency/FD evidence fails closed. The stricter runtime-home allowlist may need an explicitly reviewed update if a provider introduces new runtime artifacts. The permitted atomic-source-mutation fallback restores on every returned path, but a killed process needs the documented operator backup/recovery. Existing offline sandbox and fake-toolchain release tests are the only interpretation exceptions, described above.
+
+
+## Changed files
+
+Files changed from the reviewed head:
+
+- Makefile
+- cmd/equipo-runner/direct_live.go
+- cmd/equipo-runner/direct_live_disabled.go
+- cmd/equipo-runner/main.go
+- docs/live-gate.md
+- docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md
+- internal/directlive/budget_test.go
+- internal/directlive/certificate.go
+- internal/directlive/certification_guards.go
+- internal/directlive/certification_guards_test.go
+- internal/directlive/driver.go
+- internal/directlive/driver_test.go
+- internal/directlive/generation.go
+- internal/directlive/observations.go
+- internal/directlive/probes.go
+- internal/directlive/readback.go
+- internal/directlive/recovery.go
+- internal/directlive/staged_source.go
+- internal/directlive/testdata/fake-cli.py
+- internal/directlive/turn.go
+- internal/equipo/app.go
+- internal/equipo/approval_revoke.go
+- internal/equipo/copy.go
+- internal/equipo/migrations/0019_direct_reconcile.sql
+- internal/equipo/old_runner.go
+- internal/equipo/questions.go
+- internal/equipo/runner_events.go
+- internal/equipo/runner_report_validation.go
+- internal/equipo/task_handlers.go
+- internal/equipo/task_views.go
+- internal/equipo/team/actions.go
+- internal/equipo/templates/runners.html
+- internal/equipo/templates/task.html
+- internal/equipotest/approval_once_test.go
+- internal/equipotest/direct_containment_test.go
+- internal/equipotest/direct_cutover_test.go
+- internal/equipotest/direct_migration_exit_test.go
+- internal/equipotest/execution_schema_test.go
+- internal/equipotest/runner_release_test.go
+- internal/release/manifest.json
+- internal/release/refresh_test.go
+- internal/runner/approval_once_test.go
+- internal/runner/capture.go
+- internal/runner/certified/policy.go
+- internal/runner/certified_network_test.go
+- internal/runner/checks/namespace.go
+- internal/runner/config.go
+- internal/runner/containment/helper_version_test.go
+- internal/runner/containment/linux.go
+- internal/runner/containment/linux_test.go
+- internal/runner/containment/mounts.go
+- internal/runner/containment/mounts_test.go
+- internal/runner/containment/recovery.go
+- internal/runner/diagnostics.go
+- internal/runner/direct_admission.go
+- internal/runner/direct_admission_test.go
+- internal/runner/direct_answer_capture.go
+- internal/runner/direct_events.go
+- internal/runner/direct_namespaces.go
+- internal/runner/direct_questions.go
+- internal/runner/direct_recovery.go
+- internal/runner/direct_runtime_test.go
+- internal/runner/direct_tools_test.go
+- internal/runner/direct_upload.go
+- internal/runner/direct_upload_test.go
+- internal/runner/direct_wait_test.go
+- internal/runner/direct_workflow.go
+- internal/runner/direct_workflow_test.go
+- internal/runner/egress/policy.go
+- internal/runner/events.go
+- internal/runner/forge/approval_profile_test.go
+- internal/runner/forge/description.go
+- internal/runner/forge/description_test.go
+- internal/runner/forge/description_transport.go
+- internal/runner/forge/publisher.go
+- internal/runner/journal.go
+- internal/runner/journal_reset.go
+- internal/runner/journal_test.go
+- internal/runner/preflight_cache.go
+- internal/runner/preflight_cache_test.go
+- internal/runner/provider/accounts.go
+- internal/runner/provider/accounts_test.go
+- internal/runner/provider/check_policy.go
+- internal/runner/provider/claude/answers.go
+- internal/runner/provider/claude/answers_test.go
+- internal/runner/provider/claude/launcher.go
+- internal/runner/provider/claude/launcher_test.go
+- internal/runner/provider/claude/parity_test.go
+- internal/runner/provider/codex/answers.go
+- internal/runner/provider/codex/answers_test.go
+- internal/runner/provider/codex/events.go
+- internal/runner/provider/codex/launcher.go
+- internal/runner/provider/codex/launcher_test.go
+- internal/runner/provider/codex/native_approval.go
+- internal/runner/provider/codex/readback_test.go
+- internal/runner/provider/codex/testdata/unauthenticated-0.165.0.json
+- internal/runner/provider/direct_certification.go
+- internal/runner/provider/direct_certification_test.go
+- internal/runner/provider/native_approval.go
+- internal/runner/provider/native_json.go
+- internal/runner/provider/native_overlay_test.go
+- internal/runner/provider/runtime_home.go
+- internal/runner/provider/types.go
+- internal/runner/retry.go
+- internal/runner/runtime.go
+- internal/runner/runtime_direct.go
+- internal/runner/service.go
+- internal/runner/tool_journal.go
+- internal/runner/turn_prompt.go
+- internal/runnerproto/boundaries_test.go
+- internal/runnerproto/budget_test.go
+- internal/runnerproto/containment.go
+- internal/runnerproto/event_io.go
+- internal/runnerproto/questions.go
+- internal/runnerproto/retry.go
+- internal/runnerproto/turn_prompt.go
+- scripts/runner-dead-references.py
+- scripts/runner-prerequisites.py
+- scripts/runner-reference-allowlist.json
+- scripts/runner-release-check.py
+
+
+## Implementation commits
+
+```text
+56ca88b fix: match the real Codex 0.165.0 initialize and config/read shapes
+a42c4ac fix: let person answers wait across renewed runner leases
+3cf98b6 fix: scan only tracked files for dead runner references
+1e54a41 fix: recover unacknowledged launches and bound idle preflight storage
+faaf477 fix: let owners reconcile stopped legacy runners after migration
+1dc07df fix: bind namespace helpers to the running runner and protocol
+488b79d fix: align Claude workspace approvals and report preflight diagnostics
+8ff9cc2 fix: close final review gaps in approvals and certification evidence
+d613a5c fix: preserve startup evidence and correct final gate failures
+```
+
+
+## B1-C1 recording command
+
+The one real app-server recording was run with `python3 /home/paulca/t/e2b/fixwave/record.py`. It checked the pinned SHA before execution, created a fresh cx-* scratch directory below /home/paulca/t/e2b/fixwave, wrote an empty config.toml and passed the fixture settings through generated -c flags. The subprocess command was the pinned Codex path plus `app-server --strict-config --listen stdio://` and those flags. Its request sequence and sanitized response frames are committed in internal/runner/provider/codex/testdata/unauthenticated-0.165.0.json. Output: `Recorded 3 frames; exit 0 methods: initialize, initialized, config/read`. The script closed stdin, waited for process exit and removed the scratch home in finally. Only protocol defaults and sanitized paths remain in the fixture.
+
+
+## Cleanup
+
+Removed /home/paulca/t/e2b/fixwave after copying evidence into these reports. No task scratch processes remained. The two fresh /tmp test directories were removed after their commands. Other pre-existing scratch directories were left alone. The worktree was clean before this final documentation update. No server, watcher or background test was left running.
diff --git a/scripts/runner-reference-allowlist.json b/scripts/runner-reference-allowlist.json
index 10def640..cdae9f2b 100644
--- a/scripts/runner-reference-allowlist.json
+++ b/scripts/runner-reference-allowlist.json
@@ -2449,6 +2449,48 @@
"count": 2,
"reason": "Task 11b controller evidence of offline packaging, refusal tests and unresolved release prerequisites; no execution dependency."
},
+ {
+ "path": "docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md",
+ "line_sha256": "e4a8f28247ec2fba79aa666ab7210efa58014fdc9e83987a1e09981d4c391f3c",
+ "match": "equipo-runner",
+ "count": 1,
+ "reason": "Task 11b controller evidence of offline packaging, refusal tests and unresolved release prerequisites; no execution dependency."
+ },
+ {
+ "path": "docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md",
+ "line_sha256": "56994ba234e2e7e4839dcaf0525e4afa867cdac8f0a95054d8ddede82eb38472",
+ "match": "equipo-runner",
+ "count": 1,
+ "reason": "Task 11b controller evidence of offline packaging, refusal tests and unresolved release prerequisites; no execution dependency."
+ },
+ {
+ "path": "docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md",
+ "line_sha256": "43a467163f5220039a9a17c2eb9b7ab7efe80aca87c3f0c2bd4d134050e1d360",
+ "match": "trial",
+ "count": 2,
+ "reason": "Task 11b controller evidence of offline packaging, refusal tests and unresolved release prerequisites; no execution dependency."
+ },
+ {
+ "path": "docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md",
+ "line_sha256": "22aa219815111f17a04430cf037c963fcd34d61d01f60799d16218d5b2e79f05",
+ "match": "equipo-runner",
+ "count": 1,
+ "reason": "Task 11b controller evidence of offline packaging, refusal tests and unresolved release prerequisites; no execution dependency."
+ },
+ {
+ "path": "docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md",
+ "line_sha256": "5568de33d6602030e3077420a13ca0d05dd51c7b552c37913b12e4be00326349",
+ "match": "equipo-runner",
+ "count": 1,
+ "reason": "Task 11b controller evidence of offline packaging, refusal tests and unresolved release prerequisites; no execution dependency."
+ },
+ {
+ "path": "docs/superpowers/plans/CONTROLLER-REPORT-plan-2b.md",
+ "line_sha256": "52b8322ec2f77847eb9918fbcb74723c246476650973319a56410ff35b422d76",
+ "match": "equipo-runner",
+ "count": 1,
+ "reason": "Task 11b controller evidence of offline packaging, refusal tests and unresolved release prerequisites; no execution dependency."
+ },
{
"path": "docs/superpowers/plans/CONTROLLER-REPORT-supervised-trial.md",
"line_sha256": "f0e48180e966336a337612fb6654504deae6843f8b3eb8078cf85cc11cf9a33e",