oficina / equipo Public

hostedctl: refuse only exact amadan.net; 503 service_unset over HTTP

Task 2 review round 1. ctlegress refuses the exact forge name only, so
an exact name under it (team.amadan.net) loads. ErrServiceUnset answers
a signed 503 service_unset, and hostedclient maps it to its own
ErrServiceUnset. The Task 2 progress entry now lists each mutation's
exact command, observed assertion and restoration. Raises the
internal/hostedctl budget record to 5341/8729.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 4ff9161b8f9b2995aaf0384396cbb9732659b183 parent 17de8d2
9 files changed, +85 −21
  • .rastrillo/budgets.txt +1 −1
  • cmd/equipo-hosted-controller/config_test.go +11 −2
  • docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md +13 −8
  • internal/hostedclient/client.go +2 −0
  • internal/hostedclient/client_test.go +24 −1
  • internal/hostedctl/ctlegress/manifest.go +7 −6
  • internal/hostedctl/ctlegress/manifest_test.go +5 −2
  • internal/hostedctl/http.go +2 −0
  • internal/hostedctl/http_test.go +20 −1

CI failed — run details

CI log
=== prepare ===
ci-box: machine: aarch64, 32 CPUs, 62 GiB memory, kernel 7.0.0-1017-aws
ci-box: python 3.12.3; Docker version 29.1.3, build 29.1.3-0ubuntu3~24.04.2
ci-box: user namespaces allowed: 233151
ci-box: cgroup: cgroup2fs
ci-box: disk /home/ci/work/repos/oficina__equipo/wt/hosted-runners-2: Type  Size Avail | ext4   96G   85G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type  Size Avail | ext4   96G   85G
ci-box: bwrap: fetched and verified in 0.3s
ci-box: claude: fetched and verified in 1.4s
ci-box: codex: fetched and verified in 3.5s
ci-box: codex-code-mode-host: fetched and verified in 1.5s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.4s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: image pulled in 9.8s
ci-box: pi: installed and verified in 7.2s
ci-box: opencode: installed and verified in 2.3s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 9.2s
ci-box: clone deepened in 4.7s
ci-box: file times set from content: 3762 files, 245 directories
ci-box: ready in 18.1s
=== copy ===
EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipotest	0.236s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  5.7s
+ go list -export -test -tags testbuild -f  ./...
  6.5s
+ go list -export -test -tags browser,testbuild -f  ./internal/equipo ./internal/equipotest ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
  4.1s
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -version
staticcheck 2026.1 (v0.7.0)
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 -version
Go: go1.26.11
Scanner: govulncheck@v1.8.0
DB: https://vuln.go.dev
DB updated: 2026-11-24 15:56:00 +0000 UTC

go run github.com/zricethezav/gitleaks/v8@v8.30.1 version
version is set by build process
=== check ===
--- shard 0 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-work: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadless$/^4c_rebase$|^TestHeadless$/^4b_ask$|^TestHeadless$/^4c_checks_card$|^TestHeadless$/^4_step_crash$' ./internal/headless

receipt: test step 1m22.928s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m20.75s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m20.75s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 93.54, cpu waiting 46.07%, memory waiting 0.00%, io waiting 0.51%
--- shard 1 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-review: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadless$/^4_review$|^TestHeadless$/^2b_access$|^TestHeadless$/^runner_crash$|^TestHeadless$/^2b_first_message$|^TestHeadless$/^4_checks_honest$|^TestHeadless$/^7_stream_resume$|^TestHeadless$/^2b_notebook$|^TestHeadless$/^2b_move_in$|^TestHeadless$/^2b_desk_failure$|^TestHeadless$/^cancel$' ./internal/headless

receipt: test step 1m21.744s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m19.584s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m19.58s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 93.54, cpu waiting 45.74%, memory waiting 0.00%, io waiting 0.52%
--- shard 2 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-connections: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadlessConnections$|^TestHeadlessTokenPasteEndToEnd$|^TestHeadlessTokenConnection$' ./internal/headless

receipt: test step 1m25.99s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m23.283s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m12.05s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 6.12s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 5.11s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 92.77, cpu waiting 46.66%, memory waiting 0.00%, io waiting 0.49%
--- shard 3 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-mac: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestMacWorker$|^TestHeadlessAttachments$|^TestHeadlessPrewarm$|^TestHeadless$/^1_first_token$|^TestHeadless$/^6_quick_messages$|^TestHeadless$/^8_instance_restart$|^TestHeadless$/^3_runner_offline$' ./internal/headless

receipt: test step 2m48.472s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 2m46.338s amadan.net/oficina/equipo/internal/headless
receipt: slow test 2m12.27s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 15.67s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.38s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
receipt: slow test 9.01s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
machine: 32 CPUs, load 43.57, cpu waiting 18.55%, memory waiting 0.00%, io waiting 0.11%
--- shard 4 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-guards: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadlessCopyRotation$|^TestHeadlessPolicyGuards$|^TestHeadlessRunnerKillLeavesNoCopies$|^TestHeadlessNewHouseRuleStartsFresh$|^TestHeadless$/^3_engineering$|^TestHeadless$/^3_step_cancel$|^TestHeadless$/^3_step_contained$|^TestHeadless$/^3_step_refused$|^TestHeadless$/^3_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless

receipt: test step 1m42.1s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m39.863s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m8.78s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.68s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 8.82s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 7.6s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 4.97s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 86.99, cpu waiting 46.04%, memory waiting 0.00%, io waiting 0.37%
--- shard 5 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-rest: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^TestHeadless$/^4c_rebase$|^TestHeadless$/^4b_ask$|^TestHeadless$/^4c_checks_card$|^TestHeadless$/^4_step_crash$|^TestHeadless$/^4_review$|^TestHeadless$/^2b_access$|^TestHeadless$/^runner_crash$|^TestHeadless$/^2b_first_message$|^TestHeadless$/^4_checks_honest$|^TestHeadless$/^7_stream_resume$|^TestHeadless$/^2b_notebook$|^TestHeadless$/^2b_move_in$|^TestHeadless$/^2b_desk_failure$|^TestHeadless$/^cancel$|^TestHeadlessConnections$|^TestHeadlessTokenPasteEndToEnd$|^TestHeadlessTokenConnection$|^TestMacWorker$|^TestHeadlessAttachments$|^TestHeadlessPrewarm$|^TestHeadless$/^1_first_token$|^TestHeadless$/^6_quick_messages$|^TestHeadless$/^8_instance_restart$|^TestHeadless$/^3_runner_offline$|^TestHeadlessCopyRotation$|^TestHeadlessPolicyGuards$|^TestHeadlessRunnerKillLeavesNoCopies$|^TestHeadlessNewHouseRuleStartsFresh$|^TestHeadless$/^3_engineering$|^TestHeadless$/^3_step_cancel$|^TestHeadless$/^3_step_contained$|^TestHeadless$/^3_step_refused$|^TestHeadless$/^3_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless

