oficina / equipo Public

chat: carry only words the model never saw, and let them hand over

Review fixes (Astra on 8ee84af8, three Mediums):

1. Carried words start Assistant jobs. dispatch records the messages it
   carried on the turn (chat_turn_carried, migration 0095); quote, for
   team_request, also matches exactly those: the person's composer
   messages in the lane. The hand-off is their words, as written.
2. A card's typed answer or reply is not carried: it reaches the model
   with its question through the card's own path, never bare.
3. Only turns that failed before the model ran are carried. A turn that
   reached it (a delta or activity event, a tool call or usage for it)
   bounds what is carried, its own words and those it carried: a
   resumed transcript may hold them. Events are kept a day, longer than
   a session resumes (the same UTC day); tool calls and usage are kept.
   The note no longer asks the model not to repeat itself.

Merged origin/main first; budgets.txt keeps main's lines, raised to what
the merged tree measures (chat 31301, thintest 32373).

Failing first, each without its fix, in internal/thintest:
TestContractCarriedWordsHandOver (not_their_words),
TestContractCarriedSkipsCardAnswers ("the second one" carried bare),
TestContractCarriedOnlyBeforeTheModel (a streamed turn carried; and with
the boundary removed, "early words" carried past a turn that reached
the model).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev f74ae16e0a4b47a528a94e8069e67149595e89d7 parent 59c901a
9 files changed, +207 −27
  • .rastrillo/budgets.txt +2 −2
  • internal/equipo/chat/handoff.go +9 −3
  • internal/equipo/chat/models.go +11 −1
  • internal/equipo/chat/store.go +35 −14
  • internal/equipo/chat/tools.go +5 −6
  • internal/equipo/migrations/0095_turn_carried.sql +4 −0
  • internal/equipo/migrations/schema.sql +2 −0
  • internal/thintest/carried_contract_test.go +138 −0
  • internal/thintest/instance_contract_test.go +1 −1

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/failed-turn-carried: 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: image pulled in 9.9s
ci-box: claude: fetched and verified in 14.6s
ci-box: codex: fetched and verified in 3.5s
ci-box: codex-code-mode-host: fetched and verified in 1.3s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.4s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: pi: installed and verified in 6.9s
ci-box: opencode: installed and verified in 1.9s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 9.3s
ci-box: clone deepened in 3.0s
ci-box: file times set from content: 2730 files, 174 directories
ci-box: ready in 26.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.243s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  5.1s
+ go list -export -test -tags testbuild -f  ./...
  4.9s
+ go list -export -test -tags browser,testbuild -f  ./internal/equipo ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
  3.0s
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -version
staticcheck 2026.1 (v0.7.0)
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 -version
Go: go1.26.11
Scanner: govulncheck@v1.8.0
DB: https://vuln.go.dev
DB updated: 2026-11-11 02:51:11 +0000 UTC

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

receipt: test step 1m30.69s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m27.91s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m27.91s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 65.81, cpu waiting 41.80%, memory waiting 0.00%, io waiting 0.46%
--- 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 1m33.793s 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 1m31.212s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m31.21s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 65.81, cpu waiting 41.48%, memory waiting 0.00%, io waiting 0.43%
--- 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 1m34.776s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m32.843s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m21.73s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 6.12s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 5s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 63.98, cpu waiting 40.81%, memory waiting 0.00%, io waiting 0.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 1m29.869s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m27.657s amadan.net/oficina/equipo/internal/headless
receipt: slow test 45.12s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 22.28s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 10.6s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
receipt: slow test 9.66s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
machine: 32 CPUs, load 65.81, cpu waiting 41.80%, memory waiting 0.00%, io waiting 0.46%
--- 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 1m48.009s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m45.076s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m7.69s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 12.25s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 10.18s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 9s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 5.95s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 56.94, cpu waiting 35.54%, memory waiting 0.00%, io waiting 0.35%
--- shard 5 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-rest: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^TestHeadless$/^4c_rebase$|^TestHeadless$/^4b_ask$|^TestHeadless$/^4c_checks_card$|^TestHeadless$/^4_step_crash$|^TestHeadless$/^4_review$|^TestHeadless$/^2b_access$|^TestHeadless$/^runner_crash$|^TestHeadless$/^2b_first_message$|^TestHeadless$/^4_checks_honest$|^TestHeadless$/^7_stream_resume$|^TestHeadless$/^2b_notebook$|^TestHeadless$/^2b_move_in$|^TestHeadless$/^2b_desk_failure$|^TestHeadless$/^cancel$|^TestHeadlessConnections$|^TestHeadlessTokenPasteEndToEnd$|^TestHeadlessTokenConnection$|^TestMacWorker$|^TestHeadlessAttachments$|^TestHeadlessPrewarm$|^TestHeadless$/^1_first_token$|^TestHeadless$/^6_quick_messages$|^TestHeadless$/^8_instance_restart$|^TestHeadless$/^3_runner_offline$|^TestHeadlessCopyRotation$|^TestHeadlessPolicyGuards$|^TestHeadlessRunnerKillLeavesNoCopies$|^TestHeadlessNewHouseRuleStartsFresh$|^TestHeadless$/^3_engineering$|^TestHeadless$/^3_step_cancel$|^TestHeadless$/^3_step_contained$|^TestHeadless$/^3_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless

receipt: test step 3m17.047s 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 3m15.287s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m54.49s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 23.61s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 11.3s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 7.97s amadan.net/oficina/equipo/internal/headless TestHeadlessClaudeSignIn
receipt: slow test 7.29s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
machine: 32 CPUs, load 14.89, cpu waiting 7.74%, memory waiting 0.00%, io waiting 0.07%
--- shard 6 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane thintest: ./internal/thintest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test([^C]|C[^o]|Co[^n]|Con[^t])|^TestContract(Assistant|Outcome|Team|Handoff|HostAllowlist|HostIsPerPerson|Look|Use[A-Z]|RemoteCall|LanesRunAtOnce|NoMergeQuestionWhenGateMerges|PreviewHeldUntilPublishAnswer|PreviewNotHeldBelow19|PublishNeedsOwnerAnswer)' ./internal/thintest

receipt: test step 2m2.573s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m59.917s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 7.76s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.76s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 3.6s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 3.59s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 2.45s amadan.net/oficina/equipo/internal/thintest TestResearchDoneFallsBack
machine: 32 CPUs, load 47.27, cpu waiting 27.44%, memory waiting 0.00%, io waiting 0.26%
--- 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 1m25.337s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m22.233s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.26s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 4.94s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.4s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 2.34s amadan.net/oficina/equipo/internal/thintest TestContractPreview
receipt: slow test 2.33s amadan.net/oficina/equipo/internal/thintest TestContractPublishNameTaken
machine: 32 CPUs, load 67.44, cpu waiting 42.12%, memory waiting 0.00%, io waiting 0.51%
--- shard 8 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-thin: ./internal/runner/thin
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./internal/runner/thin
budget note: internal/runner/thin took 4m36.816s, over the 45s its record on line 44 allows; reported only, timing fails on CI

receipt: test step 4m42.407s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 4m36.816s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 37.07s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 36.95s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.75s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 18.45s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 6.69s amadan.net/oficina/equipo/internal/runner/thin TestOpenCodeStepsRealOpenCode
machine: 32 CPUs, load 4.24, cpu waiting 1.91%, memory waiting 0.00%, io waiting 0.01%
--- shard 9 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-bug: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$' ./internal/runner

receipt: test step 49.961s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 48.674s amadan.net/oficina/equipo/internal/runner
receipt: slow test 28.64s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.03s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 60.64, cpu waiting 32.76%, memory waiting 0.00%, io waiting 0.90%
--- shard 10 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-plans: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner

receipt: test step 1m0.978s 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 59.399s amadan.net/oficina/equipo/internal/runner
receipt: slow test 49.33s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 42.19s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.4s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.65s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 69.27, cpu waiting 38.60%, memory waiting 0.00%, io waiting 0.76%
--- shard 11 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-rest: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$|^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner

receipt: test step 35.65s 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.758s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.13s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.51s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.12s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.36s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestReportPostsRetryExactRequest
machine: 32 CPUs, load 35.20, cpu waiting 20.93%, memory waiting 0.00%, io waiting 1.14%
--- 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 35.4%, load 26.86
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.752s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m4.879s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 26.91s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 26.81s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 24.66s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 22.23s amadan.net/oficina/equipo/internal/equipotest TestAuthorityReadsOneSnapshot
receipt: slow test 22.17s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
machine: 32 CPUs, load 63.98, cpu waiting 39.97%, memory waiting 0.00%, io waiting 0.40%
--- 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 35.4%, load 26.86
test lane equipotest-e: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test[E-P]' ./internal/equipotest

receipt: test step 1m15.153s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m13.32s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 19.51s amadan.net/oficina/equipo/internal/equipotest TestProjectRetryAndRevision
receipt: slow test 19.48s amadan.net/oficina/equipo/internal/equipotest TestProjectKindsAndDefaultBranch
receipt: slow test 19.43s amadan.net/oficina/equipo/internal/equipotest TestProjectRequestActorAndUpdate
receipt: slow test 19.4s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
receipt: slow test 19.33s amadan.net/oficina/equipo/internal/equipotest TestProjectsReopen
machine: 32 CPUs, load 56.94, cpu waiting 35.54%, memory waiting 0.00%, io waiting 0.35%
--- 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 35.4%, load 26.86
test lane equipotest-r: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestR' ./internal/equipotest

receipt: test step 1m13.119s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m7.969s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 15.72s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 12.94s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 10.08s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 9.99s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 6.99s amadan.net/oficina/equipo/internal/equipotest TestRosterBootstrapOnce
machine: 32 CPUs, load 60.94, cpu waiting 36.71%, memory waiting 0.00%, io waiting 0.36%
--- 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 35.4%, load 26.86
test lane equipotest-rest: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^Test[A-D]|^TestQ|^Test[E-P]|^TestR' ./internal/equipotest

receipt: test step 1m7.703s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m5.884s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 24.32s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 24.18s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 24.16s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 22.27s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsRollbackAndUnavailable
receipt: slow test 22.24s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsCurrentOwner
machine: 32 CPUs, load 63.98, cpu waiting 40.81%, memory waiting 0.00%, io waiting 0.41%
--- shard 16 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: plan3test started 30s late; cpu waiting 35.4%, load 26.86
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.979s 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.965s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.57s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.47s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.55s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.46s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.31s amadan.net/oficina/equipo/internal/plan3test TestInviteMigration
machine: 32 CPUs, load 69.05, cpu waiting 42.43%, memory waiting 0.00%, io waiting 0.53%
--- 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 35.4%, load 26.86
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/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
cache miss: amadan.net/oficina/equipo/internal/copydesk: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/wire/wireschema: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/release: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/forge: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/equipo/team: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/webread: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/workspace: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/testci: its inputs changed
--- FAIL amadan.net/oficina/equipo/internal/runner/metered TestMeteredRaceAdmitsExactlyOne
=== RUN   TestMeteredRaceAdmitsExactlyOne
    meter_test.go:205: round 0: ran map[], held map[ask:busy review:busy]
--- FAIL: TestMeteredRaceAdmitsExactlyOne (0.02s)

--- FAIL amadan.net/oficina/equipo/internal/runner/metered (package output)
FAIL
rastrillo-budget/v1 ran 1.124s
FAIL	amadan.net/oficina/equipo/internal/runner/metered	1.166s

