oficina / equipo Public

Make placement and ineligible retries open-only in alerts

Placement questions carry placement_question and never get an alert
action; Try again is offered only when retryReason accepts the step,
never for Merge or Publish. Native opens placement cards, writes only
while unlocked and active, and re-registers open-only after a 403.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev f49270cf31b713ed5c04caa0cda5a9c9006a68ae parent 18cd2fc
13 files changed, +351 −24
  • docs/api/equipo-v1.md +1 −1
  • docs/api/equipo-v1.openapi.json +3 −0
  • docs/superpowers/plans/CONTROLLER-REPORT-notification-actions.md +61 −0
  • internal/equipo/chat/notification_payload.go +12 −1
  • internal/equipo/chat/notification_review_test.go +128 −0
  • internal/equipo/chat/projects.go +1 −0
  • internal/thintest/roster_browser_test.go +0 −1
  • internal/wire/api.go +16 −13
  • native/apple/Sources/EquipoKit/API/Thin.swift +2 −0
  • native/apple/Sources/EquipoKit/Push/NotificationDispatcher.swift +37 −2
  • native/apple/Sources/EquipoKit/Push/PushRegistrar.swift +8 −0
  • native/apple/Tests/EquipoKitTests/NotificationActionTests.swift +22 −0
  • native/apple/Tests/EquipoKitTests/NotificationDispatchTests.swift +60 −6

CI failed — 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/notify__actions: Type  Size Avail | ext4   96G   84G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type  Size Avail | ext4   96G   84G
ci-box: bwrap: fetched and verified in 0.3s
ci-box: claude: fetched and verified in 1.3s
ci-box: codex: fetched and verified in 3.6s
ci-box: codex-code-mode-host: fetched and verified in 1.5s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.3s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: image pulled in 9.8s
ci-box: pi: installed and verified in 7.4s
ci-box: opencode: installed and verified in 2.3s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 9.4s
ci-box: clone deepened in 4.4s
ci-box: file times set from content: 3201 files, 211 directories
ci-box: ready in 18.1s
=== 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.147s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  4.3s
+ go list -export -test -tags testbuild -f  ./...
  4.8s
+ go list -export -test -tags browser,testbuild -f  ./internal/equipo ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
  3.3s
rastrillo: budget size: 3 problem(s)
exit status 1
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -version
staticcheck 2026.1 (v0.7.0)
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 -version
Go: go1.26.11
Scanner: govulncheck@v1.8.0
DB: https://vuln.go.dev
DB updated: 2026-11-24 15:56:00 +0000 UTC

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

receipt: test step 1m16.839s 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 1m14.706s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m14.71s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 63.03, cpu waiting 39.41%, memory waiting 0.00%, io waiting 0.44%
--- shard 1 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-review: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadless$/^4_review$|^TestHeadless$/^2b_access$|^TestHeadless$/^runner_crash$|^TestHeadless$/^2b_first_message$|^TestHeadless$/^4_checks_honest$|^TestHeadless$/^7_stream_resume$|^TestHeadless$/^2b_notebook$|^TestHeadless$/^2b_move_in$|^TestHeadless$/^2b_desk_failure$|^TestHeadless$/^cancel$' ./internal/headless

receipt: test step 1m17.347s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m15.501s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m15.5s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 66.87, cpu waiting 39.23%, memory waiting 0.00%, io waiting 0.43%
--- shard 2 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-connections: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadlessConnections$|^TestHeadlessTokenPasteEndToEnd$|^TestHeadlessTokenConnection$' ./internal/headless

receipt: test step 1m16.678s 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 1m14.724s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m5.27s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 5.04s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.42s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 63.03, cpu waiting 39.23%, memory waiting 0.00%, io waiting 0.43%
--- 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
rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/headless TestHeadless
=== RUN   TestHeadless
--- FAIL: TestHeadless (56.67s)

--- FAIL amadan.net/oficina/equipo/internal/headless TestHeadless/1_first_token
=== RUN   TestHeadless/1_first_token
time=2026-11-26T23:46:43.290Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-26T23:46:43.290Z level=INFO msg="startup phase done" phase=state_lock took=66µs
time=2026-11-26T23:46:43.291Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-26T23:46:43.291Z level=INFO msg="startup phase done" phase=claim_roots took=88µs
time=2026-11-26T23:46:43.291Z level=INFO msg="startup phase" phase=sweep
time=2026-11-26T23:46:43.321Z level=INFO msg="startup phase done" phase=sweep took=30.672ms
time=2026-11-26T23:46:43.321Z level=INFO msg="startup phase" phase=credentials
time=2026-11-26T23:46:43.322Z level=INFO msg="startup phase done" phase=credentials took=172µs
time=2026-11-26T23:46:43.322Z level=INFO msg="startup phase" phase=open_state
time=2026-11-26T23:46:43.367Z level=INFO msg="startup phase done" phase=open_state took=45.705ms
time=2026-11-26T23:46:43.369Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-26T23:46:43.370Z level=INFO msg=connecting host=127.0.0.1:40067 protocol=32
time=2026-11-26T23:46:43.371Z level=INFO msg=connected host=127.0.0.1:40067 took=1.009ms
time=2026-11-26T23:46:43.371Z level=INFO msg="capabilities gathering"
time=2026-11-26T23:46:43.372Z level=INFO msg="capabilities gathered" took=951µs tags=linux,claude,go
time=2026-11-26T23:46:43.373Z level=INFO msg="hello sent" protocol=32
time=2026-11-26T23:46:43.380Z level=INFO msg=welcome protocol=32 role=primary generation=1
time=2026-11-26T23:46:43.381Z level=WARN msg="ask probe" err=cancelled
time=2026-11-26T23:46:43.381Z level=WARN msg="step probe" err=*errors.errorString
time=2026-11-26T23:46:43.382Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-26T23:46:43.382Z level=WARN msg="startup phase failed" phase=state_lock took=68µs err=provider_uncertain
    env_test.go:290: runner exited: provider_uncertain
time=2026-11-26T23:46:43.386Z level=WARN msg=index repo=amadan.net/oficina/equipo err="signal: killed"
    env_test.go:282: runner did not stop