receipt: test step 3m32.356s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 3m29.67s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m45.11s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 23.44s amadan.net/oficina/equipo/internal/headless TestMacMixedVersions
receipt: slow test 20.72s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.44s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 7.33s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistantAttachments
machine: 32 CPUs, load 24.54, cpu waiting 9.24%, memory waiting 0.00%, io waiting 0.05%
--- shard 6 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane thintest: ./internal/thintest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test([^C]|C[^o]|Co[^n]|Con[^t])|^TestContract(Assistant|Outcome|Team|Handoff|HostAllowlist|HostIsPerPerson|Look|Use[A-Z]|RemoteCall|LanesRunAtOnce|NoMergeQuestionWhenGateMerges|PreviewHeldUntilPublishAnswer|PreviewNotHeldBelow19|PublishNeedsOwnerAnswer)' ./internal/thintest

receipt: test step 3m31.346s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 3m28.634s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 15.63s amadan.net/oficina/equipo/internal/thintest TestTasklessHoldResumes
receipt: slow test 10.92s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.68s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 5.43s amadan.net/oficina/equipo/internal/thintest TestResumeBeforeRefusalReported
receipt: slow test 5.42s amadan.net/oficina/equipo/internal/thintest TestNudgeResumesHeldJob
machine: 32 CPUs, load 24.54, cpu waiting 9.24%, memory waiting 0.00%, io waiting 0.05%
--- shard 7 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane thintest-contract: ./internal/thintest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^Test([^C]|C[^o]|Co[^n]|Con[^t])|^TestContract(Assistant|Outcome|Team|Handoff|HostAllowlist|HostIsPerPerson|Look|Use[A-Z]|RemoteCall|LanesRunAtOnce|NoMergeQuestionWhenGateMerges|PreviewHeldUntilPublishAnswer|PreviewNotHeldBelow19|PublishNeedsOwnerAnswer)' ./internal/thintest

receipt: test step 2m25.477s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 2m23.377s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.66s amadan.net/oficina/equipo/internal/thintest TestContractRetryPreviewUnverifiedMerge
receipt: slow test 9.08s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 4.94s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.79s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 3.06s amadan.net/oficina/equipo/internal/thintest TestContractPausedJob
machine: 32 CPUs, load 55.10, cpu waiting 26.84%, memory waiting 0.00%, io waiting 0.17%
--- shard 8 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-thin: ./internal/runner/thin
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./internal/runner/thin
budget note: internal/runner/thin took 7m35.193s, over the 45s its record on line 45 allows; reported only, timing fails on CI

receipt: test step 7m41.978s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 7m35.193s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 37.1s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.96s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 36.91s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 33.26s amadan.net/oficina/equipo/internal/runner/thin TestWorkerHelloConnections
receipt: slow test 18.53s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
machine: 32 CPUs, load 1.64, cpu waiting 0.13%, memory waiting 0.00%, io waiting 0.00%
--- shard 9 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-bug: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$' ./internal/runner

receipt: test step 50.747s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 49.78s amadan.net/oficina/equipo/internal/runner
receipt: slow test 29.75s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.03s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 66.85, cpu waiting 33.49%, memory waiting 0.00%, io waiting 0.87%
--- shard 10 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-plans: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner

receipt: test step 1m1.879s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m0.543s amadan.net/oficina/equipo/internal/runner
receipt: slow test 50.55s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 43.29s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.44s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.53s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 80.68, cpu waiting 39.91%, memory waiting 0.00%, io waiting 0.74%
--- shard 11 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-rest: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$|^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner

receipt: test step 41.873s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 40.929s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.13s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 5.01s amadan.net/oficina/equipo/internal/runner TestEnrolCommitsTheCredentialLast
receipt: slow test 3.55s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.12s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.99s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
machine: 32 CPUs, load 51.65, cpu waiting 27.67%, memory waiting 0.00%, io waiting 1.00%
--- shard 12 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-a started 30s late; cpu waiting 39.1%, load 26.87
test lane equipotest-a: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test[A-D]|^TestQ' ./internal/equipotest
rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/equipotest TestDirectDeadReferencesRepository
=== RUN   TestDirectDeadReferencesRepository
    direct_cutover_test.go:221: repository reference inventory: exit status 1
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:9:210: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:236:744: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:236:783: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:287:60: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:296:119: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:318:225: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:382:97: unclassified equipo-runner
        reference scan: 3474 text files, 3991 matches, 7 failures
--- FAIL: TestDirectDeadReferencesRepository (2.82s)

--- FAIL amadan.net/oficina/equipo/internal/equipotest (package output)
FAIL
rastrillo-budget/v1 ran 1m14.363s
FAIL	amadan.net/oficina/equipo/internal/equipotest	74.656s


receipt: test step 1m16.457s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 0 cached, 0 without tests, 1 failed
receipt: slow package 1m14.363s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 34.23s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 34.17s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 31.25s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 27.46s amadan.net/oficina/equipo/internal/equipotest TestAuthorityProjectKinds
receipt: slow test 27.44s amadan.net/oficina/equipo/internal/equipotest TestAuthorityUsesLiveRoster
exit status 1
+ go test -tags testbuild -timeout 15m -run '^Test[A-D]|^TestQ' -v -run '^TestDirectDeadReferencesRepository$' -count=1 ./internal/equipotest   (retry, once)
FAILED TWICE ./internal/equipotest:TestDirectDeadReferencesRepository equipotest-a
=== RUN   TestDirectDeadReferencesRepository
    direct_cutover_test.go:221: repository reference inventory: exit status 1
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:9:210: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:236:744: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:236:783: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:287:60: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:296:119: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:318:225: unclassified equipo-runner
        docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:382:97: unclassified equipo-runner
        reference scan: 3474 text files, 3991 matches, 7 failures
--- FAIL: TestDirectDeadReferencesRepository (2.69s)
FAIL
rastrillo-budget/v1 ran 2.688s
FAIL	amadan.net/oficina/equipo/internal/equipotest	2.905s
FAIL
machine: 32 CPUs, load 82.06, cpu waiting 45.90%, memory waiting 0.00%, io waiting 0.32%
make: *** [Makefile:113: ci-shard] Error 1

amadan: step check shard 12 of 29 failed: exit status 2
--- shard 13 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-e started 30s late; cpu waiting 39.1%, load 26.87
test lane equipotest-e: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test[E-P]' ./internal/equipotest

receipt: test step 2m24.942s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 2m22.594s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 23.69s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
receipt: slow test 23.66s amadan.net/oficina/equipo/internal/equipotest TestProjectsReopen
receipt: slow test 23.66s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
receipt: slow test 23.64s amadan.net/oficina/equipo/internal/equipotest TestProjectsAccountRevisionAndValidation
receipt: slow test 23.62s amadan.net/oficina/equipo/internal/equipotest TestProjectOwnersAreMembers
machine: 32 CPUs, load 40.80, cpu waiting 16.82%, memory waiting 0.00%, io waiting 0.10%
--- shard 14 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-r started 30s late; cpu waiting 39.1%, load 26.87
test lane equipotest-r: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestR' ./internal/equipotest
budget note: internal/equipotest took 5m47.276s, over the 5m0s its record on line 15 allows; reported only, timing fails on CI

