oficina / equipo Public

Fix native Projects review findings and action regressions

Preserve per-card edits, consume composer selections, order project lists by event cursor, and distinguish typed placement from ordinary questions. Keep send notices specific, release removed selections, and scope star rollback to its field. Cover API error copy with AST data flow across internal packages.
Co-Authored-By: Codex GPT-6-Astra <noreply@openai.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev a37ce08a8eb581f238fae0e9db28fc9751713eec parent e7419bf
28 files changed, +797 −97
  • .rastrillo/budgets.txt +2 −2
  • docs/api/equipo-v1.md +4 −1
  • docs/api/equipo-v1.openapi.json +8 −0
  • internal/equipo/api_copy_scan_test.go +56 −0
  • internal/equipo/api_copy_test.go +211 −32
  • internal/equipo/chat/project_native_review_test.go +51 −0
  • internal/equipo/chat/projects.go +6 −1
  • internal/wire/api.go +14 −12
  • internal/wire/wiretest/testdata/api/projects.json +1 −1
  • native/PROJECTS-REPORT.md +84 −4
  • native/apple/Sources/EquipoKit/API/Projects.swift +1 −0
  • native/apple/Sources/EquipoKit/API/Thin.swift +3 −0
  • native/apple/Sources/EquipoKit/Projects/ProjectCatalog.swift +22 −5
  • native/apple/Sources/EquipoKit/Projects/QuestionAnswerDraft.swift +13 −0
  • native/apple/Sources/EquipoKit/Session/EquipoSession.swift +35 −4
  • native/apple/Sources/EquipoKit/UI/LiveCards.swift +9 −13
  • native/apple/Sources/EquipoKit/UI/RosterViews.swift +35 −0
  • native/apple/Sources/EquipoKit/UI/Screens/ConversationScreen.swift +3 −3
  • native/apple/Sources/EquipoKit/UI/Screens/ProjectsScreen.swift +7 −5
  • native/apple/Sources/EquipoMac/LiveTranscript.swift +33 −7
  • native/apple/Sources/EquipoMac/MacMainView.swift +1 −2
  • native/apple/Tests/EquipoKitTests/Fixtures/project-card.json +2 −1
  • native/apple/Tests/EquipoKitTests/Fixtures/project-list.json +2 −1
  • native/apple/Tests/EquipoKitTests/Fixtures/project-typed-answer.json +2 −1
  • native/apple/Tests/EquipoKitTests/Fixtures/thin/projects.json +1 −0
  • native/apple/Tests/EquipoKitTests/ProjectsReviewTests.swift +149 −0
  • native/apple/Tests/EquipoKitTests/ProjectsTests.swift +28 −2
  • scripts/runner-reference-allowlist.json +14 −0

CI passed — run details

CI log
=== prepare ===
ci-box: machine: aarch64, 32 CPUs, 62 GiB memory, kernel 7.0.0-1017-aws
ci-box: python 3.12.3; Docker version 29.1.3, build 29.1.3-0ubuntu3~24.04.2
ci-box: user namespaces allowed: 233151
ci-box: cgroup: cgroup2fs
ci-box: disk /home/ci/work/repos/oficina__equipo/wt/native__projects: Type  Size Avail | ext4   96G   86G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type  Size Avail | ext4   96G   86G
ci-box: bwrap: fetched and verified in 0.3s
ci-box: claude: fetched and verified in 1.5s
ci-box: codex: fetched and verified in 3.4s
ci-box: codex-code-mode-host: fetched and verified in 1.3s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.4s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: image pulled in 9.8s
ci-box: pi: installed and verified in 7.5s
ci-box: opencode: installed and verified in 2.2s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 8.9s
ci-box: clone deepened in 4.6s
ci-box: file times set from content: 2926 files, 191 directories
ci-box: ready in 18.7s
=== copy ===
EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipotest	0.146s
=== 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.6s
+ go list -export -test -tags browser,testbuild -f  ./internal/equipo ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
  3.2s
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -version
staticcheck 2026.1 (v0.7.0)
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 -version
Go: go1.26.11
Scanner: govulncheck@v1.8.0
DB: https://vuln.go.dev
DB updated: 2026-11-11 02:51:11 +0000 UTC

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

receipt: test step 1m18.867s 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.117s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m17.12s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 76.40, cpu waiting 44.49%, memory waiting 0.00%, io waiting 1.10%
--- 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 1m18.751s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m16.621s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m16.61s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 76.40, cpu waiting 44.49%, memory waiting 0.00%, io waiting 1.10%
--- shard 2 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-connections: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadlessConnections$|^TestHeadlessTokenPasteEndToEnd$|^TestHeadlessTokenConnection$' ./internal/headless

receipt: test step 1m19.758s 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.922s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m8.04s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 5.37s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.51s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 76.40, cpu waiting 44.57%, memory waiting 0.00%, io waiting 1.07%
--- shard 3 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-mac: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestMacWorker$|^TestHeadlessAttachments$|^TestHeadlessPrewarm$|^TestHeadless$/^1_first_token$|^TestHeadless$/^6_quick_messages$|^TestHeadless$/^8_instance_restart$|^TestHeadless$/^3_runner_offline$' ./internal/headless

receipt: test step 1m17.085s 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.223s amadan.net/oficina/equipo/internal/headless
receipt: slow test 37.02s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 20.64s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 8.98s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
receipt: slow test 8.56s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
machine: 32 CPUs, load 76.40, cpu waiting 44.37%, memory waiting 0.00%, io waiting 1.14%
--- shard 4 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-guards: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadlessCopyRotation$|^TestHeadlessPolicyGuards$|^TestHeadlessRunnerKillLeavesNoCopies$|^TestHeadlessNewHouseRuleStartsFresh$|^TestHeadless$/^3_engineering$|^TestHeadless$/^3_step_cancel$|^TestHeadless$/^3_step_contained$|^TestHeadless$/^3_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless

receipt: test step 1m30.119s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m28.49s amadan.net/oficina/equipo/internal/headless
receipt: slow test 59.62s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.2s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 8.05s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 6.98s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 4.64s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 75.19, cpu waiting 43.70%, memory waiting 0.00%, io waiting 0.90%
--- shard 5 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-rest: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^TestHeadless$/^4c_rebase$|^TestHeadless$/^4b_ask$|^TestHeadless$/^4c_checks_card$|^TestHeadless$/^4_step_crash$|^TestHeadless$/^4_review$|^TestHeadless$/^2b_access$|^TestHeadless$/^runner_crash$|^TestHeadless$/^2b_first_message$|^TestHeadless$/^4_checks_honest$|^TestHeadless$/^7_stream_resume$|^TestHeadless$/^2b_notebook$|^TestHeadless$/^2b_move_in$|^TestHeadless$/^2b_desk_failure$|^TestHeadless$/^cancel$|^TestHeadlessConnections$|^TestHeadlessTokenPasteEndToEnd$|^TestHeadlessTokenConnection$|^TestMacWorker$|^TestHeadlessAttachments$|^TestHeadlessPrewarm$|^TestHeadless$/^1_first_token$|^TestHeadless$/^6_quick_messages$|^TestHeadless$/^8_instance_restart$|^TestHeadless$/^3_runner_offline$|^TestHeadlessCopyRotation$|^TestHeadlessPolicyGuards$|^TestHeadlessRunnerKillLeavesNoCopies$|^TestHeadlessNewHouseRuleStartsFresh$|^TestHeadless$/^3_engineering$|^TestHeadless$/^3_step_cancel$|^TestHeadless$/^3_step_contained$|^TestHeadless$/^3_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless

receipt: test step 2m47.938s 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 2m45.76s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m39.97s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 18.51s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 8.73s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 6.58s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
receipt: slow test 6.56s amadan.net/oficina/equipo/internal/headless TestHeadlessBatchAfterRefusedReply
machine: 32 CPUs, load 27.48, cpu waiting 13.99%, memory waiting 0.00%, io waiting 0.24%
--- 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 2m6.711s 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 2m4.796s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 7.96s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.77s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 3.79s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 3.43s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 2.5s amadan.net/oficina/equipo/internal/thintest TestResearchDoneFallsBack
machine: 32 CPUs, load 51.15, cpu waiting 27.92%, memory waiting 0.00%, io waiting 0.49%
--- 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 1m29.957s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m27.649s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.07s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 5.08s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.49s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 2.37s amadan.net/oficina/equipo/internal/thintest TestContractPublishNameTaken
receipt: slow test 2.36s amadan.net/oficina/equipo/internal/thintest TestContractPreview
machine: 32 CPUs, load 75.19, cpu waiting 43.70%, memory waiting 0.00%, io waiting 0.90%
--- 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 4m47.238s, over the 45s its record on line 44 allows; reported only, timing fails on CI

receipt: test step 4m52.921s 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 4m47.238s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 37.03s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 37.01s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 36.85s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 18.49s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 7.14s amadan.net/oficina/equipo/internal/runner/thin TestOpenCodeStepsRealOpenCode
machine: 32 CPUs, load 4.33, cpu waiting 1.77%, memory waiting 0.00%, io waiting 0.02%
--- shard 9 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-bug: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$' ./internal/runner

receipt: test step 52.329s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 51.422s amadan.net/oficina/equipo/internal/runner
receipt: slow test 31.38s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.03s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 67.45, cpu waiting 34.76%, memory waiting 0.00%, io waiting 1.71%
--- 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 1m3.957s 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 1m2.665s amadan.net/oficina/equipo/internal/runner
receipt: slow test 52.62s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 46.95s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.43s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.59s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 77.71, cpu waiting 42.67%, memory waiting 0.00%, io waiting 1.39%
--- 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 36.315s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 35.405s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.14s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.32s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 3.12s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 2.95s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestReportPostsRetryExactRequest
machine: 32 CPUs, load 33.48, cpu waiting 22.29%, memory waiting 0.00%, io waiting 2.23%
--- 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 39.7%, load 24.29
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 1m8.831s 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 1m6.892s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 28.31s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 28.18s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 26.09s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 23.31s amadan.net/oficina/equipo/internal/equipotest TestAccountConcurrentDuplicate
receipt: slow test 23.31s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
machine: 32 CPUs, load 69.29, cpu waiting 41.67%, memory waiting 0.00%, io waiting 0.76%
--- 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 39.7%, load 24.29
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 1m17.512s 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.368s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 19.47s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
receipt: slow test 19.42s amadan.net/oficina/equipo/internal/equipotest TestProjectsAccountRevisionAndValidation
receipt: slow test 19.41s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
receipt: slow test 19.38s amadan.net/oficina/equipo/internal/equipotest TestProjectRetryAndRevision
receipt: slow test 19.26s amadan.net/oficina/equipo/internal/equipotest TestProjectsReopen
machine: 32 CPUs, load 62.38, cpu waiting 37.27%, memory waiting 0.00%, io waiting 0.66%
--- 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 39.7%, load 24.29
test lane equipotest-r: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestR' ./internal/equipotest

receipt: test step 1m17.335s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m11.871s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 17.38s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 13.45s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 10.39s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 10.31s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 7.29s amadan.net/oficina/equipo/internal/equipotest TestRosterProtectsLastOwner
machine: 32 CPUs, load 62.38, cpu waiting 37.27%, memory waiting 0.00%, io waiting 0.66%
--- 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 39.7%, load 24.29
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 1m9.18s 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.113s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 25.71s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 25.22s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 25.15s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 23.29s amadan.net/oficina/equipo/internal/equipotest TestSigninCSRF
receipt: slow test 23.28s amadan.net/oficina/equipo/internal/equipotest TestSigninBackgroundSweep
machine: 32 CPUs, load 69.29, cpu waiting 42.70%, memory waiting 0.00%, io waiting 0.79%
--- 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 39.7%, load 24.29
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.341s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 53.121s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.66s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.56s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.66s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.53s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.31s amadan.net/oficina/equipo/internal/plan3test TestPlanMigrationUpgrade
machine: 32 CPUs, load 72.77, cpu waiting 44.20%, memory waiting 0.00%, io waiting 0.96%
--- 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 39.7%, load 24.29
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/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/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/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/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/runner/workspace: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runnerproto: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/checks: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/containment: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/opencode: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/testci: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/pi: its inputs changed
--- FAIL amadan.net/oficina/equipo/internal/runner/checks TestDependencyStage
=== RUN   TestDependencyStage
    testing.go:1464: TempDir RemoveAll cleanup: unlinkat /tmp/TestDependencyStage668558834: directory not empty
--- FAIL: TestDependencyStage (0.06s)

--- FAIL amadan.net/oficina/equipo/internal/runner/checks (package output)
FAIL
rastrillo-budget/v1 ran 58.583s
FAIL	amadan.net/oficina/equipo/internal/runner/checks	58.666s

