oficina / equipo Public

Recover a failed connect settlement; keep the resume to Oficina

Review of 11fe9799. A finish that saved the connection and then failed
to settle the card still answered connected, with its state used up, so
no resume turn ever came. Now the person's next Assistant snapshot or
event stream catches up (oficinaCatchUp): an open Oficina connect card
for a connected person is settled and its one resume turn queued.

Only Oficina connect cards queue a resume, and its write grant holds
only while its card is an Oficina one. New contract tests inject a
failed settlement, cover another provider, and race eight settlements
on one card (one turn, one grant record, one dispatch).

The "[News about one of the person's jobs" framing is the runner's
(internal/runner/thin/claude.go); changing it needs a runner release,
so it is left as is.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev 21d60b2feacaad9991a2d0dbb0484a4a9db6f26e parent 11fe979
8 files changed, +180 −10
  • .rastrillo/budgets.txt +3 −3
  • internal/equipo/chat/assistant_http.go +13 −0
  • internal/equipo/chat/assistant_tools.go +3 −2
  • internal/equipo/chat/connect.go +17 −2
  • internal/equipo/chat/http.go +4 −0
  • internal/equipo/chat_wiring.go +1 −1
  • internal/equipo/oficina_connect.go +22 −2
  • internal/thintest/assistant_oficina_resume_contract_test.go +117 −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.5s
ci-box: codex: fetched and verified in 4.5s
ci-box: codex-code-mode-host: fetched and verified in 2.1s
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.5s
ci-box: opencode: installed and verified in 1.9s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 8.7s
ci-box: clone deepened in 5.1s
ci-box: file times set from content: 2668 files, 172 directories
ci-box: ready in 19.4s
=== 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.244s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  3.5s
+ 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 1m26.244s 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.764s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m24.76s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 50.22, cpu waiting 34.28%, memory waiting 0.00%, io waiting 0.65%
--- 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.296s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m26.675s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m26.67s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 50.22, cpu waiting 34.21%, memory waiting 0.00%, io waiting 0.63%
--- 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.505s 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.556s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m16.29s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 6.19s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 5.08s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 50.22, cpu waiting 34.21%, memory waiting 0.00%, io waiting 0.63%
--- 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 1m25.959s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m24.144s amadan.net/oficina/equipo/internal/headless
receipt: slow test 42.69s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 21.35s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 10.45s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
receipt: slow test 9.66s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
machine: 32 CPUs, load 50.93, cpu waiting 34.19%, memory waiting 0.00%, io waiting 0.67%
--- 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.864s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m4.64s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 11.52s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 9.94s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 8.73s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 6.03s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 42.73, cpu waiting 29.73%, memory waiting 0.00%, io waiting 0.50%
--- 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 3m9.48s 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 3m7.662s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m50.3s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 23.61s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 11.18s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 7.95s amadan.net/oficina/equipo/internal/headless TestHeadlessClaudeSignIn
receipt: slow test 7.28s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
machine: 32 CPUs, load 13.16, cpu waiting 7.22%, memory waiting 0.00%, io waiting 0.11%
--- 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 2m0.89s 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 1m59.252s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 7.67s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.73s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 3.57s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 3.38s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 3.29s amadan.net/oficina/equipo/internal/thintest TestContractTeamUpdatePersonNeeds
machine: 32 CPUs, load 34.48, cpu waiting 22.23%, memory waiting 0.00%, io waiting 0.37%
--- 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 1m10.5s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m8.819s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 6.78s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 3.74s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 2.33s amadan.net/oficina/equipo/internal/thintest TestContractPreview
receipt: slow test 2.06s amadan.net/oficina/equipo/internal/thintest TestContractHostedBindingRules
receipt: slow test 1.76s amadan.net/oficina/equipo/internal/thintest TestContractTokenConnection
machine: 32 CPUs, load 51.13, cpu waiting 33.35%, memory waiting 0.00%, io waiting 0.85%
--- 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 4m21.869s, over the 45s its record on line 44 allows; reported only, timing fails on CI

receipt: test step 4m34.525s 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 4m21.869s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 36.76s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.72s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 36.63s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 18.39s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 6.83s amadan.net/oficina/equipo/internal/runner/thin TestOpenCodeStepsRealOpenCode
machine: 32 CPUs, load 3.56, cpu waiting 1.72%, 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.66s 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.497s amadan.net/oficina/equipo/internal/runner
receipt: slow test 28.47s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.02s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 51.75, cpu waiting 28.78%, memory waiting 0.00%, io waiting 1.24%
--- 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.855s 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.938s amadan.net/oficina/equipo/internal/runner
receipt: slow test 45.87s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 39.13s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.4s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.66s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 51.23, cpu waiting 31.46%, memory waiting 0.00%, io waiting 1.08%
--- 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 36.075s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 35.111s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.14s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.56s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.12s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.56s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestReportPostsRetryExactRequest
machine: 32 CPUs, load 40.55, cpu waiting 19.83%, memory waiting 0.00%, io waiting 1.51%
--- 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 27.15
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.102s 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 1m2.995s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 25.98s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 25.95s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 24.18s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 21.3s amadan.net/oficina/equipo/internal/equipotest TestAuthorityProjectKinds
receipt: slow test 21.29s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelDuplicates
machine: 32 CPUs, load 48.28, cpu waiting 33.20%, memory waiting 0.00%, io waiting 0.57%
--- 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 27.15
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 1m13.801s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m11.968s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 18.96s amadan.net/oficina/equipo/internal/equipotest TestProjectConcurrentRetry
receipt: slow test 18.92s amadan.net/oficina/equipo/internal/equipotest TestProjectBindingUniqueness
receipt: slow test 18.86s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
receipt: slow test 18.86s amadan.net/oficina/equipo/internal/equipotest TestProjectRejectsUnsafeBinding
receipt: slow test 18.81s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
machine: 32 CPUs, load 42.73, cpu waiting 28.79%, memory waiting 0.00%, io waiting 0.48%
--- 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 27.15
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 1m11.022s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m6.142s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 14.97s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 12.85s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 9.71s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 9.69s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 6.72s amadan.net/oficina/equipo/internal/equipotest TestRosterBootstrapOnce
machine: 32 CPUs, load 46.01, cpu waiting 30.67%, memory waiting 0.00%, io waiting 0.51%
--- 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 27.15
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.638s 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.598s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 23.37s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 23.01s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 22.98s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 21.17s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsCurrentOwner
receipt: slow test 21.07s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsUpgrade
machine: 32 CPUs, load 46.01, cpu waiting 32.50%, memory waiting 0.00%, io waiting 0.55%
--- 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 27.15
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.447s 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.389s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.49s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.46s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.49s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.48s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.17s amadan.net/oficina/equipo/internal/plan3test TestPlanMigrationUpgrade
machine: 32 CPUs, load 51.45, cpu waiting 33.72%, memory waiting 0.00%, io waiting 0.72%
--- 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 27.15
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/forge: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider: 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
--- FAIL amadan.net/oficina/equipo/internal/runner/provider/codex TestCodexAppServerPolicy
=== RUN   TestCodexAppServerPolicy
=== PAUSE TestCodexAppServerPolicy
=== CONT  TestCodexAppServerPolicy
    launcher_test.go:400: codex_turn_uncertain