receipt: test step 5m53.583s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 5m47.276s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 4m51.22s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 14.7s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 11.65s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 11.62s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 8.55s amadan.net/oficina/equipo/internal/equipotest TestRosterAuditFailureRollsBack
machine: 32 CPUs, load 3.48, cpu waiting 0.52%, memory waiting 0.00%, io waiting 0.00%
--- shard 15 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-rest started 30s late; cpu waiting 41.6%, load 35.05
test lane equipotest-rest: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^Test[A-D]|^TestQ|^Test[E-P]|^TestR' ./internal/equipotest

receipt: test step 1m13.886s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m11.82s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 30.31s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 30.27s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 30.12s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 27.69s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsUpgrade
receipt: slow test 27.68s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsRollbackAndUnavailable
machine: 32 CPUs, load 86.99, cpu waiting 46.56%, memory waiting 0.00%, io waiting 0.35%
--- shard 16 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: plan3test started 30s late; cpu waiting 39.1%, load 26.87
test lane plan3test: ./internal/plan3test
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./internal/plan3test

receipt: test step 1m0.138s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 57.75s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 4.38s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.57s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.86s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.53s amadan.net/oficina/equipo/internal/plan3test TestInviteMigration
receipt: slow test 1.51s amadan.net/oficina/equipo/internal/plan3test TestPlanMigrationUpgrade
machine: 32 CPUs, load 90.07, cpu waiting 47.16%, memory waiting 0.00%, io waiting 0.46%
--- shard 17 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: rest started 30s late; cpu waiting 41.6%, load 35.05
test lane rest: ./cmd/equipo ./cmd/equipo-hosted-controller ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/diffscan ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/door ./internal/equipo/github ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/pause ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/push ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/hostedclient ./internal/hostedctl ./internal/hostedctl/ctlegress ./internal/hostedwire ./internal/idtest ./internal/isolatedjob ./internal/isolatedjob/awsjob ./internal/isolatedjob/guardfixture ./internal/isolatedjob/isolatedjobtest ./internal/ownermodetest ./internal/release ./internal/release/renderertest ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/designstep ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mac/creds ./internal/runner/mac/denylist ./internal/runner/mac/fprobe ./internal/runner/mac/proc ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/pause ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/claude/realcli ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/render ./internal/runner/renderpage ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/teamprobe ./internal/testci ./internal/toolproxy ./internal/websearch ./internal/websearch/websearchtest ./internal/websource ./internal/websource/guard ./internal/websource/hostaddrs ./internal/wire ./internal/wire/forgekey ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./cmd/equipo ./cmd/equipo-hosted-controller ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/diffscan ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/door ./internal/equipo/github ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/pause ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/push ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/hostedclient ./internal/hostedctl ./internal/hostedctl/ctlegress ./internal/hostedwire ./internal/idtest ./internal/isolatedjob ./internal/isolatedjob/awsjob ./internal/isolatedjob/guardfixture ./internal/isolatedjob/isolatedjobtest ./internal/ownermodetest ./internal/release ./internal/release/renderertest ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/designstep ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mac/creds ./internal/runner/mac/denylist ./internal/runner/mac/fprobe ./internal/runner/mac/proc ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/pause ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/claude/realcli ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/render ./internal/runner/renderpage ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/teamprobe ./internal/testci ./internal/toolproxy ./internal/websearch ./internal/websearch/websearchtest ./internal/websource ./internal/websource/guard ./internal/websource/hostaddrs ./internal/wire ./internal/wire/forgekey ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
cache miss: amadan.net/oficina/equipo/internal/copydesk: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/isolatedjob: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/forge: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/claude/realcli: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/webread: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/workspace: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runnerproto: its inputs changed
--- FAIL amadan.net/oficina/equipo/internal/testci TestBudgetRecordsAreShort
=== RUN   TestBudgetRecordsAreShort
    budgets_file_test.go:37: .rastrillo/budgets.txt:18: reason is 268 bytes, over 200
    budgets_file_test.go:37: .rastrillo/budgets.txt:87: reason is 362 bytes, over 200
--- FAIL: TestBudgetRecordsAreShort (0.00s)

--- FAIL amadan.net/oficina/equipo/internal/testci (package output)
FAIL
rastrillo-budget/v1 ran 2.553s
FAIL	amadan.net/oficina/equipo/internal/testci	2.558s

budget note: cmd/equipo-runner took 1m24.305s, over the 1m0s its record on line 74 allows; reported only, timing fails on CI
budget note: internal/equipo took 3m1.37s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/chat took 51.065s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/github took 40.217s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/equipo/setup took 11.317s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/hostedctl took 31.113s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/idtest took 2m13.135s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/release took 1m7.496s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/runner/containment took 1m12.959s, over the 15s its record on line 41 allows; reported only, timing fails on CI
budget note: internal/runner/forge took 28.843s, over the 20s its record on line 36 allows; reported only, timing fails on CI
budget note: internal/runner/mac took 46.265s, over the 45s its record on line 44 allows; reported only, timing fails on CI
budget note: internal/runner/mac/fprobe took 14.734s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/runner/provider/claude/realcli took 14.27s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/runner/provider/pi took 1m22.203s, over the 1m0s its record on line 28 allows; reported only, timing fails on CI
budget note: internal/runner/render took 1m29.402s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 3m7.664s against a 60s target (the gate's other steps are not in this figure)
receipt: 51 packages ran, 34 cached, 22 without tests, 1 failed
receipt: slow package 3m1.37s amadan.net/oficina/equipo/internal/equipo
receipt: slow package 2m13.135s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 1m29.402s amadan.net/oficina/equipo/internal/runner/render
receipt: slow package 1m24.305s amadan.net/oficina/equipo/cmd/equipo-runner
receipt: slow package 1m22.203s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow test 1m16.66s amadan.net/oficina/equipo/cmd/equipo-runner TestReleaseRunnerHasNoFakeWorker
receipt: slow test 1m2.98s amadan.net/oficina/equipo/internal/idtest TestDoorRemembersOficinaID
receipt: slow test 54.3s amadan.net/oficina/equipo/internal/idtest TestDoorForgetsOficinaIDForARefusedSession
receipt: slow test 54.24s amadan.net/oficina/equipo/internal/idtest TestDoorOficinaSettingsUnreadableIsNoLoop
receipt: slow test 53.96s amadan.net/oficina/equipo/internal/idtest TestDoorNeverJudgesANativeSession
rastrillo: budget test: go test failed
exit status 1
+ go test -tags testbuild -timeout 15m -v -run '^TestBudgetRecordsAreShort$' -count=1 ./internal/testci   (retry, once)
FAILED TWICE ./internal/testci:TestBudgetRecordsAreShort rest
=== RUN   TestBudgetRecordsAreShort
    budgets_file_test.go:37: .rastrillo/budgets.txt:18: reason is 268 bytes, over 200
    budgets_file_test.go:37: .rastrillo/budgets.txt:87: reason is 362 bytes, over 200
--- FAIL: TestBudgetRecordsAreShort (0.00s)
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/testci	0.004s
FAIL
machine: 32 CPUs, load 22.74, cpu waiting 8.08%, memory waiting 0.00%, io waiting 0.04%
make: *** [Makefile:113: ci-shard] Error 1

amadan: step check shard 17 of 29 failed: exit status 2
--- shard 18 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-chat: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$' ./internal/headless

receipt: test step 1m26.218s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m24.088s amadan.net/oficina/equipo/internal/headless
receipt: slow test 38.87s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 14.66s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 10.71s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.64s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 6.64s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 92.77, cpu waiting 47.10%, memory waiting 0.00%, io waiting 0.47%
--- shard 19 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-work: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$' ./internal/headless

receipt: test step 1m40.432s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m38.499s amadan.net/oficina/equipo/internal/headless
receipt: slow test 29.56s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 24.86s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 13.74s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 10.62s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 10.5s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
machine: 32 CPUs, load 86.99, cpu waiting 46.04%, memory waiting 0.00%, io waiting 0.37%
--- shard 20 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-connections: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless

receipt: test step 1m57.952s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m55.877s amadan.net/oficina/equipo/internal/headless
receipt: slow test 14.21s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 13.51s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 13.22s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 11.54s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsSignInEmail
receipt: slow test 11.27s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsOpenCodeGoLimitRequired
machine: 32 CPUs, load 80.21, cpu waiting 40.09%, memory waiting 0.00%, io waiting 0.27%
--- shard 21 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-rest: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserCardAnswerSettlesAtBottom|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInEmail|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless

receipt: test step 1m45.424s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m43.543s amadan.net/oficina/equipo/internal/headless
receipt: slow test 15.28s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 13.57s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 11.36s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 10.22s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 7.79s amadan.net/oficina/equipo/internal/headless TestBrowserCardAnswerSettlesAtBottom
machine: 32 CPUs, load 87.55, cpu waiting 46.34%, memory waiting 0.00%, io waiting 0.34%
--- shard 22 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-rest: ./internal/equipo
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserPreviewBlocksNavigation|TestBrowserPreviewPassExchange)$' ./internal/equipo

