oficina / equipo Public

runner: checkrun refuses missing inputs; test the worker step wiring

Task 11 review round 1. checkrun documents its required inputs and
refuses a run without them (policy_rejected, nothing started).
runWorker's step engine is built by workerSteps, tested from the Mac
kind through recovery and a report. The primary's gate result says
bubblewrap. Mutation records now give exact commands.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev 0e392ff84e7abe0daf0c5156b0a5f3c56401076a parent 321392d
8 files changed, +201 −21
  • .rastrillo/budgets.txt +1 −1
  • docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md +59 −6
  • internal/runner/checkrun/run.go +22 −3
  • internal/runner/checkrun/run_test.go +39 −5
  • internal/runner/thin/judge.go +6 −1
  • internal/runner/thin/primary_checks_test.go +1 −1
  • internal/runner/thin/run.go +12 −4
  • internal/runner/thin/worker_kind_test.go +61 −0

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 2.0s
ci-box: codex: fetched and verified in 4.6s
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.3s
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.4s
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 8.6s
ci-box: clone deepened in 4.7s
ci-box: file times set from content: 3835 files, 266 directories
ci-box: ready in 19.3s
=== 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.243s
=== compile ===
go build ./...
go: downloading github.com/aws/aws-sdk-go-v2/service/s3 v1.105.0
go: downloading github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.7.14
go: downloading github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.19.31
go: downloading github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.9.23
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  5.8s
+ go list -export -test -tags testbuild -f  ./...
  6.9s
+ go list -export -test -tags browser,testbuild -f  ./internal/equipo ./internal/equipotest ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
  4.2s
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
=== hosted-image ===
go run github.com/zricethezav/gitleaks/v8@v8.30.1 dir --no-banner --redact --config .gitleaks.toml infra/hosted/image
1:44AM INF scanned ~2761 bytes (2.76 KB) in 3.48ms
1:44AM INF no leaks found
CGO_ENABLED=0 go test ./internal/hostedimage -run '^(TestManifestPinsEverything|TestBuildReproducible|TestBuildChecksPins|TestImageInputsHaveNoSecrets|TestBuildScansPayload|TestScanAllowExact|TestBuildNeedsGitleaksConfig|TestImageLayoutMatchesContainmentSuite|TestScanIgnoresGitleaksAllowances|TestScanRPMScriptlets|TestScanNestedArchives|TestScanPathRules|TestScanV7Tar|TestRPMExpansionBudget)$' -count=1
ok  	amadan.net/oficina/equipo/internal/hostedimage	0.257s
=== 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 1m23.772s 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 1m21.895s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m21.89s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 85.78, cpu waiting 47.25%, memory waiting 0.00%, io waiting 0.39%
--- 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.296s 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 1m18.826s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m18.82s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 85.78, cpu waiting 46.48%, memory waiting 0.00%, io waiting 0.42%
--- 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 1m26.314s 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.379s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m12.33s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 6.27s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.78s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 91.48, cpu waiting 47.87%, memory waiting 0.00%, io waiting 0.38%
--- 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 2m50.196s 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 2m47.835s amadan.net/oficina/equipo/internal/headless
receipt: slow test 2m13.57s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 15.77s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.31s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
receipt: slow test 9.18s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
machine: 32 CPUs, load 44.38, cpu waiting 19.40%, memory waiting 0.00%, io waiting 0.08%
--- 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 1m43.959s 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 1m41.24s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m10.62s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.51s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 8.47s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 7.7s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 4.94s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 88.90, cpu waiting 47.08%, memory waiting 0.00%, io waiting 0.29%
--- 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 3m34.53s 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 3m32.382s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m47.36s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 23.8s amadan.net/oficina/equipo/internal/headless TestMacMixedVersions
receipt: slow test 20.96s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.58s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 7.21s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistantAttachments
machine: 32 CPUs, load 24.25, cpu waiting 9.34%, memory waiting 0.00%, io waiting 0.03%
--- 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 3m30.987s 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.155s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 15.65s amadan.net/oficina/equipo/internal/thintest TestTasklessHoldResumes
receipt: slow test 11.28s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.68s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 5.47s amadan.net/oficina/equipo/internal/thintest TestNudgeResumesHeldJob
receipt: slow test 5.45s amadan.net/oficina/equipo/internal/thintest TestResumeBeforeRefusalReported
machine: 32 CPUs, load 24.25, cpu waiting 9.66%, memory waiting 0.00%, io waiting 0.04%
--- 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 2m26.85s 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 2m24.654s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.61s amadan.net/oficina/equipo/internal/thintest TestContractRetryPreviewUnverifiedMerge
receipt: slow test 9.18s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 5.02s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 4.97s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 3.05s amadan.net/oficina/equipo/internal/thintest TestContractPausedJob
machine: 32 CPUs, load 55.29, cpu waiting 27.81%, memory waiting 0.00%, io waiting 0.13%
--- 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 7m38.834s, over the 45s its record on line 45 allows; reported only, timing fails on CI

receipt: test step 7m45.614s 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 7m38.834s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 37.1s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.95s 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.54s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
machine: 32 CPUs, load 2.30, 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.728s 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.677s amadan.net/oficina/equipo/internal/runner
receipt: slow test 29.65s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.02s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 63.35, cpu waiting 33.11%, memory waiting 0.00%, io waiting 0.70%
--- 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 1m2.347s 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.961s amadan.net/oficina/equipo/internal/runner
receipt: slow test 51s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 43.03s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.39s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.55s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 77.72, cpu waiting 41.67%, memory waiting 0.00%, io waiting 0.57%
--- 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 42.097s 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 41.073s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.14s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 5.01s amadan.net/oficina/equipo/internal/runner TestEnrolCommitsTheCredentialLast
receipt: slow test 3.38s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.13s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 3.13s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
machine: 32 CPUs, load 47.77, cpu waiting 27.13%, memory waiting 0.00%, io waiting 0.80%
--- 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 38.2%, load 30.24
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
--- FAIL amadan.net/oficina/equipo/internal/equipotest TestDirectDeadReferencesRepository
=== RUN   TestDirectDeadReferencesRepository
    direct_cutover_test.go:221: repository reference inventory: exit status 1
        cmd/equipo-hosted-image/main_test.go:75:33: unclassified equipo-runner
        cmd/equipo-hosted-image/main_test.go:97:48: unclassified equipo-runner
        cmd/equipo-hosted-image/main_test.go:125:37: unclassified equipo-runner
        cmd/equipo-vm-init/main.go:57:49: unclassified equipo-runner
        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
        docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md:336:204: unclassified node
        docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md:338:12: unclassified equipo-runner
        docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md:513:124: unclassified equipo-runner
        docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md:550:117: unclassified npm
        docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md:601:200: unclassified node
        docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md:603:204: unclassified node
        docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md:654:49: unclassified node
        infra/hosted/image/Dockerfile.tmpl:19:40: unclassified equipo-runner
        internal/hostedimage/build_test.go:35:4: unclassified equipo-runner
        internal/hostedimage/build_test.go:60:8: unclassified equipo-runner
        internal/hostedimage/build_test.go:177:10: unclassified equipo-runner
        internal/hostedimage/build_test.go:218:38: unclassified equipo-runner
        internal/hostedimage/build_test.go:260:117: unclassified npm
        internal/hostedimage/build_test.go:305:80: unclassified equipo-runner
        internal/hostedimage/manifest.go:45:45: unclassified equipo-runner
        internal/hostedimage/manifest.go:87:31: unclassified equipo-runner
        internal/hostedimage/manifest.go:100:25: unclassified equipo-runner
        internal/hostedimage/manifest.go:117:5: unclassified equipo-runner
        internal/hostedimage/manifest.go:117:28: unclassified equipo-runner
        internal/hostedimage/manifest_test.go:22:27: unclassified equipo-runner
        internal/hostedimage/scan.go:48:4: unclassified npm
        internal/hostedimage/scan.go:49:166: unclassified npm
        internal/hostedimage/scan_test.go:46:20: unclassified equipo-runner
        internal/hostedimage/scan_test.go:47:7: unclassified equipo-runner
        internal/hostedimage/scan_test.go:253:18: unclassified node
        internal/hostedimage/scan_test.go:266:87: unclassified node
        internal/hostedproxy/policy_test.go:404:24: unclassified Node
        internal/hostedproxy/policy_test.go:425:29: unclassified Node
        internal/hostedproxy/policy_test.go:443:29: unclassified Node
        internal/runner/thin/run.go:109:12: unclassified equipo-runner
        internal/vminit/init.go:44:21: unclassified equipo-runner
        internal/vminit/init_test.go:128:28: unclassified equipo-runner
        internal/vminit/init_test.go:805:33: unclassified node
        internal/vminit/init_test.go:1244:64: unclassified equipo-runner
        internal/vminit/mounts_linux.go:37:70: unclassified node
        internal/vminit/mounts_linux.go:140:107: unclassified NODE
        reference scan: 3547 text files, 4031 matches, 47 failures
--- FAIL: TestDirectDeadReferencesRepository (2.85s)

