oficina / equipo Public

Instance inventory: own package, LOCAL routes with a TOS (Astra P2)

The address listing moves to internal/websource/hostaddrs, out of
equipo/chat, which was at its size budget; chat calls hostaddrs.Public.

Astra round 1 (no P1, one P2): the kernel prints " tos=<n>" after a
fib_trie route's type, so a LOCAL route with a TOS was skipped. The type
is now the third field, and anything after it but tos= fails the scan.

equipo/chat budget measured 41389/14634 (source down 14, tests up 38).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev 11e89e9c23fedc51d520efc460c8512f1d808783 parent 8071b30
7 files changed, +264 −259
  • .rastrillo/budgets.txt +1 −1
  • docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md +14 −10
  • internal/equipo/chat/instance_inventory.go +5 −4
  • internal/equipo/chat/instance_inventory_test.go +17 −192
  • internal/equipo/chat/store.go +2 −2
  • internal/{equipo/chat/instance_addrs.go => websource/hostaddrs/hostaddrs.go} +51 −50
  • internal/websource/hostaddrs/hostaddrs_test.go +174 −0

CI passed — run details

CI log
=== prepare ===
ci-box: machine: aarch64, 32 CPUs, 62 GiB memory, kernel 7.0.0-1017-aws
ci-box: python 3.12.3; Docker version 29.1.3, build 29.1.3-0ubuntu3~24.04.2
ci-box: user namespaces allowed: 233151
ci-box: cgroup: cgroup2fs
ci-box: disk /home/ci/work/repos/oficina__equipo/wt/fix-lookup-inventory: Type  Size Avail | ext4   96G   86G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type  Size Avail | ext4   96G   86G
ci-box: bwrap: fetched and verified in 0.3s
ci-box: claude: fetched and verified in 3.9s
ci-box: codex: fetched and verified in 3.3s
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.9s
ci-box: pi: installed and verified in 7.4s
ci-box: opencode: installed and verified in 2.3s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 8.7s
ci-box: clone deepened in 5.7s
ci-box: file times set from content: 3364 files, 218 directories
ci-box: ready in 19.6s
=== copy ===
EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipotest	0.153s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  4.7s
+ go list -export -test -tags testbuild -f  ./...
  4.4s
+ go list -export -test -tags browser,testbuild -f  ./internal/equipo ./internal/equipotest ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
  3.9s
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 1m19.768s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m17.96s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m17.96s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 62.79, cpu waiting 38.82%, memory waiting 0.00%, io waiting 0.51%
--- 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 1m21.148s 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 1m19.355s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m19.35s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 61.28, cpu waiting 38.82%, memory waiting 0.00%, io waiting 0.51%
--- 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 1m21.569s 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 1m19.428s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m9.36s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 5.29s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.77s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 61.28, cpu waiting 38.82%, memory waiting 0.00%, io waiting 0.51%
--- 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 1m18.753s 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.818s amadan.net/oficina/equipo/internal/headless
receipt: slow test 38.61s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 20.09s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.08s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
receipt: slow test 9.03s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
machine: 32 CPUs, load 62.79, cpu waiting 38.78%, memory waiting 0.00%, io waiting 0.53%
--- 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 1m37.832s 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 1m35.727s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m5.6s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.55s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 8.3s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 7.45s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 4.83s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 55.53, cpu waiting 37.61%, memory waiting 0.00%, io waiting 0.39%
--- 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

receipt: test step 3m0.521s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 2m58.416s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m40.92s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 20.67s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.28s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 7.25s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistantAttachments
receipt: slow test 6.75s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
machine: 32 CPUs, load 21.54, cpu waiting 10.23%, memory waiting 0.00%, io waiting 0.09%
--- 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 3m22.907s 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 3m20.56s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 15.65s amadan.net/oficina/equipo/internal/thintest TestTasklessHoldResumes
receipt: slow test 10.87s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.67s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 5.49s amadan.net/oficina/equipo/internal/thintest TestNudgeNeedsPersonsWordsToResume
receipt: slow test 5.43s amadan.net/oficina/equipo/internal/thintest TestResumeBeforeRefusalReported
machine: 32 CPUs, load 15.12, cpu waiting 7.09%, memory waiting 0.00%, io waiting 0.06%
--- 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.635s 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.296s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.62s amadan.net/oficina/equipo/internal/thintest TestContractRetryPreviewUnverifiedMerge
receipt: slow test 9.14s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 4.97s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.57s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 3.05s amadan.net/oficina/equipo/internal/thintest TestContractPausedJob
machine: 32 CPUs, load 44.25, cpu waiting 27.66%, memory waiting 0.00%, io waiting 0.26%
--- shard 8 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-thin: ./internal/runner/thin
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./internal/runner/thin
cache miss: amadan.net/oficina/equipo/internal/runner/thin: its inputs changed
budget note: internal/runner/thin took 5m15.547s, over the 45s its record on line 44 allows; reported only, timing fails on CI

receipt: test step 5m29.796s 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 5m15.547s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 37.04s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.86s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 36.82s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 18.48s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 9.89s amadan.net/oficina/equipo/internal/runner/thin TestTimeoutKeepsNothingForAnOlderInstance
machine: 32 CPUs, load 2.57, cpu waiting 0.83%, memory waiting 0.00%, io waiting 0.00%
--- shard 9 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-bug: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$' ./internal/runner
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed

receipt: test step 50.238s 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.061s amadan.net/oficina/equipo/internal/runner
receipt: slow test 29.03s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.02s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 48.73, cpu waiting 29.72%, memory waiting 0.00%, io waiting 0.88%
--- 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 1m0.462s 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 58.458s amadan.net/oficina/equipo/internal/runner
receipt: slow test 48.38s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 44.86s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.4s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.66s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 59.17, cpu waiting 36.07%, memory waiting 0.00%, io waiting 0.71%
--- 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 42.27s 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 41.273s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.13s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 5.01s amadan.net/oficina/equipo/internal/runner TestEnrolCommitsTheCredentialLast
receipt: slow test 3.42s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.29s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 3.14s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
machine: 32 CPUs, load 45.83, cpu waiting 25.71%, memory waiting 0.00%, io waiting 0.97%
--- 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 37.1%, load 24.28
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.277s 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.195s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 28.97s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 28.93s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 26.64s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 23.76s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 23.59s amadan.net/oficina/equipo/internal/equipotest TestAuthorityGrantReferences
machine: 32 CPUs, load 55.53, cpu waiting 37.16%, memory waiting 0.00%, io waiting 0.37%
--- 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.1%, load 24.28
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 2m15.96s 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 2m13.68s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 21.07s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
receipt: slow test 21.05s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
receipt: slow test 21.04s amadan.net/oficina/equipo/internal/equipotest TestProjectRequestActorAndUpdate
receipt: slow test 21s amadan.net/oficina/equipo/internal/equipotest TestProjectsReopen
receipt: slow test 20.99s amadan.net/oficina/equipo/internal/equipotest TestProjectOwnersAreMembers
machine: 32 CPUs, load 26.08, cpu waiting 12.91%, memory waiting 0.00%, io waiting 0.11%
--- 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 37.1%, load 24.28
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 1m19.179s 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.115s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 17.03s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 13.54s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 10.66s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 10.55s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 7.55s amadan.net/oficina/equipo/internal/equipotest TestRosterBootstrapOnce
machine: 32 CPUs, load 49.45, cpu waiting 32.27%, memory waiting 0.00%, io waiting 0.31%
--- 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.1%, load 24.28
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 1m11.274s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m9.113s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 28.06s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 26.99s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 26.96s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 24.96s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedOnce
receipt: slow test 24.81s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsUpgrade
machine: 32 CPUs, load 52.36, cpu waiting 36.50%, memory waiting 0.00%, io waiting 0.36%
--- shard 16 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: plan3test started 30s late; cpu waiting 36.8%, load 24.28
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 57.202s 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 54.711s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.91s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.5s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.73s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.6s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.36s amadan.net/oficina/equipo/internal/plan3test TestPlanMigrationUpgrade
machine: 32 CPUs, load 59.66, cpu waiting 38.36%, memory waiting 0.00%, io waiting 0.44%
--- 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.1%, load 24.28
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/websource/hostaddrs ./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/websource/hostaddrs ./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/equipo/team: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/forge: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/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/runnerproto: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/testci: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/wire/wireschema: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/workspace: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/checks: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/containment: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/pi: its inputs changed
budget note: internal/equipo took 2m26.58s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/chat took 29.502s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/github took 40.581s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/equipo/setup took 10.931s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/idtest took 1m55.16s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/release took 26.018s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/runner/containment took 51.276s, over the 15s its record on line 40 allows; reported only, timing fails on CI
budget note: internal/runner/provider/claude/realcli took 11.869s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 2m33.665s against a 60s target (the gate's other steps are not in this figure)
receipt: 24 packages ran, 48 cached, 17 without tests, 0 failed
receipt: slow package 2m26.58s amadan.net/oficina/equipo/internal/equipo
receipt: slow package 1m55.16s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 1m10.567s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 55.32s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 53.914s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow test 57.75s amadan.net/oficina/equipo/internal/idtest TestDoorRemembersOficinaID
receipt: slow test 48.92s amadan.net/oficina/equipo/internal/idtest TestDoorForgetsOficinaIDForARefusedSession
receipt: slow test 48s amadan.net/oficina/equipo/internal/idtest TestDoorNeverJudgesANativeSession
receipt: slow test 47.71s amadan.net/oficina/equipo/internal/idtest TestDoorOficinaSettingsUnreadableIsNoLoop
receipt: slow test 47.26s amadan.net/oficina/equipo/internal/idtest TestDoorStepUpIsLocal
machine: 32 CPUs, load 20.14, cpu waiting 9.57%, memory waiting 0.00%, io waiting 0.08%
--- 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.556s 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.762s amadan.net/oficina/equipo/internal/headless
receipt: slow test 39.04s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 14.89s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 10.73s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.47s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 6.28s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 59.66, cpu waiting 38.30%, memory waiting 0.00%, io waiting 0.46%
--- 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 1m34.697s 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.779s amadan.net/oficina/equipo/internal/headless
receipt: slow test 28.85s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 22.26s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 13.42s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 9.54s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 9.53s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
machine: 32 CPUs, load 57.92, cpu waiting 37.61%, memory waiting 0.00%, io waiting 0.39%
--- 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 1m55.011s 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 1m53.13s amadan.net/oficina/equipo/internal/headless
receipt: slow test 15s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 13.51s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 12.47s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 11.35s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsSignInEmail
receipt: slow test 11.23s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
machine: 32 CPUs, load 46.45, cpu waiting 28.46%, memory waiting 0.00%, io waiting 0.27%
--- 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 TestBrowserThinkingAndCards
=== RUN   TestBrowserThinkingAndCards
time=2026-11-29T11:46:16.482Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-29T11:46:16.482Z level=INFO msg="startup phase done" phase=state_lock took=68µs
time=2026-11-29T11:46:16.482Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-29T11:46:16.482Z level=INFO msg="startup phase done" phase=claim_roots took=84µs
time=2026-11-29T11:46:16.482Z level=INFO msg="startup phase" phase=sweep
time=2026-11-29T11:46:16.518Z level=INFO msg="startup phase done" phase=sweep took=36.344ms
time=2026-11-29T11:46:16.518Z level=INFO msg="startup phase" phase=credentials
time=2026-11-29T11:46:16.519Z level=INFO msg="startup phase done" phase=credentials took=191µs
time=2026-11-29T11:46:16.519Z level=INFO msg="startup phase" phase=open_state
time=2026-11-29T11:46:16.561Z level=INFO msg="startup phase done" phase=open_state took=42.872ms
time=2026-11-29T11:46:16.562Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-29T11:46:16.564Z level=INFO msg=connecting host=127.0.0.1:38723 protocol=36
time=2026-11-29T11:46:16.566Z level=INFO msg=connected host=127.0.0.1:38723 took=1.185ms
time=2026-11-29T11:46:16.567Z level=INFO msg="capabilities gathering"
time=2026-11-29T11:46:16.567Z level=INFO msg="capabilities gathered" took=395µs tags=linux,claude,go
time=2026-11-29T11:46:16.571Z level=INFO msg="hello sent" protocol=36
time=2026-11-29T11:46:16.574Z level=INFO msg=welcome protocol=36 role=primary generation=1
time=2026-11-29T11:46:17.668Z level=INFO msg="connection checked" connection=claude-1 state=healthy
    browser_cards_test.go:66: waiting for (()=>{const l=document.querySelector('[equipo-thinking] [equipo-activity]');return !!l && l.textContent==='Adding oficina/sample…'})(): context deadline exceeded (last evaluation: context deadline exceeded)
--- FAIL: TestBrowserThinkingAndCards (7.26s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m31.884s
FAIL	amadan.net/oficina/equipo/internal/headless	92.138s


receipt: test step 1m33.781s 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 1m31.884s amadan.net/oficina/equipo/internal/headless
receipt: slow test 11.78s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 10.94s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 9.69s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 7.79s amadan.net/oficina/equipo/internal/headless TestBrowserEmptyExplore
receipt: slow test 7.7s amadan.net/oficina/equipo/internal/headless TestBrowserNotebookLook
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 '^TestBrowserThinkingAndCards$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserThinkingAndCards browser-headless-rest 11e89e9c23fedc51d520efc460c8512f1d808783 7.26s 57.92
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 49.45, cpu waiting 31.28%, memory waiting 0.00%, io waiting 0.30%
--- 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.406s 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.624s amadan.net/oficina/equipo/internal/equipo
receipt: slow test 1.97s amadan.net/oficina/equipo/internal/equipo TestBrowserPreviewPassExchange
receipt: slow test 650ms 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.805s 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.237s 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.244s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 11.638s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 10.244s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 8.11s amadan.net/oficina/equipo/internal/idtest TestBrowserSmartDoor
receipt: slow test 2.13s 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.689s 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.035s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 2.03s 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

receipt: test step 3m40.186s 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 3m37.617s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 26.09s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.44s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12.1s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.75s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 9.52s amadan.net/oficina/equipo/internal/thintest TestBrowserRhythm
machine: 32 CPUs, load 7.50, cpu waiting 3.18%, memory waiting 0.00%, io waiting 0.02%
--- 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   (52s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 4.66s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.28s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 8.32s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 8.29s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 27.20s
+ go test -tags testbuild -timeout 15m -v -run '^TestHeadlessConnections$/^C5_review_auth$|^TestHeadlessConnections$/^C5_review_failover$|^TestHeadlessConnections$/^C5_review_on_codex$|^TestHeadlessConnections$/^C5_review_other_family_first$' ./internal/headless   (65s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 15.52s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 12.83s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 19.64s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 15.07s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (21s)
ok ./internal/headless TestMixedVersions 18.29s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (2s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.76s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin   (1s)
ok ./internal/runner/thin TestRunnerCancelAndSupersede 0.05s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 63.69, cpu waiting 37.58%, memory waiting 0.00%, io waiting 0.65%
--- 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.225s 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.74s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 212ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 113ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 3ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow package 0s amadan.net/oficina/equipo/internal/runner/provider/claude/realcli
receipt: slow test 5.44s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.76s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 410ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 210ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxToolchain
CGO_ENABLED=0 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run '^TestNamespace' -count=1 ./internal/runner/containment
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run '^TestNamespace' -count=1 ./internal/runner/containment

receipt: test step 3.329s 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.929s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 320ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 200ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReapsOrphans
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryReusedPID
machine: 32 CPUs, load 20.66, cpu waiting 8.96%, memory waiting 0.00%, io waiting 1.50%
--- shard 25 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: runner-dead-references started 30s late; cpu waiting 36.8%, load 24.28
shard 25: make runner-dead-references lanes-check build vet fmt-check spacing budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 3076 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: 98 directories within budget
CGO_ENABLED=0 go test ./internal/equipo -run '^TestMigrationModels$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipo	2.676s
machine: 32 CPUs, load 62.60, cpu waiting 38.50%, 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 36.8%, load 24.28
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 48.73, cpu waiting 29.72%, memory waiting 0.00%, io waiting 0.88%
--- shard 27 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: govulncheck started 30s late; cpu waiting 36.8%, load 24.28
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 54.91, cpu waiting 33.71%, memory waiting 0.00%, io waiting 0.79%
--- 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 37.1%, load 24.28
shard 28: make gitleaks
11:46AM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
11:47AM INF 1309 commits scanned.
11:47AM INF scanned ~69392022 bytes (69.39 MB) in 24.1s
11:47AM INF no leaks found
machine: 32 CPUs, load 54.91, cpu waiting 32.41%, memory waiting 0.00%, io waiting 0.82%
=== 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.167ms, worst 1.267ms, budget 150ms
perf: GET /api/runner/protocol: median 90µs, worst 105µs, budget 150ms
perf: GET /api/v1/account-setups/{id}: median 603µs, worst 690µs, budget 150ms
perf: GET /api/v1/accounts: median 427µs, worst 461µs, budget 150ms
perf: GET /api/v1/auth/devices: median 430µs, worst 473µs, budget 150ms
perf: GET /api/v1/budgets: median 488µs, worst 552µs, budget 150ms
perf: GET /api/v1/capabilities: median 246µs, worst 257µs, budget 150ms
perf: GET /api/v1/cards/{id}: median 1.212ms, worst 1.252ms, budget 150ms
perf: GET /api/v1/connections: median 556µs, worst 634µs, budget 150ms
perf: GET /api/v1/connections/{id}: median 526µs, worst 572µs, budget 150ms
perf: GET /api/v1/conversation: median 892µs, worst 911µs, budget 150ms
perf: GET /api/v1/conversation/cards: median 1.435ms, worst 1.546ms, budget 150ms
perf: GET /api/v1/coordinator: median 1.763ms, worst 1.815ms, budget 150ms
perf: GET /api/v1/invites/{id}: median 447µs, worst 491µs, budget 150ms
perf: GET /api/v1/journey: median 8.764ms, worst 9.043ms, budget 150ms
perf: GET /api/v1/me: median 474µs, worst 496µs, budget 150ms
perf: GET /api/v1/me/settings: median 559µs, worst 583µs, budget 150ms
perf: GET /api/v1/needs-you: median 8.696ms, worst 9.069ms, budget 150ms
perf: GET /api/v1/notifications: median 1.745ms, worst 1.839ms, budget 150ms
perf: GET /api/v1/onboarding: median 422µs, worst 460µs, budget 150ms
perf: GET /api/v1/people: median 445µs, worst 507µs, budget 150ms
perf: GET /api/v1/playbooks: median 598µs, worst 661µs, budget 150ms
perf: GET /api/v1/playbooks/{id}: median 556µs, worst 595µs, budget 150ms
perf: GET /api/v1/playbooks/{id}/template-diff: median 882µs, worst 911µs, budget 150ms
perf: GET /api/v1/preferences: median 783µs, worst 807µs, budget 150ms
perf: GET /api/v1/projects/{id}: median 490µs, worst 537µs, budget 150ms
perf: GET /api/v1/projects/{id}/settings: median 611µs, worst 636µs, budget 150ms
perf: GET /api/v1/roster: median 502µs, worst 641µs, budget 150ms
perf: GET /api/v1/runners/{id}: median 447µs, worst 488µs, budget 150ms
perf: GET /api/v1/specialists: median 8.094ms, worst 11.561ms, budget 150ms
perf: GET /api/v1/specialists/{id}: median 7.872ms, worst 7.971ms, budget 150ms
perf: GET /api/v1/specialists/{id}/template-diff: median 883µs, worst 930µs, budget 150ms
perf: GET /api/v1/tasks/{id}/plan: median 1.163ms, worst 1.315ms, budget 150ms
perf: GET /api/v1/tasks/{id}/thread: median 721µs, worst 805µs, budget 150ms
perf: GET /api/v1/teams: median 426µs, worst 430µs, budget 150ms
perf: GET /api/v1/templates: median 588µs, worst 623µs, budget 150ms
perf: GET /api/v1/templates/{id}: median 452µs, worst 507µs, budget 150ms
perf: GET /auth/callback: median 78µs, worst 113µs, budget 150ms
perf: GET /auth/devices/{id}: median 3.996ms, worst 4.151ms, budget 150ms
perf: GET /auth/verify: median 77µs, worst 99µs, budget 150ms
perf: GET /connections: median 4.389ms, worst 4.534ms, budget 150ms
perf: GET /conversation: median 9.024ms, worst 9.487ms, budget 150ms
perf: GET /conversation/connections: median 257µs, worst 288µs, budget 150ms
perf: GET /conversation/notebook: median 236µs, worst 290µs, budget 150ms
perf: GET /conversation/settings: median 4.68ms, worst 4.82ms, budget 150ms
perf: GET /conversation/settings/autonomy: median 4.741ms, worst 4.984ms, budget 150ms
perf: GET /conversation/settings/connections: median 7.412ms, worst 7.574ms, budget 150ms
perf: GET /conversation/settings/connections/add: median 7.603ms, worst 11.095ms, budget 150ms
perf: GET /conversation/settings/copy: median 4.706ms, worst 4.887ms, budget 150ms
perf: GET /conversation/settings/github: median 4.335ms, worst 4.493ms, budget 150ms
perf: GET /conversation/settings/housekeeping: median 4.888ms, worst 4.993ms, budget 150ms
perf: GET /conversation/settings/machines: median 5.425ms, worst 5.828ms, budget 150ms
perf: GET /conversation/settings/machines/add: median 5.166ms, worst 5.258ms, budget 150ms
perf: GET /conversation/settings/notebook: median 4.082ms, worst 4.332ms, budget 150ms
perf: GET /conversation/settings/places: median 4.24ms, worst 4.388ms, budget 150ms
perf: GET /conversation/settings/thinking: median 4.736ms, worst 4.823ms, budget 150ms
perf: GET /github/connect/installation: median 179µs, worst 197µs, budget 150ms
perf: GET /github/connect/manifest: median 159µs, worst 181µs, budget 150ms
perf: GET /housekeeping: median 4.501ms, worst 7.179ms, budget 150ms
perf: GET /invites/new: median 605µs, worst 692µs, budget 150ms
perf: GET /invites/{id}: median 684µs, worst 700µs, budget 150ms
perf: GET /jobs: median 4.113ms, worst 4.442ms, budget 150ms
perf: GET /jobs/{id}: median 5.503ms, worst 5.672ms, budget 150ms
perf: GET /journey: median 11.262ms, worst 11.444ms, budget 150ms
perf: GET /nav/rail: median 3.653ms, worst 3.848ms, budget 150ms
perf: GET /needs-you: median 10.74ms, worst 11.149ms, budget 150ms
perf: GET /onboarding: median 4.84ms, worst 5.042ms, budget 150ms
perf: GET /people: median 4.158ms, worst 4.425ms, budget 150ms
perf: GET /playbook-suggestions/{suggestion}: median 5.488ms, worst 5.795ms, budget 150ms
perf: GET /playbooks: median 5.252ms, worst 6.67ms, budget 150ms
perf: GET /playbooks/new: median 5.098ms, worst 5.339ms, budget 150ms
perf: GET /playbooks/{id}: median 5.563ms, worst 5.705ms, budget 150ms
perf: GET /playbooks/{id}/edit: median 5.605ms, worst 5.825ms, budget 150ms
perf: GET /playbooks/{id}/template-diff: median 4.738ms, worst 4.799ms, budget 150ms
perf: GET /preferences: median 4.793ms, worst 4.986ms, budget 150ms
perf: GET /preferences/sources/{source}: median 4.734ms, worst 4.93ms, budget 150ms
perf: GET /projects: median 6.618ms, worst 6.748ms, budget 150ms
perf: GET /projects/accounts: median 4.201ms, worst 4.308ms, budget 150ms
perf: GET /projects/new: median 4.209ms, worst 4.555ms, budget 150ms
perf: GET /projects/{id}: median 15.029ms, worst 17.74ms, budget 150ms
perf: GET /projects/{id}/edit: median 5.148ms, worst 5.412ms, budget 150ms
perf: GET /runners/enrol: median 5.301ms, worst 5.419ms, budget 150ms
perf: GET /settings: median 4.245ms, worst 4.401ms, budget 150ms
perf: GET /settings/coordinator: median 6.195ms, worst 6.413ms, budget 150ms
perf: GET /settings/devices: median 3.977ms, worst 4.176ms, budget 150ms
perf: GET /settings/recovery: median 4.193ms, worst 4.331ms, budget 150ms
perf: GET /settings/recovery/release: median 4.08ms, worst 4.176ms, budget 150ms
perf: GET /settings/thinking: median 257µs, worst 279µs, budget 150ms
perf: GET /signed-out: median 271µs, worst 287µs, budget 150ms
perf: GET /signin: median 273µs, worst 290µs, budget 150ms
perf: GET /specialists/new: median 4.073ms, worst 4.188ms, budget 150ms
perf: GET /specialists/{key}: median 13.41ms, worst 13.811ms, budget 150ms
perf: GET /specialists/{key}/edit: median 4.866ms, worst 6.521ms, budget 150ms
perf: GET /specialists/{key}/template-diff: median 4.879ms, worst 5.197ms, budget 150ms
perf: GET /tasks: median 7.066ms, worst 7.301ms, budget 150ms
perf: GET /tasks/new: median 4.214ms, worst 4.414ms, budget 150ms
perf: GET /tasks/{id}: median 6.91ms, worst 7.056ms, budget 150ms
perf: GET /tasks/{id}/merge: median 6.137ms, worst 6.227ms, budget 150ms
perf: GET /tasks/{id}/move: median 5.75ms, worst 5.889ms, budget 150ms
perf: GET /tasks/{id}/plan: median 6.974ms, worst 7.063ms, budget 150ms
perf: GET /tasks/{id}/preview: median 1.62ms, worst 1.751ms, budget 150ms
perf: GET /tasks/{id}/questions/{question}: median 6.095ms, worst 6.267ms, budget 150ms
perf: GET /tasks/{id}/rendered-change: median 5.679ms, worst 5.845ms, budget 150ms
perf: GET /tasks/{id}/rendered-change/{hash}.png: median 5.197ms, worst 7.871ms, budget 150ms
perf: GET /tasks/{id}/thread: median 9.114ms, worst 9.527ms, budget 150ms
perf: GET /team/{specialist}: median 5.38ms, worst 5.678ms, budget 150ms
perf: GET /teams: median 12.482ms, worst 12.87ms, budget 150ms
perf: GET /templates: median 4.383ms, worst 4.539ms, budget 150ms
perf: GET /usage: median 5.217ms, worst 5.412ms, budget 150ms
perf: GET /work: median 3.972ms, worst 4.115ms, budget 150ms
perf: GET /auth/devices/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /connections: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/autonomy: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/connections: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/connections/add: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/copy: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/github: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/housekeeping: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/machines: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/machines/add: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/notebook: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/places: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/thinking: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /housekeeping: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /invites/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /invites/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /jobs: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /jobs/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /journey: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /nav/rail: 0 bytes of framework CSS and JS, gzipped; 16000-byte budget
perf: GET /needs-you: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /onboarding: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /people: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbook-suggestions/{suggestion}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks/{id}/edit: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks/{id}/template-diff: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /preferences: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /preferences/sources/{source}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects/accounts: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects/{id}/edit: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /runners/enrol: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings/coordinator: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings/devices: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings/recovery: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings/recovery/release: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /signed-out: 30270 bytes of framework CSS and JS, gzipped; 40000-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /specialists/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /specialists/{key}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /specialists/{key}/edit: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /specialists/{key}/template-diff: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/merge: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/move: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/plan: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/preview: 25954 bytes of framework CSS and JS, gzipped; 40000-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/questions/{question}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/rendered-change: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/thread: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /team/{specialist}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /teams: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /templates: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /usage: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /work: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: cold boot: median 166ms of [166.235655ms 166.464191ms 169.63939ms], budget 500ms

receipt: test step 49.614s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 94 without tests, 0 failed
receipt: slow package 11.077s amadan.net/oficina/equipo/internal/equipotest
receipt: slow package 1ms amadan.net/oficina/equipo/internal/runner/thin
receipt: slow package 0s amadan.net/oficina/equipo/internal/plan3test
receipt: slow package 0s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 0s amadan.net/oficina/equipo/internal/attach
receipt: slow test 10.51s amadan.net/oficina/equipo/internal/equipotest TestPerfScreens
receipt: slow test 560ms amadan.net/oficina/equipo/internal/equipotest TestPerfBoot
=== cache ===
ci-box: build cache /home/ci/work/repos/oficina__equipo/cache/go-build: 3.73 GiB in 25452 files
ci-box: module cache /home/ci/work/repos/oficina__equipo/cache/go-mod: 1.25 GiB in 41706 files
diff --git a/.rastrillo/budgets.txt b/.rastrillo/budgets.txt
index 4f4db5e8..7377daa6 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 41403 14596 File facts/diffs, previews, merge authority, unfinished work, CI feedback, receipts, Assistant files, places, waiting cards, abilities, lookups, go-aheads; measured 41403/14596.
+size internal/equipo/chat 41389 14634 File facts/diffs, previews, merge authority, unfinished work, CI feedback, receipts, Assistant files, places, waiting cards, abilities, lookups, go-aheads; measured 41389/14634.
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/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md b/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
index b7ec9fd2..c5a9194e 100644
--- a/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
+++ b/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
@@ -8246,19 +8246,23 @@ R1: the tap carries what was shown (web form, native call, `wire.RunNow.offer`:
equipo-staging (2301e3c1, on CARLOS) logged `instance inventory err="route ip+net: netlinkrib: address family not supported by protocol"` at every scan, so the inventory was never ready and lookups were never offered. CARLOS's instance units set `RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX` (platform `internal/host/units/carlos-instance@.service` and every other instance template), which refuses the netlink socket `net.InterfaceAddrs` opens. The platform hit the same on its own units in v0.25.0 and reads procfs instead (`internal/instancectl/localaddrs.go`).
-The scan (`internal/equipo/chat/instance_addrs.go`) now tries netlink and, when it is refused, reads `/proc/self/net/fib_trie` (IPv4 LOCAL routes) and `/proc/self/net/if_inet6`. `/proc/self/net`, not `/proc/net`: the units mount `/proc` with `ProcSubset=pid` and `ProtectProc=invisible`, which hide the `/proc/net` link but leave the process's own directory (checked with `unshare -Urpm` and `mount -t proc -o subset=pid,hidepid=invisible`: `/proc/net` absent, `/proc/self/net/fib_trie` and `if_inet6` readable). An instance shares the box's network namespace, so these are the box's addresses. A list that can't be read whole is an error, never a shorter list: both sources failing, a fib_trie with no LOCAL route, a LOCAL route for a whole range other than loopback's, or a bad if_inet6 line each fail the scan, which leaves the inventory not ready and raises no card.
+The scan now lists addresses through `internal/websource/hostaddrs` (new; split out of `equipo/chat` for its size budget): netlink, and where it is refused `/proc/self/net/fib_trie` (IPv4 LOCAL routes) and `/proc/self/net/if_inet6`. `/proc/self/net`, not `/proc/net`: the units mount `/proc` with `ProcSubset=pid` and `ProtectProc=invisible`, which hide the `/proc/net` link but leave the process's own directory (checked with `unshare -Urpm` and `mount -t proc -o subset=pid,hidepid=invisible`: `/proc/net` absent, `/proc/self/net/fib_trie` and `if_inet6` readable; and this host's real files parse). An instance shares the box's network namespace, so these are the box's addresses. A list that can't be read whole is an error, never a shorter list: both sources failing (the error carries both causes), a fib_trie with no LOCAL route, a LOCAL route for a range other than loopback's, a LOCAL route with anything but `tos=` after its type, or a bad if_inet6 line each fail the scan, which leaves the inventory not ready and raises no card.
-The scan keeps the addresses a lookup could otherwise reach, those `websource.PublicAddress` accepts, as Research's site inventory does (`internal/runner/thin/research.go`). The guard refuses every other address before it asks the inventory, in the DNS check and again in the dial's Control hook, so listing them only asked an owner to list and confirm prefixes for a box's VPC, tailnet and bridge addresses that nothing dials, and a new bridge asked again. No reachable address changed: Inside differs only for addresses the guard has already refused. The existing tests moved from documentation ranges (refused by PublicAddress) to public ones. No new copy: the card is unchanged.
+The scan keeps the addresses a lookup could otherwise reach, those `websource.PublicAddress` accepts, as Research's site inventory does (`internal/runner/thin/research.go`). The guard refuses every other address before it asks the inventory, in the DNS check and again in the dial's Control hook, so listing them only asked an owner to list and confirm prefixes for a box's VPC, tailnet and bridge addresses that nothing dials, and a new bridge asked again. No reachable address changed: Inside differs only for addresses the guard has already refused. The existing tests moved from documentation ranges (refused by PublicAddress) to public ones. No new copy: the card is unchanged. `.rastrillo/budgets.txt`: `equipo/chat` measured 41389/14634 (source down 14, tests up 38 for `TestInventoryWithoutNetlink`).
-Tests: `TestInventoryWithoutNetlink` (netlink refused with staging's error, procfs fixtures: the card shows the prefixes and the public addresses, Confirm makes it ready), `TestInventoryUnlistedStaysClosed`, `TestInventoryProcfsShapes` (local range, no local route, bad if_inet6, no IPv6), `TestInventoryIgnoresAddressesNeverReached`. Red first: `TestInventoryWithoutNetlink` failed with staging's own error. Guards observed failing, then restored:
+Tests: `equipo/chat` `TestInventoryWithoutNetlink` (netlink refused with staging's error, procfs fixtures: the public addresses are recorded, Confirm makes it ready); `hostaddrs` `TestProcfsWithoutNetlink`, `TestNetlinkFirst`, `TestNeitherSource`, `TestProcfsShapes` (local range, with and without a TOS; a local address with a TOS; an unknown field after LOCAL; no local route; bad if_inet6; no IPv6). Red first: `TestInventoryWithoutNetlink` failed with staging's own error. Guards observed failing, then restored:
-- a local range accepted -> FAIL TestInventoryProcfsShapes/local_range; restored -> ok.
-- the no-LOCAL-route check removed -> FAIL TestInventoryProcfsShapes/no_local_route; restored -> ok.
-- the netlink cause dropped from the error -> FAIL TestInventoryUnlistedStaysClosed; restored -> ok.
-- non-public addresses kept (IsGlobalUnicast) -> FAIL TestInventoryIgnoresAddressesNeverReached; restored -> ok.
-- a bad if_inet6 read as a shorter list -> FAIL TestInventoryProcfsShapes/bad_if_inet6; restored -> ok.
-- no procfs fallback -> FAIL TestInventoryWithoutNetlink; restored -> ok.
+- a local range accepted -> FAIL TestProcfsShapes/local_range and local_range_with_a_TOS; restored -> ok.
+- LOCAL read as the last field (Astra's P2) -> FAIL TestProcfsShapes/local_address_with_a_TOS, local_range_with_a_TOS, unknown_field_after_LOCAL; restored -> ok.
+- fields after LOCAL unchecked -> FAIL TestProcfsShapes/unknown_field_after_LOCAL; restored -> ok.
+- the no-LOCAL-route check removed -> FAIL TestProcfsShapes/no_local_route; restored -> ok.
+- the netlink cause dropped from the error -> FAIL TestNeitherSource; restored -> ok.
+- non-public addresses kept (IsGlobalUnicast) -> FAIL TestProcfsWithoutNetlink, TestNetlinkFirst, TestInventoryWithoutNetlink; restored -> ok.
+- a bad if_inet6 read as a shorter list -> FAIL TestProcfsShapes/bad_if_inet6; restored -> ok.
+- no procfs fallback -> FAIL TestProcfsWithoutNetlink, TestNeitherSource, TestInventoryWithoutNetlink; restored -> ok.
-`CGO_ENABLED=0 go test ./internal/equipo/chat ./internal/websource/... ./internal/plan3test -count=1`: ok.
+Astra round 1 (8071b30a): no P1; one P2, fixed: the kernel prints ` tos=<n>` after a route's type, so a LOCAL route with a TOS was skipped; the type is now the third field and only `tos=` may follow. Astra judged the PublicAddress filter not a weakening.
+
+Platform: carlos/platform discussion 1498 (Feature Request) asks CARLOS to document `/proc/self/net` as readable in instance units, or to publish the box's addresses to instances.
Operator, after release: `EQUIPO_INSTANCE_PREFIXES` must cover every public address the box holds (the card lists them); private ones no longer need listing.
diff --git a/internal/equipo/chat/instance_inventory.go b/internal/equipo/chat/instance_inventory.go
index afe2db9d..dfd5c2fc 100644
--- a/internal/equipo/chat/instance_inventory.go
+++ b/internal/equipo/chat/instance_inventory.go
@@ -11,6 +11,7 @@ import (
"time"
"amadan.net/oficina/equipo/internal/websource/guard"
+ "amadan.net/oficina/equipo/internal/websource/hostaddrs"
"amadan.net/oficina/equipo/internal/wire"
"gorm.io/gorm"
"gorm.io/gorm/clause"
@@ -20,7 +21,7 @@ import (
// plan Task 7): the network the instance itself is on, which no request
// to the public web may reach. The operator lists its prefixes
// (EQUIPO_INSTANCE_PREFIXES); the instance scans its own interfaces'
-// public addresses at start and hourly (instance_addrs.go: netlink, or
+// public addresses at start and hourly (websource/hostaddrs: netlink, or
// procfs where it is refused, as on CARLOS); an Equipo owner confirms.
// Until every listed prefix is confirmed and every address seen is inside
// one, the inventory isn't ready, and nothing that needs it (lookups,
@@ -201,12 +202,12 @@ func inventoryRows(tx *gorm.DB) ([]netip.Prefix, []netip.Addr, error) {
}
// ScanInstanceAddresses records the public addresses of the instance's
-// interfaces (instanceAddrs: netlink, or procfs where it is refused, at
-// start and hourly) and, when the inventory isn't ready with prefixes
+// interfaces (hostaddrs.Public: netlink, or procfs where it is refused,
+// at start and hourly) and, when the inventory isn't ready with prefixes
// listed, asks every owner to confirm it: once per change in what the
// card shows. Addresses that can't be listed leave it not ready.
func (s *Store) ScanInstanceAddresses(ctx context.Context) error {
- seen, err := s.instanceAddrs()
+ seen, err := hostaddrs.Public(s.ifaceAddrs, s.procNet)
if err != nil {
s.instance.scanned.Store(false)
return err
diff --git a/internal/equipo/chat/instance_inventory_test.go b/internal/equipo/chat/instance_inventory_test.go
index ba66e8ec..05c06903 100644
--- a/internal/equipo/chat/instance_inventory_test.go
+++ b/internal/equipo/chat/instance_inventory_test.go
@@ -3,13 +3,11 @@ package chat
import (
"context"
"errors"
- "io/fs"
"net"
"net/netip"
"os"
"path/filepath"
"slices"
- "strings"
"syscall"
"testing"
@@ -175,7 +173,7 @@ func TestInventoryNeedsItsOwnScan(t *testing.T) {
t.Fatalf("not ready after a scan: %v", err)
}
h.s.ifaceAddrs = func() ([]net.Addr, error) { return nil, errors.New("no interfaces") }
- procNet(t, h, nil, nil)
+ h.s.procNet = t.TempDir()
if err := h.s.ScanInstanceAddresses(ctx); err == nil {
t.Fatal("the failing scan succeeded")
}
@@ -184,208 +182,35 @@ func TestInventoryNeedsItsOwnScan(t *testing.T) {
}
}
-// netlinkRefused has the store's scans fail to list interfaces as they
-// do on CARLOS, whose instance units allow only AF_INET, AF_INET6 and
-// AF_UNIX sockets: equipo-staging's log, "route ip+net: netlinkrib:
-// address family not supported by protocol".
-func netlinkRefused(h *abilitiesHarness) {
- h.s.ifaceAddrs = func() ([]net.Addr, error) {
- return nil, &net.OpError{Op: "route", Net: "ip+net", Err: os.NewSyscallError("netlinkrib", syscall.EAFNOSUPPORT)}
- }
-}
-
-// procNet points the store's procfs reads at a directory holding these
-// fib_trie and if_inet6 files; a nil one is absent.
-func procNet(t *testing.T, h *abilitiesHarness, fibTrie, ifInet6 []string) {
- t.Helper()
- dir := t.TempDir()
- for name, lines := range map[string][]string{"fib_trie": fibTrie, "if_inet6": ifInet6} {
- if lines == nil {
- continue
- }
- if err := os.WriteFile(filepath.Join(dir, name), []byte(strings.Join(lines, "\n")+"\n"), 0o600); err != nil {
- t.Fatal(err)
- }
- }
- h.s.procNet = dir
-}
-
-// A box's /proc/net/fib_trie: loopback, a private address on its VPC and
-// a public one, in the main and local tables.
-var boxFibTrie = []string{
- "Main:",
- " +-- 0.0.0.0/0 3 0 5",
- " |-- 0.0.0.0",
- " /0 universe UNICAST",
- " +-- 127.0.0.0/8 2 0 2",
- " +-- 127.0.0.0/31 1 0 0",
- " |-- 127.0.0.0",
- " /8 host LOCAL",
- " |-- 127.0.0.1",
- " /32 host LOCAL",
- " |-- 127.255.255.255",
- " /32 link BROADCAST",
- " +-- 172.31.0.0/16 2 0 2",
- " |-- 172.31.0.0",
- " /16 link UNICAST",
- " |-- 172.31.5.9",
- " /32 host LOCAL",
- " |-- 172.31.255.255",
- " /32 link BROADCAST",
- " |-- 192.0.43.5",
- " /32 host LOCAL",
- "Local:",
- " +-- 0.0.0.0/0 3 0 5",
- " |-- 127.0.0.1",
- " /32 host LOCAL",
- " |-- 172.31.5.9",
- " /32 host LOCAL",
- " |-- 192.0.43.5",
- " /32 host LOCAL",
-}
-
-// Its /proc/net/if_inet6: loopback, a public address and its link-local
-// one, and a tailnet address.
-var boxIfInet6 = []string{
- "00000000000000000000000000000001 01 80 10 80 lo",
- "2a0104f8000000000000000000000005 02 40 00 80 eth0",
- "fe80000000000000020000fffe000005 02 40 20 80 eth0",
- "fd7a115ca1e00000000000007537b43a 06 80 00 80 tailscale0",
-}
-
-// Without netlink (CARLOS), the scan reads the same addresses from the
-// process's own /proc/self/net: the card shows them, an owner's Confirm
-// makes the inventory ready, and Inside covers them.
+// Without netlink (CARLOS, equipo-staging: "route ip+net: netlinkrib:
+// address family not supported by protocol"), the scan reads the box's
+// addresses from procfs and keeps the public ones; an owner's Confirm
+// makes the inventory ready. hostaddrs's tests cover procfs itself.
func TestInventoryWithoutNetlink(t *testing.T) {
h := newAbilitiesHarness(t)
ctx := context.Background()
if err := h.s.SetInstancePrefixes("192.0.43.0/24,2a01:4f8::/64"); err != nil {
t.Fatal(err)
}
- netlinkRefused(h)
- procNet(t, h, boxFibTrie, boxIfInet6)
- scan(t, h)
- c, ok := openInventoryCards(t, h)["owner@example.com"]
- if !ok {
- t.Fatal("no card")
- }
- var shown wire.Card
- if err := h.s.tx(ctx, func(tx *txn) error {
- var err error
- shown, err = tx.cardView(c)
- return err
- }); err != nil {
- t.Fatal(err)
- }
- if want := []string{"192.0.43.0/24", "2a01:4f8::/64", "192.0.43.5", "2a01:4f8::5"}; shown.Inventory == nil || !slices.Equal(shown.Inventory.Addresses, want) {
- t.Errorf("the card shows %+v, want %v", shown.Inventory, want)
- }
- if _, _, err := h.s.AnswerDevice(ctx, "owner@example.com", "", c.ID, wire.AnswerCard{Choice: wire.ChoiceConfirm, Revision: c.Revision}); err != nil {
- t.Fatal(err)
- }
- if err := h.s.InstanceInventory().Ready(ctx); err != nil {
- t.Errorf("not ready after Confirm: %v", err)
- }
- if !h.s.InstanceInventory().Inside(netip.MustParseAddr("2a01:4f8::5")) {
- t.Error("the address seen isn't inside")
- }
-}
-
-// With neither netlink nor procfs to list them, the instance's addresses
-// are unknown, never none: the scan fails, the inventory isn't ready,
-// even with every prefix confirmed, and nobody is asked to confirm a
-// list that would leave addresses out.
-func TestInventoryUnlistedStaysClosed(t *testing.T) {
- h := newAbilitiesHarness(t)
- ctx := context.Background()
- if err := h.s.SetInstancePrefixes("192.0.43.0/24"); err != nil {
- t.Fatal(err)
- }
- if err := h.s.db.G.Create(&instancePrefixRecord{Prefix: "192.0.43.0/24", ConfirmedBy: "owner@example.com"}).Error; err != nil {
- t.Fatal(err)
- }
- netlinkRefused(h)
- procNet(t, h, nil, boxIfInet6)
- err := h.s.ScanInstanceAddresses(ctx)
- if err == nil {
- t.Fatal("the scan succeeded with nothing to read")
- }
- if !errors.Is(err, syscall.EAFNOSUPPORT) || !errors.Is(err, fs.ErrNotExist) {
- t.Errorf("the error leaves out a cause: %v", err)
- }
- if err := h.s.InstanceInventory().Ready(ctx); !errors.Is(err, guard.ErrInventoryUnconfirmed) {
- t.Errorf("ready with the addresses unknown: %v", err)
- }
- if n := len(openInventoryCards(t, h)); n != 0 {
- t.Errorf("%d cards", n)
- }
-}
-
-// procfs that can't be trusted to list every address is an unknown list
-// too: a local route for a whole public range (the box answers for every
-// address in it, which the inventory can't hold as addresses), or a
-// fib_trie with no local route at all (every kernel has 127.0.0.1, so it
-// isn't the file the parser knows). No if_inet6 is a kernel without IPv6.
-func TestInventoryProcfsShapes(t *testing.T) {
- cases := []struct {
- name string
- fibTrie []string
- ifInet6 []string
- want []string
- }{
- {"local range", append(slices.Clone(boxFibTrie), " |-- 192.0.44.0", " /24 host LOCAL"), boxIfInet6, nil},
- {"no local route", []string{"Main:", " +-- 0.0.0.0/0 3 0 5", " |-- 0.0.0.0", " /0 universe UNICAST"}, boxIfInet6, nil},
- {"bad if_inet6", boxFibTrie, []string{"not an address 01 80 10 80 lo"}, nil},
- {"no IPv6", boxFibTrie, nil, []string{"192.0.43.5"}},
- }
- for _, tc := range cases {
- t.Run(tc.name, func(t *testing.T) {
- h := newAbilitiesHarness(t)
- netlinkRefused(h)
- procNet(t, h, tc.fibTrie, tc.ifInet6)
- err := h.s.ScanInstanceAddresses(context.Background())
- if tc.want == nil {
- if err == nil {
- t.Fatal("the scan succeeded")
- }
- return
- }
- if err != nil {
- t.Fatal(err)
- }
- var got []string
- if err := h.s.db.G.Model(&instanceAddressRecord{}).Order("address").Pluck("address", &got).Error; err != nil {
- t.Fatal(err)
- }
- if !slices.Equal(got, tc.want) {
- t.Errorf("seen %v, want %v", got, tc.want)
- }
- })
+ h.s.ifaceAddrs = func() ([]net.Addr, error) {
+ return nil, &net.OpError{Op: "route", Net: "ip+net", Err: os.NewSyscallError("netlinkrib", syscall.EAFNOSUPPORT)}
}
-}
-
-// The inventory holds the addresses a lookup could otherwise reach:
-// websource.PublicAddress refuses loopback, private, CGNAT and tailnet,
-// link-local and metadata addresses before the inventory is asked, so an
-// interface holding one needs no prefix listed for it and asks nothing.
-func TestInventoryIgnoresAddressesNeverReached(t *testing.T) {
- h := newAbilitiesHarness(t)
- ctx := context.Background()
- if err := h.s.SetInstancePrefixes("192.0.43.0/24"); err != nil {
- t.Fatal(err)
+ h.s.procNet = t.TempDir()
+ for name, body := range map[string]string{"fib_trie": "|-- 127.0.0.1\n/32 host LOCAL\n|-- 172.31.5.9\n/32 host LOCAL\n|-- 192.0.43.5\n/32 host LOCAL\n", "if_inet6": "2a0104f8000000000000000000000005 02 40 00 80 eth0\n"} {
+ if err := os.WriteFile(filepath.Join(h.s.procNet, name), []byte(body), 0o600); err != nil {
+ t.Fatal(err)
+ }
}
- scanning(h, "10.0.0.5", "172.31.5.9", "100.100.1.1", "169.254.169.254", "fd7a:115c:a1e0::1", "192.0.43.5")
scan(t, h)
+ var seen []string
+ if err := h.s.db.G.Model(&instanceAddressRecord{}).Order("address").Pluck("address", &seen).Error; err != nil || !slices.Equal(seen, []string{"192.0.43.5", "2a01:4f8::5"}) {
+ t.Fatalf("seen %v %v", seen, err)
+ }
c := openInventoryCards(t, h)["owner@example.com"]
if _, _, err := h.s.AnswerDevice(ctx, "owner@example.com", "", c.ID, wire.AnswerCard{Choice: wire.ChoiceConfirm, Revision: c.Revision}); err != nil {
t.Fatal(err)
}
if err := h.s.InstanceInventory().Ready(ctx); err != nil {
- t.Errorf("not ready with only unreachable addresses outside the prefixes: %v", err)
- }
- scanning(h, "10.0.0.5", "10.9.9.9", "192.0.43.5")
- scan(t, h)
- if n := len(openInventoryCards(t, h)); n != 0 {
- t.Errorf("a private address asked again: %d cards", n)
+ t.Errorf("not ready after Confirm: %v", err)
}
}
diff --git a/internal/equipo/chat/store.go b/internal/equipo/chat/store.go
index 027dab05..2da9edfc 100644
--- a/internal/equipo/chat/store.go
+++ b/internal/equipo/chat/store.go
@@ -117,8 +117,8 @@ type Store struct {
// X-Forwarded-For, when a test sets it (SetForwardedHops).
hops atomic.Pointer[int]
// instance is the instance inventory's listed prefixes and latest
- // scan; ifaceAddrs replaces net.InterfaceAddrs, and procNet the
- // directory /proc/self/net, in tests.
+ // scan; ifaceAddrs replaces net.InterfaceAddrs, and procNet
+ // hostaddrs.ProcSelfNet, in tests.
instance instanceNet
ifaceAddrs func() ([]net.Addr, error)
procNet string
diff --git a/internal/equipo/chat/instance_addrs.go b/internal/websource/hostaddrs/hostaddrs.go
similarity index 52%
rename from internal/equipo/chat/instance_addrs.go
rename to internal/websource/hostaddrs/hostaddrs.go
index 7a2367c9..8fd9c148 100644
--- a/internal/equipo/chat/instance_addrs.go
+++ b/internal/websource/hostaddrs/hostaddrs.go
@@ -1,4 +1,20 @@
-package chat
+// Package hostaddrs lists the addresses on this host's interfaces, for
+// the instance inventory (equipo/chat/instance_inventory.go): the
+// addresses no request to the public web may reach.
+//
+// net.InterfaceAddrs asks the kernel over a netlink socket. CARLOS's
+// instance units allow only AF_INET, AF_INET6 and AF_UNIX sockets
+// (RestrictAddressFamilies=), so there it fails ("route ip+net:
+// netlinkrib: address family not supported by protocol"). The same
+// addresses are then read from procfs, as CARLOS reads its boxes' own
+// (platform internal/instancectl/localaddrs.go): IPv4 from fib_trie's
+// LOCAL routes, IPv6 from if_inet6. The directory is /proc/self/net, not
+// /proc/net: the units mount /proc with ProcSubset=pid, which hides the
+// /proc/net link and leaves the process's own directory. An instance
+// shares the box's network namespace, so these are the box's addresses.
+//
+// A list that can't be read whole is an error, never a shorter list.
+package hostaddrs
import (
"bufio"
@@ -18,33 +34,18 @@ import (
"amadan.net/oficina/equipo/internal/websource"
)
-// The instance's own addresses, for its inventory (instance_inventory.go).
-//
-// net.InterfaceAddrs asks the kernel over a netlink socket. CARLOS's
-// instance units allow only AF_INET, AF_INET6 and AF_UNIX sockets
-// (RestrictAddressFamilies=), so there it fails ("route ip+net:
-// netlinkrib: address family not supported by protocol") and the
-// inventory was never ready. The same addresses are then read from
-// procfs, as CARLOS reads its boxes' own (platform
-// internal/instancectl/localaddrs.go): IPv4 from fib_trie's LOCAL routes,
-// IPv6 from if_inet6. The directory is /proc/self/net, not /proc/net:
-// the units mount /proc with ProcSubset=pid, which hides the /proc/net
-// link and leaves the process's own directory. An instance shares the
-// box's network namespace, so these are the box's addresses.
-//
-// A list that can't be read whole is an error, never a shorter list.
-
-// procSelfNet is where the procfs sources are read.
-const procSelfNet = "/proc/self/net"
+// ProcSelfNet is where the procfs sources are read.
+const ProcSelfNet = "/proc/self/net"
-// instanceAddrs is what the inventory is about of the instance's
-// interface addresses: those a lookup could otherwise reach. Every other
-// address websource.PublicAddress refuses before the inventory is asked
-// (as Research's site inventory, internal/runner/thin/research.go), so
-// listing it would only ask an owner to confirm prefixes for addresses
-// nothing dials. Canonical, once each, sorted.
-func (s *Store) instanceAddrs() ([]netip.Addr, error) {
- all, err := s.interfaceAddrs()
+// Public is the host's interface addresses a request could otherwise
+// reach: those websource.PublicAddress accepts. Every other address the
+// guarded client refuses before it asks the inventory (as Research's site
+// inventory, internal/runner/thin/research.go), so listing it would only
+// ask an owner to confirm prefixes for addresses nothing dials.
+// Canonical, once each, sorted. netlink nil is net.InterfaceAddrs;
+// procNet "" is ProcSelfNet.
+func Public(netlink func() ([]net.Addr, error), procNet string) ([]netip.Addr, error) {
+ all, err := All(netlink, procNet)
if err != nil {
return nil, err
}
@@ -58,14 +59,13 @@ func (s *Store) instanceAddrs() ([]netip.Addr, error) {
return out, nil
}
-// interfaceAddrs lists every address on the instance's interfaces:
-// netlink, or procfs where netlink is refused.
-func (s *Store) interfaceAddrs() ([]netip.Addr, error) {
- list := s.ifaceAddrs
- if list == nil {
- list = net.InterfaceAddrs
+// All lists every address on the host's interfaces: netlink, or procfs
+// where netlink is refused. Both failing is both errors.
+func All(netlink func() ([]net.Addr, error), procNet string) ([]netip.Addr, error) {
+ if netlink == nil {
+ netlink = net.InterfaceAddrs
}
- raw, nlErr := list()
+ raw, nlErr := netlink()
if nlErr == nil {
var out []netip.Addr
for _, a := range raw {
@@ -79,20 +79,19 @@ func (s *Store) interfaceAddrs() ([]netip.Addr, error) {
}
return out, nil
}
- dir := s.procNet
- if dir == "" {
- dir = procSelfNet
+ if procNet == "" {
+ procNet = ProcSelfNet
}
- out, err := procNetAddrs(dir)
+ out, err := procfs(procNet)
if err != nil {
return nil, errors.Join(nlErr, err)
}
return out, nil
}
-// procNetAddrs reads dir's fib_trie and if_inet6. No if_inet6 is a
-// kernel without IPv6, so no IPv6 address.
-func procNetAddrs(dir string) ([]netip.Addr, error) {
+// procfs reads dir's fib_trie and if_inet6. No if_inet6 is a kernel
+// without IPv6, so no IPv6 address.
+func procfs(dir string) ([]netip.Addr, error) {
b, err := os.ReadFile(filepath.Join(dir, "fib_trie"))
if err != nil {
return nil, err
@@ -116,13 +115,15 @@ func procNetAddrs(dir string) ([]netip.Addr, error) {
}
// parseFibTrie reads fib_trie: a leaf line "|-- <addr>" is followed by
-// one line per route at it, "/<len> <scope> <type>". A LOCAL route is a
-// destination the box answers for itself; one for a single address is an
-// interface address. A LOCAL route for a range (the box answering for
-// every address in it) is refused unless it is loopback's: the inventory
-// holds addresses, and a range left out would be reachable. A file with
-// no LOCAL route at all is refused too: every kernel has 127.0.0.1, so it
-// isn't the file this parser knows.
+// one line per route at it, "/<len> <scope> <type>", with " tos=<n>"
+// after it when the route has a TOS (the kernel's fib_trie_seq_show). A
+// LOCAL route is a destination the box answers for itself; one for a
+// single address is an interface address. Refused: a LOCAL route with
+// anything else after its type; one for a range (the box answering for
+// every address in it) unless it is loopback's, since the inventory holds
+// addresses and a range left out would be reachable; and a file with no
+// LOCAL route at all, since every kernel has 127.0.0.1 and so it isn't
+// the file this parser knows.
func parseFibTrie(b []byte) ([]netip.Addr, error) {
var out []netip.Addr
var leaf netip.Addr
@@ -135,11 +136,11 @@ func parseFibTrie(b []byte) ([]netip.Addr, error) {
continue
}
f := strings.Fields(line)
- if len(f) < 3 || !strings.HasPrefix(f[0], "/") || f[len(f)-1] != "LOCAL" || !leaf.IsValid() {
+ if len(f) < 3 || !strings.HasPrefix(f[0], "/") || f[2] != "LOCAL" || !leaf.IsValid() {
continue
}
bits, err := strconv.Atoi(f[0][1:])
- if err != nil {
+ if err != nil || slices.ContainsFunc(f[3:], func(x string) bool { return !strings.HasPrefix(x, "tos=") }) {
return nil, fmt.Errorf("%q is not a route", line)
}
local = true
diff --git a/internal/websource/hostaddrs/hostaddrs_test.go b/internal/websource/hostaddrs/hostaddrs_test.go
new file mode 100644
index 00000000..8e89098c
--- /dev/null
+++ b/internal/websource/hostaddrs/hostaddrs_test.go
@@ -0,0 +1,174 @@
+package hostaddrs
+
+import (
+ "errors"
+ "io/fs"
+ "net"
+ "net/netip"
+ "os"
+ "path/filepath"
+ "slices"
+ "strings"
+ "syscall"
+ "testing"
+
+ "amadan.net/rastrillo/rastrillo/budget"
+)
+
+func TestMain(m *testing.M) { os.Exit(budget.Main(m)) }
+
+// refused is netlink as on CARLOS, whose instance units allow only
+// AF_INET, AF_INET6 and AF_UNIX sockets: equipo-staging's log.
+func refused() ([]net.Addr, error) {
+ return nil, &net.OpError{Op: "route", Net: "ip+net", Err: os.NewSyscallError("netlinkrib", syscall.EAFNOSUPPORT)}
+}
+
+// dir holds these fib_trie and if_inet6 files; a nil one is absent.
+func dir(t *testing.T, fibTrie, ifInet6 []string) string {
+ t.Helper()
+ d := t.TempDir()
+ for name, lines := range map[string][]string{"fib_trie": fibTrie, "if_inet6": ifInet6} {
+ if lines == nil {
+ continue
+ }
+ if err := os.WriteFile(filepath.Join(d, name), []byte(strings.Join(lines, "\n")+"\n"), 0o600); err != nil {
+ t.Fatal(err)
+ }
+ }
+ return d
+}
+
+// A box's /proc/net/fib_trie: loopback, a private address on its VPC and
+// a public one, in the main and local tables.
+var boxFibTrie = []string{
+ "Main:",
+ " +-- 0.0.0.0/0 3 0 5",
+ " |-- 0.0.0.0",
+ " /0 universe UNICAST",
+ " +-- 127.0.0.0/8 2 0 2",
+ " +-- 127.0.0.0/31 1 0 0",
+ " |-- 127.0.0.0",
+ " /8 host LOCAL",
+ " |-- 127.0.0.1",
+ " /32 host LOCAL",
+ " |-- 127.255.255.255",
+ " /32 link BROADCAST",
+ " +-- 172.31.0.0/16 2 0 2",
+ " |-- 172.31.0.0",
+ " /16 link UNICAST",
+ " |-- 172.31.5.9",
+ " /32 host LOCAL",
+ " |-- 172.31.255.255",
+ " /32 link BROADCAST",
+ " |-- 192.0.43.5",
+ " /32 host LOCAL",
+ "Local:",
+ " +-- 0.0.0.0/0 3 0 5",
+ " |-- 127.0.0.1",
+ " /32 host LOCAL",
+ " |-- 172.31.5.9",
+ " /32 host LOCAL",
+ " |-- 192.0.43.5",
+ " /32 host LOCAL",
+}
+
+// Its /proc/net/if_inet6: loopback, a public address and its link-local
+// one, and a tailnet address.
+var boxIfInet6 = []string{
+ "00000000000000000000000000000001 01 80 10 80 lo",
+ "2a0104f8000000000000000000000005 02 40 00 80 eth0",
+ "fe80000000000000020000fffe000005 02 40 20 80 eth0",
+ "fd7a115ca1e00000000000007537b43a 06 80 00 80 tailscale0",
+}
+
+func strs(addrs []netip.Addr) []string {
+ out := make([]string, len(addrs))
+ for i, a := range addrs {
+ out[i] = a.String()
+ }
+ return out
+}
+
+// Netlink refused: every address from procfs, then the public ones.
+func TestProcfsWithoutNetlink(t *testing.T) {
+ d := dir(t, boxFibTrie, boxIfInet6)
+ all, err := All(refused, d)
+ if err != nil {
+ t.Fatal(err)
+ }
+ for _, want := range []string{"127.0.0.1", "172.31.5.9", "192.0.43.5", "::1", "2a01:4f8::5", "fe80::200:ff:fe00:5", "fd7a:115c:a1e0::7537:b43a"} {
+ if !slices.Contains(strs(all), want) {
+ t.Errorf("All left out %s: %v", want, strs(all))
+ }
+ }
+ pub, err := Public(refused, d)
+ if err != nil {
+ t.Fatal(err)
+ }
+ if want := []string{"192.0.43.5", "2a01:4f8::5"}; !slices.Equal(strs(pub), want) {
+ t.Errorf("Public %v, want %v", strs(pub), want)
+ }
+}
+
+// Netlink working: its addresses, and procfs isn't read.
+func TestNetlinkFirst(t *testing.T) {
+ nl := func() ([]net.Addr, error) {
+ var out []net.Addr
+ for _, a := range []string{"10.0.0.5", "100.100.1.1", "169.254.169.254", "fd7a:115c:a1e0::1", "::ffff:192.0.43.5", "192.0.43.5", "192.0.32.7"} {
+ out = append(out, &net.IPNet{IP: net.ParseIP(a), Mask: net.CIDRMask(24, 32)})
+ }
+ return out, nil
+ }
+ pub, err := Public(nl, filepath.Join(t.TempDir(), "absent"))
+ if err != nil {
+ t.Fatal(err)
+ }
+ if want := []string{"192.0.32.7", "192.0.43.5"}; !slices.Equal(strs(pub), want) {
+ t.Errorf("Public %v, want %v", strs(pub), want)
+ }
+}
+
+// Neither source: unknown, never none, with both causes.
+func TestNeitherSource(t *testing.T) {
+ _, err := Public(refused, dir(t, nil, boxIfInet6))
+ if err == nil {
+ t.Fatal("listed with nothing to read")
+ }
+ if !errors.Is(err, syscall.EAFNOSUPPORT) || !errors.Is(err, fs.ErrNotExist) {
+ t.Errorf("the error leaves out a cause: %v", err)
+ }
+}
+
+// procfs that can't be trusted to list every address is an unknown list
+// too. A LOCAL route with a TOS is still LOCAL (Astra, fix-lookup-inventory
+// round 1, P2): the kernel prints " tos=<n>" after the type.
+func TestProcfsShapes(t *testing.T) {
+ with := func(lines ...string) []string { return append(slices.Clone(boxFibTrie), lines...) }
+ cases := []struct {
+ name string
+ fibTrie []string
+ ifInet6 []string
+ want []string // nil: refused
+ }{
+ {"local range", with(" |-- 192.0.44.0", " /24 host LOCAL"), boxIfInet6, nil},
+ {"local range with a TOS", with(" |-- 192.0.44.0", " /24 host LOCAL tos=16"), boxIfInet6, nil},
+ {"local address with a TOS", with(" |-- 192.0.45.7", " /32 host LOCAL tos=16"), nil, []string{"192.0.43.5", "192.0.45.7"}},
+ {"unknown field after LOCAL", with(" |-- 192.0.45.7", " /32 host LOCAL metric=3"), nil, nil},
+ {"no local route", []string{"Main:", " +-- 0.0.0.0/0 3 0 5", " |-- 0.0.0.0", " /0 universe UNICAST"}, boxIfInet6, nil},
+ {"bad if_inet6", boxFibTrie, []string{"not an address 01 80 10 80 lo"}, nil},
+ {"no IPv6", boxFibTrie, nil, []string{"192.0.43.5"}},
+ }
+ for _, tc := range cases {
+ t.Run(tc.name, func(t *testing.T) {
+ got, err := Public(refused, dir(t, tc.fibTrie, tc.ifInet6))
+ switch {
+ case tc.want == nil && err == nil:
+ t.Fatalf("listed %v", strs(got))
+ case tc.want != nil && err != nil:
+ t.Fatal(err)
+ case tc.want != nil && !slices.Equal(strs(got), tc.want):
+ t.Errorf("Public %v, want %v", strs(got), tc.want)
+ }
+ })
+ }
+}