budget note: internal/equipo took 27.674s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/chat took 16.559s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/setup took 13.017s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/idtest took 46.696s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/release took 36.252s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/runner/containment took 1m2.595s, over the 15s its record on line 40 allows; reported only, timing fails on CI
budget note: internal/runner/forge took 24.706s, over the 20s its record on line 35 allows; reported only, timing fails on CI
budget note: internal/runner/provider/pi took 1m23.396s, over the 1m0s its record on line 27 allows; reported only, timing fails on CI
budget note: internal/runner/workspace took 13.145s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 1m57.231s against a 60s target (the gate's other steps are not in this figure)
receipt: 37 packages ran, 22 cached, 18 without tests, 1 failed
receipt: slow package 1m23.396s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 1m13.535s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 1m2.595s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow package 58.407s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 46.696s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 29.27s amadan.net/oficina/equipo/internal/runner/containment TestEngineeringOfflineGo
receipt: slow test 24.16s amadan.net/oficina/equipo/cmd/equipo-runner TestReleaseRunnerHasNoFakeWorker
receipt: slow test 23.69s amadan.net/oficina/equipo/internal/runner/provider/opencode TestOpenCodeAcceptanceHostileRepository
receipt: slow test 16.93s amadan.net/oficina/equipo/internal/runner/provider/pi TestPiGoBinaryIsolation
receipt: slow test 15.27s amadan.net/oficina/equipo/internal/runner/provider/opencode TestOpenCodeP1OnlyOpenCodeReachable
rastrillo: budget test: go test failed
exit status 1
+ go test -tags testbuild -timeout 15m -v -run '^TestMeteredRaceAdmitsExactlyOne$' -count=1 ./internal/runner/metered   (retry, once)
##############################################################################
FLAKE ./internal/runner/metered:TestMeteredRaceAdmitsExactlyOne rest f74ae16e0a4b47a528a94e8069e67149595e89d7 0.02s 32.16
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 32.16, cpu waiting 17.80%, memory waiting 0.00%, io waiting 0.17%
--- shard 18 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-chat: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$' ./internal/headless
rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserChat
=== RUN   TestBrowserChat
time=2026-11-20T09:09:59.992Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-20T09:09:59.992Z level=INFO msg="startup phase done" phase=state_lock took=209µs
time=2026-11-20T09:09:59.992Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-20T09:09:59.992Z level=INFO msg="startup phase done" phase=claim_roots took=120µs
time=2026-11-20T09:09:59.992Z level=INFO msg="startup phase" phase=sweep
time=2026-11-20T09:10:00.039Z level=INFO msg="startup phase done" phase=sweep took=46.652ms
time=2026-11-20T09:10:00.042Z level=INFO msg="startup phase" phase=credentials
time=2026-11-20T09:10:00.042Z level=INFO msg="startup phase done" phase=credentials took=152µs
time=2026-11-20T09:10:00.042Z level=INFO msg="startup phase" phase=open_state
time=2026-11-20T09:10:00.088Z level=INFO msg="startup phase done" phase=open_state took=46.107ms
time=2026-11-20T09:10:00.089Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-20T09:10:00.090Z level=INFO msg=connecting host=127.0.0.1:39201 protocol=28
time=2026-11-20T09:10:00.092Z level=INFO msg=connected host=127.0.0.1:39201 took=2.352ms
time=2026-11-20T09:10:00.092Z level=INFO msg="capabilities gathering"
time=2026-11-20T09:10:00.093Z level=INFO msg="capabilities gathered" took=713µs tags=linux,claude,go
time=2026-11-20T09:10:00.097Z level=INFO msg="hello sent" protocol=28
time=2026-11-20T09:10:00.098Z level=INFO msg=welcome protocol=28 role=primary generation=1
time=2026-11-20T09:10:02.196Z level=INFO msg="connection checked" connection=claude-1 state=healthy
    browser_test.go:46: waiting for [...document.querySelectorAll('[equipo-message="incoming"] [equipo-markdown]:not([data-stream-text])')].some(e=>e.textContent.includes('fake coordinator')): context deadline exceeded (last evaluation: context deadline exceeded)
--- FAIL: TestBrowserChat (6.25s)

--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
=== RUN   TestBrowserChatSendStaysOnPage
time=2026-11-20T09:10:06.224Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-20T09:10:06.224Z level=INFO msg="startup phase done" phase=state_lock took=271µs
time=2026-11-20T09:10:06.224Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-20T09:10:06.224Z level=INFO msg="startup phase done" phase=claim_roots took=181µs
time=2026-11-20T09:10:06.225Z level=INFO msg="startup phase" phase=sweep
time=2026-11-20T09:10:06.274Z level=INFO msg="startup phase done" phase=sweep took=49.032ms
time=2026-11-20T09:10:06.274Z level=INFO msg="startup phase" phase=credentials
time=2026-11-20T09:10:06.274Z level=INFO msg="startup phase done" phase=credentials took=315µs
time=2026-11-20T09:10:06.274Z level=INFO msg="startup phase" phase=open_state
time=2026-11-20T09:10:06.333Z level=INFO msg="startup phase done" phase=open_state took=58.353ms
time=2026-11-20T09:10:06.333Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-20T09:10:06.336Z level=INFO msg=connecting host=127.0.0.1:45009 protocol=28
time=2026-11-20T09:10:06.339Z level=INFO msg=connected host=127.0.0.1:45009 took=1.482ms
time=2026-11-20T09:10:06.339Z level=INFO msg="capabilities gathering"
time=2026-11-20T09:10:06.340Z level=INFO msg="capabilities gathered" took=1.013ms tags=linux,claude,go
time=2026-11-20T09:10:06.340Z level=INFO msg="hello sent" protocol=28
time=2026-11-20T09:10:06.355Z level=INFO msg=welcome protocol=28 role=primary generation=1
time=2026-11-20T09:10:08.336Z level=INFO msg="connection checked" connection=claude-1 state=healthy
    browser_test.go:108: waiting for [...document.querySelectorAll('[equipo-message="incoming"] [equipo-markdown]:not([data-stream-text])')].some(e=>e.textContent.includes('fake coordinator')): context deadline exceeded (last evaluation: context deadline exceeded)
--- FAIL: TestBrowserChatSendStaysOnPage (6.21s)

--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
=== RUN   TestBrowserDraftIsTheMessage
time=2026-11-20T09:10:12.472Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-20T09:10:12.472Z level=INFO msg="startup phase done" phase=state_lock took=283µs
time=2026-11-20T09:10:12.472Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-20T09:10:12.472Z level=INFO msg="startup phase done" phase=claim_roots took=185µs
time=2026-11-20T09:10:12.472Z level=INFO msg="startup phase" phase=sweep
time=2026-11-20T09:10:12.532Z level=INFO msg="startup phase done" phase=sweep took=59.201ms
time=2026-11-20T09:10:12.532Z level=INFO msg="startup phase" phase=credentials
time=2026-11-20T09:10:12.532Z level=INFO msg="startup phase done" phase=credentials took=216µs
time=2026-11-20T09:10:12.532Z level=INFO msg="startup phase" phase=open_state
time=2026-11-20T09:10:12.594Z level=INFO msg="startup phase done" phase=open_state took=62.206ms
time=2026-11-20T09:10:12.595Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-20T09:10:12.596Z level=INFO msg=connecting host=127.0.0.1:43263 protocol=28
time=2026-11-20T09:10:12.598Z level=INFO msg=connected host=127.0.0.1:43263 took=1.886ms
time=2026-11-20T09:10:12.598Z level=INFO msg="capabilities gathering"
time=2026-11-20T09:10:12.599Z level=INFO msg="capabilities gathered" took=1.317ms tags=linux,claude,go
time=2026-11-20T09:10:12.599Z level=INFO msg="hello sent" protocol=28
time=2026-11-20T09:10:12.608Z level=INFO msg=welcome protocol=28 role=primary generation=1
time=2026-11-20T09:10:14.779Z level=INFO msg="connection checked" connection=claude-1 state=healthy
    browser_thinking_test.go:106: waiting for !!window.__m: context deadline exceeded (last evaluation: context deadline exceeded)
--- FAIL: TestBrowserDraftIsTheMessage (8.13s)

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


receipt: test step 50.214s 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 48.767s amadan.net/oficina/equipo/internal/headless
receipt: slow test 15.48s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 8.13s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 7.79s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 6.25s amadan.net/oficina/equipo/internal/headless TestBrowserChat
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 '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserDraftIsTheMessage$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserChat browser-headless-chat f74ae16e0a4b47a528a94e8069e67149595e89d7 6.25s 60.64
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
##############################################################################
FLAKE ./internal/headless:TestBrowserChatSendStaysOnPage browser-headless-chat f74ae16e0a4b47a528a94e8069e67149595e89d7 6.21s 60.64
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
##############################################################################
FLAKE ./internal/headless:TestBrowserDraftIsTheMessage browser-headless-chat f74ae16e0a4b47a528a94e8069e67149595e89d7 8.13s 60.64
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 53.74, cpu waiting 33.28%, memory waiting 0.00%, io waiting 0.32%
--- 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-20T09:09:55.732Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-20T09:09:55.732Z level=INFO msg="startup phase done" phase=state_lock took=198µs
time=2026-11-20T09:09:55.732Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-20T09:09:55.732Z level=INFO msg="startup phase done" phase=claim_roots took=130µs
time=2026-11-20T09:09:55.732Z level=INFO msg="startup phase" phase=sweep
time=2026-11-20T09:09:55.766Z level=INFO msg="startup phase done" phase=sweep took=33.083ms
time=2026-11-20T09:09:55.766Z level=INFO msg="startup phase" phase=credentials
time=2026-11-20T09:09:55.766Z level=INFO msg="startup phase done" phase=credentials took=103µs
time=2026-11-20T09:09:55.766Z level=INFO msg="startup phase" phase=open_state
time=2026-11-20T09:09:55.807Z level=INFO msg="startup phase done" phase=open_state took=41.19ms
time=2026-11-20T09:09:55.808Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-20T09:09:55.809Z level=INFO msg=connecting host=127.0.0.1:39407 protocol=28
time=2026-11-20T09:09:55.811Z level=INFO msg=connected host=127.0.0.1:39407 took=1.931ms
time=2026-11-20T09:09:55.811Z level=INFO msg="capabilities gathering"
time=2026-11-20T09:09:55.812Z level=INFO msg="capabilities gathered" took=341µs tags=linux,claude,go
time=2026-11-20T09:09:55.812Z level=INFO msg="hello sent" protocol=28
time=2026-11-20T09:09:55.818Z level=INFO msg=welcome protocol=28 role=primary generation=1
time=2026-11-20T09:09:57.115Z level=INFO msg="connection checked" connection=claude-1 state=healthy
time=2026-11-20T09:10:06.097Z level=INFO msg="kept sessions" kept=1 bytes=2770 expired=0
time=2026-11-20T09:10:10.914Z level=INFO msg="kept sessions" kept=2 bytes=4922 expired=0
time=2026-11-20T09:10:11.645Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-20T09:10:11.645Z level=INFO msg="startup phase done" phase=state_lock took=67µs
time=2026-11-20T09:10:11.645Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-20T09:10:11.645Z level=INFO msg="startup phase done" phase=claim_roots took=87µs
time=2026-11-20T09:10:11.645Z level=INFO msg="startup phase" phase=sweep
time=2026-11-20T09:10:11.695Z level=INFO msg="startup phase done" phase=sweep took=49.821ms
time=2026-11-20T09:10:11.695Z level=INFO msg="startup phase" phase=credentials
time=2026-11-20T09:10:11.695Z level=INFO msg="startup phase done" phase=credentials took=208µs
time=2026-11-20T09:10:11.696Z level=INFO msg="startup phase" phase=open_state
time=2026-11-20T09:10:11.749Z level=INFO msg="startup phase done" phase=open_state took=53.904ms
time=2026-11-20T09:10:11.751Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-20T09:10:11.754Z level=INFO msg=connecting host=127.0.0.1:44875 protocol=28
time=2026-11-20T09:10:11.755Z level=INFO msg=connected host=127.0.0.1:44875 took=1.134ms
time=2026-11-20T09:10:11.755Z level=INFO msg="capabilities gathering"
time=2026-11-20T09:10:11.759Z level=INFO msg="capabilities gathered" took=3.947ms tags=linux,claude,go
time=2026-11-20T09:10:11.764Z level=INFO msg="hello sent" protocol=28
time=2026-11-20T09:10:11.769Z level=INFO msg=welcome protocol=28 role=primary generation=1
time=2026-11-20T09:10:14.127Z level=INFO msg="connection checked" connection=claude-1 state=healthy
    browser_review_test.go:57: waiting for document.querySelector('#rail [data-specialist="engineering"]')?.dataset.state==='working' && document.querySelector('#rail [data-specialist="engineering"]').querySelector('[equipo-nav-task]')?.textContent==='Slow sidebar change' && document.querySelector('#nav-tasks [data-count]')?.textContent==='1': context deadline exceeded (last evaluation: context deadline exceeded)
--- FAIL: TestBrowserRailFollowsWork (22.36s)

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


receipt: test step 1m38.974s 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.346s amadan.net/oficina/equipo/internal/headless
receipt: slow test 27.86s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 22.36s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 14.57s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 11.5s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
receipt: slow test 11.01s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
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 f74ae16e0a4b47a528a94e8069e67149595e89d7 22.36s 60.94
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 47.27, cpu waiting 27.44%, memory waiting 0.00%, io waiting 0.26%
--- shard 20 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-connections: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless

receipt: test step 1m49.797s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m47.477s amadan.net/oficina/equipo/internal/headless
receipt: slow test 19.06s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 13.81s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 13.22s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 11.1s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
receipt: slow test 10.44s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsOpenCodeGoLimitRequired
machine: 32 CPUs, load 53.74, cpu waiting 33.28%, memory waiting 0.00%, io waiting 0.32%
--- 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
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserEmptyExplore
=== RUN   TestBrowserEmptyExplore
time=2026-11-20T09:10:47.953Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-20T09:10:47.954Z level=INFO msg="startup phase done" phase=state_lock took=443µs
time=2026-11-20T09:10:47.954Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-20T09:10:47.954Z level=INFO msg="startup phase done" phase=claim_roots took=94µs
time=2026-11-20T09:10:47.954Z level=INFO msg="startup phase" phase=sweep
time=2026-11-20T09:10:47.982Z level=INFO msg="startup phase done" phase=sweep took=28.487ms
time=2026-11-20T09:10:47.982Z level=INFO msg="startup phase" phase=credentials
time=2026-11-20T09:10:47.983Z level=INFO msg="startup phase done" phase=credentials took=102µs
time=2026-11-20T09:10:47.983Z level=INFO msg="startup phase" phase=open_state
time=2026-11-20T09:10:48.024Z level=INFO msg="startup phase done" phase=open_state took=41.631ms
time=2026-11-20T09:10:48.025Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-20T09:10:48.026Z level=INFO msg=connecting host=127.0.0.1:33125 protocol=28
time=2026-11-20T09:10:48.028Z level=INFO msg=connected host=127.0.0.1:33125 took=1.791ms
time=2026-11-20T09:10:48.028Z level=INFO msg="capabilities gathering"
time=2026-11-20T09:10:48.028Z level=INFO msg="capabilities gathered" took=444µs tags=linux,claude,go
time=2026-11-20T09:10:48.031Z level=INFO msg="hello sent" protocol=28
time=2026-11-20T09:10:48.035Z level=INFO msg=welcome protocol=28 role=primary generation=1
time=2026-11-20T09:10:49.118Z 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.84s)

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