--- FAIL: TestHeadless/1_first_token (45.49s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m48.945s
FAIL	amadan.net/oficina/equipo/internal/headless	109.193s


receipt: test step 1m50.977s 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 1m48.945s amadan.net/oficina/equipo/internal/headless
receipt: slow test 56.67s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 34.78s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 8.95s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
receipt: slow test 8.54s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
exit status 1
+ go 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$' -v -run '^TestHeadless$/^1_first_token$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestHeadless/1_first_token headless-mac f49270cf31b713ed5c04caa0cda5a9c9006a68ae 45.49s 54.85
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 51.10, cpu waiting 29.80%, memory waiting 0.00%, io waiting 0.22%
--- shard 4 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-guards: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadlessCopyRotation$|^TestHeadlessPolicyGuards$|^TestHeadlessRunnerKillLeavesNoCopies$|^TestHeadlessNewHouseRuleStartsFresh$|^TestHeadless$/^3_engineering$|^TestHeadless$/^3_step_cancel$|^TestHeadless$/^3_step_contained$|^TestHeadless$/^3_step_refused$|^TestHeadless$/^3_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless

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

receipt: test step 2m44.484s 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 2m42.131s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m35.67s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 18.91s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 8.91s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 6.71s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
receipt: slow test 6.49s amadan.net/oficina/equipo/internal/headless TestHeadlessBatchAfterRefusedReply
machine: 32 CPUs, load 26.80, cpu waiting 13.70%, memory waiting 0.00%, io waiting 0.09%
--- shard 6 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane thintest: ./internal/thintest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test([^C]|C[^o]|Co[^n]|Con[^t])|^TestContract(Assistant|Outcome|Team|Handoff|HostAllowlist|HostIsPerPerson|Look|Use[A-Z]|RemoteCall|LanesRunAtOnce|NoMergeQuestionWhenGateMerges|PreviewHeldUntilPublishAnswer|PreviewNotHeldBelow19|PublishNeedsOwnerAnswer)' ./internal/thintest

receipt: test step 2m16.364s 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 2m14.341s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 10.8s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.72s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 5.77s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 3.94s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 2.62s amadan.net/oficina/equipo/internal/thintest TestContractTeamUpdatePersonNeeds
machine: 32 CPUs, load 41.59, cpu waiting 21.84%, memory waiting 0.00%, io waiting 0.15%
--- 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 1m56.951s 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 1m54.957s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.59s amadan.net/oficina/equipo/internal/thintest TestContractRetryPreviewUnverifiedMerge
receipt: slow test 9.18s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 4.95s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.57s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 3s amadan.net/oficina/equipo/internal/thintest TestContractPausedJob
machine: 32 CPUs, load 50.93, cpu waiting 28.89%, memory waiting 0.00%, io waiting 0.21%
--- shard 8 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-thin: ./internal/runner/thin
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./internal/runner/thin
budget note: internal/runner/thin took 5m7.248s, over the 45s its record on line 44 allows; reported only, timing fails on CI

receipt: test step 5m12.956s 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 5m7.248s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 37.07s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.88s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 36.82s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 18.48s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 9.91s amadan.net/oficina/equipo/internal/runner/thin TestTimeoutKeepsNothingForAnOlderInstance
machine: 32 CPUs, load 3.78, cpu waiting 1.12%, memory waiting 0.00%, io waiting 0.00%
--- shard 9 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-bug: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$' ./internal/runner

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

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

receipt: test step 35.717s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 34.963s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.13s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.22s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.14s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.46s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestCoordinatorTransientRefusalKeepsServing
machine: 32 CPUs, load 32.86, cpu waiting 21.52%, memory waiting 0.00%, io waiting 0.87%
--- 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 40.1%, load 24.84
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 1m9.158s 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.266s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 28.41s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 28.38s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 25.94s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 23.32s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 23.15s amadan.net/oficina/equipo/internal/equipotest TestAuthoritySnapshotChanges
machine: 32 CPUs, load 58.82, cpu waiting 37.43%, memory waiting 0.00%, io waiting 0.29%
--- 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 40.1%, load 24.84
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 1m18.713s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m17.004s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 20.23s amadan.net/oficina/equipo/internal/equipotest TestProjectOwnersAreMembers
receipt: slow test 20.22s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
receipt: slow test 20.18s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
receipt: slow test 20.08s amadan.net/oficina/equipo/internal/equipotest TestProjectConcurrentRetry
receipt: slow test 20.07s amadan.net/oficina/equipo/internal/equipotest TestProjectRequestActorAndUpdate
machine: 32 CPUs, load 54.85, cpu waiting 33.59%, memory waiting 0.00%, io waiting 0.25%
--- 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 40.1%, load 24.84
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 1m15.709s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m10.395s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 15.79s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 13.6s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 10.53s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 10.47s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 7.46s amadan.net/oficina/equipo/internal/equipotest TestRosterProtectsLastOwner
machine: 32 CPUs, load 56.75, cpu waiting 34.66%, memory waiting 0.00%, io waiting 0.26%
--- 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 40.1%, load 24.84
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 1m8.964s 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.263s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 26.23s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 25.34s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 25.29s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 23.51s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsUpgrade
receipt: slow test 23.46s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsCurrentOwner
machine: 32 CPUs, load 58.82, cpu waiting 37.95%, memory waiting 0.00%, io waiting 0.30%
--- shard 16 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: plan3test started 30s late; cpu waiting 40.1%, load 24.84
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 55.338s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 53.347s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.83s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.49s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.74s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.46s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.3s amadan.net/oficina/equipo/internal/plan3test TestInviteMigration
machine: 32 CPUs, load 64.40, cpu waiting 38.70%, memory waiting 0.00%, io waiting 0.37%
--- 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 40.1%, load 24.84
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/door ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/pause ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/push ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/claude/realcli ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/forgekey ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/door ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/pause ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/push ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/claude/realcli ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/forgekey ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
cache miss: amadan.net/oficina/equipo/internal/copydesk: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/equipo/team: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/forge: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/claude/realcli: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/webread: 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/opencode: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/pi: its inputs changed
budget note: internal/equipo took 2m22.435s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/chat took 21.948s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/setup took 10.034s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/idtest took 1m54s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/release took 41.44s, 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 47.558s, over the 15s its record on line 40 allows; reported only, timing fails on CI
budget note: internal/runner/provider/claude/realcli took 12.223s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/runner/workspace took 11.927s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 2m28.092s against a 60s target (the gate's other steps are not in this figure)
receipt: 26 packages ran, 40 cached, 17 without tests, 0 failed
receipt: slow package 2m22.435s amadan.net/oficina/equipo/internal/equipo
receipt: slow package 1m54s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 1m6.679s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 59.169s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 54.308s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow test 55.34s amadan.net/oficina/equipo/internal/idtest TestDoorRemembersOficinaID
receipt: slow test 47.53s amadan.net/oficina/equipo/internal/idtest TestDoorStepUpIsLocal
receipt: slow test 47.52s amadan.net/oficina/equipo/internal/idtest TestDoorOficinaSettingsUnreadableIsNoLoop
receipt: slow test 47.39s amadan.net/oficina/equipo/internal/idtest TestDoorNeverJudgesANativeSession
receipt: slow test 47.38s amadan.net/oficina/equipo/internal/idtest TestDoorForgetsOficinaIDForARefusedSession
machine: 32 CPUs, load 22.02, cpu waiting 10.85%, memory waiting 0.00%, io waiting 0.07%
--- shard 18 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-chat: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$' ./internal/headless

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

receipt: test step 1m30.392s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m28.717s amadan.net/oficina/equipo/internal/headless
receipt: slow test 27.81s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 21.12s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 13.14s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 9.44s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 8.74s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
machine: 32 CPUs, load 64.04, cpu waiting 39.30%, memory waiting 0.00%, io waiting 0.34%
--- 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 1m52.47s 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 1m50.834s amadan.net/oficina/equipo/internal/headless
receipt: slow test 13.89s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 13.26s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 12.45s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 11.3s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsSignInEmail
receipt: slow test 11.11s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
machine: 32 CPUs, load 51.10, cpu waiting 30.71%, memory waiting 0.00%, io waiting 0.23%
--- shard 21 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-rest: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInEmail|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless
rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
=== RUN   TestBrowserThinkingAndCards
time=2026-11-26T23:45:53.532Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-26T23:45:53.532Z level=INFO msg="startup phase done" phase=state_lock took=65µs
time=2026-11-26T23:45:53.532Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-26T23:45:53.532Z level=INFO msg="startup phase done" phase=claim_roots took=96µs
time=2026-11-26T23:45:53.532Z level=INFO msg="startup phase" phase=sweep
time=2026-11-26T23:45:53.576Z level=INFO msg="startup phase done" phase=sweep took=43.867ms
time=2026-11-26T23:45:53.576Z level=INFO msg="startup phase" phase=credentials
time=2026-11-26T23:45:53.576Z level=INFO msg="startup phase done" phase=credentials took=146µs
time=2026-11-26T23:45:53.576Z level=INFO msg="startup phase" phase=open_state
time=2026-11-26T23:45:53.621Z level=INFO msg="startup phase done" phase=open_state took=45.125ms
time=2026-11-26T23:45:53.622Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-26T23:45:53.623Z level=INFO msg=connecting host=127.0.0.1:38609 protocol=32
time=2026-11-26T23:45:53.624Z level=INFO msg=connected host=127.0.0.1:38609 took=1.088ms
time=2026-11-26T23:45:53.624Z level=INFO msg="capabilities gathering"
time=2026-11-26T23:45:53.624Z level=INFO msg="capabilities gathered" took=403µs tags=linux,claude,go
time=2026-11-26T23:45:53.629Z level=INFO msg="hello sent" protocol=32
time=2026-11-26T23:45:53.632Z level=INFO msg=welcome protocol=32 role=primary generation=1
time=2026-11-26T23:45:54.765Z level=INFO msg="connection checked" connection=claude-1 state=healthy
    browser_cards_test.go:66: waiting for (()=>{const l=document.querySelector('[equipo-thinking] [equipo-activity]');return !!l && l.textContent==='Adding oficina/sample…'})(): context deadline exceeded (last evaluation: <nil>)
--- FAIL: TestBrowserThinkingAndCards (7.11s)

--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserCopyContinue
=== RUN   TestBrowserCopyContinue
time=2026-11-26T23:46:18.148Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-26T23:46:18.148Z level=INFO msg="startup phase done" phase=state_lock took=65µs
time=2026-11-26T23:46:18.148Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-26T23:46:18.148Z level=INFO msg="startup phase done" phase=claim_roots took=84µs
time=2026-11-26T23:46:18.148Z level=INFO msg="startup phase" phase=sweep
time=2026-11-26T23:46:18.184Z level=INFO msg="startup phase done" phase=sweep took=35.544ms
time=2026-11-26T23:46:18.184Z level=INFO msg="startup phase" phase=credentials
time=2026-11-26T23:46:18.184Z level=INFO msg="startup phase done" phase=credentials took=135µs
time=2026-11-26T23:46:18.184Z level=INFO msg="startup phase" phase=open_state
time=2026-11-26T23:46:18.225Z level=INFO msg="startup phase done" phase=open_state took=41.465ms
time=2026-11-26T23:46:18.226Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-26T23:46:18.227Z level=INFO msg=connecting host=127.0.0.1:46205 protocol=32
time=2026-11-26T23:46:18.228Z level=INFO msg=connected host=127.0.0.1:46205 took=834µs
time=2026-11-26T23:46:18.228Z level=INFO msg="capabilities gathering"
time=2026-11-26T23:46:18.229Z level=INFO msg="capabilities gathered" took=683µs tags=linux,claude,go
time=2026-11-26T23:46:18.230Z level=INFO msg="hello sent" protocol=32
time=2026-11-26T23:46:18.235Z level=INFO msg=welcome protocol=32 role=primary generation=1
    browser_copy_test.go:93: continue did not reach Checks: 0 <nil>
--- FAIL: TestBrowserCopyContinue (1.83s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m22.047s
FAIL	amadan.net/oficina/equipo/internal/headless	82.238s


receipt: test step 1m23.531s 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 1m22.047s amadan.net/oficina/equipo/internal/headless
receipt: slow test 12.03s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 9.96s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 8.91s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 7.87s amadan.net/oficina/equipo/internal/headless TestBrowserEmptyExplore
receipt: slow test 7.65s 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|TestBrowserConnectionsSignInEmail|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' -v -run '^TestBrowserCopyContinue$|^TestBrowserThinkingAndCards$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserCopyContinue browser-headless-rest f49270cf31b713ed5c04caa0cda5a9c9006a68ae 1.83s 64.40
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
##############################################################################
FLAKE ./internal/headless:TestBrowserThinkingAndCards browser-headless-rest f49270cf31b713ed5c04caa0cda5a9c9006a68ae 7.11s 64.40
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 56.75, cpu waiting 36.50%, memory waiting 0.00%, io waiting 0.28%
--- shard 22 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-rest: ./internal/equipo
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserPreviewBlocksNavigation|TestBrowserPreviewPassExchange)$' ./internal/equipo

receipt: test step 4.236s 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.485s amadan.net/oficina/equipo/internal/equipo
receipt: slow test 1.76s amadan.net/oficina/equipo/internal/equipo TestBrowserPreviewPassExchange
receipt: slow test 720ms 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|TestBrowserSmartDoor)$' ./internal/idtest
budget note: internal/idtest took 11.344s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 12.801s 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 11.344s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 9.17s amadan.net/oficina/equipo/internal/idtest TestBrowserSmartDoor
receipt: slow test 2.17s 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.656s 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.152s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 2.15s amadan.net/oficina/equipo/internal/plan3test TestTeamsHierarchyBrowser
browser lane browser-rest: ./internal/thintest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAccessEmojiByline|TestBrowserAccessFinalOutcomes|TestBrowserAccessRequest|TestBrowserAccessReview|TestBrowserActivitySubjects|TestBrowserAutonomySettings|TestBrowserCoordinatorQueue|TestBrowserEmptyConversation|TestBrowserEndedNoteStaysGone|TestBrowserHousekeeping|TestBrowserInnerGallery|TestBrowserInnerScreens|TestBrowserInstantThinking|TestBrowserInstantThinkingQueued|TestBrowserMachines|TestBrowserPausedWork|TestBrowserPhoneIndex|TestBrowserPlacementQuestionAndPending|TestBrowserProjectPlacement|TestBrowserProjectsList|TestBrowserReportActionFeedback|TestBrowserReportNextSteps|TestBrowserReportThread|TestBrowserRhythm|TestBrowserRollup|TestBrowserRosterAlignment|TestBrowserRosterDecisionStates|TestBrowserRosterQuietDay|TestBrowserRosterReports|TestBrowserRosterSetAside|TestBrowserRosterSubchat|TestBrowserRosterThinking|TestBrowserRosterVisual|TestBrowserSettingsHousekeepingGroups|TestBrowserSettingsMenu|TestBrowserSettingsRail|TestBrowserSettingsSaveBar|TestBrowserSettingsShots|TestBrowserSettingsStayOnPage|TestBrowserSettingsTeams|TestBrowserShipsButtons|TestBrowserSpecialistRows|TestBrowserSpendFollowsAnswers|TestBrowserTaskRows|TestBrowserTeamPanel|TestBrowserThinkingCycles|TestBrowserThinkingLinesClear|TestBrowserThinkingSteady|TestBrowserThinkingWords|TestBrowserTokenRowEmail|TestBrowserTrackPulse|TestBrowserTrackStarCentre|TestBrowserTryAgain)$' ./internal/thintest
rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/thintest TestBrowserRosterVisual
=== RUN   TestBrowserRosterVisual
--- FAIL: TestBrowserRosterVisual (1.60s)

