oficina / equipo Public

Bind connect catch-up to the connection in one transaction

Re-review of 21d60b2f. The lane-read catch-up checked the connection
and settled the card in separate transactions, so a paused read could
settle a card raised after a disconnect on stale evidence.

SettleConnectSince reads the person's current Oficina connection inside
the settling transaction and settles only the open cards raised by the
time it was last saved; with no connection it settles nothing. The
finish path and the catch-up both use it. A test pause between the
catch-up's look and its settlement drives the interleaving (settle A,
disconnect, raise B): B stays open with no turn or grant. Another test
leaves open a card raised after the connection was saved.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev cdcc07f38bcbcde93f7acdd55245735b1a0f9928 parent 21d60b2
5 files changed, +125 −11
  • .rastrillo/budgets.txt +3 −3
  • internal/equipo/chat/connect.go +25 −0
  • internal/equipo/oficina_connect.go +23 −7
  • internal/equipo/store.go +3 −1
  • internal/thintest/assistant_oficina_resume_contract_test.go +71 −0

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/assistant-resume-after-connect: 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 2.6s
ci-box: codex: fetched and verified in 3.4s
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 9.9s
ci-box: pi: installed and verified in 7.6s
ci-box: opencode: installed and verified in 2.1s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 8.8s
ci-box: clone deepened in 4.1s
ci-box: file times set from content: 2668 files, 172 directories
ci-box: ready in 17.6s
=== 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.241s
=== 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.5s
+ go list -export -test -tags browser,testbuild -f  ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
  2.7s
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 1m25.603s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m24.031s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m24.03s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 53.46, cpu waiting 34.17%, memory waiting 0.00%, io waiting 0.73%
--- 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 1m28.574s 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 1m26.871s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m26.87s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 53.46, cpu waiting 34.07%, memory waiting 0.00%, io waiting 0.71%
--- 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 1m29.34s 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.641s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m16.4s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 6.01s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 5.22s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 53.46, cpu waiting 33.87%, memory waiting 0.00%, io waiting 0.68%
--- 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 1m24.926s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m23.087s amadan.net/oficina/equipo/internal/headless
receipt: slow test 41.92s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 21.24s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 10.44s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
receipt: slow test 9.49s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
machine: 32 CPUs, load 53.58, cpu waiting 34.11%, memory waiting 0.00%, io waiting 0.76%
--- 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 1m42.455s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m40.81s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m4.33s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 11.7s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 10.02s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 8.83s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 5.92s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 46.15, cpu waiting 29.71%, memory waiting 0.00%, io waiting 0.56%
--- 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 3m18.768s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 3m17.083s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m50.84s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 23.56s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 20.25s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 7.98s amadan.net/oficina/equipo/internal/headless TestHeadlessClaudeSignIn
receipt: slow test 7.27s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
machine: 32 CPUs, load 12.55, cpu waiting 6.10%, memory waiting 0.00%, io waiting 0.10%
--- 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 2m2.247s 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.827s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 7.73s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.7s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 4.47s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 3.57s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 2.46s amadan.net/oficina/equipo/internal/thintest TestResearchDoneFallsBack
machine: 32 CPUs, load 34.58, cpu waiting 20.81%, memory waiting 0.00%, io waiting 0.38%
--- 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 1m11.417s 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 1m9.686s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 6.89s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 3.77s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 2.34s amadan.net/oficina/equipo/internal/thintest TestContractPreview
receipt: slow test 2.11s amadan.net/oficina/equipo/internal/thintest TestContractHostedBindingRules
receipt: slow test 1.79s amadan.net/oficina/equipo/internal/thintest TestContractSignInCode
machine: 32 CPUs, load 53.57, cpu waiting 32.77%, memory waiting 0.00%, io waiting 0.93%
--- 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 4m22.214s, over the 45s its record on line 44 allows; reported only, timing fails on CI

receipt: test step 4m34.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 4m22.214s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 36.8s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 36.76s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.62s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 18.37s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 6.87s amadan.net/oficina/equipo/internal/runner/thin TestOpenCodeStepsRealOpenCode
machine: 32 CPUs, load 4.00, cpu waiting 1.71%, memory waiting 0.00%, io waiting 0.02%
--- 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 49.681s 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 48.554s amadan.net/oficina/equipo/internal/runner
receipt: slow test 28.52s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.03s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 49.45, cpu waiting 28.98%, memory waiting 0.00%, io waiting 1.34%
--- 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 55.956s 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 53.955s amadan.net/oficina/equipo/internal/runner
receipt: slow test 43.9s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 39.66s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.39s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.65s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 51.17, cpu waiting 31.01%, memory waiting 0.00%, io waiting 1.21%
--- 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.219s 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.241s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.12s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.2s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.12s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.39s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.62s amadan.net/oficina/equipo/internal/runner TestCoordinatorTransientRefusalKeepsServing
machine: 32 CPUs, load 28.75, cpu waiting 19.05%, memory waiting 0.00%, io waiting 1.70%
--- 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 34.5%, load 23.42
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 1m5.112s 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 1m3.316s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 26.24s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 26.16s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 24.05s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 21.67s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 21.62s amadan.net/oficina/equipo/internal/equipotest TestAuthorityProjectOwnershipIsLocal
machine: 32 CPUs, load 51.82, cpu waiting 33.20%, memory waiting 0.00%, io waiting 0.64%
--- 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 34.5%, load 28.75
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 1m12.859s 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 1m10.918s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 18.43s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
receipt: slow test 18.42s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
receipt: slow test 18.36s amadan.net/oficina/equipo/internal/equipotest TestProjectRetryAndRevision
receipt: slow test 18.31s amadan.net/oficina/equipo/internal/equipotest TestProjectConcurrentRetry
receipt: slow test 18.28s amadan.net/oficina/equipo/internal/equipotest TestProjectsAccountRevisionAndValidation
machine: 32 CPUs, load 46.15, cpu waiting 28.80%, memory waiting 0.00%, io waiting 0.54%
--- 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 34.5%, load 23.42
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 1m10.767s 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.965s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 15.13s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 12.81s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 9.8s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 9.73s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 6.78s amadan.net/oficina/equipo/internal/equipotest TestRosterBootstrapOnce
machine: 32 CPUs, load 46.15, cpu waiting 29.71%, memory waiting 0.00%, io waiting 0.56%
--- 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 34.5%, load 23.42
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 1m6.147s 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.39s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 23.82s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 23.08s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 23.05s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 21.25s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsUpgrade
receipt: slow test 21.22s amadan.net/oficina/equipo/internal/equipotest TestSigninBackgroundSweep
machine: 32 CPUs, load 48.95, cpu waiting 32.41%, memory waiting 0.00%, io waiting 0.62%
--- 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 34.5%, load 23.42
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 50.846s 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.025s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.48s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.45s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.52s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.49s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.19s amadan.net/oficina/equipo/internal/plan3test TestInviteMigration
machine: 32 CPUs, load 53.29, cpu waiting 33.40%, memory waiting 0.00%, io waiting 0.81%
--- 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 34.5%, load 23.42
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/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/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./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/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/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./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/provider: 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
budget note: internal/equipo took 17.643s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/idtest took 37.375s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/runner/containment took 46.687s, over the 15s its record on line 40 allows; reported only, timing fails on CI

