oficina / equipo Public

Lookups: Astra phase 3 round 3 fixes (1 P1, 2 P2)

- An earlier lookup's question is that turn's newest composer message,
  as its own pack's was: a message batched into the turn never comes in.
- The addresses a person typed come from their whole message, not the
  cut pack; a bare address too long to be one is kept, to be refused.
- web_lookup's listing no longer depends on the call (the registry
  caches it per person); a turn the person didn't start is filtered per
  call, and Invoke checks again.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev 6dd55c88e14a182dd73d5908c08d3ba8e2b3883e parent cfcf979
8 files changed, +113 −29
  • .rastrillo/budgets.txt +1 −1
  • internal/equipo/chat/ability_map.go +9 −2
  • internal/equipo/chat/assistant_tools.go +5 −1
  • internal/equipo/chat/lookup.go +36 −9
  • internal/equipo/chat/lookup_pack.go +14 −3
  • internal/equipo/chat/lookup_pack_test.go +21 −0
  • internal/equipo/chat/lookup_test.go +23 −6
  • internal/equipo/chat/web_provider.go +4 −7

CI cancelled — superseded by a newer push — 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/abilities-phase3: Type  Size Avail | ext4   96G   86G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type  Size Avail | ext4   96G   86G
ci-box: bwrap: fetched and verified in 0.2s
ci-box: claude: fetched and verified in 1.2s
ci-box: codex: fetched and verified in 3.6s
ci-box: codex-code-mode-host: fetched and verified in 1.2s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.3s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: image pulled in 9.8s
ci-box: pi: installed and verified in 7.3s
ci-box: opencode: installed and verified in 2.2s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 8.5s
ci-box: clone deepened in 5.1s
ci-box: file times set from content: 3361 files, 217 directories
ci-box: ready in 18.7s
=== copy ===
EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipotest	0.145s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  4.5s
+ go list -export -test -tags testbuild -f  ./...
  4.3s
+ go list -export -test -tags browser,testbuild -f  ./internal/equipo ./internal/equipotest ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
  3.8s
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -version
staticcheck 2026.1 (v0.7.0)
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 -version
Go: go1.26.11
Scanner: govulncheck@v1.8.0
DB: https://vuln.go.dev
DB updated: 2026-11-24 15:56:00 +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 1m18.747s 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 1m16.44s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m16.44s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 63.77, cpu waiting 37.42%, memory waiting 0.00%, io waiting 0.44%
--- 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 1m19.429s 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 1m17.185s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m17.18s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 63.77, cpu waiting 37.42%, memory waiting 0.00%, io waiting 0.44%
--- shard 2 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-connections: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadlessConnections$|^TestHeadlessTokenPasteEndToEnd$|^TestHeadlessTokenConnection$' ./internal/headless

receipt: test step 1m19.724s 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 1m17.551s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m7.55s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 5.31s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.69s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 63.77, cpu waiting 37.42%, memory waiting 0.00%, io waiting 0.44%
--- 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 1m16.894s 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 1m15.033s amadan.net/oficina/equipo/internal/headless
receipt: slow test 37.54s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 19.57s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 8.97s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
receipt: slow test 8.95s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
machine: 32 CPUs, load 63.77, cpu waiting 37.46%, memory waiting 0.00%, io waiting 0.45%
--- 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_step_refused$|^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 1m36.341s 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 1m34.165s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m4.48s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.41s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 8.18s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 7.24s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 4.85s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 61.24, cpu waiting 37.26%, memory waiting 0.00%, io waiting 0.33%
--- 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_step_refused$|^TestHeadless$/^3_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless

amadan: job cancelled — a newer push superseded it
--- 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

amadan: job cancelled — a newer push superseded it
--- 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 1m59.373s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m57.4s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.62s amadan.net/oficina/equipo/internal/thintest TestContractRetryPreviewUnverifiedMerge
receipt: slow test 9.06s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 4.96s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.55s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 3.04s amadan.net/oficina/equipo/internal/thintest TestContractPausedJob
machine: 32 CPUs, load 44.48, cpu waiting 26.88%, memory waiting 0.00%, io waiting 0.22%
--- 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

amadan: job cancelled — a newer push superseded it
--- shard 9 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-bug: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$' ./internal/runner
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed

receipt: test step 49.794s 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.587s amadan.net/oficina/equipo/internal/runner
receipt: slow test 28.56s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.02s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 51.10, cpu waiting 29.58%, memory waiting 0.00%, io waiting 0.73%
--- shard 10 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-plans: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed

receipt: test step 59.2s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 57.119s amadan.net/oficina/equipo/internal/runner
receipt: slow test 47.1s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 42.36s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.41s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.59s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 60.68, cpu waiting 35.13%, memory waiting 0.00%, io waiting 0.61%
--- shard 11 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-rest: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$|^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed

receipt: test step 41.388s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 40.499s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.14s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 5.01s amadan.net/oficina/equipo/internal/runner TestEnrolCommitsTheCredentialLast
receipt: slow test 3.13s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 3.08s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.05s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
machine: 32 CPUs, load 36.39, cpu waiting 23.88%, memory waiting 0.00%, io waiting 0.83%
--- 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 38.6%, load 25.42
test lane equipotest-a: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test[A-D]|^TestQ' ./internal/equipotest

receipt: test step 1m10.132s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m8.07s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 28.9s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 28.77s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 26.63s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 23.78s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 23.65s amadan.net/oficina/equipo/internal/equipotest TestAuthorityProjectOwnershipIsLocal
machine: 32 CPUs, load 58.34, cpu waiting 36.31%, memory waiting 0.00%, io waiting 0.31%
--- shard 13 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-e started 30s late; cpu waiting 37.9%, load 25.42
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

amadan: job cancelled — a newer push superseded it
--- shard 14 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-r started 30s late; cpu waiting 38.6%, load 25.42
test lane equipotest-r: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestR' ./internal/equipotest

receipt: test step 1m17.649s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m11.953s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 16.36s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 13.56s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 10.53s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 10.51s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 7.41s amadan.net/oficina/equipo/internal/equipotest TestRosterProtectsLastOwner
machine: 32 CPUs, load 51.20, cpu waiting 32.45%, memory waiting 0.00%, io waiting 0.27%
--- 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 37.9%, load 25.42
test lane equipotest-rest: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^Test[A-D]|^TestQ|^Test[E-P]|^TestR' ./internal/equipotest

receipt: test step 1m10.089s 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.829s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 26.88s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 25.89s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 25.88s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 23.99s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsUpgrade
receipt: slow test 23.93s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsConcurrentRevision
machine: 32 CPUs, load 58.34, cpu waiting 35.58%, memory waiting 0.00%, io waiting 0.30%
--- 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 38.6%, load 25.42
test lane plan3test: ./internal/plan3test
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./internal/plan3test

receipt: test step 56.283s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 53.872s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.85s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.52s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.63s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.63s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.33s amadan.net/oficina/equipo/internal/plan3test TestPlanMigrationUpgrade
machine: 32 CPUs, load 61.87, cpu waiting 37.21%, memory waiting 0.00%, io waiting 0.38%
--- 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 37.9%, load 25.42
test lane rest: ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/diffscan ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/door ./internal/equipo/github ./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/pause ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/push ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/claude/realcli ./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/websearch ./internal/websearch/websearchtest ./internal/websource ./internal/websource/guard ./internal/wire ./internal/wire/forgekey ./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/diffscan ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/door ./internal/equipo/github ./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/pause ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/push ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/claude/realcli ./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/websearch ./internal/websearch/websearchtest ./internal/websource ./internal/websource/guard ./internal/wire ./internal/wire/forgekey ./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/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/provider/claude/realcli: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/opencode: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/webread: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/testci: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runnerproto: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/checks: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/workspace: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/wire/wireschema: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/containment: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/pi: its inputs changed

amadan: job cancelled — a newer push superseded it
--- 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

receipt: test step 1m25.297s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m23.209s amadan.net/oficina/equipo/internal/headless
receipt: slow test 38.92s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 14.75s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 10.31s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.35s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 6.51s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 61.94, cpu waiting 37.18%, memory waiting 0.00%, io waiting 0.39%
--- shard 19 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-work: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$' ./internal/headless