--- FAIL amadan.net/oficina/equipo/internal/thintest TestBrowserRosterVisual/1280-light
=== RUN   TestBrowserRosterVisual/1280-light
    roster_browser_test.go:41: report spacing left the inset scale
--- FAIL: TestBrowserRosterVisual/1280-light (0.35s)

--- FAIL amadan.net/oficina/equipo/internal/thintest TestBrowserRosterVisual/1280-dark
=== RUN   TestBrowserRosterVisual/1280-dark
    roster_browser_test.go:41: report spacing left the inset scale
--- FAIL: TestBrowserRosterVisual/1280-dark (0.31s)

--- FAIL amadan.net/oficina/equipo/internal/thintest TestBrowserRosterVisual/390-light
=== RUN   TestBrowserRosterVisual/390-light
    roster_browser_test.go:41: report spacing left the inset scale
--- FAIL: TestBrowserRosterVisual/390-light (0.31s)

--- FAIL amadan.net/oficina/equipo/internal/thintest TestBrowserRosterVisual/390-dark
=== RUN   TestBrowserRosterVisual/390-dark
    roster_browser_test.go:41: report spacing left the inset scale
--- FAIL: TestBrowserRosterVisual/390-dark (0.30s)

--- FAIL amadan.net/oficina/equipo/internal/thintest (package output)
FAIL
rastrillo-budget/v1 ran 3m38.058s
FAIL	amadan.net/oficina/equipo/internal/thintest	218.305s


receipt: test step 3m39.698s 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 3m38.058s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 24.75s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.42s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12.13s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.77s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 9.25s amadan.net/oficina/equipo/internal/thintest TestBrowserRhythm
exit status 1
+ go test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAccessEmojiByline|TestBrowserAccessFinalOutcomes|TestBrowserAccessRequest|TestBrowserAccessReview|TestBrowserActivitySubjects|TestBrowserAutonomySettings|TestBrowserCoordinatorQueue|TestBrowserEmptyConversation|TestBrowserEndedNoteStaysGone|TestBrowserHousekeeping|TestBrowserInnerGallery|TestBrowserInnerScreens|TestBrowserInstantThinking|TestBrowserInstantThinkingQueued|TestBrowserMachines|TestBrowserPausedWork|TestBrowserPhoneIndex|TestBrowserPlacementQuestionAndPending|TestBrowserProjectPlacement|TestBrowserProjectsList|TestBrowserReportActionFeedback|TestBrowserReportNextSteps|TestBrowserReportThread|TestBrowserRhythm|TestBrowserRollup|TestBrowserRosterAlignment|TestBrowserRosterDecisionStates|TestBrowserRosterQuietDay|TestBrowserRosterReports|TestBrowserRosterSetAside|TestBrowserRosterSubchat|TestBrowserRosterThinking|TestBrowserRosterVisual|TestBrowserSettingsHousekeepingGroups|TestBrowserSettingsMenu|TestBrowserSettingsRail|TestBrowserSettingsSaveBar|TestBrowserSettingsShots|TestBrowserSettingsStayOnPage|TestBrowserSettingsTeams|TestBrowserShipsButtons|TestBrowserSpecialistRows|TestBrowserSpendFollowsAnswers|TestBrowserTaskRows|TestBrowserTeamPanel|TestBrowserThinkingCycles|TestBrowserThinkingLinesClear|TestBrowserThinkingSteady|TestBrowserThinkingWords|TestBrowserTokenRowEmail|TestBrowserTrackPulse|TestBrowserTrackStarCentre|TestBrowserTryAgain)$' -v -run '^TestBrowserRosterVisual$/^1280\-dark$|^TestBrowserRosterVisual$/^1280\-light$|^TestBrowserRosterVisual$/^390\-dark$|^TestBrowserRosterVisual$/^390\-light$' -count=1 ./internal/thintest   (retry, once)
FAILED TWICE ./internal/thintest:TestBrowserRosterVisual/1280-dark browser-rest
FAILED TWICE ./internal/thintest:TestBrowserRosterVisual/1280-light browser-rest
FAILED TWICE ./internal/thintest:TestBrowserRosterVisual/390-dark browser-rest
FAILED TWICE ./internal/thintest:TestBrowserRosterVisual/390-light browser-rest
=== RUN   TestBrowserRosterVisual
=== RUN   TestBrowserRosterVisual/1280-light
    roster_browser_test.go:41: report spacing left the inset scale