budget note: internal/equipo took 58.041s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/chat took 20.315s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/idtest took 1m54.987s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/release took 36.558s, 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 53.333s, over the 15s its record on line 40 allows; reported only, timing fails on CI
budget note: internal/runner/forge took 26.48s, over the 20s its record on line 35 allows; reported only, timing fails on CI
budget note: internal/runner/provider/claude/realcli took 16.42s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/runner/workspace took 17.358s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 2m20.247s against a 60s target (the gate's other steps are not in this figure)
receipt: 27 packages ran, 35 cached, 18 without tests, 1 failed
receipt: slow package 1m54.987s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 1m14.291s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 58.583s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 58.041s amadan.net/oficina/equipo/internal/equipo
receipt: slow package 57.363s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow test 52.86s amadan.net/oficina/equipo/internal/idtest TestDoorRemembersOficinaID
receipt: slow test 49.5s amadan.net/oficina/equipo/cmd/equipo-runner TestReleaseRunnerHasNoFakeWorker
receipt: slow test 44.96s amadan.net/oficina/equipo/internal/idtest TestDoorStepUpIsLocal
receipt: slow test 44.94s amadan.net/oficina/equipo/internal/idtest TestDoorForgetsOficinaIDForARefusedSession
receipt: slow test 43.94s amadan.net/oficina/equipo/internal/idtest TestDoorNeverJudgesANativeSession
rastrillo: budget test: go test failed
exit status 1
+ go test -tags testbuild -timeout 15m -v -run '^TestDependencyStage$' -count=1 ./internal/runner/checks   (retry, once)
##############################################################################
FLAKE ./internal/runner/checks:TestDependencyStage rest a37ce08a8eb581f238fae0e9db28fc9751713eec 0.06s 27.48
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 27.48, cpu waiting 13.54%, memory waiting 0.00%, io waiting 0.23%
--- 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 1m24.559s 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.037s amadan.net/oficina/equipo/internal/headless
receipt: slow test 38.62s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 14.76s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 10.88s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.15s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 6.38s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 72.77, cpu waiting 44.20%, memory waiting 0.00%, io waiting 0.96%
--- 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 1m32.781s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m31.164s amadan.net/oficina/equipo/internal/headless
receipt: slow test 27.8s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 22.15s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 12.84s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 10.96s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
receipt: slow test 9.11s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
machine: 32 CPUs, load 73.41, cpu waiting 43.66%, memory waiting 0.00%, io waiting 0.84%
--- 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 1m42.62s 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 1m40.713s amadan.net/oficina/equipo/internal/headless
receipt: slow test 13.45s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 13.11s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 12.14s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 11.4s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsOpenCodeGoLimitRequired
receipt: slow test 11.12s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
machine: 32 CPUs, load 65.03, cpu waiting 40.53%, memory waiting 0.00%, io waiting 0.74%
--- shard 21 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-rest: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless
rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserEmptyExplore
=== RUN   TestBrowserEmptyExplore
time=2026-11-23T16:03:29.234Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-23T16:03:29.235Z level=INFO msg="startup phase done" phase=state_lock took=244µs
time=2026-11-23T16:03:29.235Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-23T16:03:29.235Z level=INFO msg="startup phase done" phase=claim_roots took=130µs
time=2026-11-23T16:03:29.235Z level=INFO msg="startup phase" phase=sweep
time=2026-11-23T16:03:29.279Z level=INFO msg="startup phase done" phase=sweep took=44.213ms
time=2026-11-23T16:03:29.279Z level=INFO msg="startup phase" phase=credentials
time=2026-11-23T16:03:29.279Z level=INFO msg="startup phase done" phase=credentials took=135µs
time=2026-11-23T16:03:29.279Z level=INFO msg="startup phase" phase=open_state
time=2026-11-23T16:03:29.322Z level=INFO msg="startup phase done" phase=open_state took=42.307ms
time=2026-11-23T16:03:29.322Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-23T16:03:29.324Z level=INFO msg=connecting host=127.0.0.1:43643 protocol=28
time=2026-11-23T16:03:29.326Z level=INFO msg=connected host=127.0.0.1:43643 took=1.087ms
time=2026-11-23T16:03:29.326Z level=INFO msg="capabilities gathering"
time=2026-11-23T16:03:29.329Z level=INFO msg="capabilities gathered" took=2.746ms tags=linux,claude,go
time=2026-11-23T16:03:29.332Z level=INFO msg="hello sent" protocol=28
time=2026-11-23T16:03:29.336Z level=INFO msg=welcome protocol=28 role=primary generation=1
time=2026-11-23T16:03:30.432Z level=INFO msg="connection checked" connection=claude-1 state=healthy
    browser_receipts_test.go:169: waiting for [...document.querySelectorAll('[equipo-markdown]:not([data-stream-text])')].some(e=>e.textContent.includes("I'm your coordinator")): context deadline exceeded (last evaluation: context deadline exceeded)
--- FAIL: TestBrowserEmptyExplore (6.02s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m29.453s
FAIL	amadan.net/oficina/equipo/internal/headless	89.677s


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

receipt: test step 2.108s 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 542ms amadan.net/oficina/equipo/internal/equipo
receipt: slow test 540ms 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 10.15s, over the 10s the default allows; reported only, timing fails on CI

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

receipt: test step 3m35.828s 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 3m34.328s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 22.76s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.37s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12.06s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.62s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 9.08s amadan.net/oficina/equipo/internal/thintest TestBrowserRhythm
machine: 32 CPUs, load 10.34, cpu waiting 4.51%, memory waiting 0.00%, io waiting 0.07%
--- shard 23 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
shard 23: make test-quarantine
python3 scripts/ci-test.py quarantine
quarantine: 12 tests from scripts/ci-quarantine.txt; a failure is retried once, and a pass on the retry is reported as a flake
+ go test -tags testbuild -timeout 15m -v -run '^TestHeadlessConnections$/^A5_cancel_and_sign_out$|^TestHeadlessConnections$/^C4_claude_sign_in$|^TestHeadlessConnections$/^C5_engineering_failover$|^TestHeadlessConnections$/^C5_engineering_to_codex$|^TestHeadlessConnections$/^C5_engineering_waits$' ./internal/headless   (52s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 4.77s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.16s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 8.06s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 8.27s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 26.66s
+ 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   (66s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 14.39s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 11.55s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 19.08s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 17.87s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (20s)
ok ./internal/headless TestMixedVersions 17.92s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (2s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.80s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin   (2s)
ok ./internal/runner/thin TestRunnerCancelAndSupersede 0.06s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 77.71, cpu waiting 43.04%, memory waiting 0.00%, io waiting 1.35%
--- 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.165s against a 60s target (the gate's other steps are not in this figure)
receipt: 4 packages ran, 0 cached, 4 without tests, 0 failed
receipt: slow package 7.978s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 224ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 136ms 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.72s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.78s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 360ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 220ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 140ms amadan.net/oficina/equipo/internal/runner/provider/codex TestDirectJournalAdapterBarrier
CGO_ENABLED=0 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run '^TestNamespace' -count=1 ./internal/runner/containment
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run '^TestNamespace' -count=1 ./internal/runner/containment

receipt: test step 3.461s 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.996s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 280ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 210ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryReusedPID
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
machine: 32 CPUs, load 23.40, cpu waiting 11.21%, memory waiting 0.00%, io waiting 3.01%
--- 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 39.7%, load 24.29
shard 25: make runner-dead-references lanes-check build vet fmt-check spacing budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 2639 text files, 3210 matches, 0 failures
python3 scripts/ci-test.py check
lanes: 18 lanes and 5 browser lanes run every test once; 20-check@29
CGO_ENABLED=0 go build ./...
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o /dev/null ./cmd/equipo-runner
go vet ./...
go vet -tags testbuild ./internal/runner/thin ./internal/headless
GOOS=darwin GOARCH=arm64 go vet ./cmd/equipo-runner/... ./internal/runner/... ./internal/wire/... ./internal/release/...
go tool fiesta spacing -skip tokens.css internal/equipo/static
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget size
budget size: 90 directories within budget
CGO_ENABLED=0 go test ./internal/equipo -run '^TestMigrationModels$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipo	2.588s
machine: 32 CPUs, load 76.40, cpu waiting 44.37%, memory waiting 0.00%, io waiting 1.14%
--- 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 39.7%, load 24.29
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 67.45, cpu waiting 36.43%, memory waiting 0.00%, io waiting 1.65%
--- 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 39.7%, load 24.29
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 3
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.09, cpu waiting 23.82%, memory waiting 0.00%, io waiting 2.16%
--- 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 39.7%, load 24.29
shard 28: make gitleaks
4:02PM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
4:03PM INF 1111 commits scanned.
4:03PM INF scanned ~64790933 bytes (64.79 MB) in 26.1s
4:03PM INF no leaks found
machine: 32 CPUs, load 67.45, cpu waiting 37.86%, memory waiting 0.00%, io waiting 1.60%
=== perf ===
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -require TestPerfScreens,TestPerfBoot -tags perf -count=1 -p 1 -parallel 1 -run '^TestPerf' ./...
perf: GET /: median 1.042ms, worst 1.186ms, budget 150ms
perf: GET /api/runner/protocol: median 75µs, worst 111µs, budget 150ms
perf: GET /api/v1/account-setups/{id}: median 587µs, worst 635µs, budget 150ms
perf: GET /api/v1/accounts: median 413µs, worst 478µs, budget 150ms
perf: GET /api/v1/auth/devices: median 436µs, worst 443µs, budget 150ms
perf: GET /api/v1/budgets: median 499µs, worst 510µs, budget 150ms
perf: GET /api/v1/capabilities: median 245µs, worst 273µs, budget 150ms
perf: GET /api/v1/cards/{id}: median 1.224ms, worst 1.265ms, budget 150ms
perf: GET /api/v1/connections: median 571µs, worst 611µs, budget 150ms
perf: GET /api/v1/connections/{id}: median 540µs, worst 577µs, budget 150ms
perf: GET /api/v1/conversation: median 904µs, worst 952µs, budget 150ms
perf: GET /api/v1/conversation/cards: median 1.432ms, worst 1.521ms, budget 150ms
perf: GET /api/v1/coordinator: median 1.91ms, worst 1.997ms, budget 150ms
perf: GET /api/v1/invites/{id}: median 458µs, worst 477µs, budget 150ms
perf: GET /api/v1/journey: median 7.566ms, worst 7.784ms, budget 150ms
perf: GET /api/v1/me: median 412µs, worst 468µs, budget 150ms
perf: GET /api/v1/me/settings: median 515µs, worst 554µs, budget 150ms
perf: GET /api/v1/needs-you: median 7.359ms, worst 7.633ms, budget 150ms
perf: GET /api/v1/notifications: median 1.761ms, worst 1.808ms, budget 150ms
perf: GET /api/v1/onboarding: median 404µs, worst 433µs, budget 150ms
perf: GET /api/v1/people: median 445µs, worst 472µs, budget 150ms
perf: GET /api/v1/playbooks: median 579µs, worst 643µs, budget 150ms
perf: GET /api/v1/playbooks/{id}: median 521µs, worst 587µs, budget 150ms
perf: GET /api/v1/playbooks/{id}/template-diff: median 861µs, worst 909µs, budget 150ms
perf: GET /api/v1/preferences: median 785µs, worst 828µs, budget 150ms
perf: GET /api/v1/projects/{id}: median 489µs, worst 531µs, budget 150ms
perf: GET /api/v1/projects/{id}/settings: median 593µs, worst 615µs, budget 150ms
perf: GET /api/v1/roster: median 481µs, worst 533µs, budget 150ms
perf: GET /api/v1/runners/{id}: median 422µs, worst 460µs, budget 150ms
perf: GET /api/v1/specialists: median 8.351ms, worst 8.472ms, budget 150ms
perf: GET /api/v1/specialists/{id}: median 8.196ms, worst 8.361ms, budget 150ms
perf: GET /api/v1/specialists/{id}/template-diff: median 826µs, worst 901µs, budget 150ms
perf: GET /api/v1/tasks/{id}/plan: median 1.173ms, worst 1.242ms, budget 150ms
perf: GET /api/v1/tasks/{id}/thread: median 767µs, worst 804µs, budget 150ms
perf: GET /api/v1/teams: median 447µs, worst 463µs, budget 150ms
perf: GET /api/v1/templates: median 644µs, worst 773µs, budget 150ms
perf: GET /api/v1/templates/{id}: median 465µs, worst 504µs, budget 150ms
perf: GET /auth/callback: median 79µs, worst 117µs, budget 150ms
perf: GET /auth/devices/{id}: median 3.971ms, worst 4.14ms, budget 150ms
perf: GET /auth/verify: median 96µs, worst 125µs, budget 150ms
perf: GET /connections: median 4.345ms, worst 5.969ms, budget 150ms
perf: GET /conversation: median 8.323ms, worst 8.437ms, budget 150ms
perf: GET /conversation/connections: median 256µs, worst 294µs, budget 150ms
perf: GET /conversation/notebook: median 250µs, worst 268µs, budget 150ms
perf: GET /conversation/settings: median 4.583ms, worst 4.639ms, budget 150ms
perf: GET /conversation/settings/autonomy: median 4.576ms, worst 4.675ms, budget 150ms
perf: GET /conversation/settings/connections: median 7.037ms, worst 7.308ms, budget 150ms
perf: GET /conversation/settings/connections/add: median 7.107ms, worst 7.357ms, budget 150ms
perf: GET /conversation/settings/copy: median 4.556ms, worst 4.678ms, budget 150ms
perf: GET /conversation/settings/housekeeping: median 4.929ms, worst 7.365ms, budget 150ms
perf: GET /conversation/settings/machines: median 5.316ms, worst 5.445ms, budget 150ms
perf: GET /conversation/settings/machines/add: median 5.087ms, worst 5.144ms, budget 150ms
perf: GET /conversation/settings/notebook: median 3.958ms, worst 4.037ms, budget 150ms
perf: GET /conversation/settings/thinking: median 4.479ms, worst 4.548ms, budget 150ms
perf: GET /housekeeping: median 4.213ms, worst 4.393ms, budget 150ms
perf: GET /invites/new: median 604µs, worst 650µs, budget 150ms
perf: GET /invites/{id}: median 643µs, worst 671µs, budget 150ms
perf: GET /jobs: median 3.808ms, worst 3.873ms, budget 150ms
perf: GET /jobs/{id}: median 5.175ms, worst 5.29ms, budget 150ms
perf: GET /journey: median 13.251ms, worst 15.575ms, budget 150ms
perf: GET /nav/rail: median 3.756ms, worst 4.039ms, budget 150ms
perf: GET /needs-you: median 12.871ms, worst 13.176ms, budget 150ms
perf: GET /onboarding: median 5.028ms, worst 5.076ms, budget 150ms
perf: GET /people: median 4.276ms, worst 4.451ms, budget 150ms
perf: GET /playbook-suggestions/{suggestion}: median 6.024ms, worst 6.219ms, budget 150ms
perf: GET /playbooks: median 5.437ms, worst 5.791ms, budget 150ms
perf: GET /playbooks/new: median 5.559ms, worst 5.696ms, budget 150ms
perf: GET /playbooks/{id}: median 5.127ms, worst 5.348ms, budget 150ms
perf: GET /playbooks/{id}/edit: median 5.232ms, worst 5.43ms, budget 150ms
perf: GET /playbooks/{id}/template-diff: median 4.613ms, worst 7.101ms, budget 150ms
perf: GET /preferences: median 4.628ms, worst 4.99ms, budget 150ms
perf: GET /preferences/sources/{source}: median 4.677ms, worst 4.851ms, budget 150ms
perf: GET /projects: median 6.243ms, worst 6.356ms, budget 150ms
perf: GET /projects/accounts: median 4.22ms, worst 4.314ms, budget 150ms
perf: GET /projects/new: median 4.195ms, worst 4.456ms, budget 150ms
perf: GET /projects/{id}: median 11.299ms, worst 11.542ms, budget 150ms
perf: GET /projects/{id}/edit: median 4.341ms, worst 4.391ms, budget 150ms
perf: GET /runners/enrol: median 5.113ms, worst 5.197ms, budget 150ms
perf: GET /settings: median 3.935ms, worst 4.073ms, budget 150ms
perf: GET /settings/coordinator: median 6.26ms, worst 7.757ms, budget 150ms
perf: GET /settings/devices: median 3.83ms, worst 3.905ms, budget 150ms
perf: GET /settings/recovery: median 4.023ms, worst 4.115ms, budget 150ms
perf: GET /settings/recovery/release: median 3.899ms, worst 3.972ms, budget 150ms
perf: GET /settings/thinking: median 244µs, worst 285µs, budget 150ms
perf: GET /signed-out: median 268µs, worst 292µs, budget 150ms
perf: GET /signin: median 267µs, worst 336µs, budget 150ms
perf: GET /specialists/new: median 3.826ms, worst 3.893ms, budget 150ms
perf: GET /specialists/{key}: median 11.434ms, worst 11.607ms, budget 150ms
perf: GET /specialists/{key}/edit: median 4.142ms, worst 4.211ms, budget 150ms
perf: GET /specialists/{key}/template-diff: median 4.189ms, worst 4.327ms, budget 150ms
perf: GET /tasks: median 6.211ms, worst 6.365ms, budget 150ms
perf: GET /tasks/new: median 3.734ms, worst 3.822ms, budget 150ms
perf: GET /tasks/{id}: median 6.301ms, worst 8.971ms, budget 150ms
perf: GET /tasks/{id}/merge: median 5.463ms, worst 5.558ms, budget 150ms
perf: GET /tasks/{id}/move: median 5.186ms, worst 5.228ms, budget 150ms
perf: GET /tasks/{id}/plan: median 6.528ms, worst 6.7ms, budget 150ms
perf: GET /tasks/{id}/preview: median 1.602ms, worst 1.637ms, budget 150ms
perf: GET /tasks/{id}/questions/{question}: median 5.776ms, worst 6.023ms, budget 150ms
perf: GET /tasks/{id}/rendered-change: median 5.401ms, worst 5.59ms, budget 150ms
perf: GET /tasks/{id}/rendered-change/{hash}.png: median 4.897ms, worst 5.027ms, budget 150ms
perf: GET /tasks/{id}/thread: median 8.65ms, worst 8.729ms, budget 150ms
perf: GET /team/{specialist}: median 4.857ms, worst 4.932ms, budget 150ms
perf: GET /teams: median 10.888ms, worst 11.029ms, budget 150ms
perf: GET /templates: median 3.901ms, worst 4.071ms, budget 150ms
perf: GET /usage: median 4.708ms, worst 4.817ms, budget 150ms
perf: GET /work: median 3.524ms, worst 3.585ms, budget 150ms
perf: GET /auth/devices/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /connections: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/autonomy: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/connections: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/connections/add: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/copy: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/housekeeping: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/machines: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/machines/add: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/notebook: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /conversation/settings/thinking: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /housekeeping: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /invites/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /invites/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /jobs: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /jobs/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /journey: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /nav/rail: 0 bytes of framework CSS and JS, gzipped; 16000-byte budget
perf: GET /needs-you: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /onboarding: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /people: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbook-suggestions/{suggestion}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks/{id}/edit: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /playbooks/{id}/template-diff: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /preferences: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /preferences/sources/{source}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects/accounts: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /projects/{id}/edit: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /runners/enrol: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings/coordinator: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings/devices: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings/recovery: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /settings/recovery/release: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /signed-out: 30270 bytes of framework CSS and JS, gzipped; 40000-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /specialists/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /specialists/{key}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /specialists/{key}/edit: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /specialists/{key}/template-diff: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/new: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/merge: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/move: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/plan: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/preview: 25954 bytes of framework CSS and JS, gzipped; 40000-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/questions/{question}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/rendered-change: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /tasks/{id}/thread: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /team/{specialist}: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /teams: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /templates: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /usage: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: GET /work: 57416 bytes of framework CSS and JS, gzipped; 60600-byte budget; it links the whole tokens.css: add Assets: assets to ui.PagesConfig (PagesConfig.Assets) in render.go, and in the layout use {{path $ pageStylesheet}} in place of static/tokens.css and replace the busy.js, live.js, light.js and anchor.js tags and the neededScripts line (or the select.js, calendar.js and datetime.js tags) with {{range pageScripts}}, keeping rastrillo.js and shell.js
perf: cold boot: median 157ms of [156.586755ms 157.013222ms 161.105398ms], budget 500ms

receipt: test step 49.033s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 86 without tests, 0 failed
receipt: slow package 10.574s amadan.net/oficina/equipo/internal/equipotest
receipt: slow package 1ms amadan.net/oficina/equipo/internal/wire/wireschema
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo-runner
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo-tool-proxy
receipt: slow package 0s amadan.net/oficina/equipo/internal/advice
receipt: slow test 10.05s amadan.net/oficina/equipo/internal/equipotest TestPerfScreens
receipt: slow test 530ms amadan.net/oficina/equipo/internal/equipotest TestPerfBoot
=== cache ===
ci-box: build cache /home/ci/work/repos/oficina__equipo/cache/go-build: 3.86 GiB in 25523 files
ci-box: module cache /home/ci/work/repos/oficina__equipo/cache/go-mod: 1.15 GiB in 40997 files
diff --git a/.rastrillo/budgets.txt b/.rastrillo/budgets.txt
index ffd7e9ff..e9f9615d 100644
--- a/.rastrillo/budgets.txt
+++ b/.rastrillo/budgets.txt
@@ -15,7 +15,7 @@ time internal/equipo/team 60s Plan 3 loaded CI measured 45.985s; niced serial re
time internal/equipotest 300s Final fix package rerun measured 187.035s (review 172.4s); 300s gives 60 percent headroom for HTTP, sandbox, authority and final regression coverage.
size internal/equipo 22074 - Canonical copy adds 18 reviewed API errors and two native Projects labels; measured 22074 source lines.
-size internal/wire 6822 - Optional card remember_name and project use_title fields; measured 6822 source lines.
+size internal/wire 6824 - Project list cursor and typed placement marker; measured 6824 source lines.
size internal/equipotest - 12017 Task 21 repairs historical migration and conversation fixtures after Plan 3, and the Rastrillo upgrade contract comparing served assets with what Assets serves; measured 0/12017 source/test lines.
time internal/runner/checks 90s CI worker measured 44.553s (44.6s rounded);
time internal/runner 330s Plan 3 CI repair measured 292.120s for the full package (controller CI 472.184s).
@@ -56,7 +56,7 @@ perf GET /api/v1/tasks/{id} skip Thin v1 person API: bearer-only JSON for device
perf GET /api/v1/assistant/snapshot skip Assistant person API: bearer-only JSON for Base's chat, not a browser screen.
perf GET /api/v1/assistant/messages skip Assistant person API: bearer-only JSON for Base's chat, not a browser screen.
perf GET /api/v1/assistant/events skip Assistant event stream (Server-Sent Events), bearer-only and long-lived; not a screen.
-size internal/equipo/chat 33340 8282 Project card handling, old-runner pass-through and second-option identity regression; measured 33340/8282 source/test lines.
+size internal/equipo/chat 33345 8333 Project cursor and typed-card marker with native review regression; measured 33345/8333 source/test lines.
perf GET /api/v1/questions/{id} skip Thin v1 person API: bearer-only JSON for devices; the browser reads questions on /tasks/{id}.
perf GET /api/v1/steps/{id}/log skip Thin v1 person API: bearer-only JSON for devices; the browser shows the log tail on /tasks/{id}.
perf GET /api/v1/connections/preference skip Connections slice 1 person API: bearer-only JSON for devices; the browser shows the preference on /conversation/connections.
diff --git a/docs/api/equipo-v1.md b/docs/api/equipo-v1.md
index 660239d8..576241c8 100644
--- a/docs/api/equipo-v1.md
+++ b/docs/api/equipo-v1.md
@@ -186,6 +186,9 @@ The origin is `https://` and a host name with no path, or `http://` on loopback
## Projects and starting a request
+`GET /api/v1/projects` includes `cursor`, the event sequence read in the same transaction as its items. Ignore project events at or below that cursor, including viewer-only events with the same shared revision and events for projects absent from the list.
+
+
`GET /api/v1/projects` retains `items`, `allowed` and `home`. It also returns `connections` and `can_add` for repositories reachable by your primary runner that are not active projects. Your primary runner is your newest enrolled primary runner that has not been revoked or marked for removal. Execution currently requires the requesting person to be an active owner of this Equipo team. This is the same team-owner role that `can_add` checks. Execution also requires a usable primary runner. In this release, the connection is `amadan`, with forge `amadan`. The matching connection ID and forge value are intentional. Its title is `Amadan`, its state is `connected` or `unavailable`, and `can_add` indicates whether you are an owner of this Equipo team. Reachability comes from the stored latest runner hello. This is that runner's repository and capability report, not a live connectivity check. Each available entry has `repo`, `name`, `title`, `description`, `description_source`, `forge` and `connection_id`. The legacy `allowed` list remains the complete allowlist, including projects already added. Only an owner can add a project using the existing `POST /api/v1/projects` with `{ "repo": "oficina/home" }`.
Project items are ordered with your stars first, followed by recent team activity. They gain `starred` (absent means false), `names` (owner-set team names), `personal_names` (only your learned names), `title_source`, `description_source`, `forge` and `connection_id`. The snapshot and project events also include your star and your private names. Empty optional arrays may be absent. Sources are `owner` or `repository`. Repository text is for display and search only. It is never authoritative for placement. Existing clients can ignore the added fields.
@@ -200,7 +203,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`. 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. 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 fd7745e7..63803336 100644
--- a/docs/api/equipo-v1.openapi.json
+++ b/docs/api/equipo-v1.openapi.json
@@ -18667,6 +18667,9 @@
},
"aside": {
"type": "boolean"
+ },
+ "placement_by_name": {
+ "type": "boolean"
}
},
"required": [
@@ -20830,9 +20833,14 @@
},
"home": {
"type": "string"
+ },
+ "cursor": {
+ "type": "integer",
+ "format": "int64"
}
},
"required": [
+ "cursor",
"items",
"allowed",
"home"
diff --git a/internal/equipo/api_copy_scan_test.go b/internal/equipo/api_copy_scan_test.go
new file mode 100644
index 00000000..9873694e
--- /dev/null
+++ b/internal/equipo/api_copy_scan_test.go
@@ -0,0 +1,56 @@
+package equipo
+
+import (
+ "os"
+ "path/filepath"
+ "testing"
+)
+
+func TestAPIErrorCopyScanEscapes(t *testing.T) {
+ for _, tc := range []struct{ name, file, source, key string }{
+ {"variable", "chat/handler.go", `package chat; func f(){ code := "missing_variable"; WriteError(w,r,400,code,nil) }`, "api.missing_variable"},
+ {"wiring", "chat_wiring.go", `package equipo; func f(){ personapi.WriteError(w,r,400,"missing_wiring",nil) }`, "api.missing_wiring"},
+ {"literal", "newpackage/handler.go", `package newpackage; func f(){ writeJSON(w,400,Error{CopyKey:"api.missing_literal"}) }`, "api.missing_literal"},
+ {"alias", "newpackage/handler.go", `package newpackage; const reason = "missing_alias"; func f(){ first := reason; code := first; WriteError(w,r,400,code,nil) }`, "api.missing_alias"},
+ {"copy-variable", "newpackage/handler.go", `package newpackage; func f(){ key := "api.missing_key"; writeJSON(w,400,Error{CopyKey:key}) }`, "api.missing_key"},
+ {"branches", "newpackage/handler.go", `package newpackage; func f(){ code := "invalid_input"; if bad { code = "missing_branch" }; WriteError(w,r,400,code,nil) }`, "api.missing_branch"},
+ } {
+ t.Run(tc.name, func(t *testing.T) {
+ dir := t.TempDir()
+ file := filepath.Join(dir, tc.file)
+ if err := os.MkdirAll(filepath.Dir(file), 0700); err != nil {
+ t.Fatal(err)
+ }
+ if err := os.WriteFile(file, []byte(tc.source), 0600); err != nil {
+ t.Fatal(err)
+ }
+ keys, err := scanAPIErrorCopy(dir)
+ if err != nil {
+ t.Fatal(err)
+ }
+ if !keys[tc.key] {
+ t.Fatalf("missed %s", tc.key)
+ }
+ })
+ }
+}
+
+func TestAPIErrorCopyScanRejectsUnresolvedAndIgnoresToolResults(t *testing.T) {
+ dir := t.TempDir()
+ file := filepath.Join(dir, "tools.go")
+ write := func(source string) {
+ t.Helper()
+ if err := os.WriteFile(file, []byte(source), 0600); err != nil {
+ t.Fatal(err)
+ }
+ }
+ write(`package chat; func f(){code:="provider_error";return toolResult{code:code}}`)
+ keys, err := scanAPIErrorCopy(dir)
+ if err != nil || len(keys) != 0 {
+ t.Fatalf("tool result became HTTP error: %v %v", keys, err)
+ }
+ write(`package chat; func f(){code:=dynamic(); WriteError(w,r,400,code,nil)}`)
+ if _, err := scanAPIErrorCopy(dir); err == nil {
+ t.Fatal("unknown dynamic error path escaped guard")
+ }
+}
diff --git a/internal/equipo/api_copy_test.go b/internal/equipo/api_copy_test.go
index f9363c9e..e35752aa 100644
--- a/internal/equipo/api_copy_test.go
+++ b/internal/equipo/api_copy_test.go
@@ -1,53 +1,232 @@
package equipo
import (
- "os"
+ "fmt"
+ "go/ast"
+ "go/importer"
+ "go/parser"
+ "go/token"
+ "go/types"
+ "io/fs"
"path/filepath"
- "regexp"
+ "strconv"
"strings"
"testing"
)
func TestAPIErrorCopyKeys(t *testing.T) {
- keys := map[string]bool{}
- patterns := []*regexp.Regexp{
- regexp.MustCompile(`WriteError\([^\n]*?,\s*"([a-z_]+)"`),
- regexp.MustCompile(`code(?:, status)?\s*:?=\s*"([a-z_]+)"`),
+ keys, err := scanAPIErrorCopy("..")
+ if err != nil {
+ t.Fatal(err)
}
- for _, dir := range []string{"chat", "personapi"} {
- files, err := filepath.Glob(dir + "/*.go")
+ for key := range keys {
+ if copyText(key) == "" || copyText(key) == key {
+ t.Errorf("API returns copy_key %s without text", key)
+ }
+ }
+}
+
+// Scan all internal packages, including wiring outside chat and personapi.
+// Follow string assignments to API error sinks, not unrelated tool-result codes.
+// Unknown expressions fail closed so a new helper needs explicit analysis.
+func scanAPIErrorCopy(root string) (map[string]bool, error) {
+ keys := map[string]bool{}
+ fset := token.NewFileSet()
+ imports := importer.Default()
+ err := filepath.WalkDir(root, func(path string, entry fs.DirEntry, walkErr error) error {
+ if walkErr != nil {
+ return walkErr
+ }
+ if entry.IsDir() || !strings.HasSuffix(path, ".go") || strings.HasSuffix(path, "_test.go") {
+ return nil
+ }
+ file, err := parser.ParseFile(fset, path, nil, parser.SkipObjectResolution)
if err != nil {
- t.Fatal(err)
+ return err
}
- for _, file := range files {
- if strings.HasSuffix(file, "_test.go") {
- continue
+ // Only error-writing files need lexical bindings. Other declarations in
+ // this single file may be unresolved; unknown sink values still fail below.
+ hasSink := false
+ ast.Inspect(file, func(n ast.Node) bool {
+ if call, ok := n.(*ast.CallExpr); ok && callName(call.Fun) == "WriteError" {
+ hasSink = true
+ }
+ if id, ok := n.(*ast.Ident); ok && id.Name == "CopyKey" {
+ hasSink = true
}
- raw, err := os.ReadFile(file)
- if err != nil {
- t.Fatal(err)
+ return true
+ })
+ if !hasSink {
+ return nil
+ }
+ info := &types.Info{Defs: map[*ast.Ident]types.Object{}, Uses: map[*ast.Ident]types.Object{}}
+ config := types.Config{Importer: imports, Error: func(error) {}}
+ _, _ = config.Check(file.Name.Name, fset, []*ast.File{file}, info)
+ object := func(id *ast.Ident) types.Object {
+ if value := info.Defs[id]; value != nil {
+ return value
}
- if !strings.Contains(string(raw), "WriteError(") && !strings.Contains(string(raw), "CopyKey:") {
- continue
+ return info.Uses[id]
+ }
+ assignments := map[types.Object][]ast.Expr{}
+ bind := func(id *ast.Ident, expr ast.Expr) {
+ if object(id) != nil {
+ assignments[object(id)] = append(assignments[object(id)], expr)
}
- for _, pattern := range patterns {
- for _, match := range pattern.FindAllStringSubmatch(string(raw), -1) {
- key := "api." + match[1]
- if match[1] == "subscription_expired" {
- key = "notifications.subscription_expired"
+ }
+ ast.Inspect(file, func(n ast.Node) bool {
+ switch v := n.(type) {
+ case *ast.AssignStmt:
+ if len(v.Lhs) == len(v.Rhs) {
+ for i, lhs := range v.Lhs {
+ if id, ok := lhs.(*ast.Ident); ok {
+ bind(id, v.Rhs[i])
+ }
+ }
+ }
+ case *ast.ValueSpec:
+ if len(v.Names) == len(v.Values) {
+ for i, id := range v.Names {
+ bind(id, v.Values[i])
}
- keys[key] = true
}
}
+ return true
+ })
+ var values func(ast.Expr, map[types.Object]bool) ([]string, error)
+ values = func(expr ast.Expr, seen map[types.Object]bool) ([]string, error) {
+ switch v := expr.(type) {
+ case *ast.BasicLit:
+ if v.Kind == token.STRING {
+ s, e := strconv.Unquote(v.Value)
+ return []string{s}, e
+ }
+ case *ast.ParenExpr:
+ return values(v.X, seen)
+ case *ast.Ident:
+ if object(v) != nil && !seen[object(v)] && len(assignments[object(v)]) > 0 {
+ seen[object(v)] = true
+ defer delete(seen, object(v))
+ var out []string
+ for _, expr := range assignments[object(v)] {
+ parts, e := values(expr, seen)
+ if e != nil {
+ return nil, e
+ }
+ out = append(out, parts...)
+ }
+ return out, nil
+ }
+ case *ast.BinaryExpr:
+ if v.Op == token.ADD {
+ left, e := values(v.X, seen)
+ if e != nil {
+ return nil, e
+ }
+ right, e := values(v.Y, seen)
+ if e != nil {
+ return nil, e
+ }
+ var out []string
+ for _, a := range left {
+ for _, b := range right {
+ out = append(out, a+b)
+ }
+ }
+ return out, nil
+ }
+ }
+ return nil, fmt.Errorf("unresolved API error expression at %s", fset.Position(expr.Pos()))
}
+ var failure error
+ ast.Inspect(file, func(n ast.Node) bool {
+ if failure != nil {
+ return false
+ }
+ if call, ok := n.(*ast.CallExpr); ok && callName(call.Fun) == "WriteError" {
+ if len(call.Args) != 5 {
+ failure = fmt.Errorf("unrecognised WriteError at %s", fset.Position(call.Pos()))
+ return false
+ }
+ codes, e := values(call.Args[3], map[types.Object]bool{})
+ if e != nil {
+ failure = e
+ return false
+ }
+ for _, code := range codes {
+ if code == "subscription_expired" {
+ keys["notifications."+code] = true
+ } else {
+ keys["api."+code] = true
+ }
+ // These are the additional scopes of personapi.errorCopyKey. Their
+ // dispatch is exercised by the person API's error response tests.
+ if code == "cursor_expired" {
+ keys["notifications."+code] = true
+ }
+ if code == "invalid_input" || code == "forbidden" || code == "revision_conflict" {
+ keys["roster."+code] = true
+ keys["budgets."+code] = true
+ }
+ }
+ }
+ if literal, ok := n.(*ast.CompositeLit); ok {
+ hasCode := false
+ for _, element := range literal.Elts {
+ if kv, ok := element.(*ast.KeyValueExpr); ok {
+ if id, ok := kv.Key.(*ast.Ident); ok && id.Name == "Code" {
+ hasCode = true
+ }
+ }
+ }
+ for _, element := range literal.Elts {
+ kv, ok := element.(*ast.KeyValueExpr)
+ if !ok {
+ continue
+ }
+ id, ok := kv.Key.(*ast.Ident)
+ if !ok || id.Name != "CopyKey" {
+ continue
+ }
+ // WriteError's computed copy key is covered through every call above.
+ if call, ok := kv.Value.(*ast.CallExpr); ok && callName(call.Fun) == "errorCopyKey" {
+ continue
+ }
+ apiLiteral := false
+ ast.Inspect(kv.Value, func(n ast.Node) bool {
+ if s, ok := n.(*ast.BasicLit); ok && s.Kind == token.STRING {
+ v, _ := strconv.Unquote(s.Value)
+ apiLiteral = apiLiteral || strings.HasPrefix(v, "api.")
+ }
+ return true
+ })
+ errorType := strings.HasSuffix(callName(literal.Type), "Error") || strings.HasSuffix(callName(literal.Type), "Conflict")
+ if !hasCode && !apiLiteral && !errorType {
+ continue
+ }
+ texts, e := values(kv.Value, map[types.Object]bool{})
+ if e != nil {
+ failure = e
+ return false
+ }
+ for _, text := range texts {
+ keys[text] = true
+ }
+ }
+ }
+ return true
+ })
+ return failure
+ })
+ return keys, err
+}
+
+func callName(expr ast.Expr) string {
+ switch v := expr.(type) {
+ case *ast.Ident:
+ return v.Name
+ case *ast.SelectorExpr:
+ return v.Sel.Name
}
- // Scoped errors in personapi.errorCopyKey, and literal card conflicts.
- for _, key := range []string{"notifications.cursor_expired", "api.card_stale", "api.card_answered", "roster.invalid_input", "roster.forbidden", "roster.revision_conflict", "budgets.invalid_input", "budgets.forbidden", "budgets.revision_conflict"} {
- keys[key] = true
- }
- for key := range keys {
- if copyText(key) == "" || copyText(key) == key {
- t.Errorf("API returns copy_key %s without text", key)
- }
- }
+ return ""
}
diff --git a/internal/equipo/chat/project_native_review_test.go b/internal/equipo/chat/project_native_review_test.go
new file mode 100644
index 00000000..a0ecba15
--- /dev/null
+++ b/internal/equipo/chat/project_native_review_test.go
@@ -0,0 +1,51 @@
+package chat
+
+import (
+ "context"
+ "encoding/json"
+ "testing"
+
+ "amadan.net/oficina/equipo/internal/wire"
+)
+
+func TestProjectListCursorAndTypedMarker(t *testing.T) {
+ r := placementRig(t)
+ ctx := context.Background()
+ data, _ := json.Marshal(placementData{ByName: true})
+ c := cardRecord{ID: "c_typed", Person: hkOwner, Kind: wire.CardQuestion, State: wire.CardOpen, Options: "[]", Placement: string(data), Revision: 1}
+ err := r.s.tx(ctx, func(tx *txn) error {
+ typed, err := tx.cardView(c)
+ if err != nil {
+ return err
+ }
+ if !typed.PlacementByName {
+ t.Error("typed placement must have a marker even after opting out")
+ }
+ c.Placement = ""
+ ordinary, err := tx.cardView(c)
+ if ordinary.PlacementByName {
+ t.Error("ordinary question has project marker")
+ }
+ if err != nil {
+ return err
+ }
+ return tx.event("", hkOwner, wire.EventProject, "project", "p_event", 1, "", "", 0, wire.Project{})
+ })
+ if err != nil {
+ t.Fatal(err)
+ }
+ if _, _, err := r.s.AddProject(ctx, hkOwner, "oficina/new"); err != nil {
+ t.Fatal(err)
+ }
+ list, err := r.s.Projects(ctx, hkOwner)
+ if err != nil {
+ t.Fatal(err)
+ }
+ cursor, err := r.s.Cursor(ctx)
+ if err != nil {
+ t.Fatal(err)
+ }
+ if cursor == 0 || list.Cursor != cursor {
+ t.Fatalf("list cursor = %d, events = %d", list.Cursor, cursor)
+ }
+}
diff --git a/internal/equipo/chat/projects.go b/internal/equipo/chat/projects.go
index 8066d7ca..b2f8e834 100644
--- a/internal/equipo/chat/projects.go
+++ b/internal/equipo/chat/projects.go
@@ -285,6 +285,7 @@ func (t *txn) cardView(c cardRecord) (wire.Card, error) {
return v, err
}
v.RememberName = data.RequestedName
+ v.PlacementByName = data.ByName
}
if c.Access != "" {
if err := json.Unmarshal([]byte(c.Access), &v.Access); err != nil {
@@ -577,7 +578,11 @@ func (s *Store) Projects(ctx context.Context, person string) (out wire.ProjectLi
if err != nil {
return err
}
- return t.projectListExtras(person, h, &out)
+ if err := t.projectListExtras(person, h, &out); err != nil {
+ return err
+ }
+ out.Cursor, err = maxEvent(t.db)
+ return err
})
return out, err
}
diff --git a/internal/wire/api.go b/internal/wire/api.go
index 21835453..0f5ebb02 100644
--- a/internal/wire/api.go
+++ b/internal/wire/api.go
@@ -336,6 +336,7 @@ type Project struct {
// ProjectList is GET /api/v1/projects. Allowed is the person's
// runner-advertised allowlist: the repositories add may take.
type ProjectList struct {
+ Cursor int64 `json:"cursor"`
Connections []ProjectConnection `json:"connections,omitempty"`
CanAdd []ReachableProject `json:"can_add,omitempty"`
Items []Project `json:"items"`
@@ -354,18 +355,19 @@ 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 {
- 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"`
+ 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/internal/wire/wiretest/testdata/api/projects.json b/internal/wire/wiretest/testdata/api/projects.json
index c7e21dfb..73708e83 100644
--- a/internal/wire/wiretest/testdata/api/projects.json
+++ b/internal/wire/wiretest/testdata/api/projects.json
@@ -1 +1 @@
-{"connections":[{"id":"amadan","forge":"amadan","title":"Amadan","state":"connected","can_add":true}],"can_add":[{"repo":"amadan.net/oficina/equipo","name":"oficina/equipo","title":"Equipo","description":"","description_source":"repository","forge":"amadan","connection_id":"amadan"}],"items":[{"title_source":"repository","description_source":"repository","forge":"amadan","connection_id":"amadan","id":"p_0001","revision":1,"repo":"amadan.net/oficina/sample","name":"oficina/sample","title":"Sample","attachments":[{"kind":"repo","ref":"amadan.net/oficina/sample","name":"oficina/sample","default_branch":"main","head_sha":"3333333333333333333333333333333333333333","head_subject":"Swipe from the edge goes back","head_at":"2026-11-07T09:30:00Z"}],"state":"active","added_by":"owner@example.com","created_at":"2026-11-06T10:00:00Z","updated_at":"2026-11-06T10:00:01Z","description":"A sample app for Equipo tests.","stack":["Go"],"checks":{"here":true,"gate":"make ci","reason":""},"people":[{"address":"owner@example.com","name":"Owner","initials":"O"}]}],"allowed":["amadan.net/oficina/equipo","amadan.net/oficina/sample"],"home":"oficina"}
+{"cursor":0,"connections":[{"id":"amadan","forge":"amadan","title":"Amadan","state":"connected","can_add":true}],"can_add":[{"repo":"amadan.net/oficina/equipo","name":"oficina/equipo","title":"Equipo","description":"","description_source":"repository","forge":"amadan","connection_id":"amadan"}],"items":[{"title_source":"repository","description_source":"repository","forge":"amadan","connection_id":"amadan","id":"p_0001","revision":1,"repo":"amadan.net/oficina/sample","name":"oficina/sample","title":"Sample","attachments":[{"kind":"repo","ref":"amadan.net/oficina/sample","name":"oficina/sample","default_branch":"main","head_sha":"3333333333333333333333333333333333333333","head_subject":"Swipe from the edge goes back","head_at":"2026-11-07T09:30:00Z"}],"state":"active","added_by":"owner@example.com","created_at":"2026-11-06T10:00:00Z","updated_at":"2026-11-06T10:00:01Z","description":"A sample app for Equipo tests.","stack":["Go"],"checks":{"here":true,"gate":"make ci","reason":""},"people":[{"address":"owner@example.com","name":"Owner","initials":"O"}]}],"allowed":["amadan.net/oficina/equipo","amadan.net/oficina/sample"],"home":"oficina"}
diff --git a/native/PROJECTS-REPORT.md b/native/PROJECTS-REPORT.md
index 23dc2ef3..48de95d7 100644
--- a/native/PROJECTS-REPORT.md
+++ b/native/PROJECTS-REPORT.md
@@ -17,8 +17,7 @@ controller for this round.
which opens the web page containing the current revision's form.
- New request opens Conversation with a removable project chip. Removing the
chip leaves an ordinary message; sending includes project_id in the retained
- retry body. A refused send remains visible with its project, the server's
- notice and Retry. Released selections show the server's coordinator notice
+ retry body. A refused send remains visible with Retry. Known server errors show their copy; an ordinary offline or unrecognised failure uses the existing send status. A project 404 clears the project and Retry sends a new operation without project_id. Released selections show the server's coordinator notice
while the actual reply keeps streaming in a separate stable row.
- Named placement cards show a checked Remember control and editable name.
Answers explicitly send the edited name or the empty string when unchecked.
@@ -72,8 +71,8 @@ regression and was restored before the gate:
- star-rollback
- personal-name-delete
- departed-read
-- message-project
-- explicit-opt-out
+- message-project: serializer omission only; this did not exercise the task-thread guard or composer chip clearing.
+- explicit-opt-out: serializer omission of an empty name only; this did not exercise the checkbox action.
- card-revision
- server-inline-notice
- notice-keeps-stream
@@ -188,3 +187,84 @@ Copy must remain in copy.go under the repository contract. No test or behavior
was removed. The original limits fail the size gate; the measured limits pass
make budget and TestBudgetRecordsAreShort. All native code is unchanged from
the passing native gate.
+
+
+## Review fixes after e7419bf8
+
+No strings were added or changed in this follow-up. The separate API copy
+commit contains **18** strings, not 19; the two Projects controls make 20 new
+canonical strings across the original branch.
+
+- **Question routing:** the server now exposes its existing `placementData.ByName`
+ marker as optional `placement_by_name`. An opted-out typed card can have no
+ `remember_name`, so that suggestion alone cannot identify it. SwiftUI uses
+ the marker for the field label. Ordinary questions use Answer and remain on
+ the Mac AppKit card, now with an Answer field and button.
+- **Send failure notices:** only a known server copy key produces an extra
+ notice. Offline and unrecognised 500 errors retain the existing waiting or
+ failed send status, with and without a project.
+- **Actual actions:** both composers use the tested selection-consuming action;
+ the phone closure and Mac onSend are checked. Question controls use the tested
+ per-card answer draft, which sends an explicit empty name when unticked.
+ The session's task-thread guard is tested at the transport request.
+- **Removed projects:** a dropped list item or removal event clears the composer
+ chip with the accepted selection-lost notice. A definitive 404 clears the
+ outgoing project's association; Retry creates a fresh idempotency key and
+ omits project_id. A 422 retains its original project and retry body.
+- **Star refusal:** rollback restores only that project's star field, even if
+ another project or metadata event arrived during the write. New names and
+ revisions survive the rollback.
+- **Card revisions:** edits and the remember choice belong to the card identity
+ in the session. The Mac host uses the card ID, not its revision, as identity.
+- **List/event ordering:** the server reads a new required list cursor in the
+ same transaction as the project items. Native rejects events and snapshots
+ older than that watermark, including events for absent projects. Wire,
+ OpenAPI, documentation and fixtures describe the additive fields.
+- **Copy guard:** AST traversal covers all internal packages, including wiring.
+ go/types resolves lexical bindings; assignments and concatenations are
+ followed to WriteError and error-body CopyKey fields. Unknown dynamic values
+ fail the guard. Tests cover variable codes, wiring, literal and variable
+ CopyKey bodies, aliases, branches, and the unrelated tool-result false positive.
+- **Mac composer:** the chip is hosted above the composer and reserves zero
+ height when absent. Selection changes are explicit representable inputs.
+- **Roster styling:** project actions use RosterButton. The remember checkbox
+ and typed fields use Roster controls, system text sizes and the existing
+ palette. No system prominent button or rounded-border field remains there.
+
+Review regressions were added before implementation. New API seams initially
+failed compilation; the extra variable-CopyKey test failed with a missed key.
+All deliberately broken guards below failed their targeted tests and were
+restored. Commands: `swift test --package-path native/apple --filter <test>`
+and `GOTOOLCHAIN=go1.26.11 CGO_ENABLED=0 go test <package> -run <test> -count=1`.
+The scripts and complete failure logs are under ignored native/build/logs:
+
+- question-marker; phone-question-label; mac-question-routing
+- send-fallback (offline, 500, known key, each with/without a project)
+- actual-opt-out; composer-clear-both (both platform tests fail); task-thread-project
+- selection-removal (list and event); gone-project-retry
+- star-intervening-event (same and different project); revision-resets-draft
+- list-watermark (older viewer event, snapshot and absent-project replay)
+- chip-placement; roster-control
+- copy-variable; copy-wiring; copy-literal; copy-variable-body; server-marker; server-cursor
+
+The earlier mutation names above have been corrected: those two initial tests
+covered serializers. They did not prove that a control passed the right value.
+
+The interface remains the existing Projects tab on iPhone and sidebar item on
+Mac. At phone width, the project title, description, remember label and fields
+wrap with Dynamic Type. On Mac the project chip is immediately above the input;
+ordinary Answer cards use AppKit and placement cards retain their SwiftUI host.
+No physical-device screenshot is claimed.
+
+
+Follow-up validation: native/scripts/check-native.sh passed with 194 tests in
+22 suites and the same known Oficina renewal issue. Mac and unsigned iOS
+Simulator builds passed; 217 strings and 72 parity entries are unchanged.
+All 20 review mutations were caught (14 Swift, six Go), including both actual
+composer paths. Go package tests for equipo, chat, personapi and wire, the
+person API/device contracts, release boundaries and native fixtures passed.
+Vet, staticcheck v0.7.0, fmt-check, module tidiness and size budgets passed.
+The typed marker and list cursor add five chat source lines and two wire source
+lines; their 51-line server regression is accounted for in measured budgets.
+The 390-point normal-size SwiftUI host capture was inspected. Accessibility
+sizes were checked for layout; those hidden-host images did not render reliably.
diff --git a/native/apple/Sources/EquipoKit/API/Projects.swift b/native/apple/Sources/EquipoKit/API/Projects.swift
index c07029bb..c2cd040f 100644
--- a/native/apple/Sources/EquipoKit/API/Projects.swift
+++ b/native/apple/Sources/EquipoKit/API/Projects.swift
@@ -1,6 +1,7 @@
import Foundation
public struct ProjectList: Codable, Sendable {
+ public var cursor: Int64? = nil
public var items: [ThinProject]?
public var connections: [ProjectConnection]?
public var canAdd: [ReachableProject]?
diff --git a/native/apple/Sources/EquipoKit/API/Thin.swift b/native/apple/Sources/EquipoKit/API/Thin.swift
index a0995033..0a3a3559 100644
--- a/native/apple/Sources/EquipoKit/API/Thin.swift
+++ b/native/apple/Sources/EquipoKit/API/Thin.swift
@@ -42,6 +42,9 @@ 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 isTypedProjectChoice: Bool { placementByName == true }
+ public var answerFieldKey: String { isTypedProjectChoice ? "projects.other" : "chat.card.answer" }
public var id: String
public var revision: Int64
public var kind: String
diff --git a/native/apple/Sources/EquipoKit/Projects/ProjectCatalog.swift b/native/apple/Sources/EquipoKit/Projects/ProjectCatalog.swift
index 33680874..ec63992b 100644
--- a/native/apple/Sources/EquipoKit/Projects/ProjectCatalog.swift
+++ b/native/apple/Sources/EquipoKit/Projects/ProjectCatalog.swift
@@ -11,7 +11,9 @@ import Observation
public private(set) var loaded = false
public private(set) var notice: String?
public private(set) var pending: Set<String> = []
- public var selection: ThinProject?
+ public var selection: ThinProject? { didSet { if selection != nil { selectionNotice = nil } } }
+ public private(set) var selectionNotice: String?
+ private var listSequence: Int64 = -1
var client: EquipoClient
let lifetime: SignInLifetime
private var sequence: [String: Int64] = [:]
@@ -45,12 +47,14 @@ import Observation
// again; do not restore a personal name or an old star meanwhile.
guard started == generation else { readAgain = true; continue }
let values = list.items ?? []
+ listSequence = max(listSequence, list.cursor ?? -1)
order = values.map(\.id)
for p in values where p.revision >= (projects[p.id]?.revision ?? -1) { projects[p.id] = p }
let ids = Set(order)
projects = projects.filter { ids.contains($0.key) }
connections = list.connections ?? []; reachable = list.canAdd ?? []
loaded = true; notice = nil
+ reconcileSelection()
} catch {
guard lifetime.isActive else { return }
notice = ProjectNotice.text(error)
@@ -59,7 +63,7 @@ import Observation
}
func applySnapshot(_ values: [ThinProject], cursor: Int64, generation expected: Int? = nil) {
- guard lifetime.isActive, expected == nil || expected == generation else { return }
+ guard lifetime.isActive, cursor >= listSequence, expected == nil || expected == generation else { return }
for p in values where cursor >= (sequence[p.id] ?? -1) && p.revision >= (projects[p.id]?.revision ?? -1) {
projects[p.id] = p
sequence[p.id] = cursor
@@ -67,11 +71,21 @@ import Observation
generation += 1
}
func applyEvent(_ project: ThinProject, cursor: Int64) {
- guard lifetime.isActive, cursor > (sequence[project.id] ?? -1),
+ guard lifetime.isActive, cursor > max(listSequence, sequence[project.id] ?? -1),
project.revision >= (projects[project.id]?.revision ?? -1) else { return }
sequence[project.id] = cursor
generation += 1
projects[project.id] = project
+ reconcileSelection()
+ }
+
+ private func reconcileSelection() {
+ guard let selected = selection else { return }
+ if projects[selected.id]?.state != "active" { releaseSelection(selected.id) }
+ }
+ func releaseSelection(_ id: String) {
+ if selection?.id == id { selection = nil }
+ selectionNotice = EquipoStrings.text("projects.selection_lost")
}
public func setStar(_ project: ThinProject, _ starred: Bool) async {
@@ -91,7 +105,7 @@ import Observation
await refresh()
} catch {
guard lifetime.isActive else { return }
- if started == generation { projects[project.id] = old }
+ projects[project.id]?.starred = old?.starred
notice = ProjectNotice.text(error)
}
}
@@ -127,6 +141,9 @@ import Observation
/// catalog entries we know; otherwise retain the existing native failure copy.
public enum ProjectNotice {
public static func text(_ error: Error) -> String {
+ knownText(error) ?? EquipoStrings.text(error as? EquipoAPIError == .offline ? "card.offline" : "card.failed")
+ }
+ public static func knownText(_ error: Error) -> String? {
if case EquipoAPIError.server(_, let body) = error,
["api.not_found", "api.invalid_input", "api.repo_not_allowed", "api.forbidden", "api.idempotency_conflict",
"api.card_answered", "api.card_stale", "api.confirmation_required", "api.coordinator_busy", "api.hold_bar",
@@ -135,6 +152,6 @@ public enum ProjectNotice {
let text = EquipoStrings.text(String.LocalizationValue(body.copyKey))
if text != body.copyKey { return text }
}
- return EquipoStrings.text(error as? EquipoAPIError == .offline ? "card.offline" : "card.failed")
+ return nil
}
}
diff --git a/native/apple/Sources/EquipoKit/Projects/QuestionAnswerDraft.swift b/native/apple/Sources/EquipoKit/Projects/QuestionAnswerDraft.swift
new file mode 100644
index 00000000..e32275df
--- /dev/null
+++ b/native/apple/Sources/EquipoKit/Projects/QuestionAnswerDraft.swift
@@ -0,0 +1,13 @@
+import Foundation
+import Observation
+
+/// The person's edits belong to a card, including when its revision changes.
+@MainActor @Observable public final class QuestionAnswerDraft {
+ public var name: String
+ public var remembers = true
+ public var typedChoice = ""
+ init(card: ThinCard) { name = card.rememberName ?? "" }
+ public func submit(_ choice: String, card: ThinCard, session: EquipoSession) async -> EquipoSession.AnswerOutcome {
+ await session.answer(card, choice: choice, rememberName: card.rememberName == nil ? nil : (remembers ? name : ""))
+ }
+}
diff --git a/native/apple/Sources/EquipoKit/Session/EquipoSession.swift b/native/apple/Sources/EquipoKit/Session/EquipoSession.swift
index db397905..1efd3c47 100644
--- a/native/apple/Sources/EquipoKit/Session/EquipoSession.swift
+++ b/native/apple/Sources/EquipoKit/Session/EquipoSession.swift
@@ -21,13 +21,20 @@ public final class EquipoSession {
public var notice: String? = nil
public var projectName: String? = nil
public var state: State
- let write: PendingWrite
+ var write: PendingWrite
+ var goneProject = false
}
/// A departing session can never become current again, even if a read
/// or credential renewal ignores cancellation and completes later.
public let lifetime: SignInLifetime
public let markdown = MarkdownTranscript()
+ private var questionDrafts: [String: QuestionAnswerDraft] = [:]
+ public func questionDraft(for card: ThinCard) -> QuestionAnswerDraft {
+ if let draft = questionDrafts[card.id] { return draft }
+ let draft = QuestionAnswerDraft(card: card); questionDrafts[card.id] = draft
+ return draft
+ }
var isInvalidated: Bool { !lifetime.isActive }
public private(set) var status: Status = .loading
public private(set) var account: DeviceAccount
@@ -296,15 +303,28 @@ public final class EquipoSession {
// MARK: Sending
+ public func sendFromComposer(_ text: String) -> Task<Void, Never> {
+ let projectID = projectCatalog.selection?.id
+ projectCatalog.selection = nil
+ return Task { await send(text, projectID: projectID) }
+ }
+
public func send(_ text: String, inThreadOf taskID: String? = nil, projectID: String? = nil) async {
let text = text.trimmingCharacters(in: .whitespacesAndNewlines)
guard lifetime.isActive, !text.isEmpty, let write = try? EquipoClient.message(text, projectID: taskID == nil ? projectID : nil) else { return }
- outgoing.append(Outgoing(id: write.key, text: text, taskID: taskID, projectName: projectID.flatMap { projects[$0]?.displayName }, state: .sending, write: write))
+ outgoing.append(Outgoing(id: write.key, text: text, taskID: taskID, projectName: taskID == nil ? projectID.flatMap { projects[$0]?.displayName } : nil, state: .sending, write: write))
await deliver(write.key)
}
/// Sends one outgoing message again, as itself.
- public func retry(_ id: String) async { await deliver(id) }
+ public func retry(_ id: String) async {
+ if let i = outgoing.firstIndex(where: { $0.id == id }), outgoing[i].goneProject {
+ // A definitive 404 rejected this send. A changed body is a new operation.
+ guard let write = try? EquipoClient.message(outgoing[i].text) else { return }
+ outgoing[i].write = write; outgoing[i].projectName = nil; outgoing[i].goneProject = false
+ }
+ await deliver(id)
+ }
private func deliver(_ id: String) async {
guard lifetime.isActive, let index = outgoing.firstIndex(where: { $0.id == id }) else { return }
@@ -330,7 +350,18 @@ public final class EquipoSession {
} catch let error as EquipoAPIError {
guard lifetime.isActive else { return }
if error.endsSession { endSession(); return }
- if let i = outgoing.firstIndex(where: { $0.id == id }) { outgoing[i].state = error == .offline ? .waiting : .failed; outgoing[i].notice = ProjectNotice.text(error) }
+ if let i = outgoing.firstIndex(where: { $0.id == id }) {
+ outgoing[i].state = error == .offline ? .waiting : .failed
+ outgoing[i].notice = ProjectNotice.knownText(error)
+ if case .server(404, _) = error,
+ let fields = try? JSONSerialization.jsonObject(with: item.write.body) as? [String: String],
+ let project = fields["project_id"] {
+ outgoing[i].goneProject = true
+ outgoing[i].projectName = nil
+ outgoing[i].notice = EquipoStrings.text("projects.selection_lost")
+ projectCatalog.releaseSelection(project)
+ }
+ }
} catch {
guard lifetime.isActive else { return }
// Cancelled on the way: it may yet be sent, as itself.
diff --git a/native/apple/Sources/EquipoKit/UI/LiveCards.swift b/native/apple/Sources/EquipoKit/UI/LiveCards.swift
index b8d7609c..8e88acb4 100644
--- a/native/apple/Sources/EquipoKit/UI/LiveCards.swift
+++ b/native/apple/Sources/EquipoKit/UI/LiveCards.swift
@@ -9,13 +9,11 @@ public struct LiveQuestionCard: View {
let taskTitle: String?
let session: EquipoSession
@State private var phase: Phase = .open
- @State private var name: String
- @State private var remembers = true
- @State private var typedChoice = ""
+ @Bindable private var draft: QuestionAnswerDraft
public init(card: ThinCard, taskTitle: String?, session: EquipoSession) {
self.card = card; self.taskTitle = taskTitle; self.session = session
- _name = State(initialValue: card.rememberName ?? "")
+ draft = session.questionDraft(for: card)
}
enum Phase: Equatable { case open, sending(String), settingAside, changed(at: Int64), offline, failed }
@@ -37,9 +35,9 @@ public struct LiveQuestionCard: View {
aside: aside, settingAside: phase == .settingAside)
if card.isOpen {
if card.rememberName != nil {
- Toggle(String(format: EquipoStrings.text("projects.remember_name"), name), isOn: $remembers).disabled(isSending)
- TextField(EquipoStrings.text("projects.name_to_remember"), text: $name)
- .textFieldStyle(.roundedBorder).disabled(!remembers || isSending)
+ RosterCheck(title: String(format: EquipoStrings.text("projects.remember_name"), draft.name), isOn: $draft.remembers).disabled(isSending)
+ RosterField(title: EquipoStrings.text("projects.name_to_remember"), text: $draft.name)
+ .disabled(!draft.remembers || isSending)
}
choices
feedback
@@ -52,7 +50,6 @@ public struct LiveQuestionCard: View {
}
.accessibilityElement(children: .contain)
.onChange(of: card.revision) { _, now in
- name = card.rememberName ?? ""; remembers = true; typedChoice = ""
if case .changed(let at) = phase, !AnswerFeedback.stillChanged(conflictAt: at, now: now) { phase = .open }
}
}
@@ -66,12 +63,11 @@ public struct LiveQuestionCard: View {
@ViewBuilder private var choices: some View {
let options = card.options ?? []
if options.isEmpty {
- TextField(EquipoStrings.text("projects.other"), text: $typedChoice)
- .textFieldStyle(.roundedBorder).onSubmit { Task { await submit(typedChoice) } }
+ RosterField(title: EquipoStrings.text(String.LocalizationValue(card.answerFieldKey)), text: $draft.typedChoice).onSubmit { Task { await submit(draft.typedChoice) } }
.disabled(isSending)
RosterButton(title: EquipoStrings.text("chat.card.answer"), primary: true, expanded: false) {
- Task { await submit(typedChoice) }
- }.disabled(isSending || typedChoice.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty)
+ Task { await submit(draft.typedChoice) }
+ }.disabled(isSending || draft.typedChoice.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty)
} else {
ViewThatFits(in: .horizontal) {
HStack(spacing: 10) { optionButtons(options) }
@@ -101,7 +97,7 @@ public struct LiveQuestionCard: View {
private func submit(_ choice: String) async {
guard !isSending, !choice.trimmingCharacters(in: .whitespacesAndNewlines).isEmpty else { return }
phase = .sending(choice)
- switch await session.answer(card, choice: choice, rememberName: card.rememberName == nil ? nil : (remembers ? name : "")) {
+ switch await draft.submit(choice, card: card, session: session) {
case .answered: phase = .open
case .changed: phase = .changed(at: session.cards.first { $0.id == card.id }?.revision ?? card.revision)
case .offline: phase = .offline
diff --git a/native/apple/Sources/EquipoKit/UI/RosterViews.swift b/native/apple/Sources/EquipoKit/UI/RosterViews.swift
index 43c7b66b..7a18633e 100644
--- a/native/apple/Sources/EquipoKit/UI/RosterViews.swift
+++ b/native/apple/Sources/EquipoKit/UI/RosterViews.swift
@@ -603,3 +603,38 @@ struct FlowLayout: Layout {
}
}
+
+/// Roster's input surface, with a persistent accessible name.
+struct RosterField: View {
+ let title: String
+ @Binding var text: String
+ var body: some View {
+ TextField("", text: $text, prompt: Text(title).foregroundStyle(Palette.placeholder))
+ .textFieldStyle(.plain).font(Typo.body).foregroundStyle(Palette.controlText)
+ .padding(12).frame(minHeight: 44)
+ .background(Palette.surface2, in: RoundedRectangle(cornerRadius: 10))
+ .overlay(RoundedRectangle(cornerRadius: 10).stroke(Palette.border, lineWidth: 1))
+ .accessibilityLabel(title)
+ }
+}
+
+struct RosterCheck: View {
+ let title: String
+ @Binding var isOn: Bool
+ var body: some View {
+ Toggle(isOn: $isOn) { Text(title).font(Typo.secondary).foregroundStyle(Palette.text) }
+ .toggleStyle(RosterCheckStyle())
+ }
+}
+
+private struct RosterCheckStyle: ToggleStyle {
+ func makeBody(configuration: Configuration) -> some View {
+ Button { configuration.isOn.toggle() } label: {
+ HStack(alignment: .firstTextBaseline, spacing: 10) {
+ Image(systemName: configuration.isOn ? "checkmark.square.fill" : "square")
+ .foregroundStyle(configuration.isOn ? Palette.accent : Palette.secondary)
+ configuration.label
+ }.frame(minHeight: 44, alignment: .leading).contentShape(Rectangle())
+ }.buttonStyle(.plain).accessibilityAddTraits(configuration.isOn ? [.isSelected] : [])
+ }
+}
diff --git a/native/apple/Sources/EquipoKit/UI/Screens/ConversationScreen.swift b/native/apple/Sources/EquipoKit/UI/Screens/ConversationScreen.swift
index f6f3c625..a3a87311 100644
--- a/native/apple/Sources/EquipoKit/UI/Screens/ConversationScreen.swift
+++ b/native/apple/Sources/EquipoKit/UI/Screens/ConversationScreen.swift
@@ -44,14 +44,14 @@ public struct ConversationScreen: View {
VStack(spacing: 0) {
ProjectSelectionChip(catalog: session.projectCatalog)
Composer(placeholder: String(localized: "conversation.placeholder", bundle: .module)) { text in
- let id = session.projectCatalog.selection?.id
- session.projectCatalog.selection = nil
- Task { await session.send(text, projectID: id) }
+ _ = sendFromComposer(text)
}
}
}
}
+ func sendFromComposer(_ text: String) -> Task<Void, Never> { session.sendFromComposer(text) }
+
/// Scrolls to the card once the feed has it; reads again if it does not yet.
private func show(_ id: String?, _ items: [FeedItem], _ proxy: ScrollViewProxy) {
guard let id else { return }
diff --git a/native/apple/Sources/EquipoKit/UI/Screens/ProjectsScreen.swift b/native/apple/Sources/EquipoKit/UI/Screens/ProjectsScreen.swift
index 3731d39d..cb15e534 100644
--- a/native/apple/Sources/EquipoKit/UI/Screens/ProjectsScreen.swift
+++ b/native/apple/Sources/EquipoKit/UI/Screens/ProjectsScreen.swift
@@ -22,7 +22,7 @@ public struct ProjectsScreen: View {
}
if let notice = catalog.notice {
Text(notice).font(Typo.secondary).foregroundStyle(Palette.negative)
- Button(EquipoStrings.text("read.retry")) { Task { await catalog.refresh() } }
+ RosterButton(title: EquipoStrings.text("read.retry"), primary: false, expanded: false) { Task { await catalog.refresh() } }
}
Section(EquipoStrings.text("projects.yours")) {
ForEach(catalog.items) { project in
@@ -42,7 +42,7 @@ public struct ProjectsScreen: View {
Text(repo.title.isEmpty ? repo.name : repo.title).font(Typo.secondaryStrong)
Text(repo.repo).font(Typo.caption).foregroundStyle(Palette.secondary)
if !repo.description.isEmpty { Text(repo.description).font(Typo.secondary) }
- Button(EquipoStrings.text("projects.add_reachable")) { Task { await catalog.add(repo) } }
+ RosterButton(title: EquipoStrings.text("projects.add_reachable"), primary: true, expanded: false) { Task { await catalog.add(repo) } }
.disabled(catalog.pending.contains(repo.id))
}
}
@@ -98,8 +98,7 @@ public struct ProjectDetailScreen: View {
VStack(alignment: .leading, spacing: 20) {
if let project = catalog.projects[projectID], project.state == "active" {
HStack(alignment: .top) { ProjectSummary(project: project); ProjectStar(project: project, catalog: catalog) }
- Button(EquipoStrings.text("projects.new_request")) { newRequest(project) }
- .buttonStyle(.borderedProminent)
+ RosterButton(title: EquipoStrings.text("projects.new_request"), primary: true, expanded: false) { newRequest(project) }
if let notice = catalog.notice { Text(notice).foregroundStyle(Palette.negative) }
if let names = project.names, !names.isEmpty {
SectionTitle(text: EquipoStrings.text("projects.names"))
@@ -110,7 +109,7 @@ public struct ProjectDetailScreen: View {
ForEach(names, id: \.self) { name in
VStack(alignment: .leading, spacing: 4) {
Text(name).font(Typo.body)
- Button(EquipoStrings.text("projects.forget_name")) { Task { await catalog.forgetName(name, in: project) } }
+ RosterButton(title: EquipoStrings.text("projects.forget_name"), primary: false, expanded: false) { Task { await catalog.forgetName(name, in: project) } }
.disabled(catalog.pending.contains(project.id))
.accessibilityValue(name)
}
@@ -136,6 +135,9 @@ public struct ProjectSelectionChip: View {
let catalog: ProjectCatalog
public init(catalog: ProjectCatalog) { self.catalog = catalog }
public var body: some View {
+ if let notice = catalog.selectionNotice {
+ Text(notice).font(Typo.secondary).foregroundStyle(Palette.secondary).padding(.horizontal, 16)
+ }
if let project = catalog.selection {
HStack(spacing: 8) {
Image(systemName: "folder")
diff --git a/native/apple/Sources/EquipoMac/LiveTranscript.swift b/native/apple/Sources/EquipoMac/LiveTranscript.swift
index 4700fbb4..8c342076 100644
--- a/native/apple/Sources/EquipoMac/LiveTranscript.swift
+++ b/native/apple/Sources/EquipoMac/LiveTranscript.swift
@@ -33,6 +33,9 @@ final class LiveTranscript: NSView {
// Keep each reply's SwiftUI host across delta and completion rebuilds.
// In particular, closing a fence keeps its scroll position and Copy state.
private var questionHosts: [String: NSHostingView<QuestionCardHost>] = [:]
+ var hostedQuestionIDs: Set<String> { Set(questionHosts.keys) }
+ private let selectionHost: NSHostingView<ProjectSelectionChip>
+ var selectionFrame: NSRect { selectionHost.frame }
private var replyHosts: [String: NSHostingView<MarkdownReplyHost>] = [:]
private struct RowRevision: Equatable {
let item: FeedItem
@@ -57,6 +60,7 @@ final class LiveTranscript: NSView {
init(session: EquipoSession, openTask: @escaping (String) -> Void) {
self.session = session
+ selectionHost = NSHostingView(rootView: ProjectSelectionChip(catalog: session.projectCatalog))
self.openTask = openTask
super.init(frame: .zero)
scroll.documentView = document
@@ -65,13 +69,13 @@ final class LiveTranscript: NSView {
scroll.automaticallyAdjustsContentInsets = false
addSubview(scroll)
addSubview(composer)
+ addSubview(selectionHost)
composer.onHeightChange = { [weak self] in self?.needsLayout = true }
composer.onSend = { [weak self] text in
guard let self else { return }
let session = self.session
- let projectID = session.projectCatalog.selection?.id
- session.projectCatalog.selection = nil
- Task { await session.send(text, projectID: projectID) }
+ _ = session.sendFromComposer(text)
+ self.needsLayout = true
}
setAccessibilityLabel(EquipoStrings.text("tab.conversation"))
}
@@ -80,6 +84,7 @@ final class LiveTranscript: NSView {
func update(items: [FeedItem]) {
let wasAtBottom = isAtBottom
self.items = items
+ needsLayout = true
session.markdown.retainMessages(Set(items.filter { $0.reply != nil }.map(\.id)), origin: session.origin)
rebuild()
if wasAtBottom || !hasScrolledOnce { scrollToBottom(); hasScrolledOnce = !items.isEmpty }
@@ -104,7 +109,10 @@ final class LiveTranscript: NSView {
let height = composer.desiredHeight
let column = self.column
composer.frame = NSRect(x: column.x, y: bounds.height - height - 18, width: column.width, height: height)
- scroll.frame = NSRect(x: 0, y: 0, width: bounds.width, height: composer.frame.minY - 12)
+ selectionHost.frame.size.width = column.width
+ let chipHeight = session.projectCatalog.selection == nil && session.projectCatalog.selectionNotice == nil ? 0 : ceil(selectionHost.fittingSize.height)
+ selectionHost.frame = NSRect(x: column.x, y: composer.frame.minY - chipHeight, width: column.width, height: chipHeight)
+ scroll.frame = NSRect(x: 0, y: 0, width: bounds.width, height: selectionHost.frame.minY - 12)
if laidOutWidth != bounds.width {
let wasAtBottom = isAtBottom
laidOutWidth = bounds.width
@@ -209,7 +217,7 @@ final class LiveTranscript: NSView {
place(hosted(LiveReport(report: report, compact: compact, wide: true) { [weak self] in self?.openTask(report.task.id) }, width: width), gapAfter: 24)
case .question(let card, let byline):
place(bylineView(byline, width: width), gapAfter: MacMetric.bylineGap)
- if card.rememberName != nil || (card.options ?? []).isEmpty {
+ if card.rememberName != nil || card.isTypedProjectChoice {
let root = QuestionCardHost(card: card, taskTitle: session.task(card.taskId)?.title, session: session, width: content) { [weak self] in
Task { @MainActor [weak self] in
await Task.yield()
@@ -382,7 +390,23 @@ final class LiveTranscript: NSView {
}
let sending: String? = { if case .sending(let id) = state { return id }; return nil }()
let options = card.options ?? []
- if !options.isEmpty {
+ if options.isEmpty {
+ let field = NSTextField(string: session.questionDraft(for: card).typedChoice)
+ field.placeholderString = EquipoStrings.text("chat.card.answer")
+ field.setAccessibilityLabel(EquipoStrings.text("chat.card.answer"))
+ field.font = MacType.line; field.textColor = .webText
+ field.frame.size = NSSize(width: inner, height: 32)
+ field.isEnabled = sending == nil
+ add(field)
+ let answer = button(EquipoStrings.text("chat.card.answer"), .primary) { [weak self, weak field] in
+ guard let self, let field else { return }
+ let text = field.stringValue.trimmingCharacters(in: .whitespacesAndNewlines)
+ guard !text.isEmpty else { return }
+ self.session.questionDraft(for: card).typedChoice = text
+ self.submit(card: card, choice: text)
+ }
+ answer.frame.size = NSSize(width: inner, height: 32); add(answer)
+ } else {
let gap: CGFloat = 10
let w = floor((inner - gap * CGFloat(options.count - 1)) / CGFloat(options.count))
for (index, option) in options.enumerated() {
@@ -602,6 +626,8 @@ final class LiveTranscript: NSView {
/// The AppKit transcript in the SwiftUI window. The feed is built in the
/// SwiftUI body, so any change to the session it reads updates it here.
struct TranscriptView: NSViewRepresentable {
+ let projectSelectionID: String?
+ let projectSelectionNotice: String?
let items: [FeedItem]
let session: EquipoSession
@Binding var focusCard: String?
@@ -656,7 +682,7 @@ private struct QuestionCardHost: View {
let onHeightChange: () -> Void
var body: some View {
LiveQuestionCard(card: card, taskTitle: taskTitle, session: session)
- .id(card.revision)
+ .id(card.id)
.frame(width: width, alignment: .leading)
.fixedSize(horizontal: false, vertical: true)
.onGeometryChange(for: CGFloat.self) { $0.size.height } action: { _ in onHeightChange() }
diff --git a/native/apple/Sources/EquipoMac/MacMainView.swift b/native/apple/Sources/EquipoMac/MacMainView.swift
index 38876f4a..2d974e44 100644
--- a/native/apple/Sources/EquipoMac/MacMainView.swift
+++ b/native/apple/Sources/EquipoMac/MacMainView.swift
@@ -57,8 +57,7 @@ struct MacMainView: View {
@ViewBuilder private var detail: some View {
switch pane {
case .conversation:
- TranscriptView(items: Feed.build(session), session: session, focusCard: $focusCard, openTask: open)
- .safeAreaInset(edge: .bottom, spacing: 0) { ProjectSelectionChip(catalog: session.projectCatalog).padding(.bottom, 8) }
+ TranscriptView(projectSelectionID: session.projectCatalog.selection?.id, projectSelectionNotice: session.projectCatalog.selectionNotice, items: Feed.build(session), session: session, focusCard: $focusCard, openTask: open)
case .projects:
HStack(spacing: 0) {
ProjectsScreen(session: session) { inspectedProject = $0 }
diff --git a/native/apple/Tests/EquipoKitTests/Fixtures/project-card.json b/native/apple/Tests/EquipoKitTests/Fixtures/project-card.json
index 4823d772..72e7c798 100644
--- a/native/apple/Tests/EquipoKitTests/Fixtures/project-card.json
+++ b/native/apple/Tests/EquipoKitTests/Fixtures/project-card.json
@@ -12,5 +12,6 @@
"task_id": "",
"turn_id": "t_qx3y2mwzyh5b7isafhjc6y4l4z",
"updated_at": "2026-11-17T11:59:59.93041Z",
- "remember_name": "my reader"
+ "remember_name": "my reader",
+ "placement_by_name": true
}
diff --git a/native/apple/Tests/EquipoKitTests/Fixtures/project-list.json b/native/apple/Tests/EquipoKitTests/Fixtures/project-list.json
index a0002e7d..0cb059ae 100644
--- a/native/apple/Tests/EquipoKitTests/Fixtures/project-list.json
+++ b/native/apple/Tests/EquipoKitTests/Fixtures/project-list.json
@@ -120,5 +120,6 @@
"forge": "amadan",
"connection_id": "amadan"
}
- ]
+ ],
+ "cursor": 0
}
diff --git a/native/apple/Tests/EquipoKitTests/Fixtures/project-typed-answer.json b/native/apple/Tests/EquipoKitTests/Fixtures/project-typed-answer.json
index fc514d9c..a4908e29 100644
--- a/native/apple/Tests/EquipoKitTests/Fixtures/project-typed-answer.json
+++ b/native/apple/Tests/EquipoKitTests/Fixtures/project-typed-answer.json
@@ -13,7 +13,8 @@
"task_id": "",
"turn_id": "t_qx3y2mwzyh5b7isafhjc6y4l4z",
"updated_at": "2026-11-17T11:59:59.93041Z",
- "remember_name": "edited reader"
+ "remember_name": "edited reader",
+ "placement_by_name": true
},
"message": {
"created_at": "0001-01-01T00:00:00Z",
diff --git a/native/apple/Tests/EquipoKitTests/Fixtures/thin/projects.json b/native/apple/Tests/EquipoKitTests/Fixtures/thin/projects.json
index aa9990c8..8d24a178 100644
--- a/native/apple/Tests/EquipoKitTests/Fixtures/thin/projects.json
+++ b/native/apple/Tests/EquipoKitTests/Fixtures/thin/projects.json
@@ -3,6 +3,7 @@
"amadan.net/oficina/equipo",
"amadan.net/oficina/sample"
],
+ "cursor": 64,
"home": "",
"items": [
{
diff --git a/native/apple/Tests/EquipoKitTests/ProjectsReviewTests.swift b/native/apple/Tests/EquipoKitTests/ProjectsReviewTests.swift
new file mode 100644
index 00000000..82a44d2c
--- /dev/null
+++ b/native/apple/Tests/EquipoKitTests/ProjectsReviewTests.swift
@@ -0,0 +1,149 @@
+import Foundation
+import Testing
+@testable import EquipoKit
+#if os(macOS)
+import AppKit
+import SwiftUI
+@testable import EquipoMac
+#endif
+
+@MainActor @Suite(.serialized) struct ProjectsReviewTests {
+ func session(_ t: ScriptedTransport) throws -> EquipoSession {
+ var account = DeviceAccount.new(origin: t.origin, label: "Test")
+ account.credential = try Fixture.decode("device-credential")
+ return EquipoSession(account: account, accounts: DeviceAccounts(store: MemorySecretStore()), transport: t)
+ }
+ func body(_ request: APIRequest) throws -> [String: String] {
+ try #require(JSONSerialization.jsonObject(with: request.body!) as? [String: String])
+ }
+ @Test func messageFailuresOnlyShowKnownServerCopy() async throws {
+ for project in [nil, "p_star"] as [String?] {
+ for failure in [0, 500, 422] {
+ let t = ScriptedTransport(); let s = try session(t)
+ if failure == 0 { t.on("POST /messages", .failure(.offline)) }
+ else { t.on("POST /messages", .success(APIResponse(status: failure, data: Data("{\"code\":\"refused\",\"copy_key\":\"\(failure == 422 ? "api.repo_not_allowed" : "unrecognised")\",\"request_id\":\"r\"}".utf8)))) }
+ await s.send("Fix it", projectID: project)
+ #expect(s.outgoing.first?.notice == (failure == 422 ? EquipoStrings.text("api.repo_not_allowed") : nil))
+ }
+ }
+ }
+ @Test func taskThreadNeverCarriesProject() async throws {
+ let t = ScriptedTransport(); let s = try session(t)
+ await s.send("More detail", inThreadOf: "tk1", projectID: "p_star")
+ let request = try #require(t.requests.first { $0.method == "POST" })
+ #expect(try body(request)["project_id"] == nil)
+ #expect(s.outgoing.first?.projectName == nil)
+ }
+ @Test func removedSelectionClearsFromListAndEvent() async throws {
+ for event in [false, true] {
+ let t = ScriptedTransport(); let s = try session(t)
+ t.on("GET /projects", fixture: "project-list"); await s.projectCatalog.refresh()
+ var p = try #require(s.projectCatalog.items.first); s.projectCatalog.selection = p
+ if event { p.state = "removed"; p.revision += 1; s.projectCatalog.applyEvent(p, cursor: 100) }
+ else { t.replace("GET /projects", with: .success(APIResponse(status: 200, data: Data("{\"items\":[],\"cursor\":100}".utf8)))); await s.projectCatalog.refresh() }
+ #expect(s.projectCatalog.selection == nil)
+ #expect(s.projectCatalog.selectionNotice == EquipoStrings.text("projects.selection_lost"))
+ }
+ }
+ @Test func listCursorRejectsOlderViewerEventsAndResurrection() async throws {
+ let t = ScriptedTransport(); let s = try session(t)
+ var json = try #require(JSONSerialization.jsonObject(with: Fixture.data("project-list")) as? [String: Any])
+ json["cursor"] = 100
+ t.on("GET /projects", .success(APIResponse(status: 200, data: try JSONSerialization.data(withJSONObject: json))))
+ await s.projectCatalog.refresh()
+ var p = try #require(s.projectCatalog.items.first); p.personalNames = ["stale"]
+ s.projectCatalog.applyEvent(p, cursor: 99)
+ s.projectCatalog.applySnapshot([p], cursor: 99)
+ #expect(s.projectCatalog.projects[p.id]?.personalNames != ["stale"])
+ p.id = "removed_project"; s.projectCatalog.applyEvent(p, cursor: 99)
+ #expect(s.projectCatalog.projects[p.id] == nil)
+ }
+ @Test func questionMarkerAndRememberChoiceSurviveRevision() async throws {
+ let t = ScriptedTransport(); let s = try session(t)
+ var card: ThinCard = try Fixture.decode("project-card")
+ #expect(card.isTypedProjectChoice)
+ #expect(card.answerFieldKey == "projects.other")
+ let draft = s.questionDraft(for: card)
+ draft.remembers = false; draft.name = "my edited name"
+ card.revision += 1
+ #expect(s.questionDraft(for: card) === draft)
+ #expect(!draft.remembers && draft.name == "my edited name")
+ _ = await draft.submit("a repo", card: card, session: s)
+ let request = try #require(t.sent("POST /cards/\(card.id)/answer").first)
+ let fields = try #require(JSONSerialization.jsonObject(with: request.body!) as? [String: Any])
+ #expect(fields["remember_name"] as? String == "")
+ #expect(fields["revision"] as? Int64 == card.revision)
+ card.placementByName = nil; card.rememberName = nil
+ #expect(!card.isTypedProjectChoice)
+ #expect(card.answerFieldKey == "chat.card.answer")
+ }
+ @Test func phoneComposerConsumesSelection() async throws {
+ let t = ScriptedTransport(); let s = try session(t)
+ let list: ProjectList = try Fixture.decode("project-list")
+ s.projectCatalog.selection = list.items?.first
+ let screen = ConversationScreen(session: s, openTask: { _ in })
+ let send = screen.sendFromComposer("Hello")
+ #expect(s.projectCatalog.selection == nil)
+ await send.value
+ #expect(try body(#require(t.sent("POST /messages").first))["project_id"] == "p_star")
+ }
+#if os(macOS)
+ @Test func macComposerConsumesSelectionAndChipIsAboveIt() async throws {
+ let t = ScriptedTransport(); let s = try session(t)
+ let list: ProjectList = try Fixture.decode("project-list")
+ let view = LiveTranscript(session: s, openTask: { _ in })
+ view.frame = NSRect(x: 0, y: 0, width: 700, height: 800)
+ s.projectCatalog.selection = list.items?.first
+ view.layout()
+ #expect(view.selectionFrame.maxY <= view.composer.frame.minY)
+ #expect(view.selectionFrame.height > 0)
+ view.composer.onSend?("Hello")
+ #expect(s.projectCatalog.selection == nil)
+ for _ in 0..<200 where t.sent("POST /messages").isEmpty { await Task.yield() }
+ #expect(try body(#require(t.sent("POST /messages").first))["project_id"] == "p_star")
+ view.layout()
+ #expect(view.selectionFrame.height == 0)
+ }
+ @Test func ordinaryQuestionStaysAppKitButPlacementUsesSwiftUI() throws {
+ let s = try session(ScriptedTransport())
+ var card: ThinCard = try Fixture.decode("project-card")
+ let view = LiveTranscript(session: s, openTask: { _ in })
+ view.frame = NSRect(x: 0, y: 0, width: 700, height: 800)
+ let byline = RosterByline(who: .coordinator, verb: "asks", project: nil, time: nil)
+ view.update(items: [.question(card, byline)])
+ #expect(view.hostedQuestionIDs == [card.id])
+ card.id = "ordinary"; card.placementByName = nil; card.rememberName = nil
+ view.update(items: [.question(card, byline)])
+ #expect(view.hostedQuestionIDs.isEmpty)
+ func fields(_ v: NSView) -> [NSTextField] { (v as? NSTextField).map { [$0] } ?? v.subviews.flatMap(fields) }
+ #expect(fields(view).contains { $0.isEditable && $0.placeholderString == EquipoStrings.text("chat.card.answer") })
+ }
+#endif
+}
+
+extension ProjectsReviewTests {
+ @Test func phoneAndMacControlsUseTestedActionsAndRosterTheme() throws {
+ let sources = URL(fileURLWithPath: #filePath).deletingLastPathComponent().deletingLastPathComponent().deletingLastPathComponent().appendingPathComponent("Sources")
+ func source(_ path: String) throws -> String { try String(contentsOf: sources.appendingPathComponent(path), encoding: .utf8) }
+ let card = try source("EquipoKit/UI/LiveCards.swift")
+ #expect(card.contains("draft.submit(choice, card: card, session: session)"))
+ #expect(card.contains("card.answerFieldKey"))
+ #expect(card.contains("$draft.remembers"))
+ #expect(!card.contains("remembers = true"))
+ #expect(!card.contains(".roundedBorder"))
+ #expect(card.contains("RosterField("))
+ #expect(card.contains("RosterCheck("))
+ let phone = try source("EquipoKit/UI/Screens/ConversationScreen.swift")
+ #expect(phone.contains("_ = sendFromComposer(text)"))
+ let mac = try source("EquipoMac/LiveTranscript.swift")
+ #expect(mac.contains("_ = session.sendFromComposer(text)"))
+ #expect(mac.contains(".id(card.id)"))
+ #expect(!mac.contains(".id(card.revision)"))
+ let projects = try source("EquipoKit/UI/Screens/ProjectsScreen.swift")
+ #expect(!projects.contains(".borderedProminent"))
+ for key in ["projects.new_request", "projects.add_reachable", "projects.forget_name"] {
+ #expect(projects.contains("RosterButton(title: EquipoStrings.text(\"\(key)\")"))
+ }
+ #expect(!(try source("EquipoMac/MacMainView.swift")).contains("ProjectSelectionChip("))
+ }
+}
diff --git a/native/apple/Tests/EquipoKitTests/ProjectsTests.swift b/native/apple/Tests/EquipoKitTests/ProjectsTests.swift
index d3972d54..eb860276 100644
--- a/native/apple/Tests/EquipoKitTests/ProjectsTests.swift
+++ b/native/apple/Tests/EquipoKitTests/ProjectsTests.swift
@@ -174,11 +174,14 @@ extension ProjectsTests {
await s.send("Fix this", projectID: "p_star")
let outgoing = try #require(s.outgoing.first)
#expect(outgoing.state == .failed)
- #expect(outgoing.notice == EquipoStrings.text(String.LocalizationValue("api." + code)))
+ #expect(outgoing.notice == (status == 404 ? EquipoStrings.text("projects.selection_lost") : EquipoStrings.text(String.LocalizationValue("api." + code))))
await s.retry(outgoing.id)
let requests = t.sent("POST /messages")
#expect(requests.count == 2)
- #expect(requests[0].body == requests[1].body)
+ #expect((requests[0].body == requests[1].body) == (status != 404))
+ let retry = try #require(JSONSerialization.jsonObject(with: requests[1].body!) as? [String: String])
+ #expect(retry["project_id"] == (status == 404 ? nil : "p_star"))
+ #expect((retry["idempotency_key"] == outgoing.id) == (status != 404))
let fields = try #require(JSONSerialization.jsonObject(with: requests[0].body!) as? [String: String])
#expect(fields["project_id"] == "p_star")
}
@@ -357,3 +360,26 @@ extension ProjectsTests {
#expect(c.detailsURL(project).absoluteString == "https://oficina.example.test/projects/p_star")
}
}
+
+extension ProjectsTests {
+ @Test func refusedStarRollsBackOnlyItsFieldDespiteInterveningEvents() async throws {
+ for sameProject in [false, true] {
+ let t = ScriptedTransport(); t.on("GET /projects", fixture: "project-list")
+ let p = try #require(list().items?.first)
+ t.on("PUT /projects/\(p.id)/star", .success(APIResponse(status: 500, data: Data("{\"code\":\"unavailable\",\"copy_key\":\"api.unavailable\",\"request_id\":\"r\"}".utf8))))
+ let transport = ProjectHeldTransport(t, route: "PUT /projects/\(p.id)/star")
+ let c = ProjectCatalog(client: EquipoClient(transport: transport, token: "fixture"), lifetime: SignInLifetime())
+ await c.refresh()
+ let write = Task { await c.setStar(p, false) }; await transport.wait()
+ var event = sameProject ? p : try #require(list().items?.last)
+ event.personalNames = ["a new name"]; event.revision += 1
+ // A metadata event can carry the optimistic value on a concurrent server update.
+ if sameProject { event.starred = false }
+ c.applyEvent(event, cursor: 20)
+ await transport.release(); await write.value
+ #expect(c.projects[p.id]?.starred == p.starred)
+ #expect(c.projects[event.id]?.personalNames == ["a new name"])
+ #expect(c.projects[event.id]?.revision == event.revision)
+ }
+ }
+}
diff --git a/scripts/runner-reference-allowlist.json b/scripts/runner-reference-allowlist.json
index ae534103..567be78f 100644
--- a/scripts/runner-reference-allowlist.json
+++ b/scripts/runner-reference-allowlist.json
@@ -18254,5 +18254,19 @@
"match": "Node",
"count": 1,
"reason": "Markdown syntax tree nodes in native rendering and web parity fixtures; no external runtime."
+ },
+ {
+ "path": "internal/equipo/api_copy_test.go",
+ "line_sha256": "469749cabd0dfcbaf26ba724860992bb46b9b52b94efd42022a3064fffa2ae1d",
+ "match": "Node",
+ "count": 3,
+ "reason": "Go AST traversal type for the API error copy guard."
+ },
+ {
+ "path": "internal/equipo/api_copy_test.go",
+ "line_sha256": "4f2302a30396487a1f1414f2ecd5297abc68bbe2fc305812d072b646c42b2009",
+ "match": "Node",
+ "count": 1,
+ "reason": "Go AST traversal type for the API error copy guard."
}
]