receipt: test step 1m38.878s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 0 cached, 0 without tests, 1 failed
receipt: slow package 1m36.849s amadan.net/oficina/equipo/internal/headless
receipt: slow test 15.36s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 12.93s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 12.12s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 10.98s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 8.2s amadan.net/oficina/equipo/internal/headless TestBrowserNotebookLook
rastrillo: budget test: go test failed
exit status 1
+ go test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' -v -run '^TestBrowserEmptyExplore$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserEmptyExplore browser-headless-rest f74ae16e0a4b47a528a94e8069e67149595e89d7 5.84s 63.98
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 56.94, cpu waiting 34.41%, memory waiting 0.00%, io waiting 0.34%
--- shard 22 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-rest: ./internal/equipo
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserPreviewBlocksNavigation)$' ./internal/equipo

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

receipt: test step 3.021s 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.669s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 1.67s 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.128s 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.855s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 1.85s amadan.net/oficina/equipo/internal/plan3test TestTeamsHierarchyBrowser
browser lane browser-rest: ./internal/thintest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAccessEmojiByline|TestBrowserAccessFinalOutcomes|TestBrowserAccessRequest|TestBrowserAccessReview|TestBrowserActivitySubjects|TestBrowserAutonomySettings|TestBrowserCoordinatorQueue|TestBrowserEmptyConversation|TestBrowserHousekeeping|TestBrowserInnerGallery|TestBrowserInnerScreens|TestBrowserInstantThinking|TestBrowserInstantThinkingQueued|TestBrowserMachines|TestBrowserPhoneIndex|TestBrowserPlacementQuestionAndPending|TestBrowserProjectPlacement|TestBrowserProjectsList|TestBrowserReportActionFeedback|TestBrowserReportNextSteps|TestBrowserReportThread|TestBrowserRollup|TestBrowserRosterAlignment|TestBrowserRosterDecisionStates|TestBrowserRosterQuietDay|TestBrowserRosterReports|TestBrowserRosterSetAside|TestBrowserRosterSubchat|TestBrowserRosterThinking|TestBrowserRosterVisual|TestBrowserSettingsHousekeepingGroups|TestBrowserSettingsMenu|TestBrowserSettingsRail|TestBrowserSettingsSaveBar|TestBrowserSettingsShots|TestBrowserSettingsStayOnPage|TestBrowserSettingsTeams|TestBrowserShipsButtons|TestBrowserSpecialistRows|TestBrowserSpendFollowsAnswers|TestBrowserTaskRows|TestBrowserTeamPanel|TestBrowserThinkingCycles|TestBrowserThinkingLinesClear|TestBrowserThinkingWords|TestBrowserTokenRowEmail|TestBrowserTrackStarCentre)$' ./internal/thintest

