oficina / equipo Public

Carry on the person's request after they connect Oficina

Ruling 2026-11-19: once a connect card resolves as connected, the
Assistant finishes the request that needed the apps by itself, and no
message the person did not type appears in the lane.

SettleConnect, in the same transaction that checks the roster and
resolves the card, queues one team_update turn in the person's Assistant
lane (carryOn) with a model-facing note (noteConnected), dispatched
through dispatchNext so it waits behind any turn in flight. The newest
card's id keys it in the new chat_connect_turns table (migration 0092),
so a repeated finish or a card settled again queues nothing more. Denied,
expired and unavailable finishes never reach SettleConnect.

That turn may make writes as the person's own turn could (asked), since
it carries on their request; job team_update turns are unchanged. No
wire-protocol or runner change: the runner already frames team_update
notes.

Contract tests cover connect, replay, waiting behind a running turn,
denied/unavailable/expired and the roster check. Budgets raised to the
measured sizes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev 11fe97998a732086b5b69b144cced1996c3838f8 parent 8233696
9 files changed, +278 −11
  • .rastrillo/budgets.txt +2 −2
  • internal/equipo/chat/assistant_tools.go +10 −5
  • internal/equipo/chat/connect.go +46 −3
  • internal/equipo/chat/models.go +1 −1
  • internal/equipo/chat/tools.go +3 −0
  • internal/equipo/migrations/0092_assistant_connect_turns.sql +5 −0
  • internal/equipo/migrations/schema.sql +2 −0
  • internal/thintest/assistant_oficina_contract_test.go +3 −0
  • internal/thintest/assistant_oficina_resume_contract_test.go +206 −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   85G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type  Size Avail | ext4   96G   85G
ci-box: bwrap: fetched and verified in 0.3s
ci-box: claude: fetched and verified in 2.5s
ci-box: codex: fetched and verified in 3.4s
ci-box: codex-code-mode-host: fetched and verified in 1.3s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.3s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: image pulled in 9.9s
ci-box: pi: installed and verified in 7.5s
ci-box: opencode: installed and verified in 2.3s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 8.9s
ci-box: clone deepened in 4.3s
ci-box: file times set from content: 2668 files, 172 directories
ci-box: ready in 18.7s
=== 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.246s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  3.7s
+ go list -export -test -tags testbuild -f  ./...
  3.6s
+ go list -export -test -tags browser,testbuild -f  ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
  2.8s
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 1m27.418s 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 1m25.509s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m25.51s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 52.71, cpu waiting 35.45%, memory waiting 0.00%, io waiting 1.50%
--- 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 1m30.773s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m28.788s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m28.79s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 52.71, cpu waiting 35.34%, memory waiting 0.00%, io waiting 1.45%
--- 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 1m31.574s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m29.317s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m18.04s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 6.16s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 5.11s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 51.61, cpu waiting 35.20%, memory waiting 0.00%, io waiting 1.41%
--- 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 1m26.877s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m25.172s amadan.net/oficina/equipo/internal/headless
receipt: slow test 43.68s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 21.28s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 10.59s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
receipt: slow test 9.61s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
machine: 32 CPUs, load 52.71, cpu waiting 35.47%, memory waiting 0.00%, io waiting 1.56%
--- 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 1m44.468s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m42.316s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m5.25s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 12.02s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 10.22s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 8.97s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 5.84s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 46.30, cpu waiting 30.41%, memory waiting 0.00%, io waiting 1.15%
--- 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 3m12.107s 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 3m9.881s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m51.49s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 23.95s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 11.4s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 8.07s amadan.net/oficina/equipo/internal/headless TestHeadlessClaudeSignIn
receipt: slow test 7.34s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
machine: 32 CPUs, load 13.41, cpu waiting 7.14%, memory waiting 0.00%, io waiting 0.26%
--- 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 1m59.545s 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 1m57.192s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 7.9s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.74s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 5.54s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 3.62s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 2.52s amadan.net/oficina/equipo/internal/thintest TestResearchDoneFallsBack
machine: 32 CPUs, load 37.57, cpu waiting 24.27%, memory waiting 0.00%, io waiting 0.91%
--- 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 1m12.814s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m10.993s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 6.86s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 3.85s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 2.35s amadan.net/oficina/equipo/internal/thintest TestContractPreview
receipt: slow test 2.14s amadan.net/oficina/equipo/internal/thintest TestContractHostedBindingRules
receipt: slow test 1.77s amadan.net/oficina/equipo/internal/thintest TestContractTokenConnection
machine: 32 CPUs, load 54.00, cpu waiting 35.11%, memory waiting 0.00%, io waiting 1.97%
--- 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 4m25.278s, over the 45s its record on line 44 allows; reported only, timing fails on CI

receipt: test step 4m37.922s 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 4m25.278s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 36.82s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 36.81s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.66s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 18.4s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 7.09s amadan.net/oficina/equipo/internal/runner/thin TestOpenCodeStepsRealOpenCode
machine: 32 CPUs, load 4.22, cpu waiting 1.70%, memory waiting 0.00%, io waiting 0.05%
--- shard 9 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-bug: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$' ./internal/runner
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed

receipt: test step 50.436s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 49.181s amadan.net/oficina/equipo/internal/runner
receipt: slow test 29.15s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.03s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 47.97, cpu waiting 30.35%, memory waiting 0.00%, io waiting 2.84%
--- 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 59.141s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 57.006s amadan.net/oficina/equipo/internal/runner
receipt: slow test 46.93s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 42.5s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.42s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.63s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 51.95, cpu waiting 33.83%, memory waiting 0.00%, io waiting 2.48%
--- shard 11 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-rest: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$|^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed

receipt: test step 35.891s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 34.889s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.11s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.41s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.11s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.67s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestReportPostsRetryExactRequest
machine: 32 CPUs, load 36.98, cpu waiting 20.31%, memory waiting 0.00%, io waiting 3.59%
--- shard 12 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-a started 30s late; cpu waiting 36.6%, load 25.68
test lane equipotest-a: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test[A-D]|^TestQ' ./internal/equipotest

receipt: test step 1m6.214s 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.337s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 26.91s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 26.87s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 24.71s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 22.06s amadan.net/oficina/equipo/internal/equipotest TestAuthorityFailureIsNotRevocation
receipt: slow test 22.02s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
machine: 32 CPUs, load 48.68, cpu waiting 34.28%, memory waiting 0.00%, io waiting 1.31%
--- shard 13 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-e started 30s late; cpu waiting 36.6%, load 25.68
test lane equipotest-e: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test[E-P]' ./internal/equipotest