receipt: test step 1m33.83s 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.016s amadan.net/oficina/equipo/internal/headless
receipt: slow test 28.66s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 21.9s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 13.62s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 9.67s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 9.32s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
machine: 32 CPUs, load 61.24, cpu waiting 37.26%, memory waiting 0.00%, io waiting 0.33%
--- 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 1m53.149s 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 1m51.366s amadan.net/oficina/equipo/internal/headless
receipt: slow test 13.99s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 13.4s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 12.39s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 11.39s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsSignInEmail
receipt: slow test 11.02s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
machine: 32 CPUs, load 47.66, cpu waiting 28.60%, memory waiting 0.00%, io waiting 0.23%
--- 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|TestBrowserCardAnswerSettlesAtBottom|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInEmail|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless
rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserCopyContinue
=== RUN   TestBrowserCopyContinue
time=2026-11-28T23:54:26.604Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-28T23:54:26.604Z level=INFO msg="startup phase done" phase=state_lock took=179µs
time=2026-11-28T23:54:26.604Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-28T23:54:26.604Z level=INFO msg="startup phase done" phase=claim_roots took=143µs
time=2026-11-28T23:54:26.604Z level=INFO msg="startup phase" phase=sweep
time=2026-11-28T23:54:26.676Z level=INFO msg="startup phase done" phase=sweep took=72.222ms
time=2026-11-28T23:54:26.676Z level=INFO msg="startup phase" phase=credentials
time=2026-11-28T23:54:26.677Z level=INFO msg="startup phase done" phase=credentials took=142µs
time=2026-11-28T23:54:26.679Z level=INFO msg="startup phase" phase=open_state
time=2026-11-28T23:54:26.759Z level=INFO msg="startup phase done" phase=open_state took=80.341ms
time=2026-11-28T23:54:26.760Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-28T23:54:26.762Z level=INFO msg=connecting host=127.0.0.1:32853 protocol=36
time=2026-11-28T23:54:26.763Z level=INFO msg=connected host=127.0.0.1:32853 took=1.1ms
time=2026-11-28T23:54:26.763Z level=INFO msg="capabilities gathering"
time=2026-11-28T23:54:26.764Z level=INFO msg="capabilities gathered" took=1.181ms tags=linux,claude,go
time=2026-11-28T23:54:26.765Z level=INFO msg="hello sent" protocol=36
time=2026-11-28T23:54:26.775Z level=INFO msg=welcome protocol=36 role=primary generation=1
    browser_copy_test.go:90: waiting for !document.querySelector('[data-copy-continue]'): context deadline exceeded (last evaluation: context deadline exceeded)
--- FAIL: TestBrowserCopyContinue (6.53s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m39.429s
FAIL	amadan.net/oficina/equipo/internal/headless	99.747s


receipt: test step 1m41.366s 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 1m39.429s amadan.net/oficina/equipo/internal/headless
receipt: slow test 14.89s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 12.23s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 10.63s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 9.72s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 7.47s amadan.net/oficina/equipo/internal/headless TestBrowserRefreshRace
exit status 1
+ go test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserCardAnswerSettlesAtBottom|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInEmail|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' -v -run '^TestBrowserCopyContinue$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserCopyContinue browser-headless-rest 6dd55c88e14a182dd73d5908c08d3ba8e2b3883e 6.53s 54.79
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 54.79, cpu waiting 33.41%, memory waiting 0.00%, io waiting 0.28%
--- 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|TestBrowserPreviewPassExchange)$' ./internal/equipo

receipt: test step 4.282s 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.377s amadan.net/oficina/equipo/internal/equipo
receipt: slow test 1.76s amadan.net/oficina/equipo/internal/equipo TestBrowserPreviewPassExchange
receipt: slow test 610ms amadan.net/oficina/equipo/internal/equipo TestBrowserPreviewBlocksNavigation
browser lane browser-rest: ./internal/equipotest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserGitHubManifestCSP)$' ./internal/equipotest

