oficina / equipo Public

Refuse native sessions at pairing approval; require native inputs

Astra's review: a 7-day Oficina ID session could approve a paired device
and mint a 30-day credential, from the API or the browser form. Both now
refuse it. The generator restores required public_key and label, and
assertion and verifier, which the handlers already insist on.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 29af431b2a3abae468b64f8e5a59c8a69891909e parent 925bc74
9 files changed, +180 −3
  • .rastrillo/budgets.txt +1 −1
  • docs/api/equipo-v1.openapi.json +8 −0
  • docs/superpowers/plans/2026-11-20-native-id-server-evidence.md +45 −0
  • internal/equipo/personapi/device_browser.go +1 −1
  • internal/equipo/personapi/devices.go +5 −0
  • internal/equipo/personapi/native_device_test.go +33 −0
  • internal/plan3test/person_api_native_id_test.go +35 −0
  • internal/wire/wireschema/wireschema.go +16 −0
  • internal/wire/wireschema/wireschema_test.go +36 −1

CI passed — run details

CI log
=== prepare ===
ci-box: machine: aarch64, 32 CPUs, 62 GiB memory, kernel 7.0.0-1017-aws
ci-box: python 3.12.3; Docker version 29.1.3, build 29.1.3-0ubuntu3~24.04.2
ci-box: user namespaces allowed: 233151
ci-box: cgroup: cgroup2fs
ci-box: disk /home/ci/work/repos/oficina__equipo/wt/oficina-id__native-exchange: 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 1.5s
ci-box: codex: fetched and verified in 3.5s
ci-box: codex-code-mode-host: fetched and verified in 1.4s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.4s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: image pulled in 9.9s
ci-box: pi: installed and verified in 7.1s
ci-box: opencode: installed and verified in 2.2s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 9.8s
ci-box: clone deepened in 3.1s
ci-box: file times set from content: 2773 files, 176 directories
ci-box: ready in 16.9s
=== 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.249s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  4.1s
+ go list -export -test -tags testbuild -f  ./...
  3.8s
+ go list -export -test -tags browser,testbuild -f  ./internal/equipo ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
  3.1s
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -version
staticcheck 2026.1 (v0.7.0)
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 -version
Go: go1.26.11
Scanner: govulncheck@v1.8.0
DB: https://vuln.go.dev
DB updated: 2026-11-11 02:51:11 +0000 UTC

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

receipt: test step 1m28.123s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m26.19s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m26.19s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 61.21, cpu waiting 36.54%, memory waiting 0.00%, io waiting 0.94%
--- 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 1m31.404s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m29.904s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m29.9s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 60.16, cpu waiting 36.44%, memory waiting 0.00%, io waiting 0.88%
--- 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 1m32.198s 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 1m30.451s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m19.13s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 6.17s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 5.15s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 60.16, cpu waiting 36.44%, memory waiting 0.00%, io waiting 0.88%
--- 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 1m43.592s 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 1m41.709s amadan.net/oficina/equipo/internal/headless
receipt: slow test 44.38s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 37.17s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 10.59s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
receipt: slow test 9.56s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
machine: 32 CPUs, load 51.74, cpu waiting 32.08%, memory waiting 0.00%, io waiting 0.72%
--- shard 4 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-guards: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadlessCopyRotation$|^TestHeadlessPolicyGuards$|^TestHeadlessRunnerKillLeavesNoCopies$|^TestHeadlessNewHouseRuleStartsFresh$|^TestHeadless$/^3_engineering$|^TestHeadless$/^3_step_cancel$|^TestHeadless$/^3_step_contained$|^TestHeadless$/^3_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless

receipt: test step 1m45.125s 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 1m43.347s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m5.79s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 12.19s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 10.56s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 8.86s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 5.95s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 51.74, cpu waiting 31.10%, memory waiting 0.00%, io waiting 0.70%
--- shard 5 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-rest: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^TestHeadless$/^4c_rebase$|^TestHeadless$/^4b_ask$|^TestHeadless$/^4c_checks_card$|^TestHeadless$/^4_step_crash$|^TestHeadless$/^4_review$|^TestHeadless$/^2b_access$|^TestHeadless$/^runner_crash$|^TestHeadless$/^2b_first_message$|^TestHeadless$/^4_checks_honest$|^TestHeadless$/^7_stream_resume$|^TestHeadless$/^2b_notebook$|^TestHeadless$/^2b_move_in$|^TestHeadless$/^2b_desk_failure$|^TestHeadless$/^cancel$|^TestHeadlessConnections$|^TestHeadlessTokenPasteEndToEnd$|^TestHeadlessTokenConnection$|^TestMacWorker$|^TestHeadlessAttachments$|^TestHeadlessPrewarm$|^TestHeadless$/^1_first_token$|^TestHeadless$/^6_quick_messages$|^TestHeadless$/^8_instance_restart$|^TestHeadless$/^3_runner_offline$|^TestHeadlessCopyRotation$|^TestHeadlessPolicyGuards$|^TestHeadlessRunnerKillLeavesNoCopies$|^TestHeadlessNewHouseRuleStartsFresh$|^TestHeadless$/^3_engineering$|^TestHeadless$/^3_step_cancel$|^TestHeadless$/^3_step_contained$|^TestHeadless$/^3_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless

receipt: test step 3m14.845s 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 3m12.751s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m51.46s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 23.97s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 11.46s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 8.11s amadan.net/oficina/equipo/internal/headless TestHeadlessClaudeSignIn
receipt: slow test 7.34s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
machine: 32 CPUs, load 14.26, cpu waiting 7.04%, memory waiting 0.00%, io waiting 0.15%
--- 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 2m4.95s 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 2m2.748s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 8.85s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.72s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 4.7s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 3.61s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 2.47s amadan.net/oficina/equipo/internal/thintest TestResearchDoneFallsBack
machine: 32 CPUs, load 39.06, cpu waiting 22.43%, memory waiting 0.00%, io waiting 0.50%
--- 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 1m24.604s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m22.716s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.21s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 5.04s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.41s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 2.37s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotNow
receipt: slow test 2.36s amadan.net/oficina/equipo/internal/thintest TestContractPreview
machine: 32 CPUs, load 61.21, cpu waiting 36.33%, memory waiting 0.00%, io waiting 0.97%
--- shard 8 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-thin: ./internal/runner/thin
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./internal/runner/thin
cache miss: amadan.net/oficina/equipo/internal/runner/thin: its inputs changed
budget note: internal/runner/thin took 4m37.421s, over the 45s its record on line 44 allows; reported only, timing fails on CI

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

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

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

receipt: test step 36.074s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 35.121s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.12s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.47s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.13s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.64s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.62s amadan.net/oficina/equipo/internal/runner TestCoordinatorTransientRefusalKeepsServing
machine: 32 CPUs, load 32.17, cpu waiting 20.38%, memory waiting 0.00%, io waiting 2.18%
--- shard 12 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-a started 30s late; cpu waiting 36.0%, load 23.57
test lane equipotest-a: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test[A-D]|^TestQ' ./internal/equipotest

receipt: test step 1m6.044s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m4.322s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 26.83s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 26.76s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 24.64s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 22.07s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 21.96s amadan.net/oficina/equipo/internal/equipotest TestAuthorityUsesLiveRoster
machine: 32 CPUs, load 58.54, cpu waiting 34.92%, memory waiting 0.00%, io waiting 0.80%
--- shard 13 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-e started 30s late; cpu waiting 35.8%, load 23.57
test lane equipotest-e: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test[E-P]' ./internal/equipotest