receipt: test step 2m28.17s against a 60s target (the gate's other steps are not in this figure)
receipt: 20 packages ran, 38 cached, 18 without tests, 0 failed
receipt: slow package 1m3.151s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 52.801s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 47.47s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 46.687s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow package 37.375s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 26.13s amadan.net/oficina/equipo/internal/runner/provider/opencode TestOpenCodeAcceptanceHostileRepository
receipt: slow test 19.34s amadan.net/oficina/equipo/internal/runner/containment TestEngineeringOfflineGo
receipt: slow test 12.72s amadan.net/oficina/equipo/cmd/equipo-runner TestReleaseRunnerHasNoFakeWorker
receipt: slow test 11.59s amadan.net/oficina/equipo/internal/runner/containment TestEngineeringMissingModuleCache
receipt: slow test 10.42s amadan.net/oficina/equipo/internal/runner/checks TestCheckNamespaceGoRootInsideModuleCache
machine: 32 CPUs, load 16.18, cpu waiting 8.51%, memory waiting 0.00%, io waiting 0.15%
--- shard 18 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-chat: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$' ./internal/headless
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserChat
=== RUN   TestBrowserChat
time=2026-11-19T10:41:02.684Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-19T10:41:02.685Z level=INFO msg="startup phase done" phase=state_lock took=240µs
time=2026-11-19T10:41:02.685Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-19T10:41:02.685Z level=INFO msg="startup phase done" phase=claim_roots took=192µs
time=2026-11-19T10:41:02.685Z level=INFO msg="startup phase" phase=sweep
time=2026-11-19T10:41:02.712Z level=INFO msg="startup phase done" phase=sweep took=27.2ms
time=2026-11-19T10:41:02.712Z level=INFO msg="startup phase" phase=credentials
time=2026-11-19T10:41:02.713Z level=INFO msg="startup phase done" phase=credentials took=208µs
time=2026-11-19T10:41:02.713Z level=INFO msg="startup phase" phase=open_state
time=2026-11-19T10:41:02.757Z level=INFO msg="startup phase done" phase=open_state took=44.747ms
time=2026-11-19T10:41:02.758Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-19T10:41:02.759Z level=INFO msg=connecting host=127.0.0.1:39501 protocol=26
time=2026-11-19T10:41:02.760Z level=INFO msg=connected host=127.0.0.1:39501 took=871µs
time=2026-11-19T10:41:02.760Z level=INFO msg="capabilities gathering"
time=2026-11-19T10:41:02.760Z level=INFO msg="capabilities gathered" took=352µs tags=linux,claude,go
time=2026-11-19T10:41:02.761Z level=INFO msg="hello sent" protocol=26
time=2026-11-19T10:41:02.766Z level=INFO msg=welcome protocol=26 role=primary generation=1
time=2026-11-19T10:41:04.518Z 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.01s)

--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
=== RUN   TestBrowserChatSendStaysOnPage
time=2026-11-19T10:41:08.774Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-19T10:41:08.774Z level=INFO msg="startup phase done" phase=state_lock took=77µs
time=2026-11-19T10:41:08.774Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-19T10:41:08.774Z level=INFO msg="startup phase done" phase=claim_roots took=94µs
time=2026-11-19T10:41:08.774Z level=INFO msg="startup phase" phase=sweep
time=2026-11-19T10:41:08.818Z level=INFO msg="startup phase done" phase=sweep took=44.449ms
time=2026-11-19T10:41:08.818Z level=INFO msg="startup phase" phase=credentials
time=2026-11-19T10:41:08.819Z level=INFO msg="startup phase done" phase=credentials took=178µs
time=2026-11-19T10:41:08.819Z level=INFO msg="startup phase" phase=open_state
time=2026-11-19T10:41:08.897Z level=INFO msg="startup phase done" phase=open_state took=78.491ms
time=2026-11-19T10:41:08.898Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-19T10:41:08.903Z level=INFO msg=connecting host=127.0.0.1:33389 protocol=26
time=2026-11-19T10:41:08.905Z level=INFO msg=connected host=127.0.0.1:33389 took=2.024ms
time=2026-11-19T10:41:08.905Z level=INFO msg="capabilities gathering"
time=2026-11-19T10:41:08.906Z level=INFO msg="capabilities gathered" took=675µs tags=linux,claude,go
time=2026-11-19T10:41:08.912Z level=INFO msg="hello sent" protocol=26
time=2026-11-19T10:41:08.917Z level=INFO msg=welcome protocol=26 role=primary generation=1
time=2026-11-19T10:41:11.297Z level=INFO msg="connection checked" connection=claude-1 state=healthy
    browser_test.go:108: waiting for [...document.querySelectorAll('[equipo-message="incoming"] [equipo-markdown]:not([data-stream-text])')].some(e=>e.textContent.includes('fake coordinator')): context deadline exceeded (last evaluation: <nil>)
