oficina / equipo Public

Protect agent read logs and preserve task source limits

Silence SQL logging within delegated reads and membership checks. Carry the source cap through task visibility filtering so omitted work cannot be reported as a complete list. Add regressions and record restored guard mutations.
Co-Authored-By: Codex GPT-6-Astra <noreply@openai.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 2a4024dc20592ca47a967bd6a75fc246a5f4b5b1 parent 1c01456
7 files changed, +206 −10
  • .rastrillo/budgets.txt +2 −2
  • docs/api/agent-access.md +3 −1
  • docs/superpowers/plans/2026-11-20-equipo-agent-access-evidence.md +73 −0
  • internal/equipo/agent_access.go +5 −4
  • internal/equipo/agent_access_test.go +99 −0
  • internal/equipo/chat/store.go +14 −1
  • internal/equipo/chat/tasks.go +10 −2

CI passed — 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/agent-access__read-only: 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: claude: fetched and verified in 1.7s
ci-box: codex: fetched and verified in 3.5s
ci-box: codex-code-mode-host: fetched and verified in 1.3s
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 10.0s
ci-box: pi: installed and verified in 7.5s
ci-box: opencode: installed and verified in 2.2s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 8.7s
ci-box: clone deepened in 3.3s
ci-box: file times set from content: 2807 files, 184 directories
ci-box: ready in 16.9s
=== 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.251s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  3.6s
+ go list -export -test -tags testbuild -f  ./...
  3.6s
+ go list -export -test -tags browser,testbuild -f  ./internal/equipo ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
  3.0s
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 1m30.775s 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.126s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m29.13s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 62.26, cpu waiting 36.45%, memory waiting 0.00%, io waiting 0.45%
--- 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 1m32.104s 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 1m30.629s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m30.63s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 62.26, cpu waiting 36.14%, memory waiting 0.00%, io waiting 0.44%
--- 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 1m33.742s 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 1m32.19s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m20.71s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 6.26s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 5.22s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 62.26, cpu waiting 35.75%, memory waiting 0.00%, io waiting 0.42%
--- 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 1m28.912s 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 1m27.31s amadan.net/oficina/equipo/internal/headless
receipt: slow test 44.59s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 22.05s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 10.8s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
receipt: slow test 9.87s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
machine: 32 CPUs, load 63.68, cpu waiting 36.60%, memory waiting 0.00%, io waiting 0.47%
--- 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 1m47.67s 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 1m45.884s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m7.58s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 12.29s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 10.65s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 9.14s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 6.22s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 52.25, cpu waiting 30.08%, memory waiting 0.00%, io waiting 0.35%
--- 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 3m19.028s 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 3m17.354s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m54.78s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 24.43s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 11.71s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 8.21s amadan.net/oficina/equipo/internal/headless TestHeadlessClaudeSignIn
receipt: slow test 7.43s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
machine: 32 CPUs, load 14.47, cpu waiting 6.57%, memory waiting 0.00%, io waiting 0.06%
--- 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 2m1.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 2m0.03s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 7.86s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.72s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 4.57s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 3.77s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 2.5s amadan.net/oficina/equipo/internal/thintest TestResearchDoneFallsBack
machine: 32 CPUs, load 42.13, cpu waiting 23.91%, memory waiting 0.00%, io waiting 0.27%
--- 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 1m23.648s 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 1m22.057s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.03s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 5.03s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.41s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 2.37s amadan.net/oficina/equipo/internal/thintest TestContractPublishNameTaken
receipt: slow test 2.34s amadan.net/oficina/equipo/internal/thintest TestContractPreview
machine: 32 CPUs, load 65.74, cpu waiting 36.28%, memory waiting 0.00%, io waiting 0.52%
--- 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
cache miss: amadan.net/oficina/equipo/internal/runner/thin: its inputs changed
budget note: internal/runner/thin took 4m36.736s, over the 45s its record on line 44 allows; reported only, timing fails on CI

receipt: test step 4m49.697s 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 4m36.736s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 36.99s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.94s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 36.8s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 18.49s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 6.89s amadan.net/oficina/equipo/internal/runner/thin TestOpenCodeStepsRealOpenCode
machine: 32 CPUs, load 3.78, cpu waiting 1.46%, memory waiting 0.00%, io waiting 0.01%
--- 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
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed

receipt: test step 50.57s 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.454s amadan.net/oficina/equipo/internal/runner
receipt: slow test 29.42s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.03s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 59.16, cpu waiting 30.94%, memory waiting 0.00%, io waiting 0.89%
--- 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
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed

receipt: test step 57.828s 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 55.9s amadan.net/oficina/equipo/internal/runner
receipt: slow test 45.85s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 41.18s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.39s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.64s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 59.55, cpu waiting 32.85%, memory waiting 0.00%, io waiting 0.81%
--- 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
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed

receipt: test step 35.502s 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 34.639s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.12s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.18s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.13s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.66s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestReportPostsRetryExactRequest
machine: 32 CPUs, load 43.07, cpu waiting 19.23%, memory waiting 0.00%, io waiting 1.17%
--- 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.4%, load 29.68
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

receipt: test step 1m6.822s 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 1m4.839s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 27.18s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 27.04s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 24.98s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 22.24s amadan.net/oficina/equipo/internal/equipotest TestAuthorityFailureIsNotRevocation
receipt: slow test 22.21s amadan.net/oficina/equipo/internal/equipotest TestAuthorityUsesLiveRoster
machine: 32 CPUs, load 59.44, cpu waiting 35.10%, memory waiting 0.00%, io waiting 0.41%
--- 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.4%, load 35.07
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 1m14.454s 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.616s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 18.84s amadan.net/oficina/equipo/internal/equipotest TestProjectOwnersAreMembers
receipt: slow test 18.82s amadan.net/oficina/equipo/internal/equipotest TestProjectRequestActorAndUpdate
receipt: slow test 18.81s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
receipt: slow test 18.71s amadan.net/oficina/equipo/internal/equipotest TestProjectsAccountRevisionAndValidation
receipt: slow test 18.7s amadan.net/oficina/equipo/internal/equipotest TestProjectBindingUniqueness
machine: 32 CPUs, load 56.36, cpu waiting 31.06%, memory waiting 0.00%, io waiting 0.36%
--- 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.3%, load 35.07
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 1m12.475s 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 1m7.456s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 15.24s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 13.26s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 10.29s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 10.26s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 7.15s amadan.net/oficina/equipo/internal/equipotest TestRosterBootstrapOnce
machine: 32 CPUs, load 56.36, cpu waiting 32.08%, memory waiting 0.00%, io waiting 0.37%
--- 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.4%, load 35.07
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 1m7.256s 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 1m5.282s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 24.97s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 23.84s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 23.82s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 22.08s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsUpgrade
receipt: slow test 21.91s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsConcurrentRevision
machine: 32 CPUs, load 59.44, cpu waiting 35.10%, memory waiting 0.00%, io waiting 0.41%
--- 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.4%, load 35.07
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 53.277s 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 51.134s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.62s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.55s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.63s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.42s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.3s amadan.net/oficina/equipo/internal/plan3test TestPlanMigrationUpgrade
machine: 32 CPUs, load 65.74, cpu waiting 36.28%, memory waiting 0.00%, io waiting 0.52%
--- 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.4%, load 35.07
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
cache miss: amadan.net/oficina/equipo/internal/equipo/team: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/forge: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/opencode: 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
cache miss: amadan.net/oficina/equipo/internal/testci: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/checks: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/containment: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/pi: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/wire/wireschema: its inputs changed
budget note: internal/equipo took 44.375s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/chat took 11.582s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/idtest took 41.098s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/release took 19.39s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/runner/containment took 48.283s, over the 15s its record on line 40 allows; reported only, timing fails on CI