receipt: test step 1m14.137s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m12.302s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 19.05s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
receipt: slow test 19s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
receipt: slow test 18.97s amadan.net/oficina/equipo/internal/equipotest TestProjectsSharedAndGrouped
receipt: slow test 18.91s amadan.net/oficina/equipo/internal/equipotest TestProjectsReopen
receipt: slow test 18.88s amadan.net/oficina/equipo/internal/equipotest TestProjectOwnersAreMembers
machine: 32 CPUs, load 46.30, cpu waiting 30.41%, memory waiting 0.00%, io waiting 1.15%
--- shard 14 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-r started 30s late; cpu waiting 36.6%, load 25.68
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.878s 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.54s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 14.96s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 12.94s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 10.04s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 9.91s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 6.92s amadan.net/oficina/equipo/internal/equipotest TestRosterProtectsLastOwner
machine: 32 CPUs, load 46.30, cpu waiting 31.37%, memory waiting 0.00%, io waiting 1.19%
--- shard 15 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-rest started 30s late; cpu waiting 36.6%, load 25.68
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.795s 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.808s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 24.16s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 23.42s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 23.41s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 21.61s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedOnce
receipt: slow test 21.59s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsUpgrade
machine: 32 CPUs, load 48.68, cpu waiting 34.28%, memory waiting 0.00%, io waiting 1.31%
--- shard 16 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: plan3test started 30s late; cpu waiting 36.6%, load 25.68
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 51.526s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 49.545s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.51s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.49s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.64s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.53s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.18s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorDefinitiveRefusalReleasesQueue
machine: 32 CPUs, load 53.73, cpu waiting 34.99%, memory waiting 0.00%, io waiting 1.66%
--- shard 17 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: rest started 30s late; cpu waiting 36.6%, load 25.68
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/runner/checks: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/workspace: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runnerproto: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/testci: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/containment: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/pi: its inputs changed
budget note: internal/equipo took 19.902s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/idtest took 39.062s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/runner/containment took 47.857s, over the 15s its record on line 40 allows; reported only, timing fails on CI