--- FAIL: TestCodexAppServerPolicy (0.62s)

--- FAIL amadan.net/oficina/equipo/internal/runner/provider/codex (package output)
FAIL
rastrillo-budget/v1 ran 16.065s
FAIL	amadan.net/oficina/equipo/internal/runner/provider/codex	17.231s

budget note: internal/equipo took 16.864s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/chat took 11.154s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/idtest took 38.496s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/runner/containment took 46.328s, over the 15s its record on line 40 allows; reported only, timing fails on CI

receipt: test step 2m27.537s against a 60s target (the gate's other steps are not in this figure)
receipt: 19 packages ran, 38 cached, 18 without tests, 1 failed
receipt: slow package 1m1.599s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 52.631s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 46.352s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 46.328s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow package 38.496s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 25.41s amadan.net/oficina/equipo/internal/runner/provider/opencode TestOpenCodeAcceptanceHostileRepository
receipt: slow test 19.85s amadan.net/oficina/equipo/internal/runner/containment TestEngineeringOfflineGo
receipt: slow test 13.14s amadan.net/oficina/equipo/cmd/equipo-runner TestReleaseRunnerHasNoFakeWorker
receipt: slow test 10.77s amadan.net/oficina/equipo/internal/runner/containment TestEngineeringMissingModuleCache
receipt: slow test 9.89s amadan.net/oficina/equipo/internal/idtest TestIDCallbackGuardAndPendingNonce
rastrillo: budget test: go test failed
exit status 1
+ go test -tags testbuild -timeout 15m -v -run '^TestCodexAppServerPolicy$' -count=1 ./internal/runner/provider/codex   (retry, once)
##############################################################################
FLAKE ./internal/runner/provider/codex:TestCodexAppServerPolicy rest 21d60b2feacaad9991a2d0dbb0484a4a9db6f26e 0.62s 15.47
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 15.47, cpu waiting 8.52%, memory waiting 0.00%, io waiting 0.13%
--- 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-19T10:01:12.770Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-19T10:01:12.770Z level=INFO msg="startup phase done" phase=state_lock took=243µs
time=2026-11-19T10:01:12.770Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-19T10:01:12.772Z level=INFO msg="startup phase done" phase=claim_roots took=2.227ms
time=2026-11-19T10:01:12.772Z level=INFO msg="startup phase" phase=sweep
time=2026-11-19T10:01:12.807Z level=INFO msg="startup phase done" phase=sweep took=35.178ms
time=2026-11-19T10:01:12.808Z level=INFO msg="startup phase" phase=credentials
time=2026-11-19T10:01:12.808Z level=INFO msg="startup phase done" phase=credentials took=190µs
time=2026-11-19T10:01:12.808Z level=INFO msg="startup phase" phase=open_state
time=2026-11-19T10:01:12.865Z level=INFO msg="startup phase done" phase=open_state took=56.978ms
time=2026-11-19T10:01:12.865Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-19T10:01:12.866Z level=INFO msg=connecting host=127.0.0.1:37381 protocol=26
time=2026-11-19T10:01:12.867Z level=INFO msg=connected host=127.0.0.1:37381 took=1.035ms
time=2026-11-19T10:01:12.867Z level=INFO msg="capabilities gathering"
time=2026-11-19T10:01:12.868Z level=INFO msg="capabilities gathered" took=759µs tags=linux,claude,go
time=2026-11-19T10:01:12.869Z level=INFO msg="hello sent" protocol=26
time=2026-11-19T10:01:12.876Z level=INFO msg=welcome protocol=26 role=primary generation=1
time=2026-11-19T10:01:15.027Z 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.17s)

--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
=== RUN   TestBrowserChatSendStaysOnPage
time=2026-11-19T10:01:18.947Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-19T10:01:18.948Z level=INFO msg="startup phase done" phase=state_lock took=217µs
time=2026-11-19T10:01:18.948Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-19T10:01:18.948Z level=INFO msg="startup phase done" phase=claim_roots took=165µs
time=2026-11-19T10:01:18.948Z level=INFO msg="startup phase" phase=sweep
time=2026-11-19T10:01:19.029Z level=INFO msg="startup phase done" phase=sweep took=81.073ms
time=2026-11-19T10:01:19.030Z level=INFO msg="startup phase" phase=credentials
time=2026-11-19T10:01:19.030Z level=INFO msg="startup phase done" phase=credentials took=575µs
time=2026-11-19T10:01:19.030Z level=INFO msg="startup phase" phase=open_state
time=2026-11-19T10:01:19.100Z level=INFO msg="startup phase done" phase=open_state took=70.079ms
time=2026-11-19T10:01:19.101Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-19T10:01:19.103Z level=INFO msg=connecting host=127.0.0.1:43781 protocol=26
time=2026-11-19T10:01:19.105Z level=INFO msg=connected host=127.0.0.1:43781 took=1.592ms
time=2026-11-19T10:01:19.106Z level=INFO msg="capabilities gathering"
time=2026-11-19T10:01:19.106Z level=INFO msg="capabilities gathered" took=552µs tags=linux,claude,go
time=2026-11-19T10:01:19.107Z level=INFO msg="hello sent" protocol=26
time=2026-11-19T10:01:19.120Z level=INFO msg=welcome protocol=26 role=primary generation=1
time=2026-11-19T10:01:21.414Z 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.30s)

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