--- FAIL amadan.net/oficina/equipo/internal/equipotest TestCIGateSteps
=== RUN   TestCIGateSteps
    foundation_test.go:194: make ci targets = [budget build copy-release-check fmt-check gitleaks govulncheck hosted-image-check lanes-check migration-check perf runner-dead-references runner-host spacing staticcheck test test-quarantine vet], want [budget build copy-release-check fmt-check gitleaks govulncheck lanes-check migration-check perf runner-dead-references runner-host spacing staticcheck test test-quarantine vet]
    foundation_test.go:258: CI step targets = [budget build copy-release-check fmt-check gitleaks govulncheck hosted-image-check lanes-check migration-check perf runner-dead-references runner-host spacing staticcheck test test-quarantine vet], want [budget build copy-release-check fmt-check gitleaks govulncheck lanes-check migration-check perf runner-dead-references runner-host spacing staticcheck test test-quarantine vet]
--- FAIL: TestCIGateSteps (0.89s)

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


receipt: test step 1m16.634s 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.391s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 33.96s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 33.94s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 30.86s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 27.52s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 27.38s amadan.net/oficina/equipo/internal/equipotest TestBudgetLoweringBelowUsage
rastrillo: budget test: go test failed
exit status 1
+ go test -tags testbuild -timeout 15m -run '^Test[A-D]|^TestQ' -v -run '^TestCIGateSteps$|^TestDirectDeadReferencesRepository$' -count=1 ./internal/equipotest   (retry, once)
FAILED TWICE ./internal/equipotest:TestCIGateSteps equipotest-a
FAILED TWICE ./internal/equipotest:TestDirectDeadReferencesRepository equipotest-a
=== RUN   TestDirectDeadReferencesRepository
    direct_cutover_test.go:221: repository reference inventory: exit status 1
        cmd/equipo-hosted-image/main_test.go:75:33: unclassified equipo-runner
        cmd/equipo-hosted-image/main_test.go:97:48: unclassified equipo-runner
        cmd/equipo-hosted-image/main_test.go:125:37: unclassified equipo-runner
        cmd/equipo-vm-init/main.go:57:49: unclassified equipo-runner
        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
        docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md:336:204: unclassified node
        docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md:338:12: unclassified equipo-runner
        docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md:513:124: unclassified equipo-runner
        docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md:550:117: unclassified npm
        docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md:601:200: unclassified node
        docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md:603:204: unclassified node
        docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md:654:49: unclassified node
        infra/hosted/image/Dockerfile.tmpl:19:40: unclassified equipo-runner
        internal/hostedimage/build_test.go:35:4: unclassified equipo-runner
        internal/hostedimage/build_test.go:60:8: unclassified equipo-runner
        internal/hostedimage/build_test.go:177:10: unclassified equipo-runner
        internal/hostedimage/build_test.go:218:38: unclassified equipo-runner
        internal/hostedimage/build_test.go:260:117: unclassified npm
        internal/hostedimage/build_test.go:305:80: unclassified equipo-runner
        internal/hostedimage/manifest.go:45:45: unclassified equipo-runner
        internal/hostedimage/manifest.go:87:31: unclassified equipo-runner
        internal/hostedimage/manifest.go:100:25: unclassified equipo-runner
        internal/hostedimage/manifest.go:117:5: unclassified equipo-runner
        internal/hostedimage/manifest.go:117:28: unclassified equipo-runner
        internal/hostedimage/manifest_test.go:22:27: unclassified equipo-runner
        internal/hostedimage/scan.go:48:4: unclassified npm
        internal/hostedimage/scan.go:49:166: unclassified npm
        internal/hostedimage/scan_test.go:46:20: unclassified equipo-runner
        internal/hostedimage/scan_test.go:47:7: unclassified equipo-runner
        internal/hostedimage/scan_test.go:253:18: unclassified node
        internal/hostedimage/scan_test.go:266:87: unclassified node
        internal/hostedproxy/policy_test.go:404:24: unclassified Node
        internal/hostedproxy/policy_test.go:425:29: unclassified Node
        internal/hostedproxy/policy_test.go:443:29: unclassified Node
        internal/runner/thin/run.go:109:12: unclassified equipo-runner
        internal/vminit/init.go:44:21: unclassified equipo-runner
        internal/vminit/init_test.go:128:28: unclassified equipo-runner
        internal/vminit/init_test.go:805:33: unclassified node
        internal/vminit/init_test.go:1244:64: unclassified equipo-runner
        internal/vminit/mounts_linux.go:37:70: unclassified node
        internal/vminit/mounts_linux.go:140:107: unclassified NODE
        reference scan: 3547 text files, 4031 matches, 47 failures
--- FAIL: TestDirectDeadReferencesRepository (2.77s)
=== RUN   TestCIGateSteps
    foundation_test.go:194: make ci targets = [budget build copy-release-check fmt-check gitleaks govulncheck hosted-image-check lanes-check migration-check perf runner-dead-references runner-host spacing staticcheck test test-quarantine vet], want [budget build copy-release-check fmt-check gitleaks govulncheck lanes-check migration-check perf runner-dead-references runner-host spacing staticcheck test test-quarantine vet]
    foundation_test.go:258: CI step targets = [budget build copy-release-check fmt-check gitleaks govulncheck hosted-image-check lanes-check migration-check perf runner-dead-references runner-host spacing staticcheck test test-quarantine vet], want [budget build copy-release-check fmt-check gitleaks govulncheck lanes-check migration-check perf runner-dead-references runner-host spacing staticcheck test test-quarantine vet]
--- FAIL: TestCIGateSteps (0.64s)
FAIL
rastrillo-budget/v1 ran 3.42s
FAIL	amadan.net/oficina/equipo/internal/equipotest	3.616s
FAIL
machine: 32 CPUs, load 86.06, cpu waiting 46.10%, memory waiting 0.00%, io waiting 0.24%
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 38.2%, load 30.24
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 2m26.031s 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.683s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 24.36s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
receipt: slow test 24.32s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
receipt: slow test 24.31s amadan.net/oficina/equipo/internal/equipotest TestProjectBindingUniqueness
receipt: slow test 24.29s amadan.net/oficina/equipo/internal/equipotest TestProjectConcurrentRetry
receipt: slow test 24.25s amadan.net/oficina/equipo/internal/equipotest TestProjectRequestActorAndUpdate
machine: 32 CPUs, load 39.22, cpu waiting 17.58%, memory waiting 0.00%, io waiting 0.08%
--- 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 38.2%, load 34.86
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
rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/equipotest TestRecoveryReleaseMissingHistoryCharge
=== RUN   TestRecoveryReleaseMissingHistoryCharge
    recovery_test.go:310: charge lost or fabricated receipt: {Reserved:{Calls:0 InputTokens:0 OutputTokens:0 Seconds:0} Spent:{Calls:0 InputTokens:0 OutputTokens:0 Seconds:0}}
--- FAIL: TestRecoveryReleaseMissingHistoryCharge (1.39s)

--- FAIL amadan.net/oficina/equipo/internal/equipotest (package output)
FAIL
rastrillo-budget/v1 ran 5m43.762s
FAIL	amadan.net/oficina/equipo/internal/equipotest	344.071s


receipt: test step 5m45.94s 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 5m43.762s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 4m47.32s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 14.33s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 11.33s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 11.27s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 8.24s amadan.net/oficina/equipo/internal/equipotest TestRosterBootstrapOnce
exit status 1
+ go test -tags testbuild -timeout 15m -run '^TestR' -v -run '^TestRecoveryReleaseMissingHistoryCharge$' -count=1 ./internal/equipotest   (retry, once)
FAILED TWICE ./internal/equipotest:TestRecoveryReleaseMissingHistoryCharge equipotest-r
=== RUN   TestRecoveryReleaseMissingHistoryCharge
    recovery_test.go:310: charge lost or fabricated receipt: {Reserved:{Calls:0 InputTokens:0 OutputTokens:0 Seconds:0} Spent:{Calls:0 InputTokens:0 OutputTokens:0 Seconds:0}}
--- FAIL: TestRecoveryReleaseMissingHistoryCharge (1.29s)
FAIL
rastrillo-budget/v1 ran 1.287s
FAIL	amadan.net/oficina/equipo/internal/equipotest	1.446s
FAIL
machine: 32 CPUs, load 3.66, cpu waiting 0.60%, memory waiting 0.00%, io waiting 0.00%
make: *** [Makefile:113: ci-shard] Error 1

