oficina / equipo Public

Allow Claude's scrub-mode stubs in token copies; name known entries

Production 2026-11-21 (b6c76de2): a token connection's second turn on
one coordinator process was refused, runtime_claude_unexpected_entry.
A token launch sets CLAUDE_CODE_SUBPROCESS_ENV_SCRUB=1, and in that
mode the pinned 2.1.312 creates "scrub-mode stubs" in its home at
startup for its Bash sandbox: eleven empty dotfiles (.gitconfig,
.bashrc, .netrc, .npmrc and others) and the directories .pip,
.config/gh, .config/glab-cli, .config/git and .config/pip. The copy
is checked before launch, so the second turn's check is the first to
see them. Reproduced with a throwaway home and a fake token: the stubs
appear with the scrub variable and not without it.

A token copy on the pinned version now accepts exactly those names:
files regular, empty, one link, mode 0600, 0644 or 0664; directories
0700, 0755 or 0775 and empty. Content, another kind, a link or a
child is refused (runtime_claude_scrub_stub), and login copies still
refuse them. .config/git also accepts 0755 (umask 022).

An unexpected top-level entry's refusal now names it when it is one
the CLI is known to write, and says "unlisted" otherwise, so a name
the session chose never reaches the log.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev 21c856de31d7d0531d44747ac4137caa818c4180 parent 1943f5c
4 files changed, +141 −3
  • .rastrillo/budgets.txt +1 −1
  • internal/runner/provider/runtime_claude.go +22 −1
  • internal/runner/provider/runtime_home.go +14 −1
  • internal/runner/provider/runtime_scrub_test.go +104 −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/coordinator-copy-containment: Type  Size Avail | ext4   96G   86G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type  Size Avail | ext4   96G   86G
ci-box: bwrap: fetched and verified in 0.3s
ci-box: image pulled in 9.8s
ci-box: claude: fetched and verified in 12.8s
ci-box: codex: fetched and verified in 4.6s
ci-box: codex-code-mode-host: fetched and verified in 1.9s
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: pi: installed and verified in 6.9s
ci-box: opencode: installed and verified in 2.3s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 9.8s
ci-box: clone deepened in 3.3s
ci-box: file times set from content: 2819 files, 185 directories
ci-box: ready in 25.7s
=== copy ===
EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
go: downloading amadan.net/oficina/agent-access.git v0.0.0-20261024232549-8ed8ba826000
go: downloading github.com/sqids/sqids-go v0.4.1
go: downloading amadan.net/oficina/home/handoff v0.0.0-20261114110939-e03a01a1881c
go: downloading github.com/santhosh-tekuri/jsonschema/v6 v6.0.3
go: downloading github.com/modelcontextprotocol/go-sdk v1.7.0
go: downloading github.com/google/jsonschema-go v0.4.3
go: downloading golang.org/x/oauth2 v0.35.0
go: downloading github.com/yosida95/uritemplate/v3 v3.0.2
go: downloading github.com/segmentio/encoding v0.5.4
go: downloading golang.org/x/time v0.15.0
go: downloading github.com/segmentio/asm v1.1.3
ok  	amadan.net/oficina/equipo/internal/equipotest	0.250s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  5.7s
+ go list -export -test -tags testbuild -f  ./...
  5.3s
+ go list -export -test -tags browser,testbuild -f  ./internal/equipo ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
  3.1s
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -version
staticcheck 2026.1 (v0.7.0)
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 -version
Go: go1.26.11
Scanner: govulncheck@v1.8.0
DB: https://vuln.go.dev
DB updated: 2026-11-11 02:51:11 +0000 UTC

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

receipt: test step 1m32.455s 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 1m29.605s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m29.6s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 63.33, cpu waiting 40.43%, memory waiting 0.00%, io waiting 0.34%
--- 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 1m35.836s 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 1m33.105s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m33.1s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 62.58, cpu waiting 39.95%, memory waiting 0.00%, io waiting 0.32%
--- 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 1m36.501s 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 1m33.725s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m22.17s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 6.34s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 5.22s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 62.58, cpu waiting 39.33%, memory waiting 0.00%, io waiting 0.31%
--- 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 1m32.035s 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 1m28.836s amadan.net/oficina/equipo/internal/headless
receipt: slow test 45.66s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 22.33s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 10.93s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
receipt: slow test 9.91s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
machine: 32 CPUs, load 63.33, cpu waiting 40.43%, memory waiting 0.00%, io waiting 0.34%
--- 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_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 1m49.622s 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 1m46.406s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m7.2s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 13.07s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 10.94s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 9.09s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 6.11s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 51.35, cpu waiting 32.83%, memory waiting 0.00%, io waiting 0.25%
--- 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_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 3m33.555s 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 3m30.549s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m57.44s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 24.59s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 20.85s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 8.31s amadan.net/oficina/equipo/internal/headless TestHeadlessClaudeSignIn
receipt: slow test 7.43s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
machine: 32 CPUs, load 11.38, cpu waiting 5.88%, 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 2m5.338s 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 2m2.438s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 8.04s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.76s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 3.82s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 3.43s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 2.47s amadan.net/oficina/equipo/internal/thintest TestResearchDoneFallsBack
machine: 32 CPUs, load 41.32, cpu waiting 25.43%, memory waiting 0.00%, io waiting 0.19%
--- 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
--- FAIL amadan.net/oficina/equipo/internal/thintest TestContractTransferTooLarge
=== RUN   TestContractTransferTooLarge
    transfer_contract_test.go:97: waiting for send_pack: failed to get reader: context deadline exceeded
--- FAIL: TestContractTransferTooLarge (45.24s)

--- FAIL amadan.net/oficina/equipo/internal/thintest (package output)
FAIL
rastrillo-budget/v1 ran 2m8.643s
FAIL	amadan.net/oficina/equipo/internal/thintest	128.992s