receipt: test step 1m20.926s 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.6s amadan.net/oficina/equipo/internal/headless
receipt: slow test 39.16s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 15.29s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 7.87s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 6.3s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
receipt: slow test 6.17s 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$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserChat browser-headless-chat 21d60b2feacaad9991a2d0dbb0484a4a9db6f26e 6.17s 50.93
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
##############################################################################
FLAKE ./internal/headless:TestBrowserChatSendStaysOnPage browser-headless-chat 21d60b2feacaad9991a2d0dbb0484a4a9db6f26e 6.30s 50.93
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 46.01, cpu waiting 31.54%, memory waiting 0.00%, io waiting 0.53%
--- shard 19 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-work: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$' ./internal/headless
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
=== RUN   TestBrowserRailFollowsWork
time=2026-11-19T10:01:09.402Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-19T10:01:09.402Z level=INFO msg="startup phase done" phase=state_lock took=186µs
time=2026-11-19T10:01:09.402Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-19T10:01:09.402Z level=INFO msg="startup phase done" phase=claim_roots took=221µs
time=2026-11-19T10:01:09.402Z level=INFO msg="startup phase" phase=sweep
time=2026-11-19T10:01:09.435Z level=INFO msg="startup phase done" phase=sweep took=33.225ms
time=2026-11-19T10:01:09.435Z level=INFO msg="startup phase" phase=credentials
time=2026-11-19T10:01:09.436Z level=INFO msg="startup phase done" phase=credentials took=139µs
time=2026-11-19T10:01:09.436Z level=INFO msg="startup phase" phase=open_state
time=2026-11-19T10:01:09.478Z level=INFO msg="startup phase done" phase=open_state took=41.974ms
time=2026-11-19T10:01:09.478Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-19T10:01:09.479Z level=INFO msg=connecting host=127.0.0.1:35629 protocol=26
time=2026-11-19T10:01:09.480Z level=INFO msg=connected host=127.0.0.1:35629 took=1.091ms
time=2026-11-19T10:01:09.480Z level=INFO msg="capabilities gathering"
time=2026-11-19T10:01:09.481Z level=INFO msg="capabilities gathered" took=403µs tags=linux,claude,go
time=2026-11-19T10:01:09.486Z level=INFO msg="hello sent" protocol=26
time=2026-11-19T10:01:09.488Z level=INFO msg=welcome protocol=26 role=primary generation=1
time=2026-11-19T10:01:10.755Z level=INFO msg="connection checked" connection=claude-1 state=healthy
time=2026-11-19T10:01:19.570Z level=INFO msg="kept sessions" kept=1 bytes=1842 expired=0
time=2026-11-19T10:01:23.895Z level=INFO msg="kept sessions" kept=2 bytes=3243 expired=0
time=2026-11-19T10:01:24.650Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-19T10:01:24.650Z level=INFO msg="startup phase done" phase=state_lock took=64µs
time=2026-11-19T10:01:24.650Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-19T10:01:24.650Z level=INFO msg="startup phase done" phase=claim_roots took=102µs
time=2026-11-19T10:01:24.650Z level=INFO msg="startup phase" phase=sweep
time=2026-11-19T10:01:24.688Z level=INFO msg="startup phase done" phase=sweep took=37.516ms
time=2026-11-19T10:01:24.688Z level=INFO msg="startup phase" phase=credentials
time=2026-11-19T10:01:24.688Z level=INFO msg="startup phase done" phase=credentials took=135µs
time=2026-11-19T10:01:24.688Z level=INFO msg="startup phase" phase=open_state
time=2026-11-19T10:01:24.728Z level=INFO msg="startup phase done" phase=open_state took=40.283ms
time=2026-11-19T10:01:24.729Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-19T10:01:24.730Z level=INFO msg=connecting host=127.0.0.1:43275 protocol=26
time=2026-11-19T10:01:24.732Z level=INFO msg=connected host=127.0.0.1:43275 took=1.004ms
time=2026-11-19T10:01:24.732Z level=INFO msg="capabilities gathering"
time=2026-11-19T10:01:24.733Z level=INFO msg="capabilities gathered" took=601µs tags=linux,claude,go
time=2026-11-19T10:01:24.733Z level=INFO msg="hello sent" protocol=26
time=2026-11-19T10:01:24.738Z level=INFO msg=welcome protocol=26 role=primary generation=1
time=2026-11-19T10:01:26.690Z 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)
--- FAIL: TestBrowserRailFollowsWork (21.55s)

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


receipt: test step 1m33.713s 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.372s amadan.net/oficina/equipo/internal/headless
receipt: slow test 25.84s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 21.55s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 14.35s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 10.91s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 9.68s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
rastrillo: budget test: go test failed
exit status 1
+ go test -tags browser,testbuild -timeout 15m -run '^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$' -v -run '^TestBrowserRailFollowsWork$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserRailFollowsWork browser-headless-work 21d60b2feacaad9991a2d0dbb0484a4a9db6f26e 21.55s 48.28
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 34.48, cpu waiting 22.98%, memory waiting 0.00%, io waiting 0.38%
--- 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.81s 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.221s amadan.net/oficina/equipo/internal/headless
receipt: slow test 17.14s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 13.71s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 13.1s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 10.78s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
receipt: slow test 10.47s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsOpenCodeGoLimitRequired
machine: 32 CPUs, load 40.11, cpu waiting 27.88%, memory waiting 0.00%, io waiting 0.46%
--- 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-19T10:00:44.898Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-19T10:00:44.898Z level=INFO msg="startup phase done" phase=state_lock took=72µs
time=2026-11-19T10:00:44.898Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-19T10:00:44.898Z level=INFO msg="startup phase done" phase=claim_roots took=84µs
time=2026-11-19T10:00:44.898Z level=INFO msg="startup phase" phase=sweep
time=2026-11-19T10:00:44.926Z level=INFO msg="startup phase done" phase=sweep took=28.436ms
time=2026-11-19T10:00:44.926Z level=INFO msg="startup phase" phase=credentials
time=2026-11-19T10:00:44.927Z level=INFO msg="startup phase done" phase=credentials took=138µs
time=2026-11-19T10:00:44.927Z level=INFO msg="startup phase" phase=open_state
time=2026-11-19T10:00:44.966Z level=INFO msg="startup phase done" phase=open_state took=39.834ms
time=2026-11-19T10:00:44.967Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-19T10:00:44.968Z level=INFO msg=connecting host=127.0.0.1:37073 protocol=26
time=2026-11-19T10:00:44.972Z level=INFO msg=connected host=127.0.0.1:37073 took=3.138ms
time=2026-11-19T10:00:44.972Z level=INFO msg="capabilities gathering"
time=2026-11-19T10:00:44.972Z level=INFO msg="capabilities gathered" took=532µs tags=linux,claude,go
time=2026-11-19T10:00:44.973Z level=INFO msg="hello sent" protocol=26
time=2026-11-19T10:00:44.978Z level=INFO msg=welcome protocol=26 role=primary generation=1
time=2026-11-19T10:00:46.140Z 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.82s)