receipt: test step 7.986s 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 6.242s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 6.24s amadan.net/oficina/equipo/internal/equipotest TestBrowserGitHubManifestCSP
browser lane browser-rest: ./internal/idtest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserOficinaIDDoor|TestBrowserSmartDoor)$' ./internal/idtest
budget note: internal/idtest took 10.634s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 12.217s 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 10.634s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 8.59s amadan.net/oficina/equipo/internal/idtest TestBrowserSmartDoor
receipt: slow test 2.04s 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.858s 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.078s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 2.08s 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|TestBrowserEndedNoteStaysGone|TestBrowserHousekeeping|TestBrowserInnerGallery|TestBrowserInnerScreens|TestBrowserInstantThinking|TestBrowserInstantThinkingQueued|TestBrowserMachines|TestBrowserPausedWork|TestBrowserPhoneIndex|TestBrowserPlacementQuestionAndPending|TestBrowserProjectPlacement|TestBrowserProjectsList|TestBrowserReportActionFeedback|TestBrowserReportNextSteps|TestBrowserReportThread|TestBrowserRhythm|TestBrowserRollup|TestBrowserRosterAlignment|TestBrowserRosterDecisionStates|TestBrowserRosterQuietDay|TestBrowserRosterReports|TestBrowserRosterSetAside|TestBrowserRosterSubchat|TestBrowserRosterThinking|TestBrowserRosterVisual|TestBrowserSettingsHousekeepingGroups|TestBrowserSettingsMenu|TestBrowserSettingsRail|TestBrowserSettingsSaveBar|TestBrowserSettingsShots|TestBrowserSettingsStayOnPage|TestBrowserSettingsTeams|TestBrowserShipsButtons|TestBrowserSpecialistRows|TestBrowserSpendFollowsAnswers|TestBrowserTaskRows|TestBrowserTeamPanel|TestBrowserThinkingCycles|TestBrowserThinkingLinesClear|TestBrowserThinkingSteady|TestBrowserThinkingWords|TestBrowserTokenRowEmail|TestBrowserTrackPulse|TestBrowserTrackStarCentre|TestBrowserTryAgain)$' ./internal/thintest