--- FAIL: TestBrowserChatSendStaysOnPage (6.41s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m19.023s
FAIL	amadan.net/oficina/equipo/internal/headless	79.386s


receipt: test step 1m20.673s 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 1m19.023s amadan.net/oficina/equipo/internal/headless
receipt: slow test 39.07s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 15.2s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 7.63s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 6.41s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
receipt: slow test 6.01s amadan.net/oficina/equipo/internal/headless TestBrowserChat
rastrillo: budget test: go test failed
exit status 1
+ go test -tags browser,testbuild -timeout 15m -run '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$' -v -run '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserChat browser-headless-chat cdcc07f38bcbcde93f7acdd55245735b1a0f9928 6.01s 53.58
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
##############################################################################
FLAKE ./internal/headless:TestBrowserChatSendStaysOnPage browser-headless-chat cdcc07f38bcbcde93f7acdd55245735b1a0f9928 6.41s 53.58
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 48.95, cpu waiting 31.48%, memory waiting 0.00%, io waiting 0.60%
--- 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
rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
=== RUN   TestBrowserRailFollowsWork
time=2026-11-19T10:41:00.703Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-19T10:41:00.703Z level=INFO msg="startup phase done" phase=state_lock took=153µs
time=2026-11-19T10:41:00.703Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-19T10:41:00.703Z level=INFO msg="startup phase done" phase=claim_roots took=153µs
time=2026-11-19T10:41:00.703Z level=INFO msg="startup phase" phase=sweep
time=2026-11-19T10:41:00.742Z level=INFO msg="startup phase done" phase=sweep took=38.667ms
time=2026-11-19T10:41:00.744Z level=INFO msg="startup phase" phase=credentials
time=2026-11-19T10:41:00.744Z level=INFO msg="startup phase done" phase=credentials took=263µs
time=2026-11-19T10:41:00.744Z level=INFO msg="startup phase" phase=open_state
time=2026-11-19T10:41:00.787Z level=INFO msg="startup phase done" phase=open_state took=43.025ms
time=2026-11-19T10:41:00.788Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-19T10:41:00.789Z level=INFO msg=connecting host=127.0.0.1:37411 protocol=26
time=2026-11-19T10:41:00.790Z level=INFO msg=connected host=127.0.0.1:37411 took=1.269ms
time=2026-11-19T10:41:00.791Z level=INFO msg="capabilities gathering"
time=2026-11-19T10:41:00.791Z level=INFO msg="capabilities gathered" took=427µs tags=linux,claude,go
time=2026-11-19T10:41:00.791Z level=INFO msg="hello sent" protocol=26
time=2026-11-19T10:41:00.804Z level=INFO msg=welcome protocol=26 role=primary generation=1
time=2026-11-19T10:41:02.119Z level=INFO msg="connection checked" connection=claude-1 state=healthy
time=2026-11-19T10:41:10.980Z level=INFO msg="kept sessions" kept=1 bytes=1842 expired=0
time=2026-11-19T10:41:15.447Z level=INFO msg="kept sessions" kept=2 bytes=3243 expired=0
time=2026-11-19T10:41:16.307Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-19T10:41:16.307Z level=INFO msg="startup phase done" phase=state_lock took=138µs
time=2026-11-19T10:41:16.308Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-19T10:41:16.308Z level=INFO msg="startup phase done" phase=claim_roots took=144µs
time=2026-11-19T10:41:16.308Z level=INFO msg="startup phase" phase=sweep
time=2026-11-19T10:41:16.344Z level=INFO msg="startup phase done" phase=sweep took=35.973ms
time=2026-11-19T10:41:16.346Z level=INFO msg="startup phase" phase=credentials
time=2026-11-19T10:41:16.346Z level=INFO msg="startup phase done" phase=credentials took=175µs
time=2026-11-19T10:41:16.346Z level=INFO msg="startup phase" phase=open_state
time=2026-11-19T10:41:16.403Z level=INFO msg="startup phase done" phase=open_state took=57.145ms
time=2026-11-19T10:41:16.404Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-19T10:41:16.406Z level=INFO msg=connecting host=127.0.0.1:37995 protocol=26
time=2026-11-19T10:41:16.408Z level=INFO msg=connected host=127.0.0.1:37995 took=1.018ms
time=2026-11-19T10:41:16.408Z level=INFO msg="capabilities gathering"
time=2026-11-19T10:41:16.409Z level=INFO msg="capabilities gathered" took=784µs tags=linux,claude,go
time=2026-11-19T10:41:16.415Z level=INFO msg="hello sent" protocol=26
time=2026-11-19T10:41:16.417Z level=INFO msg=welcome protocol=26 role=primary generation=1
time=2026-11-19T10:41:18.497Z level=INFO msg="connection checked" connection=claude-1 state=healthy
    browser_review_test.go:57: waiting for document.querySelector('#rail [data-specialist="engineering"]')?.dataset.state==='working' && document.querySelector('#rail [data-specialist="engineering"]').querySelector('[equipo-nav-task]')?.textContent==='Slow sidebar change' && document.querySelector('#nav-tasks [data-count]')?.textContent==='1': context deadline exceeded (last evaluation: context deadline exceeded)
time=2026-11-19T10:41:22.750Z level=WARN msg="step account" err="context canceled"
time=2026-11-19T10:41:22.751Z level=WARN msg="step sweep" err="context canceled"
time=2026-11-19T10:41:22.751Z level=WARN msg="kept sessions" err="context canceled"
--- FAIL: TestBrowserRailFollowsWork (22.61s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m32.685s
FAIL	amadan.net/oficina/equipo/internal/headless	92.987s


receipt: test step 1m34.092s 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 1m32.685s amadan.net/oficina/equipo/internal/headless
receipt: slow test 25.28s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 22.61s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 14.5s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 10.85s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 9.41s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
exit status 1
+ go test -tags browser,testbuild -timeout 15m -run '^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$' -v -run '^TestBrowserRailFollowsWork$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserRailFollowsWork browser-headless-work cdcc07f38bcbcde93f7acdd55245735b1a0f9928 22.61s 48.95
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 37.15, cpu waiting 22.99%, memory waiting 0.00%, io waiting 0.42%
--- 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 1m45.604s 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 1m44.061s amadan.net/oficina/equipo/internal/headless
receipt: slow test 17s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 13.6s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 12.88s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 10.7s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
receipt: slow test 10.39s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsOpenCodeGoLimitRequired
machine: 32 CPUs, load 43.18, cpu waiting 27.89%, memory waiting 0.00%, io waiting 0.52%
--- shard 21 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-rest: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless
rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserCopyContinue
=== RUN   TestBrowserCopyContinue
time=2026-11-19T10:41:15.818Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-19T10:41:15.818Z level=INFO msg="startup phase done" phase=state_lock took=80µs
time=2026-11-19T10:41:15.818Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-19T10:41:15.818Z level=INFO msg="startup phase done" phase=claim_roots took=85µs
time=2026-11-19T10:41:15.818Z level=INFO msg="startup phase" phase=sweep
time=2026-11-19T10:41:15.874Z level=INFO msg="startup phase done" phase=sweep took=55.846ms
time=2026-11-19T10:41:15.874Z level=INFO msg="startup phase" phase=credentials
time=2026-11-19T10:41:15.874Z level=INFO msg="startup phase done" phase=credentials took=185µs
time=2026-11-19T10:41:15.874Z level=INFO msg="startup phase" phase=open_state
time=2026-11-19T10:41:15.942Z level=INFO msg="startup phase done" phase=open_state took=67.593ms
time=2026-11-19T10:41:15.942Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-19T10:41:15.944Z level=INFO msg=connecting host=127.0.0.1:32907 protocol=26
time=2026-11-19T10:41:15.946Z level=INFO msg=connected host=127.0.0.1:32907 took=1.783ms
time=2026-11-19T10:41:15.946Z level=INFO msg="capabilities gathering"
time=2026-11-19T10:41:15.951Z level=INFO msg="capabilities gathered" took=4.792ms tags=linux,claude,go
time=2026-11-19T10:41:15.958Z level=INFO msg="hello sent" protocol=26
time=2026-11-19T10:41:15.960Z level=INFO msg=welcome protocol=26 role=primary generation=1
    browser_copy_test.go:90: waiting for !document.querySelector('[data-copy-continue]'): context deadline exceeded (last evaluation: <nil>)
--- FAIL: TestBrowserCopyContinue (6.33s)

--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserEmptyExplore
=== RUN   TestBrowserEmptyExplore
time=2026-11-19T10:41:53.378Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-19T10:41:53.379Z level=INFO msg="startup phase done" phase=state_lock took=330µs
time=2026-11-19T10:41:53.379Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-19T10:41:53.379Z level=INFO msg="startup phase done" phase=claim_roots took=207µs
time=2026-11-19T10:41:53.379Z level=INFO msg="startup phase" phase=sweep
time=2026-11-19T10:41:53.410Z level=INFO msg="startup phase done" phase=sweep took=30.634ms
time=2026-11-19T10:41:53.410Z level=INFO msg="startup phase" phase=credentials
time=2026-11-19T10:41:53.410Z level=INFO msg="startup phase done" phase=credentials took=136µs
time=2026-11-19T10:41:53.410Z level=INFO msg="startup phase" phase=open_state
time=2026-11-19T10:41:53.454Z level=INFO msg="startup phase done" phase=open_state took=44.147ms
time=2026-11-19T10:41:53.455Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-19T10:41:53.456Z level=INFO msg=connecting host=127.0.0.1:33781 protocol=26
time=2026-11-19T10:41:53.458Z level=INFO msg=connected host=127.0.0.1:33781 took=2.336ms
time=2026-11-19T10:41:53.458Z level=INFO msg="capabilities gathering"
time=2026-11-19T10:41:53.461Z level=INFO msg="capabilities gathered" took=2.506ms tags=linux,claude,go
time=2026-11-19T10:41:53.464Z level=INFO msg="hello sent" protocol=26
time=2026-11-19T10:41:53.467Z level=INFO msg=welcome protocol=26 role=primary generation=1
time=2026-11-19T10:41:54.646Z 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 (5.91s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m36.612s
FAIL	amadan.net/oficina/equipo/internal/headless	96.893s


receipt: test step 1m37.98s 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 1m36.612s amadan.net/oficina/equipo/internal/headless
receipt: slow test 15.27s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 13.2s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 11.06s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 10.6s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 8.01s amadan.net/oficina/equipo/internal/headless TestBrowserRefreshRace
exit status 1
+ go test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' -v -run '^TestBrowserCopyContinue$|^TestBrowserEmptyExplore$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserCopyContinue browser-headless-rest cdcc07f38bcbcde93f7acdd55245735b1a0f9928 6.33s 48.95
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
##############################################################################
FLAKE ./internal/headless:TestBrowserEmptyExplore browser-headless-rest cdcc07f38bcbcde93f7acdd55245735b1a0f9928 5.91s 48.95
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 40.04, cpu waiting 26.16%, memory waiting 0.00%, io waiting 0.49%
--- 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/idtest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserOficinaIDDoor)$' ./internal/idtest

receipt: test step 2.946s 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.536s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 1.54s 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.19s 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.843s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 1.84s 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|TestBrowserCoordinatorQueue|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|TestBrowserThinkingWords|TestBrowserTokenRowEmail|TestBrowserTrackStarCentre)$' ./internal/thintest

receipt: test step 2m58.761s 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 2m57.276s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 17.24s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.33s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 10.89s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 9.09s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 8.13s amadan.net/oficina/equipo/internal/thintest TestBrowserInnerScreens
machine: 32 CPUs, load 14.57, cpu waiting 7.45%, memory waiting 0.00%, io waiting 0.13%
--- shard 23 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
shard 23: make test-quarantine
python3 scripts/ci-test.py quarantine
quarantine: 12 tests from scripts/ci-quarantine.txt; a failure is retried once, and a pass on the retry is reported as a flake
+ go test -tags testbuild -timeout 15m -v -run '^TestHeadlessConnections$/^A5_cancel_and_sign_out$|^TestHeadlessConnections$/^C4_claude_sign_in$|^TestHeadlessConnections$/^C5_engineering_failover$|^TestHeadlessConnections$/^C5_engineering_to_codex$|^TestHeadlessConnections$/^C5_engineering_waits$' ./internal/headless   (55s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 5.34s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.45s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 9.90s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 10.25s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 25.96s
+ 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   (78s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 13.73s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 26.76s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 20.88s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 14.35s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (23s)
ok ./internal/headless TestMixedVersions 20.78s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (2s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.80s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin   (0s)
ok ./internal/runner/thin TestRunnerCancelAndSupersede 0.05s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 53.29, cpu waiting 33.14%, memory waiting 0.00%, io waiting 0.84%
--- 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.246s 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.577s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 173ms 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.37s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.75s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 370ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 170ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 80ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxToolchain
CGO_ENABLED=0 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run '^TestNamespace' -count=1 ./internal/runner/containment
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run '^TestNamespace' -count=1 ./internal/runner/containment

receipt: test step 3.275s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 2.868s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 280ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 180ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 130ms 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 TestNamespaceReapsOrphans
machine: 32 CPUs, load 16.62, cpu waiting 7.75%, memory waiting 0.00%, io waiting 2.37%
--- 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 34.5%, load 28.75
shard 25: make runner-dead-references lanes-check build vet fmt-check budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 2382 text files, 2742 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: 85 directories within budget
CGO_ENABLED=0 go test ./internal/equipo -run '^TestMigrationModels$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipo	2.430s
machine: 32 CPUs, load 50.75, cpu waiting 31.90%, memory waiting 0.00%, io waiting 1.06%
--- 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 34.5%, load 23.42
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 44.18, cpu waiting 26.61%, memory waiting 0.00%, io waiting 1.43%
--- 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 34.5%, load 23.42
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 36.62, cpu waiting 20.75%, memory waiting 0.00%, io waiting 1.64%
--- 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 34.5%, load 23.42
shard 28: make gitleaks
10:41AM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
10:41AM INF 987 commits scanned.
10:41AM INF scanned ~59033258 bytes (59.03 MB) in 18.9s
10:41AM INF no leaks found
machine: 32 CPUs, load 49.45, cpu waiting 27.83%, memory waiting 0.00%, io waiting 1.39%
=== 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.082ms, worst 1.112ms, budget 150ms
perf: GET /api/runner/protocol: median 83µs, worst 96µs, budget 150ms
perf: GET /api/v1/account-setups/{id}: median 636µs, worst 659µs, budget 150ms
perf: GET /api/v1/accounts: median 429µs, worst 479µs, budget 150ms
perf: GET /api/v1/auth/devices: median 456µs, worst 490µs, budget 150ms
perf: GET /api/v1/budgets: median 507µs, worst 543µs, budget 150ms
perf: GET /api/v1/capabilities: median 248µs, worst 282µs, budget 150ms
perf: GET /api/v1/cards/{id}: median 1.286ms, worst 1.353ms, budget 150ms
perf: GET /api/v1/connections: median 595µs, worst 622µs, budget 150ms
perf: GET /api/v1/connections/{id}: median 549µs, worst 632µs, budget 150ms
perf: GET /api/v1/conversation: median 984µs, worst 1.073ms, budget 150ms
perf: GET /api/v1/conversation/cards: median 1.502ms, worst 1.605ms, budget 150ms
perf: GET /api/v1/coordinator: median 2.044ms, worst 2.147ms, budget 150ms
perf: GET /api/v1/invites/{id}: median 477µs, worst 500µs, budget 150ms
perf: GET /api/v1/journey: median 8.275ms, worst 8.463ms, budget 150ms
perf: GET /api/v1/me: median 445µs, worst 473µs, budget 150ms
perf: GET /api/v1/me/settings: median 528µs, worst 562µs, budget 150ms
perf: GET /api/v1/needs-you: median 7.971ms, worst 10.299ms, budget 150ms
perf: GET /api/v1/notifications: median 1.674ms, worst 1.73ms, budget 150ms
perf: GET /api/v1/onboarding: median 385µs, worst 418µs, budget 150ms
perf: GET /api/v1/people: median 446µs, worst 503µs, budget 150ms
perf: GET /api/v1/playbooks: median 577µs, worst 622µs, budget 150ms
perf: GET /api/v1/playbooks/{id}: median 527µs, worst 567µs, budget 150ms
perf: GET /api/v1/playbooks/{id}/template-diff: median 832µs, worst 868µs, budget 150ms
perf: GET /api/v1/preferences: median 772µs, worst 785µs, budget 150ms
perf: GET /api/v1/projects/{id}: median 461µs, worst 499µs, budget 150ms
perf: GET /api/v1/projects/{id}/settings: median 578µs, worst 625µs, budget 150ms
perf: GET /api/v1/roster: median 453µs, worst 467µs, budget 150ms
perf: GET /api/v1/runners/{id}: median 422µs, worst 445µs, budget 150ms
perf: GET /api/v1/specialists: median 8.048ms, worst 8.134ms, budget 150ms
perf: GET /api/v1/specialists/{id}: median 7.954ms, worst 8.056ms, budget 150ms
perf: GET /api/v1/specialists/{id}/template-diff: median 824µs, worst 915µs, budget 150ms
perf: GET /api/v1/tasks/{id}/plan: median 1.166ms, worst 1.207ms, budget 150ms
perf: GET /api/v1/tasks/{id}/thread: median 748µs, worst 791µs, budget 150ms
perf: GET /api/v1/teams: median 427µs, worst 458µs, budget 150ms
perf: GET /api/v1/templates: median 598µs, worst 646µs, budget 150ms
perf: GET /api/v1/templates/{id}: median 447µs, worst 463µs, budget 150ms
perf: GET /auth/callback: median 81µs, worst 111µs, budget 150ms
perf: GET /auth/devices/{id}: median 3.266ms, worst 3.309ms, budget 150ms
perf: GET /auth/verify: median 75µs, worst 90µs, budget 150ms
perf: GET /connections: median 3.535ms, worst 3.649ms, budget 150ms
perf: GET /conversation: median 7.2ms, worst 7.31ms, budget 150ms
perf: GET /conversation/connections: median 241µs, worst 279µs, budget 150ms
perf: GET /conversation/notebook: median 238µs, worst 256µs, budget 150ms
perf: GET /conversation/settings: median 3.718ms, worst 3.758ms, budget 150ms
perf: GET /conversation/settings/connections: median 6.167ms, worst 8.669ms, budget 150ms
perf: GET /conversation/settings/connections/add: median 6.239ms, worst 6.314ms, budget 150ms
perf: GET /conversation/settings/copy: median 3.359ms, worst 3.481ms, budget 150ms
perf: GET /conversation/settings/housekeeping: median 3.811ms, worst 3.9ms, budget 150ms
perf: GET /conversation/settings/machines: median 4.242ms, worst 4.324ms, budget 150ms
perf: GET /conversation/settings/machines/add: median 4.164ms, worst 4.4ms, budget 150ms
perf: GET /conversation/settings/notebook: median 3.224ms, worst 3.293ms, budget 150ms
perf: GET /conversation/settings/thinking: median 3.87ms, worst 4.002ms, budget 150ms
perf: GET /housekeeping: median 3.602ms, worst 3.699ms, budget 150ms
perf: GET /invites/new: median 593µs, worst 691µs, budget 150ms
perf: GET /invites/{id}: median 673µs, worst 717µs, budget 150ms
perf: GET /jobs: median 3.356ms, worst 4.734ms, budget 150ms
perf: GET /jobs/{id}: median 4.433ms, worst 4.583ms, budget 150ms
perf: GET /journey: median 13.773ms, worst 14.098ms, budget 150ms
perf: GET /nav/rail: median 3.241ms, worst 3.363ms, budget 150ms
perf: GET /needs-you: median 13.097ms, worst 13.521ms, budget 150ms
perf: GET /onboarding: median 4.372ms, worst 4.455ms, budget 150ms
perf: GET /people: median 3.727ms, worst 3.817ms, budget 150ms
perf: GET /playbook-suggestions/{suggestion}: median 4.287ms, worst 4.419ms, budget 150ms
perf: GET /playbooks: median 4.033ms, worst 5.655ms, budget 150ms
perf: GET /playbooks/new: median 4.157ms, worst 4.318ms, budget 150ms
perf: GET /playbooks/{id}: median 4.47ms, worst 4.665ms, budget 150ms
perf: GET /playbooks/{id}/edit: median 4.431ms, worst 4.585ms, budget 150ms
perf: GET /playbooks/{id}/template-diff: median 3.575ms, worst 3.713ms, budget 150ms
perf: GET /preferences: median 4.136ms, worst 4.271ms, budget 150ms
perf: GET /preferences/sources/{source}: median 3.833ms, worst 4.044ms, budget 150ms
perf: GET /projects: median 4.889ms, worst 4.984ms, budget 150ms
perf: GET /projects/accounts: median 3.487ms, worst 3.678ms, budget 150ms
perf: GET /projects/new: median 3.431ms, worst 3.527ms, budget 150ms
perf: GET /projects/{id}: median 11.924ms, worst 14.775ms, budget 150ms
perf: GET /projects/{id}/edit: median 3.832ms, worst 4.014ms, budget 150ms
perf: GET /runners/enrol: median 4.453ms, worst 4.607ms, budget 150ms
perf: GET /settings: median 3.369ms, worst 3.501ms, budget 150ms
perf: GET /settings/coordinator: median 5.357ms, worst 5.546ms, budget 150ms
perf: GET /settings/devices: median 3.188ms, worst 3.277ms, budget 150ms
perf: GET /settings/recovery: median 3.225ms, worst 3.252ms, budget 150ms
perf: GET /settings/recovery/release: median 3.298ms, worst 3.409ms, budget 150ms
perf: GET /settings/thinking: median 229µs, worst 279µs, budget 150ms
perf: GET /signin: median 317µs, worst 355µs, budget 150ms
perf: GET /specialists/new: median 3.195ms, worst 3.279ms, budget 150ms
perf: GET /specialists/{key}: median 10.567ms, worst 10.953ms, budget 150ms
perf: GET /specialists/{key}/edit: median 3.504ms, worst 6.675ms, budget 150ms
perf: GET /specialists/{key}/template-diff: median 3.918ms, worst 4.103ms, budget 150ms
perf: GET /tasks: median 5.072ms, worst 5.286ms, budget 150ms
perf: GET /tasks/new: median 3.101ms, worst 3.22ms, budget 150ms
perf: GET /tasks/{id}: median 5.496ms, worst 5.79ms, budget 150ms
perf: GET /tasks/{id}/merge: median 4.689ms, worst 4.77ms, budget 150ms
perf: GET /tasks/{id}/move: median 4.399ms, worst 4.523ms, budget 150ms
perf: GET /tasks/{id}/plan: median 5.691ms, worst 5.945ms, budget 150ms
perf: GET /tasks/{id}/questions/{question}: median 5.105ms, worst 5.361ms, budget 150ms
perf: GET /tasks/{id}/rendered-change: median 4.605ms, worst 4.731ms, budget 150ms
perf: GET /tasks/{id}/rendered-change/{hash}.png: median 4.261ms, worst 5.857ms, budget 150ms
perf: GET /tasks/{id}/thread: median 8.302ms, worst 8.727ms, budget 150ms
perf: GET /team/{specialist}: median 4.127ms, worst 4.23ms, budget 150ms
perf: GET /teams: median 10.138ms, worst 10.382ms, budget 150ms
perf: GET /templates: median 3.371ms, worst 3.505ms, budget 150ms
perf: GET /usage: median 3.975ms, worst 4.107ms, budget 150ms
perf: GET /work: median 2.93ms, worst 3.063ms, budget 150ms
perf: cold boot: median 256ms of [255.126364ms 256.406542ms 256.49674ms], budget 500ms

receipt: test step 37.747s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 81 without tests, 0 failed
receipt: slow package 8.782s 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.96s amadan.net/oficina/equipo/internal/equipotest TestPerfScreens
receipt: slow test 820ms amadan.net/oficina/equipo/internal/equipotest TestPerfBoot
=== cache ===
ci-box: build cache /home/ci/work/repos/oficina__equipo/cache/go-build: 3.95 GiB in 20711 files
ci-box: module cache /home/ci/work/repos/oficina__equipo/cache/go-mod: 0.84 GiB in 27329 files
diff --git a/.rastrillo/budgets.txt b/.rastrillo/budgets.txt
index fd50c45b..e7e295a1 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 21185 - Shared web views; persisted approval navigation, visible access continuations, the CARLOS mail submission boot and Oficina catch-up. Measured 21185 source lines.
+size internal/equipo 21203 - Shared web views; persisted approval navigation, visible access continuations, the CARLOS mail submission boot and Oficina catch-up. Measured 21203 source lines.
size internal/wire 6544 - Shared protocol types and the optional card approval-visit flag. Runner protocol stays 26; measured 6544 source lines.
size internal/equipotest - 13400 Task 21 repairs historical migration and conversation fixtures after Plan 3. Measured 13024 test lines; the 300s time ceiling is unchanged.
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 30782 - Transactional access visit, reconnect catch-up, continuation presentation and the Assistant carrying on after a connect. Measured 30782 source lines.
+size internal/equipo/chat 30807 - Transactional access visit, reconnect catch-up, continuation presentation and the Assistant carrying on after a connect. Measured 30807 source lines.
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.
@@ -71,7 +71,7 @@ perf GET /tasks/{id}/files/{file} skip Research kept images: the bytes of one im
perf GET /api/v1/runners skip Mac runners person API: bearer-only JSON for devices; the browser shows runners in the Team section.
time cmd/equipo-runner 60s TestReleaseRunnerHasNoFakeWorker builds the release runner and the thin package under testbuild (about 12s locally).
size internal/headless - 11189 End-to-end scenarios, including approved access through the real runner and server while git is blocked. Measured 11189 test lines.
-size internal/thintest - 31577 Shared instance/browser fixtures, access reload and resume, queue and byline guards, native device fixtures, the Assistant carrying on after a connect. Measured 31577 test lines.
+size internal/thintest - 31648 Shared instance/browser fixtures, access reload and resume, queue and byline guards, native device fixtures, the Assistant carrying on after a connect. Measured 31648 test lines.
perf GET /api/v1/projects/{id}/merge-policy skip Merge authority person API: bearer-only JSON for devices; the browser reads the policy on /projects/{id}.
perf GET /api/v1/usage skip Thin v1 person API: bearer-only JSON for devices; the browser reads usage through /usage.
perf GET /api/v1/advice skip Thin v1 person API: bearer-only JSON for devices; the browser reads advice through /usage and /conversation.
diff --git a/internal/equipo/chat/connect.go b/internal/equipo/chat/connect.go
index c83298b8..efae80f5 100644
--- a/internal/equipo/chat/connect.go
+++ b/internal/equipo/chat/connect.go
@@ -3,6 +3,7 @@ package chat
import (
"context"
"encoding/json"
+ "slices"
"time"
"amadan.net/oficina/equipo/internal/wire"
@@ -89,6 +90,23 @@ func (connectTurnRecord) TableName() string { return "chat_connect_turns" }
// key, so a card settled again queues nothing more. A person no longer
// on the roster settles nothing.
func (s *Store) SettleConnect(ctx context.Context, person, provider string) error {
+ return s.settleConnect(ctx, person, provider, nil)
+}
+
+// Connected reads, in the settling transaction, when the person's
+// current connection to a provider was last saved; ok is false when
+// they have none.
+type Connected func(tx *gorm.DB) (saved time.Time, ok bool, err error)
+
+// SettleConnectSince is SettleConnect bound to its evidence: in the same
+// transaction, the person's current connection (connected), and only
+// the cards raised by the time it was saved. A card raised after it, or
+// with no connection now, stays open.
+func (s *Store) SettleConnectSince(ctx context.Context, person, provider string, connected Connected) error {
+ return s.settleConnect(ctx, person, provider, connected)
+}
+
+func (s *Store) settleConnect(ctx context.Context, person, provider string, connected Connected) error {
return s.tx(ctx, func(t *txn) error {
if _, err := t.s.authority.Me(t.db, person); err != nil {
return err
@@ -97,6 +115,13 @@ func (s *Store) SettleConnect(ctx context.Context, person, provider string) erro
if err := t.db.Where("person = ? AND lane = ? AND kind = ? AND name = ? AND state = ?", person, wire.LaneAssistant, wire.CardConnect, provider, wire.CardOpen).Order("created_at, id").Find(&cards).Error; err != nil {
return err
}
+ if connected != nil {
+ saved, ok, err := connected(t.db)
+ if err != nil || !ok {
+ return err
+ }
+ cards = slices.DeleteFunc(cards, func(c cardRecord) bool { return c.CreatedAt.After(saved) })
+ }
for _, c := range cards {
c.State = wire.CardResolved
if err := t.saveCard(&c); err != nil {
diff --git a/internal/equipo/oficina_connect.go b/internal/equipo/oficina_connect.go
index 1ab8f40f..a2d7a3d1 100644
--- a/internal/equipo/oficina_connect.go
+++ b/internal/equipo/oficina_connect.go
@@ -216,7 +216,7 @@ func (s *Store) oficinaFinished(ctx context.Context, person string, err error) (
return "unavailable", nil
}
s.assist.Forget(person)
- if err := s.Chat().SettleConnect(ctx, person, oficinaProvider); err != nil {
+ if err := s.Chat().SettleConnectSince(ctx, person, oficinaProvider, oficinaConnected(person)); err != nil {
slog.Warn(copyOficinaCardFailed, "err", err)
}
return "connected", nil
@@ -225,21 +225,37 @@ func (s *Store) oficinaFinished(ctx context.Context, person string, err error) (
// oficinaCatchUp settles the person's Oficina connect card left open
// while they are connected: a finish saved the connection and then
// failed to settle it, and its state is used up. Settling queues the
-// one resume turn, as the finish would have. With no open card it is
-// one read.
+// one resume turn, as the finish would have. The connection is read in
+// the settling transaction, and only a card raised before it was saved
+// settles. With no open card it is one read.
func (s *Store) oficinaCatchUp(ctx context.Context, person string) error {
person = normalizeAddress(person)
open, err := s.Chat().ConnectOpen(ctx, person, oficinaProvider)
if err != nil || !open {
return err
}
- sealed, err := oficinaStore{s}.Load(ctx, person)
- if err != nil || sealed == "" {
- return err
+ if s.oficinaPause != nil {
+ s.oficinaPause()
}
- return s.Chat().SettleConnect(ctx, person, oficinaProvider)
+ return s.Chat().SettleConnectSince(ctx, person, oficinaProvider, oficinaConnected(person))
}
+// oficinaConnected reads person's connection in the settling
+// transaction: when it was last saved, if they have one.
+func oficinaConnected(person string) chat.Connected {
+ return func(tx *gorm.DB) (time.Time, bool, error) {
+ var r oficinaConnectionRecord
+ if err := tx.Where("person = ?", person).Limit(1).Find(&r).Error; err != nil || r.Person == "" || r.Refresh == "" {
+ return time.Time{}, false, err
+ }
+ return r.UpdatedAt, true, nil
+ }
+}
+
+// SetOficinaCatchUpPause runs pause inside oficinaCatchUp after it has
+// looked and before it settles: tests interleave other work there.
+func (s *Store) SetOficinaCatchUpPause(pause func()) { s.oficinaPause = pause }
+
// oficinaCallback is connect's redirect back. It needs no session and
// finishes nothing: it checks the state (Peek) and hands the state and
// code on to where the consent started, for the person to finish with
diff --git a/internal/equipo/store.go b/internal/equipo/store.go
index 5c12729b..f5d8e6fe 100644
--- a/internal/equipo/store.go
+++ b/internal/equipo/store.go
@@ -85,7 +85,9 @@ type Store struct {
// EQUIPO_OFICINA_CONNECT_ORIGIN is unset; assist the Assistant's
// registry, kept to forget a person's lists when they connect.
oficina *oficina.Connector
- assist *assist.Registry
+ // oficinaPause is a test's pause inside oficinaCatchUp.
+ oficinaPause func()
+ assist *assist.Registry
}
type StoreOption func(*Store)
diff --git a/internal/thintest/assistant_oficina_resume_contract_test.go b/internal/thintest/assistant_oficina_resume_contract_test.go
index 09c0cd99..bbcbe88c 100644
--- a/internal/thintest/assistant_oficina_resume_contract_test.go
+++ b/internal/thintest/assistant_oficina_resume_contract_test.go
@@ -321,3 +321,74 @@ func TestContractAssistantOficinaResumeConcurrent(t *testing.T) {
t.Errorf("%d resume dispatches", got)
}
}
+
+// TestContractAssistantOficinaResumeStaleEvidence: a lane read that
+// found the person connected and paused settles nothing on that stale
+// evidence. Meanwhile card A settles, the person disconnects and card B
+// is raised; once the read goes on, B stays open with no turn and no
+// grant, since no connection made after B was raised exists.
+func TestContractAssistantOficinaResumeStaleEvidence(t *testing.T) {
+ o := newOficinaRig(t)
+ o.asked("Put lunch with Ana in my calendar on Friday.")
+ db := o.inst.DB.Writer()
+ if _, err := db.Exec("CREATE TRIGGER inject_settle BEFORE INSERT ON chat_connect_turns BEGIN SELECT RAISE(ABORT, 'injected'); END"); err != nil {
+ t.Fatal(err)
+ }
+ if status, _, _ := o.finish(); status != "connected" {
+ t.Fatalf("finish: %q", status)
+ }
+ if _, err := db.Exec("DROP TRIGGER inject_settle"); err != nil {
+ t.Fatal(err)
+ }
+ c := o.inst.Store.Chat()
+ var once sync.Once
+ o.inst.Store.SetOficinaCatchUpPause(func() {
+ once.Do(func() {
+ if err := c.SettleConnect(o.ctx, Owner, "oficina"); err != nil {
+ t.Errorf("settle A: %v", err)
+ }
+ if status, _, page := o.browse(http.MethodPost, o.inst.URL+"/oficina/connect/disconnect"); status != http.StatusOK {
+ t.Errorf("disconnect: %d %s", status, page)
+ }
+ if open, err := c.RaiseConnect(o.ctx, Owner, chat.ConnectCard{Provider: "oficina", Question: "Connect your Oficina apps", Link: wire.CardLink{Label: "Connect", URL: o.base.Origin + "/ask/oficina/connect"}}); err != nil || !open {
+ t.Errorf("raise B: %v %v", open, err)
+ }
+ })
+ })
+ t.Cleanup(func() { o.inst.Store.SetOficinaCatchUpPause(nil) })
+ if _, err := o.a.Snapshot(o.ctx); err != nil {
+ t.Fatal(err)
+ }
+ if n := o.resumes(); n != 1 {
+ t.Errorf("%d resume turns, want only A's", n)
+ }
+ if n := o.rows("SELECT count(*) FROM chat_connect_turns"); n != 1 {
+ t.Errorf("%d grant records, want only A's", n)
+ }
+ if n := o.rows("SELECT count(*) FROM chat_cards WHERE kind = ? AND state = ?", wire.CardConnect, wire.CardOpen); n != 1 {
+ t.Errorf("%d open connect cards, want B", n)
+ }
+}
+
+// TestContractAssistantOficinaResumeCardAfterConnection: a connect card
+// raised after the person's connection was last saved is no evidence of
+// a connect for it: a lane read leaves it open, with no turn.
+func TestContractAssistantOficinaResumeCardAfterConnection(t *testing.T) {
+ o := newOficinaRig(t)
+ o.asked("Put lunch with Ana in my calendar on Friday.")
+ if status, _, _ := o.finish(); status != "connected" {
+ t.Fatalf("finish: %q", status)
+ }
+ if open, err := o.inst.Store.Chat().RaiseConnect(o.ctx, Owner, chat.ConnectCard{Provider: "oficina", Question: "Connect your Oficina apps", Link: wire.CardLink{Label: "Connect", URL: o.base.Origin + "/ask/oficina/connect"}}); err != nil || !open {
+ t.Fatalf("raise: %v %v", open, err)
+ }
+ if _, err := o.a.Snapshot(o.ctx); err != nil {
+ t.Fatal(err)
+ }
+ if n := o.resumes(); n != 1 {
+ t.Errorf("%d resume turns", n)
+ }
+ if n := o.rows("SELECT count(*) FROM chat_cards WHERE kind = ? AND state = ?", wire.CardConnect, wire.CardOpen); n != 1 {
+ t.Errorf("%d open connect cards", n)
+ }
+}