receipt: test step 4.342s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 2.65s amadan.net/oficina/equipo/internal/equipo
receipt: slow test 1.99s amadan.net/oficina/equipo/internal/equipo TestBrowserPreviewPassExchange
receipt: slow test 650ms amadan.net/oficina/equipo/internal/equipo TestBrowserPreviewBlocksNavigation
browser lane browser-rest: ./internal/equipotest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserGitHubManifestCSP)$' ./internal/equipotest

receipt: test step 7.925s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 6.413s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 6.41s amadan.net/oficina/equipo/internal/equipotest TestBrowserGitHubManifestCSP
browser lane browser-rest: ./internal/idtest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserOficinaIDDoor|TestBrowserSmartDoor)$' ./internal/idtest
budget note: internal/idtest took 11.527s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 13.236s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 11.527s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 9.1s amadan.net/oficina/equipo/internal/idtest TestBrowserSmartDoor
receipt: slow test 2.43s amadan.net/oficina/equipo/internal/idtest TestBrowserOficinaIDDoor
browser lane browser-rest: ./internal/plan3test
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestTeamsHierarchyBrowser)$' ./internal/plan3test

receipt: test step 4.515s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 2.631s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 2.63s amadan.net/oficina/equipo/internal/plan3test TestTeamsHierarchyBrowser
browser lane browser-rest: ./internal/thintest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAccessEmojiByline|TestBrowserAccessFinalOutcomes|TestBrowserAccessRequest|TestBrowserAccessReview|TestBrowserActivitySubjects|TestBrowserAskMacOffline|TestBrowserAutonomySettings|TestBrowserCoordinatorQueue|TestBrowserEmptyConversation|TestBrowserEndedNoteStaysGone|TestBrowserHousekeeping|TestBrowserInnerGallery|TestBrowserInnerScreens|TestBrowserInstantThinking|TestBrowserInstantThinkingQueued|TestBrowserMachines|TestBrowserPausedWork|TestBrowserPhoneIndex|TestBrowserPlacementQuestionAndPending|TestBrowserProjectPlacement|TestBrowserProjectsList|TestBrowserReportActionFeedback|TestBrowserReportNextSteps|TestBrowserReportThread|TestBrowserRhythm|TestBrowserRollup|TestBrowserRosterAlignment|TestBrowserRosterDecisionStates|TestBrowserRosterQuietDay|TestBrowserRosterReports|TestBrowserRosterSetAside|TestBrowserRosterSubchat|TestBrowserRosterThinking|TestBrowserRosterVisual|TestBrowserSettingsHousekeepingGroups|TestBrowserSettingsMenu|TestBrowserSettingsRail|TestBrowserSettingsSaveBar|TestBrowserSettingsShots|TestBrowserSettingsStayOnPage|TestBrowserSettingsTeams|TestBrowserShipsButtons|TestBrowserSpecialistRows|TestBrowserSpendFollowsAnswers|TestBrowserTaskRows|TestBrowserTeamPanel|TestBrowserThinkingCycles|TestBrowserThinkingLinesClear|TestBrowserThinkingSteady|TestBrowserThinkingWords|TestBrowserTokenRowEmail|TestBrowserTrackPulse|TestBrowserTrackStarCentre|TestBrowserTryAgain)$' ./internal/thintest