amadan: job cancelled — a newer push superseded it
--- 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   (53s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 4.59s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.28s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 8.27s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 8.95s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 26.84s
+ 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   (62s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 21.86s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 11.30s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 9.73s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 16.65s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (21s)
ok ./internal/headless TestMixedVersions 18.75s
+ 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 62.55, cpu waiting 36.25%, memory waiting 0.00%, io waiting 0.57%
--- 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 12.043s against a 60s target (the gate's other steps are not in this figure)
receipt: 4 packages ran, 0 cached, 4 without tests, 0 failed
receipt: slow package 7.288s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 182ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 96ms 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/claude/realcli
receipt: slow test 5.21s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.66s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 330ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 180ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 100ms amadan.net/oficina/equipo/internal/runner/provider/codex TestDirectJournalAdapterBarrier
CGO_ENABLED=0 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run '^TestNamespace' -count=1 ./internal/runner/containment
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run '^TestNamespace' -count=1 ./internal/runner/containment

receipt: test step 3.4s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 3.006s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 300ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 190ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryReusedPID
machine: 32 CPUs, load 19.15, cpu waiting 7.84%, memory waiting 0.00%, io waiting 1.29%
--- 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 37.9%, load 25.42
shard 25: make runner-dead-references lanes-check build vet fmt-check spacing budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 3073 text files, 3282 matches, 0 failures
python3 native/scripts/check-share.py
Share packaging, keychain-only boundary and reviewed copy verified
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 tool fiesta spacing -skip tokens.css internal/equipo/static
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget size
budget size: 97 directories within budget
CGO_ENABLED=0 go test ./internal/equipo -run '^TestMigrationModels$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipo	2.595s
machine: 32 CPUs, load 66.27, cpu waiting 37.22%, memory waiting 0.00%, io waiting 0.48%
--- 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 38.6%, load 25.42
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 51.10, cpu waiting 31.00%, memory waiting 0.00%, io waiting 0.70%
--- shard 27 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: govulncheck started 30s late; cpu waiting 38.6%, load 25.42
shard 27: make govulncheck
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 ./...
=== Symbol Results ===

No vulnerabilities found.

Your code is affected by 0 vulnerabilities.
This scan also found 1 vulnerability in packages you import and 10
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 57.26, cpu waiting 32.24%, memory waiting 0.00%, io waiting 0.68%
--- 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 38.6%, load 25.42
shard 28: make gitleaks
11:54PM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
11:54PM INF 1302 commits scanned.
11:54PM INF scanned ~69345701 bytes (69.35 MB) in 22.6s
11:54PM INF no leaks found
machine: 32 CPUs, load 57.26, cpu waiting 32.24%, memory waiting 0.00%, io waiting 0.68%
diff --git a/.rastrillo/budgets.txt b/.rastrillo/budgets.txt
index 8470572e..3ccacaa9 100644
--- a/.rastrillo/budgets.txt
+++ b/.rastrillo/budgets.txt
@@ -57,7 +57,7 @@ perf GET /api/v1/assistant/snapshot skip Assistant person API: bearer-only JSON
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.
perf GET /api/v1/assistant/abilities skip Assistant person API: bearer-only JSON for Base's Settings line, not a browser screen.
-size internal/equipo/chat 41259 14550 File facts/diffs, previews, merge authority, unfinished work, CI feedback, receipts, Assistant files, places, waiting cards, abilities, lookups; measured 41259/14550.
+size internal/equipo/chat 41305 14588 File facts/diffs, previews, merge authority, unfinished work, CI feedback, receipts, Assistant files, places, waiting cards, abilities, lookups; measured 41305/14588.
perf GET /api/v1/questions/{id} skip Thin v1 person API: bearer-only JSON for devices; the browser reads questions on /tasks/{id}.
perf GET /api/v1/steps/{id}/log skip Thin v1 person API: bearer-only JSON for devices; the browser shows the log tail on /tasks/{id}.
perf GET /api/v1/connections/preference skip Connections slice 1 person API: bearer-only JSON for devices; the browser shows the preference on /conversation/connections.
diff --git a/internal/equipo/chat/ability_map.go b/internal/equipo/chat/ability_map.go
index dd63466f..a0641d3e 100644
--- a/internal/equipo/chat/ability_map.go
+++ b/internal/equipo/chat/ability_map.go
@@ -57,8 +57,12 @@ func providerAbility(name string) string {
}
// abilityFilter is a person's switches as the registry's filter: what
-// look offers and describe finds.
-type abilityFilter struct{ sw Switches }
+// look offers and describe finds. noLookups hides web_lookup from a turn
+// the person didn't start.
+type abilityFilter struct {
+ sw Switches
+ noLookups bool
+}
func (f abilityFilter) Provider(name string) bool {
key := providerAbility(name)
@@ -66,6 +70,9 @@ func (f abilityFilter) Provider(name string) bool {
}
func (f abilityFilter) Operation(op assist.Operation) bool {
+ if f.noLookups && op.Provider == webProviderName {
+ return false
+ }
key, ok := abilityFor(op)
return ok && (key == "" || f.sw.Can(key))
}
diff --git a/internal/equipo/chat/assistant_tools.go b/internal/equipo/chat/assistant_tools.go
index 240e070e..e40fa0d1 100644
--- a/internal/equipo/chat/assistant_tools.go
+++ b/internal/equipo/chat/assistant_tools.go
@@ -664,7 +664,11 @@ func (s *Store) runRemote(ctx context.Context, row toolCallRecord) (res wire.Too
if err != nil {
return refused("unavailable", toolOpUnavailable), false
}
- filtered := assist.WithFilter(ctx, abilityFilter{sw})
+ kind, err := s.turnKind(ctx, row)
+ if err != nil {
+ return refused("unavailable", toolOpUnavailable), false
+ }
+ filtered := assist.WithFilter(ctx, abilityFilter{sw: sw, noLookups: kind != wire.TurnPerson})
switch row.Name {
case wire.ToolLook:
text, err := ops.Look(withCall(filtered, row), row.Person, in.Query)
diff --git a/internal/equipo/chat/lookup.go b/internal/equipo/chat/lookup.go
index 200ecb98..f82e0262 100644
--- a/internal/equipo/chat/lookup.go
+++ b/internal/equipo/chat/lookup.go
@@ -13,6 +13,7 @@ import (
"strconv"
"strings"
"time"
+ "unicode"
"amadan.net/oficina/equipo/internal/equipo/assist"
"amadan.net/oficina/equipo/internal/websearch"
@@ -74,14 +75,17 @@ type lookupRead struct {
// lookupRun is one lookup's state while it runs.
type lookupRun struct {
- s *Store
- cfg *LookupConfig
- call toolCallRecord
- row lookupRecord
- deny []string
- queries []lookupQuery
- reads []lookupRead
- domains []string
+ s *Store
+ cfg *LookupConfig
+ call toolCallRecord
+ row lookupRecord
+ deny []string
+ // question is the person's message whole (the pack's may be cut):
+ // the addresses they typed come from it.
+ question string
+ queries []lookupQuery
+ reads []lookupRead
+ domains []string
}
// webLookup runs the call's lookup and is the Assistant's result: the
@@ -137,6 +141,11 @@ func (s *Store) webLookup(ctx context.Context, call toolCallRecord) (json.RawMes
run.row.State, run.row.Code = lookupFailed, wire.CodeLookupUnsupported
return t.db.Create(&run.row).Error
}
+ mine, err := t.newestComposer(call.Person, turn.ID)
+ if err != nil {
+ return err
+ }
+ run.question = mine.Text
if err := t.db.Create(&run.row).Error; err != nil {
return err
}
@@ -206,7 +215,7 @@ func (r *lookupRun) do(ctx context.Context, pack wire.LookupPack) (answer string
r.deny = append(slices.Clone(r.cfg.Deny), deny...)
var results []wire.SearchResult
var candidates []string
- if typed := typedAddresses(pack.Question); len(typed) > 0 {
+ if typed := typedAddresses(r.question); len(typed) > 0 {
// The addresses the person typed, as typed: read, or refused by
// rule (recorded), never a search instead.
candidates = typed
@@ -304,6 +313,24 @@ func typedAddresses(text string) []string {
inside := func(i int) bool {
return slices.ContainsFunc(spans, func(sp []int) bool { return i >= sp[0] && i < sp[1] })
}
+ // A bare address too long for an address (Mentions leaves it out) is
+ // kept too, to be refused, never searched instead.
+ for off := 0; off < len(text); {
+ i := strings.IndexFunc(text[off:], func(r rune) bool { return !unicode.IsSpace(r) })
+ if i < 0 {
+ break
+ }
+ i += off
+ end := strings.IndexFunc(text[i:], unicode.IsSpace)
+ if end < 0 {
+ end = len(text) - i
+ }
+ tok := text[i : i+end]
+ off = i + end
+ if slash := strings.IndexByte(tok, '/'); len(tok) > guard.MaxURL && slash > 0 && strings.Contains(tok[:slash], ".") && !inside(i) {
+ hits, spans = append(hits, hit{i, "https://" + tok}), append(spans, []int{i, i + end})
+ }
+ }
lower := strings.ToLower(text)
used := map[int]bool{}
for _, u := range websource.Mentions(text) {
diff --git a/internal/equipo/chat/lookup_pack.go b/internal/equipo/chat/lookup_pack.go
index afa9bad2..b45e6fc3 100644
--- a/internal/equipo/chat/lookup_pack.go
+++ b/internal/equipo/chat/lookup_pack.go
@@ -22,8 +22,8 @@ const lookupWindow = 30 * time.Minute
// the turn there is no pack (ok false).
func (t *txn) lookupPack(person string, turn turnRecord, now time.Time) (wire.LookupPack, bool, error) {
var pack wire.LookupPack
- var mine messageRecord
- if err := t.db.Where("turn_id = ? AND person = ? AND role = ? AND origin = ? AND lane = ?", turn.ID, person, wire.RolePerson, originComposer, wire.LaneAssistant).Order("seq DESC").Limit(1).Find(&mine).Error; err != nil || mine.ID == "" {
+ mine, err := t.newestComposer(person, turn.ID)
+ if err != nil || mine.ID == "" {
return pack, false, err
}
pack.Question = mine.Text
@@ -52,8 +52,11 @@ func (t *txn) lookupPack(person string, turn turnRecord, now time.Time) (wire.Lo
if len(reset) == 1 && reset[0].After(since) {
since = reset[0]
}
+ // Each earlier lookup turn's question is its newest composer
+ // message, as its own pack's was: never another message batched
+ // into that turn.
var earlier []messageRecord
- if err := t.db.Where("person = ? AND role = ? AND origin = ? AND lane = ? AND seq < ? AND created_at >= ? AND turn_id IN (SELECT turn_id FROM chat_lookups WHERE person = ? AND state IN ?)", person, wire.RolePerson, originComposer, wire.LaneAssistant, mine.Seq, since, person, []string{lookupShown, lookupFailed}).Order("seq DESC").Limit(2).Find(&earlier).Error; err != nil {
+ if err := t.db.Where("person = ? AND role = ? AND origin = ? AND lane = ? AND seq < ? AND created_at >= ? AND turn_id <> ? AND turn_id IN (SELECT turn_id FROM chat_lookups WHERE person = ? AND state IN ?) AND seq = (SELECT max(m2.seq) FROM chat_messages m2 WHERE m2.turn_id = chat_messages.turn_id AND m2.person = chat_messages.person AND m2.role = chat_messages.role AND m2.origin = chat_messages.origin AND m2.lane = chat_messages.lane)", person, wire.RolePerson, originComposer, wire.LaneAssistant, mine.Seq, since, turn.ID, person, []string{lookupShown, lookupFailed}).Order("seq DESC").Limit(2).Find(&earlier).Error; err != nil {
return pack, false, err
}
for i, m := range earlier {
@@ -75,6 +78,14 @@ func (t *txn) lookupPack(person string, turn turnRecord, now time.Time) (wire.Lo
return pack, true, nil
}
+// newestComposer is the turn's newest composer message in the person's
+// Assistant lane: the lookup's question, whole.
+func (t *txn) newestComposer(person, turn string) (messageRecord, error) {
+ var m messageRecord
+ err := t.db.Where("turn_id = ? AND person = ? AND role = ? AND origin = ? AND lane = ?", turn, person, wire.RolePerson, originComposer, wire.LaneAssistant).Order("seq DESC").Limit(1).Find(&m).Error
+ return m, err
+}
+
func packSize(p wire.LookupPack) int {
raw, _ := json.Marshal(p)
return len(raw)
diff --git a/internal/equipo/chat/lookup_pack_test.go b/internal/equipo/chat/lookup_pack_test.go
index 872416e2..c1933e12 100644
--- a/internal/equipo/chat/lookup_pack_test.go
+++ b/internal/equipo/chat/lookup_pack_test.go
@@ -274,3 +274,24 @@ func TestLookupStepConnectionReplaced(t *testing.T) {
t.Errorf("result %+v", r)
}
}
+
+// A private message batched into an earlier lookup turn never comes in:
+// that turn's question is its newest composer message (Astra phase 3
+// round 3, P1).
+func TestPackSkipsBatchedMessages(t *testing.T) {
+ r := newPackRig(t)
+ r.say("What's the weather in Dublin?", 9*time.Minute, lookupShown)
+ turn := r.say("My test results came back positive.", 6*time.Minute, lookupShown)
+ if err := r.h.s.db.G.Create(&messageRecord{ID: "batched", Person: abPerson, IdempotencyKey: "kb", Role: wire.RolePerson, Origin: originComposer, Text: "And Cork?", TurnID: turn.ID, Lane: wire.LaneAssistant, CreatedAt: r.now.Add(-6 * time.Minute)}).Error; err != nil {
+ t.Fatal(err)
+ }
+ p := r.pack(r.say("And tomorrow?", 0, ""))
+ if len(p.Earlier) != 2 || p.Earlier[0] != "And Cork?" || p.Earlier[1] != "What's the weather in Dublin?" {
+ t.Errorf("earlier %v", p.Earlier)
+ }
+ for _, e := range p.Earlier {
+ if strings.Contains(e, "test results") {
+ t.Errorf("the batched message came in: %v", p.Earlier)
+ }
+ }
+}
diff --git a/internal/equipo/chat/lookup_test.go b/internal/equipo/chat/lookup_test.go
index aa9c8dce..f045f98d 100644
--- a/internal/equipo/chat/lookup_test.go
+++ b/internal/equipo/chat/lookup_test.go
@@ -243,11 +243,22 @@ func TestLookupsOnlyInPersonTurns(t *testing.T) {
if _, err := r.lookup(call, `{}`); codeOf(err) != wire.CodeLookupUnsupported {
t.Errorf("in a team_update: %v", err)
}
- if ops, _ := r.h.s.WebProvider().List(withCall(context.Background(), call), abPerson); len(ops) != 0 {
- t.Errorf("listed in a team_update: %v", ops)
- }
- if ops, _ := r.h.s.WebProvider().List(withCall(context.Background(), r.ask("Weather?", wire.TurnPerson)), abPerson); len(ops) != 1 {
- t.Errorf("not listed in a person turn: %v", ops)
+ // Through the registry, whichever turn looks first: a team_update
+ // isn't offered it, a person turn is (round 3, P2: the listing is
+ // cached per person, the turn filtered per call).
+ look := func(c toolCallRecord) string {
+ c.Name, c.Args = wire.ToolLook, `{"query":"weather"}`
+ res, _ := r.h.s.runRemote(context.Background(), c)
+ return res.Text
+ }
+ person := r.ask("Weather?", wire.TurnPerson)
+ for _, order := range [][]toolCallRecord{{call, person}, {person, call}} {
+ for _, c := range order {
+ got := strings.Contains(look(c), "web_lookup")
+ if want := c.TurnID == person.TurnID; got != want {
+ t.Errorf("turn %s offered %v", c.TurnID, got)
+ }
+ }
}
}
@@ -550,7 +561,7 @@ func TestLookupNotShownUnlessStored(t *testing.T) {
// never a request: another scheme, an IP address (http tried as https),
// a port, an address over 2 KiB (Astra phase 3 round 1, P2).
func TestTypedAddressesNotPages(t *testing.T) {
- for _, words := range []string{"What's on ftp://files.example.org/x", "Open http://192.168.1.1/admin", "Read news.example.org:8080/today", "Read https://news.example.org/" + strings.Repeat("a", 2100)} {
+ for _, words := range []string{"What's on ftp://files.example.org/x", "Open http://192.168.1.1/admin", "Read news.example.org:8080/today", "Read https://news.example.org/" + strings.Repeat("a", 2100), "Read news.example.org/" + strings.Repeat("b", 2100)} {
r := newLookupRig(t)
r.search.Results["dublin weather"] = []websearch.Result{{Title: "Met", URL: "https://www.met.ie/dublin"}}
call := r.ask(words, wire.TurnPerson)
@@ -564,6 +575,12 @@ func TestTypedAddressesNotPages(t *testing.T) {
t.Errorf("%.60q: no refusal recorded: %s", words, row.Reads)
}
}
+ // An address past where the pack is cut is read as typed, not
+ // searched for (round 3, P2).
+ r := newLookupRig(t)
+ if _, err := r.lookup(r.ask(strings.Repeat("Please ", 700)+"read https://www.met.ie/today", wire.TurnPerson), `{}`); err != nil || r.search.Asked() != 0 || strings.Join(r.web.requests(), " ") != "www.met.ie/today" {
+ t.Errorf("%v, searched %d, read %v", err, r.search.Asked(), r.web.requests())
+ }
if got := typedAddresses("See www.met.ie first, then example.org:8080/x please."); len(got) != 2 || got[0] != "https://www.met.ie/" || got[1] != "https://example.org:8080/x" {
t.Errorf("typed %v", got)
}
diff --git a/internal/equipo/chat/web_provider.go b/internal/equipo/chat/web_provider.go
index f6d50a5e..d8fe411f 100644
--- a/internal/equipo/chat/web_provider.go
+++ b/internal/equipo/chat/web_provider.go
@@ -70,17 +70,14 @@ func (webProvider) Name() string { return webProviderName }
// List offers web_lookup only when a lookup can run for the person now
// (§4.2): a usable backend, the inventory ready, their primary at
-// protocol 36 or later, their Base drawing answers (lookup_answers), and,
-// for a call, a turn they started.
+// protocol 36 or later, their Base drawing answers (lookup_answers). It
+// never depends on the call (the registry caches it per person): a turn
+// the person didn't start is filtered per call (abilityFilter), and
+// Invoke checks every condition again.
func (p webProvider) List(ctx context.Context, person string) ([]assist.Operation, error) {
if p.s.lookupUnsupported(ctx, person) != "" {
return nil, nil
}
- if call, ok := callFrom(ctx); ok {
- if kind, err := p.s.turnKind(ctx, call); err != nil || kind != wire.TurnPerson {
- return nil, err
- }
- }
return []assist.Operation{webLookupOp}, nil
}