receipt: test step 3m6.03s 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 3m4.473s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 17.09s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.35s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 10.47s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 9s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 7.85s amadan.net/oficina/equipo/internal/thintest TestBrowserInnerScreens
machine: 32 CPUs, load 14.89, cpu waiting 8.00%, memory waiting 0.00%, io waiting 0.07%
--- 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   (57s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 5.11s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.39s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 10.18s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 10.32s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 27.89s
+ 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   (75s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 18.12s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 17.12s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 21.11s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 16.45s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (23s)
ok ./internal/headless TestMixedVersions 21.15s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (2s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.82s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin   (2s)
ok ./internal/runner/thin TestRunnerCancelAndSupersede 0.05s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 71.06, cpu waiting 42.46%, memory waiting 0.00%, io waiting 0.58%
--- 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 13.16s 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.541s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 188ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 95ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 2ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow package 0s amadan.net/oficina/equipo/internal/runner/provider/gotoolchain
receipt: slow test 5.37s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.72s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 340ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 190ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 90ms 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.934s 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.947s 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 140ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
receipt: slow test 100ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicy
machine: 32 CPUs, load 22.73, cpu waiting 11.00%, memory waiting 0.00%, io waiting 1.55%
--- shard 25 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: runner-dead-references started 30s late; cpu waiting 35.4%, load 26.86
shard 25: make runner-dead-references lanes-check build vet fmt-check budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 2444 text files, 2846 matches, 0 failures
python3 scripts/ci-test.py check
lanes: 18 lanes and 5 browser lanes run every test once; 20-check@29
CGO_ENABLED=0 go build ./...
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o /dev/null ./cmd/equipo-runner
go vet ./...
go vet -tags testbuild ./internal/runner/thin ./internal/headless
GOOS=darwin GOARCH=arm64 go vet ./cmd/equipo-runner/... ./internal/runner/... ./internal/wire/... ./internal/release/...
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget size
budget size: 87 directories within budget
CGO_ENABLED=0 go test ./internal/equipo -run '^TestMigrationModels$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipo	2.454s
machine: 32 CPUs, load 71.06, cpu waiting 42.68%, memory waiting 0.00%, io waiting 0.56%
--- 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 35.4%, load 26.86
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 67.56, cpu waiting 35.70%, memory waiting 0.00%, io waiting 0.85%
--- 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 35.4%, load 26.86
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 35.20, cpu waiting 22.67%, memory waiting 0.00%, io waiting 1.11%
--- 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 35.4%, load 26.86
shard 28: make gitleaks
9:09AM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
9:10AM INF 1045 commits scanned.
9:10AM INF scanned ~60086818 bytes (60.09 MB) in 24.7s
9:10AM INF no leaks found
machine: 32 CPUs, load 67.56, cpu waiting 35.70%, memory waiting 0.00%, io waiting 0.85%
=== 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.03ms, worst 1.076ms, budget 150ms
perf: GET /api/runner/protocol: median 75µs, worst 110µs, budget 150ms
perf: GET /api/v1/account-setups/{id}: median 601µs, worst 616µs, budget 150ms
perf: GET /api/v1/accounts: median 414µs, worst 457µs, budget 150ms
perf: GET /api/v1/auth/devices: median 430µs, worst 491µs, budget 150ms
perf: GET /api/v1/budgets: median 488µs, worst 543µs, budget 150ms
perf: GET /api/v1/capabilities: median 254µs, worst 271µs, budget 150ms
perf: GET /api/v1/cards/{id}: median 1.192ms, worst 1.332ms, budget 150ms
perf: GET /api/v1/connections: median 578µs, worst 598µs, budget 150ms
perf: GET /api/v1/connections/{id}: median 538µs, worst 562µs, budget 150ms
perf: GET /api/v1/conversation: median 916µs, worst 943µs, budget 150ms
perf: GET /api/v1/conversation/cards: median 1.493ms, worst 1.585ms, budget 150ms
perf: GET /api/v1/coordinator: median 1.752ms, worst 2.686ms, budget 150ms
perf: GET /api/v1/invites/{id}: median 457µs, worst 575µs, budget 150ms
perf: GET /api/v1/journey: median 8.974ms, worst 9.411ms, budget 150ms
perf: GET /api/v1/me: median 467µs, worst 498µs, budget 150ms
perf: GET /api/v1/me/settings: median 572µs, worst 595µs, budget 150ms
perf: GET /api/v1/needs-you: median 8.602ms, worst 8.843ms, budget 150ms
perf: GET /api/v1/notifications: median 1.573ms, worst 1.738ms, budget 150ms
perf: GET /api/v1/onboarding: median 393µs, worst 400µs, budget 150ms
perf: GET /api/v1/people: median 437µs, worst 447µs, budget 150ms
perf: GET /api/v1/playbooks: median 585µs, worst 607µs, budget 150ms
perf: GET /api/v1/playbooks/{id}: median 528µs, worst 567µs, budget 150ms
perf: GET /api/v1/playbooks/{id}/template-diff: median 823µs, worst 862µs, budget 150ms
perf: GET /api/v1/preferences: median 772µs, worst 779µs, budget 150ms
perf: GET /api/v1/projects/{id}: median 472µs, worst 503µs, budget 150ms
perf: GET /api/v1/projects/{id}/settings: median 589µs, worst 610µs, budget 150ms
perf: GET /api/v1/roster: median 463µs, worst 493µs, budget 150ms
perf: GET /api/v1/runners/{id}: median 425µs, worst 454µs, budget 150ms
perf: GET /api/v1/specialists: median 7.949ms, worst 8.073ms, budget 150ms
perf: GET /api/v1/specialists/{id}: median 7.83ms, worst 7.966ms, budget 150ms
perf: GET /api/v1/specialists/{id}/template-diff: median 819µs, worst 853µs, budget 150ms
perf: GET /api/v1/tasks/{id}/plan: median 1.078ms, worst 1.167ms, budget 150ms
perf: GET /api/v1/tasks/{id}/thread: median 719µs, worst 750µs, budget 150ms
perf: GET /api/v1/teams: median 408µs, worst 433µs, budget 150ms
perf: GET /api/v1/templates: median 583µs, worst 607µs, budget 150ms
perf: GET /api/v1/templates/{id}: median 444µs, worst 467µs, budget 150ms
perf: GET /auth/callback: median 80µs, worst 93µs, budget 150ms
perf: GET /auth/devices/{id}: median 3.196ms, worst 3.252ms, budget 150ms
perf: GET /auth/verify: median 82µs, worst 125µs, budget 150ms
perf: GET /connections: median 3.518ms, worst 3.567ms, budget 150ms
perf: GET /conversation: median 7.507ms, worst 10.306ms, budget 150ms
perf: GET /conversation/connections: median 251µs, worst 275µs, budget 150ms
perf: GET /conversation/notebook: median 248µs, worst 262µs, budget 150ms
perf: GET /conversation/settings: median 3.931ms, worst 4.066ms, budget 150ms
perf: GET /conversation/settings/autonomy: median 3.503ms, worst 3.622ms, budget 150ms
perf: GET /conversation/settings/connections: median 6.086ms, worst 6.296ms, budget 150ms
perf: GET /conversation/settings/connections/add: median 6.258ms, worst 6.376ms, budget 150ms
perf: GET /conversation/settings/copy: median 3.504ms, worst 3.56ms, budget 150ms
perf: GET /conversation/settings/housekeeping: median 3.965ms, worst 4.125ms, budget 150ms
perf: GET /conversation/settings/machines: median 4.318ms, worst 4.465ms, budget 150ms
perf: GET /conversation/settings/machines/add: median 4.427ms, worst 6.328ms, budget 150ms
perf: GET /conversation/settings/notebook: median 3.438ms, worst 3.473ms, budget 150ms
perf: GET /conversation/settings/thinking: median 3.911ms, worst 3.972ms, budget 150ms
perf: GET /housekeeping: median 3.639ms, worst 3.693ms, budget 150ms
perf: GET /invites/new: median 578µs, worst 635µs, budget 150ms
perf: GET /invites/{id}: median 622µs, worst 649µs, budget 150ms
perf: GET /jobs: median 3.185ms, worst 3.25ms, budget 150ms
perf: GET /jobs/{id}: median 4.295ms, worst 4.427ms, budget 150ms
perf: GET /journey: median 10.014ms, worst 10.101ms, budget 150ms
perf: GET /nav/rail: median 2.813ms, worst 2.845ms, budget 150ms
perf: GET /needs-you: median 9.867ms, worst 13.079ms, budget 150ms
perf: GET /onboarding: median 3.913ms, worst 4.041ms, budget 150ms
perf: GET /people: median 3.263ms, worst 3.31ms, budget 150ms
perf: GET /playbook-suggestions/{suggestion}: median 4.493ms, worst 4.679ms, budget 150ms
perf: GET /playbooks: median 4.007ms, worst 4.114ms, budget 150ms
perf: GET /playbooks/new: median 4.107ms, worst 4.203ms, budget 150ms
perf: GET /playbooks/{id}: median 4.593ms, worst 4.807ms, budget 150ms
perf: GET /playbooks/{id}/edit: median 4.596ms, worst 4.656ms, budget 150ms
perf: GET /playbooks/{id}/template-diff: median 3.881ms, worst 3.951ms, budget 150ms
perf: GET /preferences: median 4.025ms, worst 4.119ms, budget 150ms
perf: GET /preferences/sources/{source}: median 3.857ms, worst 3.928ms, budget 150ms
perf: GET /projects: median 5.153ms, worst 7.577ms, budget 150ms
perf: GET /projects/accounts: median 3.596ms, worst 3.655ms, budget 150ms
perf: GET /projects/new: median 3.501ms, worst 3.588ms, budget 150ms
perf: GET /projects/{id}: median 10.168ms, worst 10.269ms, budget 150ms
perf: GET /projects/{id}/edit: median 3.546ms, worst 3.625ms, budget 150ms
perf: GET /runners/enrol: median 4.251ms, worst 4.384ms, budget 150ms
perf: GET /settings: median 3.276ms, worst 3.382ms, budget 150ms
perf: GET /settings/coordinator: median 5.188ms, worst 5.449ms, budget 150ms
perf: GET /settings/devices: median 3.092ms, worst 3.205ms, budget 150ms
perf: GET /settings/recovery: median 3.249ms, worst 3.339ms, budget 150ms
perf: GET /settings/recovery/release: median 3.436ms, worst 5.051ms, budget 150ms
perf: GET /settings/thinking: median 249µs, worst 265µs, budget 150ms
perf: GET /signin: median 344µs, worst 366µs, budget 150ms
perf: GET /specialists/new: median 3.338ms, worst 3.428ms, budget 150ms
perf: GET /specialists/{key}: median 12.552ms, worst 12.789ms, budget 150ms
perf: GET /specialists/{key}/edit: median 3.954ms, worst 4.04ms, budget 150ms
perf: GET /specialists/{key}/template-diff: median 3.95ms, worst 4.115ms, budget 150ms
perf: GET /tasks: median 5.528ms, worst 5.725ms, budget 150ms
perf: GET /tasks/new: median 3.417ms, worst 3.53ms, budget 150ms
perf: GET /tasks/{id}: median 5.988ms, worst 6.118ms, budget 150ms
perf: GET /tasks/{id}/merge: median 5.277ms, worst 5.419ms, budget 150ms
perf: GET /tasks/{id}/move: median 5.006ms, worst 7.12ms, budget 150ms
perf: GET /tasks/{id}/plan: median 5.529ms, worst 5.731ms, budget 150ms
perf: GET /tasks/{id}/preview: median 1.5ms, worst 1.566ms, budget 150ms
perf: GET /tasks/{id}/questions/{question}: median 5.006ms, worst 5.117ms, budget 150ms
perf: GET /tasks/{id}/rendered-change: median 4.513ms, worst 4.592ms, budget 150ms
perf: GET /tasks/{id}/rendered-change/{hash}.png: median 4.089ms, worst 4.243ms, budget 150ms
perf: GET /tasks/{id}/thread: median 7.542ms, worst 7.653ms, budget 150ms
perf: GET /team/{specialist}: median 4.162ms, worst 4.333ms, budget 150ms
perf: GET /teams: median 11.408ms, worst 14.918ms, budget 150ms
perf: GET /templates: median 3.786ms, worst 3.994ms, budget 150ms
perf: GET /usage: median 4.461ms, worst 4.579ms, budget 150ms
perf: GET /work: median 3.297ms, worst 3.358ms, budget 150ms
perf: cold boot: median 255ms of [255.374009ms 255.428285ms 255.689211ms], budget 500ms

receipt: test step 46.348s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 83 without tests, 0 failed
receipt: slow package 8.817s 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 8s amadan.net/oficina/equipo/internal/equipotest TestPerfScreens
receipt: slow test 820ms amadan.net/oficina/equipo/internal/equipotest TestPerfBoot
=== cache ===
ci-box: build cache /home/ci/work/repos/oficina__equipo/cache/go-build: 4.91 GiB in 27277 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 2.50 GiB this job did not read, kept 2.41 GiB
diff --git a/.rastrillo/budgets.txt b/.rastrillo/budgets.txt
index 5342adda..992c61f7 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 31167 - Fable follow-up: base and diagnostic gates, preview isolation and provenance guards; measured 31167/6180 source/test lines.
+size internal/equipo/chat 31301 - Fable follow-up: base and diagnostic gates, preview isolation and provenance guards; failed turns carried; measured 31301/6180 source/test 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 - 11319 Fable follow-up: base and diagnostic gates, preview isolation and provenance guards; live staging witnesses; measured 0/11319 source/test lines (live first-stage check).
-size internal/thintest - 32091 Fable follow-up: base and diagnostic gates, preview isolation and provenance guards; empty conversation page and browser checks; measured 1515/32091 source/test lines.
+size internal/thintest - 32373 Fable follow-up: base and diagnostic gates, preview isolation and provenance guards; empty conversation page and browser checks; failed turns carried; measured 1515/32373 source/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.
diff --git a/internal/equipo/chat/handoff.go b/internal/equipo/chat/handoff.go
index f5b4799c..92b147c2 100644
--- a/internal/equipo/chat/handoff.go
+++ b/internal/equipo/chat/handoff.go
@@ -328,8 +328,9 @@ func (t *txn) liveCall(call toolCallRecord) (turnRecord, error) {
}
// quote is words as the person wrote them in one of the turn's
-// messages: found there compared lower-cased with each run of
-// whitespace as one space, at least minQuote characters. Only a turn
+// messages, or one it carried from a turn that failed before the model
+// saw it (carriedRecord): found there compared lower-cased with each run
+// of whitespace as one space, at least minQuote characters. Only a turn
// the person started has their words (a team_update turn has none).
func (t *txn) quote(r turnRecord, words string) (string, error) {
refuse := assist.Failure{Code: "not_their_words"}
@@ -342,7 +343,12 @@ func (t *txn) quote(r turnRecord, words string) (string, error) {
if err := t.db.Model(&messageRecord{}).Where("turn_id = ? AND person = ? AND role = ?", r.ID, r.Person, wire.RolePerson).Order("seq").Pluck("text", &texts).Error; err != nil {
return "", err
}
- for _, text := range texts {
+ // Exactly the messages dispatch carried: the person's own, in the lane.
+ var carried []string
+ if err := t.db.Model(&messageRecord{}).Where("person = ? AND role = ? AND origin = ? AND coalesce(lane, '') = ? AND id IN (SELECT message_id FROM chat_turn_carried WHERE turn_id = ? AND person = ?)", r.Person, wire.RolePerson, originComposer, r.Lane, r.ID, r.Person).Order("seq").Pluck("text", &carried).Error; err != nil {
+ return "", err
+ }
+ for _, text := range append(texts, carried...) {
if found, ok := quoteIn(text, w); ok {
return found, nil
}
diff --git a/internal/equipo/chat/models.go b/internal/equipo/chat/models.go
index b042c325..0107066e 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{}, &connectTurnRecord{}}
+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{}, &carriedRecord{}}
type turnRecord struct {
CreateRepo string
@@ -40,6 +40,16 @@ type turnRecord struct {
func (turnRecord) TableName() string { return "chat_turns" }
+// carriedRecord is one person's message a turn carried, unanswered, from
+// a turn that failed before it (dispatch, unanswered).
+type carriedRecord struct {
+ TurnID string `gorm:"primaryKey"`
+ MessageID string `gorm:"primaryKey"`
+ Person string
+}
+
+func (carriedRecord) TableName() string { return "chat_turn_carried" }
+
// messageRecord's integer key is the SQLite rowid, so the person index
// orders by it. Coordinator replies use the key "reply:<turn>". A key is
// unique per person and lane.
diff --git a/internal/equipo/chat/store.go b/internal/equipo/chat/store.go
index 3d88fee6..069283fd 100644
--- a/internal/equipo/chat/store.go
+++ b/internal/equipo/chat/store.go
@@ -324,9 +324,9 @@ func (t *txn) dispatch(r *turnRecord) error {
if err := t.db.Where("person = ? AND coalesce(lane, '') = ? AND turn_id <> ? AND turn_id NOT IN (SELECT id FROM chat_turns WHERE person = ? AND dispatched = ? AND state = ?)", r.Person, r.Lane, r.ID, r.Person, false, wire.TurnQueued).Order("seq DESC").Limit(wire.MaxTailMessages).Find(&prior).Error; err != nil {
return err
}
- // The person's words in turns that failed since the lane's last
- // answer mostly never reached the coordinator: they ride in this
- // turn's frame, marked unanswered, and not in the tail as if answered.
+ // The person's words in turns that failed before the model ran never
+ // reached the coordinator: they ride in this turn's frame, marked
+ // unanswered, and not in the tail as if answered.
var carried []messageRecord
if r.Kind == wire.TurnPerson {
var err error
@@ -414,6 +414,12 @@ func (t *txn) dispatch(r *turnRecord) error {
}
carried = carried[1:]
}
+ // In this turn the carried words are the person's too (quote).
+ for _, m := range carried {
+ if err := t.db.Create(&carriedRecord{TurnID: r.ID, MessageID: m.ID, Person: r.Person}).Error; err != nil {
+ return err
+ }
+ }
return t.command(r.Person, wire.FrameMessage, cmd)
}
@@ -425,21 +431,29 @@ const (
maxUnanswered = 10
)
-// unanswered is the person's own words (composer messages, never a
-// tapped option) in the lane's person turns that failed after its last
-// answered one, the newest maxCarriedTurns of them, oldest first. A
-// failure before the words reached the coordinator leaves them out of a
-// resumed session's transcript, and a fresh session's tail showed them
-// as if answered. A cancelled turn's are not carried: the person stopped
-// it.
+// reachedModel is SQL true when the chat_turns row reached the model: a
+// delta or an activity was recorded for it, or a tool call, or usage.
+// Events are kept a day (wire.EventRetention), longer than a session
+// resumes (the same UTC day); tool calls and usage are kept.
+const reachedModel = "(EXISTS (SELECT 1 FROM chat_tool_calls c WHERE c.turn_id = chat_turns.id) OR EXISTS (SELECT 1 FROM chat_usage u WHERE u.turn_id = chat_turns.id) OR EXISTS (SELECT 1 FROM chat_events e WHERE e.person = chat_turns.person AND e.type IN ('" + wire.EventDelta + "', '" + wire.EventActivity + "') AND e.body LIKE '%\"turn_id\":\"' || chat_turns.id || '\"%'))"
+
+// unanswered is the person's plain messages (composer words, not a card's
+// answer or reply, which reach the model with their card) in the lane's
+// failed person turns since the last that reached the model (answered,
+// or ended after it began), the newest maxCarriedTurns of them, oldest
+// first. So each failed before the model ran: its words are in no
+// transcript, and the tail showed them as if answered. A turn that
+// reached the model bounds them, its own words and those it carried: a
+// resumed session's transcript may hold them. A cancelled turn's are not
+// carried: the person stopped it.
func (t *txn) unanswered(r *turnRecord) ([]messageRecord, error) {
- turns := "SELECT id FROM chat_turns WHERE person = ? AND coalesce(lane, '') = ? AND coalesce(kind, '') = '' AND state = ?"
+ turns := "SELECT id FROM chat_turns WHERE person = ? AND coalesce(lane, '') = ? AND coalesce(kind, '') = '' AND "
var last int64
- if err := t.db.Model(&messageRecord{}).Select("coalesce(max(seq), 0)").Where("person = ? AND coalesce(lane, '') = ? AND role = ? AND turn_id IN ("+turns+")", r.Person, r.Lane, wire.RolePerson, r.Person, r.Lane, wire.TurnReplied).Scan(&last).Error; err != nil {
+ if err := t.db.Model(&messageRecord{}).Select("coalesce(max(seq), 0)").Where("person = ? AND coalesce(lane, '') = ? AND role = ? AND turn_id IN ("+turns+"(state = ? OR state IN ? AND "+reachedModel+"))", r.Person, r.Lane, wire.RolePerson, r.Person, r.Lane, wire.TurnReplied, []string{wire.TurnFailed, wire.TurnCancelled}).Scan(&last).Error; err != nil {
return nil, err
}
var rows []messageRecord
- if err := t.db.Where("person = ? AND coalesce(lane, '') = ? AND role = ? AND seq > ? AND turn_id <> ? AND turn_id IN ("+turns+")", r.Person, r.Lane, wire.RolePerson, last, r.ID, r.Person, r.Lane, wire.TurnFailed).Order("seq DESC").Limit(wire.MaxTailMessages).Find(&rows).Error; err != nil {
+ if err := t.db.Where("person = ? AND coalesce(lane, '') = ? AND role = ? AND seq > ? AND turn_id <> ? AND turn_id IN ("+turns+"state = ?)", r.Person, r.Lane, wire.RolePerson, last, r.ID, r.Person, r.Lane, wire.TurnFailed).Order("seq DESC").Limit(wire.MaxTailMessages).Find(&rows).Error; err != nil {
return nil, err
}
var out []messageRecord
@@ -449,7 +463,14 @@ func (t *txn) unanswered(r *turnRecord) ([]messageRecord, error) {
break
}
seen[m.TurnID] = true
- if m.Origin == originComposer && len(out) < maxUnanswered {
+ if m.Origin != originComposer || len(out) == maxUnanswered {
+ continue
+ }
+ var cards int64
+ if err := t.db.Model(&cardRecord{}).Where("person = ? AND (answer_message = ? OR id IN (SELECT card_id FROM chat_card_threads WHERE message_id = ? AND person = ?))", m.Person, m.ID, m.ID, m.Person).Count(&cards).Error; err != nil {
+ return nil, err
+ }
+ if cards == 0 {
out = append(out, m)
}
}
diff --git a/internal/equipo/chat/tools.go b/internal/equipo/chat/tools.go
index bc0d38d0..c73a3393 100644
--- a/internal/equipo/chat/tools.go
+++ b/internal/equipo/chat/tools.go
@@ -97,12 +97,11 @@ 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)."
- // noteUnanswered heads the person's messages whose turns failed since
- // the lane's last answered turn (unanswered): most failed before the
- // coordinator saw them, but the instance cannot tell (a failure after
- // the words reached it has the same reasons). Each follows quoted
- // (noteUnansweredMessage), then the turn's own text (noteNewest).
- noteUnanswered = "[Equipo: these earlier messages from the person got no answer: their turns failed, most often before you saw them. They are the person's own words, oldest first, still waiting. If you already did something one asks for, do not do it again. Answer them together with the newest message.]"
+ // noteUnanswered heads the person's messages whose turns failed before
+ // the model ran, since the lane's last turn that reached it
+ // (unanswered). Each follows quoted (noteUnansweredMessage), then the
+ // turn's own text (noteNewest).
+ noteUnanswered = "[Equipo: these earlier messages from the person got no answer: their turns failed before you saw them. They are the person's own words, oldest first, still waiting. Answer them together with the newest message.]"
noteUnansweredMessage = "Not yet answered, the person's words: %q"
noteNewest = "The person's newest message:\n"
// noteConnected is the note of the turn queued once the person
diff --git a/internal/equipo/migrations/0095_turn_carried.sql b/internal/equipo/migrations/0095_turn_carried.sql
new file mode 100644
index 00000000..334accda
--- /dev/null
+++ b/internal/equipo/migrations/0095_turn_carried.sql
@@ -0,0 +1,4 @@
+-- The person's messages a turn carried, unanswered, from turns that
+-- failed before it (dispatch): in that turn they are the person's words
+-- too (quote). A message rides in at most two turns.
+CREATE TABLE chat_turn_carried (turn_id text, message_id text, person text, PRIMARY KEY (turn_id, message_id));
diff --git a/internal/equipo/migrations/schema.sql b/internal/equipo/migrations/schema.sql
index dd304e75..638fb713 100644
--- a/internal/equipo/migrations/schema.sql
+++ b/internal/equipo/migrations/schema.sql
@@ -734,3 +734,5 @@ WHERE CASE WHEN json_valid(entries) THEN json_type(entries) = 'array' ELSE 0 END
AND EXISTS (SELECT 1 FROM json_each(chat_notebooks.entries) WHERE json_extract(value, '$.source') = 'person');
ALTER TABLE chat_steps ADD COLUMN base_checks text;
+
+CREATE TABLE chat_turn_carried (turn_id text, message_id text, person text, PRIMARY KEY (turn_id, message_id));
diff --git a/internal/thintest/carried_contract_test.go b/internal/thintest/carried_contract_test.go
new file mode 100644
index 00000000..e0aa0c81
--- /dev/null
+++ b/internal/thintest/carried_contract_test.go
@@ -0,0 +1,138 @@
+package thintest
+
+import (
+ "slices"
+ "strings"
+ "testing"
+ "time"
+
+ "amadan.net/oficina/equipo/internal/wire"
+)
+
+// Words a failed turn carries into the next (dispatch's unanswered):
+// only a plain message the coordinator never saw, and in the turn that
+// carries them they are the person's words for team_request too.
+
+// failTurn reports id failed at attempt 1 and waits for it to end.
+func (r *rig) failTurn(runner *FakeRunner, id string) {
+ r.t.Helper()
+ if err := runner.Send(r.ctx, "e-"+id, wire.FrameTurn, wire.TurnReport{TurnID: id, Attempt: 1, State: wire.TurnFailed, Reason: "policy_rejected"}); err != nil {
+ r.t.Fatal(err)
+ }
+ for deadline := time.Now().Add(10 * time.Second); time.Now().Before(deadline); time.Sleep(20 * time.Millisecond) {
+ var state string
+ if err := r.inst.DB.Writer().QueryRow("SELECT state FROM chat_turns WHERE id = ?", id).Scan(&state); err == nil && state == wire.TurnFailed {
+ return
+ }
+ }
+ r.t.Fatalf("turn %s did not fail", id)
+}
+
+// A turn that reached the model (a delta or a thinking or tool activity
+// was recorded for it) is not carried: its words may already be in a
+// resumed session's transcript. One that failed before is.
+func TestContractCarriedOnlyBeforeTheModel(t *testing.T) {
+ r := newRig(t)
+ runner := r.dial(0)
+ turn := func(text, key string) (wire.Sent, *wire.MessageCommand) {
+ t.Helper()
+ sent, err := r.client.Send(r.ctx, text, key)
+ if err != nil {
+ t.Fatal(err)
+ }
+ f, body, err := runner.Expect(r.ctx, wire.FrameMessage)
+ if err != nil {
+ t.Fatal(err)
+ }
+ runner.Send(r.ctx, "a-"+key, wire.FrameAck, wire.Ack{ID: f.ID})
+ r.wait("running", func(c *Conversation) bool { return c.Turns[sent.Turn.ID].State == wire.TurnRunning })
+ return sent, body.(*wire.MessageCommand)
+ }
+ // Frames apply in order: each report lands before the failure after it.
+ streamed, _ := turn("streamed words", "k1")
+ runner.Send(r.ctx, "d1", wire.FrameDelta, wire.DeltaReport{TurnID: streamed.Turn.ID, Attempt: 1, Text: "Looking"})
+ r.failTurn(runner, streamed.Turn.ID)
+ thought, cmd := turn("thought words", "k2")
+ if slices.Contains(cmd.PersonText, "streamed words") {
+ t.Fatalf("a turn that streamed was carried %q", cmd.PersonText)
+ }
+ runner.Send(r.ctx, "t2", wire.FrameActivity, wire.ActivityReport{TurnID: thought.Turn.ID, Attempt: 1, Kind: wire.ActivityThink})
+ r.failTurn(runner, thought.Turn.ID)
+ early, cmd := turn("early words", "k3")
+ if len(cmd.PersonText) != 1 || strings.Contains(cmd.Text, "Not yet answered") {
+ t.Fatalf("a turn that reached the model was carried %q", cmd.PersonText)
+ }
+ r.failTurn(runner, early.Turn.ID)
+ last, cmd := turn("last", "k4")
+ if strings.Join(cmd.PersonText, "|") != "early words|last" {
+ t.Fatalf("a turn that failed before the model was not carried %q", cmd.PersonText)
+ }
+ // The turn that carried them reached the model: they are in its
+ // transcript now, and ride no further.
+ runner.Send(r.ctx, "d4", wire.FrameDelta, wire.DeltaReport{TurnID: last.Turn.ID, Attempt: 1, Text: "On it"})
+ r.failTurn(runner, last.Turn.ID)
+ if _, cmd = turn("final", "k5"); len(cmd.PersonText) != 1 {
+ t.Fatalf("carried past a turn that reached the model %q", cmd.PersonText)
+ }
+}
+
+// A typed answer to a card is not carried as a plain message: bare,
+// "the second one" means nothing without the question it answers.
+func TestContractCarriedSkipsCardAnswers(t *testing.T) {
+ r := newToolRig(t)
+ if res := r.call("q1", wire.ToolAskPerson, map[string]any{"question": "Which one do you mean?"}); res.Code != "asked" {
+ t.Fatalf("ask_person %+v", res)
+ }
+ r.runner.Send(r.ctx, "rep1", wire.FrameReply, wire.Reply{TurnID: r.turn, Attempt: 1, Text: "Which day suits?"})
+ var card wire.Card
+ r.wait("question card", func(c *Conversation) bool {
+ for _, k := range c.Cards {
+ if k.Kind == wire.CardQuestion && k.State == wire.CardOpen {
+ card = k
+ return true
+ }
+ }
+ return false
+ })
+ answered, err := r.client.Answer(r.ctx, card.ID, "the second one", card.Revision)
+ if err != nil {
+ t.Fatal(err)
+ }
+ f, _, err := r.runner.Expect(r.ctx, wire.FrameMessage)
+ if err != nil {
+ t.Fatal(err)
+ }
+ r.runner.Send(r.ctx, "a-ans", wire.FrameAck, wire.Ack{ID: f.ID})
+ r.failTurn(r.runner, answered.Turn.ID)
+ if _, err = r.client.Send(r.ctx, "next", "k-next"); err != nil {
+ t.Fatal(err)
+ }
+ _, body, err := r.runner.Expect(r.ctx, wire.FrameMessage)
+ if err != nil {
+ t.Fatal(err)
+ }
+ if cmd := body.(*wire.MessageCommand); len(cmd.PersonText) != 1 || strings.Contains(cmd.Text, "Not yet answered") {
+ t.Fatalf("a card answer was carried bare %q %q", cmd.PersonText, cmd.Text)
+ }
+}
+
+// Words a failed Assistant turn left unanswered ride in the next turn,
+// and there team_request takes them as the person's: the hand-off is
+// their message, as written. Words from no message of theirs still are
+// not theirs.
+func TestContractCarriedWordsHandOver(t *testing.T) {
+ o := newTeamRig(t)
+ lost := o.ask("Can we fix a bug in Tito? Login is broken")
+ o.failTurn(o.runner, lost)
+ o.ask("Please continue")
+ if res := o.use("tr-not", "team_request", map[string]any{"words": "The checkout page is broken"}); !res.IsError || res.Code != "not_their_words" {
+ t.Fatalf("words from no message %+v", res)
+ }
+ request, cmd := o.handoff("tr1", "Login is broken", "")
+ if !strings.HasPrefix(cmd.Text, "Login is broken") {
+ t.Fatalf("thread frame %q", cmd.Text)
+ }
+ if thread := o.thread(request); len(thread) != 1 || thread[0].Text != "Login is broken" || thread[0].Role != wire.RolePerson {
+ t.Fatalf("thread %+v", thread)
+ }
+}
diff --git a/internal/thintest/instance_contract_test.go b/internal/thintest/instance_contract_test.go
index 3dbaf04b..ca6505c4 100644
--- a/internal/thintest/instance_contract_test.go
+++ b/internal/thintest/instance_contract_test.go
@@ -288,7 +288,7 @@ func TestFailedTurnMessageCarried(t *testing.T) {
end(again.Turn.ID, wire.TurnFailed)
next, cmd := turn("next", "k5")
- want := "[Equipo: these earlier messages from the person got no answer: their turns failed, most often before you saw them. They are the person's own words, oldest first, still waiting. If you already did something one asks for, do not do it again. Answer them together with the newest message.]\n" +
+ want := "[Equipo: these earlier messages from the person got no answer: their turns failed before you saw them. They are the person's own words, oldest first, still waiting. Answer them together with the newest message.]\n" +
"Not yet answered, the person's words: \"the long message [with brackets]\"\n" +
"Not yet answered, the person's words: \"second try\"\n\n" +
"The person's newest message:\nnext"