receipt: test step 3m42.35s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 3m39.665s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 25.96s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.39s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12.06s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.81s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 9.26s amadan.net/oficina/equipo/internal/thintest TestBrowserRhythm
machine: 32 CPUs, load 12.50, cpu waiting 4.44%, memory waiting 0.00%, io waiting 0.02%
--- shard 23 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
shard 23: make test-quarantine
python3 scripts/ci-test.py quarantine
quarantine: 12 tests from scripts/ci-quarantine.txt; a failure is retried once, and a pass on the retry is reported as a flake
+ go test -tags testbuild -timeout 15m -v -run '^TestHeadlessConnections$/^A5_cancel_and_sign_out$|^TestHeadlessConnections$/^C4_claude_sign_in$|^TestHeadlessConnections$/^C5_engineering_failover$|^TestHeadlessConnections$/^C5_engineering_to_codex$|^TestHeadlessConnections$/^C5_engineering_waits$' ./internal/headless   (55s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 4.85s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.35s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 9.11s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 9.34s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 27.35s
+ go test -tags testbuild -timeout 15m -v -run '^TestHeadlessConnections$/^C5_review_auth$|^TestHeadlessConnections$/^C5_review_failover$|^TestHeadlessConnections$/^C5_review_on_codex$|^TestHeadlessConnections$/^C5_review_other_family_first$' ./internal/headless   (59s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 13.86s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 12.08s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 10.67s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 19.72s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (22s)
ok ./internal/headless TestMixedVersions 19.58s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (2s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.88s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin   (2s)
ok ./internal/runner/thin TestRunnerCancelAndSupersede 0.06s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 75.35, cpu waiting 38.65%, memory waiting 0.00%, io waiting 0.76%
--- shard 24 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
shard 24: make runner-host
python3 scripts/runner-prerequisites.py
CGO_ENABLED=0 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run 'TestDirect|TestProvider|TestCheckSandbox' -count=1 ./internal/runner/provider/... ./internal/runner/checks
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run 'TestDirect|TestProvider|TestCheckSandbox' -count=1 ./internal/runner/provider/... ./internal/runner/checks

receipt: test step 13.546s against a 60s target (the gate's other steps are not in this figure)
receipt: 4 packages ran, 0 cached, 4 without tests, 0 failed
receipt: slow package 7.506s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 181ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 97ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 1ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow package 1ms amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow test 5.33s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.66s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 390ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 180ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 100ms amadan.net/oficina/equipo/internal/runner/provider/codex TestDirectJournalAdapterBarrier
CGO_ENABLED=0 EQUIPO_REQUIRE_USER_SESSION=1 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run '^TestNamespace' -count=1 ./internal/runner/containment
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run '^TestNamespace' -count=1 ./internal/runner/containment

receipt: test step 4.392s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 3.284s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 290ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 230ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 150ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
receipt: slow test 130ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceExitStatus
machine: 32 CPUs, load 20.89, cpu waiting 11.90%, memory waiting 0.00%, io waiting 1.49%
--- shard 25 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: runner-dead-references started 30s late; cpu waiting 39.1%, load 35.05
shard 25: make runner-dead-references lanes-check build vet fmt-check spacing budget migration-check
python3 scripts/runner-dead-references.py
docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:9:210: unclassified equipo-runner
docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:236:744: unclassified equipo-runner
docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:236:783: unclassified equipo-runner
docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:287:60: unclassified equipo-runner
docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:296:119: unclassified equipo-runner
docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:318:225: unclassified equipo-runner
docs/superpowers/plans/2026-11-30-hosted-runners-slice-2.md:382:97: unclassified equipo-runner
reference scan: 3474 text files, 3991 matches, 7 failures
make[1]: *** [Makefile:238: runner-dead-references] Error 1
machine: 32 CPUs, load 35.05, cpu waiting 19.27%, memory waiting 0.00%, io waiting 1.18%
make: *** [Makefile:113: ci-shard] Error 2

amadan: step check shard 25 of 29 failed: exit status 2
--- shard 26 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: staticcheck started 30s late; cpu waiting 39.1%, load 26.87
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 80.68, cpu waiting 38.65%, memory waiting 0.00%, io waiting 0.76%
--- shard 27 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: govulncheck started 30s late; cpu waiting 39.1%, load 26.87
shard 27: make govulncheck
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 ./...
=== Symbol Results ===

No vulnerabilities found.

Your code is affected by 0 vulnerabilities.
This scan also found 1 vulnerability in packages you import and 10
vulnerabilities in modules you require, but your code doesn't appear to call
these vulnerabilities.
Use '-show verbose' for more details.
machine: 32 CPUs, load 85.11, cpu waiting 43.14%, memory waiting 0.00%, io waiting 0.66%
--- shard 28 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: gitleaks started 30s late; cpu waiting 39.1%, load 26.87
shard 28: make gitleaks
7:40PM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
7:40PM INF 1339 commits scanned.
7:40PM INF scanned ~75255063 bytes (75.26 MB) in 26.2s
7:40PM INF no leaks found
machine: 32 CPUs, load 75.35, cpu waiting 35.77%, memory waiting 0.00%, io waiting 0.81%

amadan: job failed at step check shards 12, 17, 25 of 29 — its output is above, not at the tail of this log
diff --git a/.rastrillo/budgets.txt b/.rastrillo/budgets.txt
index 8dc3d595..5eb47e5a 100644
--- a/.rastrillo/budgets.txt
+++ b/.rastrillo/budgets.txt
@@ -84,4 +84,4 @@ perf GET /native/preview/exchange skip Rejects GET with 404; only a same-origin,
# branch uses an indexed primary-key lookup, one current-member/device check,
# and the same bounded cardView as the snapshot; no list scan or new route.
perf GET /api/v1/tasks/{id}/changes/diff skip Device-only bounded display patch JSON: indexed step/attempt lookup, 64 KiB patch and 128 KiB response, no Git or network work at read time; not an HTML screen.
-size internal/hostedctl 5339 8710 Hosted controller core plus its lifecycle simulation; split planned for slice 1b; measured 5313/8516 source/test lines after the Task 17 pre-flight review rounds (R36, R38 ref checks); slice 2 Task 2 wires the egress manifest snapshot and LaunchRequest.Validate into Launch (logic in ctlegress), measured 5339/8710.
+size internal/hostedctl 5341 8729 Hosted controller core plus its lifecycle simulation; split planned for slice 1b; measured 5313/8516 source/test lines after the Task 17 pre-flight review rounds (R36, R38 ref checks); slice 2 Task 2 wires the egress manifest snapshot and LaunchRequest.Validate into Launch (logic in ctlegress), and maps ErrServiceUnset to 503 service_unset; measured 5341/8729.
diff --git a/cmd/equipo-hosted-controller/config_test.go b/cmd/equipo-hosted-controller/config_test.go
index 8f55d163..39218386 100644
--- a/cmd/equipo-hosted-controller/config_test.go
+++ b/cmd/equipo-hosted-controller/config_test.go
@@ -77,7 +77,7 @@ func manifestBody(host string) []byte {
// TestManifestFromConfig: the controller reads its egress manifest from the
// file the config names, with ctlegress.Load's rules. An unset name loads
// (it blocks launch, not start); a wildcard, an IP literal or the forge does
-// not.
+// not, but an exact name under the forge does.
func TestManifestFromConfig(t *testing.T) {
t.Parallel()
dir := t.TempDir()
@@ -103,7 +103,7 @@ func TestManifestFromConfig(t *testing.T) {
t.Fatalf("unset manifest: For = %v, want ErrServiceUnset", err)
}
- for _, host := range []string{"*.example.com", ".example.com", "1.2.3.4", "[::1]", "amadan.net", "forge.amadan.net",
+ for _, host := range []string{"*.example.com", ".example.com", "1.2.3.4", "[::1]", "amadan.net", "*.amadan.net",
"equipo.example.com.", "Equipo.example.com"} {
path := filepath.Join(t.TempDir(), "egress.json")
if err := os.WriteFile(path, manifestBody(host), 0o600); err != nil {
@@ -115,6 +115,15 @@ func TestManifestFromConfig(t *testing.T) {
t.Errorf("manifest host %q: %v, want ErrManifest", host, err)
}
}
+ team := filepath.Join(dir, "team.json")
+ if err := os.WriteFile(team, manifestBody("team.amadan.net"), 0o600); err != nil {
+ t.Fatal(err)
+ }
+ fc = validConfig(t, dir)
+ fc.EgressManifestFile = team
+ if _, err := loadFC(t, dir, fc); err != nil {
+ t.Errorf("manifest host team.amadan.net: %v, want it to load", err)
+ }
for name, path := range map[string]string{"no manifest file": "", "missing manifest file": filepath.Join(dir, "absent.json")} {
fc := validConfig(t, dir)
fc.EgressManifestFile = path
diff --git a/docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md b/docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md
index 4064d013..f7622989 100644
--- a/docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md
+++ b/docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md
@@ -25,13 +25,18 @@ RED: `go test ./internal/hostedctl/ctlegress -run TestManifest -count=1` failed
GREEN: the same command: `ok internal/hostedctl`, `ok internal/hostedctl/ctlegress`, `ok cmd/equipo-hosted-controller` (TestManifestRefusesWildcardsAndLiterals, TestManifestRefusesBadShape, TestManifestForBothPurposes, TestManifestUnsetServiceBlocksLaunch, TestUnsetServiceBlocksLaunch, TestLaunchSnapshotsServices, TestSnapshotImmutable, TestManifestFromConfig).
-Mutation checks (each restored, then the GREEN command passed again):
+Mutation checks after review round 1 (each run on the final code; every mutation restored by copying the file back, then the covering tests passed again):
+
+1. Suffix match in `Load`: `ExactHost` began with `h = strings.TrimPrefix(strings.TrimPrefix(h, "*"), ".")`. Command: `go test ./internal/hostedctl/ctlegress -run TestManifestRefusesWildcardsAndLiterals -count=1`. Observed: FAIL, `manifest_test.go:73: host "*.example.com" port 443: Load = ({...}, <nil>), want ErrManifest`, and the same for `".example.com"`. Restored.
+2. Replay from current config, as a gate: after the `creatable` check, `dispatch` returned a gate when `c.cfg.Manifest.For(hostedwire.PurposeChecks)` failed. Command: `go test ./internal/hostedctl -run TestLaunchSnapshotsServices -count=1`. Observed: FAIL, `egress_test.go:134: Replay provider calls = 0, want 1: the snapshot, not the current manifest, governs a saved intent`. Restored.
+3. Replay from current config, as a re-snapshot: inside `dispatch`'s transaction, `UPDATE jobs SET services_json = ?` from the current manifest. Command: `go test ./internal/hostedctl -run TestLaunchSnapshotsServices -count=1`. Observed: FAIL, `egress_test.go:113: throttled Replay under a new manifest = constraint failed: services are immutable (1811)`. Restored.
+4. The same re-snapshot with the `CREATE TRIGGER` statement also cut from `0002_egress.sql`. Command: `go test ./internal/hostedctl -run 'TestLaunchSnapshotsServices|TestSnapshotImmutable' -count=1`. Observed: FAIL, `egress_test.go:175: UPDATE jobs SET services_json = '[]' WHERE attempt_id = 'att-1' = <nil>, want the immutability trigger to refuse it` (TestSnapshotImmutable) and `egress_test.go:120: services after a manifest change = [{Host:two.example.com Port:443 Class:instance}], want the snapshot` (TestLaunchSnapshotsServices). Both files restored.
+5. (extra) Forge check dropped: `if h == forge` became `if false && h == forge`. Command: `go test ./internal/hostedctl/ctlegress -run TestManifestRefusesWildcardsAndLiterals -count=1`. Observed: FAIL, `manifest_test.go:73: host "amadan.net" port 443: Load = ({...}, <nil>), want ErrManifest`. Restored. (Review round 1: only the exact forge name is refused; `team.amadan.net` and `a.b.amadan.net` now load.)
+6. (extra) `Validate` result ignored in `checkRequest` (`if err := v2.Validate(); false && err != nil`). Command: `go test ./internal/hostedctl -run TestLaunchRefusals -count=1`. Observed: FAIL, `launch_test.go:843: Launch = ({... State:starting ...}, <nil>), want (zero view, isolatedjob: invalid request)` for checks without a person and no launch-by time, and `ctlegress: unknown launch purpose "task"` instead of `isolatedjob: invalid request` for the unknown purpose. Restored.
+7. (extra) `For` error ignored in `Launch` (`if false && err != nil`). Command: `go test ./internal/hostedctl -run TestUnsetServiceBlocksLaunch -count=1`. Observed: FAIL, `egress_test.go:65: no manifest, checks: Launch = ({... State:starting ...}, <nil>), want ErrServiceUnset`. Restored.
+8. (review round 1) HTTP mapping no longer matches: the `apiErrors` entry's error became `ctlegress.ErrPurpose`. Command: `go test ./internal/hostedctl -run 'TestServiceUnsetOverHTTP|TestRoutesMapErrorsToStatus' -count=1`. Observed: FAIL, `http_test.go:587: lookupError(ctlegress: an egress service for this purpose is not set) = {... status:500 code:internal ...}, want status 503 with a fixed message` and `http_test.go:457: launch with the instance service unset = 500 {"code":"internal",...}, want 503 service_unset`. Restored. (An earlier try deleted the entry, which left the import unused and failed to build; it is not counted.)
+9. (review round 1) Client mapping removed: the `"service_unset"` row deleted from `hostedclient`'s `refusals`. Command: `go test ./internal/hostedclient -run 'TestClientServiceUnset|TestClientMatchesHandlerErrorCodes' -count=1`. Observed: FAIL, `client_test.go:159: Launch with the instance service unset = hostedclient: the controller gave an unexpected answer (launch: controller answered 503 "service_unset"), want ErrServiceUnset (503 service_unset)` and `client_test.go:481: handler refusal 503 "service_unset" maps to ... unexpected answer ..., want a typed kind`. Restored.
-1. Suffix match in `Load`: `ExactHost` began with `h = strings.TrimPrefix(strings.TrimPrefix(h, "*"), ".")`. `go test ./internal/hostedctl/ctlegress -run TestManifestRefusesWildcardsAndLiterals -count=1`: FAIL, `manifest_test.go:70: host "*.example.com" port 443: Load = ({...}, <nil>), want ErrManifest` (and `".example.com"`). Restored.
-2. Replay from current config, as a gate: `dispatch` refused when `c.cfg.Manifest.For(...)` failed. `go test ./internal/hostedctl -run TestLaunchSnapshotsServices -count=1`: FAIL, `egress_test.go:134: Replay provider calls = 0, want 1: the snapshot, not the current manifest, governs a saved intent`. Restored.
-3. Replay from current config, as a re-snapshot: `dispatch` wrote `services_json` from the current manifest. Same command: FAIL, `egress_test.go:113: throttled Replay under a new manifest = constraint failed: services are immutable (1811)`. With the trigger also removed from `0002_egress.sql`: `egress_test.go:120: services after a manifest change = [{Host:two.example.com Port:443 Class:instance}], want the snapshot` and `egress_test.go:175: UPDATE jobs SET services_json = '[]' ... = <nil>, want the immutability trigger to refuse it` (TestSnapshotImmutable). Restored.
-4. (extra) Forge matched exactly only (`if h == forge`). `go test ./internal/hostedctl/ctlegress -run TestManifestRefusesWildcardsAndLiterals -count=1`: FAIL, `host "forge.amadan.net" port 443: Load = ({...}, <nil>), want ErrManifest`. Restored.
-5. (extra) `Validate` result ignored in `checkRequest`. `go test ./internal/hostedctl -run TestLaunchRefusals -count=1`: FAIL, `TestLaunchRefusals/checks_without_a_person: launch_test.go:843: Launch = ({... State:starting ...}, <nil>), want (zero view, isolatedjob: invalid request)`. Restored.
-6. (extra) `For` error ignored in `Launch`. `go test ./internal/hostedctl -run TestUnsetServiceBlocksLaunch -count=1`: FAIL, `egress_test.go:65: no manifest, checks: Launch = ({... State:starting ...}, <nil>), want ErrServiceUnset`. Restored.
+Review round 1 also: ErrServiceUnset answers a signed 503 `service_unset` (hostedctl `apiErrors`), and hostedclient maps it to `ErrServiceUnset`. New tests: TestServiceUnsetOverHTTP (hostedctl) and TestClientServiceUnset (hostedclient). TestManifestFromConfig loads `team.amadan.net`. Finding 1 (Replay sending services) moved to Task 4 by ruling (plan commit 17de8d2e).
-Also run: `go test ./internal/hostedctl/... ./cmd/equipo-hosted-controller -count=1` ok (TestLifecycleSimulation and the 1a launch, HTTP and main tests with fixtures given a manifest and the slice 2 request fields); `go test ./internal/hostedclient -count=1` ok (its fixtures likewise); `go vet -tags hostedlive` on the three packages ok; `make budget` ok after raising the `internal/hostedctl` record to 5339/8710; `make build vet` ok.
+Also run: `go test ./internal/hostedctl/... ./internal/hostedclient ./cmd/equipo-hosted-controller -count=1` ok (TestLifecycleSimulation and the 1a launch, HTTP and main tests, with fixtures given a manifest and the slice 2 request fields); `go vet -tags hostedlive` on the three packages ok; `make budget` ok after raising the `internal/hostedctl` record to 5341/8729; `make build vet` ok.
diff --git a/internal/hostedclient/client.go b/internal/hostedclient/client.go
index 392eced9..53227ee2 100644
--- a/internal/hostedclient/client.go
+++ b/internal/hostedclient/client.go
@@ -72,6 +72,7 @@ var (
ErrThrottled = errors.New("hostedclient: the provider is busy")
ErrDisabled = errors.New("hostedclient: the controller has hosted launches switched off")
ErrNetworkAudit = errors.New("hostedclient: no network audit has passed recently")
+ ErrServiceUnset = errors.New("hostedclient: an egress service for the launch's purpose is not set")
ErrProvider = errors.New("hostedclient: the provider call failed")
ErrStoreLost = errors.New("hostedclient: the controller lost its database")
ErrUnavailable = errors.New("hostedclient: the controller could not check the request")
@@ -107,6 +108,7 @@ var refusals = map[string]struct {
"throttled": {http.StatusTooManyRequests, ErrThrottled},
"disabled": {http.StatusServiceUnavailable, ErrDisabled},
"network_audit": {http.StatusServiceUnavailable, ErrNetworkAudit},
+ "service_unset": {http.StatusServiceUnavailable, ErrServiceUnset},
"provider": {http.StatusBadGateway, ErrProvider},
"store_lost": {http.StatusServiceUnavailable, ErrStoreLost},
"unavailable": {http.StatusServiceUnavailable, ErrUnavailable},
diff --git a/internal/hostedclient/client_test.go b/internal/hostedclient/client_test.go
index 389c5ef9..166e588e 100644
--- a/internal/hostedclient/client_test.go
+++ b/internal/hostedclient/client_test.go
@@ -60,6 +60,12 @@ type ctlEnv struct {
}
func newCtlEnv(t *testing.T) *ctlEnv {
+ t.Helper()
+ return newCtlEnvManifest(t, testEgress)
+}
+
+// newCtlEnvManifest is newCtlEnv with the controller's egress manifest m.
+func newCtlEnvManifest(t *testing.T, m ctlegress.Manifest) *ctlEnv {
t.Helper()
ctx := context.Background()
clk := isolatedjobtest.NewFakeClock(time.Date(2026, 11, 19, 12, 0, 0, 0, time.UTC))
@@ -71,7 +77,7 @@ func newCtlEnv(t *testing.T) *ctlEnv {
fake := isolatedjob.NewFake(clk, isolatedjob.SpikeLimits())
c, err := hostedctl.New(hostedctl.Config{Enabled: true, Images: map[isolatedjob.ImageDigest]bool{imgA: true},
ProviderNamespace: "test", ProviderFingerprint: func(isolatedjob.ImageDigest, isolatedjob.Size) string { return "" },
- Manifest: testEgress},
+ Manifest: m},
hostedctl.Deps{Store: store, Runner: fake, Auditor: fake, Alerter: nopAlerter{}})
if err != nil {
t.Fatalf("New = %v", err)
@@ -140,6 +146,23 @@ func launchReq(attempt string) hostedwire.LaunchRequest {
Purpose: hostedwire.PurposeChecks, Person: "person-1", LaunchByUnixMS: 1796083200000}
}
+// TestClientServiceUnset: a launch refused for an unset egress service
+// comes back as its own kind, not as a controller failure.
+func TestClientServiceUnset(t *testing.T) {
+ unset := testEgress.Clone()
+ unset.Services["instance"] = hostedwire.Service{Port: 443, Class: hostedwire.ServiceInstance}
+ e := newCtlEnvManifest(t, unset)
+ cl := newClient(t, e.srv, keyInst, ctlPublic())
+ _, err := cl.Launch(e.ctx, launchReq("a1"))
+ var api *APIError
+ if !errors.Is(err, ErrServiceUnset) || !errors.As(err, &api) || api.Status != http.StatusServiceUnavailable || api.Code != "service_unset" {
+ t.Fatalf("Launch with the instance service unset = %v, want ErrServiceUnset (503 service_unset)", err)
+ }
+ if n := e.fake.Calls(isolatedjob.OpLaunch); n != 0 {
+ t.Fatalf("provider launches = %d, want none", n)
+ }
+}
+
func TestClientAgainstController(t *testing.T) {
e := newCtlEnv(t)
cl := newClient(t, e.srv, keyInst, ctlPublic())
diff --git a/internal/hostedctl/ctlegress/manifest.go b/internal/hostedctl/ctlegress/manifest.go
index 0d12cac0..34a703f3 100644
--- a/internal/hostedctl/ctlegress/manifest.go
+++ b/internal/hostedctl/ctlegress/manifest.go
@@ -4,7 +4,7 @@
//
// Every service is one exact, lower-case, fully qualified host name on port
// 443 (spec §6). There is no wildcard or suffix match, no IP literal, and
-// never amadan.net or a name under it. The controller copies a launch's
+// never the forge, amadan.net. The controller copies a launch's
// services into its launch record when the intent is saved; later manifest
// changes never reach a saved intent.
package ctlegress
@@ -24,8 +24,9 @@ import (
// ServicePort is the only port a service may use.
const ServicePort = 443
-// forge is the forge's host name. Workers never reach it, or any name under
-// it, while the personal primary supplies source and publishes candidates.
+// forge is the forge's host name. Workers never reach it while the personal
+// primary supplies source and publishes candidates. Only this exact name is
+// refused: a name under it is a different host, listed exactly.
const forge = "amadan.net"
// maxProxies: one egress proxy, or two in two availability zones.
@@ -97,7 +98,7 @@ func (m Manifest) check() error {
// ExactHost returns nil if h is an exact, lower-case, fully qualified DNS
// name with at least two labels and no trailing dot: no wildcard or leading
// dot, no IP literal (bracketed or not, nor a numeric last label, which
-// some resolvers read as an address), and not amadan.net or a name under it.
+// some resolvers read as an address), and not the forge, amadan.net.
func ExactHost(h string) error {
if h == "" || len(h) > hostedwire.MaxHostLen {
return fmt.Errorf("host %q must be 1 to %d characters", h, hostedwire.MaxHostLen)
@@ -117,8 +118,8 @@ func ExactHost(h string) error {
if allDigits(labels[len(labels)-1]) {
return fmt.Errorf("host %q has a numeric last label", h)
}
- if h == forge || strings.HasSuffix(h, "."+forge) {
- return fmt.Errorf("host %q is the forge or under it", h)
+ if h == forge {
+ return fmt.Errorf("host %q is the forge", h)
}
return nil
}
diff --git a/internal/hostedctl/ctlegress/manifest_test.go b/internal/hostedctl/ctlegress/manifest_test.go
index 4fba550b..bbefee3e 100644
--- a/internal/hostedctl/ctlegress/manifest_test.go
+++ b/internal/hostedctl/ctlegress/manifest_test.go
@@ -47,7 +47,10 @@ func TestManifestRefusesWildcardsAndLiterals(t *testing.T) {
if !reflect.DeepEqual(m, want) {
t.Fatalf("Load = %+v, want %+v", m, want)
}
- for _, ok := range []string{"a.b", "x-1.example.co.uk", "equipo-7.tail5fd3ba.ts.net", "amadan.network", "notamadan.net"} {
+ // An exact name under the forge is its own host, listed exactly: only
+ // amadan.net itself is refused.
+ for _, ok := range []string{"a.b", "x-1.example.co.uk", "equipo-7.tail5fd3ba.ts.net", "amadan.network", "notamadan.net",
+ "team.amadan.net", "a.b.amadan.net"} {
if _, err := Load(manifestJSON(ok, 443)); err != nil {
t.Errorf("host %q: Load = %v, want it accepted", ok, err)
}
@@ -58,7 +61,7 @@ func TestManifestRefusesWildcardsAndLiterals(t *testing.T) {
}{
{"*.x", 443}, {"*.example.com", 443}, {".x", 443}, {".example.com", 443},
{"1.2.3.4", 443}, {"[::1]", 443}, {"::1", 443}, {"[2001:db8::1]", 443}, {"127.1", 443}, {"10.0.0.1.", 443},
- {"amadan.net", 443}, {"forge.amadan.net", 443}, {"a.b.amadan.net", 443},
+ {"amadan.net", 443}, {"amadan.net.", 443}, {"AMADAN.NET", 443}, {"*.amadan.net", 443}, {".amadan.net", 443},
{"equipo.example.com.", 443}, {"Equipo.example.com", 443}, {"EQUIPO.EXAMPLE.COM", 443},
{"equipo.example.com", 8443}, {"equipo.example.com", 80}, {"equipo.example.com", 0},
{"localhost", 443}, {"a..b", 443}, {"-a.example.com", 443}, {"a-.example.com", 443},
diff --git a/internal/hostedctl/http.go b/internal/hostedctl/http.go
index 72368d43..c68c030f 100644
--- a/internal/hostedctl/http.go
+++ b/internal/hostedctl/http.go
@@ -14,6 +14,7 @@ import (
"strings"
"time"
+ "amadan.net/oficina/equipo/internal/hostedctl/ctlegress"
"amadan.net/oficina/equipo/internal/hostedwire"
"amadan.net/oficina/equipo/internal/isolatedjob"
)
@@ -93,6 +94,7 @@ var apiErrors = []apiError{
{isolatedjob.ErrThrottled, http.StatusTooManyRequests, "throttled", "The provider is busy. Try again later."},
{ErrDisabled, http.StatusServiceUnavailable, "disabled", "Hosted launches are switched off."},
{ErrNetworkAudit, http.StatusServiceUnavailable, "network_audit", "No network audit has passed recently. Try again later."},
+ {ctlegress.ErrServiceUnset, http.StatusServiceUnavailable, "service_unset", "An egress service for this purpose is not set."},
{ErrProviderLaunch, http.StatusBadGateway, "provider", "The provider call failed. Read the job again later."},
{isolatedjob.ErrIncomplete, http.StatusBadGateway, "provider", "The provider call failed. Read the job again later."},
}
diff --git a/internal/hostedctl/http_test.go b/internal/hostedctl/http_test.go
index 2f83e0a1..afec3218 100644
--- a/internal/hostedctl/http_test.go
+++ b/internal/hostedctl/http_test.go
@@ -14,6 +14,7 @@ import (
"testing"
"time"
+ "amadan.net/oficina/equipo/internal/hostedctl/ctlegress"
"amadan.net/oficina/equipo/internal/hostedwire"
"amadan.net/oficina/equipo/internal/isolatedjob"
)
@@ -442,6 +443,24 @@ func mustJSON(t *testing.T, v any) []byte {
return b
}
+// TestServiceUnsetOverHTTP: a launch refused for an unset egress service
+// answers a signed 503 service_unset, not 500 internal, and saves nothing.
+func TestServiceUnsetOverHTTP(t *testing.T) {
+ t.Parallel()
+ e := newAPIEnv(t, true)
+ e.cfg.Manifest = testManifest("")
+ e.newController()
+ e.audit()
+ e.serve()
+ r := e.call("POST", "/v1/jobs", wireLaunch("a1"), idInstA, keyInstA)
+ if r.status != http.StatusServiceUnavailable || r.errBody(t).Code != "service_unset" {
+ t.Fatalf("launch with the instance service unset = %d %s, want 503 service_unset", r.status, r.body)
+ }
+ if n := e.jobCount(); n != 0 || e.fake.Calls(isolatedjob.OpLaunch) != 0 {
+ t.Fatalf("%d jobs and %d provider launches, want none", n, e.fake.Calls(isolatedjob.OpLaunch))
+ }
+}
+
func TestDisabledRefusesLaunchButServesStop(t *testing.T) {
t.Parallel()
e := newAPIEnv(t, true)
@@ -557,7 +576,7 @@ func TestRoutesMapErrorsToStatus(t *testing.T) {
{isolatedjob.ErrConflict, 409}, {ErrGenerationCancelled, 409}, {ErrNotQuiescent, 409}, {ErrResumePending, 409},
{ErrReplacementLive, 409}, {ErrStateUnknown, 409},
{ErrStopPending, 202}, {ErrPastDeadline, 410}, {hostedwire.ErrTooLarge, 413}, {isolatedjob.ErrThrottled, 429},
- {ErrDisabled, 503}, {ErrNetworkAudit, 503}, {ErrStoreLost, 503}, {ErrProviderLaunch, 502},
+ {ErrDisabled, 503}, {ErrNetworkAudit, 503}, {ctlegress.ErrServiceUnset, 503}, {ErrStoreLost, 503}, {ErrProviderLaunch, 502},
{errors.New("anything else"), 500},
// A refusal whose audit row could not be written because the store
// is gone reports the store.