receipt: test step 2m29.574s against a 60s target (the gate's other steps are not in this figure)
receipt: 20 packages ran, 38 cached, 18 without tests, 0 failed
receipt: slow package 1m4.059s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 53.955s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 49.975s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 47.857s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow package 39.062s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 26.26s amadan.net/oficina/equipo/internal/runner/provider/opencode TestOpenCodeAcceptanceHostileRepository
receipt: slow test 20.21s amadan.net/oficina/equipo/internal/runner/containment TestEngineeringOfflineGo
receipt: slow test 15.21s amadan.net/oficina/equipo/cmd/equipo-runner TestReleaseRunnerHasNoFakeWorker
receipt: slow test 11.11s amadan.net/oficina/equipo/internal/runner/containment TestEngineeringMissingModuleCache
receipt: slow test 10.81s amadan.net/oficina/equipo/internal/idtest TestIDCallbackGuardAndPendingNonce
machine: 32 CPUs, load 16.75, cpu waiting 8.72%, memory waiting 0.00%, io waiting 0.32%
--- 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 TestBrowserChatSendStaysOnPage
=== RUN   TestBrowserChatSendStaysOnPage
time=2026-11-19T09:04:43.232Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-19T09:04:43.233Z level=INFO msg="startup phase done" phase=state_lock took=303µs
time=2026-11-19T09:04:43.233Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-19T09:04:43.234Z level=INFO msg="startup phase done" phase=claim_roots took=1.086ms
time=2026-11-19T09:04:43.234Z level=INFO msg="startup phase" phase=sweep
time=2026-11-19T09:04:43.271Z level=INFO msg="startup phase done" phase=sweep took=37.379ms
time=2026-11-19T09:04:43.272Z level=INFO msg="startup phase" phase=credentials
time=2026-11-19T09:04:43.272Z level=INFO msg="startup phase done" phase=credentials took=218µs
time=2026-11-19T09:04:43.272Z level=INFO msg="startup phase" phase=open_state
time=2026-11-19T09:04:43.319Z level=INFO msg="startup phase done" phase=open_state took=46.617ms
time=2026-11-19T09:04:43.319Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-19T09:04:43.321Z level=INFO msg=connecting host=127.0.0.1:37205 protocol=26
time=2026-11-19T09:04:43.323Z level=INFO msg=connected host=127.0.0.1:37205 took=1.639ms
time=2026-11-19T09:04:43.323Z level=INFO msg="capabilities gathering"
time=2026-11-19T09:04:43.323Z level=INFO msg="capabilities gathered" took=589µs tags=linux,claude,go
time=2026-11-19T09:04:43.324Z level=INFO msg="hello sent" protocol=26
time=2026-11-19T09:04:43.330Z level=INFO msg=welcome protocol=26 role=primary generation=1
time=2026-11-19T09:04:45.394Z level=INFO msg="connection checked" connection=claude-1 state=healthy
    browser_test.go:108: waiting for [...document.querySelectorAll('[equipo-message="incoming"] [equipo-markdown]:not([data-stream-text])')].some(e=>e.textContent.includes('fake coordinator')): context deadline exceeded (last evaluation: <nil>)
--- FAIL: TestBrowserChatSendStaysOnPage (6.21s)

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


receipt: test step 1m26.418s 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.897s amadan.net/oficina/equipo/internal/headless
receipt: slow test 38.99s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 15.55s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 11.33s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.92s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 6.21s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
exit status 1
+ go test -tags browser,testbuild -timeout 15m -run '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$' -v -run '^TestBrowserChatSendStaysOnPage$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserChatSendStaysOnPage browser-headless-chat 11fe97998a732086b5b69b144cced1996c3838f8 6.21s 52.71
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 51.61, cpu waiting 34.80%, memory waiting 0.00%, io waiting 1.36%
--- shard 19 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-work: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$' ./internal/headless
rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
=== RUN   TestBrowserRailFollowsWork
time=2026-11-19T09:04:27.729Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-19T09:04:27.729Z level=INFO msg="startup phase done" phase=state_lock took=285µs
time=2026-11-19T09:04:27.729Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-19T09:04:27.730Z level=INFO msg="startup phase done" phase=claim_roots took=358µs
time=2026-11-19T09:04:27.730Z level=INFO msg="startup phase" phase=sweep
time=2026-11-19T09:04:27.759Z level=INFO msg="startup phase done" phase=sweep took=29.444ms
time=2026-11-19T09:04:27.759Z level=INFO msg="startup phase" phase=credentials
time=2026-11-19T09:04:27.760Z level=INFO msg="startup phase done" phase=credentials took=198µs
time=2026-11-19T09:04:27.760Z level=INFO msg="startup phase" phase=open_state
time=2026-11-19T09:04:27.802Z level=INFO msg="startup phase done" phase=open_state took=42.052ms
time=2026-11-19T09:04:27.802Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-19T09:04:27.803Z level=INFO msg=connecting host=127.0.0.1:37251 protocol=26
time=2026-11-19T09:04:27.804Z level=INFO msg=connected host=127.0.0.1:37251 took=905µs
time=2026-11-19T09:04:27.804Z level=INFO msg="capabilities gathering"
time=2026-11-19T09:04:27.805Z level=INFO msg="capabilities gathered" took=435µs tags=linux,claude,go
time=2026-11-19T09:04:27.809Z level=INFO msg="hello sent" protocol=26
time=2026-11-19T09:04:27.810Z level=INFO msg=welcome protocol=26 role=primary generation=1
time=2026-11-19T09:04:29.131Z level=INFO msg="connection checked" connection=claude-1 state=healthy
time=2026-11-19T09:04:38.222Z level=INFO msg="kept sessions" kept=1 bytes=1842 expired=0
time=2026-11-19T09:04:42.683Z level=INFO msg="kept sessions" kept=2 bytes=3243 expired=0
time=2026-11-19T09:04:43.570Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-19T09:04:43.570Z level=INFO msg="startup phase done" phase=state_lock took=269µs
time=2026-11-19T09:04:43.570Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-19T09:04:43.570Z level=INFO msg="startup phase done" phase=claim_roots took=109µs
time=2026-11-19T09:04:43.570Z level=INFO msg="startup phase" phase=sweep
time=2026-11-19T09:04:43.603Z level=INFO msg="startup phase done" phase=sweep took=32.546ms
time=2026-11-19T09:04:43.603Z level=INFO msg="startup phase" phase=credentials
time=2026-11-19T09:04:43.603Z level=INFO msg="startup phase done" phase=credentials took=100µs
time=2026-11-19T09:04:43.603Z level=INFO msg="startup phase" phase=open_state
time=2026-11-19T09:04:43.653Z level=INFO msg="startup phase done" phase=open_state took=50.13ms
time=2026-11-19T09:04:43.654Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-19T09:04:43.655Z level=INFO msg=connecting host=127.0.0.1:39593 protocol=26
time=2026-11-19T09:04:43.657Z level=INFO msg=connected host=127.0.0.1:39593 took=2.113ms
time=2026-11-19T09:04:43.657Z level=INFO msg="capabilities gathering"
time=2026-11-19T09:04:43.658Z level=INFO msg="capabilities gathered" took=557µs tags=linux,claude,go
time=2026-11-19T09:04:43.660Z level=INFO msg="hello sent" protocol=26
time=2026-11-19T09:04:43.664Z level=INFO msg=welcome protocol=26 role=primary generation=1
time=2026-11-19T09:04:45.594Z level=INFO msg="connection checked" connection=claude-1 state=healthy
    browser_review_test.go:57: waiting for document.querySelector('#rail [data-specialist="engineering"]')?.dataset.state==='working' && document.querySelector('#rail [data-specialist="engineering"]').querySelector('[equipo-nav-task]')?.textContent==='Slow sidebar change' && document.querySelector('#nav-tasks [data-count]')?.textContent==='1': context deadline exceeded (last evaluation: context deadline exceeded)
time=2026-11-19T09:04:49.863Z level=WARN msg="step account" err="context canceled"
--- FAIL: TestBrowserRailFollowsWork (22.70s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m33.932s
FAIL	amadan.net/oficina/equipo/internal/headless	94.266s


receipt: test step 1m35.604s 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 1m33.932s amadan.net/oficina/equipo/internal/headless
receipt: slow test 25.1s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 22.7s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 14.53s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 11.22s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 10.19s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
exit status 1
+ go test -tags browser,testbuild -timeout 15m -run '^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$' -v -run '^TestBrowserRailFollowsWork$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserRailFollowsWork browser-headless-work 11fe97998a732086b5b69b144cced1996c3838f8 22.70s 48.68
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 37.57, cpu waiting 24.27%, memory waiting 0.00%, io waiting 0.91%
--- 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 1m46.693s 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.833s amadan.net/oficina/equipo/internal/headless
receipt: slow test 16.45s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 14.51s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 12.93s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 10.64s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
receipt: slow test 10.53s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsOpenCodeGoLimitRequired
machine: 32 CPUs, load 43.24, cpu waiting 29.45%, memory waiting 0.00%, io waiting 1.11%
--- shard 21 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-rest: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless
rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserCopyContinue
=== RUN   TestBrowserCopyContinue
time=2026-11-19T09:04:42.169Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-19T09:04:42.169Z level=INFO msg="startup phase done" phase=state_lock took=167µs
time=2026-11-19T09:04:42.169Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-19T09:04:42.169Z level=INFO msg="startup phase done" phase=claim_roots took=110µs
time=2026-11-19T09:04:42.169Z level=INFO msg="startup phase" phase=sweep
time=2026-11-19T09:04:42.216Z level=INFO msg="startup phase done" phase=sweep took=46.256ms
time=2026-11-19T09:04:42.216Z level=INFO msg="startup phase" phase=credentials
time=2026-11-19T09:04:42.216Z level=INFO msg="startup phase done" phase=credentials took=221µs
time=2026-11-19T09:04:42.216Z level=INFO msg="startup phase" phase=open_state
time=2026-11-19T09:04:42.283Z level=INFO msg="startup phase done" phase=open_state took=67.201ms
time=2026-11-19T09:04:42.284Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-19T09:04:42.284Z level=INFO msg=connecting host=127.0.0.1:42547 protocol=26
time=2026-11-19T09:04:42.286Z level=INFO msg=connected host=127.0.0.1:42547 took=1.957ms
time=2026-11-19T09:04:42.286Z level=INFO msg="capabilities gathering"
time=2026-11-19T09:04:42.287Z level=INFO msg="capabilities gathered" took=511µs tags=linux,claude,go
time=2026-11-19T09:04:42.287Z level=INFO msg="hello sent" protocol=26
time=2026-11-19T09:04:42.292Z level=INFO msg=welcome protocol=26 role=primary generation=1
    browser_copy_test.go:90: waiting for !document.querySelector('[data-copy-continue]'): context deadline exceeded (last evaluation: context deadline exceeded)
--- FAIL: TestBrowserCopyContinue (6.35s)

--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserEmptyExplore
=== RUN   TestBrowserEmptyExplore
time=2026-11-19T09:05:20.926Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-19T09:05:20.926Z level=INFO msg="startup phase done" phase=state_lock took=66µs
time=2026-11-19T09:05:20.926Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-19T09:05:20.926Z level=INFO msg="startup phase done" phase=claim_roots took=86µs
time=2026-11-19T09:05:20.926Z level=INFO msg="startup phase" phase=sweep
time=2026-11-19T09:05:20.953Z level=INFO msg="startup phase done" phase=sweep took=27.193ms
time=2026-11-19T09:05:20.953Z level=INFO msg="startup phase" phase=credentials
time=2026-11-19T09:05:20.954Z level=INFO msg="startup phase done" phase=credentials took=102µs
time=2026-11-19T09:05:20.954Z level=INFO msg="startup phase" phase=open_state
time=2026-11-19T09:05:20.993Z level=INFO msg="startup phase done" phase=open_state took=39.27ms
time=2026-11-19T09:05:20.993Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-19T09:05:20.994Z level=INFO msg=connecting host=127.0.0.1:35443 protocol=26
time=2026-11-19T09:05:20.995Z level=INFO msg=connected host=127.0.0.1:35443 took=864µs
time=2026-11-19T09:05:20.995Z level=INFO msg="capabilities gathering"
time=2026-11-19T09:05:20.996Z level=INFO msg="capabilities gathered" took=429µs tags=linux,claude,go
time=2026-11-19T09:05:21.000Z level=INFO msg="hello sent" protocol=26
time=2026-11-19T09:05:21.001Z level=INFO msg=welcome protocol=26 role=primary generation=1
time=2026-11-19T09:05:22.170Z level=INFO msg="connection checked" connection=claude-1 state=healthy
    browser_receipts_test.go:169: waiting for [...document.querySelectorAll('[equipo-markdown]:not([data-stream-text])')].some(e=>e.textContent.includes("I'm your coordinator")): context deadline exceeded (last evaluation: context deadline exceeded)
--- FAIL: TestBrowserEmptyExplore (5.86s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m37.496s
FAIL	amadan.net/oficina/equipo/internal/headless	97.799s


receipt: test step 1m39.189s 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 1m37.496s amadan.net/oficina/equipo/internal/headless
receipt: slow test 15.34s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 12.92s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 11.7s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 10.78s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 8.15s amadan.net/oficina/equipo/internal/headless TestBrowserRefreshRace
exit status 1
+ go test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' -v -run '^TestBrowserCopyContinue$|^TestBrowserEmptyExplore$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserCopyContinue browser-headless-rest 11fe97998a732086b5b69b144cced1996c3838f8 6.35s 48.68
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
##############################################################################
FLAKE ./internal/headless:TestBrowserEmptyExplore browser-headless-rest 11fe97998a732086b5b69b144cced1996c3838f8 5.86s 48.68
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 43.24, cpu waiting 27.62%, memory waiting 0.00%, io waiting 1.04%
--- 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 3.121s 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.549s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 1.55s 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.28s 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.969s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 1.97s 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 3m2.156s 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 3m0.659s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 17.71s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.37s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 10.97s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 9.13s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 8.14s amadan.net/oficina/equipo/internal/thintest TestBrowserInnerScreens
machine: 32 CPUs, load 14.41, cpu waiting 7.38%, memory waiting 0.00%, io waiting 0.27%
--- shard 23 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
shard 23: make test-quarantine
python3 scripts/ci-test.py quarantine
quarantine: 12 tests from scripts/ci-quarantine.txt; a failure is retried once, and a pass on the retry is reported as a flake
+ go test -tags testbuild -timeout 15m -v -run '^TestHeadlessConnections$/^A5_cancel_and_sign_out$|^TestHeadlessConnections$/^C4_claude_sign_in$|^TestHeadlessConnections$/^C5_engineering_failover$|^TestHeadlessConnections$/^C5_engineering_to_codex$|^TestHeadlessConnections$/^C5_engineering_waits$' ./internal/headless   (58s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 5.37s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.46s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 10.41s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 11.31s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 27.76s
+ 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   (65s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 20.24s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 14.02s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 12.13s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 16.60s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (24s)
ok ./internal/headless TestMixedVersions 21.86s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (2s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.80s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin   (1s)
ok ./internal/runner/thin TestRunnerCancelAndSupersede 0.05s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 51.71, cpu waiting 34.71%, memory waiting 0.00%, io waiting 2.17%
--- 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.4s 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.681s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 202ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 105ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 2ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow package 1ms amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow test 5.54s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.68s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 350ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 200ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 100ms 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.388s 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.982s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 280ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 200ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReapsOrphans
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
machine: 32 CPUs, load 14.37, cpu waiting 7.51%, memory waiting 0.00%, io waiting 5.18%
--- shard 25 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: runner-dead-references started 30s late; cpu waiting 36.6%, load 25.68
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.488s
machine: 32 CPUs, load 51.71, cpu waiting 34.50%, memory waiting 0.00%, io waiting 2.25%
--- shard 26 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: staticcheck started 30s late; cpu waiting 36.1%, load 25.68
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 39.70, cpu waiting 26.44%, memory waiting 0.00%, io waiting 3.14%
--- shard 27 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: govulncheck started 30s late; cpu waiting 36.6%, load 25.68
shard 27: make govulncheck
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 ./...
=== Symbol Results ===

No vulnerabilities found.

Your code is affected by 0 vulnerabilities.
This scan also found 0 vulnerabilities in packages you import and 5
vulnerabilities in modules you require, but your code doesn't appear to call
these vulnerabilities.
Use '-show verbose' for more details.
machine: 32 CPUs, load 36.98, cpu waiting 20.31%, memory waiting 0.00%, io waiting 3.59%
--- shard 28 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: gitleaks started 30s late; cpu waiting 36.6%, load 25.68
shard 28: make gitleaks
9:04AM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
9:04AM INF 985 commits scanned.
9:04AM INF scanned ~59019380 bytes (59.02 MB) in 20.1s
9:04AM INF no leaks found
machine: 32 CPUs, load 47.97, cpu waiting 30.35%, memory waiting 0.00%, io waiting 2.84%
=== 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.108ms, worst 1.143ms, budget 150ms
perf: GET /api/runner/protocol: median 67µs, worst 96µs, budget 150ms
perf: GET /api/v1/account-setups/{id}: median 620µs, worst 674µs, budget 150ms
perf: GET /api/v1/accounts: median 423µs, worst 449µs, budget 150ms
perf: GET /api/v1/auth/devices: median 432µs, worst 493µs, budget 150ms
perf: GET /api/v1/budgets: median 481µs, worst 525µs, budget 150ms
perf: GET /api/v1/capabilities: median 232µs, worst 292µs, budget 150ms
perf: GET /api/v1/cards/{id}: median 1.214ms, worst 1.242ms, budget 150ms
perf: GET /api/v1/connections: median 606µs, worst 630µs, budget 150ms
perf: GET /api/v1/connections/{id}: median 552µs, worst 583µs, budget 150ms
perf: GET /api/v1/conversation: median 994µs, worst 1.041ms, budget 150ms
perf: GET /api/v1/conversation/cards: median 1.591ms, worst 1.69ms, budget 150ms
perf: GET /api/v1/coordinator: median 1.892ms, worst 1.98ms, budget 150ms
perf: GET /api/v1/invites/{id}: median 467µs, worst 519µs, budget 150ms
perf: GET /api/v1/journey: median 8.423ms, worst 8.515ms, budget 150ms
perf: GET /api/v1/me: median 484µs, worst 515µs, budget 150ms
perf: GET /api/v1/me/settings: median 542µs, worst 587µs, budget 150ms
perf: GET /api/v1/needs-you: median 8.275ms, worst 10.849ms, budget 150ms
perf: GET /api/v1/notifications: median 1.878ms, worst 2.008ms, budget 150ms
perf: GET /api/v1/onboarding: median 440µs, worst 475µs, budget 150ms
perf: GET /api/v1/people: median 479µs, worst 506µs, budget 150ms
perf: GET /api/v1/playbooks: median 653µs, worst 700µs, budget 150ms
perf: GET /api/v1/playbooks/{id}: median 551µs, worst 614µs, budget 150ms
perf: GET /api/v1/playbooks/{id}/template-diff: median 885µs, worst 951µs, budget 150ms
perf: GET /api/v1/preferences: median 820µs, worst 917µs, budget 150ms
perf: GET /api/v1/projects/{id}: median 484µs, worst 534µs, budget 150ms
perf: GET /api/v1/projects/{id}/settings: median 624µs, worst 670µs, budget 150ms
perf: GET /api/v1/roster: median 488µs, worst 511µs, budget 150ms
perf: GET /api/v1/runners/{id}: median 452µs, worst 481µs, budget 150ms
perf: GET /api/v1/specialists: median 8.505ms, worst 8.597ms, budget 150ms
perf: GET /api/v1/specialists/{id}: median 8.294ms, worst 8.42ms, budget 150ms
perf: GET /api/v1/specialists/{id}/template-diff: median 831µs, worst 871µs, budget 150ms
perf: GET /api/v1/tasks/{id}/plan: median 1.215ms, worst 1.29ms, budget 150ms
perf: GET /api/v1/tasks/{id}/thread: median 735µs, worst 777µs, budget 150ms
perf: GET /api/v1/teams: median 452µs, worst 496µs, budget 150ms
perf: GET /api/v1/templates: median 615µs, worst 636µs, budget 150ms
perf: GET /api/v1/templates/{id}: median 443µs, worst 504µs, budget 150ms
perf: GET /auth/callback: median 80µs, worst 106µs, budget 150ms
perf: GET /auth/devices/{id}: median 3.304ms, worst 3.466ms, budget 150ms
perf: GET /auth/verify: median 83µs, worst 111µs, budget 150ms
perf: GET /connections: median 3.725ms, worst 3.837ms, budget 150ms
perf: GET /conversation: median 7.518ms, worst 7.669ms, budget 150ms
perf: GET /conversation/connections: median 251µs, worst 291µs, budget 150ms
perf: GET /conversation/notebook: median 243µs, worst 322µs, budget 150ms
perf: GET /conversation/settings: median 3.999ms, worst 4.189ms, budget 150ms
perf: GET /conversation/settings/connections: median 6.407ms, worst 8.952ms, budget 150ms
perf: GET /conversation/settings/connections/add: median 6.799ms, worst 7.176ms, budget 150ms
perf: GET /conversation/settings/copy: median 3.65ms, worst 3.745ms, budget 150ms
perf: GET /conversation/settings/housekeeping: median 4.247ms, worst 4.341ms, budget 150ms
perf: GET /conversation/settings/machines: median 4.637ms, worst 4.794ms, budget 150ms
perf: GET /conversation/settings/machines/add: median 4.68ms, worst 4.893ms, budget 150ms
perf: GET /conversation/settings/notebook: median 3.399ms, worst 3.491ms, budget 150ms
perf: GET /conversation/settings/thinking: median 4.056ms, worst 4.142ms, budget 150ms
perf: GET /housekeeping: median 3.798ms, worst 3.851ms, budget 150ms
perf: GET /invites/new: median 620µs, worst 640µs, budget 150ms
perf: GET /invites/{id}: median 661µs, worst 693µs, budget 150ms
perf: GET /jobs: median 3.414ms, worst 3.559ms, budget 150ms
perf: GET /jobs/{id}: median 4.782ms, worst 7.174ms, budget 150ms
perf: GET /journey: median 10.67ms, worst 10.993ms, budget 150ms
perf: GET /nav/rail: median 2.913ms, worst 3.097ms, budget 150ms
perf: GET /needs-you: median 10.249ms, worst 10.377ms, budget 150ms
perf: GET /onboarding: median 4.015ms, worst 4.153ms, budget 150ms
perf: GET /people: median 3.352ms, worst 3.45ms, budget 150ms
perf: GET /playbook-suggestions/{suggestion}: median 4.48ms, worst 4.635ms, budget 150ms
perf: GET /playbooks: median 4.042ms, worst 4.247ms, budget 150ms
perf: GET /playbooks/new: median 4.396ms, worst 6.677ms, budget 150ms
perf: GET /playbooks/{id}: median 4.905ms, worst 5.158ms, budget 150ms
perf: GET /playbooks/{id}/edit: median 4.647ms, worst 4.923ms, budget 150ms
perf: GET /playbooks/{id}/template-diff: median 3.795ms, worst 3.945ms, budget 150ms
perf: GET /preferences: median 4.428ms, worst 4.47ms, budget 150ms
perf: GET /preferences/sources/{source}: median 4.072ms, worst 4.3ms, budget 150ms
perf: GET /projects: median 5.144ms, worst 5.29ms, budget 150ms
perf: GET /projects/accounts: median 3.613ms, worst 3.708ms, budget 150ms
perf: GET /projects/new: median 3.631ms, worst 3.725ms, budget 150ms
perf: GET /projects/{id}: median 10.52ms, worst 11.066ms, budget 150ms
perf: GET /projects/{id}/edit: median 3.957ms, worst 6.048ms, budget 150ms
perf: GET /runners/enrol: median 4.835ms, worst 5.008ms, budget 150ms
perf: GET /settings: median 3.532ms, worst 3.91ms, budget 150ms
perf: GET /settings/coordinator: median 5.803ms, worst 5.943ms, budget 150ms
perf: GET /settings/devices: median 3.29ms, worst 3.362ms, budget 150ms
perf: GET /settings/recovery: median 3.528ms, worst 3.668ms, budget 150ms
perf: GET /settings/recovery/release: median 3.476ms, worst 3.564ms, budget 150ms
perf: GET /settings/thinking: median 240µs, worst 276µs, budget 150ms
perf: GET /signin: median 314µs, worst 357µs, budget 150ms
perf: GET /specialists/new: median 3.333ms, worst 3.378ms, budget 150ms
perf: GET /specialists/{key}: median 10.949ms, worst 11.119ms, budget 150ms
perf: GET /specialists/{key}/edit: median 3.557ms, worst 3.617ms, budget 150ms
perf: GET /specialists/{key}/template-diff: median 3.699ms, worst 5.675ms, budget 150ms
perf: GET /tasks: median 5.319ms, worst 5.506ms, budget 150ms
perf: GET /tasks/new: median 3.258ms, worst 3.375ms, budget 150ms
perf: GET /tasks/{id}: median 5.528ms, worst 5.768ms, budget 150ms
perf: GET /tasks/{id}/merge: median 4.927ms, worst 5.028ms, budget 150ms
perf: GET /tasks/{id}/move: median 4.391ms, worst 4.579ms, budget 150ms
perf: GET /tasks/{id}/plan: median 5.919ms, worst 6.001ms, budget 150ms
perf: GET /tasks/{id}/questions/{question}: median 5.408ms, worst 5.587ms, budget 150ms
perf: GET /tasks/{id}/rendered-change: median 4.933ms, worst 5.067ms, budget 150ms
perf: GET /tasks/{id}/rendered-change/{hash}.png: median 4.436ms, worst 4.555ms, budget 150ms
perf: GET /tasks/{id}/thread: median 8.798ms, worst 10.657ms, budget 150ms
perf: GET /team/{specialist}: median 4.358ms, worst 4.537ms, budget 150ms
perf: GET /teams: median 10.462ms, worst 10.623ms, budget 150ms
perf: GET /templates: median 3.56ms, worst 3.595ms, budget 150ms
perf: GET /usage: median 4.208ms, worst 4.283ms, budget 150ms
perf: GET /work: median 3.053ms, worst 3.199ms, budget 150ms
perf: cold boot: median 260ms of [259.068634ms 260.222061ms 261.604768ms], budget 500ms

receipt: test step 39.405s 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.877s 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 8.04s amadan.net/oficina/equipo/internal/equipotest TestPerfScreens
receipt: slow test 830ms amadan.net/oficina/equipo/internal/equipotest TestPerfBoot
=== cache ===
ci-box: build cache /home/ci/work/repos/oficina__equipo/cache/go-build: 4.17 GiB in 21492 files
ci-box: module cache /home/ci/work/repos/oficina__equipo/cache/go-mod: 0.84 GiB in 27329 files
ci-box: build cache over 4.0 GiB: dropped 1.70 GiB this job did not read, kept 2.47 GiB
diff --git a/.rastrillo/budgets.txt b/.rastrillo/budgets.txt
index 37b241e5..92614a7b 100644
--- a/.rastrillo/budgets.txt
+++ b/.rastrillo/budgets.txt
@@ -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 30698 - Transactional access visit, reconnect catch-up and continuation presentation. Measured 30698 source lines.
+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.
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 - 31251 Shared instance/browser fixtures, access reload and resume, live queue and emoji byline guards, and the native apps' captured device fixtures. Measured 31251 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.
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_tools.go b/internal/equipo/chat/assistant_tools.go
index 7fb66ae7..c60847af 100644
--- a/internal/equipo/chat/assistant_tools.go
+++ b/internal/equipo/chat/assistant_tools.go
@@ -635,19 +635,24 @@ func (s *Store) runRemote(ctx context.Context, row toolCallRecord) (res wire.Too
return fitFrame(wire.ToolResult{Code: "used", Text: string(out)}), op.ReadOnly
}
-// asked: the call's turn is one the person started, 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).
+// 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
+// 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) {
var kinds []string
+ var resumed int64
err := s.read(ctx, func(tx *gorm.DB) error {
- return tx.Model(&turnRecord{}).Where("id = ? AND person = ?", row.TurnID, row.Person).Pluck("coalesce(kind, '')", &kinds).Error
+ 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
})
if err != nil || len(kinds) != 1 {
return false, err
}
update := kinds[0] == wire.TurnTeamUpdate && op.Provider == teamProvider{}.Name() && slices.Contains(updateWrites, op.Name)
- return kinds[0] == wire.TurnPerson || update, nil
+ return kinds[0] == wire.TurnPerson || kinds[0] == wire.TurnTeamUpdate && resumed == 1 || update, nil
}
// opFailed is a provider's or the registry's failure as a result. An
diff --git a/internal/equipo/chat/connect.go b/internal/equipo/chat/connect.go
index 71013587..8eedcf4d 100644
--- a/internal/equipo/chat/connect.go
+++ b/internal/equipo/chat/connect.go
@@ -3,6 +3,7 @@ package chat
import (
"context"
"encoding/json"
+ "time"
"amadan.net/oficina/equipo/internal/wire"
)
@@ -61,15 +62,33 @@ func (s *Store) RaiseConnect(ctx context.Context, person string, card ConnectCar
return open && err == nil, err
}
+// connectTurnRecord is the Assistant turn queued once the person
+// connected what a connect card asked for: one per card, the card's id
+// its key, and AskedTurn the person's turn that raised the card.
+type connectTurnRecord struct {
+ CardID string `gorm:"primaryKey"`
+ TurnID string `gorm:"uniqueIndex:chat_connect_turn"`
+ Person string
+ AskedTurn string
+ CreatedAt time.Time
+}
+
+func (connectTurnRecord) TableName() string { return "chat_connect_turns" }
+
// SettleConnect resolves the person's open connect cards for provider:
-// they connected it. A person no longer on the roster settles nothing.
+// they connected it. The Assistant then carries on by itself (ruling
+// 2026-11-19): 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
+// on the roster settles nothing.
func (s *Store) SettleConnect(ctx context.Context, person, provider string) error {
return s.tx(ctx, func(t *txn) error {
if _, err := t.s.authority.Me(t.db, person); err != nil {
return err
}
var cards []cardRecord
- if err := t.db.Where("person = ? AND lane = ? AND kind = ? AND name = ? AND state = ?", person, wire.LaneAssistant, wire.CardConnect, provider, wire.CardOpen).Find(&cards).Error; err != nil {
+ if err := t.db.Where("person = ? AND lane = ? AND kind = ? AND name = ? AND state = ?", person, wire.LaneAssistant, wire.CardConnect, provider, wire.CardOpen).Order("created_at, id").Find(&cards).Error; err != nil {
return err
}
for _, c := range cards {
@@ -78,10 +97,34 @@ func (s *Store) SettleConnect(ctx context.Context, person, provider string) erro
return err
}
}
- return nil
+ if len(cards) == 0 {
+ return nil
+ }
+ return t.carryOn(cards[len(cards)-1])
})
}
+// carryOn queues the Assistant's turn after card was settled, once per
+// card.
+func (t *txn) carryOn(card cardRecord) error {
+ var n int64
+ if err := t.db.Model(&connectTurnRecord{}).Where("card_id = ?", card.ID).Count(&n).Error; err != nil || n > 0 {
+ return err
+ }
+ now := t.now()
+ r := turnRecord{ID: newID("t_"), Person: card.Person, State: wire.TurnQueued, Attempt: 1, Kind: wire.TurnTeamUpdate, Note: noteConnected, Revision: 1, CreatedAt: now, UpdatedAt: now, Lane: wire.LaneAssistant}
+ if err := t.db.Create(&r).Error; err != nil {
+ return err
+ }
+ if err := t.db.Create(&connectTurnRecord{CardID: card.ID, TurnID: r.ID, Person: card.Person, AskedTurn: card.TurnID, CreatedAt: now}).Error; err != nil {
+ return err
+ }
+ if err := t.turnEvent(r); err != nil {
+ return err
+ }
+ return t.dispatchNext(card.Person, wire.LaneAssistant)
+}
+
// connectCardView fills a connect card's link.
func connectCardView(v *wire.AssistantCard, c cardRecord) error {
if c.Links != "" {
diff --git a/internal/equipo/chat/models.go b/internal/equipo/chat/models.go
index 85cb3597..b042c325 100644
--- a/internal/equipo/chat/models.go
+++ b/internal/equipo/chat/models.go
@@ -7,7 +7,7 @@ package chat
import "time"
// Models are the tables this package owns, for the migration check.
-var Models = []any{&cardVisibility{}, &cardThreadRecord{}, &copyAttemptRecord{}, &copyReviewRecord{}, &copyFeedbackRecord{}, &turnRecord{}, &messageRecord{}, &eventRecord{}, &commandRecord{}, &inboxRecord{}, &runnerSessionRecord{}, &projectRecord{}, &cardRecord{}, &toolCallRecord{}, &settingRecord{}, &coordinatorRecord{}, &notebookRecord{}, &taskRecord{}, &stepRecord{}, &entryRecord{}, &attachmentRecord{}, &starRecord{}, &questionRecord{}, &connectionRecord{}, &usageRecord{}, &distinctRecord{}, &hkRecord{}, &hkFailureRecord{}, &hkSettingsRecord{}, &fileRecord{}, &fileDataRecord{}, &transferRecord{}, &mergePolicyRecord{}, &mergeAuditRecord{}, &specialistRecord{}, &grantRecord{}, &specialistAuditRecord{}, &researchSourceRecord{}, &researchAddressRecord{}, &researchPrefixRecord{}, &researchInventoryRecord{}, &researchRecord{}, &researchFetchRecord{}, &taskFileRecord{}, &taskFileDataRecord{}, &releaseRecord{}, &adviceRecord{}, &assistantHostRecord{}, &handoffRecord{}, &handoffTurnRecord{}, &handoffTaskRecord{}, &handoffActionRecord{}}
+var Models = []any{&cardVisibility{}, &cardThreadRecord{}, &copyAttemptRecord{}, &copyReviewRecord{}, &copyFeedbackRecord{}, &turnRecord{}, &messageRecord{}, &eventRecord{}, &commandRecord{}, &inboxRecord{}, &runnerSessionRecord{}, &projectRecord{}, &cardRecord{}, &toolCallRecord{}, &settingRecord{}, &coordinatorRecord{}, &notebookRecord{}, &taskRecord{}, &stepRecord{}, &entryRecord{}, &attachmentRecord{}, &starRecord{}, &questionRecord{}, &connectionRecord{}, &usageRecord{}, &distinctRecord{}, &hkRecord{}, &hkFailureRecord{}, &hkSettingsRecord{}, &fileRecord{}, &fileDataRecord{}, &transferRecord{}, &mergePolicyRecord{}, &mergeAuditRecord{}, &specialistRecord{}, &grantRecord{}, &specialistAuditRecord{}, &researchSourceRecord{}, &researchAddressRecord{}, &researchPrefixRecord{}, &researchInventoryRecord{}, &researchRecord{}, &researchFetchRecord{}, &taskFileRecord{}, &taskFileDataRecord{}, &releaseRecord{}, &adviceRecord{}, &assistantHostRecord{}, &handoffRecord{}, &handoffTurnRecord{}, &handoffTaskRecord{}, &handoffActionRecord{}, &connectTurnRecord{}}
type turnRecord struct {
CreateRepo string
diff --git a/internal/equipo/chat/tools.go b/internal/equipo/chat/tools.go
index f687ab5d..b9aff70d 100644
--- a/internal/equipo/chat/tools.go
+++ b/internal/equipo/chat/tools.go
@@ -97,6 +97,9 @@ const (
noteOpenQuestion = "- Job %q (request %s): %q"
noteMoreQuestion = "1 more job has an open question not listed here: team_status lists every open request with its question, ten at a time (pass its next as after to read on)."
noteMoreQuestions = "%d more jobs have open questions not listed here: team_status lists every open request with its question, ten at a time (pass its next as after to read on)."
+ // noteConnected is the note of the turn queued once the person
+ // connected the apps a connect card asked for (carryOn).
+ noteConnected = "The person has just connected their Oficina apps. Now complete their most recent request that needed them, as they asked it in the conversation. If that request is already done or no longer applies, end your turn without writing anything, or reply in one short line."
)
// causeGoingLive: a job's merge or publish step failed (stopCause). Only
diff --git a/internal/equipo/migrations/0092_assistant_connect_turns.sql b/internal/equipo/migrations/0092_assistant_connect_turns.sql
new file mode 100644
index 00000000..f620f09c
--- /dev/null
+++ b/internal/equipo/migrations/0092_assistant_connect_turns.sql
@@ -0,0 +1,5 @@
+-- The Assistant turn the instance queued once the person connected the
+-- apps their connect card asked for: one per card (its key), with the
+-- person's turn that raised the card, whose request it carries on.
+CREATE TABLE chat_connect_turns (card_id text PRIMARY KEY, turn_id text, person text, asked_turn text, created_at datetime);
+CREATE UNIQUE INDEX chat_connect_turn ON chat_connect_turns(turn_id);
diff --git a/internal/equipo/migrations/schema.sql b/internal/equipo/migrations/schema.sql
index 9201cbf0..ab46e06b 100644
--- a/internal/equipo/migrations/schema.sql
+++ b/internal/equipo/migrations/schema.sql
@@ -713,3 +713,5 @@ UPDATE chat_notebooks SET entries = (SELECT json_group_array(json(value)) FROM j
CREATE TABLE oficina_connections (person text PRIMARY KEY, refresh text, revision integer, created_at datetime, updated_at datetime);
ALTER TABLE chat_tasks ADD COLUMN move_abandoned numeric;
ALTER TABLE chat_cards ADD COLUMN access text;
+CREATE TABLE chat_connect_turns (card_id text PRIMARY KEY, turn_id text, person text, asked_turn text, created_at datetime);
+CREATE UNIQUE INDEX chat_connect_turn ON chat_connect_turns(turn_id);
diff --git a/internal/thintest/assistant_oficina_contract_test.go b/internal/thintest/assistant_oficina_contract_test.go
index c3c509fd..dae38219 100644
--- a/internal/thintest/assistant_oficina_contract_test.go
+++ b/internal/thintest/assistant_oficina_contract_test.go
@@ -495,4 +495,7 @@ func TestContractAssistantOficinaSettleChecksRoster(t *testing.T) {
if s := state(); s != wire.CardOpen {
t.Errorf("card %s", s)
}
+ if n := o.rows("SELECT count(*) FROM chat_turns WHERE person = ? AND kind = ?", "ana@example.com", wire.TurnTeamUpdate); n != 0 {
+ t.Errorf("%d turns queued for a removed member", n)
+ }
}
diff --git a/internal/thintest/assistant_oficina_resume_contract_test.go b/internal/thintest/assistant_oficina_resume_contract_test.go
new file mode 100644
index 00000000..aff5835a
--- /dev/null
+++ b/internal/thintest/assistant_oficina_resume_contract_test.go
@@ -0,0 +1,206 @@
+package thintest
+
+import (
+ "errors"
+ "net/http"
+ "net/url"
+ "slices"
+ "strings"
+ "testing"
+
+ "amadan.net/oficina/equipo/internal/wire"
+)
+
+// resumeMarker is a phrase of the note the Assistant gets once the
+// person has connected their Oficina apps (the instance's noteConnected).
+const resumeMarker = "has just connected their Oficina apps"
+
+// resumes are the person's Assistant turns the instance queued itself
+// after a connect: team_update turns whose note is noteConnected.
+func (o *oficinaRig) resumes() int {
+ o.t.Helper()
+ return o.rows("SELECT count(*) FROM chat_turns WHERE kind = ? AND lane = ? AND note LIKE ?", wire.TurnTeamUpdate, wire.LaneAssistant, "%"+resumeMarker+"%")
+}
+
+// asked raises the connect card from a person turn for words and ends
+// that turn the way a model does when it needs the apps: with a reply.
+func (o *oficinaRig) asked(words string) (turn string) {
+ o.t.Helper()
+ turn = o.begin(words)
+ if res := o.tool("l-"+turn, wire.ToolLook, map[string]any{"query": "calendar"}); !strings.Contains(res.Text, "not connected") {
+ o.t.Fatalf("look: %+v", res)
+ }
+ (&teamRig{o.opsRig}).reply(turn)
+ return turn
+}
+
+// finish connects through Base and returns the finish's status, with
+// the state and code it used.
+func (o *oficinaRig) finish() (status, state, code string) {
+ o.t.Helper()
+ u, err := url.Parse(o.callback(o.base.Origin + "/ask"))
+ if err != nil {
+ o.t.Fatal(err)
+ }
+ state, code = u.Query().Get("oficina_state"), u.Query().Get("oficina_code")
+ status, err = o.a.OficinaFinish(o.ctx, state, code)
+ if err != nil {
+ o.t.Fatalf("finish: %v", err)
+ }
+ return status, state, code
+}
+
+// laneMessages are the Assistant lane's messages as Base reads them,
+// oldest first.
+func (o *oficinaRig) laneMessages() []wire.Message {
+ o.t.Helper()
+ page, err := o.a.Messages(o.ctx, "", 100)
+ if err != nil {
+ o.t.Fatal(err)
+ }
+ items := slices.Clone(page.Items)
+ slices.SortFunc(items, func(a, b wire.Message) int { return a.CreatedAt.Compare(b.CreatedAt) })
+ return items
+}
+
+// TestContractAssistantOficinaResumes (ruling 2026-11-19): once the
+// person connects, the Assistant carries on by itself. One team_update
+// turn is queued in their Assistant lane and dispatched, its note the
+// instance's, never words the person did not type; it may make the
+// write the person asked for; its reply is the only thing new in the
+// lane. A repeated finish, a connect with no card open, and the same
+// card settled again queue nothing more.
+func TestContractAssistantOficinaResumes(t *testing.T) {
+ o := newOficinaRig(t)
+ tr := &teamRig{o.opsRig}
+ words := "Put lunch with Ana in my calendar on Friday."
+ first := o.asked(words)
+ before := o.laneMessages()
+
+ status, state, code := o.finish()
+ if status != "connected" {
+ t.Fatalf("finish: %q", status)
+ }
+ u := tr.message(wire.LaneAssistant)
+ if u.Kind != wire.TurnTeamUpdate || u.TurnID == first || len(u.PersonText) != 0 || !strings.Contains(u.Text, resumeMarker) {
+ t.Fatalf("resume frame: %+v", u)
+ }
+ if !slices.ContainsFunc(u.Tail, func(m wire.TailMessage) bool { return m.Role == wire.RolePerson && m.Text == words }) {
+ t.Errorf("the request is not in the resume's tail: %+v", u.Tail)
+ }
+ if n := o.resumes(); n != 1 {
+ t.Fatalf("%d resume turns", n)
+ }
+ // The resume answers the person's own request: the write they asked
+ // for goes through.
+ 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 != "used" {
+ t.Fatalf("write in the resume: %+v", res)
+ }
+ })
+ reply := "Lunch with Ana is in your calendar for Friday."
+ if err := o.runner.Send(o.ctx, "r-resume", wire.FrameReply, wire.Reply{TurnID: u.TurnID, Attempt: 1, Text: reply}); err != nil {
+ t.Fatal(err)
+ }
+ o.until("resume replied", func() bool {
+ return o.rows("SELECT count(*) FROM chat_turns WHERE id = ? AND state = ?", u.TurnID, wire.TurnReplied) == 1
+ })
+ after := o.laneMessages()
+ if len(after) != len(before)+1 {
+ t.Fatalf("lane before %+v, after %+v", before, after)
+ }
+ if last := after[len(after)-1]; last.Role != wire.RoleAssistant || last.Text != reply || last.TurnID != u.TurnID {
+ t.Errorf("new in the lane: %+v", last)
+ }
+ if n := len(slices.DeleteFunc(after, func(m wire.Message) bool { return m.Role != wire.RolePerson })); n != 1 {
+ t.Errorf("%d person messages in the lane", n)
+ }
+
+ // A repeated finish: the state is used up, nothing more is queued.
+ if again, err := o.a.OficinaFinish(o.ctx, state, code); err != nil || again != "expired" {
+ t.Errorf("replayed finish: %q %v", again, err)
+ }
+ // Connecting again with no card open asks for nothing.
+ if again, _, _ := o.finish(); again != "connected" {
+ t.Errorf("second connect: %q", again)
+ }
+ // Two finishes that both found the card open settle it twice; the
+ // card's key lets only the first queue a turn.
+ card := o.connectCards()[0]
+ if _, err := o.inst.DB.Writer().Exec("UPDATE chat_cards SET state = ? WHERE id = ?", wire.CardOpen, card.ID); err != nil {
+ t.Fatal(err)
+ }
+ if err := o.inst.Store.Chat().SettleConnect(o.ctx, Owner, "oficina"); err != nil {
+ t.Fatalf("settled again: %v", err)
+ }
+ if n := o.resumes(); n != 1 {
+ t.Errorf("%d resume turns after replays", n)
+ }
+ if n := o.rows("SELECT count(*) FROM chat_turns WHERE lane = ? AND state IN (?, ?, ?)", wire.LaneAssistant, wire.TurnQueued, wire.TurnRunning, wire.TurnWaiting); n != 0 {
+ t.Errorf("%d Assistant turns in flight after replays", n)
+ }
+}
+
+// TestContractAssistantOficinaResumeWaits: a connect while the person's
+// Assistant turn still runs queues the resume behind it, as notes wait;
+// it is dispatched once that turn ends.
+func TestContractAssistantOficinaResumeWaits(t *testing.T) {
+ o := newOficinaRig(t)
+ tr := &teamRig{o.opsRig}
+ first := o.begin("Put lunch with Ana in my calendar on Friday.")
+ o.tool("l1", wire.ToolLook, map[string]any{"query": "calendar"})
+ if status, _, _ := o.finish(); status != "connected" {
+ t.Fatalf("finish: %q", status)
+ }
+ if n := o.resumes(); n != 1 {
+ t.Fatalf("%d resume turns", n)
+ }
+ if n := o.rows("SELECT count(*) FROM chat_turns WHERE kind = ? AND dispatched = ?", wire.TurnTeamUpdate, true); n != 0 {
+ t.Fatalf("the resume went while the person's turn ran")
+ }
+ tr.reply(first)
+ if u := tr.message(wire.LaneAssistant); u.Kind != wire.TurnTeamUpdate || !strings.Contains(u.Text, resumeMarker) {
+ t.Fatalf("after the turn ended: %+v", u)
+ }
+}
+
+// TestContractAssistantOficinaNoResumeUnlessConnected: a consent
+// refused, a finish connect could not complete and one that expired
+// queue nothing and leave the card open; the connect that works then
+// queues the one turn.
+func TestContractAssistantOficinaNoResumeUnlessConnected(t *testing.T) {
+ o := newOficinaRig(t)
+ ana := o.other("ana@example.com")
+ o.asked("Put lunch with Ana in my calendar on Friday.")
+
+ o.fake.Deny = true
+ if back := o.callback(o.base.Origin + "/ask"); back != o.base.Origin+"/ask?oficina=denied" {
+ t.Fatalf("denied: %q", back)
+ }
+ o.fake.Down = true
+ if status, _, _ := o.finish(); status != "unavailable" {
+ t.Fatalf("connect down: %q", status)
+ }
+ o.fake.Down = false
+ state, code := o.handBack(o.base.Origin + "/ask")
+ var s *ErrStatus
+ if _, err := ana.a.OficinaFinish(o.ctx, state, code); !errors.As(err, &s) || s.Status != http.StatusForbidden {
+ t.Fatalf("another person's finish: %v", err)
+ }
+ if status, err := o.a.OficinaFinish(o.ctx, state, code); err != nil || status != "expired" {
+ t.Fatalf("expired: %q %v", status, err)
+ }
+ if n := o.resumes(); n != 0 {
+ t.Fatalf("%d resume turns without a connection", n)
+ }
+ if cards := o.connectCards(); len(cards) != 1 || cards[0].State != wire.CardOpen {
+ t.Fatalf("cards: %+v", cards)
+ }
+
+ if status, _, _ := o.finish(); status != "connected" {
+ t.Fatalf("finish: %q", status)
+ }
+ if n := o.resumes(); n != 1 {
+ t.Errorf("%d resume turns once connected", n)
+ }
+}