receipt: test step 2m29.303s against a 60s target (the gate's other steps are not in this figure)
receipt: 21 packages ran, 40 cached, 18 without tests, 0 failed
receipt: slow package 1m5.132s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 52.756s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 51.343s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 48.283s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow package 44.375s amadan.net/oficina/equipo/internal/equipo
receipt: slow test 26.76s amadan.net/oficina/equipo/internal/runner/provider/opencode TestOpenCodeAcceptanceHostileRepository
receipt: slow test 21.3s amadan.net/oficina/equipo/internal/runner/containment TestEngineeringOfflineGo
receipt: slow test 14.56s amadan.net/oficina/equipo/cmd/equipo-runner TestReleaseRunnerHasNoFakeWorker
receipt: slow test 11.45s amadan.net/oficina/equipo/internal/idtest TestIDCallbackGuardAndPendingNonce
receipt: slow test 10.48s amadan.net/oficina/equipo/internal/runner/containment TestEngineeringMissingModuleCache
machine: 32 CPUs, load 18.01, cpu waiting 9.17%, memory waiting 0.00%, io waiting 0.10%
--- 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
rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserChat
=== RUN   TestBrowserChat
time=2026-11-20T20:39:13.807Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-20T20:39:13.807Z level=INFO msg="startup phase done" phase=state_lock took=69µs
time=2026-11-20T20:39:13.807Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-20T20:39:13.808Z level=INFO msg="startup phase done" phase=claim_roots took=85µs
time=2026-11-20T20:39:13.808Z level=INFO msg="startup phase" phase=sweep
time=2026-11-20T20:39:13.848Z level=INFO msg="startup phase done" phase=sweep took=39.989ms
time=2026-11-20T20:39:13.848Z level=INFO msg="startup phase" phase=credentials
time=2026-11-20T20:39:13.848Z level=INFO msg="startup phase done" phase=credentials took=100µs
time=2026-11-20T20:39:13.848Z level=INFO msg="startup phase" phase=open_state
time=2026-11-20T20:39:13.901Z level=INFO msg="startup phase done" phase=open_state took=53.561ms
time=2026-11-20T20:39:13.902Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-20T20:39:13.903Z level=INFO msg=connecting host=127.0.0.1:46475 protocol=28
time=2026-11-20T20:39:13.905Z level=INFO msg=connected host=127.0.0.1:46475 took=1.639ms
time=2026-11-20T20:39:13.905Z level=INFO msg="capabilities gathering"
time=2026-11-20T20:39:13.906Z level=INFO msg="capabilities gathered" took=1.008ms tags=linux,claude,go
time=2026-11-20T20:39:13.906Z level=INFO msg="hello sent" protocol=28
time=2026-11-20T20:39:13.911Z level=INFO msg=welcome protocol=28 role=primary generation=1
time=2026-11-20T20:39:16.110Z 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.11s)

--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
=== RUN   TestBrowserChatSendStaysOnPage
time=2026-11-20T20:39:19.975Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-20T20:39:19.975Z level=INFO msg="startup phase done" phase=state_lock took=176µs
time=2026-11-20T20:39:19.975Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-20T20:39:19.975Z level=INFO msg="startup phase done" phase=claim_roots took=152µs
time=2026-11-20T20:39:19.975Z level=INFO msg="startup phase" phase=sweep
time=2026-11-20T20:39:20.013Z level=INFO msg="startup phase done" phase=sweep took=37.131ms
time=2026-11-20T20:39:20.013Z level=INFO msg="startup phase" phase=credentials
time=2026-11-20T20:39:20.013Z level=INFO msg="startup phase done" phase=credentials took=149µs
time=2026-11-20T20:39:20.013Z level=INFO msg="startup phase" phase=open_state
time=2026-11-20T20:39:20.063Z level=INFO msg="startup phase done" phase=open_state took=50.425ms
time=2026-11-20T20:39:20.064Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-20T20:39:20.065Z level=INFO msg=connecting host=127.0.0.1:33087 protocol=28
time=2026-11-20T20:39:20.067Z level=INFO msg=connected host=127.0.0.1:33087 took=1.899ms
time=2026-11-20T20:39:20.067Z level=INFO msg="capabilities gathering"
time=2026-11-20T20:39:20.067Z level=INFO msg="capabilities gathered" took=401µs tags=linux,claude,go
time=2026-11-20T20:39:20.068Z level=INFO msg="hello sent" protocol=28
time=2026-11-20T20:39:20.074Z level=INFO msg=welcome protocol=28 role=primary generation=1
time=2026-11-20T20:39:22.191Z 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: context deadline exceeded)
--- FAIL: TestBrowserChatSendStaysOnPage (6.33s)

--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
=== RUN   TestBrowserDraftIsTheMessage
time=2026-11-20T20:39:26.295Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-20T20:39:26.295Z level=INFO msg="startup phase done" phase=state_lock took=260µs
time=2026-11-20T20:39:26.295Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-20T20:39:26.295Z level=INFO msg="startup phase done" phase=claim_roots took=188µs
time=2026-11-20T20:39:26.295Z level=INFO msg="startup phase" phase=sweep
time=2026-11-20T20:39:26.326Z level=INFO msg="startup phase done" phase=sweep took=30.799ms
time=2026-11-20T20:39:26.326Z level=INFO msg="startup phase" phase=credentials
time=2026-11-20T20:39:26.327Z level=INFO msg="startup phase done" phase=credentials took=220µs
time=2026-11-20T20:39:26.327Z level=INFO msg="startup phase" phase=open_state
time=2026-11-20T20:39:26.374Z level=INFO msg="startup phase done" phase=open_state took=47.278ms
time=2026-11-20T20:39:26.374Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-20T20:39:26.375Z level=INFO msg=connecting host=127.0.0.1:41279 protocol=28
time=2026-11-20T20:39:26.377Z level=INFO msg=connected host=127.0.0.1:41279 took=2.203ms
time=2026-11-20T20:39:26.377Z level=INFO msg="capabilities gathering"
time=2026-11-20T20:39:26.379Z level=INFO msg="capabilities gathered" took=1.1ms tags=linux,claude,go
time=2026-11-20T20:39:26.379Z level=INFO msg="hello sent" protocol=28
time=2026-11-20T20:39:26.383Z level=INFO msg=welcome protocol=28 role=primary generation=1
time=2026-11-20T20:39:28.569Z 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.24s)

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