=== RUN   TestBrowserRosterVisual/1280-dark
    roster_browser_test.go:41: report spacing left the inset scale
=== RUN   TestBrowserRosterVisual/390-light
    roster_browser_test.go:41: report spacing left the inset scale
=== RUN   TestBrowserRosterVisual/390-dark
    roster_browser_test.go:41: report spacing left the inset scale
--- FAIL: TestBrowserRosterVisual (2.69s)
    --- FAIL: TestBrowserRosterVisual/1280-light (0.38s)
    --- FAIL: TestBrowserRosterVisual/1280-dark (0.29s)
    --- FAIL: TestBrowserRosterVisual/390-light (0.30s)
    --- FAIL: TestBrowserRosterVisual/390-dark (0.30s)
FAIL
rastrillo-budget/v1 ran 2.695s
FAIL	amadan.net/oficina/equipo/internal/thintest	2.851s
FAIL
machine: 32 CPUs, load 8.18, cpu waiting 3.49%, memory waiting 0.00%, io waiting 0.02%
make: *** [Makefile:113: ci-shard] Error 1

amadan: step check shard 22 of 29 failed: exit status 2
--- 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   (50s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 4.55s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.11s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 8.57s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 8.82s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 25.58s
+ 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   (69s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 23.98s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 20.30s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 10.11s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 12.74s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (21s)
ok ./internal/headless TestMixedVersions 18.88s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (2s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.76s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin   (1s)
ok ./internal/runner/thin TestRunnerCancelAndSupersede 0.05s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 63.64, cpu waiting 38.92%, memory waiting 0.00%, io waiting 0.49%
--- shard 24 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
shard 24: make runner-host
python3 scripts/runner-prerequisites.py
CGO_ENABLED=0 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run 'TestDirect|TestProvider|TestCheckSandbox' -count=1 ./internal/runner/provider/... ./internal/runner/checks
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run 'TestDirect|TestProvider|TestCheckSandbox' -count=1 ./internal/runner/provider/... ./internal/runner/checks

receipt: test step 13.484s against a 60s target (the gate's other steps are not in this figure)
receipt: 4 packages ran, 0 cached, 4 without tests, 0 failed
receipt: slow package 8.022s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 207ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 66ms 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/claude/realcli
receipt: slow test 5.48s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.86s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 520ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 210ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 150ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxToolchain
CGO_ENABLED=0 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run '^TestNamespace' -count=1 ./internal/runner/containment
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run '^TestNamespace' -count=1 ./internal/runner/containment

receipt: test step 3.577s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 3.198s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 370ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 230ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceExitStatus
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
machine: 32 CPUs, load 21.34, cpu waiting 10.92%, memory waiting 0.00%, io waiting 1.18%
--- shard 25 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: runner-dead-references started 30s late; cpu waiting 40.1%, load 24.84
shard 25: make runner-dead-references lanes-check build vet fmt-check spacing budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 2913 text files, 3229 matches, 0 failures
python3 native/scripts/check-share.py
Share packaging, keychain-only boundary and reviewed copy verified
python3 scripts/ci-test.py check
lanes: 18 lanes and 5 browser lanes run every test once; 20-check@29
CGO_ENABLED=0 go build ./...
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o /dev/null ./cmd/equipo-runner
go vet ./...
go vet -tags testbuild ./internal/runner/thin ./internal/headless
GOOS=darwin GOARCH=arm64 go vet ./cmd/equipo-runner/... ./internal/runner/... ./internal/wire/... ./internal/release/...
go tool fiesta spacing -skip tokens.css internal/equipo/static
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget size
internal/equipo/chat: 10650 test lines, over the 10522 its exemption (line 59) allows
internal/equipo/chat: 35801 source lines, over the 35789 its exemption (line 59) allows
internal/wire: 7448 source lines, over the 7445 its exemption (line 18) allows
rastrillo: budget size: 3 problem(s)
exit status 1
make[1]: *** [Makefile:75: budget] Error 1
machine: 32 CPUs, load 63.64, cpu waiting 38.82%, memory waiting 0.00%, io waiting 0.51%
make: *** [Makefile:113: ci-shard] Error 2

amadan: step check shard 25 of 29 failed: exit status 2
--- 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 40.1%, load 24.84
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 55.42, cpu waiting 33.55%, memory waiting 0.00%, io waiting 0.66%
--- 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 40.1%, load 24.84
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 10
vulnerabilities in modules you require, but your code doesn't appear to call
these vulnerabilities.
Use '-show verbose' for more details.
machine: 32 CPUs, load 38.40, cpu waiting 23.33%, memory waiting 0.00%, io waiting 0.84%
--- 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 40.1%, load 24.84
shard 28: make gitleaks
11:46PM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
11:46PM INF 1220 commits scanned.
11:46PM INF scanned ~67709556 bytes (67.71 MB) in 24.5s
11:46PM INF no leaks found
machine: 32 CPUs, load 58.43, cpu waiting 35.07%, memory waiting 0.00%, io waiting 0.64%

amadan: job failed at step check shards 22, 25 of 29 — its output is above, not at the tail of this log
diff --git a/docs/api/equipo-v1.md b/docs/api/equipo-v1.md
index 8dac8a60..2e3b16bc 100644
--- a/docs/api/equipo-v1.md
+++ b/docs/api/equipo-v1.md
@@ -223,7 +223,7 @@ Project items are ordered with your stars first, followed by recent team activit
For a plain conversation, the server resolves exact trusted names: owner-set team names, titles set by an owner, and repository keys (`amadan.net/owner/name`, also accepted as `owner/name`). When no owner-set title exists, the repository basename also matches. A unique trusted match takes priority over a learned personal name. A personal name can resolve a name with no trusted match or with several trusted matches. An unknown or ambiguous name opens a placement card only in a person turn whose request asks for work in a named project. A person turn responds to a person's message. A move-in turn is the Coordinator's initial setup work. Discovery searches, move-in turns and explore turns do not open that card.
-The card offers up to five reachable projects and, when more are available, "Choose another project." Starred projects come first. Name similarity and recent activity order the remaining choices. Each option is at most 80 bytes. Answer through `POST /api/v1/cards/{id}/answer`. The server marks the typed placement card with `placement_by_name: true`, including after a remember-name opt-out. Ordinary questions without options do not carry this marker. Choosing another project keeps the card open, increments its revision and replaces the options with a text field. That response has the updated `card`; its `message` and `turn` are empty, and no turn starts. Submit the new revision and a project name or repository as `choice`. An unresolved or ambiguous name returns 422 `invalid_input`, leaving the card open. An open typed placement card can also take a composer message in that same conversation as its answer, including device `POST /api/v1/messages`. The whole message must resolve to one available project using the resolver above, or be that name in one of these short phrases: "It should go in <name>", "Put it in <name>" or "Use <name>", optionally ending with " please". Matching ignores case. A valid answer closes the card and resumes the original request, keeping the person's complete words in history. A composer message passes through an open card unless it clearly names one available project as described above. Messages with `project_id` or attachments always follow normal send behavior. Cards that are set aside, answered or closed never consume composer messages. An open card never causes a composer message to return 422. Retries preserve the original message and outcome. Other conversations are unaffected.
+The card offers up to five reachable projects and, when more are available, "Choose another project." Starred projects come first. Name similarity and recent activity order the remaining choices. Each option is at most 80 bytes. Answer through `POST /api/v1/cards/{id}/answer`. The server marks the typed placement card with `placement_by_name: true`, including after a remember-name opt-out. Ordinary questions without options do not carry this marker. Every placement question, with options or by name, also carries `placement_question: true`; notifications never offer an action on it, so it opens in the app. Choosing another project keeps the card open, increments its revision and replaces the options with a text field. That response has the updated `card`; its `message` and `turn` are empty, and no turn starts. Submit the new revision and a project name or repository as `choice`. An unresolved or ambiguous name returns 422 `invalid_input`, leaving the card open. An open typed placement card can also take a composer message in that same conversation as its answer, including device `POST /api/v1/messages`. The whole message must resolve to one available project using the resolver above, or be that name in one of these short phrases: "It should go in <name>", "Put it in <name>" or "Use <name>", optionally ending with " please". Matching ignores case. A valid answer closes the card and resumes the original request, keeping the person's complete words in history. A composer message passes through an open card unless it clearly names one available project as described above. Messages with `project_id` or attachments always follow normal send behavior. Cards that are set aside, answered or closed never consume composer messages. An open card never causes a composer message to return 422. Retries preserve the original message and outcome. Other conversations are unaffected.
A named placement card includes optional `remember_name`, the suggested private name. The web card shows a checked "Remember '<name>' for this project" box and an editable name. Card answers accept optional `remember_name`: only an explicit nonempty string confirms a name. An empty string or omission skips learning. The field is honoured only on a card that already carries a suggestion. The web sends the name explicitly when the box is checked. Clients without the control do not learn a name on a plain tap. The model may suggest the prefilled name, but only the person's final project answer with explicit `remember_name` learns it. Choosing another project preserves an edited suggestion or removes it after an opt-out. Learning waits for the later valid answer, which must also send the name explicitly. Composer answers skip learning. Names are trimmed and stored in lowercase for that person only. They must contain at least three Unicode characters, be at most 120 bytes, be valid UTF-8, and contain no newline or NUL. Stopwords and feature phrases are not learned. An ineligible name skips learning without refusing the project choice. Capitalisation and sentence shape do not determine learning. A repository key outside the allowlist retains the existing access-request flow.
diff --git a/docs/api/equipo-v1.openapi.json b/docs/api/equipo-v1.openapi.json
index d4226bab..a8cd7a2c 100644
--- a/docs/api/equipo-v1.openapi.json
+++ b/docs/api/equipo-v1.openapi.json
@@ -19019,6 +19019,9 @@
"placement_by_name": {
"type": "boolean"
},
+ "placement_question": {
+ "type": "boolean"
+ },
"remember_name": {
"type": "string"
},
diff --git a/docs/superpowers/plans/CONTROLLER-REPORT-notification-actions.md b/docs/superpowers/plans/CONTROLLER-REPORT-notification-actions.md
index 1fd1f3d9..c3cc51af 100644
--- a/docs/superpowers/plans/CONTROLLER-REPORT-notification-actions.md
+++ b/docs/superpowers/plans/CONTROLLER-REPORT-notification-actions.md
@@ -147,3 +147,64 @@ spacing diagnostics added. Main `a2619ce3` had green CI. No browser templates,
CSS or scripts differ from main. The first local narrow browser invocation
could not locate Chromium; the installed Playwright browser was then located,
but load exceeded 20, so the next narrow run is left to hub CI.
+
+## Review fixes (Fable)
+
+Taken over from the Codex implementer's uncommitted worktree. The roster
+spacing change moved to its own branch, `fix/roster-visual-report-card`
+(`4836c9f2`); this branch's `roster_browser_test.go` is back to main's, so
+the diagnostic log added at `18cd2fcb` is gone too.
+
+- **Placement cards are open-only.** `cardView` sets `placement_question`
+ on every placement question (options or by name; OpenAPI and API notes
+ updated). `notificationIntent` returns open-only when `Placement` is set.
+ Native decodes the field and, after the bound card read, opens any
+ placement question instead of writing. `TestNotificationPlacementPushRuleIsOpenOnly`
+ covers both states through the real card-event enqueue and `cardView`.
+- **Try again eligibility.** The intent is offered exactly when
+ `retryReason` accepts the failed, terminated newest step, and never for
+ a Merge or Publish step. The bound write still goes through
+ `personRetry`. Enqueued through the real task push: Engineering and
+ Checks failures are offered; Merge, non-owner, another step person and
+ no runner are not. Failed Review and Publish steps raise no task alert
+ (Review reads `NeedsReviewBlocked`; `task_fails` fires only on
+ `NeedsRetry`, and progress ignores Publish), so their eligibility is
+ read through `notificationIntent` directly: Review is offered, Publish is not.
+- **403 on registration.** When a registration with actions is refused 403,
+ `PushRegistrar` re-reads `/capabilities` and, when actions are off,
+ registers again without the action fields (once; no loop).
+- **App-side guard.** The dispatcher writes the journal and POSTs only
+ while protected data is available and the app is active; otherwise it
+ opens the card. The guard sits immediately before the journal save and
+ before the POST, not at the start of the action: a `.foreground`
+ response usually arrives while the app is still `.inactive`, and the
+ card and capability reads are harmless. A restored journal entry skips
+ the save, so the POST guard is tested separately. The inherited
+ in-progress change was trimmed: a check in the 409 path dismissed by the
+ card ID, not the notice, and the `answer()` placement check was
+ unreachable (run re-reads the card first).
+
+Evidence: notification Go tests pass; `./internal/wire/...` and
+`plan3test -run 'Notification|Contract'` pass; Linux build, vet and
+staticcheck v0.7.0 on `chat` and `wire` are clean. Native: 22 notification
+tests in 10 suites pass; iOS Simulator app build succeeds (UIKit branch).
+
+Mutations, every one killed and restored:
+
+| Guard | Killed by |
+|---|---|
+| intent skips `Placement` | PlacementPushRuleIsOpenOnly/options, /by-name |
+| `cardView` sets `PlacementQuestion` | PlacementPushRuleIsOpenOnly/options, /by-name |
+| intent consults `retryReason` | RetryPushRuleRefusals/member, /other-step-person, /no-runner |
+| intent refuses Merge | RetryPushRuleRefusals/merge |
+| intent refuses Publish | RetryPushRuleRefusals/publish |
+| native placement refusal after read | wrongBindingDisabledCapabilityAndStaleCardNeverWrite |
+| native decodes `placement_question` | wrongBindingDisabledCapabilityAndStaleCardNeverWrite |
+| foreground guard before journal save | lockedOrInactiveBeforeOrAfterReadNeverJournalsOrPosts |
+| foreground guard before POST | restoredReplyNeverResendsWhileLockedOrInactive |
+| guard requires protected data | both foreground tests |
+| guard requires active | both foreground tests |
+| registrar 403 fallback | forbiddenActionsRefreshCapabilitiesAndRegisterOpenOnly |
+
+Not run: physical-device checks (above), browser tests (hub CI). The
+capability stays off by default.
diff --git a/internal/equipo/chat/notification_payload.go b/internal/equipo/chat/notification_payload.go
index 0ed4fed6..312d47ea 100644
--- a/internal/equipo/chat/notification_payload.go
+++ b/internal/equipo/chat/notification_payload.go
@@ -30,6 +30,11 @@ func (t *txn) notificationIntent(in push.Intent, device push.Registration) push.
}
switch c.Kind {
case wire.CardQuestion:
+ // A placement question (options or by name) resolves a project
+ // in the app, never from the alert.
+ if c.Placement != "" {
+ return in
+ }
in.Category = "equipo.question.choices.v1"
if len(options) == 0 && c.Question != "" && in.Body == c.Question && in.BodyKey == "" {
in.Category = "equipo.question.text.v1"
@@ -54,7 +59,13 @@ func (t *txn) notificationIntent(in push.Intent, device push.Registration) push.
return in
}
st, found, err := t.latestStep(k.ID)
- if err != nil || !found || st.State != wire.StepFailed || !st.Terminated || st.Revision <= 0 || st.Attempt <= 0 {
+ if err != nil || !found || st.State != wire.StepFailed || !st.Terminated || st.Revision <= 0 || st.Attempt <= 0 ||
+ st.Specialist == wire.SpecialistMerge || st.Specialist == wire.SpecialistPublish {
+ return in
+ }
+ // Offered exactly when the person's Retry would accept this step;
+ // the bound write still goes through personRetry.
+ if reason, err := t.retryReason(k, st, device.Person); err != nil || reason != "" {
return in
}
a.TaskRevision, a.StepID, a.StepRevision, a.Attempt = k.Revision, st.ID, st.Revision, st.Attempt
diff --git a/internal/equipo/chat/notification_review_test.go b/internal/equipo/chat/notification_review_test.go
new file mode 100644
index 00000000..16ca9c55
--- /dev/null
+++ b/internal/equipo/chat/notification_review_test.go
@@ -0,0 +1,128 @@
+package chat
+
+import (
+ "amadan.net/oficina/equipo/internal/equipo/push"
+ "amadan.net/oficina/equipo/internal/wire"
+ "encoding/json"
+ "gorm.io/gorm"
+ "testing"
+)
+
+func TestNotificationPlacementPushRuleIsOpenOnly(t *testing.T) {
+ for _, byName := range []bool{false, true} {
+ t.Run(map[bool]string{false: "options", true: "by-name"}[byName], func(t *testing.T) {
+ r := newPushRig(t)
+ r.s.SetNotificationActions(true)
+ r.register(hkOwner, "cr_phone", wire.RegisterPush{Token: pushDevice, Environment: wire.APNsProduction, Platform: wire.PlatformIOS, ActionsVersion: 1, BindingID: "12345678-1234-4234-8234-123456789abc"})
+ r.clear()
+ placement, _ := json.Marshal(placementData{ByName: byName})
+ options := `["Use existing","New project"]`
+ if byName {
+ options = `[]`
+ }
+ c := cardRecord{ID: "c_placement", Person: hkOwner, Kind: wire.CardQuestion, State: wire.CardOpen, Question: "Which project?", Options: options, Placement: string(placement), Revision: 1, CreatedAt: r.now, UpdatedAt: r.now}
+ r.must(r.tx(func(tx *txn) error {
+ if err := tx.db.Create(&c).Error; err != nil {
+ return err
+ }
+ return tx.cardEvent(c)
+ }))
+ rows := r.outbox()
+ if len(rows) != 1 {
+ t.Fatalf("rows %d", len(rows))
+ }
+ var p struct {
+ APS struct{ Category string }
+ Equipo wire.PushData
+ }
+ r.must(json.Unmarshal([]byte(rows[0].Payload), &p))
+ if p.Equipo.Actions != nil || p.APS.Category != push.CategoryNeedsYou {
+ t.Fatalf("placement offered action: %+v", p)
+ }
+ var view wire.Card
+ r.must(r.tx(func(tx *txn) (err error) { view, err = tx.cardView(c); return err }))
+ if !view.PlacementQuestion || view.PlacementByName != byName {
+ t.Fatalf("placement marker: %+v", view)
+ }
+ })
+ }
+}
+
+// TestNotificationRetryPushRuleRefusals offers Try again exactly when the
+// person's Retry would accept the failed step. Review and Publish failures
+// raise no task alert (a failed Review needs a decision, not a Retry, and a
+// publish never drives the task), so their eligibility is read through
+// notificationIntent directly; every other case uses the real enqueue path.
+func TestNotificationRetryPushRuleRefusals(t *testing.T) {
+ for _, mode := range []string{"valid", "checks", "review", "member", "merge", "publish", "other-step-person", "no-runner"} {
+ t.Run(mode, func(t *testing.T) {
+ r := newPushRig(t)
+ r.s.SetNotificationActions(true)
+ device := wire.RegisterPush{Token: pushDevice, Environment: wire.APNsProduction, Platform: wire.PlatformIOS, ActionsVersion: 1, BindingID: "12345678-1234-4234-8234-123456789abc"}
+ r.register(hkOwner, "cr_phone", device)
+ k := r.task("tk_notify", "Fix", hkOwner)
+ r.stage(&k, wire.StageInProgress)
+ if mode == "member" {
+ r.s.authority.Me = func(*gorm.DB, string) (wire.Me, error) { return wire.Me{Role: "member"}, nil }
+ }
+ if mode == "no-runner" {
+ r.s.authority.PrimaryRunner = func(*gorm.DB, string) (string, error) { return "", nil }
+ }
+ specialist := map[string]string{"checks": wire.SpecialistChecks, "review": wire.SpecialistReview, "merge": wire.SpecialistMerge, "publish": wire.SpecialistPublish}[mode]
+ if specialist == "" {
+ specialist = wire.SpecialistEngineering
+ }
+ person := hkOwner
+ if mode == "other-step-person" {
+ person = "other@example.com"
+ }
+ offered := mode == "valid" || mode == "checks" || mode == "review"
+ r.clear()
+ r.must(r.tx(func(tx *txn) error {
+ st := stepRecord{ID: "st_notify", TaskID: k.ID, Idx: 1, Person: person, Specialist: specialist, State: wire.StepFailed, Terminated: true, Revision: 1, Attempt: 1, CreatedAt: r.now, UpdatedAt: r.now}
+ if err := tx.db.Create(&st).Error; err != nil {
+ return err
+ }
+ return tx.saveTask(&k)
+ }))
+ check := func(category string, actions *wire.PushActions) {
+ t.Helper()
+ if offered && (actions == nil || category != "equipo.stopped.v1" || actions.StepID != "st_notify") {
+ t.Fatalf("missing retry: %s %+v", category, actions)
+ }
+ if !offered && actions != nil {
+ t.Fatalf("refused step offered retry: %s %+v", category, actions)
+ }
+ }
+ alerts := 0
+ for _, row := range r.outbox() {
+ if row.Kind != push.KindAlert && row.Kind != push.KindPassive {
+ continue
+ }
+ alerts++
+ var p struct {
+ APS struct{ Category string }
+ Equipo wire.PushData
+ }
+ r.must(json.Unmarshal([]byte(row.Payload), &p))
+ check(p.APS.Category, p.Equipo.Actions)
+ }
+ if mode == "review" || mode == "publish" {
+ if alerts != 0 {
+ t.Fatalf("%s failure raised %d task alerts", mode, alerts)
+ }
+ var out push.Intent
+ r.must(r.tx(func(tx *txn) error {
+ in := push.Intent{Kind: push.KindPassive, Data: wire.PushData{Kind: wire.PushTask, TaskID: k.ID}}
+ out = tx.notificationIntent(in, push.Registration{Person: hkOwner, ActionsVersion: 1, BindingID: device.BindingID})
+ return nil
+ }))
+ check(out.Category, out.Data.Actions)
+ return
+ }
+ if alerts == 0 {
+ t.Fatal("real task push did not enqueue an alert")
+ }
+ })
+ }
+}
diff --git a/internal/equipo/chat/projects.go b/internal/equipo/chat/projects.go
index d469afba..ebe629e1 100644
--- a/internal/equipo/chat/projects.go
+++ b/internal/equipo/chat/projects.go
@@ -290,6 +290,7 @@ func (t *txn) cardView(c cardRecord) (wire.Card, error) {
}
v.RememberName = data.RequestedName
v.PlacementByName = data.ByName
+ v.PlacementQuestion = c.Kind == wire.CardQuestion
}
if c.Access != "" {
if err := json.Unmarshal([]byte(c.Access), &v.Access); err != nil {
diff --git a/internal/thintest/roster_browser_test.go b/internal/thintest/roster_browser_test.go
index 52b21fb2..93cbe49e 100644
--- a/internal/thintest/roster_browser_test.go
+++ b/internal/thintest/roster_browser_test.go
@@ -38,7 +38,6 @@ func TestBrowserRosterVisual(t *testing.T) {
p.check(`[...document.querySelectorAll('[equipo-roster-facts] small')].every(e=>getComputedStyle(e).whiteSpace==='normal' && e.scrollWidth<=e.clientWidth+1)`, "fact details truncate")
p.check(`(()=>{const c=document.querySelector('[equipo-roster-byline] b'),m=document.querySelector('[equipo-message="incoming"] [equipo-message-meta] strong');return !m||getComputedStyle(c).fontSize===getComputedStyle(m).fontSize})()`, "byline sizes differ")
p.check(`[...document.querySelectorAll('[equipo-card="task"], [equipo-card="merge"]')].every(c=>c.querySelector('[equipo-roster-project]')?.textContent.includes('Sample') && c.querySelector('[equipo-roster-project] [equipo-mono]'))`, "task and coordinator cards lack project context")
- t.Log("report spacing", eval[string](p, `(()=>{const c=document.querySelector('[equipo-roster-card]'),b=c.previousElementSibling,r=c.querySelector('[equipo-roster-report]');return JSON.stringify({card:c.outerHTML.slice(0,350),padding:getComputedStyle(c).paddingTop,bylineMargin:getComputedStyle(b).marginBottom,gap:getComputedStyle(r).rowGap,factsPadding:getComputedStyle(c.querySelector('[equipo-roster-facts]')).paddingTop})})()`))
p.check(`(()=>{const c=document.querySelector('[equipo-roster-card]'),b=c.previousElementSibling,r=c.querySelector('[equipo-roster-report]');return parseFloat(getComputedStyle(c).paddingTop)===0 && parseFloat(getComputedStyle(b).marginBottom)===8 && parseFloat(getComputedStyle(r).rowGap)===12 && parseFloat(getComputedStyle(c.querySelector('[equipo-roster-facts]')).paddingTop)===12})()`, "report spacing left the inset scale")
if width == 390 {
p.check(`document.querySelector('[equipo-roster-links] [data-report-next]').getBoundingClientRect().height>=44`, "task button lost its phone target")
diff --git a/internal/wire/api.go b/internal/wire/api.go
index 5f5b32a0..7378c47b 100644
--- a/internal/wire/api.go
+++ b/internal/wire/api.go
@@ -355,19 +355,22 @@ type AddProject struct {
// Card is something in the conversation the person can act on: a project
// the coordinator added (Remove) or a question (answer).
type Card struct {
- PlacementByName bool `json:"placement_by_name,omitempty"`
- RememberName string `json:"remember_name,omitempty"`
- Access *AccessRequest `json:"access,omitempty"`
- ID string `json:"id"`
- Revision int64 `json:"revision"`
- Kind string `json:"kind"`
- State string `json:"state"`
- TurnID string `json:"turn_id"`
- ProjectID string `json:"project_id"`
- Name string `json:"name"`
- Question string `json:"question"`
- Options []string `json:"options"`
- Choice string `json:"choice"`
+ PlacementByName bool `json:"placement_by_name,omitempty"`
+ // PlacementQuestion marks every placement question, with options or
+ // by name: it is answered in the app, never from a notification.
+ PlacementQuestion bool `json:"placement_question,omitempty"`
+ RememberName string `json:"remember_name,omitempty"`
+ Access *AccessRequest `json:"access,omitempty"`
+ ID string `json:"id"`
+ Revision int64 `json:"revision"`
+ Kind string `json:"kind"`
+ State string `json:"state"`
+ TurnID string `json:"turn_id"`
+ ProjectID string `json:"project_id"`
+ Name string `json:"name"`
+ Question string `json:"question"`
+ Options []string `json:"options"`
+ Choice string `json:"choice"`
// TaskID names the task a task card reports.
TaskID string `json:"task_id"`
CreatedAt time.Time `json:"created_at"`
diff --git a/native/apple/Sources/EquipoKit/API/Thin.swift b/native/apple/Sources/EquipoKit/API/Thin.swift
index 9086996a..89beca89 100644
--- a/native/apple/Sources/EquipoKit/API/Thin.swift
+++ b/native/apple/Sources/EquipoKit/API/Thin.swift
@@ -44,6 +44,8 @@ public struct ThinTurn: Codable, Sendable, Identifiable, Equatable {
public struct ThinCard: Codable, Sendable, Identifiable, Equatable {
public var rememberName: String? = nil
public var placementByName: Bool? = nil
+ public var placementQuestion: Bool? = nil
+ public var isPlacementQuestion: Bool { placementQuestion == true || placementByName == true }
public var isTypedProjectChoice: Bool { placementByName == true }
public var answerFieldKey: String { isTypedProjectChoice ? "projects.other" : "chat.card.answer" }
public var id: String
diff --git a/native/apple/Sources/EquipoKit/Push/NotificationDispatcher.swift b/native/apple/Sources/EquipoKit/Push/NotificationDispatcher.swift
index dbd86430..f9244615 100644
--- a/native/apple/Sources/EquipoKit/Push/NotificationDispatcher.swift
+++ b/native/apple/Sources/EquipoKit/Push/NotificationDispatcher.swift
@@ -1,6 +1,25 @@
import Foundation
import Observation
import EquipoShareCore
+#if os(iOS)
+import UIKit
+#elseif os(macOS)
+import AppKit
+#endif
+
+struct NotificationAppState {
+ var active: Bool
+ var protectedData: Bool
+ @MainActor static var current: Self {
+ #if os(iOS)
+ Self(active: UIApplication.shared.applicationState == .active, protectedData: UIApplication.shared.isProtectedDataAvailable)
+ #elseif os(macOS)
+ Self(active: NSApplication.shared.isActive, protectedData: true)
+ #else
+ Self(active: false, protectedData: false)
+ #endif
+ }
+}
@MainActor @Observable final class NotificationNotice: Identifiable {
let response: NotificationResponse
@@ -25,7 +44,10 @@ import EquipoShareCore
var notices: [NotificationNotice] = []
var onRoute: ((PushRoute) -> Void)?
private struct Stored: Codable { let response: NotificationResponse; let write: PendingWrite }
- init(journal: ActionJournal) { self.journal = journal }
+ private let appState: () -> NotificationAppState
+ init(journal: ActionJournal, appState: @escaping () -> NotificationAppState = { .current }) {
+ self.journal = journal; self.appState = appState
+ }
static func live() -> NotificationDispatcher {
let folder = FileManager.default.urls(for: .applicationSupportDirectory, in: .userDomainMask)[0]
.appendingPathComponent("Equipo/NotificationActions", isDirectory: true)
@@ -83,6 +105,16 @@ import EquipoShareCore
notice.choice = choice
await run(notice, session: session, selection: selection, selectedChoice: choice)
}
+ /// Writes only while the device is unlocked and the app is active in the
+ /// foreground; otherwise the notification opens its card instead.
+ private func foreground(_ response: NotificationResponse) -> Bool {
+ let state = appState()
+ guard state.active && state.protectedData else {
+ onRoute?(response.route); dismiss(response.binding.notificationId)
+ return false
+ }
+ return true
+ }
private func run(_ notice: NotificationNotice, session: EquipoSession, selection: NotificationSelection, selectedChoice: String? = nil) async {
let response = notice.response, id = notice.id
guard !inFlight.contains(id), current(session, selection) else { return }
@@ -112,6 +144,8 @@ import EquipoShareCore
let card = try await session.client.notificationCard(cardID)
guard current(session, selection) else { return }
session.applyCard(card)
+ // A placement question resolves a project in the app, never here.
+ guard !card.isPlacementQuestion else { onRoute?(response.route); dismiss(id); return }
guard card.revision == response.binding.cardRevision, card.isOpen else {
throw EquipoAPIError.server(status: 409, body: APIErrorBody(code: "card_stale", copyKey: "", requestId: "", currentRevision: nil))
}
@@ -139,9 +173,10 @@ import EquipoShareCore
let body: [String: AnyEncodable] = ["choice": .init(choice), "revision": .init(card.revision), "idempotency_key": .init(id)]
write = PendingWrite(body: try EquipoJSON.encoder.encode(body), ifMatch: card.revision, key: id)
}
+ guard foreground(response) else { return }
try journal.save(id: id, binding: selection.id, body: JSONEncoder().encode(Stored(response: response, write: write)))
}
- guard current(session, selection) else { return }
+ guard current(session, selection), foreground(response) else { return }
if response.intent == .retry, let task = response.taskID { try await session.client.retryNotification(task: task, write: write) }
else if let card = response.cardID { let _: Answered = try await session.client.answer(card: card, write) }
else { throw EquipoAPIError.undecodable }
diff --git a/native/apple/Sources/EquipoKit/Push/PushRegistrar.swift b/native/apple/Sources/EquipoKit/Push/PushRegistrar.swift
index 12c363f0..4ccc54d8 100644
--- a/native/apple/Sources/EquipoKit/Push/PushRegistrar.swift
+++ b/native/apple/Sources/EquipoKit/Push/PushRegistrar.swift
@@ -137,6 +137,14 @@ public final class PushRegistrar {
accepted = (bearer, body)
} catch let error as EquipoAPIError {
guard lifetime?.isActive != false, generation == self.generation else { return }
+ if error.status == 403, body.actionsVersion == 1 {
+ let enabled = try? await client.notificationActionsEnabled()
+ guard lifetime?.isActive != false, generation == self.generation else { return }
+ if enabled == false {
+ actionsEnabled = false; capabilityRead = true; again = true
+ }
+ return
+ }
// A refusal is final for this body; anything else waits for the next sync.
if let status = error.status, status == 400 || status == 422 { refused = (bearer, body) }
return
diff --git a/native/apple/Tests/EquipoKitTests/NotificationActionTests.swift b/native/apple/Tests/EquipoKitTests/NotificationActionTests.swift
index 12735d90..102a5177 100644
--- a/native/apple/Tests/EquipoKitTests/NotificationActionTests.swift
+++ b/native/apple/Tests/EquipoKitTests/NotificationActionTests.swift
@@ -95,3 +95,25 @@ import UserNotifications
}
}
}
+
+@MainActor @Suite struct NotificationRegistrationFallbackTests {
+ @Test func forbiddenActionsRefreshCapabilitiesAndRegisterOpenOnly() async throws {
+ let server = ScriptedTransport()
+ server.on("GET /capabilities", .success(APIResponse(status: 200, data: Data(#"{"notification_actions_v1":true}"#.utf8))))
+ server.on("GET /capabilities", .success(APIResponse(status: 200, data: Data("{}".utf8))))
+ server.on("POST /push-registrations", .success(APIResponse(status: 403, data: Data(#"{"code":"forbidden"}"#.utf8))))
+ server.on("POST /push-registrations", .success(APIResponse(status: 200, data: Data(#"{"environment":"production","platform":"macos","live_activities":false,"updated_at":"2026-11-27T10:00:00Z"}"#.utf8))))
+ let registrar = PushRegistrar(environment: .production, platform: .macos)
+ await registrar.deviceTokenChanged(Data(repeating: 1, count: 32))
+ await registrar.attach(EquipoClient(transport: server, token: "secret"), bindingID: NotificationActionTests.binding)
+ #expect(server.sent("GET /capabilities").count == 2)
+ let posts = server.sent("POST /push-registrations")
+ try #require(posts.count == 2)
+ let raw = try #require(posts[1].body)
+ let body = try #require(JSONSerialization.jsonObject(with: raw) as? [String: Any])
+ #expect(body["actions_version"] == nil)
+ #expect(body["binding_id"] == nil)
+ await registrar.sync()
+ #expect(server.sent("POST /push-registrations").count == 2)
+ }
+}
diff --git a/native/apple/Tests/EquipoKitTests/NotificationDispatchTests.swift b/native/apple/Tests/EquipoKitTests/NotificationDispatchTests.swift
index 1a70874f..8e802b86 100644
--- a/native/apple/Tests/EquipoKitTests/NotificationDispatchTests.swift
+++ b/native/apple/Tests/EquipoKitTests/NotificationDispatchTests.swift
@@ -14,7 +14,7 @@ import EquipoShareCore
let selection = NotificationSelection(id: NotificationActionTests.binding, origin: server.origin,
person: detail.session.account.address!, credential: "fixture", sessionHash: nil)
let directory = FileManager.default.temporaryDirectory.appendingPathComponent(UUID().uuidString)
- let dispatcher = NotificationDispatcher(journal: ActionJournal(directory: directory))
+ let dispatcher = NotificationDispatcher(journal: ActionJournal(directory: directory), appState: { .init(active: true, protectedData: true) })
dispatcher.attach(session: detail.session, selection: selection)
server.on("GET /capabilities", .success(APIResponse(status: 200, data: Data(#"{"notification_actions_v1":true}"#.utf8))))
var snapshot: Snapshot = try Fixture.decode("thin/snapshot")
@@ -33,7 +33,7 @@ import EquipoShareCore
await dispatcher.receive(response)
let first = try #require(server.sent("POST /cards/card_1/answer").first)
#expect(dispatcher.notices.first?.canRetry == true)
- let restored = NotificationDispatcher(journal: ActionJournal(directory: directory))
+ let restored = NotificationDispatcher(journal: ActionJournal(directory: directory), appState: { .init(active: true, protectedData: true) })
restored.attach(session: session, selection: selection)
#expect(restored.notices.first?.canRetry == true)
#expect(server.sent("POST /cards/card_1/answer").count == 1, "restoration must not send automatically")
@@ -48,7 +48,7 @@ import EquipoShareCore
#expect(first.ifMatch == requests[1].ifMatch)
}
@Test func wrongBindingDisabledCapabilityAndStaleCardNeverWrite() async throws {
- for mode in ["binding", "capability", "stale", "options", "ended"] {
+ for mode in ["binding", "capability", "stale", "options", "ended", "placement", "by-name"] {
let (dispatcher, session, server, directory, _) = try Self.setup()
defer { try? FileManager.default.removeItem(at: directory) }
var changes: [String: Any] = [:]
@@ -63,6 +63,14 @@ import EquipoShareCore
snapshot.cards = [card]
server.replace("GET /cards/card_1", with: .success(APIResponse(status: 200, data: try Self.encode(card))))
}
+ if mode == "placement" || mode == "by-name" {
+ let snapshot: Snapshot = try Fixture.decode("thin/snapshot")
+ var card = try #require(snapshot.cards?.first)
+ card.id = "card_1"; card.revision = 4; card.kind = "question"; card.state = "open"; card.options = []
+ var raw = try #require(JSONSerialization.jsonObject(with: Self.encode(card)) as? [String: Any])
+ raw[mode == "placement" ? "placement_question" : "placement_by_name"] = true
+ server.replace("GET /cards/card_1", with: .success(APIResponse(status: 200, data: try JSONSerialization.data(withJSONObject: raw))))
+ }
let response = try #require(NotificationResponse(userInfo: NotificationActionTests.payload(changes), category: "equipo.question.text.v1", action: "answer", text: "answer"))
await dispatcher.receive(response)
#expect(server.requests.allSatisfy { $0.method == "GET" })
@@ -83,7 +91,7 @@ import EquipoShareCore
let selection = NotificationSelection(id: NotificationActionTests.binding, origin: transport.origin, person: session.account.address!, credential: "fixture", sessionHash: nil)
let directory = FileManager.default.temporaryDirectory.appendingPathComponent(UUID().uuidString)
defer { try? FileManager.default.removeItem(at: directory) }
- let dispatcher = NotificationDispatcher(journal: ActionJournal(directory: directory))
+ let dispatcher = NotificationDispatcher(journal: ActionJournal(directory: directory), appState: { .init(active: true, protectedData: true) })
dispatcher.attach(session: session, selection: selection)
var payload = NotificationActionTests.payload(["card_kind": "merge", "card_revision": card.revision])
var data = try #require(payload["equipo"] as? [String: Any]); data["card_id"] = card.id; data["task_id"] = task.id; payload["equipo"] = data
@@ -121,7 +129,7 @@ private struct NotificationMergeTransport: EquipoTransport {
let gate = GatedTransport(inner: server, route: "GET /capabilities")
gate.hold = true
let gatedSession = try TaskDetailModelTests.model(gate).session
- let dispatcher = NotificationDispatcher(journal: ActionJournal(directory: directory))
+ let dispatcher = NotificationDispatcher(journal: ActionJournal(directory: directory), appState: { .init(active: true, protectedData: true) })
dispatcher.attach(session: gatedSession, selection: selection)
let response = try #require(NotificationResponse(userInfo: NotificationActionTests.payload(), category: "equipo.question.text.v1", action: "answer", text: "answer"))
let work = Task { await dispatcher.receive(response) }
@@ -172,7 +180,7 @@ private struct NotificationMergeTransport: EquipoTransport {
defer { try? FileManager.default.removeItem(at: directory) }
let gate = GatedTransport(inner: server, route: "POST /cards/card_1/answer")
let session = try TaskDetailModelTests.model(gate).session
- let dispatcher = NotificationDispatcher(journal: ActionJournal(directory: directory))
+ let dispatcher = NotificationDispatcher(journal: ActionJournal(directory: directory), appState: { .init(active: true, protectedData: true) })
dispatcher.attach(session: session, selection: selection)
server.on("POST /cards/card_1/answer", .failure(EquipoAPIError.offline))
let response = try #require(NotificationResponse(userInfo: NotificationActionTests.payload(), category: "equipo.question.text.v1", action: "answer", text: "answer"))
@@ -200,3 +208,49 @@ private struct NotificationMergeTransport: EquipoTransport {
#expect(try ActionJournal(directory: directory).load(id: first.binding.notificationId, binding: selection.id) == before)
}
}
+
+@MainActor @Suite struct NotificationForegroundTests {
+ @Test func lockedOrInactiveBeforeOrAfterReadNeverJournalsOrPosts() async throws {
+ for mode in ["locked", "inactive", "locked-late", "inactive-late"] {
+ let (_, _, server, directory, selection) = try NotificationDispatchTests.setup()
+ defer { try? FileManager.default.removeItem(at: directory) }
+ let gate = GatedTransport(inner: server, route: "GET /cards/card_1")
+ gate.hold = mode.hasSuffix("late")
+ let session = try TaskDetailModelTests.model(gate).session
+ var state = NotificationAppState(active: true, protectedData: true)
+ if mode == "locked" { state.protectedData = false }
+ if mode == "inactive" { state.active = false }
+ let dispatcher = NotificationDispatcher(journal: ActionJournal(directory: directory), appState: { state })
+ dispatcher.attach(session: session, selection: selection)
+ var route: PushRoute?
+ dispatcher.onRoute = { route = $0 }
+ let response = try #require(NotificationResponse(userInfo: NotificationActionTests.payload(), category: "equipo.question.text.v1", action: "answer", text: "answer"))
+ let job = Task { await dispatcher.receive(response) }
+ if mode.hasSuffix("late") {
+ await gate.waitUntilHeld()
+ if mode == "locked-late" { state.protectedData = false } else { state.active = false }
+ gate.release()
+ }
+ await job.value
+ #expect(server.sent("POST /cards/card_1/answer").isEmpty)
+ #expect(try ActionJournal(directory: directory).pending(binding: selection.id).isEmpty)
+ #expect(route == .card("card_1"))
+ }
+ }
+ @Test func restoredReplyNeverResendsWhileLockedOrInactive() async throws {
+ for state in [NotificationAppState(active: false, protectedData: true), NotificationAppState(active: true, protectedData: false)] {
+ let (dispatcher, session, server, directory, selection) = try NotificationDispatchTests.setup()
+ defer { try? FileManager.default.removeItem(at: directory) }
+ server.on("POST /cards/card_1/answer", .failure(EquipoAPIError.offline))
+ let response = try #require(NotificationResponse(userInfo: NotificationActionTests.payload(), category: "equipo.question.text.v1", action: "answer", text: "answer"))
+ await dispatcher.receive(response)
+ try #require(server.sent("POST /cards/card_1/answer").count == 1)
+ let restored = NotificationDispatcher(journal: ActionJournal(directory: directory), appState: { state })
+ restored.attach(session: session, selection: selection)
+ let notice = try #require(restored.notices.first)
+ await restored.retry(notice)
+ #expect(server.sent("POST /cards/card_1/answer").count == 1)
+ #expect(try ActionJournal(directory: directory).load(id: response.binding.notificationId, binding: selection.id) != nil, "the exact request stays for a foreground retry")
+ }
+ }
+}