receipt: test step 1m15.083s 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.149s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 19.05s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
receipt: slow test 19.02s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
receipt: slow test 19.02s amadan.net/oficina/equipo/internal/equipotest TestProjectsSharedAndGrouped
receipt: slow test 18.99s amadan.net/oficina/equipo/internal/equipotest TestProjectBindingUniqueness
receipt: slow test 18.98s amadan.net/oficina/equipo/internal/equipotest TestProjectsReopen
machine: 32 CPUs, load 51.74, cpu waiting 31.10%, memory waiting 0.00%, io waiting 0.70%
--- shard 14 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-r started 30s late; cpu waiting 35.8%, load 23.57
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 1m12.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 1m7.253s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 14.85s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 13.04s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 10.17s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 10.12s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 7.07s amadan.net/oficina/equipo/internal/equipotest TestRosterBootstrapOnce
machine: 32 CPUs, load 51.74, cpu waiting 32.08%, memory waiting 0.00%, io waiting 0.72%
--- shard 15 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-rest started 30s late; cpu waiting 36.0%, load 23.57
test lane equipotest-rest: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^Test[A-D]|^TestQ|^Test[E-P]|^TestR' ./internal/equipotest

receipt: test step 1m7.026s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m5.615s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 24.09s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 23.76s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 23.7s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 21.98s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsConcurrentRevision
receipt: slow test 21.95s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsRollbackAndUnavailable
machine: 32 CPUs, load 58.54, cpu waiting 34.92%, memory waiting 0.00%, io waiting 0.80%
--- shard 16 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: plan3test started 30s late; cpu waiting 35.8%, load 23.57
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 53.401s 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 51.345s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.58s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.51s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.7s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.5s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.23s amadan.net/oficina/equipo/internal/plan3test TestPlanMigrationUpgrade
machine: 32 CPUs, load 61.21, cpu waiting 36.27%, memory waiting 0.00%, io waiting 1.01%
--- shard 17 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: rest started 30s late; cpu waiting 36.0%, load 23.57
test lane rest: ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/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/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/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/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
cache miss: amadan.net/oficina/equipo/internal/testci: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/webread: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/copydesk: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/opencode: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/forge: its inputs changed
cache miss: amadan.net/oficina/equipo/cmd/equipo-runner: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/equipo/team: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runnerproto: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/workspace: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/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 23.328s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/chat took 15.028s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/idtest took 41.156s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/release took 19.39s, 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 48.685s, over the 15s its record on line 40 allows; reported only, timing fails on CI