receipt: test step 2m11.404s 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 2m8.643s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 45.24s amadan.net/oficina/equipo/internal/thintest TestContractTransferTooLarge
receipt: slow test 9.29s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 5s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.48s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 2.41s amadan.net/oficina/equipo/internal/thintest TestContractPreview
rastrillo: budget test: go test failed
exit status 1
+ go 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)' -v -run '^TestContractTransferTooLarge$' -count=1 ./internal/thintest   (retry, once)
##############################################################################
FLAKE ./internal/thintest:TestContractTransferTooLarge thintest-contract 21c856de31d7d0531d44747ac4137caa818c4180 45.24s 38.09
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 38.09, cpu waiting 22.26%, memory waiting 0.00%, io waiting 0.16%
--- 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 4m40.381s, over the 45s its record on line 44 allows; reported only, timing fails on CI

receipt: test step 4m45.963s 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 4m40.381s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 37.07s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 37s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.81s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 18.47s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 7.16s amadan.net/oficina/equipo/internal/runner/thin TestOpenCodeStepsRealOpenCode
machine: 32 CPUs, load 3.84, cpu waiting 1.77%, 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 51.363s 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 50.233s amadan.net/oficina/equipo/internal/runner
receipt: slow test 30.2s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.02s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 52.09, cpu waiting 34.27%, memory waiting 0.00%, io waiting 0.68%
--- shard 10 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-plans: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner

receipt: test step 1m1.752s 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.192s amadan.net/oficina/equipo/internal/runner
receipt: slow test 50.13s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 43.71s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.44s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 57.61, cpu waiting 38.76%, 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 36.665s 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 35.508s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.13s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.53s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.13s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.73s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestCoordinatorTransientRefusalKeepsServing
machine: 32 CPUs, load 32.22, cpu waiting 23.25%, memory waiting 0.00%, io waiting 0.86%
--- 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 36.9%, load 22.93
test lane equipotest-a: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test[A-D]|^TestQ' ./internal/equipotest
rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/equipotest TestDirectDeadReferencesRepository
=== RUN   TestDirectDeadReferencesRepository
    direct_cutover_test.go:221: repository reference inventory: exit status 1
        internal/runner/provider/runtime_claude.go:104:188: unclassified npm
        internal/runner/provider/runtime_home.go:112:751: unclassified node
        internal/runner/provider/runtime_scrub_test.go:12:136: unclassified npm
        reference scan: 2532 text files, 2849 matches, 3 failures
--- FAIL: TestDirectDeadReferencesRepository (1.88s)

--- FAIL amadan.net/oficina/equipo/internal/equipotest (package output)
FAIL
rastrillo-budget/v1 ran 1m5.461s
FAIL	amadan.net/oficina/equipo/internal/equipotest	65.945s


receipt: test step 1m7.718s 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 1m5.461s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 27.52s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 27.49s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 25.42s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 22.78s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 22.47s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfiguration
exit status 1
+ go test -tags testbuild -timeout 15m -run '^Test[A-D]|^TestQ' -v -run '^TestDirectDeadReferencesRepository$' -count=1 ./internal/equipotest   (retry, once)
FAILED TWICE ./internal/equipotest:TestDirectDeadReferencesRepository equipotest-a
=== RUN   TestDirectDeadReferencesRepository
    direct_cutover_test.go:221: repository reference inventory: exit status 1
        internal/runner/provider/runtime_claude.go:104:188: unclassified npm
        internal/runner/provider/runtime_home.go:112:751: unclassified node
        internal/runner/provider/runtime_scrub_test.go:12:136: unclassified npm
        reference scan: 2532 text files, 2849 matches, 3 failures
--- FAIL: TestDirectDeadReferencesRepository (1.79s)
FAIL
rastrillo-budget/v1 ran 1.79s
FAIL	amadan.net/oficina/equipo/internal/equipotest	2.058s
FAIL
machine: 32 CPUs, load 58.85, cpu waiting 37.15%, memory waiting 0.00%, io waiting 0.29%
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 36.9%, load 22.93
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 1m15.877s 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 1m13.761s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 19.62s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
receipt: slow test 19.59s amadan.net/oficina/equipo/internal/equipotest TestProjectConcurrentRetry
receipt: slow test 19.48s amadan.net/oficina/equipo/internal/equipotest TestProjectOwnersAreMembers
receipt: slow test 19.48s amadan.net/oficina/equipo/internal/equipotest TestProjectsAccountRevisionAndValidation
receipt: slow test 19.46s amadan.net/oficina/equipo/internal/equipotest TestProjectKindsAndDefaultBranch
machine: 32 CPUs, load 54.78, cpu waiting 34.98%, memory waiting 0.00%, io waiting 0.27%
--- 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 36.9%, load 22.93
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