--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserEmptyExplore
=== RUN   TestBrowserEmptyExplore
time=2026-11-19T10:01:48.083Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-19T10:01:48.084Z level=INFO msg="startup phase done" phase=state_lock took=295µs
time=2026-11-19T10:01:48.084Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-19T10:01:48.084Z level=INFO msg="startup phase done" phase=claim_roots took=106µs
time=2026-11-19T10:01:48.084Z level=INFO msg="startup phase" phase=sweep
time=2026-11-19T10:01:48.113Z level=INFO msg="startup phase done" phase=sweep took=29.356ms
time=2026-11-19T10:01:48.113Z level=INFO msg="startup phase" phase=credentials
time=2026-11-19T10:01:48.114Z level=INFO msg="startup phase done" phase=credentials took=198µs
time=2026-11-19T10:01:48.114Z level=INFO msg="startup phase" phase=open_state
time=2026-11-19T10:01:48.158Z level=INFO msg="startup phase done" phase=open_state took=44.768ms
time=2026-11-19T10:01:48.159Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-19T10:01:48.161Z level=INFO msg=connecting host=127.0.0.1:46839 protocol=26
time=2026-11-19T10:01:48.163Z level=INFO msg=connected host=127.0.0.1:46839 took=924µs
time=2026-11-19T10:01:48.163Z level=INFO msg="capabilities gathering"
time=2026-11-19T10:01:48.163Z level=INFO msg="capabilities gathered" took=391µs tags=linux,claude,go
time=2026-11-19T10:01:48.168Z level=INFO msg="hello sent" protocol=26
time=2026-11-19T10:01:48.169Z level=INFO msg=welcome protocol=26 role=primary generation=1
time=2026-11-19T10:01:49.379Z level=INFO msg="connection checked" connection=claude-1 state=healthy
    browser_receipts_test.go:169: waiting for [...document.querySelectorAll('[equipo-markdown]:not([data-stream-text])')].some(e=>e.textContent.includes("I'm your coordinator")): context deadline exceeded (last evaluation: <nil>)
--- FAIL: TestBrowserEmptyExplore (5.90s)

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