amadan: step check shard 14 of 29 failed: exit status 2
--- 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 37.8%, load 30.24
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 1m14.645s 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 1m12.34s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 30.63s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 30.62s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 29.97s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 28.14s amadan.net/oficina/equipo/internal/equipotest TestSigninCSRF
receipt: slow test 27.78s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedAuditRollback
machine: 32 CPUs, load 88.90, cpu waiting 47.21%, memory waiting 0.00%, io waiting 0.28%
--- 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 38.2%, load 30.24
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.509s 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.802s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 4.39s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.69s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.83s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.56s amadan.net/oficina/equipo/internal/plan3test TestOnboardingAccountMigration
receipt: slow test 1.54s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
machine: 32 CPUs, load 91.68, cpu waiting 48.32%, memory waiting 0.00%, io waiting 0.36%
--- 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 38.2%, load 30.24
test lane rest: ./cmd/equipo ./cmd/equipo-hosted-controller ./cmd/equipo-hosted-image ./cmd/equipo-hosted-proxy ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./cmd/equipo-vm-init ./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/hostedcert ./internal/hostedclient ./internal/hostedctl ./internal/hostedctl/ctlcert ./internal/hostedctl/ctlcert/ctlcerttest ./internal/hostedctl/ctlegress ./internal/hostedctl/ctlops ./internal/hostedctl/ctlproxy ./internal/hostedctl/ctlproxy/ctlproxytest ./internal/hostedimage ./internal/hostedimage/hostedimagetest ./internal/hostedproxy ./internal/hostedproxy/proxytest ./internal/hostedwire ./internal/idtest ./internal/isolatedjob ./internal/isolatedjob/awsjob ./internal/isolatedjob/awsjob/awsctl ./internal/isolatedjob/awsjob/imageaws ./internal/isolatedjob/guardfixture ./internal/isolatedjob/isolatedjobtest ./internal/ownermodetest ./internal/release ./internal/release/renderertest ./internal/runner/checkrun ./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/gate ./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/vminit ./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-hosted-image ./cmd/equipo-hosted-proxy ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./cmd/equipo-vm-init ./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/hostedcert ./internal/hostedclient ./internal/hostedctl ./internal/hostedctl/ctlcert ./internal/hostedctl/ctlcert/ctlcerttest ./internal/hostedctl/ctlegress ./internal/hostedctl/ctlops ./internal/hostedctl/ctlproxy ./internal/hostedctl/ctlproxy/ctlproxytest ./internal/hostedimage ./internal/hostedimage/hostedimagetest ./internal/hostedproxy ./internal/hostedproxy/proxytest ./internal/hostedwire ./internal/idtest ./internal/isolatedjob ./internal/isolatedjob/awsjob ./internal/isolatedjob/awsjob/awsctl ./internal/isolatedjob/awsjob/imageaws ./internal/isolatedjob/guardfixture ./internal/isolatedjob/isolatedjobtest ./internal/ownermodetest ./internal/release ./internal/release/renderertest ./internal/runner/checkrun ./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/gate ./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/vminit ./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/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/runnerproto: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/workspace: its inputs changed
--- FAIL amadan.net/oficina/equipo/internal/hostedctl TestReapLoopRunsPassesUntilDone
=== RUN   TestReapLoopRunsPassesUntilDone
=== PAUSE TestReapLoopRunsPassesUntilDone
=== CONT  TestReapLoopRunsPassesUntilDone
    reaper_test.go:693: read unmatched_vms = hostedctl: begin: SQL logic error: cannot start a transaction within a transaction (1)
--- FAIL: TestReapLoopRunsPassesUntilDone (0.47s)

--- FAIL amadan.net/oficina/equipo/internal/hostedctl (package output)
FAIL
rastrillo-budget/v1 ran 38.086s
FAIL	amadan.net/oficina/equipo/internal/hostedctl	38.129s

--- FAIL amadan.net/oficina/equipo/internal/runner/checkrun TestChecksRunBaseChecksSHAOnlyOnBasePass
=== RUN   TestChecksRunBaseChecksSHAOnlyOnBasePass
    run_test.go:156: uncertified {Checks:passed BaseChecks: Reason: Output:Uncertified candidate gate diagnostic:
        make[1]: Entering directory '/tmp/TestChecksRunBaseChecksSHAOnlyOnBasePass1443207295/004/tree'
        hi
        make[1]: Leaving directory '/tmp/TestChecksRunBaseChecksSHAOnlyOnBasePass1443207295/004/tree' BaseChecksSHA: Sandbox:bubblewrap Evidence:0x5705bd4c4cc0 State:done Terminated:true Gate:make ci LogTail:Uncertified candidate gate diagnostic:
        make[1]: Entering directory '/tmp/TestChecksRunBaseChecksSHAOnlyOnBasePass1443207295/004/tree'
        hi
        make[1]: Leaving directory '/tmp/TestChecksRunBaseChecksSHAOnlyOnBasePass1443207295/004/tree' ExitCode:0x5705bd728c60}
--- FAIL: TestChecksRunBaseChecksSHAOnlyOnBasePass (0.28s)

--- FAIL amadan.net/oficina/equipo/internal/runner/checkrun (package output)
FAIL
FAIL	amadan.net/oficina/equipo/internal/runner/checkrun	1.214s

--- 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:42: reason is 386 bytes, over 200
    budgets_file_test.go:33: .rastrillo/budgets.txt:87: record is 2414 bytes, over 500: keep the reason to the measured value and a short why
--- FAIL: TestBudgetRecordsAreShort (0.00s)

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