receipt: test step 50.607s 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.209s amadan.net/oficina/equipo/internal/headless
receipt: slow test 15.53s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 8.24s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 8s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 6.33s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
receipt: slow test 6.11s amadan.net/oficina/equipo/internal/headless TestBrowserChat
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 2a4024dc20592ca47a967bd6a75fc246a5f4b5b1 6.11s 59.16
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
##############################################################################
FLAKE ./internal/headless:TestBrowserChatSendStaysOnPage browser-headless-chat 2a4024dc20592ca47a967bd6a75fc246a5f4b5b1 6.33s 59.16
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
##############################################################################
FLAKE ./internal/headless:TestBrowserDraftIsTheMessage browser-headless-chat 2a4024dc20592ca47a967bd6a75fc246a5f4b5b1 8.24s 59.16
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 52.25, cpu waiting 29.13%, memory waiting 0.00%, io waiting 0.33%
--- 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 1m43.947s 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 1m42.265s amadan.net/oficina/equipo/internal/headless
receipt: slow test 31.75s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 25.28s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 15.09s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 10.47s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 9.49s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
machine: 32 CPUs, load 56.36, cpu waiting 31.06%, memory waiting 0.00%, io waiting 0.36%
--- 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 1m47.662s 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 1m45.971s amadan.net/oficina/equipo/internal/headless
receipt: slow test 17.45s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 14.32s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 13.12s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 10.86s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
receipt: slow test 10.55s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsOpenCodeGoLimitRequired
machine: 32 CPUs, load 52.25, cpu waiting 30.08%, memory waiting 0.00%, io waiting 0.35%
--- 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 TestBrowserThinkingAndCards
=== RUN   TestBrowserThinkingAndCards
time=2026-11-20T20:38:46.420Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-20T20:38:46.420Z level=INFO msg="startup phase done" phase=state_lock took=65µs
time=2026-11-20T20:38:46.420Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-20T20:38:46.421Z level=INFO msg="startup phase done" phase=claim_roots took=87µs
time=2026-11-20T20:38:46.421Z level=INFO msg="startup phase" phase=sweep
time=2026-11-20T20:38:46.451Z level=INFO msg="startup phase done" phase=sweep took=29.964ms
time=2026-11-20T20:38:46.451Z level=INFO msg="startup phase" phase=credentials
time=2026-11-20T20:38:46.451Z level=INFO msg="startup phase done" phase=credentials took=106µs
time=2026-11-20T20:38:46.451Z level=INFO msg="startup phase" phase=open_state
time=2026-11-20T20:38:46.492Z level=INFO msg="startup phase done" phase=open_state took=41.256ms
time=2026-11-20T20:38:46.493Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-20T20:38:46.494Z level=INFO msg=connecting host=127.0.0.1:40447 protocol=28
time=2026-11-20T20:38:46.496Z level=INFO msg=connected host=127.0.0.1:40447 took=2.455ms
time=2026-11-20T20:38:46.496Z level=INFO msg="capabilities gathering"
time=2026-11-20T20:38:46.497Z level=INFO msg="capabilities gathered" took=461µs tags=linux,claude,go
time=2026-11-20T20:38:46.497Z level=INFO msg="hello sent" protocol=28
time=2026-11-20T20:38:46.503Z level=INFO msg=welcome protocol=28 role=primary generation=1
time=2026-11-20T20:38:47.690Z level=INFO msg="connection checked" connection=claude-1 state=healthy
    browser_cards_test.go:66: waiting for (()=>{const l=document.querySelector('[equipo-thinking] [equipo-activity]');return !!l && l.textContent==='Adding oficina/sample…'})(): context deadline exceeded (last evaluation: context deadline exceeded)
--- FAIL: TestBrowserThinkingAndCards (6.85s)