receipt: test step 1m25.796s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 0 cached, 0 without tests, 1 failed
receipt: slow package 1m24.228s amadan.net/oficina/equipo/internal/headless
receipt: slow test 12.47s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 11.11s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 10.31s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 8.28s amadan.net/oficina/equipo/internal/headless TestBrowserRefreshRace
receipt: slow test 8.25s amadan.net/oficina/equipo/internal/headless TestBrowserNotebookLook
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 21d60b2feacaad9991a2d0dbb0484a4a9db6f26e 5.90s 50.93
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
##############################################################################
FLAKE ./internal/headless:TestBrowserThinkingAndCards browser-headless-rest 21d60b2feacaad9991a2d0dbb0484a4a9db6f26e 6.82s 50.93
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 40.11, cpu waiting 27.00%, memory waiting 0.00%, io waiting 0.45%
--- 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.873s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1.61s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 1.61s 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.165s 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.789s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 1.79s 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 2m59.527s 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 2m58.032s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 17.3s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.33s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 10.87s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 9.09s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 8.81s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessFinalOutcomes
machine: 32 CPUs, load 13.16, cpu waiting 7.46%, memory waiting 0.00%, io waiting 0.11%
--- 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.21s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.51s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 9.93s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 10.44s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 25.79s
+ 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   (77s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 13.42s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 26.23s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 21.11s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 14.02s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (23s)
ok ./internal/headless TestMixedVersions 21.15s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (2s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.77s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin   (1s)
ok ./internal/runner/thin TestRunnerCancelAndSupersede 0.05s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 51.45, cpu waiting 33.74%, memory waiting 0.00%, io waiting 0.77%
--- 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.154s 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.708s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 225ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 123ms 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.47s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.77s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 340ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 220ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 120ms 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.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 2.906s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 280ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 220ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 130ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicy
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
machine: 32 CPUs, load 11.99, cpu waiting 7.79%, memory waiting 0.00%, io waiting 2.19%
--- 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 35.2%, load 27.15
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.361s
machine: 32 CPUs, load 52.01, cpu waiting 32.10%, memory waiting 0.00%, io waiting 0.98%
--- 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 27.15
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 46.59, cpu waiting 27.46%, memory waiting 0.00%, io waiting 1.28%
--- 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 27.15
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 40.55, cpu waiting 19.83%, memory waiting 0.00%, io waiting 1.51%
--- 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 27.15
shard 28: make gitleaks
10:01AM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
10:01AM INF 986 commits scanned.
10:01AM INF scanned ~59027322 bytes (59.03 MB) in 19.5s
10:01AM INF no leaks found
machine: 32 CPUs, load 51.75, cpu waiting 28.78%, memory waiting 0.00%, io waiting 1.24%
=== 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.004ms, worst 1.067ms, budget 150ms
perf: GET /api/runner/protocol: median 74µs, worst 95µs, budget 150ms
perf: GET /api/v1/account-setups/{id}: median 576µs, worst 618µs, budget 150ms
perf: GET /api/v1/accounts: median 390µs, worst 432µs, budget 150ms
perf: GET /api/v1/auth/devices: median 434µs, worst 447µs, budget 150ms
perf: GET /api/v1/budgets: median 460µs, worst 507µs, budget 150ms
perf: GET /api/v1/capabilities: median 246µs, worst 295µs, budget 150ms
perf: GET /api/v1/cards/{id}: median 1.272ms, worst 1.311ms, budget 150ms
perf: GET /api/v1/connections: median 651µs, worst 677µs, budget 150ms
perf: GET /api/v1/connections/{id}: median 602µs, worst 636µs, budget 150ms
perf: GET /api/v1/conversation: median 965µs, worst 1.028ms, budget 150ms
perf: GET /api/v1/conversation/cards: median 1.418ms, worst 1.521ms, budget 150ms
perf: GET /api/v1/coordinator: median 1.853ms, worst 1.896ms, budget 150ms
perf: GET /api/v1/invites/{id}: median 485µs, worst 511µs, budget 150ms
perf: GET /api/v1/journey: median 7.452ms, worst 7.595ms, budget 150ms
perf: GET /api/v1/me: median 394µs, worst 456µs, budget 150ms
perf: GET /api/v1/me/settings: median 495µs, worst 523µs, budget 150ms
perf: GET /api/v1/needs-you: median 7.313ms, worst 7.402ms, budget 150ms
perf: GET /api/v1/notifications: median 1.642ms, worst 1.708ms, budget 150ms
perf: GET /api/v1/onboarding: median 375µs, worst 430µs, budget 150ms
perf: GET /api/v1/people: median 415µs, worst 467µs, budget 150ms
perf: GET /api/v1/playbooks: median 586µs, worst 631µs, budget 150ms
perf: GET /api/v1/playbooks/{id}: median 537µs, worst 575µs, budget 150ms
perf: GET /api/v1/playbooks/{id}/template-diff: median 886µs, worst 939µs, budget 150ms
perf: GET /api/v1/preferences: median 786µs, worst 883µs, budget 150ms
perf: GET /api/v1/projects/{id}: median 468µs, worst 513µs, budget 150ms
perf: GET /api/v1/projects/{id}/settings: median 707µs, worst 733µs, budget 150ms
perf: GET /api/v1/roster: median 532µs, worst 561µs, budget 150ms
perf: GET /api/v1/runners/{id}: median 439µs, worst 476µs, budget 150ms
perf: GET /api/v1/specialists: median 8.055ms, worst 8.168ms, budget 150ms
perf: GET /api/v1/specialists/{id}: median 7.937ms, worst 7.973ms, budget 150ms
perf: GET /api/v1/specialists/{id}/template-diff: median 878µs, worst 909µs, budget 150ms
perf: GET /api/v1/tasks/{id}/plan: median 1.137ms, worst 1.195ms, budget 150ms
perf: GET /api/v1/tasks/{id}/thread: median 729µs, worst 838µs, budget 150ms
perf: GET /api/v1/teams: median 490µs, worst 3.801ms, budget 150ms
perf: GET /api/v1/templates: median 602µs, worst 692µs, budget 150ms
perf: GET /api/v1/templates/{id}: median 459µs, worst 474µs, budget 150ms
perf: GET /auth/callback: median 79µs, worst 104µs, budget 150ms
perf: GET /auth/devices/{id}: median 3.131ms, worst 3.285ms, budget 150ms
perf: GET /auth/verify: median 80µs, worst 113µs, budget 150ms
perf: GET /connections: median 3.704ms, worst 3.792ms, budget 150ms
perf: GET /conversation: median 7.586ms, worst 7.819ms, budget 150ms
perf: GET /conversation/connections: median 244µs, worst 256µs, budget 150ms
perf: GET /conversation/notebook: median 233µs, worst 266µs, budget 150ms
perf: GET /conversation/settings: median 3.889ms, worst 3.969ms, budget 150ms
perf: GET /conversation/settings/connections: median 5.694ms, worst 5.801ms, budget 150ms
perf: GET /conversation/settings/connections/add: median 5.934ms, worst 5.978ms, budget 150ms
perf: GET /conversation/settings/copy: median 3.323ms, worst 3.501ms, budget 150ms
perf: GET /conversation/settings/housekeeping: median 4.053ms, worst 6.173ms, budget 150ms
perf: GET /conversation/settings/machines: median 4.16ms, worst 4.439ms, budget 150ms
perf: GET /conversation/settings/machines/add: median 4.089ms, worst 4.282ms, budget 150ms
perf: GET /conversation/settings/notebook: median 3.105ms, worst 3.211ms, budget 150ms
perf: GET /conversation/settings/thinking: median 3.622ms, worst 3.724ms, budget 150ms
perf: GET /housekeeping: median 3.506ms, worst 3.586ms, budget 150ms
perf: GET /invites/new: median 576µs, worst 610µs, budget 150ms
perf: GET /invites/{id}: median 613µs, worst 654µs, budget 150ms
perf: GET /jobs: median 3.04ms, worst 3.137ms, budget 150ms
perf: GET /jobs/{id}: median 4.168ms, worst 4.372ms, budget 150ms
perf: GET /journey: median 13.55ms, worst 16.401ms, budget 150ms
perf: GET /nav/rail: median 3.359ms, worst 3.44ms, budget 150ms
perf: GET /needs-you: median 13.726ms, worst 13.907ms, budget 150ms
perf: GET /onboarding: median 4.484ms, worst 4.594ms, budget 150ms
perf: GET /people: median 3.705ms, worst 3.794ms, budget 150ms
perf: GET /playbook-suggestions/{suggestion}: median 4.192ms, worst 4.377ms, budget 150ms
perf: GET /playbooks: median 3.824ms, worst 3.988ms, budget 150ms
perf: GET /playbooks/new: median 3.954ms, worst 4.051ms, budget 150ms
perf: GET /playbooks/{id}: median 4.36ms, worst 4.51ms, budget 150ms
perf: GET /playbooks/{id}/edit: median 4.35ms, worst 4.637ms, budget 150ms
perf: GET /playbooks/{id}/template-diff: median 3.867ms, worst 5.399ms, budget 150ms
perf: GET /preferences: median 4.377ms, worst 4.554ms, budget 150ms
perf: GET /preferences/sources/{source}: median 3.853ms, worst 4.098ms, budget 150ms
perf: GET /projects: median 4.991ms, worst 5.156ms, budget 150ms
perf: GET /projects/accounts: median 3.567ms, worst 3.603ms, budget 150ms
perf: GET /projects/new: median 3.462ms, worst 3.603ms, budget 150ms
perf: GET /projects/{id}: median 11.778ms, worst 12.153ms, budget 150ms
perf: GET /projects/{id}/edit: median 3.769ms, worst 3.939ms, budget 150ms
perf: GET /runners/enrol: median 4.463ms, worst 4.592ms, budget 150ms
perf: GET /settings: median 3.324ms, worst 3.445ms, budget 150ms
perf: GET /settings/coordinator: median 5.842ms, worst 8.814ms, budget 150ms
perf: GET /settings/devices: median 3.189ms, worst 3.304ms, budget 150ms
perf: GET /settings/recovery: median 3.403ms, worst 3.521ms, budget 150ms
perf: GET /settings/recovery/release: median 3.442ms, worst 3.631ms, budget 150ms
perf: GET /settings/thinking: median 254µs, worst 269µs, budget 150ms
perf: GET /signin: median 322µs, worst 387µs, budget 150ms
perf: GET /specialists/new: median 3.223ms, worst 3.32ms, budget 150ms
perf: GET /specialists/{key}: median 10.615ms, worst 10.953ms, budget 150ms
perf: GET /specialists/{key}/edit: median 3.362ms, worst 3.451ms, budget 150ms
perf: GET /specialists/{key}/template-diff: median 3.464ms, worst 3.591ms, budget 150ms
perf: GET /tasks: median 4.799ms, worst 4.956ms, budget 150ms
perf: GET /tasks/new: median 3.097ms, worst 3.268ms, budget 150ms
perf: GET /tasks/{id}: median 5.858ms, worst 8.313ms, budget 150ms
perf: GET /tasks/{id}/merge: median 4.862ms, worst 4.979ms, budget 150ms
perf: GET /tasks/{id}/move: median 4.384ms, worst 4.479ms, budget 150ms
perf: GET /tasks/{id}/plan: median 5.838ms, worst 5.912ms, budget 150ms
perf: GET /tasks/{id}/questions/{question}: median 5.468ms, worst 5.552ms, budget 150ms
perf: GET /tasks/{id}/rendered-change: median 4.472ms, worst 4.53ms, budget 150ms
perf: GET /tasks/{id}/rendered-change/{hash}.png: median 4.119ms, worst 4.199ms, budget 150ms
perf: GET /tasks/{id}/thread: median 8.087ms, worst 8.324ms, budget 150ms
perf: GET /team/{specialist}: median 4.248ms, worst 4.356ms, budget 150ms
perf: GET /teams: median 10.549ms, worst 12.897ms, budget 150ms
perf: GET /templates: median 3.392ms, worst 3.455ms, budget 150ms
perf: GET /usage: median 4.197ms, worst 4.387ms, budget 150ms
perf: GET /work: median 3.078ms, worst 3.182ms, budget 150ms
perf: cold boot: median 256ms of [254.5748ms 256.210055ms 256.827954ms], budget 500ms

receipt: test step 37.639s 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.765s 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.95s 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.21 GiB in 19135 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 92614a7b..fd50c45b 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 21165 - Shared web views; persisted approval navigation, visible access continuations and the CARLOS mail submission boot. Measured 21165 source lines.
+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/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 30749 - Transactional access visit, reconnect catch-up, continuation presentation and the Assistant carrying on after a connect. Measured 30749 source lines.
+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.
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 - 31460 Shared instance/browser fixtures, access reload and resume, queue and byline guards, native device fixtures, the Assistant carrying on after a connect. Measured 31460 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.
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/assistant_http.go b/internal/equipo/chat/assistant_http.go
index c9ec1971..d9ca15bb 100644
--- a/internal/equipo/chat/assistant_http.go
+++ b/internal/equipo/chat/assistant_http.go
@@ -18,6 +18,7 @@ import (
func (h *HTTP) MountAssistant(r chi.Router) {
lane := h.Store.Lane(wire.LaneAssistant)
r.Get("/snapshot", h.bearer(func(w http.ResponseWriter, r *http.Request, p personapi.PersonPrincipal) {
+ h.oficinaCatchUp(r, p)
h.warmAssistant(r, p)
out, err := lane.Snapshot(r.Context(), p.Address)
if err != nil {
@@ -39,6 +40,7 @@ func (h *HTTP) MountAssistant(r chi.Router) {
h.assistantAnswer(w, r, p, lane)
}))
r.Get("/events", h.bearer(func(w http.ResponseWriter, r *http.Request, p personapi.PersonPrincipal) {
+ h.oficinaCatchUp(r, p)
h.warmAssistant(r, p)
h.stream(w, r, p, lane.lane, lane.Events)
}))
@@ -91,6 +93,17 @@ func (h *HTTP) oficinaConnect(w http.ResponseWriter, r *http.Request, p personap
writeJSON(w, 200, map[string]string{"url": url})
}
+// oficinaCatchUp settles what a failed settlement left open, before the
+// lane is read. The read never waits on it failing.
+func (h *HTTP) oficinaCatchUp(r *http.Request, p personapi.PersonPrincipal) {
+ if h.OficinaCatchUp == nil {
+ return
+ }
+ if err := h.OficinaCatchUp(r.Context(), p.Address); err != nil && h.Logger != nil {
+ h.Logger.Warn("oficina catch-up", "err", err)
+ }
+}
+
// warmAssistant asks the person's runner to warm their Assistant: Base
// read its snapshot or opened its stream, so they are about to use it.
// The read never waits on it failing.
diff --git a/internal/equipo/chat/assistant_tools.go b/internal/equipo/chat/assistant_tools.go
index c60847af..66d7b405 100644
--- a/internal/equipo/chat/assistant_tools.go
+++ b/internal/equipo/chat/assistant_tools.go
@@ -636,7 +636,8 @@ func (s *Store) runRemote(ctx context.Context, row toolCallRecord) (res wire.Too
}
// asked: the call's turn is one the person started, or the turn queued
-// after they connected (carryOn), which carries on their request; or op
+// after they connected the Oficina apps (carryOn), which carries on
+// their request; or op
// is one of the team's updateWrites in a team_update turn (which job it
// may touch is the operation's own check).
func (s *Store) asked(ctx context.Context, row toolCallRecord, op assist.Operation) (bool, error) {
@@ -646,7 +647,7 @@ func (s *Store) asked(ctx context.Context, row toolCallRecord, op assist.Operati
if err := tx.Model(&turnRecord{}).Where("id = ? AND person = ?", row.TurnID, row.Person).Pluck("coalesce(kind, '')", &kinds).Error; err != nil {
return err
}
- return tx.Model(&connectTurnRecord{}).Where("turn_id = ? AND person = ?", row.TurnID, row.Person).Count(&resumed).Error
+ return tx.Model(&connectTurnRecord{}).Where("turn_id = ? AND person = ? AND card_id IN (SELECT id FROM chat_cards WHERE person = ? AND kind = ? AND name = ?)", row.TurnID, row.Person, row.Person, wire.CardConnect, OficinaProvider).Count(&resumed).Error
})
if err != nil || len(kinds) != 1 {
return false, err
diff --git a/internal/equipo/chat/connect.go b/internal/equipo/chat/connect.go
index 8eedcf4d..c83298b8 100644
--- a/internal/equipo/chat/connect.go
+++ b/internal/equipo/chat/connect.go
@@ -6,8 +6,14 @@ import (
"time"
"amadan.net/oficina/equipo/internal/wire"
+ "gorm.io/gorm"
)
+// OficinaProvider is the Oficina apps' provider name. Only their
+// connect cards carry the person's request on once they connect
+// (carryOn): the note names them.
+const OficinaProvider = "oficina"
+
// ConnectCard is the Assistant card the instance raises when the person
// asked for something a provider does and has not connected it: the
// question and one link, to start connecting. Provider is kept on the
@@ -77,7 +83,7 @@ func (connectTurnRecord) TableName() string { return "chat_connect_turns" }
// SettleConnect resolves the person's open connect cards for provider:
// they connected it. The Assistant then carries on by itself (ruling
-// 2026-11-19): one team_update turn in their Assistant lane, queued
+// 2026-11-19), for the Oficina apps only: one team_update turn in their Assistant lane, queued
// behind any turn in flight, whose note (noteConnected) has it finish
// the request that needed the provider. The newest card is the turn's
// key, so a card settled again queues nothing more. A person no longer
@@ -97,13 +103,22 @@ func (s *Store) SettleConnect(ctx context.Context, person, provider string) erro
return err
}
}
- if len(cards) == 0 {
+ if len(cards) == 0 || provider != OficinaProvider {
return nil
}
return t.carryOn(cards[len(cards)-1])
})
}
+// ConnectOpen says the person has an open connect card for provider.
+func (s *Store) ConnectOpen(ctx context.Context, person, provider string) (bool, error) {
+ var n int64
+ err := s.read(ctx, func(tx *gorm.DB) error {
+ return tx.Model(&cardRecord{}).Where("person = ? AND lane = ? AND kind = ? AND name = ? AND state = ?", person, wire.LaneAssistant, wire.CardConnect, provider, wire.CardOpen).Count(&n).Error
+ })
+ return n > 0, err
+}
+
// carryOn queues the Assistant's turn after card was settled, once per
// card.
func (t *txn) carryOn(card cardRecord) error {
diff --git a/internal/equipo/chat/http.go b/internal/equipo/chat/http.go
index 412d1b5e..05155197 100644
--- a/internal/equipo/chat/http.go
+++ b/internal/equipo/chat/http.go
@@ -42,6 +42,10 @@ type HTTP struct {
// expired, unavailable), or ErrForbidden when the consent was another
// person's.
OficinaFinish func(ctx context.Context, person, state, code string) (string, error)
+ // OficinaCatchUp settles an Oficina connect card left open for a
+ // person who is connected (a finish whose settlement failed), when
+ // Base reads the Assistant lane. Nil without oficina-connect.
+ OficinaCatchUp func(ctx context.Context, person string) error
}
// thinOr serves thin when it applies to the request, else the earlier
diff --git a/internal/equipo/chat_wiring.go b/internal/equipo/chat_wiring.go
index b3bbe889..278cf891 100644
--- a/internal/equipo/chat_wiring.go
+++ b/internal/equipo/chat_wiring.go
@@ -167,7 +167,7 @@ func (s *Store) chatHTTP(authenticate func(*http.Request) (personapi.PersonPrinc
return chat.RunnerPrincipal{RunnerID: p.RunnerID, Person: p.Person, CredentialID: p.CredentialID}, nil
}}
if s.oficina != nil {
- h.OficinaConnect, h.OficinaFinish = s.oficinaConnect, s.oficinaFinish
+ h.OficinaConnect, h.OficinaFinish, h.OficinaCatchUp = s.oficinaConnect, s.oficinaFinish, s.oficinaCatchUp
}
return h
}
diff --git a/internal/equipo/oficina_connect.go b/internal/equipo/oficina_connect.go
index bf9731b3..1ab8f40f 100644
--- a/internal/equipo/oficina_connect.go
+++ b/internal/equipo/oficina_connect.go
@@ -24,7 +24,7 @@ import (
// person's browser takes to connect (the card's link, then connect's
// redirect back) and to disconnect.
const (
- oficinaProvider = "oficina"
+ oficinaProvider = chat.OficinaProvider
oficinaStartPath = "/oficina/connect/start"
oficinaCallbackPath = "/oficina/connect/callback"
oficinaDisconnectPath = "/oficina/connect/disconnect"
@@ -201,7 +201,9 @@ func (s *Store) oficinaFinish(ctx context.Context, person, state, code string) (
}
// oficinaFinished is a finished consent's status. Connected, the
-// person's lists are read afresh and their connect card settled.
+// person's lists are read afresh and their connect card settled; a
+// settlement that fails is caught up on their next read of the
+// Assistant lane (oficinaCatchUp).
func (s *Store) oficinaFinished(ctx context.Context, person string, err error) (string, error) {
switch {
case errors.Is(err, oficina.ErrNotYours):
@@ -220,6 +222,24 @@ func (s *Store) oficinaFinished(ctx context.Context, person string, err error) (
return "connected", nil
}
+// 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.
+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
+ }
+ return s.Chat().SettleConnect(ctx, person, oficinaProvider)
+}
+
// 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/thintest/assistant_oficina_resume_contract_test.go b/internal/thintest/assistant_oficina_resume_contract_test.go
index aff5835a..09c0cd99 100644
--- a/internal/thintest/assistant_oficina_resume_contract_test.go
+++ b/internal/thintest/assistant_oficina_resume_contract_test.go
@@ -6,8 +6,10 @@ import (
"net/url"
"slices"
"strings"
+ "sync"
"testing"
+ "amadan.net/oficina/equipo/internal/equipo/chat"
"amadan.net/oficina/equipo/internal/wire"
)
@@ -204,3 +206,118 @@ func TestContractAssistantOficinaNoResumeUnlessConnected(t *testing.T) {
t.Errorf("%d resume turns once connected", n)
}
}
+
+// TestContractAssistantOficinaResumeRecovers: a finish whose settlement
+// fails after the connection is saved still says connected, and a
+// replay is expired; the person's next snapshot settles the card left
+// open and queues the one resume turn, and the one after adds nothing.
+func TestContractAssistantOficinaResumeRecovers(t *testing.T) {
+ o := newOficinaRig(t)
+ tr := &teamRig{o.opsRig}
+ 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)
+ }
+ status, state, code := o.finish()
+ if status != "connected" {
+ t.Fatalf("finish: %q", status)
+ }
+ if n := o.resumes(); n != 0 {
+ t.Fatalf("%d resume turns through the injected failure", n)
+ }
+ if _, err := db.Exec("DROP TRIGGER inject_settle"); err != nil {
+ t.Fatal(err)
+ }
+ if again, err := o.a.OficinaFinish(o.ctx, state, code); err != nil || again != "expired" {
+ t.Fatalf("replayed finish: %q %v", again, err)
+ }
+ if n := o.rows("SELECT count(*) FROM chat_cards WHERE kind = ? AND state = ?", wire.CardConnect, wire.CardOpen); n != 1 {
+ t.Fatalf("%d open connect cards before the snapshot", n)
+ }
+ o.connectCards() // the person's next snapshot
+ if n := o.resumes(); n != 1 {
+ t.Fatalf("%d resume turns after the snapshot", n)
+ }
+ if cards := o.connectCards(); len(cards) != 1 || cards[0].State != wire.CardResolved {
+ t.Errorf("cards: %+v", cards)
+ }
+ if u := tr.message(wire.LaneAssistant); u.Kind != wire.TurnTeamUpdate || !strings.Contains(u.Text, resumeMarker) {
+ t.Fatalf("resume frame: %+v", u)
+ }
+ if n := o.resumes(); n != 1 {
+ t.Errorf("%d resume turns after another snapshot", n)
+ }
+}
+
+// TestContractAssistantOficinaResumeOnlyOficina: a connect card for
+// another provider settles with no turn queued, and a resume turn whose
+// card is not an Oficina one is granted no write.
+func TestContractAssistantOficinaResumeOnlyOficina(t *testing.T) {
+ o := newOficinaRig(t)
+ tr := &teamRig{o.opsRig}
+ c := o.inst.Store.Chat()
+ if open, err := c.RaiseConnect(o.ctx, Owner, chat.ConnectCard{Provider: "elsewhere", Question: "Connect", Link: wire.CardLink{Label: "Connect", URL: "https://elsewhere.example.com"}}); err != nil || !open {
+ t.Fatalf("raise: %v %v", open, err)
+ }
+ if err := c.SettleConnect(o.ctx, Owner, "elsewhere"); err != nil {
+ t.Fatal(err)
+ }
+ if n := o.rows("SELECT count(*) FROM chat_cards WHERE kind = ? AND name = ? AND state = ?", wire.CardConnect, "elsewhere", wire.CardResolved); n != 1 {
+ t.Fatalf("another provider's card not settled: %d", n)
+ }
+ if n := o.rows("SELECT count(*) FROM chat_turns WHERE kind = ?", wire.TurnTeamUpdate); n != 0 {
+ t.Fatalf("%d turns queued for another provider", n)
+ }
+
+ o.asked("Put lunch with Ana in my calendar on Friday.")
+ if status, _, _ := o.finish(); status != "connected" {
+ t.Fatalf("finish: %q", status)
+ }
+ u := tr.message(wire.LaneAssistant)
+ if _, err := o.inst.DB.Writer().Exec("UPDATE chat_cards SET name = ? WHERE kind = ? AND name = ?", "elsewhere", wire.CardConnect, "oficina"); err != nil {
+ t.Fatal(err)
+ }
+ tr.in(u.TurnID, func() {
+ if res := o.use("w1", "calendar_create_event", map[string]any{"title": "Lunch with Ana", "start_local": "2026-11-20T13:00"}); !res.IsError || res.Code != "not_asked" {
+ t.Fatalf("write for another provider's card: %+v", res)
+ }
+ })
+}
+
+// TestContractAssistantOficinaResumeConcurrent: settlements racing on
+// the same open card queue one turn, one grant record and one dispatch.
+func TestContractAssistantOficinaResumeConcurrent(t *testing.T) {
+ o := newOficinaRig(t)
+ o.asked("Put lunch with Ana in my calendar on Friday.")
+ c := o.inst.Store.Chat()
+ const n = 8
+ start := make(chan struct{})
+ errs := make(chan error, n)
+ var wg sync.WaitGroup
+ for range n {
+ wg.Add(1)
+ go func() {
+ defer wg.Done()
+ <-start
+ errs <- c.SettleConnect(o.ctx, Owner, "oficina")
+ }()
+ }
+ close(start)
+ wg.Wait()
+ close(errs)
+ for err := range errs {
+ if err != nil {
+ t.Errorf("settle: %v", err)
+ }
+ }
+ if got := o.resumes(); got != 1 {
+ t.Errorf("%d resume turns", got)
+ }
+ if got := o.rows("SELECT count(*) FROM chat_connect_turns"); got != 1 {
+ t.Errorf("%d grant records", got)
+ }
+ if got := o.rows("SELECT count(*) FROM runner_commands WHERE kind = ? AND body LIKE ?", wire.FrameMessage, "%"+resumeMarker+"%"); got != 1 {
+ t.Errorf("%d resume dispatches", got)
+ }
+}