budget: amadan.net/oficina/equipo/internal/hostedctl/ctlproxy ran tests but printed no time: add func TestMain(m *testing.M) { os.Exit(budget.Main(m)) }
budget: amadan.net/oficina/equipo/internal/runner/gate ran tests but printed no time: add func TestMain(m *testing.M) { os.Exit(budget.Main(m)) }
budget note: cmd/equipo-runner took 1m25.523s, over the 1m0s its record on line 74 allows; reported only, timing fails on CI
budget note: internal/equipo took 3m2.873s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/chat took 50.164s, 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 13.743s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/idtest took 2m17.493s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/release took 1m8.807s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/runner/containment took 1m14.608s, over the 15s its record on line 41 allows; reported only, timing fails on CI
budget note: internal/runner/forge took 30.891s, over the 20s its record on line 36 allows; reported only, timing fails on CI
budget note: internal/runner/mac took 47.055s, over the 45s its record on line 44 allows; reported only, timing fails on CI
budget note: internal/runner/mac/fprobe took 13.33s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/runner/provider/claude/realcli took 16.258s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/runner/provider/pi took 1m23.12s, over the 1m0s its record on line 28 allows; reported only, timing fails on CI
budget note: internal/runner/render took 1m29.091s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 3m9.461s against a 60s target (the gate's other steps are not in this figure)
receipt: 63 packages ran, 33 cached, 27 without tests, 3 failed
receipt: slow package 3m2.873s amadan.net/oficina/equipo/internal/equipo
receipt: slow package 2m17.493s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 1m29.091s amadan.net/oficina/equipo/internal/runner/render
receipt: slow package 1m25.523s amadan.net/oficina/equipo/cmd/equipo-runner
receipt: slow package 1m23.12s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow test 1m17.58s amadan.net/oficina/equipo/cmd/equipo-runner TestReleaseRunnerHasNoFakeWorker
receipt: slow test 1m4.69s amadan.net/oficina/equipo/internal/idtest TestDoorRemembersOficinaID
receipt: slow test 56.18s amadan.net/oficina/equipo/internal/idtest TestDoorNeverJudgesANativeSession
receipt: slow test 55.72s amadan.net/oficina/equipo/internal/idtest TestDoorStepUpIsLocal
rastrillo: budget test: go test failed
receipt: slow test 55.47s amadan.net/oficina/equipo/internal/idtest TestDoorForgetsOficinaIDForARefusedSession
exit status 1
+ go test -tags testbuild -timeout 15m -v -run '^TestReapLoopRunsPassesUntilDone$' -count=1 ./internal/hostedctl   (retry, once)
##############################################################################
FLAKE ./internal/hostedctl:TestReapLoopRunsPassesUntilDone rest 0e392ff84e7abe0daf0c5156b0a5f3c56401076a 0.47s 20.97
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
+ go test -tags testbuild -timeout 15m -v -run '^TestChecksRunBaseChecksSHAOnlyOnBasePass$' -count=1 ./internal/runner/checkrun   (retry, once)
FAILED TWICE ./internal/runner/checkrun:TestChecksRunBaseChecksSHAOnlyOnBasePass rest
=== RUN   TestChecksRunBaseChecksSHAOnlyOnBasePass
    run_test.go:156: uncertified {Checks:passed BaseChecks: Reason: Output:Uncertified candidate gate diagnostic:
        make[1]: Entering directory '/tmp/TestChecksRunBaseChecksSHAOnlyOnBasePass3200270957/004/tree'
        hi
        make[1]: Leaving directory '/tmp/TestChecksRunBaseChecksSHAOnlyOnBasePass3200270957/004/tree' BaseChecksSHA: Sandbox:bubblewrap Evidence:0x684fef822000 State:done Terminated:true Gate:make ci LogTail:Uncertified candidate gate diagnostic:
        make[1]: Entering directory '/tmp/TestChecksRunBaseChecksSHAOnlyOnBasePass3200270957/004/tree'
        hi
        make[1]: Leaving directory '/tmp/TestChecksRunBaseChecksSHAOnlyOnBasePass3200270957/004/tree' ExitCode:0x684fef82e018}
--- FAIL: TestChecksRunBaseChecksSHAOnlyOnBasePass (0.06s)
FAIL
FAIL	amadan.net/oficina/equipo/internal/runner/checkrun	0.060s
FAIL
+ 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:42: reason is 386 bytes, over 200
    budgets_file_test.go:33: .rastrillo/budgets.txt:87: record is 2414 bytes, over 500: keep the reason to the measured value and a short why
--- FAIL: TestBudgetRecordsAreShort (0.00s)
FAIL
rastrillo-budget/v1 ran 0s
FAIL	amadan.net/oficina/equipo/internal/testci	0.004s
FAIL
machine: 32 CPUs, load 20.97, cpu waiting 8.45%, memory waiting 0.00%, io waiting 0.03%
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.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 1m24.582s amadan.net/oficina/equipo/internal/headless
receipt: slow test 38.94s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 14.8s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 10.43s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.6s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 7.13s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 91.48, cpu waiting 48.29%, memory waiting 0.00%, io waiting 0.37%
--- 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 1m41.372s 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.179s amadan.net/oficina/equipo/internal/headless
receipt: slow test 30.39s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 24.99s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 13.52s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 10.82s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
receipt: slow test 10.28s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
machine: 32 CPUs, load 88.90, cpu waiting 47.08%, memory waiting 0.00%, io waiting 0.29%
--- 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 1m58.655s 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 1m56.861s amadan.net/oficina/equipo/internal/headless
receipt: slow test 15.02s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 13.93s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 13.61s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 11.54s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsSignInEmail
receipt: slow test 11.41s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
machine: 32 CPUs, load 76.74, cpu waiting 41.58%, memory waiting 0.00%, io waiting 0.21%
--- 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
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserCopyContinue
=== RUN   TestBrowserCopyContinue
time=2026-12-01T01:45:39.776Z level=INFO msg="startup phase" phase=state_lock
rastrillo: budget test: go test failed
time=2026-12-01T01:45:39.776Z level=INFO msg="startup phase done" phase=state_lock took=255µs
time=2026-12-01T01:45:39.776Z level=INFO msg="startup phase" phase=claim_roots
time=2026-12-01T01:45:39.777Z level=INFO msg="startup phase done" phase=claim_roots took=520µs
time=2026-12-01T01:45:39.777Z level=INFO msg="startup phase" phase=sweep
time=2026-12-01T01:45:39.865Z level=INFO msg="startup phase done" phase=sweep took=88.312ms
time=2026-12-01T01:45:39.866Z level=INFO msg="startup phase" phase=credentials
time=2026-12-01T01:45:39.866Z level=INFO msg="startup phase done" phase=credentials took=191µs
time=2026-12-01T01:45:39.866Z level=INFO msg="startup phase" phase=open_state
time=2026-12-01T01:45:39.964Z level=INFO msg="startup phase done" phase=open_state took=97.9ms
time=2026-12-01T01:45:39.964Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-12-01T01:45:39.965Z level=INFO msg=connecting host=127.0.0.1:43535 protocol=39
time=2026-12-01T01:45:39.966Z level=INFO msg=connected host=127.0.0.1:43535 took=1.253ms
time=2026-12-01T01:45:39.966Z level=INFO msg="capabilities gathering"
time=2026-12-01T01:45:39.969Z level=INFO msg="capabilities gathered" took=2.395ms tags=linux,claude,go
time=2026-12-01T01:45:39.969Z level=INFO msg="hello sent" protocol=39
time=2026-12-01T01:45:39.977Z level=INFO msg=welcome protocol=39 role=primary generation=1
    browser_copy_test.go:90: waiting for !document.querySelector('[data-copy-continue]'): context deadline exceeded (last evaluation: <nil>)
--- FAIL: TestBrowserCopyContinue (6.52s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m46.716s
FAIL	amadan.net/oficina/equipo/internal/headless	106.951s


receipt: test step 1m48.78s 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 1m46.716s amadan.net/oficina/equipo/internal/headless
receipt: slow test 15.3s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 13.86s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 11.32s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 10.19s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 7.86s amadan.net/oficina/equipo/internal/headless TestBrowserEmptyExplore
exit status 1
+ go 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$' -v -run '^TestBrowserCopyContinue$' -count=1 ./internal/headless   (retry, once)
FAILED TWICE ./internal/headless:TestBrowserCopyContinue browser-headless-rest
=== RUN   TestBrowserCopyContinue
time=2026-12-01T01:46:41.819Z level=INFO msg="startup phase" phase=state_lock
time=2026-12-01T01:46:41.819Z level=INFO msg="startup phase done" phase=state_lock took=63µs
time=2026-12-01T01:46:41.819Z level=INFO msg="startup phase" phase=claim_roots
time=2026-12-01T01:46:41.819Z level=INFO msg="startup phase done" phase=claim_roots took=86µs
time=2026-12-01T01:46:41.819Z level=INFO msg="startup phase" phase=sweep
time=2026-12-01T01:46:41.863Z level=INFO msg="startup phase done" phase=sweep took=43.733ms
time=2026-12-01T01:46:41.863Z level=INFO msg="startup phase" phase=credentials
time=2026-12-01T01:46:41.863Z level=INFO msg="startup phase done" phase=credentials took=94µs
time=2026-12-01T01:46:41.863Z level=INFO msg="startup phase" phase=open_state
time=2026-12-01T01:46:41.913Z level=INFO msg="startup phase done" phase=open_state took=50.457ms
time=2026-12-01T01:46:41.914Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-12-01T01:46:41.915Z level=INFO msg=connecting host=127.0.0.1:43825 protocol=39
time=2026-12-01T01:46:41.916Z level=INFO msg=connected host=127.0.0.1:43825 took=1.054ms
time=2026-12-01T01:46:41.916Z level=INFO msg="capabilities gathering"
time=2026-12-01T01:46:41.917Z level=INFO msg="capabilities gathered" took=389µs tags=linux,claude,go
time=2026-12-01T01:46:41.918Z level=INFO msg="hello sent" protocol=39
time=2026-12-01T01:46:41.928Z level=INFO msg=welcome protocol=39 role=primary generation=1
    browser_copy_test.go:93: continue did not reach Checks: 0 <nil>
--- FAIL: TestBrowserCopyContinue (3.06s)
FAIL
rastrillo-budget/v1 ran 3.063s
FAIL	amadan.net/oficina/equipo/internal/headless	3.247s
FAIL
machine: 32 CPUs, load 86.06, cpu waiting 45.15%, memory waiting 0.00%, io waiting 0.23%
make: *** [Makefile:113: ci-shard] Error 1

amadan: step check shard 21 of 29 failed: exit status 2
--- 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.603s 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.585s amadan.net/oficina/equipo/internal/equipo
receipt: slow test 1.99s amadan.net/oficina/equipo/internal/equipo TestBrowserPreviewPassExchange
receipt: slow test 590ms 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 8.335s 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.715s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 6.71s 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.459s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 13.137s 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.459s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 9.15s amadan.net/oficina/equipo/internal/idtest TestBrowserSmartDoor
receipt: slow test 2.31s 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.62s 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.835s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 2.83s 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 3m46.001s 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 3m43.334s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 27.06s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.41s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12.09s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.88s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 9.48s amadan.net/oficina/equipo/internal/thintest TestBrowserRhythm
machine: 32 CPUs, load 12.51, cpu waiting 4.49%, memory waiting 0.00%, io waiting 0.01%
--- 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   (53s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 4.78s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.40s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 9.16s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 8.82s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 26.28s
+ 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   (70s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 16.29s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 14.45s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 19.83s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 16.77s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (21s)
ok ./internal/headless TestMixedVersions 18.96s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (2s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.80s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin   (1s)
first attempt failed: TestRunnerCancelAndSupersede; output tail:
=== RUN   TestRunnerCancelAndSupersede
time=2026-12-01T01:44:52.550Z level=INFO msg=connecting host=127.0.0.1:41327 protocol=39
time=2026-12-01T01:44:52.551Z level=INFO msg=connected host=127.0.0.1:41327 took=759µs
time=2026-12-01T01:44:52.551Z level=INFO msg="hello sent" protocol=39
time=2026-12-01T01:44:52.552Z level=INFO msg=welcome protocol=1 role=primary generation=3
    contract_test.go:298: waiting for ack, got {"id":"ryosgyv74ew-1","type":"turn","data":{"turn_id":"t_wait","attempt":1,"state":"cancelled","reason":"cancelled"}}
--- FAIL: TestRunnerCancelAndSupersede (0.06s)
FAIL
rastrillo-budget/v1 ran 58ms
FAIL	amadan.net/oficina/equipo/internal/runner/thin	0.076s
FAIL
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' -count=1 ./internal/runner/thin   (retry, once)
QUARANTINE FAIL ./internal/runner/thin TestRunnerCancelAndSupersede: failed twice
=== RUN   TestRunnerCancelAndSupersede
time=2026-12-01T01:44:53.912Z level=INFO msg=connecting host=127.0.0.1:33527 protocol=39
time=2026-12-01T01:44:53.913Z level=INFO msg=connected host=127.0.0.1:33527 took=731µs
time=2026-12-01T01:44:53.914Z level=INFO msg="hello sent" protocol=39
time=2026-12-01T01:44:53.914Z level=INFO msg=welcome protocol=1 role=primary generation=3
    contract_test.go:298: waiting for ack: failed to get reader: failed to read frame header: read tcp 127.0.0.1:33527->127.0.0.1:34716: read: connection reset by peer
--- FAIL: TestRunnerCancelAndSupersede (0.06s)
FAIL
rastrillo-budget/v1 ran 57ms
FAIL	amadan.net/oficina/equipo/internal/runner/thin	0.078s
FAIL
quarantine: 0 flaked (passed on the retry), 1 failed
make[1]: *** [Makefile:131: test-quarantine] Error 1
machine: 32 CPUs, load 83.07, cpu waiting 45.51%, memory waiting 0.00%, io waiting 0.48%
make: *** [Makefile:113: ci-shard] Error 2

amadan: step check shard 23 of 29 failed: exit status 2
--- 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.72s 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.642s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 200ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 89ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 3ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow package 0s amadan.net/oficina/equipo/internal/runner/provider/claude/realcli
receipt: slow test 5.47s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.74s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 330ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 200ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 90ms 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.479s 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.367s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 340ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 240ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 140ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceExitStatus
machine: 32 CPUs, load 29.72, cpu waiting 11.73%, memory waiting 0.00%, io waiting 1.20%
--- 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 38.2%, load 30.24
shard 25: make runner-dead-references lanes-check build vet fmt-check spacing budget migration-check
python3 scripts/runner-dead-references.py
cmd/equipo-hosted-image/main_test.go:75:33: unclassified equipo-runner
cmd/equipo-hosted-image/main_test.go:97:48: unclassified equipo-runner
cmd/equipo-hosted-image/main_test.go:125:37: unclassified equipo-runner
cmd/equipo-vm-init/main.go:57:49: unclassified equipo-runner
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
docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md:336:204: unclassified node
docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md:338:12: unclassified equipo-runner
docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md:513:124: unclassified equipo-runner
docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md:550:117: unclassified npm
docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md:601:200: unclassified node
docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md:603:204: unclassified node
docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md:654:49: unclassified node
infra/hosted/image/Dockerfile.tmpl:19:40: unclassified equipo-runner
internal/hostedimage/build_test.go:35:4: unclassified equipo-runner
internal/hostedimage/build_test.go:60:8: unclassified equipo-runner
internal/hostedimage/build_test.go:177:10: unclassified equipo-runner
internal/hostedimage/build_test.go:218:38: unclassified equipo-runner
internal/hostedimage/build_test.go:260:117: unclassified npm
internal/hostedimage/build_test.go:305:80: unclassified equipo-runner
internal/hostedimage/manifest.go:45:45: unclassified equipo-runner
internal/hostedimage/manifest.go:87:31: unclassified equipo-runner
internal/hostedimage/manifest.go:100:25: unclassified equipo-runner
internal/hostedimage/manifest.go:117:5: unclassified equipo-runner
internal/hostedimage/manifest.go:117:28: unclassified equipo-runner
internal/hostedimage/manifest_test.go:22:27: unclassified equipo-runner
internal/hostedimage/scan.go:48:4: unclassified npm
internal/hostedimage/scan.go:49:166: unclassified npm
internal/hostedimage/scan_test.go:46:20: unclassified equipo-runner
internal/hostedimage/scan_test.go:47:7: unclassified equipo-runner
internal/hostedimage/scan_test.go:253:18: unclassified node
internal/hostedimage/scan_test.go:266:87: unclassified node
internal/hostedproxy/policy_test.go:404:24: unclassified Node
internal/hostedproxy/policy_test.go:425:29: unclassified Node
internal/hostedproxy/policy_test.go:443:29: unclassified Node
internal/runner/thin/run.go:109:12: unclassified equipo-runner
internal/vminit/init.go:44:21: unclassified equipo-runner
internal/vminit/init_test.go:128:28: unclassified equipo-runner
internal/vminit/init_test.go:805:33: unclassified node
internal/vminit/init_test.go:1244:64: unclassified equipo-runner
internal/vminit/mounts_linux.go:37:70: unclassified node
internal/vminit/mounts_linux.go:140:107: unclassified NODE
reference scan: 3547 text files, 4031 matches, 47 failures
make[1]: *** [Makefile:251: runner-dead-references] Error 1
machine: 32 CPUs, load 34.86, cpu waiting 18.53%, memory waiting 0.00%, io waiting 0.95%
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 37.8%, load 30.24
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 77.72, cpu waiting 41.67%, memory waiting 0.00%, io waiting 0.57%
--- 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 38.2%, load 30.24
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 83.07, cpu waiting 44.85%, memory waiting 0.00%, io waiting 0.50%
--- 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 37.8%, load 30.24
shard 28: make gitleaks
1:45AM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
1:45AM INF 1370 commits scanned.
1:45AM INF scanned ~76359497 bytes (76.36 MB) in 26.9s
1:45AM WRN leaks found: 1
exit status 1
make[1]: *** [Makefile:214: gitleaks] Error 1
machine: 32 CPUs, load 70.21, cpu waiting 37.22%, memory waiting 0.00%, io waiting 0.63%
make: *** [Makefile:113: ci-shard] Error 2

amadan: step check shard 28 of 29 failed: exit status 2

amadan: job failed at step check shards 12, 14, 17, 21, 23, 25, 28 of 29 — its output is above, not at the tail of this log
diff --git a/.rastrillo/budgets.txt b/.rastrillo/budgets.txt
index d42a6ad4..0dffab14 100644
--- a/.rastrillo/budgets.txt
+++ b/.rastrillo/budgets.txt
@@ -39,7 +39,7 @@ time internal/runner/provider 15s Plan 3 CI repair measured 10.346s for the full
perf GET /releases/* skip Verified runner release file downloads, not browser GET screens.
perf GET /install.sh skip Mac runners: the one-line bootstrap a terminal pipes to sh, not a browser screen.
time internal/runner/containment 15s Plan 3 loaded CI measured 10.817s;
-size internal/runner/thin 35809 35291 Protocols 31-35, merge credential, publication guards, kept work, scans, 36 lookups; Mac pin, Engineering, asks, F probes, D1, P2, held reports; 38 Design step, renderer; hosted slice 2 Task 11 moved the base-gate checks to checkrun (source down) and pinned the primary and Mac behaviour with tests (test up); 35809/35291.
+size internal/runner/thin 35822 35352 Protocols 31-35, merge credential, publication guards, kept work, scans, 36 lookups; Mac pin, Engineering, asks, F probes, D1, P2, held reports; 38 Design step, renderer; hosted slice 2 Task 11 moved the base-gate checks to checkrun (source down) and pinned the primary and Mac behaviour with tests (test up), and its round 1 fixes added the worker step-engine wiring test; 35822/35352.
time internal/thintest 240s Thin contract and page tests, the Assistant's and the models' included, share one harness. Measured 202s on a shared 16 CPU box (2026-11-13); CI runs two lanes.
time internal/runner/mac 45s Real processes killed and proven gone: groups, sessions, the runner-user sweep, turns, restarts; probes end to end. Measured 29.3s locally.
time internal/runner/thin 45s Thin v1 slice 4 review: real git repositories for the merge and squash checks, a stalled fetch, and a 16 MiB candidate streamed through the review diff and the checks pack (about 5s).
diff --git a/docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md b/docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md
index 154431cc..dbc0b358 100644
--- a/docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md
+++ b/docs/superpowers/plans/HOSTED-SLICE2-PROGRESS.md
@@ -695,12 +695,7 @@ A shared gate contract and the base-gate checks flow, out of `internal/runner/th
- Red: the new tests did not compile, because the packages and names did not exist. TestPrimaryChecksUnchanged's report and launch expectations were first run against the unchanged code at 51eec914, and passed, before anything moved.
- Budgets: thin goes from 36245/35005 to 35809/35291 (source down 436; test up 286, from the new tests).
-Mutation checks. Each was applied by sed and the named tests run with `go test <pkg> -run '<Test>' -count=1`, outside the agent sandbox because the primary's tests need bwrap. Every run compiled and failed on its assertion. Each file was restored and checked with `cmp` against a copy, except 63 (below).
-
-61. BaseChecksSHA set on any pass, not only a certified one (`checkrun/run.go`). TestChecksRunBaseChecksSHAOnlyOnBasePass: FAIL, `run_test.go:153: uncertified {Checks:passed ...}`. TestPrimaryChecksUnchanged/uncertified_candidate_gate: FAIL, `primary_checks_test.go:144: report changed`. Restored.
-62. The gate run without its pins (`gate.WithPins` dropped). TestChecksRunBaseGatesFromBase: FAIL, `run_test.go:133: pins []`. TestPrimaryChecksUnchanged/certified_pass: FAIL, `primary_checks_test.go:160: gate launch {... pins:[]}, want pins [.equipo/gates.json Makefile budgets.txt]`. Restored.
-63. The Mac kind says `namespace` (`thin/run.go` macKind). TestMacWorkerUnchanged: FAIL, `worker_kind_test.go:28: Mac kind {... Termination:namespace ...}`. The scripted restore failed (the backup copy was never made), so the line was restored by hand and checked: `git diff` shows no `TerminationNamespace`, and TestMacWorkerUnchanged passes again.
-64. `WorkerKind.verify` ignores a record that cannot be converted. TestMacWorkerUnchanged: FAIL, `worker_kind_test.go:45: an unconvertible record verified`. Restored.
+Mutation checks 61 to 64 were first run before the round 1 fixes. They are recorded with their exact commands under "Task 11 review round 1" below, where all of them were run again.
Also run:
- `go test ./internal/runner/gate ./internal/runner/checkrun ./internal/runner/thin -run 'TestPrimaryChecks|TestMacWorker|TestChecks|TestWorker' -count=1`: ok. thin took 52s.
@@ -713,3 +708,61 @@ Also run:
- 33 thin Design, Preview, Devbox, Site and Render tests: the secret scanner cannot run in this environment.
- Failures that passed when rerun alone: metered TestMeteredRaceAdmitsExactlyOne and thintest TestExploreRoundTrip.
- thin hit the default 10-minute `go test` timeout. Rerun once with `-timeout 45m`, it finished in 829s: the 33 failures above, and nothing else failed. Its 45s time record is far below that under this load. The new TestPrimaryChecksUnchanged adds about 25 to 35s of real bwrap runs. The time record is not changed.
+
+### Task 11 review round 1 (t11-r1.md: two Important and two Minor findings, all fixed)
+
+1. **Required inputs.** The extra `Inputs` and `Outcome` fields are accepted as an amendment to the interface (coordinator ruling).
+ - checkrun's package doc names what is required: `repo.Git`, `repo.GitDir`, `Workspace`, `CandidateSHA`, `Attempt` and `Record`. It says what each optional input does when left empty, that `ModuleCache` belongs to the gate.Runner's constructor, and that a runner must mount `gate.Pins` (a Mac's must not be given checkrun's gates).
+ - `Run` refuses a run missing any required input before anything starts: `StepFailed`, `policy_rejected`, terminated, and no gate asked to run.
+ - New TestChecksRunRefusesMissingInputs covers each missing input, the brief's fields only, and a whole set of inputs. The existing checkrun tests now pass `Attempt`. The test stub returns, rather than panicking, on a nil recorder, so a mutation fails on an assertion.
+2. **The real step-engine wiring.** `runWorker`'s StepEngine is now built by `workerSteps(state, worker, kind, exec, notify, logger)`, with the same fields as before.
+ - New TestMacWorkerStepEngineWiring drives a real StepEngine from `macKind`:
+ - a previous process's unrecorded attempt is proven ended through the converted record `mac.RecordID(0, attemptMarker(key))`, and acknowledged;
+ - a report that ends an attempt without naming a kind goes out with `TerminationProcessGroup`.
+3. **Sandbox on the primary's result.** `primaryGate.Run` sets `Sandbox` to `bubblewrap`. TestPrimaryChecksGatePins asserts `res.Sandbox`. The step report mapping is unchanged: TestPrimaryChecksUnchanged still asserts that `ChecksSandbox` is empty.
+4. **Mutation records.** Every mutation below gives its exact command and test command, the observed failure, and how it was restored.
+
+Budgets: thin goes from 35809/35291 to 35822/35352 (the `workerSteps` function, the wiring test and the refusal check).
+
+Mutation checks. Each was run from the repository root, outside the agent sandbox, because the primary's tests need bwrap. Each was applied with the `sed` shown, then the `go test` shown was run. The file was copied first and restored with `cp`, and `cmp` against the copy was clean after every one. Every run compiled and failed on an assertion. Output is cut at 200 characters.
+
+61. BaseChecksSHA set on any pass, not only a certified one.
+ - `sed -i 's/ if certified \&\& res.Terminated \&\& res.Reason == "" \&\& res.Code == 0 {/ if res.Terminated \&\& res.Reason == "" \&\& res.Code == 0 {/' internal/runner/checkrun/run.go`
+ - `go test ./internal/runner/checkrun ./internal/runner/thin -run '^(TestChecksRunBaseChecksSHAOnlyOnBasePass|TestPrimaryChecksUnchanged)$/^(uncertified_candidate_gate)?$' -count=1`
+ - FAIL: `run_test.go:156: uncertified {Checks:passed ...}` and `primary_checks_test.go:144: report changed:`. Restored.
+62. The gate run without its pins.
+ - `sed -i 's/ res := run(gate.WithPins(ctx, chosen.Pins), in.Workspace, chosen.Argv, in.Limit)/ res := run(ctx, in.Workspace, chosen.Argv, in.Limit)/' internal/runner/checkrun/run.go`
+ - `go test ./internal/runner/checkrun ./internal/runner/thin -run '^(TestChecksRunBaseGatesFromBase|TestPrimaryChecksUnchanged)$/^(certified_pass)?$' -count=1`
+ - FAIL: `run_test.go:136: pins []` and `primary_checks_test.go:160: gate launch {key:checks/a0fbfa9ff65cdb0e/... pins:[]}, want pins [.equipo/gates.json Makefile budgets.txt]`. Restored.
+63. The Mac kind says namespace.
+ - `sed -i 's/return WorkerKind{Gate: g, Termination: wire.TerminationProcessGroup,/return WorkerKind{Gate: g, Termination: wire.TerminationNamespace,/' internal/runner/thin/run.go`
+ - `go test ./internal/runner/thin -run '^TestMacWorker(Unchanged|StepEngineWiring)$' -count=1`
+ - FAIL: `worker_kind_test.go:30: Mac kind {... Termination:namespace ...}` and `worker_kind_test.go:105: report &{... StepID:s2 ... Reason:placement_refused ...}`. Restored. Before round 1 this mutation was restored by hand after a scripted restore failed; the run here used the `cp` and `cmp` restore.
+64. `WorkerKind.verify` ignores a record that cannot be converted.
+ - `sed -i 's/ return err == nil \&\& k.Gate.Verify(rec)/ _ = err; return k.Gate.Verify(rec)/' internal/runner/thin/run.go`
+ - `go test ./internal/runner/thin -run '^TestMacWorkerUnchanged$' -count=1`
+ - FAIL: `worker_kind_test.go:47: an unconvertible record verified`. Restored.
+65. The worker step engine names namespace termination (the wiring `runWorker` uses).
+ - `sed -i 's/TerminationKind: kind.Termination,/TerminationKind: wire.TerminationNamespace,/' internal/runner/thin/run.go`
+ - `go test ./internal/runner/thin -run '^TestMacWorkerStepEngineWiring$' -count=1`
+ - FAIL: `worker_kind_test.go:105: report &{... TaskID:tk2 StepID:s2 Attempt:1 State:failed Reason:placement_refused ...}`, whose TerminationKind is not process_group. Restored.
+66. The worker step engine verifies without the record conversion.
+ - `sed -i 's/return kind.verify(id) }, TerminationKind/return kind.Gate.Verify(id) }, TerminationKind/' internal/runner/thin/run.go`
+ - `go test ./internal/runner/thin -run '^TestMacWorkerStepEngineWiring$' -count=1`
+ - FAIL: `worker_kind_test.go:109: recovery verified ["step:s1/1"] acknowledged ["pg:0:checks/a0fbfa9ff65cdb0e"], want "pg:0:checks/a0fbfa9ff65cdb0e"`. Restored.
+67. checkrun runs without a recorder.
+ - `sed -i 's/ || in.Attempt == "" || in.Record == nil {/ || in.Attempt == "" {/' internal/runner/checkrun/run.go`
+ - `go test ./internal/runner/checkrun -run '^TestChecksRunRefusesMissingInputs$' -count=1`
+ - FAIL: `run_test.go:223: outcome {Checks:cannot_run ... Reason:checks_unavailable ... State:done ...}`: the stub was asked to run. Restored.
+68. checkrun runs without an attempt name.
+ - `sed -i 's/ || in.Attempt == "" || in.Record == nil {/ || in.Record == nil {/' internal/runner/checkrun/run.go`
+ - `go test ./internal/runner/checkrun -run '^TestChecksRunRefusesMissingInputs$' -count=1`
+ - FAIL: `run_test.go:223: outcome {Checks:passed ...}`. Restored.
+69. The primary adapter leaves Sandbox empty.
+ - `sed -i 's/ res.Sandbox = p.Sandbox()/ _ = p.Sandbox()/' internal/runner/thin/judge.go`
+ - `go test ./internal/runner/thin -run '^TestPrimaryChecksGatePins$' -count=1`
+ - FAIL: `primary_checks_test.go:195: gate {Output:base Reason: Code:0 Terminated:true Sandbox: ...}`. Restored.
+
+Also run (targeted only, as the coordinator asked):
+- `go test ./internal/runner/gate ./internal/runner/checkrun ./internal/runner/thin -run 'TestPrimaryChecks|TestMacWorker|TestChecks|TestWorker|TestRunnerReasonsAreKnown|TestBaseGate|TestCandidateGate|TestGateDirectory|TestCombinedOutput' -count=1`: ok. thin took 129s under load.
+- `make budget build vet`: ok. gofmt and `git diff --check`: clean.
diff --git a/internal/runner/checkrun/run.go b/internal/runner/checkrun/run.go
index 70318c6a..9688e574 100644
--- a/internal/runner/checkrun/run.go
+++ b/internal/runner/checkrun/run.go
@@ -4,6 +4,18 @@
// gate.Runner, and what the outcome says, needs_network included. The
// primary (internal/runner/thin) and a hosted worker share it; how a gate
// is confined is the runner's business.
+//
+// Required: repo.Git and repo.GitDir, Inputs.Workspace, CandidateSHA,
+// Attempt and Record. A run missing any of them is refused before
+// anything starts (StepFailed, policy_rejected, terminated: nothing ran).
+// Optional: BaseSHA (none: nothing certifies, the candidate's own gate is
+// a diagnostic), GoRoot, Limit, Prepare, Diagnostic, Hosted and Log, each
+// documented on its field. ModuleCache is the runner's: the gate.Runner's
+// constructor gives it its cache, and Run does not read it.
+//
+// The gate.Runner must mount gate.Pins(ctx) read-only over the tree (the
+// base's gate files); a runner that cannot (a Mac's) must not be given
+// checkrun's gates.
package checkrun
import (
@@ -23,18 +35,20 @@ import (
"amadan.net/oficina/equipo/internal/wire"
)
-// Inputs is one checks run's tree and commits.
+// Inputs is one checks run's tree and commits (the package doc says
+// which are required).
type Inputs struct {
// Workspace is the candidate's tree; repo holds its objects.
Workspace, BaseSHA, CandidateSHA string
// GoRoot is the runner's Go (empty: none, so no toolchain check and
// no dependency stage). ModuleCache is the cache the runner's gate
- // mounts; the runner resolves it, so Run does not read it.
+ // mounts; the gate.Runner's constructor owns it, so Run does not read
+ // it.
GoRoot, ModuleCache string
// Limit bounds each gate (0: the runner's default).
Limit time.Duration
// Attempt names every gate run; Record persists each run's process
- // record before it starts (gate.Runner.Run).
+ // record before it starts (gate.Runner.Run). Both required.
Attempt string
Record func(id string) error
// Prepare, when set, gives a tree about to be checked a .git of its
@@ -85,6 +99,11 @@ const tailLines = 30
// certifying none, ends wire.ChecksNone before anything runs.
func Run(ctx context.Context, g gate.Runner, repo checks.Repo, in Inputs) Outcome {
var out Outcome
+ if repo.Git == "" || repo.GitDir == "" || in.Workspace == "" || in.CandidateSHA == "" || in.Attempt == "" || in.Record == nil {
+ // Nothing has started: no gate can launch without its record.
+ out.State, out.Reason, out.Terminated = wire.StepFailed, "policy_rejected", true
+ return out
+ }
done := func(outcome, reason string) Outcome {
out.State, out.Terminated, out.Checks, out.Reason = wire.StepDone, true, outcome, reason
return out
diff --git a/internal/runner/checkrun/run_test.go b/internal/runner/checkrun/run_test.go
index fa52129c..7e0d4b8d 100644
--- a/internal/runner/checkrun/run_test.go
+++ b/internal/runner/checkrun/run_test.go
@@ -37,6 +37,9 @@ func (g *execGate) Run(ctx context.Context, attempt, dir string, argv []string,
id := fmt.Sprintf("ns-%d", len(g.runs)+1)
run := execRun{argv: argv, dir: dir, pins: gate.Pins(ctx), attempt: attempt, recorded: id}
g.runs = append(g.runs, run)
+ if record == nil {
+ return gate.Result{Reason: "checks_unavailable", Terminated: true}
+ }
if err := record(id); err != nil {
return gate.Result{Reason: "checks_unavailable", Terminated: true}
}
@@ -143,18 +146,18 @@ func TestChecksRunBaseChecksSHAOnlyOnBasePass(t *testing.T) {
r, tree, base, candidate := repo(t,
map[string]string{".equipo/gates.json": contract, "Makefile": budgetGate, "size.txt": "1\n", "budgets.txt": "1\n"},
map[string]string{"NEWS": "news\n"})
- out := Run(context.Background(), &execGate{}, r, Inputs{Workspace: tree, BaseSHA: base, CandidateSHA: candidate, Record: func(string) error { return nil }})
+ out := Run(context.Background(), &execGate{}, r, Inputs{Workspace: tree, BaseSHA: base, CandidateSHA: candidate, Attempt: "checks/k", Record: func(string) error { return nil }})
if out.Checks != wire.ChecksPassed || out.BaseChecks != wire.ChecksPassed || out.BaseChecksSHA != base || out.Reason != "" {
t.Fatalf("certified %+v", out)
}
r, tree, base, candidate = repo(t, map[string]string{"Makefile": "ci:\n\t@echo hi\n"}, map[string]string{"NEWS": "news\n"})
- out = Run(context.Background(), &execGate{}, r, Inputs{Workspace: tree, BaseSHA: base, CandidateSHA: candidate, Record: func(string) error { return nil }})
+ out = Run(context.Background(), &execGate{}, r, Inputs{Workspace: tree, BaseSHA: base, CandidateSHA: candidate, Attempt: "checks/k", Record: func(string) error { return nil }})
if out.Checks != wire.ChecksPassed || out.BaseChecks != "" || out.BaseChecksSHA != "" || out.Output != "Uncertified candidate gate diagnostic:\nhi" {
t.Fatalf("uncertified %+v", out)
}
r, tree, base, candidate = repo(t, nil, map[string]string{"NEWS": "news\n"})
g := &execGate{}
- out = Run(context.Background(), g, r, Inputs{Workspace: tree, BaseSHA: base, CandidateSHA: candidate, Record: func(string) error { return nil }})
+ out = Run(context.Background(), g, r, Inputs{Workspace: tree, BaseSHA: base, CandidateSHA: candidate, Attempt: "checks/k", Record: func(string) error { return nil }})
if out.State != wire.StepDone || out.Checks != wire.ChecksNone || len(g.runs) != 0 {
t.Fatalf("no gate %+v ran %+v", out, g.runs)
}
@@ -178,7 +181,7 @@ func TestChecksRunNeedsNetworkFromTheStage(t *testing.T) {
t.Run(tc.name, func(t *testing.T) {
r, tree, base, candidate := repo(t, files, map[string]string{"NEWS": "news\n"})
g := &execGate{stage: &tc.stage}
- out := Run(context.Background(), g, r, Inputs{Workspace: tree, BaseSHA: base, CandidateSHA: candidate, GoRoot: t.TempDir(), Record: func(string) error { return nil }})
+ out := Run(context.Background(), g, r, Inputs{Workspace: tree, BaseSHA: base, CandidateSHA: candidate, GoRoot: t.TempDir(), Attempt: "checks/k", Record: func(string) error { return nil }})
if out.Checks != tc.checks || out.BaseChecks != tc.base || out.Reason != tc.reason || out.Gate != tc.label || out.BaseChecksSHA != "" {
t.Fatalf("outcome %+v", out)
}
@@ -190,8 +193,39 @@ func TestChecksRunNeedsNetworkFromTheStage(t *testing.T) {
// A stage whose end was not proven stops the step there, unterminated.
r, tree, base, candidate := repo(t, files, map[string]string{"NEWS": "news\n"})
g := &execGate{stage: &gate.Result{Reason: "cancelled"}}
- out := Run(context.Background(), g, r, Inputs{Workspace: tree, BaseSHA: base, CandidateSHA: candidate, GoRoot: t.TempDir(), Record: func(string) error { return nil }})
+ out := Run(context.Background(), g, r, Inputs{Workspace: tree, BaseSHA: base, CandidateSHA: candidate, GoRoot: t.TempDir(), Attempt: "checks/k", Record: func(string) error { return nil }})
if out.State != wire.StepFailed || out.Terminated || out.Reason != "cancelled" || out.Checks != "" || len(g.runs) != 1 {
t.Fatalf("unproven stage %+v runs %d", out, len(g.runs))
}
}
+
+// TestChecksRunRefusesMissingInputs: a run without its repository, tree,
+// candidate, attempt name or recorder is refused before anything starts:
+// failed, policy_rejected, terminated, and no gate asked to run.
+func TestChecksRunRefusesMissingInputs(t *testing.T) {
+ r, tree, base, candidate := repo(t, map[string]string{"Makefile": "ci:\n\t@echo hi\n"}, map[string]string{"NEWS": "news\n"})
+ whole := Inputs{Workspace: tree, BaseSHA: base, CandidateSHA: candidate, Attempt: "checks/k", Record: func(string) error { return nil }}
+ for name, change := range map[string]func(*checks.Repo, *Inputs){
+ "no git": func(r *checks.Repo, _ *Inputs) { r.Git = "" },
+ "no git dir": func(r *checks.Repo, _ *Inputs) { r.GitDir = "" },
+ "no workspace": func(_ *checks.Repo, in *Inputs) { in.Workspace = "" },
+ "no candidate": func(_ *checks.Repo, in *Inputs) { in.CandidateSHA = "" },
+ "no attempt": func(_ *checks.Repo, in *Inputs) { in.Attempt = "" },
+ "no recorder": func(_ *checks.Repo, in *Inputs) { in.Record = nil },
+ "brief's only": func(_ *checks.Repo, in *Inputs) { in.Attempt, in.Record = "", nil },
+ } {
+ t.Run(name, func(t *testing.T) {
+ rr, in := r, whole
+ change(&rr, &in)
+ g := &execGate{}
+ out := Run(context.Background(), g, rr, in)
+ if out.State != wire.StepFailed || out.Reason != "policy_rejected" || !out.Terminated || out.Checks != "" || out.ExitCode != nil || len(g.runs) != 0 {
+ t.Fatalf("outcome %+v runs %+v", out, g.runs)
+ }
+ })
+ }
+ g := &execGate{}
+ if out := Run(context.Background(), g, r, whole); out.Checks != wire.ChecksPassed || len(g.runs) != 1 {
+ t.Fatalf("whole inputs refused: %+v", out)
+ }
+}
diff --git a/internal/runner/thin/judge.go b/internal/runner/thin/judge.go
index 986bffa5..892c99d5 100644
--- a/internal/runner/thin/judge.go
+++ b/internal/runner/thin/judge.go
@@ -266,8 +266,13 @@ type primaryGate struct {
func (p primaryGate) Sandbox() string { return wire.SandboxBubblewrap }
+// Run runs argv in the containment's check profile, which is bubblewrap
+// (Sandbox): the result says so, as a worker's does. The primary's step
+// report does not carry it (Engineer.checks maps only what it did).
func (p primaryGate) Run(ctx context.Context, attempt, dir string, argv []string, limit time.Duration, record func(id string) error) rungate.Result {
- return p.e.runGateAs(ctx, attempt, dir, gate{argv: argv, limit: limit, pins: pinMounts(rungate.Pins(ctx))}, func(_ context.Context, id string) error { return record(id) })
+ res := p.e.runGateAs(ctx, attempt, dir, gate{argv: argv, limit: limit, pins: pinMounts(rungate.Pins(ctx))}, func(_ context.Context, id string) error { return record(id) })
+ res.Sandbox = p.Sandbox()
+ return res
}
func (p primaryGate) Verify(id string) bool {
diff --git a/internal/runner/thin/primary_checks_test.go b/internal/runner/thin/primary_checks_test.go
index af2f5808..63523b1c 100644
--- a/internal/runner/thin/primary_checks_test.go
+++ b/internal/runner/thin/primary_checks_test.go
@@ -191,7 +191,7 @@ func TestPrimaryChecksGatePins(t *testing.T) {
recorded := ""
ctx := rungate.WithPins(context.Background(), []rungate.Mount{{Source: trusted, Target: "/workspace/Makefile"}})
res := g.Run(ctx, "checks/"+stepKey(r), dir, []string{"/usr/bin/make", "ci"}, time.Minute, func(id string) error { recorded = id; return nil })
- if !res.Terminated || res.Code != 0 || res.Reason != "" || strings.TrimSpace(res.Output) != "base" || res.Evidence == nil || recorded == "" || g.Sandbox() != wire.SandboxBubblewrap {
+ if !res.Terminated || res.Code != 0 || res.Reason != "" || strings.TrimSpace(res.Output) != "base" || res.Evidence == nil || recorded == "" || g.Sandbox() != wire.SandboxBubblewrap || res.Sandbox != wire.SandboxBubblewrap {
t.Fatalf("gate %+v recorded %q", res, recorded)
}
if len(rec.launches) != 1 || !slices.Equal(rec.launches[0].pins, []string{"Makefile"}) || !strings.HasPrefix(rec.launches[0].key, "checks/"+stepKey(r)+"/") {
diff --git a/internal/runner/thin/run.go b/internal/runner/thin/run.go
index 6e000754..1cc6f784 100644
--- a/internal/runner/thin/run.go
+++ b/internal/runner/thin/run.go
@@ -135,6 +135,17 @@ func (k WorkerKind) acknowledge(id string) {
}
}
+// workerSteps is a worker's step engine: its steps run through exec, a
+// previous process's attempts are proven ended through kind's record
+// conversion and gate, and reports that end an attempt name kind's
+// termination.
+func workerSteps(state *State, worker *Worker, kind WorkerKind, exec StepFunc, notify func(), logger *slog.Logger) *StepEngine {
+ return &StepEngine{State: state, Exec: exec, Ask: worker.ask, Notify: notify, Logger: logger,
+ Sweep: worker.sweep,
+ Verify: func(_ context.Context, id string) bool { return kind.verify(id) }, TerminationKind: kind.Termination,
+ Acknowledge: func(_ context.Context, id string) { kind.acknowledge(id) }}
+}
+
// macKind is a Mac's (and the test build's fake Mac's): process groups,
// settled by workerRecord.
func macKind(g rungate.Runner) WorkerKind {
@@ -907,10 +918,7 @@ func runWorker(ctx context.Context, c runner.Config, o Options, platform wire.Pl
tags := func() []string { return caps.Get(ctx).Tags }
// Questions about the Engineering it ran are answered here, from the
// sessions it kept (worker_ask.go).
- steps := &StepEngine{State: state, Exec: placementGuard(tags, caps.Stale, worker.Exec), Ask: worker.ask, Notify: link.Notify, Logger: o.Logger,
- Sweep: worker.sweep,
- Verify: func(_ context.Context, id string) bool { return w.kind.verify(id) }, TerminationKind: w.kind.Termination,
- Acknowledge: func(_ context.Context, id string) { w.kind.acknowledge(id) }}
+ steps := workerSteps(state, worker, w.kind, placementGuard(tags, caps.Stale, worker.Exec), link.Notify, o.Logger)
link.Steps = steps
if err := steps.Start(ctx); err != nil {
return err
diff --git a/internal/runner/thin/worker_kind_test.go b/internal/runner/thin/worker_kind_test.go
index e003ed60..053ae969 100644
--- a/internal/runner/thin/worker_kind_test.go
+++ b/internal/runner/thin/worker_kind_test.go
@@ -1,8 +1,10 @@
package thin
import (
+ "context"
"errors"
"testing"
+ "time"
"amadan.net/oficina/equipo/internal/runner/mac"
"amadan.net/oficina/equipo/internal/wire"
@@ -48,3 +50,62 @@ func TestMacWorkerUnchanged(t *testing.T) {
t.Fatal("an unconvertible record acknowledged")
}
}
+
+// TestMacWorkerStepEngineWiring (Astra, Task 11 round 1): the step engine
+// runWorker builds (workerSteps) from the Mac's kind proves a previous
+// process's attempt ended through the converted record (the attempt's
+// marker), acknowledges it, and names process groups in a report that
+// ends an attempt and says nothing of how.
+func TestMacWorkerStepEngineWiring(t *testing.T) {
+ e, _, _, _ := hubRig(t)
+ st := e.O.State
+ ctx, cancel := context.WithCancel(context.Background())
+ defer cancel()
+ // A previous process took this attempt and recorded nothing.
+ if err := st.AcceptDispatch(ctx, "f1", dispatchFor("tk1", "s1", 1)); err != nil {
+ t.Fatal(err)
+ }
+ left, ok, err := st.nextStep(ctx)
+ if err != nil || !ok {
+ t.Fatalf("rig: %v %v", ok, err)
+ }
+ g := &verifyingGate{stubGate: &stubGate{}}
+ ran := make(chan string, 4)
+ exec := func(_ context.Context, r stepRow, _ func(wire.StepReport)) wire.StepReport {
+ ran <- r.StepID
+ return wire.StepReport{TaskID: r.TaskID, StepID: r.StepID, Attempt: r.Attempt, State: wire.StepFailed, Reason: "placement_refused", Termination: true, Findings: []wire.Finding{}}
+ }
+ steps := workerSteps(st, &Worker{State: st, Engine: e, StepRoot: t.TempDir()}, macKind(g), exec, func() {}, nil)
+ if err := steps.Start(ctx); err != nil {
+ t.Fatal(err)
+ }
+ if err := st.AcceptDispatch(ctx, "f2", dispatchFor("tk2", "s2", 1)); err != nil {
+ t.Fatal(err)
+ }
+ steps.Wake()
+ select {
+ case id := <-ran:
+ if id != "s2" {
+ t.Fatalf("ran %s", id)
+ }
+ case <-time.After(30 * time.Second):
+ t.Fatal("the new step never ran")
+ }
+ var rep *wire.StepReport
+ for deadline := time.Now().Add(30 * time.Second); rep == nil && time.Now().Before(deadline); time.Sleep(20 * time.Millisecond) {
+ for _, r := range outbox(t, st) {
+ if r.StepID == "s2" && r.Termination {
+ rep = &r
+ }
+ }
+ }
+ cancel()
+ steps.Wait()
+ if rep == nil || rep.TerminationKind != wire.TerminationProcessGroup {
+ t.Fatalf("report %+v", rep)
+ }
+ marker := mac.RecordID(0, attemptMarker(left.key()))
+ if len(g.verified) == 0 || g.verified[0] != marker || len(g.acknowledged) == 0 || g.acknowledged[0] != marker {
+ t.Fatalf("recovery verified %q acknowledged %q, want %q", g.verified, g.acknowledged, marker)
+ }
+}