receipt: test step 1m13.503s 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 1m8.336s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 14.47s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 13.37s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 10.31s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 10.27s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 7.17s amadan.net/oficina/equipo/internal/equipotest TestRosterProtectsLastOwner
machine: 32 CPUs, load 58.85, cpu waiting 36.10%, memory waiting 0.00%, io waiting 0.28%
--- 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 36.9%, load 22.93
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 1m8.39s 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 1m6.119s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 24.94s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 24.68s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 24.62s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 22.86s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsRollbackAndUnavailable
receipt: slow test 22.75s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsCurrentOwner
machine: 32 CPUs, load 62.58, cpu waiting 39.33%, memory waiting 0.00%, io waiting 0.31%
--- 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 36.9%, load 22.93
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 54.377s 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 52.086s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.61s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.51s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.74s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.56s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.24s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorMessageSourcesUpgrade
machine: 32 CPUs, load 60.48, cpu waiting 40.11%, memory waiting 0.00%, io waiting 0.39%
--- 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 36.9%, load 22.93
test lane rest: ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./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/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/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./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/testci ./internal/toolproxy ./internal/websource ./internal/wire ./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-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./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/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/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./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/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
cache miss: amadan.net/oficina/equipo/internal/copydesk: its inputs changed
budget note: internal/equipo took 50.402s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/chat took 15.165s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/setup took 11.016s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/idtest took 42.837s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/release took 33.003s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/runner/containment took 1m1.433s, over the 15s its record on line 40 allows; reported only, timing fails on CI
budget note: internal/runner/forge took 24.718s, over the 20s its record on line 35 allows; reported only, timing fails on CI
budget note: internal/runner/provider/pi took 1m22.441s, over the 1m0s its record on line 27 allows; reported only, timing fails on CI
budget note: internal/runner/workspace took 11.413s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 1m58.676s against a 60s target (the gate's other steps are not in this figure)
receipt: 47 packages ran, 14 cached, 18 without tests, 0 failed
receipt: slow package 1m22.441s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 1m10.513s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 1m1.433s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow package 56.56s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 50.402s amadan.net/oficina/equipo/internal/equipo
receipt: slow test 26.24s amadan.net/oficina/equipo/internal/runner/provider/opencode TestOpenCodeAcceptanceHostileRepository
receipt: slow test 26.2s amadan.net/oficina/equipo/internal/runner/containment TestEngineeringOfflineGo
receipt: slow test 24.32s amadan.net/oficina/equipo/cmd/equipo-runner TestReleaseRunnerHasNoFakeWorker
receipt: slow test 15s amadan.net/oficina/equipo/internal/runner/provider/pi TestPiGoBinaryIsolation
receipt: slow test 13.74s amadan.net/oficina/equipo/internal/runner/provider/opencode TestOpenCodeP1OnlyOpenCodeReachable
machine: 32 CPUs, load 28.44, cpu waiting 17.06%, memory waiting 0.00%, io waiting 0.12%
--- 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
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserChat
=== RUN   TestBrowserChat
time=2026-11-21T11:17:36.485Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-21T11:17:36.485Z level=INFO msg="startup phase done" phase=state_lock took=65µs
time=2026-11-21T11:17:36.485Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-21T11:17:36.485Z level=INFO msg="startup phase done" phase=claim_roots took=90µs
time=2026-11-21T11:17:36.485Z level=INFO msg="startup phase" phase=sweep
time=2026-11-21T11:17:36.532Z level=INFO msg="startup phase done" phase=sweep took=46.578ms
time=2026-11-21T11:17:36.532Z level=INFO msg="startup phase" phase=credentials
time=2026-11-21T11:17:36.532Z level=INFO msg="startup phase done" phase=credentials took=101µs
time=2026-11-21T11:17:36.532Z level=INFO msg="startup phase" phase=open_state
time=2026-11-21T11:17:36.593Z level=INFO msg="startup phase done" phase=open_state took=60.586ms
time=2026-11-21T11:17:36.593Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-21T11:17:36.599Z level=INFO msg=connecting host=127.0.0.1:32921 protocol=28
time=2026-11-21T11:17:36.604Z level=INFO msg=connected host=127.0.0.1:32921 took=4.131ms
time=2026-11-21T11:17:36.604Z level=INFO msg="capabilities gathering"
time=2026-11-21T11:17:36.605Z level=INFO msg="capabilities gathered" took=527µs tags=linux,claude,go
time=2026-11-21T11:17:36.606Z level=INFO msg="hello sent" protocol=28
time=2026-11-21T11:17:36.616Z level=INFO msg=welcome protocol=28 role=primary generation=1
time=2026-11-21T11:17:38.975Z level=INFO msg="connection checked" connection=claude-1 state=healthy
    browser_test.go:46: waiting for [...document.querySelectorAll('[equipo-message="incoming"] [equipo-markdown]:not([data-stream-text])')].some(e=>e.textContent.includes('fake coordinator')): context deadline exceeded (last evaluation: context deadline exceeded)
--- FAIL: TestBrowserChat (6.28s)

--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
=== RUN   TestBrowserChatSendStaysOnPage
time=2026-11-21T11:17:42.801Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-21T11:17:42.802Z level=INFO msg="startup phase done" phase=state_lock took=154µs
time=2026-11-21T11:17:42.802Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-21T11:17:42.802Z level=INFO msg="startup phase done" phase=claim_roots took=207µs
time=2026-11-21T11:17:42.802Z level=INFO msg="startup phase" phase=sweep
time=2026-11-21T11:17:42.856Z level=INFO msg="startup phase done" phase=sweep took=54.434ms
time=2026-11-21T11:17:42.857Z level=INFO msg="startup phase" phase=credentials
time=2026-11-21T11:17:42.857Z level=INFO msg="startup phase done" phase=credentials took=207µs
time=2026-11-21T11:17:42.857Z level=INFO msg="startup phase" phase=open_state
time=2026-11-21T11:17:42.935Z level=INFO msg="startup phase done" phase=open_state took=78.208ms
time=2026-11-21T11:17:42.936Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-21T11:17:42.938Z level=INFO msg=connecting host=127.0.0.1:45885 protocol=28
time=2026-11-21T11:17:42.940Z level=INFO msg=connected host=127.0.0.1:45885 took=1.089ms
time=2026-11-21T11:17:42.940Z level=INFO msg="capabilities gathering"
time=2026-11-21T11:17:42.943Z level=INFO msg="capabilities gathered" took=3.766ms tags=linux,claude,go
time=2026-11-21T11:17:42.946Z level=INFO msg="hello sent" protocol=28
time=2026-11-21T11:17:42.951Z level=INFO msg=welcome protocol=28 role=primary generation=1
time=2026-11-21T11:17:44.862Z level=INFO msg="connection checked" connection=claude-1 state=healthy
    browser_test.go:108: waiting for [...document.querySelectorAll('[equipo-message="incoming"] [equipo-markdown]:not([data-stream-text])')].some(e=>e.textContent.includes('fake coordinator')): context deadline exceeded (last evaluation: <nil>)
--- FAIL: TestBrowserChatSendStaysOnPage (6.31s)

--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
=== RUN   TestBrowserDraftIsTheMessage
time=2026-11-21T11:17:49.113Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-21T11:17:49.113Z level=INFO msg="startup phase done" phase=state_lock took=65µs
time=2026-11-21T11:17:49.113Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-21T11:17:49.113Z level=INFO msg="startup phase done" phase=claim_roots took=89µs
time=2026-11-21T11:17:49.113Z level=INFO msg="startup phase" phase=sweep
time=2026-11-21T11:17:49.159Z level=INFO msg="startup phase done" phase=sweep took=46.053ms
time=2026-11-21T11:17:49.159Z level=INFO msg="startup phase" phase=credentials
time=2026-11-21T11:17:49.159Z level=INFO msg="startup phase done" phase=credentials took=175µs
time=2026-11-21T11:17:49.159Z level=INFO msg="startup phase" phase=open_state
time=2026-11-21T11:17:49.225Z level=INFO msg="startup phase done" phase=open_state took=66.189ms
time=2026-11-21T11:17:49.226Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-21T11:17:49.227Z level=INFO msg=connecting host=127.0.0.1:33321 protocol=28
time=2026-11-21T11:17:49.230Z level=INFO msg=connected host=127.0.0.1:33321 took=2.323ms
time=2026-11-21T11:17:49.230Z level=INFO msg="capabilities gathering"
time=2026-11-21T11:17:49.237Z level=INFO msg="capabilities gathered" took=7.495ms tags=linux,claude,go
time=2026-11-21T11:17:49.238Z level=INFO msg="hello sent" protocol=28
time=2026-11-21T11:17:49.247Z level=INFO msg=welcome protocol=28 role=primary generation=1
time=2026-11-21T11:17:51.313Z level=INFO msg="connection checked" connection=claude-1 state=healthy
    browser_thinking_test.go:106: waiting for !!window.__m: context deadline exceeded (last evaluation: context deadline exceeded)
--- FAIL: TestBrowserDraftIsTheMessage (8.20s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 49.771s
FAIL	amadan.net/oficina/equipo/internal/headless	50.168s


receipt: test step 52.254s 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 49.771s amadan.net/oficina/equipo/internal/headless
receipt: slow test 15.5s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 8.2s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 8.13s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 6.31s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
receipt: slow test 6.28s amadan.net/oficina/equipo/internal/headless TestBrowserChat
rastrillo: budget test: go test failed
exit status 1
+ go test -tags browser,testbuild -timeout 15m -run '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$' -v -run '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserDraftIsTheMessage$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserChat browser-headless-chat 21c856de31d7d0531d44747ac4137caa818c4180 6.28s 52.09
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
##############################################################################
FLAKE ./internal/headless:TestBrowserChatSendStaysOnPage browser-headless-chat 21c856de31d7d0531d44747ac4137caa818c4180 6.31s 52.09
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
##############################################################################
FLAKE ./internal/headless:TestBrowserDraftIsTheMessage browser-headless-chat 21c856de31d7d0531d44747ac4137caa818c4180 8.20s 52.09
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 51.35, cpu waiting 32.83%, memory waiting 0.00%, io waiting 0.25%
--- 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
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
=== RUN   TestBrowserRailFollowsWork
time=2026-11-21T11:17:33.197Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-21T11:17:33.197Z level=INFO msg="startup phase done" phase=state_lock took=243µs
time=2026-11-21T11:17:33.197Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-21T11:17:33.197Z level=INFO msg="startup phase done" phase=claim_roots took=161µs
time=2026-11-21T11:17:33.197Z level=INFO msg="startup phase" phase=sweep
time=2026-11-21T11:17:33.226Z level=INFO msg="startup phase done" phase=sweep took=28.524ms
time=2026-11-21T11:17:33.226Z level=INFO msg="startup phase" phase=credentials
time=2026-11-21T11:17:33.226Z level=INFO msg="startup phase done" phase=credentials took=213µs
time=2026-11-21T11:17:33.226Z level=INFO msg="startup phase" phase=open_state
time=2026-11-21T11:17:33.266Z level=INFO msg="startup phase done" phase=open_state took=40.03ms
time=2026-11-21T11:17:33.267Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-21T11:17:33.268Z level=INFO msg=connecting host=127.0.0.1:36047 protocol=28
time=2026-11-21T11:17:33.269Z level=INFO msg=connected host=127.0.0.1:36047 took=990µs
time=2026-11-21T11:17:33.269Z level=INFO msg="capabilities gathering"
time=2026-11-21T11:17:33.270Z level=INFO msg="capabilities gathered" took=1.279ms tags=linux,claude,go
time=2026-11-21T11:17:33.271Z level=INFO msg="hello sent" protocol=28
time=2026-11-21T11:17:33.278Z level=INFO msg=welcome protocol=28 role=primary generation=1
time=2026-11-21T11:17:35.083Z level=INFO msg="connection checked" connection=claude-1 state=healthy
    browser_review_test.go:57: waiting for document.querySelector('#rail [data-specialist="engineering"]')?.dataset.state==='working' && document.querySelector('#rail [data-specialist="engineering"]').querySelector('[equipo-nav-task]')?.textContent==='Slow sidebar change' && document.querySelector('#nav-tasks [data-count]')?.textContent==='1': context deadline exceeded (last evaluation: context deadline exceeded)
time=2026-11-21T11:17:38.566Z level=WARN msg="step account" err="context canceled"
--- FAIL: TestBrowserRailFollowsWork (5.89s)

--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
=== RUN   TestBrowserTaskCard
time=2026-11-21T11:17:39.171Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-21T11:17:39.172Z level=INFO msg="startup phase done" phase=state_lock took=276µs
time=2026-11-21T11:17:39.172Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-21T11:17:39.172Z level=INFO msg="startup phase done" phase=claim_roots took=207µs
time=2026-11-21T11:17:39.172Z level=INFO msg="startup phase" phase=sweep
time=2026-11-21T11:17:39.226Z level=INFO msg="startup phase done" phase=sweep took=54.155ms
time=2026-11-21T11:17:39.226Z level=INFO msg="startup phase" phase=credentials
time=2026-11-21T11:17:39.227Z level=INFO msg="startup phase done" phase=credentials took=283µs
time=2026-11-21T11:17:39.228Z level=INFO msg="startup phase" phase=open_state
time=2026-11-21T11:17:39.288Z level=INFO msg="startup phase done" phase=open_state took=59.451ms
time=2026-11-21T11:17:39.289Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-21T11:17:39.292Z level=INFO msg=connecting host=127.0.0.1:42587 protocol=28
time=2026-11-21T11:17:39.293Z level=INFO msg=connected host=127.0.0.1:42587 took=1.181ms
time=2026-11-21T11:17:39.293Z level=INFO msg="capabilities gathering"
time=2026-11-21T11:17:39.294Z level=INFO msg="capabilities gathered" took=1.097ms tags=linux,claude,go
time=2026-11-21T11:17:39.299Z level=INFO msg="hello sent" protocol=28
time=2026-11-21T11:17:39.305Z level=INFO msg=welcome protocol=28 role=primary generation=1
time=2026-11-21T11:17:41.712Z level=INFO msg="connection checked" connection=claude-1 state=healthy
    browser_tasks_test.go:29: waiting for !![...document.querySelectorAll('[equipo-card="task"]')].find(e=>e.querySelector('[equipo-card-line] a')?.textContent==="Fix the README typo"): context deadline exceeded (last evaluation: context deadline exceeded)
--- FAIL: TestBrowserTaskCard (6.49s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m24.143s
FAIL	amadan.net/oficina/equipo/internal/headless	84.514s


receipt: test step 1m26.503s 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 1m24.143s amadan.net/oficina/equipo/internal/headless
receipt: slow test 33.03s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 15.05s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 13.23s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 6.49s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
receipt: slow test 5.98s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptsDesktop
rastrillo: budget test: go test failed
exit status 1
+ go test -tags browser,testbuild -timeout 15m -run '^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$' -v -run '^TestBrowserRailFollowsWork$|^TestBrowserTaskCard$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserRailFollowsWork browser-headless-work 21c856de31d7d0531d44747ac4137caa818c4180 5.89s 60.48
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
##############################################################################
FLAKE ./internal/headless:TestBrowserTaskCard browser-headless-work 21c856de31d7d0531d44747ac4137caa818c4180 6.49s 60.48
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 44.13, cpu waiting 28.10%, memory waiting 0.00%, io waiting 0.21%
--- 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 1m49.807s 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 1m47.138s amadan.net/oficina/equipo/internal/headless
receipt: slow test 16.48s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 15.79s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 13.09s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 10.9s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
receipt: slow test 10.52s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsOpenCodeGoLimitRequired
machine: 32 CPUs, load 51.35, cpu waiting 32.83%, memory waiting 0.00%, io waiting 0.25%
--- 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|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|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
rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserCopyContinue
=== RUN   TestBrowserCopyContinue
time=2026-11-21T11:17:49.218Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-21T11:17:49.218Z level=INFO msg="startup phase done" phase=state_lock took=310µs
time=2026-11-21T11:17:49.218Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-21T11:17:49.218Z level=INFO msg="startup phase done" phase=claim_roots took=313µs
time=2026-11-21T11:17:49.218Z level=INFO msg="startup phase" phase=sweep
time=2026-11-21T11:17:49.257Z level=INFO msg="startup phase done" phase=sweep took=38.52ms
time=2026-11-21T11:17:49.257Z level=INFO msg="startup phase" phase=credentials
time=2026-11-21T11:17:49.257Z level=INFO msg="startup phase done" phase=credentials took=142µs
time=2026-11-21T11:17:49.257Z level=INFO msg="startup phase" phase=open_state
time=2026-11-21T11:17:49.302Z level=INFO msg="startup phase done" phase=open_state took=44.958ms
time=2026-11-21T11:17:49.303Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-21T11:17:49.304Z level=INFO msg=connecting host=127.0.0.1:42681 protocol=28
time=2026-11-21T11:17:49.306Z level=INFO msg=connected host=127.0.0.1:42681 took=2.145ms
time=2026-11-21T11:17:49.306Z level=INFO msg="capabilities gathering"
time=2026-11-21T11:17:49.307Z level=INFO msg="capabilities gathered" took=540µs tags=linux,claude,go
time=2026-11-21T11:17:49.307Z level=INFO msg="hello sent" protocol=28
time=2026-11-21T11:17:49.313Z level=INFO msg=welcome protocol=28 role=primary generation=1
    browser_copy_test.go:90: waiting for !document.querySelector('[data-copy-continue]'): context deadline exceeded (last evaluation: context deadline exceeded)
--- FAIL: TestBrowserCopyContinue (6.24s)

--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserEmptyExplore
=== RUN   TestBrowserEmptyExplore
time=2026-11-21T11:18:28.813Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-21T11:18:28.813Z level=INFO msg="startup phase done" phase=state_lock took=80µs
time=2026-11-21T11:18:28.813Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-21T11:18:28.813Z level=INFO msg="startup phase done" phase=claim_roots took=88µs
time=2026-11-21T11:18:28.813Z level=INFO msg="startup phase" phase=sweep
time=2026-11-21T11:18:28.842Z level=INFO msg="startup phase done" phase=sweep took=29.686ms
time=2026-11-21T11:18:28.843Z level=INFO msg="startup phase" phase=credentials
time=2026-11-21T11:18:28.843Z level=INFO msg="startup phase done" phase=credentials took=156µs
time=2026-11-21T11:18:28.843Z level=INFO msg="startup phase" phase=open_state
time=2026-11-21T11:18:28.883Z level=INFO msg="startup phase done" phase=open_state took=40.551ms
time=2026-11-21T11:18:28.884Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-21T11:18:28.886Z level=INFO msg=connecting host=127.0.0.1:43499 protocol=28
time=2026-11-21T11:18:28.888Z level=INFO msg=connected host=127.0.0.1:43499 took=2.737ms
time=2026-11-21T11:18:28.889Z level=INFO msg="capabilities gathering"
time=2026-11-21T11:18:28.889Z level=INFO msg="capabilities gathered" took=791µs tags=linux,claude,go
time=2026-11-21T11:18:28.891Z level=INFO msg="hello sent" protocol=28
time=2026-11-21T11:18:28.900Z level=INFO msg=welcome protocol=28 role=primary generation=1
time=2026-11-21T11:18:29.988Z level=INFO msg="connection checked" connection=claude-1 state=healthy
    browser_receipts_test.go:169: waiting for [...document.querySelectorAll('[equipo-markdown]:not([data-stream-text])')].some(e=>e.textContent.includes("I'm your coordinator")): context deadline exceeded (last evaluation: <nil>)
--- FAIL: TestBrowserEmptyExplore (5.84s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m40.354s
FAIL	amadan.net/oficina/equipo/internal/headless	100.697s


receipt: test step 1m42.447s 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 1m40.354s amadan.net/oficina/equipo/internal/headless
receipt: slow test 15.62s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 14.07s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 11.61s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 10.92s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 8.35s amadan.net/oficina/equipo/internal/headless TestBrowserRefreshRace
exit status 1
+ go test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|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$|^TestBrowserEmptyExplore$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserCopyContinue browser-headless-rest 21c856de31d7d0531d44747ac4137caa818c4180 6.24s 58.85
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
##############################################################################
FLAKE ./internal/headless:TestBrowserEmptyExplore browser-headless-rest 21c856de31d7d0531d44747ac4137caa818c4180 5.84s 58.85
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 47.80, cpu waiting 29.83%, memory waiting 0.00%, io waiting 0.23%
--- 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)$' ./internal/equipo

receipt: test step 2.802s 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 751ms amadan.net/oficina/equipo/internal/equipo
receipt: slow test 750ms amadan.net/oficina/equipo/internal/equipo TestBrowserPreviewBlocksNavigation
browser lane browser-rest: ./internal/idtest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserOficinaIDDoor)$' ./internal/idtest

receipt: test step 2.867s 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 1.65s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 1.65s 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 3.287s 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 1.827s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 1.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|TestBrowserAutonomySettings|TestBrowserCoordinatorQueue|TestBrowserEmptyConversation|TestBrowserHousekeeping|TestBrowserInnerGallery|TestBrowserInnerScreens|TestBrowserInstantThinking|TestBrowserInstantThinkingQueued|TestBrowserMachines|TestBrowserPhoneIndex|TestBrowserPlacementQuestionAndPending|TestBrowserProjectPlacement|TestBrowserProjectsList|TestBrowserReportActionFeedback|TestBrowserReportNextSteps|TestBrowserReportThread|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)$' ./internal/thintest

receipt: test step 3m22.768s 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 3m21.166s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 17.89s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.33s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 11.96s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.61s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 8.04s amadan.net/oficina/equipo/internal/thintest TestBrowserInnerScreens
machine: 32 CPUs, load 11.38, cpu waiting 5.88%, memory waiting 0.00%, io waiting 0.03%
--- 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   (61s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 5.33s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.41s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 11.17s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 13.29s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 27.19s
+ 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   (68s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 20.66s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 14.30s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 13.00s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 17.08s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (25s)
ok ./internal/headless TestMixedVersions 22.60s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (2s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.82s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin   (2s)
first attempt failed: TestRunnerCancelAndSupersede; output tail:
=== RUN   TestRunnerCancelAndSupersede
time=2026-11-21T11:17:07.657Z level=INFO msg=connecting host=127.0.0.1:41457 protocol=28
time=2026-11-21T11:17:07.658Z level=INFO msg=connected host=127.0.0.1:41457 took=707µs
time=2026-11-21T11:17:07.659Z level=INFO msg="hello sent" protocol=28
time=2026-11-21T11:17:07.659Z level=INFO msg=welcome protocol=1 role=primary generation=3
    contract_test.go:287: waiting for turn: failed to get reader: failed to read frame header: EOF
time=2026-11-21T11:17:07.663Z level=WARN msg="runner stream" err="failed to get reader: use of closed network connection" retry_in=1.065s
--- FAIL: TestRunnerCancelAndSupersede (0.05s)
FAIL
rastrillo-budget/v1 ran 52ms
FAIL	amadan.net/oficina/equipo/internal/runner/thin	0.075s
FAIL
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' -count=1 ./internal/runner/thin   (retry, once)
##############################################################################
FLAKE ./internal/runner/thin:TestRunnerCancelAndSupersede quarantine 21c856de31d7d0531d44747ac4137caa818c4180 0.05s 10.80
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
quarantine: 1 flaked (passed on the retry), 0 failed
quarantine flake: TestRunnerCancelAndSupersede
machine: 32 CPUs, load 57.96, cpu waiting 39.25%, memory waiting 0.00%, io waiting 0.50%
--- 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 14.312s against a 60s target (the gate's other steps are not in this figure)
receipt: 4 packages ran, 0 cached, 3 without tests, 0 failed
receipt: slow package 8.102s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 219ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 97ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 4ms amadan.net/oficina/equipo/internal/runner/provider/gotoolchain
receipt: slow package 3ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow test 5.78s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.8s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 370ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 220ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 130ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxToolchain
CGO_ENABLED=0 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.064s 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.992s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 290ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 200ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 130ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 100ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicy
receipt: slow test 100ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceOpenCodeBinaryAfterAttestation
machine: 32 CPUs, load 19.07, cpu waiting 12.47%, memory waiting 0.00%, io waiting 1.16%
--- 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 36.9%, load 22.93
shard 25: make runner-dead-references lanes-check build vet fmt-check budget migration-check
python3 scripts/runner-dead-references.py
internal/runner/provider/runtime_claude.go:104:188: unclassified npm
internal/runner/provider/runtime_home.go:112:751: unclassified node
internal/runner/provider/runtime_scrub_test.go:12:136: unclassified npm
reference scan: 2532 text files, 2849 matches, 3 failures
machine: 32 CPUs, load 22.93, cpu waiting 17.64%, memory waiting 0.00%, io waiting 0.95%
make[1]: *** [Makefile:229: runner-dead-references] Error 1
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 36.9%, load 22.93
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 54.96, cpu waiting 36.57%, memory waiting 0.00%, io waiting 0.63%
--- 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 36.9%, load 22.93
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 0 vulnerabilities in packages you import and 5
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 32.22, cpu waiting 23.25%, memory waiting 0.00%, io waiting 0.86%
--- 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 36.9%, load 22.93
shard 28: make gitleaks
11:17AM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
11:17AM INF 1074 commits scanned.
11:17AM INF scanned ~60823639 bytes (60.82 MB) in 23.8s
11:17AM INF no leaks found
machine: 32 CPUs, load 52.09, cpu waiting 35.61%, memory waiting 0.00%, io waiting 0.65%

amadan: job failed at step check shards 12, 25 of 29 — its output is above, not at the tail of this log
diff --git a/.rastrillo/budgets.txt b/.rastrillo/budgets.txt
index f57353e9..6cd7c4e5 100644
--- a/.rastrillo/budgets.txt
+++ b/.rastrillo/budgets.txt
@@ -26,7 +26,7 @@ time internal/runner/provider/claude 45s Task 5 measured 32.430s for fake CLI se
time internal/runner/provider/codex 35s Plan 3 CI repair measured 24.464s for the full package (controller CI 27.908s).
time internal/runner/provider/pi 60s The real pinned Pi in bubblewrap against a fake TensorX: probes P1 to P5 (a hundred RPC turns), the hostile repository, and the pinned tree checked whole (about 160 MB); measured 22s locally.
time internal/runner/provider/opencode 90s The real pinned OpenCode in bubblewrap against a fake Go: probes, the hostile repository per source, termination, resume; the 260 MB binary hashed per launch. Measured 40s.
-size internal/runner/provider 5603 - Fable follow-up: base and diagnostic gates, preview isolation and provenance guards; measured 5603/4363 source/test lines (containment reasons logged).
+size internal/runner/provider 5637 - Fable follow-up: base and diagnostic gates, preview isolation and provenance guards; measured 5637/4467 source/test lines (Claude scrub-mode stubs on token copies).
time internal/plan3test 300s Initial cap for combined browser and runner acceptance; measure at both usable stops.
diff --git a/internal/runner/provider/runtime_claude.go b/internal/runner/provider/runtime_claude.go
index 1ef23a67..743893c7 100644
--- a/internal/runner/provider/runtime_claude.go
+++ b/internal/runner/provider/runtime_claude.go
@@ -23,6 +23,9 @@ var claudeSessionFile = regexp.MustCompile(`^session-env/[0-9a-f]{8}-[0-9a-f]{4}
// do not authorize SSH, config, mod or seed files.
func (l *AccountLease) claudeRuntimeEntry(rel string, info os.FileInfo) (bool, error) {
top := strings.SplitN(rel, "/", 2)[0]
+ if l.source.Token && l.source.Expected.ProviderVersion == ClaudeVersion && (claudeScrubStub[rel] != 0 || top == ".pip") {
+ return true, claudeScrubEntry(rel, info)
+ }
category := ""
switch top {
case ".cc-writes":
@@ -52,7 +55,7 @@ func (l *AccountLease) claudeRuntimeEntry(rel string, info os.FileInfo) (bool, e
return true, accountContainment("runtime_claude_" + category)
}
if rel == ".config/git" || rel == ".config/git/ignore" {
- valid := rel == ".config/git" && info.IsDir() && (info.Mode().Perm() == 0775 || info.Mode().Perm() == 0700) || rel == ".config/git/ignore" && l.claudeGitIgnore(info)
+ valid := rel == ".config/git" && info.IsDir() && claudeStubDir(info.Mode().Perm()) || rel == ".config/git/ignore" && l.claudeGitIgnore(info)
if !valid {
return true, accountContainment("runtime_claude_git_ignore")
}
@@ -93,6 +96,24 @@ func (l *AccountLease) claudeRuntimeEntry(rel string, info os.FileInfo) (bool, e
return true, nil
}
+// 2.1.312 in scrub mode (CLAUDE_CODE_SUBPROCESS_ENV_SCRUB=1, set for
+// token launches only: LaunchSecretEnv) creates these in its home at
+// startup, empty, for its Bash sandbox to cover ("claude-code scrub-mode
+// stubs"; observed with a throwaway home 2026-11-21). Empty is all it
+// writes; content, another kind or a child is refused.
+var claudeScrubStub = map[string]byte{".gitconfig": 'f', ".bash_profile": 'f', ".bashrc": 'f', ".bash_aliases": 'f', ".profile": 'f', ".zshrc": 'f', ".bunfig.toml": 'f', ".netrc": 'f', ".npmrc": 'f', ".yarnrc": 'f', ".yarnrc.yml": 'f', ".pip": 'd', ".config/gh": 'd', ".config/glab-cli": 'd', ".config/pip": 'd'}
+
+func claudeScrubEntry(rel string, info os.FileInfo) error {
+ perm, kind := info.Mode().Perm(), claudeScrubStub[rel]
+ if kind == 'f' && info.Mode().IsRegular() && info.Size() == 0 && (perm == 0600 || perm == 0644 || perm == 0664) || kind == 'd' && info.IsDir() && claudeStubDir(perm) {
+ return nil
+ }
+ return accountContainment("runtime_claude_scrub_stub")
+}
+
+// claudeStubDir is a directory mode the CLI makes under umask 077, 022 or 002.
+func claudeStubDir(perm os.FileMode) bool { return perm == 0700 || perm == 0755 || perm == 0775 }
+
func (l *AccountLease) claudeGitIgnore(info os.FileInfo) bool {
const observed = "**/.claude/.cc-writes/\n"
if !info.Mode().IsRegular() || (info.Mode().Perm() != 0664 && info.Mode().Perm() != 0600) || info.Size() != int64(len(observed)) {
diff --git a/internal/runner/provider/runtime_home.go b/internal/runner/provider/runtime_home.go
index 43ad5b3e..2305e5ea 100644
--- a/internal/runner/provider/runtime_home.go
+++ b/internal/runner/provider/runtime_home.go
@@ -5,6 +5,7 @@ import (
"os"
"path/filepath"
"regexp"
+ "slices"
"strings"
"syscall"
)
@@ -99,12 +100,24 @@ func (l *AccountLease) validateRuntimeEntries() error {
}
}
if filepath.Dir(path) == l.runtime && !allowed[name] && !strings.HasPrefix(name, "state_") && !strings.HasPrefix(name, "logs_") {
- return entryReason("unexpected_entry")
+ return entryReason("unexpected_entry:" + knownEntry(name))
}
return nil
})
}
+// knownEntries are names the pinned CLIs are known to write in a home
+// (2.1.312's own list and its sandbox's protected dotfiles). A refusal
+// names only these: any other name could be text the session chose.
+var knownEntries = strings.Fields(`.claude.json.backup .session_ingress_token ide hfi-auth.json daemon jobs teams usage-data shares state uploads feedback feedback-bundles cache mcp-discovery-cache mcp-needs-auth-cache.json gh-pr-status-cache.json local antproto.json ccr bridge-spawn active-time.json loop.md server-sessions.json image-cache file-transfers mcp-skill-archives computer-use.lock server.lock api-dumps chrome local-settings project-settings remote remote-control scratch storage-v2 systemd agent-memory cowork_plugins dump-prompts traces startup-perf keybindings.json .gitmodules .zprofile .zshenv .zlogin .zlogout .bash_login .bash_logout .envrc .ripgreprc .git-credentials .pypirc .pgpass .bash_history .zsh_history .python_history .node_repl_history`)
+
+func knownEntry(name string) string {
+ if slices.Contains(knownEntries, name) || claudeScrubStub[name] != 0 {
+ return name
+ }
+ return "unlisted"
+}
+
// These are startup state in the staged home, never source-home inputs.
func codexRuntimeState(name string) bool {
switch name {
diff --git a/internal/runner/provider/runtime_scrub_test.go b/internal/runner/provider/runtime_scrub_test.go
new file mode 100644
index 00000000..53eb9cec
--- /dev/null
+++ b/internal/runner/provider/runtime_scrub_test.go
@@ -0,0 +1,104 @@
+package provider
+
+import (
+ "context"
+ "errors"
+ "os"
+ "path/filepath"
+ "strings"
+ "testing"
+)
+
+var scrubFiles = []string{".gitconfig", ".bash_profile", ".bashrc", ".bash_aliases", ".profile", ".zshrc", ".bunfig.toml", ".netrc", ".npmrc", ".yarnrc", ".yarnrc.yml"}
+
+// scrubStubs makes what the pinned CLI makes in its home at startup in
+// scrub mode (a throwaway home, 2026-11-21): empty files and directories.
+func scrubStubs(t *testing.T, home string, file, dir os.FileMode) {
+ t.Helper()
+ for _, name := range []string{".pip", ".config", ".config/gh", ".config/glab-cli", ".config/git", ".config/pip"} {
+ if err := os.MkdirAll(filepath.Join(home, name), dir); err != nil || os.Chmod(filepath.Join(home, name), dir) != nil {
+ t.Fatal(err)
+ }
+ }
+ for _, name := range scrubFiles {
+ writeFake(t, filepath.Join(home, name), "")
+ if err := os.Chmod(filepath.Join(home, name), file); err != nil {
+ t.Fatal(err)
+ }
+ }
+}
+
+// Production 2026-11-21: a token connection's second turn on one
+// process was refused, runtime_claude_unexpected_entry. A token launch
+// sets CLAUDE_CODE_SUBPROCESS_ENV_SCRUB=1, and in that mode the pinned
+// CLI stubs these out for its Bash sandbox after the copy's first check.
+func TestTokenCopyAllowsScrubStubs(t *testing.T) {
+ for _, m := range [][2]os.FileMode{{0644, 0755}, {0664, 0775}, {0600, 0700}} {
+ l := openTokenCopy(t, tokenFixture(t))
+ scrubStubs(t, l.Binding().Home, m[0], m[1])
+ if err := l.CheckCopy(context.Background()); err != nil {
+ t.Fatalf("modes %o/%o: %v", m[0], m[1], err)
+ }
+ }
+}
+
+// Only those names, empty, of that kind, on a token copy pass; the
+// refusal names an entry only when it is one the CLI is known to write.
+func TestScrubStubsOtherwiseRefused(t *testing.T) {
+ for _, tc := range []struct{ name, want string }{
+ {"content", "runtime_claude_scrub_stub"}, {"directory", "runtime_claude_scrub_stub"},
+ {"exec", "runtime_claude_scrub_stub"}, {"wide", "runtime_claude_scrub_stub"},
+ {"link", "runtime_claude_special_entry"}, {"hardlink", "runtime_claude_metadata"},
+ {"pip-child", "runtime_claude_scrub_stub"}, {"gh-child", "runtime_claude_config"},
+ {"envrc", "runtime_claude_unexpected_entry:.envrc"}, {"unlisted", "runtime_claude_unexpected_entry:unlisted"},
+ {"login", "runtime_claude_unexpected_entry:.bash_aliases"},
+ } {
+ t.Run(tc.name, func(t *testing.T) {
+ var l *AccountLease
+ if tc.name == "login" {
+ l = claudeRuntimeFixture(t)
+ } else {
+ l = openTokenCopy(t, tokenFixture(t))
+ }
+ home := l.Binding().Home
+ scrubStubs(t, home, 0644, 0755)
+ bashrc := filepath.Join(home, ".bashrc")
+ var err error
+ switch tc.name {
+ case "content":
+ err = os.WriteFile(bashrc, []byte("x"), 0644)
+ case "directory":
+ if err = os.Remove(bashrc); err == nil {
+ err = os.Mkdir(bashrc, 0755)
+ }
+ case "exec":
+ err = os.Chmod(bashrc, 0755)
+ case "wide":
+ err = os.Chmod(bashrc, 0666)
+ case "link":
+ if err = os.Remove(bashrc); err == nil {
+ err = os.Symlink("/dev/null", bashrc)
+ }
+ case "hardlink":
+ if err = os.Remove(filepath.Join(home, ".netrc")); err == nil {
+ err = os.Link(bashrc, filepath.Join(home, ".netrc"))
+ }
+ case "pip-child":
+ err = os.WriteFile(filepath.Join(home, ".pip", "pip.conf"), nil, 0644)
+ case "gh-child":
+ err = os.WriteFile(filepath.Join(home, ".config", "gh", "hosts.yml"), nil, 0644)
+ case "envrc":
+ err = os.WriteFile(filepath.Join(home, ".envrc"), nil, 0644)
+ case "unlisted":
+ err = os.WriteFile(filepath.Join(home, ".secret-sentinel"), nil, 0644)
+ }
+ if err != nil {
+ t.Fatal(err)
+ }
+ err = l.validateRuntimeEntries()
+ if !errors.Is(err, ErrContainment) || ContainmentReason(err) != tc.want || strings.Contains(err.Error(), "secret-sentinel") {
+ t.Fatalf("want %s: %v", tc.want, err)
+ }
+ })
+ }
+}