receipt: test step 2m31.238s against a 60s target (the gate's other steps are not in this figure)
receipt: 21 packages ran, 40 cached, 18 without tests, 0 failed
receipt: slow package 1m6.171s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 52.629s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 49.15s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 48.685s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow package 41.156s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 25.76s amadan.net/oficina/equipo/internal/runner/provider/opencode TestOpenCodeAcceptanceHostileRepository
receipt: slow test 21.17s amadan.net/oficina/equipo/internal/runner/containment TestEngineeringOfflineGo
receipt: slow test 16.32s amadan.net/oficina/equipo/cmd/equipo-runner TestReleaseRunnerHasNoFakeWorker
receipt: slow test 12.95s amadan.net/oficina/equipo/internal/idtest TestIDCallbackGuardAndPendingNonce
receipt: slow test 11.79s amadan.net/oficina/equipo/internal/runner/provider/opencode TestOpenCodeP1OnlyOpenCodeReachable
machine: 32 CPUs, load 17.94, cpu waiting 8.89%, memory waiting 0.00%, io waiting 0.19%
--- 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
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserChat
=== RUN   TestBrowserChat
time=2026-11-20T15:04:49.038Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-20T15:04:49.038Z level=INFO msg="startup phase done" phase=state_lock took=81µs
time=2026-11-20T15:04:49.038Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-20T15:04:49.038Z level=INFO msg="startup phase done" phase=claim_roots took=84µs
time=2026-11-20T15:04:49.038Z level=INFO msg="startup phase" phase=sweep
time=2026-11-20T15:04:49.074Z level=INFO msg="startup phase done" phase=sweep took=35.798ms
time=2026-11-20T15:04:49.074Z level=INFO msg="startup phase" phase=credentials
time=2026-11-20T15:04:49.075Z level=INFO msg="startup phase done" phase=credentials took=180µs
time=2026-11-20T15:04:49.075Z level=INFO msg="startup phase" phase=open_state
time=2026-11-20T15:04:49.132Z level=INFO msg="startup phase done" phase=open_state took=57.499ms
time=2026-11-20T15:04:49.133Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-20T15:04:49.134Z level=INFO msg=connecting host=127.0.0.1:44441 protocol=28
time=2026-11-20T15:04:49.136Z level=INFO msg=connected host=127.0.0.1:44441 took=2.661ms
time=2026-11-20T15:04:49.137Z level=INFO msg="capabilities gathering"
time=2026-11-20T15:04:49.138Z level=INFO msg="capabilities gathered" took=698µs tags=linux,claude,go
time=2026-11-20T15:04:49.138Z level=INFO msg="hello sent" protocol=28
time=2026-11-20T15:04:49.147Z level=INFO msg=welcome protocol=28 role=primary generation=1
time=2026-11-20T15:04:51.009Z level=INFO msg="connection checked" connection=claude-1 state=healthy
    browser_test.go:46: waiting for [...document.querySelectorAll('[equipo-message="incoming"] [equipo-markdown]:not([data-stream-text])')].some(e=>e.textContent.includes('fake coordinator')): context deadline exceeded (last evaluation: context deadline exceeded)
--- FAIL: TestBrowserChat (6.07s)

--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
=== RUN   TestBrowserChatSendStaysOnPage
time=2026-11-20T15:04:55.127Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-20T15:04:55.127Z level=INFO msg="startup phase done" phase=state_lock took=210µs
time=2026-11-20T15:04:55.127Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-20T15:04:55.127Z level=INFO msg="startup phase done" phase=claim_roots took=225µs
time=2026-11-20T15:04:55.127Z level=INFO msg="startup phase" phase=sweep
time=2026-11-20T15:04:55.160Z level=INFO msg="startup phase done" phase=sweep took=33.087ms
time=2026-11-20T15:04:55.161Z level=INFO msg="startup phase" phase=credentials
time=2026-11-20T15:04:55.161Z level=INFO msg="startup phase done" phase=credentials took=118µs
time=2026-11-20T15:04:55.161Z level=INFO msg="startup phase" phase=open_state
time=2026-11-20T15:04:55.208Z level=INFO msg="startup phase done" phase=open_state took=47.192ms
time=2026-11-20T15:04:55.209Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-20T15:04:55.210Z level=INFO msg=connecting host=127.0.0.1:39431 protocol=28
time=2026-11-20T15:04:55.213Z level=INFO msg=connected host=127.0.0.1:39431 took=1.046ms
time=2026-11-20T15:04:55.213Z level=INFO msg="capabilities gathering"
time=2026-11-20T15:04:55.213Z level=INFO msg="capabilities gathered" took=476µs tags=linux,claude,go
time=2026-11-20T15:04:55.216Z level=INFO msg="hello sent" protocol=28
time=2026-11-20T15:04:55.248Z level=INFO msg=welcome protocol=28 role=primary generation=1
time=2026-11-20T15:04:57.528Z level=INFO msg="connection checked" connection=claude-1 state=healthy
    browser_test.go:108: waiting for [...document.querySelectorAll('[equipo-message="incoming"] [equipo-markdown]:not([data-stream-text])')].some(e=>e.textContent.includes('fake coordinator')): context deadline exceeded (last evaluation: <nil>)
--- FAIL: TestBrowserChatSendStaysOnPage (6.37s)

--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
=== RUN   TestBrowserDraftIsTheMessage
time=2026-11-20T15:05:01.504Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-20T15:05:01.504Z level=INFO msg="startup phase done" phase=state_lock took=68µs
time=2026-11-20T15:05:01.504Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-20T15:05:01.505Z level=INFO msg="startup phase done" phase=claim_roots took=114µs
time=2026-11-20T15:05:01.505Z level=INFO msg="startup phase" phase=sweep
time=2026-11-20T15:05:01.550Z level=INFO msg="startup phase done" phase=sweep took=45.572ms
time=2026-11-20T15:05:01.550Z level=INFO msg="startup phase" phase=credentials
time=2026-11-20T15:05:01.550Z level=INFO msg="startup phase done" phase=credentials took=107µs
time=2026-11-20T15:05:01.550Z level=INFO msg="startup phase" phase=open_state
time=2026-11-20T15:05:01.599Z level=INFO msg="startup phase done" phase=open_state took=48.568ms
time=2026-11-20T15:05:01.599Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-20T15:05:01.600Z level=INFO msg=connecting host=127.0.0.1:35081 protocol=28
time=2026-11-20T15:05:01.603Z level=INFO msg=connected host=127.0.0.1:35081 took=2.95ms
time=2026-11-20T15:05:01.603Z level=INFO msg="capabilities gathering"
time=2026-11-20T15:05:01.604Z level=INFO msg="capabilities gathered" took=779µs tags=linux,claude,go
time=2026-11-20T15:05:01.608Z level=INFO msg="hello sent" protocol=28
time=2026-11-20T15:05:01.610Z level=INFO msg=welcome protocol=28 role=primary generation=1
time=2026-11-20T15:05:03.668Z level=INFO msg="connection checked" connection=claude-1 state=healthy
    browser_thinking_test.go:106: waiting for !!window.__m: context deadline exceeded (last evaluation: context deadline exceeded)
--- FAIL: TestBrowserDraftIsTheMessage (8.12s)

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


receipt: test step 49.877s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 0 cached, 0 without tests, 1 failed
receipt: slow package 48.5s amadan.net/oficina/equipo/internal/headless
receipt: slow test 15.41s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 8.12s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 7.88s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 6.37s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
receipt: slow test 6.07s amadan.net/oficina/equipo/internal/headless TestBrowserChat
rastrillo: budget test: go test failed
exit status 1
+ go test -tags browser,testbuild -timeout 15m -run '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$' -v -run '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserDraftIsTheMessage$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserChat browser-headless-chat 29af431b2a3abae468b64f8e5a59c8a69891909e 6.07s 51.71
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
##############################################################################
FLAKE ./internal/headless:TestBrowserChatSendStaysOnPage browser-headless-chat 29af431b2a3abae468b64f8e5a59c8a69891909e 6.37s 51.71
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
##############################################################################
FLAKE ./internal/headless:TestBrowserDraftIsTheMessage browser-headless-chat 29af431b2a3abae468b64f8e5a59c8a69891909e 8.12s 51.71
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 51.74, cpu waiting 30.11%, memory waiting 0.00%, io waiting 0.67%
--- shard 19 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-work: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$' ./internal/headless
rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
=== RUN   TestBrowserRailFollowsWork
time=2026-11-20T15:04:45.799Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-20T15:04:45.799Z level=INFO msg="startup phase done" phase=state_lock took=57µs
time=2026-11-20T15:04:45.799Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-20T15:04:45.799Z level=INFO msg="startup phase done" phase=claim_roots took=116µs
time=2026-11-20T15:04:45.799Z level=INFO msg="startup phase" phase=sweep
time=2026-11-20T15:04:45.828Z level=INFO msg="startup phase done" phase=sweep took=29.252ms
time=2026-11-20T15:04:45.828Z level=INFO msg="startup phase" phase=credentials
time=2026-11-20T15:04:45.828Z level=INFO msg="startup phase done" phase=credentials took=105µs
time=2026-11-20T15:04:45.828Z level=INFO msg="startup phase" phase=open_state
time=2026-11-20T15:04:45.868Z level=INFO msg="startup phase done" phase=open_state took=40.037ms
time=2026-11-20T15:04:45.869Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-20T15:04:45.870Z level=INFO msg=connecting host=127.0.0.1:38119 protocol=28
time=2026-11-20T15:04:45.874Z level=INFO msg=connected host=127.0.0.1:38119 took=3.638ms
time=2026-11-20T15:04:45.874Z level=INFO msg="capabilities gathering"
time=2026-11-20T15:04:45.876Z level=INFO msg="capabilities gathered" took=1.372ms tags=linux,claude,go
time=2026-11-20T15:04:45.876Z level=INFO msg="hello sent" protocol=28
time=2026-11-20T15:04:45.882Z level=INFO msg=welcome protocol=28 role=primary generation=1
time=2026-11-20T15:04:47.223Z level=INFO msg="connection checked" connection=claude-1 state=healthy
time=2026-11-20T15:04:56.079Z level=INFO msg="kept sessions" kept=1 bytes=2770 expired=0
time=2026-11-20T15:05:00.785Z level=INFO msg="kept sessions" kept=2 bytes=4922 expired=0
time=2026-11-20T15:05:01.725Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-20T15:05:01.725Z level=INFO msg="startup phase done" phase=state_lock took=135µs
time=2026-11-20T15:05:01.726Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-20T15:05:01.726Z level=INFO msg="startup phase done" phase=claim_roots took=138µs
time=2026-11-20T15:05:01.726Z level=INFO msg="startup phase" phase=sweep
time=2026-11-20T15:05:01.762Z level=INFO msg="startup phase done" phase=sweep took=35.443ms
time=2026-11-20T15:05:01.762Z level=INFO msg="startup phase" phase=credentials
time=2026-11-20T15:05:01.762Z level=INFO msg="startup phase done" phase=credentials took=198µs
time=2026-11-20T15:05:01.762Z level=INFO msg="startup phase" phase=open_state
time=2026-11-20T15:05:01.806Z level=INFO msg="startup phase done" phase=open_state took=43.249ms
time=2026-11-20T15:05:01.806Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-20T15:05:01.807Z level=INFO msg=connecting host=127.0.0.1:41547 protocol=28
time=2026-11-20T15:05:01.809Z level=INFO msg=connected host=127.0.0.1:41547 took=2.018ms
time=2026-11-20T15:05:01.810Z level=INFO msg="capabilities gathering"
time=2026-11-20T15:05:01.811Z level=INFO msg="capabilities gathered" took=733µs tags=linux,claude,go
time=2026-11-20T15:05:01.812Z level=INFO msg="hello sent" protocol=28
time=2026-11-20T15:05:01.819Z level=INFO msg=welcome protocol=28 role=primary generation=1
time=2026-11-20T15:05:04.012Z level=INFO msg="connection checked" connection=claude-1 state=healthy
    browser_review_test.go:57: waiting for document.querySelector('#rail [data-specialist="engineering"]')?.dataset.state==='working' && document.querySelector('#rail [data-specialist="engineering"]').querySelector('[equipo-nav-task]')?.textContent==='Slow sidebar change' && document.querySelector('#nav-tasks [data-count]')?.textContent==='1': context deadline exceeded (last evaluation: context deadline exceeded)
--- FAIL: TestBrowserRailFollowsWork (22.23s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m35.587s
FAIL	amadan.net/oficina/equipo/internal/headless	95.895s


receipt: test step 1m37.063s 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 1m35.587s amadan.net/oficina/equipo/internal/headless
receipt: slow test 26.02s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 22.23s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 14.77s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 11.45s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
receipt: slow test 11.11s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
exit status 1
+ go test -tags browser,testbuild -timeout 15m -run '^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$' -v -run '^TestBrowserRailFollowsWork$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserRailFollowsWork browser-headless-work 29af431b2a3abae468b64f8e5a59c8a69891909e 22.23s 58.54
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 42.11, cpu waiting 23.98%, memory waiting 0.00%, io waiting 0.53%
--- shard 20 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-connections: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless

receipt: test step 1m46.015s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m44.426s amadan.net/oficina/equipo/internal/headless
receipt: slow test 16.65s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 13.78s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 13.16s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 10.83s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
receipt: slow test 10.59s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsOpenCodeGoLimitRequired
machine: 32 CPUs, load 51.74, cpu waiting 30.11%, memory waiting 0.00%, io waiting 0.67%
--- shard 21 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-rest: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless
rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserCopyContinue
=== RUN   TestBrowserCopyContinue
time=2026-11-20T15:05:00.053Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-20T15:05:00.053Z level=INFO msg="startup phase done" phase=state_lock took=284µs
time=2026-11-20T15:05:00.053Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-20T15:05:00.054Z level=INFO msg="startup phase done" phase=claim_roots took=278µs
time=2026-11-20T15:05:00.054Z level=INFO msg="startup phase" phase=sweep
time=2026-11-20T15:05:00.105Z level=INFO msg="startup phase done" phase=sweep took=51.439ms
time=2026-11-20T15:05:00.106Z level=INFO msg="startup phase" phase=credentials
time=2026-11-20T15:05:00.106Z level=INFO msg="startup phase done" phase=credentials took=151µs
time=2026-11-20T15:05:00.106Z level=INFO msg="startup phase" phase=open_state
time=2026-11-20T15:05:00.165Z level=INFO msg="startup phase done" phase=open_state took=58.901ms
time=2026-11-20T15:05:00.166Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-20T15:05:00.167Z level=INFO msg=connecting host=127.0.0.1:34357 protocol=28
time=2026-11-20T15:05:00.170Z level=INFO msg=connected host=127.0.0.1:34357 took=1.182ms
time=2026-11-20T15:05:00.170Z level=INFO msg="capabilities gathering"
time=2026-11-20T15:05:00.171Z level=INFO msg="capabilities gathered" took=828µs tags=linux,claude,go
time=2026-11-20T15:05:00.176Z level=INFO msg="hello sent" protocol=28
time=2026-11-20T15:05:00.177Z level=INFO msg=welcome protocol=28 role=primary generation=1
    browser_copy_test.go:90: waiting for !document.querySelector('[data-copy-continue]'): context deadline exceeded (last evaluation: context deadline exceeded)
--- FAIL: TestBrowserCopyContinue (6.44s)

--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserEmptyExplore
=== RUN   TestBrowserEmptyExplore
time=2026-11-20T15:05:39.598Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-20T15:05:39.598Z level=INFO msg="startup phase done" phase=state_lock took=141µs
time=2026-11-20T15:05:39.598Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-20T15:05:39.598Z level=INFO msg="startup phase done" phase=claim_roots took=94µs
time=2026-11-20T15:05:39.598Z level=INFO msg="startup phase" phase=sweep
time=2026-11-20T15:05:39.626Z level=INFO msg="startup phase done" phase=sweep took=28.546ms
time=2026-11-20T15:05:39.627Z level=INFO msg="startup phase" phase=credentials
time=2026-11-20T15:05:39.627Z level=INFO msg="startup phase done" phase=credentials took=187µs
time=2026-11-20T15:05:39.627Z level=INFO msg="startup phase" phase=open_state
time=2026-11-20T15:05:39.668Z level=INFO msg="startup phase done" phase=open_state took=41.142ms
time=2026-11-20T15:05:39.668Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-20T15:05:39.670Z level=INFO msg=connecting host=127.0.0.1:45585 protocol=28
time=2026-11-20T15:05:39.671Z level=INFO msg=connected host=127.0.0.1:45585 took=924µs
time=2026-11-20T15:05:39.671Z level=INFO msg="capabilities gathering"
time=2026-11-20T15:05:39.671Z level=INFO msg="capabilities gathered" took=427µs tags=linux,claude,go
time=2026-11-20T15:05:39.672Z level=INFO msg="hello sent" protocol=28
time=2026-11-20T15:05:39.678Z level=INFO msg=welcome protocol=28 role=primary generation=1
time=2026-11-20T15:05:40.811Z level=INFO msg="connection checked" connection=claude-1 state=healthy
    browser_receipts_test.go:169: waiting for [...document.querySelectorAll('[equipo-markdown]:not([data-stream-text])')].some(e=>e.textContent.includes("I'm your coordinator")): context deadline exceeded (last evaluation: context deadline exceeded)
time=2026-11-20T15:05:45.044Z level=WARN msg="tool effect" err=*fmt.wrapError
--- FAIL: TestBrowserEmptyExplore (5.84s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m38.089s
FAIL	amadan.net/oficina/equipo/internal/headless	98.404s


receipt: test step 1m39.638s 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 1m38.089s amadan.net/oficina/equipo/internal/headless
receipt: slow test 15.19s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 12.71s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 12.02s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 10.66s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 8.25s amadan.net/oficina/equipo/internal/headless TestBrowserRefreshRace
exit status 1
+ go test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' -v -run '^TestBrowserCopyContinue$|^TestBrowserEmptyExplore$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserCopyContinue browser-headless-rest 29af431b2a3abae468b64f8e5a59c8a69891909e 6.44s 55.37
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
##############################################################################
FLAKE ./internal/headless:TestBrowserEmptyExplore browser-headless-rest 29af431b2a3abae468b64f8e5a59c8a69891909e 5.84s 55.37
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 48.08, cpu waiting 28.21%, memory waiting 0.00%, io waiting 0.63%
--- shard 22 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-rest: ./internal/equipo
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserPreviewBlocksNavigation)$' ./internal/equipo

receipt: test step 2.047s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 558ms amadan.net/oficina/equipo/internal/equipo
receipt: slow test 560ms amadan.net/oficina/equipo/internal/equipo TestBrowserPreviewBlocksNavigation
browser lane browser-rest: ./internal/idtest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserOficinaIDDoor)$' ./internal/idtest

receipt: test step 2.987s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1.647s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 1.65s 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.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 1.932s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 1.93s amadan.net/oficina/equipo/internal/plan3test TestTeamsHierarchyBrowser
browser lane browser-rest: ./internal/thintest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAccessEmojiByline|TestBrowserAccessFinalOutcomes|TestBrowserAccessRequest|TestBrowserAccessReview|TestBrowserActivitySubjects|TestBrowserAutonomySettings|TestBrowserCoordinatorQueue|TestBrowserEmptyConversation|TestBrowserHousekeeping|TestBrowserInnerGallery|TestBrowserInnerScreens|TestBrowserInstantThinking|TestBrowserInstantThinkingQueued|TestBrowserMachines|TestBrowserPhoneIndex|TestBrowserPlacementQuestionAndPending|TestBrowserProjectPlacement|TestBrowserProjectsList|TestBrowserReportActionFeedback|TestBrowserReportNextSteps|TestBrowserReportThread|TestBrowserRollup|TestBrowserRosterAlignment|TestBrowserRosterDecisionStates|TestBrowserRosterQuietDay|TestBrowserRosterReports|TestBrowserRosterSetAside|TestBrowserRosterSubchat|TestBrowserRosterThinking|TestBrowserRosterVisual|TestBrowserSettingsHousekeepingGroups|TestBrowserSettingsMenu|TestBrowserSettingsRail|TestBrowserSettingsSaveBar|TestBrowserSettingsShots|TestBrowserSettingsStayOnPage|TestBrowserSettingsTeams|TestBrowserShipsButtons|TestBrowserSpecialistRows|TestBrowserSpendFollowsAnswers|TestBrowserTaskRows|TestBrowserTeamPanel|TestBrowserThinkingCycles|TestBrowserThinkingLinesClear|TestBrowserThinkingSteady|TestBrowserThinkingWords|TestBrowserTokenRowEmail|TestBrowserTrackPulse|TestBrowserTrackStarCentre)$' ./internal/thintest