--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserEmptyExplore
=== RUN   TestBrowserEmptyExplore
time=2026-11-20T20:39:51.633Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-20T20:39:51.634Z level=INFO msg="startup phase done" phase=state_lock took=139µs
time=2026-11-20T20:39:51.634Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-20T20:39:51.634Z level=INFO msg="startup phase done" phase=claim_roots took=114µs
time=2026-11-20T20:39:51.634Z level=INFO msg="startup phase" phase=sweep
time=2026-11-20T20:39:51.676Z level=INFO msg="startup phase done" phase=sweep took=41.882ms
time=2026-11-20T20:39:51.676Z level=INFO msg="startup phase" phase=credentials
time=2026-11-20T20:39:51.676Z level=INFO msg="startup phase done" phase=credentials took=218µs
time=2026-11-20T20:39:51.676Z level=INFO msg="startup phase" phase=open_state
time=2026-11-20T20:39:51.723Z level=INFO msg="startup phase done" phase=open_state took=46.495ms
time=2026-11-20T20:39:51.723Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-20T20:39:51.724Z level=INFO msg=connecting host=127.0.0.1:34887 protocol=28
time=2026-11-20T20:39:51.727Z level=INFO msg=connected host=127.0.0.1:34887 took=2.989ms
time=2026-11-20T20:39:51.727Z level=INFO msg="capabilities gathering"
time=2026-11-20T20:39:51.733Z level=INFO msg="capabilities gathered" took=5.701ms tags=linux,claude,go
time=2026-11-20T20:39:51.739Z level=INFO msg="hello sent" protocol=28
time=2026-11-20T20:39:51.749Z level=INFO msg=welcome protocol=28 role=primary generation=1
time=2026-11-20T20:39:53.060Z 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: context deadline exceeded)
--- FAIL: TestBrowserEmptyExplore (6.02s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m26.759s
FAIL	amadan.net/oficina/equipo/internal/headless	87.061s


receipt: test step 1m28.144s 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 1m26.759s amadan.net/oficina/equipo/internal/headless
receipt: slow test 12.78s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 11.47s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 10.58s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 8.46s amadan.net/oficina/equipo/internal/headless TestBrowserNotebookLook
receipt: slow test 8.33s 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 '^TestBrowserEmptyExplore$|^TestBrowserThinkingAndCards$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserEmptyExplore browser-headless-rest 2a4024dc20592ca47a967bd6a75fc246a5f4b5b1 6.02s 63.68
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
##############################################################################
FLAKE ./internal/headless:TestBrowserThinkingAndCards browser-headless-rest 2a4024dc20592ca47a967bd6a75fc246a5f4b5b1 6.85s 63.68
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 48.70, cpu waiting 27.25%, memory waiting 0.00%, io waiting 0.31%
--- 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 1.932s 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 617ms amadan.net/oficina/equipo/internal/equipo
receipt: slow test 620ms 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.972s 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.661s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 1.66s 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.383s 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.863s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 1.86s 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 3m21.294s 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 3m19.673s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 17.45s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.33s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.6s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 8.22s amadan.net/oficina/equipo/internal/thintest TestBrowserInnerScreens
machine: 32 CPUs, load 11.83, cpu waiting 5.38%, memory waiting 0.00%, io waiting 0.05%
--- 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   (58s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 5.49s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.58s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 11.04s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 11.44s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 26.69s
+ 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.77s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 23.17s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 12.63s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 15.86s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (24s)
ok ./internal/headless TestMixedVersions 22.33s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (1s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.76s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin   (0s)
ok ./internal/runner/thin TestRunnerCancelAndSupersede 0.06s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 66.58, cpu waiting 35.40%, memory waiting 0.00%, io waiting 0.64%
--- 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 11.058s 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 7.52s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 185ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 76ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 1ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow package 0s amadan.net/oficina/equipo/internal/runner/provider/gotoolchain
receipt: slow test 5.29s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.72s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 410ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 180ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 80ms amadan.net/oficina/equipo/internal/runner/provider/codex TestDirectJournalAdapterBarrier
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 3.506s 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.001s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 270ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 210ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
receipt: slow test 100ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryMalformedRecord
machine: 32 CPUs, load 21.91, cpu waiting 7.83%, memory waiting 0.00%, io waiting 1.64%
--- 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.4%, load 35.07
shard 25: make runner-dead-references lanes-check build vet fmt-check budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 2520 text files, 2846 matches, 0 failures
python3 scripts/ci-test.py check
lanes: 18 lanes and 5 browser lanes run every test once; 20-check@29
CGO_ENABLED=0 go build ./...
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o /dev/null ./cmd/equipo-runner
go vet ./...
go vet -tags testbuild ./internal/runner/thin ./internal/headless
GOOS=darwin GOARCH=arm64 go vet ./cmd/equipo-runner/... ./internal/runner/... ./internal/wire/... ./internal/release/...
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget size
budget size: 88 directories within budget
CGO_ENABLED=0 go test ./internal/equipo -run '^TestMigrationModels$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipo	2.511s
machine: 32 CPUs, load 67.33, cpu waiting 34.81%, memory waiting 0.00%, io waiting 0.68%
--- 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.4%, load 29.68
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 52.12, cpu waiting 26.95%, memory waiting 0.00%, io waiting 0.99%
--- 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.3%, load 35.07
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 43.07, cpu waiting 22.36%, memory waiting 0.00%, io waiting 1.09%
--- 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.4%, load 29.68
shard 28: make gitleaks
8:39PM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
8:39PM INF 1067 commits scanned.
8:39PM INF scanned ~60683156 bytes (60.68 MB) in 19.6s
8:39PM INF no leaks found
machine: 32 CPUs, load 52.12, cpu waiting 29.72%, memory waiting 0.00%, io waiting 0.92%
=== perf ===
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -require TestPerfScreens,TestPerfBoot -tags perf -count=1 -p 1 -parallel 1 -run '^TestPerf' ./...
perf: GET /: median 1.024ms, worst 1.058ms, budget 150ms
perf: GET /api/runner/protocol: median 80µs, worst 119µs, budget 150ms
perf: GET /api/v1/account-setups/{id}: median 596µs, worst 622µs, budget 150ms
perf: GET /api/v1/accounts: median 409µs, worst 422µs, budget 150ms
perf: GET /api/v1/auth/devices: median 441µs, worst 555µs, budget 150ms
perf: GET /api/v1/budgets: median 483µs, worst 504µs, budget 150ms
perf: GET /api/v1/capabilities: median 234µs, worst 263µs, budget 150ms
perf: GET /api/v1/cards/{id}: median 1.226ms, worst 1.296ms, budget 150ms
perf: GET /api/v1/connections: median 568µs, worst 633µs, budget 150ms
perf: GET /api/v1/connections/{id}: median 536µs, worst 568µs, budget 150ms
perf: GET /api/v1/conversation: median 973µs, worst 1.01ms, budget 150ms
perf: GET /api/v1/conversation/cards: median 1.378ms, worst 1.495ms, budget 150ms
perf: GET /api/v1/coordinator: median 1.703ms, worst 1.751ms, budget 150ms
perf: GET /api/v1/invites/{id}: median 439µs, worst 472µs, budget 150ms
perf: GET /api/v1/journey: median 7.442ms, worst 7.689ms, budget 150ms
perf: GET /api/v1/me: median 428µs, worst 448µs, budget 150ms
perf: GET /api/v1/me/settings: median 500µs, worst 565µs, budget 150ms
perf: GET /api/v1/needs-you: median 7.199ms, worst 7.361ms, budget 150ms
perf: GET /api/v1/notifications: median 1.633ms, worst 1.756ms, budget 150ms
perf: GET /api/v1/onboarding: median 398µs, worst 422µs, budget 150ms
perf: GET /api/v1/people: median 442µs, worst 465µs, budget 150ms
perf: GET /api/v1/playbooks: median 567µs, worst 599µs, budget 150ms
perf: GET /api/v1/playbooks/{id}: median 524µs, worst 559µs, budget 150ms
perf: GET /api/v1/playbooks/{id}/template-diff: median 867µs, worst 928µs, budget 150ms
perf: GET /api/v1/preferences: median 809µs, worst 829µs, budget 150ms
perf: GET /api/v1/projects/{id}: median 468µs, worst 504µs, budget 150ms
perf: GET /api/v1/projects/{id}/settings: median 603µs, worst 641µs, budget 150ms
perf: GET /api/v1/roster: median 480µs, worst 558µs, budget 150ms
perf: GET /api/v1/runners/{id}: median 431µs, worst 483µs, budget 150ms
perf: GET /api/v1/specialists: median 8.262ms, worst 8.407ms, budget 150ms
perf: GET /api/v1/specialists/{id}: median 8.071ms, worst 8.228ms, budget 150ms
perf: GET /api/v1/specialists/{id}/template-diff: median 878µs, worst 960µs, budget 150ms
perf: GET /api/v1/tasks/{id}/plan: median 1.141ms, worst 1.24ms, budget 150ms
perf: GET /api/v1/tasks/{id}/thread: median 737µs, worst 821µs, budget 150ms
perf: GET /api/v1/teams: median 446µs, worst 502µs, budget 150ms
perf: GET /api/v1/templates: median 614µs, worst 647µs, budget 150ms
perf: GET /api/v1/templates/{id}: median 459µs, worst 486µs, budget 150ms
perf: GET /auth/callback: median 98µs, worst 123µs, budget 150ms
perf: GET /auth/devices/{id}: median 3.283ms, worst 4.785ms, budget 150ms
perf: GET /auth/verify: median 77µs, worst 89µs, budget 150ms
perf: GET /connections: median 3.634ms, worst 3.759ms, budget 150ms
perf: GET /conversation: median 7.342ms, worst 7.434ms, budget 150ms
perf: GET /conversation/connections: median 239µs, worst 261µs, budget 150ms
perf: GET /conversation/notebook: median 242µs, worst 272µs, budget 150ms
perf: GET /conversation/settings: median 3.838ms, worst 3.869ms, budget 150ms
perf: GET /conversation/settings/autonomy: median 3.475ms, worst 3.574ms, budget 150ms
perf: GET /conversation/settings/connections: median 6.143ms, worst 6.222ms, budget 150ms
perf: GET /conversation/settings/connections/add: median 6.336ms, worst 6.458ms, budget 150ms
perf: GET /conversation/settings/copy: median 3.577ms, worst 7.276ms, budget 150ms
perf: GET /conversation/settings/housekeeping: median 4.108ms, worst 4.207ms, budget 150ms
perf: GET /conversation/settings/machines: median 4.346ms, worst 4.416ms, budget 150ms
perf: GET /conversation/settings/machines/add: median 4.298ms, worst 4.44ms, budget 150ms
perf: GET /conversation/settings/notebook: median 3.285ms, worst 3.458ms, budget 150ms
perf: GET /conversation/settings/thinking: median 3.78ms, worst 3.88ms, budget 150ms
perf: GET /housekeeping: median 3.589ms, worst 3.661ms, budget 150ms
perf: GET /invites/new: median 576µs, worst 636µs, budget 150ms
perf: GET /invites/{id}: median 605µs, worst 643µs, budget 150ms
perf: GET /jobs: median 3.167ms, worst 3.265ms, budget 150ms
perf: GET /jobs/{id}: median 4.312ms, worst 4.48ms, budget 150ms
perf: GET /journey: median 10.257ms, worst 13.187ms, budget 150ms
perf: GET /nav/rail: median 2.91ms, worst 2.972ms, budget 150ms
perf: GET /needs-you: median 9.911ms, worst 9.966ms, budget 150ms
perf: GET /onboarding: median 3.839ms, worst 3.918ms, budget 150ms
perf: GET /people: median 3.264ms, worst 3.302ms, budget 150ms
perf: GET /playbook-suggestions/{suggestion}: median 5.085ms, worst 5.152ms, budget 150ms
perf: GET /playbooks: median 4.519ms, worst 4.651ms, budget 150ms
perf: GET /playbooks/new: median 4.69ms, worst 4.727ms, budget 150ms
perf: GET /playbooks/{id}: median 4.402ms, worst 4.547ms, budget 150ms
perf: GET /playbooks/{id}/edit: median 4.57ms, worst 4.7ms, budget 150ms
perf: GET /playbooks/{id}/template-diff: median 3.744ms, worst 5.493ms, budget 150ms
perf: GET /preferences: median 4.121ms, worst 4.209ms, budget 150ms
perf: GET /preferences/sources/{source}: median 3.827ms, worst 3.965ms, budget 150ms
perf: GET /projects: median 5.055ms, worst 5.283ms, budget 150ms
perf: GET /projects/accounts: median 3.482ms, worst 3.519ms, budget 150ms
perf: GET /projects/new: median 3.44ms, worst 3.558ms, budget 150ms
perf: GET /projects/{id}: median 9.995ms, worst 10.095ms, budget 150ms
perf: GET /projects/{id}/edit: median 3.538ms, worst 3.679ms, budget 150ms
perf: GET /runners/enrol: median 4.197ms, worst 4.273ms, budget 150ms
perf: GET /settings: median 3.323ms, worst 3.366ms, budget 150ms
perf: GET /settings/coordinator: median 5.414ms, worst 8.322ms, budget 150ms
perf: GET /settings/devices: median 3.163ms, worst 3.303ms, budget 150ms
perf: GET /settings/recovery: median 3.308ms, worst 3.381ms, budget 150ms
perf: GET /settings/recovery/release: median 3.288ms, worst 3.451ms, budget 150ms
perf: GET /settings/thinking: median 249µs, worst 268µs, budget 150ms
perf: GET /signin: median 317µs, worst 334µs, budget 150ms
perf: GET /specialists/new: median 3.267ms, worst 3.298ms, budget 150ms
perf: GET /specialists/{key}: median 10.429ms, worst 10.595ms, budget 150ms
perf: GET /specialists/{key}/edit: median 3.47ms, worst 3.541ms, budget 150ms
perf: GET /specialists/{key}/template-diff: median 3.569ms, worst 3.642ms, budget 150ms
perf: GET /tasks: median 4.92ms, worst 5.04ms, budget 150ms
perf: GET /tasks/new: median 3.061ms, worst 3.208ms, budget 150ms
perf: GET /tasks/{id}: median 5.442ms, worst 5.7ms, budget 150ms
perf: GET /tasks/{id}/merge: median 4.754ms, worst 4.909ms, budget 150ms
perf: GET /tasks/{id}/move: median 4.537ms, worst 4.566ms, budget 150ms
perf: GET /tasks/{id}/plan: median 5.541ms, worst 5.767ms, budget 150ms
perf: GET /tasks/{id}/preview: median 1.517ms, worst 1.581ms, budget 150ms
perf: GET /tasks/{id}/questions/{question}: median 5.03ms, worst 5.106ms, budget 150ms
perf: GET /tasks/{id}/rendered-change: median 4.647ms, worst 4.677ms, budget 150ms
perf: GET /tasks/{id}/rendered-change/{hash}.png: median 4.194ms, worst 4.324ms, budget 150ms
perf: GET /tasks/{id}/thread: median 7.629ms, worst 7.814ms, budget 150ms
perf: GET /team/{specialist}: median 4.309ms, worst 6.854ms, budget 150ms
perf: GET /teams: median 9.816ms, worst 10.29ms, budget 150ms
perf: GET /templates: median 3.318ms, worst 3.446ms, budget 150ms
perf: GET /usage: median 4.058ms, worst 4.239ms, budget 150ms
perf: GET /work: median 2.966ms, worst 3.015ms, budget 150ms
perf: cold boot: median 261ms of [259.351467ms 261.296729ms 264.65589ms], budget 500ms

receipt: test step 39.107s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 84 without tests, 0 failed
receipt: slow package 8.78s amadan.net/oficina/equipo/internal/equipotest
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo-runner
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo-tool-proxy
receipt: slow package 0s amadan.net/oficina/equipo/internal/advice
receipt: slow package 0s amadan.net/oficina/equipo/internal/attach
receipt: slow test 7.93s amadan.net/oficina/equipo/internal/equipotest TestPerfScreens
receipt: slow test 850ms amadan.net/oficina/equipo/internal/equipotest TestPerfBoot
=== cache ===
ci-box: build cache /home/ci/work/repos/oficina__equipo/cache/go-build: 3.49 GiB in 22856 files
ci-box: module cache /home/ci/work/repos/oficina__equipo/cache/go-mod: 0.87 GiB in 28256 files
diff --git a/.rastrillo/budgets.txt b/.rastrillo/budgets.txt
index 7a123cd2..4bd2aa83 100644
--- a/.rastrillo/budgets.txt
+++ b/.rastrillo/budgets.txt
@@ -14,7 +14,7 @@ perf GET /* skip Unknown private paths render 404; this fallback contains no scr
time internal/equipo/team 60s Plan 3 loaded CI measured 45.985s; niced serial reruns measured 18.079s and 22.031s. Keep migration, recovery, accounting and concurrency assertions; 60s leaves 30 percent headroom above loaded CI.
time internal/equipotest 300s Final fix package rerun measured 187.035s (review 172.4s); 300s gives 60 percent headroom for HTTP, sandbox, authority and final regression coverage.
-size internal/equipo 21829 - Read-only agent registry, Home identity and roster rechecks, and routing beside the native identity wiring; measured 21829 source lines with rastrillo budget size.
+size internal/equipo 21830 - Read-only agent registry and identity checks, with private read context and source-cap propagation; measured 21830 source lines with rastrillo budget size.
size internal/wire 6771 - Native slice 2 push registrations and set aside, and the instance origin in Live Activity attributes; measured 6771/2972 source/test lines.
size internal/equipotest - 12013 Task 21 repairs historical migration and conversation fixtures after Plan 3; measured 0/12013 source/test lines.
time internal/runner/checks 90s CI worker measured 44.553s (44.6s rounded);
@@ -56,7 +56,7 @@ perf GET /api/v1/tasks/{id} skip Thin v1 person API: bearer-only JSON for device
perf GET /api/v1/assistant/snapshot skip Assistant person API: bearer-only JSON for Base's chat, not a browser screen.
perf GET /api/v1/assistant/messages skip Assistant person API: bearer-only JSON for Base's chat, not a browser screen.
perf GET /api/v1/assistant/events skip Assistant event stream (Server-Sent Events), bearer-only and long-lived; not a screen.
-size internal/equipo/chat 32022 - Merge main carried messages with native push and activity review fixes, and start pushes naming the instance origin; measured 32022/6905 source/test lines.
+size internal/equipo/chat 32043 - Native push and activity reads plus per-request private SQL logging and task source-cap reporting before visibility filtering; measured 32043 source lines with rastrillo budget size.
perf GET /api/v1/questions/{id} skip Thin v1 person API: bearer-only JSON for devices; the browser reads questions on /tasks/{id}.
perf GET /api/v1/steps/{id}/log skip Thin v1 person API: bearer-only JSON for devices; the browser shows the log tail on /tasks/{id}.
perf GET /api/v1/connections/preference skip Connections slice 1 person API: bearer-only JSON for devices; the browser shows the preference on /conversation/connections.
diff --git a/docs/api/agent-access.md b/docs/api/agent-access.md
index 1a5f684a..c95e12c8 100644
--- a/docs/api/agent-access.md
+++ b/docs/api/agent-access.md
@@ -92,7 +92,9 @@ Lists preserve the existing device ordering. Each response contains at
most 100 items, and invocation output is capped at 1 MiB. Oversized output
returns `too_large` with no partial data. `truncated` is conservative:
it is true when the requested limit cuts a list or completeness cannot be
-established. Task listing already reads at most the latest 100 tasks.
+established. Task listing reads at most the latest 100 tasks and preserves
+that source cap before hiding other test people's tasks. If the source hits
+100, `truncated` stays true even when fewer visible items are returned.
Needs you already scans at most 100 recent nonterminal tasks before
filtering, so its `truncated` is always true, including an empty result.
An empty result is not proof that there is no older work waiting. There is
diff --git a/docs/superpowers/plans/2026-11-20-equipo-agent-access-evidence.md b/docs/superpowers/plans/2026-11-20-equipo-agent-access-evidence.md
index d38bf28c..a60cc57c 100644
--- a/docs/superpowers/plans/2026-11-20-equipo-agent-access-evidence.md
+++ b/docs/superpowers/plans/2026-11-20-equipo-agent-access-evidence.md
@@ -396,3 +396,76 @@ Every Go check above used `GOTOOLCHAIN=go1.26.11 CGO_ENABLED=0`.
No Codex provider file changed. The final commit is scanned after committing
and pushed with the same ephemeral-token helper; the controller report in the
conversation gives the exact SHA and completed Linux CI verdict.
+
+
+## Astra review fixes, 2026-11-20
+
+Review of `1c014568` requested two P2 fixes: person addresses in SQL logs
+and a filtered task list incorrectly claiming completeness.
+
+Added regressions before changing implementation. The log-capture test uses
+GORM's Info logger, confirms a control query logs the address, then forces
+real missing-table query errors in Needs you, the initial membership lookup,
+and the membership recheck inside the read. Each endpoint returns 503. Before
+the fix all three cases failed because the log contained `owner@example.com`.
+The test also checks that an agent read does not disable the shared logger.
+
+The task regression inserts 100 visible tasks and one newer hidden test-person
+task. After correcting its initial fixture to include the required project,
+it reproduced 99 returned tasks, the oldest visible task omitted, and
+`truncated:false`. It now requires `truncated:true`, and verifies a source
+below 100 returns all visible tasks with `truncated:false`.
+
+Implementation keeps all existing authority checks. Agent preparation uses a
+silent GORM session, and `chat.WithPrivateReads` applies the same suppression
+inside each agent read transaction, including membership checks. This avoids
+logging both interpolated parameters and database error text. It does not
+change the shared database logger. `Chat.TasksWithSourceCap` carries the source
+cap before the existing visibility filter; `Chat.Tasks` delegates to that same
+path for the device API. Agent results use the source flag and requested limit.
+No runtime copy or accepted inventory entries changed.
+
+Commands use `GOTOOLCHAIN=go1.26.11 CGO_ENABLED=0`.
+
+- Before implementation, `go test ./internal/equipo -run
+ 'TestAgent(ReadsDoNotLogPerson|TasksFilteredSourceCap)$' -count=1` failed
+ on the three address assertions. The corrected task fixture then failed
+ with `older visible task omitted but list claims completeness`.
+- After implementation and the shared-logger/below-cap assertions, the same
+ regression command passed (4.268s).
+- Mutation: replace preparation's `logger.Discard` with the shared logger.
+ `go test ./internal/equipo -run
+ TestAgentReadsDoNotLogPerson/membership -count=1` failed on the address
+ assertion. Restored.
+- Mutation: replace the chat read's `logger.Discard` with the shared logger.
+ `go test ./internal/equipo -run
+ TestAgentReadsDoNotLogPerson/needs-you -count=1` failed on the address
+ assertion, including the failed creator query. Restored.
+- Mutation: force the source cap flag to false.
+ `go test ./internal/equipo -run TestAgentTasksFilteredSourceCap -count=1`
+ failed on the completeness assertion. Restored.
+
+All three mutations failed behavioral assertions, not compilation. The
+mutation runner restored each file in a `finally` block.
+
+### Review-fix gates
+
+| Command | Result |
+| --- | --- |
+| `go test ./internal/equipo ./internal/equipo/chat ./internal/equipo/oficinaid ./internal/equipo/personapi -count=1` | PASS, 26.666s / 5.513s / 4.169s / 0.314s |
+| `go test ./internal/plan3test -run 'TestPersonAPI\|TestPlan3ReleaseBoundaries' -count=1` | PASS, 11.451s |
+| `make fmt-check` | PASS, pinned Go 1.26.11 gofmt |
+| `make gitleaks` | PASS, 1066 commits, no leaks |
+| `make budget` | Initial FAIL measured 21830 Equipo and 32043 chat source lines; raised existing entries only to those measured values with reasons, then PASS, 88 directories |
+| `make migration-check` | PASS, 1.328s |
+| `make copy-release-check` | PASS, 0.600s |
+| `make lanes-check` | PASS, 18 normal and 5 browser lanes |
+| `python3 scripts/copy-status.py verify` | PASS, version 1, valid true |
+| `go vet ./internal/equipo ./internal/equipo/chat ./internal/equipo/oficinaid ./internal/equipo/personapi` | PASS |
+| `go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 ./internal/equipo ./internal/equipo/chat ./internal/equipo/oficinaid ./internal/equipo/personapi` | PASS |
+| `git diff --check` | PASS |
+
+The existing macOS limitations on whole-repository runner/toolproxy checks
+remain; Linux CI is the final gate. After committing, run the committed-file
+reference scan, push with the ephemeral-token helper, and await CI. The final
+controller report records that exact SHA and verdict.
diff --git a/internal/equipo/agent_access.go b/internal/equipo/agent_access.go
index 3de913ea..248e9934 100644
--- a/internal/equipo/agent_access.go
+++ b/internal/equipo/agent_access.go
@@ -15,10 +15,10 @@ import (
"amadan.net/oficina/equipo/internal/equipo/chat"
"amadan.net/oficina/equipo/internal/equipo/oficinaid"
"amadan.net/oficina/equipo/internal/equipo/personapi"
- "amadan.net/oficina/equipo/internal/wire"
"amadan.net/oficina/home/connect"
"github.com/sqids/sqids-go"
"gorm.io/gorm"
+ "gorm.io/gorm/logger"
"gorm.io/plugin/dbresolver"
)
@@ -86,7 +86,7 @@ func (id agentIdentity) current(ctx context.Context, tx *gorm.DB) error {
func (a *equipoAgent) prepare(ctx context.Context, p access.Principal) (context.Context, string, error) {
var address string
var epoch int64
- err := a.store.db.G.WithContext(ctx).Clauses(dbresolver.Write).Transaction(func(tx *gorm.DB) error {
+ err := a.store.db.G.Session(&gorm.Session{Logger: logger.Discard}).WithContext(ctx).Clauses(dbresolver.Write).Transaction(func(tx *gorm.DB) error {
_, v, e := a.home.Links.ResolveOn(ctx, tx.Statement.ConnPool, a.home.Config.Issuer, p.Subject)
if e != nil {
return ErrForbidden
@@ -177,14 +177,15 @@ func (a *equipoAgent) registry() (*access.Registry, error) {
return access.NewRegistry(ops...)
}
func (a *equipoAgent) read(ctx context.Context, person, name string, in agentInput) (any, error) {
+ ctx = chat.WithPrivateReads(ctx)
c := a.store.Chat()
switch name {
case "equipo_projects_list":
v, e := c.Projects(ctx, person)
return agentBound(v.Items, in.Limit, false), e
case "equipo_tasks_list":
- v, e := c.Tasks(ctx, person)
- return agentBound(v.Items, in.Limit, len(v.Items) >= wire.MaxTaskList), e
+ v, capped, e := c.TasksWithSourceCap(ctx, person)
+ return agentBound(v.Items, in.Limit, capped), e
case "equipo_needs_you":
v, e := c.NeedsYou(ctx, person)
return agentBound(v.Items, in.Limit, true), e
diff --git a/internal/equipo/agent_access_test.go b/internal/equipo/agent_access_test.go
index dbab63b6..290c62f1 100644
--- a/internal/equipo/agent_access_test.go
+++ b/internal/equipo/agent_access_test.go
@@ -6,7 +6,9 @@ import (
"encoding/base64"
"encoding/json"
"errors"
+ "fmt"
"io"
+ "log"
"log/slog"
"net/http"
"net/http/httptest"
@@ -20,6 +22,8 @@ import (
"amadan.net/rastrillo/rastrillo/db"
"amadan.net/rastrillo/rastrillo/dbtest"
"github.com/sqids/sqids-go"
+ "gorm.io/gorm"
+ "gorm.io/gorm/logger"
)
func agentEnv(t *testing.T) map[string]string {
@@ -465,3 +469,98 @@ func TestAgentDisabledAndDirectConfig(t *testing.T) {
t.Fatal("disabled agent route replaced existing API", w.Code, w.Header(), w.Body)
}
}
+
+func TestAgentReadsDoNotLogPerson(t *testing.T) {
+ for _, failure := range []string{"needs-you", "membership", "read-membership"} {
+ t.Run(failure, func(t *testing.T) {
+ s, cfg, home := agentFixture(t)
+ var logs bytes.Buffer
+ s.db.G = s.db.G.Session(&gorm.Session{Logger: logger.New(log.New(&logs, "", 0), logger.Config{LogLevel: logger.Info})})
+ var n int64
+ if err := s.db.G.Raw("SELECT count(*) FROM members WHERE address = ?", cfg.Owners[0]).Scan(&n).Error; err != nil {
+ t.Fatal(err)
+ }
+ if !strings.Contains(logs.String(), cfg.Owners[0]) {
+ t.Fatal("SQL capture did not include the control query's address")
+ }
+ logs.Reset()
+ if failure == "needs-you" {
+ if _, err := s.db.Writer().Exec("DROP TABLE chat_tasks"); err != nil {
+ t.Fatal(err)
+ }
+ } else {
+ calls := 0
+ if err := s.db.G.Callback().Query().Before("gorm:query").Register("agent_test_missing_members", func(tx *gorm.DB) {
+ if tx.Statement.Table == "members" {
+ calls++
+ if failure == "membership" || calls == 3 {
+ tx.Statement.Table = "missing_members"
+ }
+ }
+ }); err != nil {
+ t.Fatal(err)
+ }
+ }
+ p := access.Principal{Subject: "pr_aaaaaaaaaaaaaaaaaaaaaaaaaa", Grant: "grant", Teams: []string{cfg.AgentTeam}, Scopes: []string{"equipo:read"}}
+ h, err := newEquipoAgent(s, cfg, home, access.VerifyFunc(func(context.Context, string) (access.Principal, error) { return p, nil }))
+ if err != nil {
+ t.Fatal(err)
+ }
+ w := agentRequest(h, "POST", "/api/v1/operations/equipo_needs_you", `{"team":"`+cfg.AgentTeam+`"}`, "valid")
+ if w.Code != 503 {
+ t.Fatalf("query failure: %d %s", w.Code, w.Body)
+ }
+ if strings.Contains(logs.String(), cfg.Owners[0]) {
+ t.Fatalf("person reached SQL logs: %s", &logs)
+ }
+ if err := s.db.G.Raw("SELECT count(*) FROM members WHERE address = ?", cfg.Owners[0]).Scan(&n).Error; err != nil {
+ t.Fatal(err)
+ }
+ if !strings.Contains(logs.String(), cfg.Owners[0]) {
+ t.Fatal("agent read changed the shared database logger")
+ }
+ })
+ }
+}
+
+func TestAgentTasksFilteredSourceCap(t *testing.T) {
+ s, cfg, home := agentFixture(t)
+ s.chatTestPeople = []string{"@test.example"}
+ if _, err := s.db.Writer().Exec(`INSERT INTO chat_projects(id,repo,title,state,revision) VALUES('project','amadan.net/oficina/example','Example','active',1)`); err != nil {
+ t.Fatal(err)
+ }
+ for i := 0; i < 101; i++ {
+ creator := cfg.Owners[0]
+ if i == 100 {
+ creator = "hidden@test.example"
+ }
+ if _, err := s.db.Writer().Exec(`INSERT INTO chat_tasks(id,project_id,title,creator,stage,revision,created_at) VALUES(?,'project',?,?,'done',1,?)`, fmt.Sprintf("task-%03d", i), "Task", creator, fmt.Sprintf("2026-11-20 00:%02d:%02d", i/60, i%60)); err != nil {
+ t.Fatal(err)
+ }
+ }
+ p := access.Principal{Subject: "pr_aaaaaaaaaaaaaaaaaaaaaaaaaa", Grant: "grant", Teams: []string{cfg.AgentTeam}, Scopes: []string{"equipo:read"}}
+ h, err := newEquipoAgent(s, cfg, home, access.VerifyFunc(func(context.Context, string) (access.Principal, error) { return p, nil }))
+ if err != nil {
+ t.Fatal(err)
+ }
+ w := agentRequest(h, "POST", "/api/v1/operations/equipo_tasks_list", `{"team":"`+cfg.AgentTeam+`"}`, "valid")
+ var page agentPage[struct {
+ ID string `json:"id"`
+ }]
+ if w.Code != 200 || json.Unmarshal(w.Body.Bytes(), &page) != nil {
+ t.Fatal(w.Code, w.Body)
+ }
+ if len(page.Items) != 99 || page.Items[0].ID != "task-099" || page.Items[98].ID != "task-001" {
+ t.Fatal("expected 99 visible tasks from the capped source", w.Body)
+ }
+ if !page.Truncated {
+ t.Fatal("older visible task omitted but list claims completeness")
+ }
+ if _, err := s.db.Writer().Exec("DELETE FROM chat_tasks WHERE id IN ('task-100','task-099')"); err != nil {
+ t.Fatal(err)
+ }
+ w = agentRequest(h, "POST", "/api/v1/operations/equipo_tasks_list", `{"team":"`+cfg.AgentTeam+`"}`, "valid")
+ if w.Code != 200 || json.Unmarshal(w.Body.Bytes(), &page) != nil || len(page.Items) != 99 || page.Truncated || page.Items[98].ID != "task-000" {
+ t.Fatal("source below cap should be complete", w.Code, w.Body)
+ }
+}
diff --git a/internal/equipo/chat/store.go b/internal/equipo/chat/store.go
index 542092d5..8f07bb13 100644
--- a/internal/equipo/chat/store.go
+++ b/internal/equipo/chat/store.go
@@ -21,6 +21,7 @@ import (
"amadan.net/oficina/equipo/internal/wire"
"amadan.net/rastrillo/rastrillo/db"
"gorm.io/gorm"
+ "gorm.io/gorm/logger"
"gorm.io/plugin/dbresolver"
)
@@ -179,8 +180,20 @@ func (s *Store) tx(ctx context.Context, fn func(*txn) error) error {
return nil
}
+type privateReadsKey struct{}
+
+// WithPrivateReads keeps SQL, including parameters and database error text,
+// out of logs for delegated reads. It does not change read authority.
+func WithPrivateReads(ctx context.Context) context.Context {
+ return context.WithValue(ctx, privateReadsKey{}, true)
+}
+
func (s *Store) read(ctx context.Context, fn func(*gorm.DB) error) error {
- return s.db.G.WithContext(ctx).Clauses(dbresolver.Write).Transaction(fn)
+ g := s.db.G.WithContext(ctx)
+ if private, _ := ctx.Value(privateReadsKey{}).(bool); private {
+ g = g.Session(&gorm.Session{Logger: logger.Discard})
+ }
+ return g.Clauses(dbresolver.Write).Transaction(fn)
}
type txn struct {
diff --git a/internal/equipo/chat/tasks.go b/internal/equipo/chat/tasks.go
index 887f700c..f36a2358 100644
--- a/internal/equipo/chat/tasks.go
+++ b/internal/equipo/chat/tasks.go
@@ -1825,7 +1825,14 @@ func (t *txn) syncSteps(l Lease, held []wire.StepRun) error {
func itoa64(n int64) string { raw, _ := json.Marshal(n); return string(raw) }
// Tasks lists the team's tasks, newest first.
-func (s *Store) Tasks(ctx context.Context, person string) (out wire.TaskList, err error) {
+func (s *Store) Tasks(ctx context.Context, person string) (wire.TaskList, error) {
+ out, _, err := s.TasksWithSourceCap(ctx, person)
+ return out, err
+}
+
+// TasksWithSourceCap also reports whether the source reached its cap before
+// visibility filtering. A shorter visible list need not be complete.
+func (s *Store) TasksWithSourceCap(ctx context.Context, person string) (out wire.TaskList, capped bool, err error) {
err = s.read(ctx, func(tx *gorm.DB) error {
if err := s.authority.CurrentPerson(ctx, tx); err != nil {
return err
@@ -1834,13 +1841,14 @@ func (s *Store) Tasks(ctx context.Context, person string) (out wire.TaskList, er
if err != nil {
return err
}
+ capped = len(out.Items) >= wire.MaxTaskList
// A test person's tasks are listed to itself only.
if hide := s.authority.TestPerson; hide != nil {
out.Items = slices.DeleteFunc(out.Items, func(k wire.Task) bool { return k.Creator != person && hide(k.Creator) })
}
return nil
})
- return out, err
+ return out, capped, err
}
func (t *txn) recentTasks(limit int) ([]wire.Task, error) {