receipt: test step 3m21.092s 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 3m19.571s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 17.56s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.33s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12.03s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.62s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 8s amadan.net/oficina/equipo/internal/thintest TestBrowserInnerScreens
machine: 32 CPUs, load 11.18, cpu waiting 5.39%, memory waiting 0.00%, io waiting 0.11%
--- shard 23 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
shard 23: make test-quarantine
python3 scripts/ci-test.py quarantine
quarantine: 12 tests from scripts/ci-quarantine.txt; a failure is retried once, and a pass on the retry is reported as a flake
+ go test -tags testbuild -timeout 15m -v -run '^TestHeadlessConnections$/^A5_cancel_and_sign_out$|^TestHeadlessConnections$/^C4_claude_sign_in$|^TestHeadlessConnections$/^C5_engineering_failover$|^TestHeadlessConnections$/^C5_engineering_to_codex$|^TestHeadlessConnections$/^C5_engineering_waits$' ./internal/headless   (58s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 5.43s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.47s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 10.45s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 11.20s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 27.90s
+ 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 19.52s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 13.90s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 12.14s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 17.61s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (24s)
ok ./internal/headless TestMixedVersions 21.92s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (2s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.82s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin   (1s)
ok ./internal/runner/thin TestRunnerCancelAndSupersede 0.06s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 61.48, cpu waiting 35.01%, memory waiting 0.00%, io waiting 1.36%
--- shard 24 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
shard 24: make runner-host
python3 scripts/runner-prerequisites.py
CGO_ENABLED=0 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run 'TestDirect|TestProvider|TestCheckSandbox' -count=1 ./internal/runner/provider/... ./internal/runner/checks
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run 'TestDirect|TestProvider|TestCheckSandbox' -count=1 ./internal/runner/provider/... ./internal/runner/checks

receipt: test step 11.081s against a 60s target (the gate's other steps are not in this figure)
receipt: 4 packages ran, 0 cached, 3 without tests, 0 failed
receipt: slow package 7.569s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 199ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 81ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 1ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow package 0s amadan.net/oficina/equipo/internal/runner/provider/gotoolchain
receipt: slow test 5.33s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.76s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 380ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 200ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 80ms amadan.net/oficina/equipo/internal/runner/provider/codex TestDirectJournalAdapterBarrier
CGO_ENABLED=0 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run '^TestNamespace' -count=1 ./internal/runner/containment
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run '^TestNamespace' -count=1 ./internal/runner/containment

receipt: test step 3.335s 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.933s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 320ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 180ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceKillsDetachedChildren
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
machine: 32 CPUs, load 11.66, cpu waiting 7.65%, memory waiting 0.00%, io waiting 3.15%
--- 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.0%, load 23.57
shard 25: make runner-dead-references lanes-check build vet fmt-check budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 2487 text files, 2846 matches, 0 failures
python3 scripts/ci-test.py check
lanes: 18 lanes and 5 browser lanes run every test once; 20-check@29
CGO_ENABLED=0 go build ./...
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o /dev/null ./cmd/equipo-runner
go vet ./...
go vet -tags testbuild ./internal/runner/thin ./internal/headless
GOOS=darwin GOARCH=arm64 go vet ./cmd/equipo-runner/... ./internal/runner/... ./internal/wire/... ./internal/release/...
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget size
budget size: 88 directories within budget
CGO_ENABLED=0 go test ./internal/equipo -run '^TestMigrationModels$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipo	2.490s
machine: 32 CPUs, load 61.48, cpu waiting 35.27%, memory waiting 0.00%, io waiting 1.32%
--- 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.0%, load 23.57
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 43.68, cpu waiting 26.10%, memory waiting 0.00%, io waiting 1.91%
--- 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.0%, load 23.57
shard 27: make govulncheck
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 ./...
=== Symbol Results ===

No vulnerabilities found.

Your code is affected by 0 vulnerabilities.
This scan also found 0 vulnerabilities in packages you import and 5
vulnerabilities in modules you require, but your code doesn't appear to call
these vulnerabilities.
Use '-show verbose' for more details.
machine: 32 CPUs, load 37.12, cpu waiting 20.38%, memory waiting 0.00%, io waiting 2.18%
--- shard 28 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: gitleaks started 30s late; cpu waiting 35.8%, load 23.57
shard 28: make gitleaks
3:04PM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
3:05PM INF 1057 commits scanned.
3:05PM INF scanned ~60438702 bytes (60.44 MB) in 20.9s
3:05PM INF no leaks found
machine: 32 CPUs, load 51.71, cpu waiting 30.21%, memory waiting 0.00%, io waiting 1.72%
=== 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.098ms, worst 1.139ms, budget 150ms
perf: GET /api/runner/protocol: median 74µs, worst 96µs, budget 150ms
perf: GET /api/v1/account-setups/{id}: median 598µs, worst 633µs, budget 150ms
perf: GET /api/v1/accounts: median 430µs, worst 460µs, budget 150ms
perf: GET /api/v1/auth/devices: median 468µs, worst 505µs, budget 150ms
perf: GET /api/v1/budgets: median 518µs, worst 551µs, budget 150ms
perf: GET /api/v1/capabilities: median 255µs, worst 281µs, budget 150ms
perf: GET /api/v1/cards/{id}: median 1.221ms, worst 1.314ms, budget 150ms
perf: GET /api/v1/connections: median 615µs, worst 643µs, budget 150ms
perf: GET /api/v1/connections/{id}: median 599µs, worst 633µs, budget 150ms
perf: GET /api/v1/conversation: median 1.009ms, worst 1.052ms, budget 150ms
perf: GET /api/v1/conversation/cards: median 1.66ms, worst 1.799ms, budget 150ms
perf: GET /api/v1/coordinator: median 1.979ms, worst 2.038ms, budget 150ms
perf: GET /api/v1/invites/{id}: median 485µs, worst 500µs, budget 150ms
perf: GET /api/v1/journey: median 8.023ms, worst 8.228ms, budget 150ms
perf: GET /api/v1/me: median 427µs, worst 500µs, budget 150ms
perf: GET /api/v1/me/settings: median 524µs, worst 606µs, budget 150ms
perf: GET /api/v1/needs-you: median 7.726ms, worst 9.124ms, budget 150ms
perf: GET /api/v1/notifications: median 1.716ms, worst 1.884ms, budget 150ms
perf: GET /api/v1/onboarding: median 405µs, worst 434µs, budget 150ms
perf: GET /api/v1/people: median 461µs, worst 526µs, budget 150ms
perf: GET /api/v1/playbooks: median 606µs, worst 621µs, budget 150ms
perf: GET /api/v1/playbooks/{id}: median 527µs, worst 558µs, budget 150ms
perf: GET /api/v1/playbooks/{id}/template-diff: median 855µs, worst 904µs, budget 150ms
perf: GET /api/v1/preferences: median 756µs, worst 808µs, budget 150ms
perf: GET /api/v1/projects/{id}: median 462µs, worst 482µs, budget 150ms
perf: GET /api/v1/projects/{id}/settings: median 661µs, worst 735µs, budget 150ms
perf: GET /api/v1/roster: median 531µs, worst 566µs, budget 150ms
perf: GET /api/v1/runners/{id}: median 491µs, worst 509µs, budget 150ms
perf: GET /api/v1/specialists: median 8.307ms, worst 8.515ms, budget 150ms
perf: GET /api/v1/specialists/{id}: median 8.239ms, worst 8.4ms, budget 150ms
perf: GET /api/v1/specialists/{id}/template-diff: median 867µs, worst 893µs, budget 150ms
perf: GET /api/v1/tasks/{id}/plan: median 1.242ms, worst 1.366ms, budget 150ms
perf: GET /api/v1/tasks/{id}/thread: median 761µs, worst 786µs, budget 150ms
perf: GET /api/v1/teams: median 435µs, worst 496µs, budget 150ms
perf: GET /api/v1/templates: median 589µs, worst 645µs, budget 150ms
perf: GET /api/v1/templates/{id}: median 462µs, worst 500µs, budget 150ms
perf: GET /auth/callback: median 86µs, worst 100µs, budget 150ms
perf: GET /auth/devices/{id}: median 3.588ms, worst 3.64ms, budget 150ms
perf: GET /auth/verify: median 80µs, worst 129µs, budget 150ms
perf: GET /connections: median 4.083ms, worst 4.171ms, budget 150ms
perf: GET /conversation: median 8.017ms, worst 8.321ms, budget 150ms
perf: GET /conversation/connections: median 252µs, worst 293µs, budget 150ms
perf: GET /conversation/notebook: median 252µs, worst 291µs, budget 150ms
perf: GET /conversation/settings: median 4.213ms, worst 4.543ms, budget 150ms
perf: GET /conversation/settings/autonomy: median 4.164ms, worst 6.161ms, budget 150ms
perf: GET /conversation/settings/connections: median 7.409ms, worst 7.587ms, budget 150ms
perf: GET /conversation/settings/connections/add: median 7.476ms, worst 7.738ms, budget 150ms
perf: GET /conversation/settings/copy: median 3.927ms, worst 4.119ms, budget 150ms
perf: GET /conversation/settings/housekeeping: median 4.493ms, worst 4.682ms, budget 150ms
perf: GET /conversation/settings/machines: median 4.484ms, worst 4.602ms, budget 150ms
perf: GET /conversation/settings/machines/add: median 4.253ms, worst 4.35ms, budget 150ms
perf: GET /conversation/settings/notebook: median 3.297ms, worst 3.419ms, budget 150ms
perf: GET /conversation/settings/thinking: median 3.994ms, worst 4.217ms, budget 150ms
perf: GET /housekeeping: median 3.864ms, worst 3.987ms, budget 150ms
perf: GET /invites/new: median 613µs, worst 667µs, budget 150ms
perf: GET /invites/{id}: median 638µs, worst 659µs, budget 150ms
perf: GET /jobs: median 3.335ms, worst 3.393ms, budget 150ms
perf: GET /jobs/{id}: median 4.363ms, worst 4.477ms, budget 150ms
perf: GET /journey: median 12.767ms, worst 13.213ms, budget 150ms
perf: GET /nav/rail: median 3.403ms, worst 3.492ms, budget 150ms
perf: GET /needs-you: median 12.474ms, worst 12.852ms, budget 150ms
perf: GET /onboarding: median 4.479ms, worst 4.612ms, budget 150ms
perf: GET /people: median 3.811ms, worst 3.893ms, budget 150ms
perf: GET /playbook-suggestions/{suggestion}: median 5.704ms, worst 5.883ms, budget 150ms
perf: GET /playbooks: median 4.823ms, worst 5.013ms, budget 150ms
perf: GET /playbooks/new: median 4.812ms, worst 5.021ms, budget 150ms
perf: GET /playbooks/{id}: median 4.594ms, worst 4.717ms, budget 150ms
perf: GET /playbooks/{id}/edit: median 4.549ms, worst 4.602ms, budget 150ms
perf: GET /playbooks/{id}/template-diff: median 3.788ms, worst 3.89ms, budget 150ms
perf: GET /preferences: median 4.289ms, worst 4.501ms, budget 150ms
perf: GET /preferences/sources/{source}: median 4.392ms, worst 4.509ms, budget 150ms
perf: GET /projects: median 5.556ms, worst 5.719ms, budget 150ms
perf: GET /projects/accounts: median 3.789ms, worst 3.937ms, budget 150ms
perf: GET /projects/new: median 3.891ms, worst 4.212ms, budget 150ms
perf: GET /projects/{id}: median 11.195ms, worst 11.832ms, budget 150ms
perf: GET /projects/{id}/edit: median 3.862ms, worst 4.196ms, budget 150ms
perf: GET /runners/enrol: median 4.701ms, worst 4.74ms, budget 150ms
perf: GET /settings: median 3.585ms, worst 3.642ms, budget 150ms
perf: GET /settings/coordinator: median 5.758ms, worst 6.068ms, budget 150ms
perf: GET /settings/devices: median 3.36ms, worst 3.484ms, budget 150ms
perf: GET /settings/recovery: median 3.458ms, worst 3.572ms, budget 150ms
perf: GET /settings/recovery/release: median 3.488ms, worst 3.595ms, budget 150ms
perf: GET /settings/thinking: median 260µs, worst 275µs, budget 150ms
perf: GET /signin: median 310µs, worst 358µs, budget 150ms
perf: GET /specialists/new: median 3.5ms, worst 3.652ms, budget 150ms
perf: GET /specialists/{key}: median 11.702ms, worst 14.409ms, budget 150ms
perf: GET /specialists/{key}/edit: median 3.85ms, worst 4.131ms, budget 150ms
perf: GET /specialists/{key}/template-diff: median 3.867ms, worst 3.986ms, budget 150ms
perf: GET /tasks: median 5.33ms, worst 5.647ms, budget 150ms
perf: GET /tasks/new: median 3.458ms, worst 3.546ms, budget 150ms
perf: GET /tasks/{id}: median 5.745ms, worst 5.863ms, budget 150ms
perf: GET /tasks/{id}/merge: median 5.098ms, worst 5.191ms, budget 150ms
perf: GET /tasks/{id}/move: median 4.79ms, worst 4.847ms, budget 150ms
perf: GET /tasks/{id}/plan: median 6.066ms, worst 6.138ms, budget 150ms
perf: GET /tasks/{id}/preview: median 1.568ms, worst 1.646ms, budget 150ms
perf: GET /tasks/{id}/questions/{question}: median 5.781ms, worst 8.14ms, budget 150ms
perf: GET /tasks/{id}/rendered-change: median 5.157ms, worst 5.269ms, budget 150ms
perf: GET /tasks/{id}/rendered-change/{hash}.png: median 4.46ms, worst 4.669ms, budget 150ms
perf: GET /tasks/{id}/thread: median 8.295ms, worst 8.561ms, budget 150ms
perf: GET /team/{specialist}: median 4.582ms, worst 4.756ms, budget 150ms
perf: GET /teams: median 10.652ms, worst 10.791ms, budget 150ms
perf: GET /templates: median 3.675ms, worst 3.781ms, budget 150ms
perf: GET /usage: median 4.427ms, worst 4.586ms, budget 150ms
perf: GET /work: median 3.349ms, worst 3.428ms, budget 150ms
perf: cold boot: median 262ms of [261.435003ms 262.196092ms 263.594104ms], budget 500ms

receipt: test step 40.67s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 84 without tests, 0 failed
receipt: slow package 9.091s amadan.net/oficina/equipo/internal/equipotest
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo-runner
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo-tool-proxy
receipt: slow package 0s amadan.net/oficina/equipo/internal/advice
receipt: slow package 0s amadan.net/oficina/equipo/internal/attach
receipt: slow test 8.25s amadan.net/oficina/equipo/internal/equipotest TestPerfScreens
receipt: slow test 840ms amadan.net/oficina/equipo/internal/equipotest TestPerfBoot
=== cache ===
ci-box: build cache /home/ci/work/repos/oficina__equipo/cache/go-build: 3.43 GiB in 22464 files
ci-box: module cache /home/ci/work/repos/oficina__equipo/cache/go-mod: 0.84 GiB in 27348 files
diff --git a/.rastrillo/budgets.txt b/.rastrillo/budgets.txt
index 6f9b79f4..34f6ab2f 100644
--- a/.rastrillo/budgets.txt
+++ b/.rastrillo/budgets.txt
@@ -30,7 +30,7 @@ size internal/runner/provider 5603 - Fable follow-up: base and diagnostic gates,
time internal/plan3test 300s Initial cap for combined browser and runner acceptance; measure at both usable stops.
-size internal/plan3test - 11852 Native identity route, transaction, revocation and loopback TLS contracts; measured 940/11852 source/test lines.
+size internal/plan3test - 11887 Native identity route, transaction, revocation, loopback TLS and pairing-approval refusal contracts; measured 940/11887 source/test lines.
time internal/runner/forge 20s Plan 3 CI repair measured 10.527s for the full package (controller CI 10.407s).
time internal/runner/provider 15s Plan 3 CI repair measured 10.346s for the full package (controller CI 10.709s);
diff --git a/docs/api/equipo-v1.openapi.json b/docs/api/equipo-v1.openapi.json
index 09598f6a..7589969c 100644
--- a/docs/api/equipo-v1.openapi.json
+++ b/docs/api/equipo-v1.openapi.json
@@ -15187,6 +15187,10 @@
"type": "string"
}
},
+ "required": [
+ "public_key",
+ "label"
+ ],
"additionalProperties": false,
"x-go-type": "personapi.BeginDeviceInput"
},
@@ -23275,6 +23279,10 @@
"type": "string"
}
},
+ "required": [
+ "assertion",
+ "verifier"
+ ],
"additionalProperties": false,
"x-go-type": "oficinaid.NativeRequest"
},
diff --git a/docs/superpowers/plans/2026-11-20-native-id-server-evidence.md b/docs/superpowers/plans/2026-11-20-native-id-server-evidence.md
index 81490287..14899c20 100644
--- a/docs/superpowers/plans/2026-11-20-native-id-server-evidence.md
+++ b/docs/superpowers/plans/2026-11-20-native-id-server-evidence.md
@@ -465,3 +465,48 @@ With `GOTOOLCHAIN=go1.26.11 CGO_ENABLED=0`:
- `make copy-release-check`: passed; no new rendered copy was introduced.
- Reference scan after staging all new files: 2487 text files, 2846 matches,
zero failures.
+
+## Review fixes (Astra review 1, by Claude)
+
+**P1. A native session could approve a paired device.** Pairing approval
+mints a 30-day credential, so a 7-day Oficina ID session could outlive
+itself through it. `DeviceStore.Approve` now refuses any principal with a
+`SessionHash` (`ErrForbidden`), and `DeviceBrowser.ApproveForm` refuses a
+native cookie before reaching approval. The person's web session still
+approves.
+
+- `personapi.TestNativeSessionNeverApprovesAPairedDevice` and
+ `TestNativeSessionNeverApprovesFromTheBrowserForm` failed first ("native
+ session reached the approval write", "native session reached approval").
+- `plan3test.TestPersonAPINativeSessionNeverApprovesPairing` drives both
+ routes with the minted native cookie (403 each, device stays unapproved),
+ then approves with the person's web session (200).
+- Mutations: store guard to `if false` failed the store test and the
+ end-to-end test (`native HTTP 200, want 403`); browser guard removed failed
+ the browser-form test. Both restored.
+
+**P2. The native inputs lost `required`.** The generator writes input
+schemas with nothing required, which replaced the hand-written
+`BeginDeviceInput` (`public_key`, `label`). `wireschema.InputRequired` now
+names the fields the handlers refuse to go without, for `BeginDeviceInput`
+and `NativeRequest` (`assertion`, `verifier`), and panics on a name the
+type lacks. The document carries both lists.
+
+- `wireschema.TestNativeInputsRequireWhatTheirHandlersRequire` validates
+ incomplete bodies (refused) and complete ones (accepted); it failed first
+ on four bodies.
+- Mutation: dropping the required list failed that test and
+ `TestPersonAPIDeviceContract`. Restored.
+
+`TestRequestBodies` (inputs require nothing) now exempts exactly the
+`InputRequired` names.
+
+Gates on macOS, with `GOTOOLCHAIN=go1.26.11 CGO_ENABLED=0`: `fmt-check`,
+`gitleaks`, `budget` (plan3test raised to the measured 11887 test lines),
+`migration-check`, `copy-release-check`, `lanes-check` and
+`runner-dead-references` pass; `personapi`, `oficinaid`, `wireschema` and
+the `TestPersonAPI` contracts pass. `make test` here fails only where macOS
+cannot run it: the Linux runner packages, the browser tests (no Chromium),
+and `TestCoordinatorAcceptance3B` and `TestPublishCoreAuthorizationContract`,
+which fail the same way on main. `vet` and `staticcheck` stop at
+`internal/toolproxy` (`unix.O_PATH`, Linux only). CI on Linux is the gate.
diff --git a/internal/equipo/personapi/device_browser.go b/internal/equipo/personapi/device_browser.go
index 97372fa2..83d1ca66 100644
--- a/internal/equipo/personapi/device_browser.go
+++ b/internal/equipo/personapi/device_browser.go
@@ -44,7 +44,7 @@ func (a *DeviceBrowser) Page(w http.ResponseWriter, r *http.Request) {
}
func (a *DeviceBrowser) ApproveForm(w http.ResponseWriter, r *http.Request) {
p, err := a.Cookie(r)
- if err != nil {
+ if err != nil || p.SessionHash != "" {
a.Failure(w, r, a.Forbidden)
return
}
diff --git a/internal/equipo/personapi/devices.go b/internal/equipo/personapi/devices.go
index fd2d7580..595057ef 100644
--- a/internal/equipo/personapi/devices.go
+++ b/internal/equipo/personapi/devices.go
@@ -277,6 +277,11 @@ func (s *DeviceStore) Approve(ctx context.Context, a kernel.Actor, id, code stri
if !ok || p.Address == "" || p.Address != a.Address || p.CredentialID != "" || p.Pending {
return ErrUnauthenticated
}
+ // An Oficina ID session's devices expire with it; approving a paired
+ // device from one would mint a 30-day credential that outlives it.
+ if p.SessionHash != "" {
+ return s.Forbidden
+ }
code = strings.ToUpper(strings.TrimSpace(code))
if !m.Valid() {
return s.Invalid
diff --git a/internal/equipo/personapi/native_device_test.go b/internal/equipo/personapi/native_device_test.go
index d87aebeb..1f67e738 100644
--- a/internal/equipo/personapi/native_device_test.go
+++ b/internal/equipo/personapi/native_device_test.go
@@ -6,6 +6,7 @@ import (
"errors"
"net/http"
"net/http/httptest"
+ "strings"
"testing"
"time"
@@ -40,3 +41,35 @@ func TestNativeDeviceRouteRejectsBearer(t *testing.T) {
t.Fatal("device bearer registered native credential", err)
}
}
+
+// A session from Oficina ID lives 7 days and its devices expire with it.
+// Approving a paired device would hand out a 30-day credential from it.
+func TestNativeSessionNeverApprovesAPairedDevice(t *testing.T) {
+ forbidden := errors.New("forbidden")
+ s := &DeviceStore{Invalid: errors.New("invalid"), Forbidden: forbidden, Now: time.Now, Write: func(context.Context, func(*gorm.DB) error) error {
+ t.Fatal("native session reached the approval write")
+ return nil
+ }}
+ p := PersonPrincipal{Address: "person", SessionEpoch: 1, SessionHash: "hash"}
+ err := s.Approve(WithVerifiedPrincipal(context.Background(), p), kernel.Actor{Address: "person"}, "device", "ABCDEFGH", kernel.Mutation{RequestID: "request", Revision: 1})
+ if !errors.Is(err, forbidden) {
+ t.Fatalf("native session approved a device: %v", err)
+ }
+}
+
+func TestNativeSessionNeverApprovesFromTheBrowserForm(t *testing.T) {
+ forbidden := errors.New("forbidden")
+ var failed error
+ b := &DeviceBrowser{Invalid: errors.New("invalid"), Forbidden: forbidden, Cookie: func(*http.Request) (PersonPrincipal, error) {
+ return PersonPrincipal{Address: "person", SessionEpoch: 1, SessionHash: "hash"}, nil
+ }, Approve: func(context.Context, kernel.Actor, string, string, kernel.Mutation) error {
+ t.Fatal("native session reached approval")
+ return nil
+ }, Failure: func(_ http.ResponseWriter, _ *http.Request, err error) { failed = err }}
+ r := httptest.NewRequest("POST", "https://equipo.example/auth/devices/device/approve", strings.NewReader("typed_code=ABCDEFGH&request_id=request&revision=1"))
+ r.Header.Set("Content-Type", "application/x-www-form-urlencoded")
+ b.ApproveForm(httptest.NewRecorder(), r)
+ if !errors.Is(failed, forbidden) {
+ t.Fatalf("native session approved from the browser: %v", failed)
+ }
+}
diff --git a/internal/plan3test/person_api_native_id_test.go b/internal/plan3test/person_api_native_id_test.go
index 2ad500eb..5248358a 100644
--- a/internal/plan3test/person_api_native_id_test.go
+++ b/internal/plan3test/person_api_native_id_test.go
@@ -388,3 +388,38 @@ func TestPersonAPINativeLiveExchange(t *testing.T) {
t.Fatal("device engine status", response.StatusCode)
}
}
+
+// A native session's devices expire with it (7 days). Approving a paired
+// device from it would mint a 30-day credential that outlives the session, so
+// both approval routes refuse it; the person's web session still approves.
+func TestPersonAPINativeSessionNeverApprovesPairing(t *testing.T) {
+ f, _, fresh, _ := nativeIDFixture(t)
+ pub := base64.RawURLEncoding.EncodeToString(bytes.Repeat([]byte{5}, 32))
+ c, e := f.Store.BeginPersonDevice(ctx, pub, "paired phone", "native-approve-begin")
+ must(t, e)
+ native := f.Cookies[owner.Address]
+ web := &http.Cookie{Name: native.Name, Value: fresh}
+ approve := func(cookie *http.Cookie, form bool, key string) *httptest.ResponseRecorder {
+ var r *http.Request
+ if form {
+ r = httptest.NewRequest("POST", nativeOrigin+"/auth/devices/"+c.ID+"/approve", strings.NewReader("typed_code="+c.UserCode+"&request_id="+key+"&revision=1"))
+ r.Header.Set("Content-Type", "application/x-www-form-urlencoded")
+ } else {
+ r = httptest.NewRequest("POST", nativeOrigin+"/api/v1/auth/devices/"+c.ID+"/approve", strings.NewReader(`{"typed_code":"`+c.UserCode+`"}`))
+ r.Header.Set("Content-Type", "application/json")
+ r.Header.Set("Idempotency-Key", key)
+ r.Header.Set("If-Match", `"1"`)
+ }
+ r.Header.Set("Origin", nativeOrigin)
+ r.AddCookie(cookie)
+ w := httptest.NewRecorder()
+ f.Handler.ServeHTTP(w, r)
+ return w
+ }
+ expectNativeHTTP(t, approve(native, false, "native-api"), 403)
+ expectNativeHTTP(t, approve(native, true, "native-form"), 403)
+ if f.count(t, "SELECT count(*) FROM person_devices WHERE id=? AND approved_at IS NOT NULL", c.ID) != 0 {
+ t.Fatal("native session approved a paired device")
+ }
+ expectNativeHTTP(t, approve(web, false, "web-api"), 200)
+}
diff --git a/internal/wire/wireschema/wireschema.go b/internal/wire/wireschema/wireschema.go
index e9e19dce..14832ea4 100644
--- a/internal/wire/wireschema/wireschema.go
+++ b/internal/wire/wireschema/wireschema.go
@@ -398,6 +398,14 @@ func (g *gen) of(t reflect.Type) *ordered {
func (g *gen) object(t reflect.Type, name string) *ordered {
props, required := obj(), []string{}
g.fields(t, t.Name(), props, &required)
+ if need, ok := InputRequired[name]; ok && g.input {
+ for _, key := range need {
+ if _, ok := props.vals[key]; !ok {
+ panic("wireschema: " + name + " requires " + key + ", which it does not have")
+ }
+ }
+ required = need
+ }
s := obj("type", "object", "properties", props)
if len(required) > 0 {
s.set("required", required)
@@ -454,6 +462,14 @@ func (g *gen) fields(t reflect.Type, name string, props *ordered, required *[]st
}
}
+// InputRequired names, for the few request bodies whose handler refuses
+// a missing field, the fields it needs. Every other input requires
+// nothing (see gen).
+var InputRequired = map[string][]string{
+ "BeginDeviceInput": {"public_key", "label"},
+ "NativeRequest": {"assertion", "verifier"},
+}
+
// NativeOps are the native sign-in routes, with their own authentication.
// The exchange overrides the document's /api/v1 server with the instance root.
var NativeOps = map[string]Op{
diff --git a/internal/wire/wireschema/wireschema_test.go b/internal/wire/wireschema/wireschema_test.go
index a88f818b..6c66ec8b 100644
--- a/internal/wire/wireschema/wireschema_test.go
+++ b/internal/wire/wireschema/wireschema_test.go
@@ -334,7 +334,7 @@ func TestRequestBodies(t *testing.T) {
if err := json.Unmarshal(s, &v); err != nil {
t.Fatal(err)
}
- if _, required := v["required"]; required && strings.HasSuffix(name, "Input") {
+ if _, required := v["required"]; required && strings.HasSuffix(name, "Input") && InputRequired[name] == nil {
t.Errorf("%s requires fields", name)
}
}
@@ -605,3 +605,38 @@ func opName(v any) string {
}
return "map"
}
+
+// The native routes' handlers refuse a body missing these fields, so the
+// document must say so: an app built from it would otherwise send none.
+func TestNativeInputsRequireWhatTheirHandlersRequire(t *testing.T) {
+ defs := map[string]any{}
+ for name, raw := range Generate() {
+ var s any
+ if err := json.Unmarshal(raw, &s); err != nil {
+ t.Fatal(err)
+ }
+ defs[name] = s
+ }
+ for name, cases := range map[string][]string{
+ "BeginDeviceInput": {`{}`, `{"label":"phone"}`, `{"public_key":"key"}`},
+ "NativeRequest": {`{}`, `{"verifier":"v"}`, `{"assertion":"a","choice":"new"}`},
+ } {
+ s := map[string]any{"$ref": "#/components/schemas/" + name}
+ for _, body := range cases {
+ var v any
+ if err := json.Unmarshal([]byte(body), &v); err != nil {
+ t.Fatal(err)
+ }
+ if Validate(defs, v, s, name) == nil {
+ t.Errorf("%s accepts %s", name, body)
+ }
+ }
+ }
+ for name, body := range map[string]string{"BeginDeviceInput": `{"public_key":"key","label":"phone"}`, "NativeRequest": `{"assertion":"a","verifier":"v"}`} {
+ var v any
+ _ = json.Unmarshal([]byte(body), &v)
+ if err := Validate(defs, v, map[string]any{"$ref": "#/components/schemas/" + name}, name); err != nil {
+ t.Errorf("%s refuses a complete body: %v", name, err)
+ }
+ }
+}