oficina / equipo Public

Merge branch 'fix/access-card-and-project-title' into main

Merge branch 'fix/access-card-and-project-title' into main

Fixes #48 (a false "can't reach" card that named the task, not a
repository) and #49 (a project titled "Create"): access cards only for
real repositories the person names or Equipo knows and can't reach; open
cards resolve only when their own repository is filed; projects titled
from their repository; migration 0103 clears titles Equipo chose. New
copy chat.card.access_first accepted by delegation (Luna, 2026-11-24).
Reviewed by Claude Fable 5.2 (approved at ae6192c7; R1 and nits closed).
Hub CI green at f7a656fe (merged with main abf40e18).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev 609fdc348d9a790054be0d42cf1f133978c1a060 parent abf40e1parent f7a656f
39 files changed, +977 −163
  • .rastrillo/budgets.txt +6 −6
  • docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md +1 −0
  • internal/equipo/chat/access_need_test.go +442 −0
  • internal/equipo/chat/access_request.go +66 −2
  • internal/equipo/chat/access_review_test.go +2 −0
  • internal/equipo/chat/merge.go +1 −4
  • internal/equipo/chat/mergeauth.go +4 −16
  • internal/equipo/chat/placement_edges_test.go +5 −0
  • internal/equipo/chat/project_catalog.go +1 −1
  • internal/equipo/chat/project_names.go +3 −2
  • internal/equipo/chat/projects.go +13 −15
  • internal/equipo/chat/report_thread_test.go +1 −1
  • internal/equipo/chat/roster.go +5 −3
  • internal/equipo/chat/roster_context_test.go +7 −2
  • internal/equipo/chat/stars.go +1 −4
  • internal/equipo/chat/tasks.go +37 −22
  • internal/equipo/chat/tools.go +143 −34
  • internal/equipo/chat_page.go +10 −0
  • internal/equipo/copy.go +1 −0
  • internal/equipo/migrations/0103_clear_equipo_chosen_titles.sql +10 −0
  • internal/equipo/project_title_migration_test.go +71 −0
  • internal/equipotest/perf_plan3_test.go +1 −1
  • internal/headless/engineering_test.go +3 −1
  • internal/headless/merge_test.go +3 −3
  • internal/headless/projects_test.go +20 −2
  • internal/headless/review_test.go +1 −1
  • internal/plan3test/plan3_release_test.go +3 −1
  • internal/thintest/access_resume_browser_test.go +1 −1
  • internal/thintest/empty_repo_contract_test.go +14 −13
  • internal/thintest/merge_contract_test.go +3 −3
  • internal/thintest/mergeauth_contract_test.go +4 −4
  • internal/thintest/pages_test.go +71 −6
  • internal/thintest/projects_pages_test.go +5 −5
  • internal/thintest/report_actions_browser_test.go +1 −1
  • internal/thintest/roster_browser_test.go +4 −4
  • internal/thintest/rows_pages_test.go +1 −1
  • internal/thintest/tasks_contract_test.go +2 −2
  • internal/thintest/tools_contract_test.go +5 −2
  • internal/wire/tasks.go +5 −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/feat__paused-work: Type  Size Avail | ext4   96G   85G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type  Size Avail | ext4   96G   85G
ci-box: bwrap: fetched and verified in 0.3s
ci-box: claude: fetched and verified in 3.0s
ci-box: codex: fetched and verified in 4.3s
ci-box: codex-code-mode-host: fetched and verified in 1.9s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.3s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: image pulled in 10.0s
ci-box: pi: installed and verified in 7.6s
ci-box: opencode: installed and verified in 2.3s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 8.6s
ci-box: clone deepened in 3.5s
ci-box: file times set from content: 2962 files, 192 directories
ci-box: ready in 18.9s
=== copy ===
EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipotest	0.141s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  1.2s
+ go list -export -test -tags testbuild -f  ./...
  0.6s
+ go list -export -test -tags browser,testbuild -f  ./internal/equipo ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
  0.3s
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-23 20:05:14 +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
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m6.67s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m5.171s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m5.17s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 36.77, cpu waiting 23.24%, memory waiting 0.00%, io waiting 2.23%
--- 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
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m6.225s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m4.558s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m4.56s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 36.77, cpu waiting 23.24%, memory waiting 0.00%, io waiting 2.23%
--- 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
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m5.548s 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 1m3.658s amadan.net/oficina/equipo/internal/headless
receipt: slow test 55.69s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 4.32s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 3.64s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 36.77, cpu waiting 23.24%, memory waiting 0.00%, io waiting 2.23%
--- 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
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m4.462s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m2.881s amadan.net/oficina/equipo/internal/headless
receipt: slow test 29.8s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 16.26s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 8.59s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
receipt: slow test 8.23s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
machine: 32 CPUs, load 38.76, cpu waiting 23.59%, memory waiting 0.00%, io waiting 2.30%
--- shard 4 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-guards: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadlessCopyRotation$|^TestHeadlessPolicyGuards$|^TestHeadlessRunnerKillLeavesNoCopies$|^TestHeadlessNewHouseRuleStartsFresh$|^TestHeadless$/^3_engineering$|^TestHeadless$/^3_step_cancel$|^TestHeadless$/^3_step_contained$|^TestHeadless$/^3_step_refused$|^TestHeadless$/^3_empty_repo$|^TestHeadless$/^3_empty_engineering$|^TestHeadless$/^3_empty_merge$|^TestHeadless$/^3_empty_merge_rebuilt$|^TestHeadless$/^3_empty_fix_round$' ./internal/headless
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

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

receipt: test step 2m31.732s 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 2m29.81s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m26.3s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 17.84s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 8.4s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 6.48s amadan.net/oficina/equipo/internal/headless TestHeadlessBatchAfterRefusedReply
receipt: slow test 6.48s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
machine: 32 CPUs, load 14.86, cpu waiting 6.87%, memory waiting 0.00%, io waiting 0.52%
--- 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 346ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 2m7.762s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 8.12s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.76s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 3.71s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 3.55s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 2.47s amadan.net/oficina/equipo/internal/thintest TestResearchDoneFallsBack
machine: 32 CPUs, load 6.76, cpu waiting 0.00%, memory waiting 0.00%, io waiting 6.63%
--- 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 397ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1m27.585s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.16s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 5.12s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.44s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 2.37s amadan.net/oficina/equipo/internal/thintest TestContractPreview
receipt: slow test 2.35s amadan.net/oficina/equipo/internal/thintest TestContractPublishNameTaken
machine: 32 CPUs, load 1.17, cpu waiting 0.00%, memory waiting 0.00%, io waiting 6.63%
--- shard 8 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-thin: ./internal/runner/thin
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./internal/runner/thin
cache miss: amadan.net/oficina/equipo/internal/runner/thin: its inputs changed
budget note: internal/runner/thin took 4m34.695s, over the 45s its record on line 44 allows; reported only, timing fails on CI

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

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

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

receipt: test step 34.469s 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 33.681s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.12s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.13s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 3.13s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 1.99s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestReportPostsRetryExactRequest
machine: 32 CPUs, load 26.30, cpu waiting 15.49%, memory waiting 0.00%, io waiting 3.80%
--- 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 30.9%, load 22.06
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
cache miss: amadan.net/oficina/equipo/internal/equipotest: its inputs changed

receipt: test step 1m6.653s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m4.696s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 28.11s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 28.11s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 26.04s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 23.58s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 23.3s amadan.net/oficina/equipo/internal/equipotest TestAuthorityProjectKinds
machine: 32 CPUs, load 30.65, cpu waiting 17.05%, memory waiting 0.00%, io waiting 1.35%
--- 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 30.9%, load 22.06
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 398ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1m15.975s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 20.32s amadan.net/oficina/equipo/internal/equipotest TestProjectRejectsUnsafeBinding
receipt: slow test 20.3s amadan.net/oficina/equipo/internal/equipotest TestProjectConcurrentRetry
receipt: slow test 20.21s amadan.net/oficina/equipo/internal/equipotest TestProjectRetryAndRevision
receipt: slow test 20.19s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
receipt: slow test 20.18s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
machine: 32 CPUs, load 22.06, cpu waiting 12.84%, memory waiting 0.00%, io waiting 4.06%
--- 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 30.9%, load 22.06
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
cache miss: amadan.net/oficina/equipo/internal/equipotest: its inputs changed

receipt: test step 1m16.526s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m4.276s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 14.37s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 13.19s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 10.17s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 10.13s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 7.06s amadan.net/oficina/equipo/internal/equipotest TestRosterBootstrapOnce
machine: 32 CPUs, load 27.33, cpu waiting 14.62%, memory waiting 0.00%, io waiting 1.14%
--- 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 30.9%, load 22.06
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 631ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 1m6.968s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 25.9s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 24.8s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 24.78s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 23.03s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsRollbackAndUnavailable
receipt: slow test 22.86s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedOnce
machine: 32 CPUs, load 26.30, cpu waiting 14.22%, memory waiting 0.00%, io waiting 3.93%
--- 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 30.9%, load 26.30
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 683ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 51.982s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.63s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.51s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.55s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.53s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.27s amadan.net/oficina/equipo/internal/plan3test TestPlanMigrationUpgrade
machine: 32 CPUs, load 26.30, cpu waiting 14.22%, memory waiting 0.00%, io waiting 3.93%
--- 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 30.9%, load 22.06
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/forgekey ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/door ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/push ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/claude/realcli ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/forgekey ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
cache miss: amadan.net/oficina/equipo/internal/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/provider/opencode: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/copydesk: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/idtest: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/forge: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/workspace: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/equipo/team: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/claude: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/codex: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/checks: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/containment: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/pi: its inputs changed
budget note: internal/equipo took 54.004s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/equipo/chat took 19.015s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/idtest took 1m39.823s, 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 38.332s, over the 15s its record on line 40 allows; reported only, timing fails on CI

receipt: test step 2m13.663s against a 60s target (the gate's other steps are not in this figure)
receipt: 13 packages ran, 52 cached, 17 without tests, 0 failed
receipt: slow package 1m39.823s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 54.004s amadan.net/oficina/equipo/internal/equipo
receipt: slow package 52.273s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 51.98s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 38.332s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 53.73s amadan.net/oficina/equipo/internal/idtest TestDoorRemembersOficinaID
receipt: slow test 45.41s amadan.net/oficina/equipo/internal/idtest TestDoorOficinaSettingsUnreadableIsNoLoop
receipt: slow test 45.32s amadan.net/oficina/equipo/internal/idtest TestDoorForgetsOficinaIDForARefusedSession
receipt: slow test 44.83s amadan.net/oficina/equipo/internal/idtest TestDoorNeverJudgesANativeSession
receipt: slow test 44.23s amadan.net/oficina/equipo/internal/idtest TestDoorStepUpIsLocal
machine: 32 CPUs, load 12.73, cpu waiting 5.62%, memory waiting 0.00%, io waiting 0.43%
--- 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
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m18.576s 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.171s amadan.net/oficina/equipo/internal/headless
receipt: slow test 37.06s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 14.53s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 9s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.03s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 5.13s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 35.96, cpu waiting 21.63%, memory waiting 0.00%, io waiting 1.76%
--- 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
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m16.871s 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.243s amadan.net/oficina/equipo/internal/headless
receipt: slow test 22.94s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 17.59s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 12.21s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 7.98s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
receipt: slow test 6.23s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
machine: 32 CPUs, load 35.96, cpu waiting 22.06%, memory waiting 0.00%, io waiting 1.82%
--- 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
cache miss: amadan.net/oficina/equipo/internal/headless: its inputs changed

receipt: test step 1m44.833s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m43.327s amadan.net/oficina/equipo/internal/headless
receipt: slow test 13.13s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 11.23s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 11.07s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsSignInEmail
receipt: slow test 10.59s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 10.49s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
machine: 32 CPUs, load 27.33, cpu waiting 14.62%, memory waiting 0.00%, io waiting 1.14%
--- shard 21 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-rest: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInEmail|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless

receipt: test step 1m20.662s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m19.292s amadan.net/oficina/equipo/internal/headless
receipt: slow test 14.42s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 10.17s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 8.88s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 8.85s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 7.18s amadan.net/oficina/equipo/internal/headless TestBrowserRefreshRace
machine: 32 CPUs, load 34.76, cpu waiting 21.12%, memory waiting 0.00%, io waiting 1.70%
--- 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 293ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 546ms amadan.net/oficina/equipo/internal/equipo
receipt: slow test 550ms 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.891s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI

receipt: test step 248ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 10.891s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 8.73s amadan.net/oficina/equipo/internal/idtest TestBrowserSmartDoor
receipt: slow test 2.16s 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 227ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 2.078s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 2.08s amadan.net/oficina/equipo/internal/plan3test TestTeamsHierarchyBrowser
browser lane browser-rest: ./internal/thintest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAccessEmojiByline|TestBrowserAccessFinalOutcomes|TestBrowserAccessRequest|TestBrowserAccessReview|TestBrowserActivitySubjects|TestBrowserAutonomySettings|TestBrowserCoordinatorQueue|TestBrowserEmptyConversation|TestBrowserEndedNoteStaysGone|TestBrowserHousekeeping|TestBrowserInnerGallery|TestBrowserInnerScreens|TestBrowserInstantThinking|TestBrowserInstantThinkingQueued|TestBrowserMachines|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 280ms against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 1 cached, 0 without tests, 0 failed
receipt: slow package 3m31.469s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 23.2s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.4s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 11.98s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.7s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 8.95s amadan.net/oficina/equipo/internal/thintest TestBrowserRhythm
machine: 32 CPUs, load 6.76, cpu waiting 1.11%, memory waiting 0.00%, io waiting 6.47%
--- 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   (46s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 4.59s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.23s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 6.86s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 7.96s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 23.93s
+ 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   (44s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 9.34s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 9.73s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 9.16s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 13.78s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (18s)
ok ./internal/headless TestMixedVersions 16.84s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (1s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.81s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin   (1s)
ok ./internal/runner/thin TestRunnerCancelAndSupersede 0.05s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 38.60, cpu waiting 22.64%, memory waiting 0.00%, io waiting 3.11%
--- 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 8.319s 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.178s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 154ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 87ms 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.11s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.63s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 340ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 150ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 90ms 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.163s 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.846s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 290ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 170ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryMalformedRecord
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryCleansScratch
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
machine: 32 CPUs, load 13.67, cpu waiting 5.29%, memory waiting 0.00%, io waiting 5.48%
--- 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 30.9%, load 22.06
shard 25: make runner-dead-references lanes-check build vet fmt-check spacing budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 2675 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: 91 directories within budget
CGO_ENABLED=0 go test ./internal/equipo -run '^TestMigrationModels$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipo	2.505s
machine: 32 CPUs, load 35.78, cpu waiting 21.78%, memory waiting 0.00%, io waiting 3.21%
--- 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 30.9%, load 22.06
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 26.30, cpu waiting 12.84%, memory waiting 0.00%, io waiting 4.06%
--- 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 30.9%, load 22.06
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 32.28, cpu waiting 16.78%, memory waiting 0.00%, io waiting 3.67%
--- 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 30.9%, load 22.06
shard 28: make gitleaks
1:03PM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
1:04PM INF 1140 commits scanned.
1:04PM INF scanned ~65132942 bytes (65.13 MB) in 13.9s
1:04PM INF no leaks found
machine: 32 CPUs, load 35.78, cpu waiting 21.78%, memory waiting 0.00%, io waiting 3.21%
=== 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.008ms, worst 1.053ms, budget 150ms
perf: GET /api/runner/protocol: median 78µs, worst 123µs, budget 150ms
perf: GET /api/v1/account-setups/{id}: median 577µs, worst 661µs, budget 150ms
perf: GET /api/v1/accounts: median 405µs, worst 462µs, budget 150ms
perf: GET /api/v1/auth/devices: median 417µs, worst 475µs, budget 150ms
perf: GET /api/v1/budgets: median 474µs, worst 540µs, budget 150ms
perf: GET /api/v1/capabilities: median 241µs, worst 258µs, budget 150ms
perf: GET /api/v1/cards/{id}: median 1.154ms, worst 1.208ms, budget 150ms
perf: GET /api/v1/connections: median 561µs, worst 587µs, budget 150ms
perf: GET /api/v1/connections/{id}: median 523µs, worst 562µs, budget 150ms
perf: GET /api/v1/conversation: median 886µs, worst 966µs, budget 150ms
perf: GET /api/v1/conversation/cards: median 1.382ms, worst 1.469ms, budget 150ms
perf: GET /api/v1/coordinator: median 1.926ms, worst 2.021ms, budget 150ms
perf: GET /api/v1/invites/{id}: median 475µs, worst 505µs, budget 150ms
perf: GET /api/v1/journey: median 7.945ms, worst 8.082ms, budget 150ms
perf: GET /api/v1/me: median 445µs, worst 460µs, budget 150ms
perf: GET /api/v1/me/settings: median 537µs, worst 564µs, budget 150ms
perf: GET /api/v1/needs-you: median 7.247ms, worst 10.956ms, budget 150ms
perf: GET /api/v1/notifications: median 1.59ms, worst 1.679ms, budget 150ms
perf: GET /api/v1/onboarding: median 385µs, worst 416µs, budget 150ms
perf: GET /api/v1/people: median 428µs, worst 472µs, budget 150ms
perf: GET /api/v1/playbooks: median 582µs, worst 601µs, budget 150ms
perf: GET /api/v1/playbooks/{id}: median 515µs, worst 541µs, budget 150ms
perf: GET /api/v1/playbooks/{id}/template-diff: median 819µs, worst 851µs, budget 150ms
perf: GET /api/v1/preferences: median 739µs, worst 793µs, budget 150ms
perf: GET /api/v1/projects/{id}: median 451µs, worst 473µs, budget 150ms
perf: GET /api/v1/projects/{id}/settings: median 571µs, worst 611µs, budget 150ms
perf: GET /api/v1/roster: median 449µs, worst 481µs, budget 150ms
perf: GET /api/v1/runners/{id}: median 416µs, worst 468µs, budget 150ms
perf: GET /api/v1/specialists: median 7.987ms, worst 8.075ms, budget 150ms
perf: GET /api/v1/specialists/{id}: median 7.865ms, worst 7.965ms, budget 150ms
perf: GET /api/v1/specialists/{id}/template-diff: median 798µs, worst 915µs, budget 150ms
perf: GET /api/v1/tasks/{id}/plan: median 1.071ms, worst 1.154ms, budget 150ms
perf: GET /api/v1/tasks/{id}/thread: median 707µs, worst 796µs, budget 150ms
perf: GET /api/v1/teams: median 416µs, worst 457µs, budget 150ms
perf: GET /api/v1/templates: median 580µs, worst 622µs, budget 150ms
perf: GET /api/v1/templates/{id}: median 429µs, worst 449µs, budget 150ms
perf: GET /auth/callback: median 88µs, worst 108µs, budget 150ms
perf: GET /auth/devices/{id}: median 3.576ms, worst 3.621ms, budget 150ms
perf: GET /auth/verify: median 73µs, worst 90µs, budget 150ms
perf: GET /connections: median 3.913ms, worst 3.961ms, budget 150ms
perf: GET /conversation: median 7.709ms, worst 7.912ms, budget 150ms
perf: GET /conversation/connections: median 237µs, worst 275µs, budget 150ms
perf: GET /conversation/notebook: median 228µs, worst 274µs, budget 150ms
perf: GET /conversation/settings: median 4.253ms, worst 4.296ms, budget 150ms
perf: GET /conversation/settings/autonomy: median 4.48ms, worst 6.951ms, budget 150ms
perf: GET /conversation/settings/connections: median 6.797ms, worst 6.948ms, budget 150ms
perf: GET /conversation/settings/connections/add: median 6.838ms, worst 6.998ms, budget 150ms
perf: GET /conversation/settings/copy: median 4.287ms, worst 4.307ms, budget 150ms
perf: GET /conversation/settings/housekeeping: median 4.331ms, worst 4.409ms, budget 150ms
perf: GET /conversation/settings/machines: median 4.59ms, worst 4.682ms, budget 150ms
perf: GET /conversation/settings/machines/add: median 4.633ms, worst 4.764ms, budget 150ms
perf: GET /conversation/settings/notebook: median 3.648ms, worst 3.707ms, budget 150ms
perf: GET /conversation/settings/thinking: median 4.634ms, worst 6.176ms, budget 150ms
perf: GET /housekeeping: median 4.127ms, worst 4.342ms, budget 150ms
perf: GET /invites/new: median 599µs, worst 626µs, budget 150ms
perf: GET /invites/{id}: median 644µs, worst 662µs, budget 150ms
perf: GET /jobs: median 3.633ms, worst 3.66ms, budget 150ms
perf: GET /jobs/{id}: median 4.809ms, worst 4.882ms, budget 150ms
perf: GET /journey: median 12.323ms, worst 12.624ms, budget 150ms
perf: GET /nav/rail: median 3.594ms, worst 3.83ms, budget 150ms
perf: GET /needs-you: median 12.053ms, worst 12.242ms, budget 150ms
perf: GET /onboarding: median 4.667ms, worst 4.755ms, budget 150ms
perf: GET /people: median 4.149ms, worst 6.779ms, budget 150ms
perf: GET /playbook-suggestions/{suggestion}: median 5.823ms, worst 5.897ms, budget 150ms
perf: GET /playbooks: median 5.112ms, worst 5.253ms, budget 150ms
perf: GET /playbooks/new: median 5.383ms, worst 5.488ms, budget 150ms
perf: GET /playbooks/{id}: median 4.775ms, worst 4.888ms, budget 150ms
perf: GET /playbooks/{id}/edit: median 4.736ms, worst 4.829ms, budget 150ms
perf: GET /playbooks/{id}/template-diff: median 3.988ms, worst 4.107ms, budget 150ms
perf: GET /preferences: median 4.374ms, worst 4.521ms, budget 150ms
perf: GET /preferences/sources/{source}: median 4.17ms, worst 4.235ms, budget 150ms
perf: GET /projects: median 5.703ms, worst 5.969ms, budget 150ms
perf: GET /projects/accounts: median 3.881ms, worst 3.973ms, budget 150ms
perf: GET /projects/new: median 4.105ms, worst 6.333ms, budget 150ms
perf: GET /projects/{id}: median 10.921ms, worst 11.105ms, budget 150ms
perf: GET /projects/{id}/edit: median 4.104ms, worst 4.225ms, budget 150ms
perf: GET /runners/enrol: median 4.665ms, worst 4.789ms, budget 150ms
perf: GET /settings: median 3.785ms, worst 3.854ms, budget 150ms
perf: GET /settings/coordinator: median 5.719ms, worst 5.799ms, budget 150ms
perf: GET /settings/devices: median 3.592ms, worst 3.683ms, budget 150ms
perf: GET /settings/recovery: median 3.728ms, worst 3.865ms, budget 150ms
perf: GET /settings/recovery/release: median 3.729ms, worst 3.802ms, budget 150ms
perf: GET /settings/thinking: median 259µs, worst 271µs, budget 150ms
perf: GET /signed-out: median 260µs, worst 290µs, budget 150ms
perf: GET /signin: median 272µs, worst 300µs, budget 150ms
perf: GET /specialists/new: median 3.666ms, worst 3.746ms, budget 150ms
perf: GET /specialists/{key}: median 11.355ms, worst 14.149ms, budget 150ms
perf: GET /specialists/{key}/edit: median 3.907ms, worst 3.95ms, budget 150ms
perf: GET /specialists/{key}/template-diff: median 4.012ms, worst 4.072ms, budget 150ms
perf: GET /tasks: median 5.921ms, worst 5.992ms, budget 150ms
perf: GET /tasks/new: median 3.555ms, worst 3.66ms, budget 150ms
perf: GET /tasks/{id}: median 5.708ms, worst 5.919ms, budget 150ms
perf: GET /tasks/{id}/merge: median 5.08ms, worst 5.207ms, budget 150ms
perf: GET /tasks/{id}/move: median 4.86ms, worst 5.048ms, budget 150ms
perf: GET /tasks/{id}/plan: median 5.864ms, worst 5.92ms, budget 150ms
perf: GET /tasks/{id}/preview: median 1.552ms, worst 1.608ms, budget 150ms
perf: GET /tasks/{id}/questions/{question}: median 5.62ms, worst 8.551ms, budget 150ms
perf: GET /tasks/{id}/rendered-change: median 4.94ms, worst 5.164ms, budget 150ms
perf: GET /tasks/{id}/rendered-change/{hash}.png: median 4.47ms, worst 4.655ms, budget 150ms
perf: GET /tasks/{id}/thread: median 7.927ms, worst 8.156ms, budget 150ms
perf: GET /team/{specialist}: median 4.589ms, worst 4.675ms, budget 150ms
perf: GET /teams: median 10.114ms, worst 10.228ms, budget 150ms
perf: GET /templates: median 3.665ms, worst 3.806ms, budget 150ms
perf: GET /usage: median 4.357ms, worst 4.413ms, budget 150ms
perf: GET /work: median 3.317ms, worst 3.384ms, 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 154ms of [151.627615ms 153.607366ms 155.974487ms], budget 500ms

receipt: test step 32.202s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 87 without tests, 0 failed
receipt: slow package 10.263s amadan.net/oficina/equipo/internal/equipotest
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo
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 9.75s amadan.net/oficina/equipo/internal/equipotest TestPerfScreens
receipt: slow test 510ms amadan.net/oficina/equipo/internal/equipotest TestPerfBoot
=== cache ===
ci-box: build cache /home/ci/work/repos/oficina__equipo/cache/go-build: 4.15 GiB in 25950 files
ci-box: module cache /home/ci/work/repos/oficina__equipo/cache/go-mod: 1.15 GiB in 40997 files
ci-box: build cache over 4.0 GiB: dropped 1.60 GiB this job did not read, kept 2.55 GiB
diff --git a/.rastrillo/budgets.txt b/.rastrillo/budgets.txt
index acf12663..d5131753 100644
--- a/.rastrillo/budgets.txt
+++ b/.rastrillo/budgets.txt
@@ -14,8 +14,8 @@ perf GET /* skip Unknown private paths render 404; this fallback contains no scr
time internal/equipo/team 60s Plan 3 loaded CI measured 45.985s; niced serial reruns measured 18.079s and 22.031s. Keep migration, recovery, accounting and concurrency assertions; 60s leaves 30 percent headroom above loaded CI.
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 22117 - The sign-in's account email returns to the Add page (Paul, 2026-11-23); measured 22117 source lines.
-size internal/wire 6830 - Successful-push proposal diagnostic in existing Reason fields; measured 6830 source lines.
+size internal/equipo 22128 - Access card lines for hub #48, and the sign-in's account email returns to the Add page (Paul, 2026-11-23); measured 22128 source lines.
+size internal/wire 6835 - ChoiceNotNeeded for access cards Equipo resolves itself (hub #48); measured 6835 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).
@@ -30,7 +30,7 @@ size internal/runner/provider 5715 - Fable follow-up: base and diagnostic gates,
time internal/plan3test 300s Initial cap for combined browser and runner acceptance; measure at both usable stops.
-size internal/plan3test - 11900 Add the controller-approved Luna egress diagnostic key to release inventory; measured 11900 test lines, source cap unchanged.
+size internal/plan3test - 11902 Add Luna-accepted chat.card.access_first (hub #48) to release inventory; measured 11902 test lines, source cap unchanged.
time internal/runner/forge 20s Plan 3 CI repair measured 10.527s for the full package (controller CI 10.407s).
time internal/runner/provider 15s Plan 3 CI repair measured 10.346s for the full package (controller CI 10.709s);
@@ -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 33356 8399 The sign-in by a link keeps the account email typed with its code (Paul, 2026-11-23); measured 33356 source and 8399 test lines.
+size internal/equipo/chat 33527 8853 Access cards and repository titles (hub #48, #49); the link sign-in keeps the typed account email; measured 33527/8853.
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.
@@ -70,8 +70,8 @@ perf GET /api/v1/tasks/{id}/files/{file} skip Research kept images: bearer-only
perf GET /tasks/{id}/files/{file} skip Research kept images: the bytes of one image, shown on the task page; a file, not a screen.
perf GET /api/v1/runners skip Mac runners person API: bearer-only JSON for devices; the browser shows runners in the Team section.
time cmd/equipo-runner 60s TestReleaseRunnerHasNoFakeWorker builds the release runner and the thin package under testbuild (about 12s locally).
-size internal/headless - 11417 The sign-in's account email in the browser at 1280 and 390; measured 11417 test lines, existing assertions unchanged.
-size internal/thintest - 34204 The sign-in's account email: field, refusals, ownership and the row once connected; measured 34204 test lines.
+size internal/headless - 11437 Grant scenarios for a named repository (hub #48); the sign-in's account email at 1280 and 390; measured 11437 test lines.
+size internal/thintest - 34273 Grant cards in known or named namespaces (hub #48); the sign-in's account email; measured 34273 test lines.
perf GET /api/v1/projects/{id}/merge-policy skip Merge authority person API: bearer-only JSON for devices; the browser reads the policy on /projects/{id}.
perf GET /api/v1/usage skip Thin v1 person API: bearer-only JSON for devices; the browser reads usage through /usage.
diff --git a/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md b/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
index bc02f046..359d1155 100644
--- a/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
+++ b/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md
@@ -6845,6 +6845,7 @@ records remain unchanged.
| `work.reason.tools_refused` | Equipo refused the commands it needed to run | Task page: fills "Engineering stopped: %s" when an Engineering step committed nothing after Equipo refused tool requests it made (stop reasons, 2026-11-23) | Runtime; COPY APPROVED (Paul, 2026-11-23, copy-review eavqvil43jg2zs3wxx3kxp3bpm, unchanged) |
| `work.reason.proposal_failed` | the branch was pushed, but the review request could not be created | Successful push diagnostic (GitHub seam, 2026-11-23; Luna, house rules) | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) |
| `CopyGitHubEgress` | GitHub reachable: %t; status: %d; latency: %s; TLS peer: %s<br> | GitHub egress check (2026-11-23; Luna, house rules) | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) |
+| `chat.card.access_first` | Equipo can't reach %s yet. Its agent can't access any repositories. | New team grant card (hub #48 review R1; Luna, house rules) | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-24) |
## Task 21
diff --git a/internal/equipo/chat/access_need_test.go b/internal/equipo/chat/access_need_test.go
new file mode 100644
index 00000000..a8d18787
--- /dev/null
+++ b/internal/equipo/chat/access_need_test.go
@@ -0,0 +1,442 @@
+package chat
+
+import (
+ "context"
+ "encoding/json"
+ "slices"
+ "strings"
+ "testing"
+
+ "amadan.net/oficina/equipo/internal/wire"
+ "gorm.io/gorm"
+)
+
+// swipeWords is what Paul said on 2026-11-23 (hub oficina/equipo #48, #49).
+const swipeWords = "On iOS, the keyboard should be dismissible with a swipe."
+
+// swipeHello is his runner's reach that day: four namespaces, and
+// oficina/equipo read with the names its README and AGENTS.md give it
+// ("Create" is a capitalised word that appears twice in them).
+func swipeHello() wire.Hello {
+ return wire.Hello{
+ Agent: "claude~paul@keymail.dev",
+ Repos: []string{"amadan.net/carlos/platform", "amadan.net/oficina/equipo", "amadan.net/oficina/old", "amadan.net/oficina/new", "amadan.net/paulca/threatmin", "amadan.net/woodstar/app"},
+ CreateIn: []string{"oficina"},
+ Catalog: []wire.RepoInfo{
+ {Repo: "amadan.net/oficina/equipo", Names: []string{"equipo", "Create", "Generate", "Owners", "Open"}, Hints: []string{"go"}, Summary: "An Oficina app: a coordinator and a team of AI specialists."},
+ {Repo: "amadan.net/carlos/platform", Names: []string{"platform"}, Hints: []string{}},
+ {Repo: "amadan.net/paulca/threatmin", Names: []string{"threatmin"}, Hints: []string{}},
+ {Repo: "amadan.net/woodstar/app", Names: []string{"app", "Woodstar"}, Hints: []string{}},
+ // Read only: a reader grant puts a repository in the catalog,
+ // never in Repos, so tito is a known namespace.
+ {Repo: "amadan.net/tito/docs", Names: []string{"docs"}, Hints: []string{}},
+ },
+ }
+}
+
+// swipeRig is that conversation's turn, running, with the person's words.
+func swipeRig(t *testing.T) (*meteredRig, turnRecord, Lease) {
+ t.Helper()
+ r := placementRig(t)
+ r.s.authority.CurrentRunner = func(*gorm.DB, RunnerPrincipal) error { return nil }
+ h, _ := json.Marshal(swipeHello())
+ if err := r.s.db.G.Model(&runnerSessionRecord{}).Where("runner_id = ?", "RUNNER1").Update("hello", string(h)).Error; err != nil {
+ t.Fatal(err)
+ }
+ turn := turnRecord{ID: "tr_swipe", Person: hkOwner, Kind: wire.TurnPerson, State: wire.TurnRunning, Attempt: 1}
+ for _, row := range []any{&turn, &messageRecord{ID: "m_swipe", Person: hkOwner, TurnID: turn.ID, Role: wire.RolePerson, Text: swipeWords, Origin: originComposer}} {
+ if err := r.s.db.G.Create(row).Error; err != nil {
+ t.Fatal(err)
+ }
+ }
+ return r, turn, Lease{Runner: RunnerPrincipal{Person: hkOwner, RunnerID: "RUNNER1"}, Protocol: wire.ProtocolCurrent}
+}
+
+// callTool sends one Coordinator tool call the way the runner does and
+// returns the result it is sent back.
+func callTool(t *testing.T, r *meteredRig, l Lease, turn turnRecord, id, name string, args any) wire.ToolResult {
+ t.Helper()
+ raw, _ := json.Marshal(args)
+ call := wire.ToolCall{CallID: id, TurnID: turn.ID, Attempt: turn.Attempt, Name: name, Args: raw}
+ frame, _ := wire.NewFrame("frame-"+id, wire.FrameToolCall, call)
+ if err := r.s.Apply(context.Background(), l, frame, &call); err != nil {
+ t.Fatalf("%s: %v", name, err)
+ }
+ var cmd commandRecord
+ if err := r.s.db.G.Last(&cmd, "kind = ?", wire.FrameToolResult).Error; err != nil {
+ t.Fatal(err)
+ }
+ var res wire.ToolResult
+ if err := json.Unmarshal([]byte(cmd.Body), &res); err != nil {
+ t.Fatal(err)
+ }
+ if res.CallID != id {
+ t.Fatalf("%s: result for %q", name, res.CallID)
+ }
+ return res
+}
+
+func accessCards(t *testing.T, r *meteredRig) []cardRecord {
+ t.Helper()
+ var cards []cardRecord
+ if err := r.s.db.G.Where("kind = ?", wire.CardAccess).Order("created_at").Find(&cards).Error; err != nil {
+ t.Fatal(err)
+ }
+ return cards
+}
+
+// #48 and #49: the Coordinator looked for "iOS keyboard", then filed the
+// task in oficina/equipo. Looking for a feature raises no access card, and
+// the project made for the task is called Equipo, not "Create".
+func TestSwipeConversationNoFalseAccessCardAndRepoTitle(t *testing.T) {
+ r, turn, l := swipeRig(t)
+ found := callTool(t, r, l, turn, "call-find", wire.ToolFind, map[string]string{"query": "iOS keyboard"})
+ if !found.IsError || found.Code != "not_a_repository" {
+ t.Fatalf("find of a feature: %+v", found)
+ }
+ if cards := accessCards(t, r); len(cards) != 0 {
+ t.Fatalf("access card for a feature: %+v", cards)
+ }
+ recorded := callTool(t, r, l, turn, "call-record", wire.ToolRecordTask, map[string]string{"repo": "amadan.net/oficina/equipo", "title": "Swipe down to dismiss the keyboard on iOS", "brief": "On iOS, the keyboard should be dismissible with a swipe."})
+ if recorded.IsError || recorded.Code != "recorded" {
+ t.Fatalf("record: %+v", recorded)
+ }
+ var projects []projectRecord
+ if err := r.s.db.G.Where("repo = ?", "amadan.net/oficina/equipo").Find(&projects).Error; err != nil {
+ t.Fatal(err)
+ }
+ // Shown from the repository; nothing stored that no reader shows (RN4).
+ if len(projects) != 1 || projects[0].shownTitle() != "Equipo" || projects[0].Title != "" || projects[0].TitleSet {
+ t.Fatalf("project: %+v", projects)
+ }
+ // A second task for the same repository goes in the same project.
+ again := callTool(t, r, l, turn, "call-record-2", wire.ToolRecordTask, map[string]any{"repo": "oficina/equipo", "title": "Keep the keyboard toolbar above the swipe area", "brief": "Second task.", "separate": true})
+ if again.Code != "recorded" {
+ t.Fatalf("second record: %+v", again)
+ }
+ var n int64
+ r.s.db.G.Model(&projectRecord{}).Where("repo = ?", "amadan.net/oficina/equipo").Count(&n)
+ if n != 1 {
+ t.Fatalf("projects for one repository: %d", n)
+ }
+}
+
+// Housekeeping on the runner's hello resolves, as not needed, only an
+// open card whose stored target is invalid by find's rules, parsed the way
+// find parses: free text, or a bare name (no card is raised for one now).
+// An older card whose question was free text but whose name is an
+// explicit repository ("the acme/Moonbeam repo") stays open while it is
+// unreached; a reached one says it is reachable (review S3).
+func TestHelloResolvesAccessCardsThatFailValidation(t *testing.T) {
+ r, _, _ := swipeRig(t)
+ cards := []cardRecord{
+ {ID: "c_free", Question: "iOS keyboard", Name: "keyboard"},
+ {ID: "c_vague", Question: "the login bug", Name: ""},
+ {ID: "c_bare", Question: "tito website", Name: "tito"},
+ {ID: "c_ns", Question: "tito", Name: "tito"},
+ {ID: "c_reached", Question: "oficina/equipo", Name: "oficina/equipo"},
+ {ID: "c_real", Question: "tito/website", Name: "tito/website"},
+ {ID: "c_older", Question: "the acme/Moonbeam repo", Name: "acme/moonbeam"},
+ }
+ for i := range cards {
+ c := &cards[i]
+ c.Person, c.Kind, c.State, c.TurnID, c.Options, c.Choice, c.Revision = hkOwner, wire.CardAccess, wire.CardOpen, "tr_old", `["oficina"]`, "claude~paul@keymail.dev", 1
+ if err := r.s.db.G.Create(c).Error; err != nil {
+ t.Fatal(err)
+ }
+ }
+ for range 2 {
+ if err := r.s.tx(context.Background(), func(tx *txn) error {
+ return tx.resolveAccess(hkOwner, swipeHello())
+ }); err != nil {
+ t.Fatal(err)
+ }
+ }
+ want := map[string]string{"c_free": wire.ChoiceNotNeeded, "c_vague": wire.ChoiceNotNeeded, "c_bare": wire.ChoiceNotNeeded, "c_ns": wire.ChoiceNotNeeded, "c_reached": "", "c_real": "open", "c_older": "open"}
+ for _, c := range accessCards(t, r) {
+ switch want[c.ID] {
+ case "open":
+ if c.State != wire.CardOpen || c.Revision != 1 {
+ t.Errorf("%s resolved: %+v", c.ID, c)
+ }
+ case wire.ChoiceNotNeeded:
+ if c.State != wire.CardResolved || c.Choice != wire.ChoiceNotNeeded || c.Revision != 2 {
+ t.Errorf("%s not resolved once as not needed: %+v", c.ID, c)
+ }
+ default:
+ // Reached: resolved, and it says so itself.
+ if c.State != wire.CardResolved || c.Choice == wire.ChoiceNotNeeded {
+ t.Errorf("%s: %+v", c.ID, c)
+ }
+ }
+ }
+}
+
+// find raises a card only for an explicit repository in a namespace
+// Equipo knows (its agent reaches or reads something there) that it does
+// not reach. Single words, free text, invented namespaces and a missing
+// repository in a namespace the agent fully holds get no card (review S2).
+func TestAccessCardOnlyForUnreachedRepositoryInKnownNamespace(t *testing.T) {
+ for _, tc := range []struct {
+ query string
+ code string
+ }{
+ {"iOS keyboard", "not_a_repository"},
+ {"swipe gesture", "not_a_repository"},
+ {"ios", "not_a_repository"},
+ {"keyboard", "not_a_repository"},
+ {"tito", "found"},
+ {"ios/keyboard", "unknown_namespace"},
+ {"oficina/ios-keyboard", "no_such_repository"},
+ {"tito/website", "none"},
+ {"amadan.net/tito/website", "none"},
+ {"https://amadan.net/tito/website.git", "none"},
+ } {
+ t.Run(tc.query, func(t *testing.T) {
+ r, turn, l := swipeRig(t)
+ got := callTool(t, r, l, turn, "call-find", wire.ToolFind, map[string]string{"query": tc.query})
+ if got.Code != tc.code || got.IsError != (tc.code != "none" && tc.code != "found") {
+ t.Fatalf("find: %+v", got)
+ }
+ cards := accessCards(t, r)
+ if (len(cards) == 1) != (tc.code == "none") || len(cards) > 1 || len(cards) == 1 && cards[0].Name != "tito/website" {
+ t.Fatalf("cards: %+v", cards)
+ }
+ // The refusal never invites a retry with a shorter name.
+ if got.IsError && (strings.Contains(got.Text, "name alone") || !strings.Contains(got.Text, "ask the person which repository this is for")) {
+ t.Fatalf("refusal: %s", got.Text)
+ }
+ })
+ }
+}
+
+// request_access refuses only access the agent already has: write work
+// needs the repository on the runner's list, so a repository it only reads
+// can still be asked for at role agent, after record_task found it not
+// allowed (review S1).
+func TestRequestAccessAlreadyReachedMatchesRole(t *testing.T) {
+ r, turn, l := swipeRig(t)
+ got := callTool(t, r, l, turn, "call-ask", wire.ToolRequestAccess, map[string]string{"target": "oficina/equipo", "reason": "I need to fix the keyboard."})
+ if !got.IsError || got.Code != "already_reached" {
+ t.Fatalf("request_access for a written repository: %+v", got)
+ }
+ got = callTool(t, r, l, turn, "call-read", wire.ToolRequestAccess, map[string]string{"target": "tito/docs", "role": "reader", "reason": "I need to read the docs."})
+ if !got.IsError || got.Code != "already_reached" {
+ t.Fatalf("reader access to a read repository: %+v", got)
+ }
+ if cards := accessCards(t, r); len(cards) != 0 {
+ t.Fatalf("cards: %+v", cards)
+ }
+ recorded := callTool(t, r, l, turn, "call-record", wire.ToolRecordTask, map[string]string{"repo": "tito/docs", "title": "Fix the docs typo", "brief": "Fix it."})
+ if recorded.Code != "not_allowed" {
+ t.Fatalf("record in a read repository: %+v", recorded)
+ }
+ got = callTool(t, r, l, turn, "call-write", wire.ToolRequestAccess, map[string]string{"target": "tito/docs", "reason": "I need to fix the docs typo."})
+ if got.IsError || got.Code != "asked" {
+ t.Fatalf("write access to a read repository: %+v", got)
+ }
+}
+
+// Fable's sequence (review B2): one turn names a reached and an unreached
+// repository. Filing the task in the reached one leaves the other's card
+// open; request_access then confirms on that open card; and a card Equipo
+// resolved as not needed never takes a confirmation or stops the turn's
+// next card.
+func TestTwoRepositoryTurnKeepsTheUnreachedCard(t *testing.T) {
+ r, turn, l := swipeRig(t)
+ if err := r.s.db.G.Model(&messageRecord{}).Where("id = ?", "m_swipe").Update("text", "Fix the footer in oficina/equipo and the header in tito/website.").Error; err != nil {
+ t.Fatal(err)
+ }
+ if got := callTool(t, r, l, turn, "call-find", wire.ToolFind, map[string]string{"query": "tito/website"}); got.Code != "none" {
+ t.Fatalf("find: %+v", got)
+ }
+ if got := callTool(t, r, l, turn, "call-record", wire.ToolRecordTask, map[string]string{"repo": "oficina/equipo", "title": "Fix the footer", "brief": "Fix it."}); got.Code != "recorded" {
+ t.Fatalf("record: %+v", got)
+ }
+ cards := accessCards(t, r)
+ if len(cards) != 1 || cards[0].State != wire.CardOpen || cards[0].Choice != "claude~paul@keymail.dev" {
+ t.Fatalf("the unreached card was closed: %+v", cards)
+ }
+ if got := callTool(t, r, l, turn, "call-ask", wire.ToolRequestAccess, map[string]string{"target": "tito/website", "reason": "I need to fix the header."}); got.Code != "asked" {
+ t.Fatalf("request: %+v", got)
+ }
+ cards = accessCards(t, r)
+ if len(cards) != 1 || cards[0].State != wire.CardOpen || cards[0].Access == "" {
+ t.Fatalf("confirmation not on the open card: %+v", cards)
+ }
+
+ // A find card Equipo resolved as not needed takes no confirmation and
+ // does not count as the turn's card.
+ r, turn, l = swipeRig(t)
+ done := cardRecord{ID: "c_done", Person: hkOwner, Kind: wire.CardAccess, State: wire.CardResolved, TurnID: turn.ID, Question: "iOS keyboard", Options: "[]", Choice: wire.ChoiceNotNeeded, Name: "keyboard", Revision: 2}
+ if err := r.s.db.G.Create(&done).Error; err != nil {
+ t.Fatal(err)
+ }
+ if got := callTool(t, r, l, turn, "call-find", wire.ToolFind, map[string]string{"query": "tito/website"}); got.Code != "none" {
+ t.Fatalf("find: %+v", got)
+ }
+ // The find raised its own card (review RN1).
+ if cards := accessCards(t, r); len(cards) != 2 || !slices.ContainsFunc(cards, func(c cardRecord) bool {
+ return c.ID != done.ID && c.State == wire.CardOpen && c.Name == "tito/website" && c.Access == ""
+ }) {
+ t.Fatalf("find after a not-needed card: %+v", cards)
+ }
+ if got := callTool(t, r, l, turn, "call-ask", wire.ToolRequestAccess, map[string]string{"target": "tito/website", "reason": "I need to fix the header."}); got.Code != "asked" {
+ t.Fatalf("request: %+v", got)
+ }
+ for _, c := range accessCards(t, r) {
+ switch {
+ case c.ID == done.ID && (c.State != wire.CardResolved || c.Access != "" || c.Revision != 2):
+ t.Fatalf("resolved card rewritten: %+v", c)
+ case c.ID != done.ID && (c.State != wire.CardOpen || c.Access == "" || c.Name != "tito/website"):
+ t.Fatalf("new card: %+v", c)
+ }
+ }
+ if n := len(accessCards(t, r)); n != 2 {
+ t.Fatalf("cards: %d", n)
+ }
+}
+
+// The need passes for a card whose own target is the task's repository,
+// or its namespace when the agent reaches it, and for no other card.
+func TestAccessNeedPassesOnlyForTheTasksRepository(t *testing.T) {
+ r, turn, l := swipeRig(t)
+ for _, c := range []cardRecord{
+ {ID: "c_repo", Question: "oficina/equipo", Name: "oficina/equipo"},
+ {ID: "c_ns", Question: "oficina", Name: "oficina"},
+ {ID: "c_other", Question: "tito/website", Name: "tito/website"},
+ } {
+ c.Person, c.Kind, c.State, c.TurnID, c.Options, c.Choice, c.Revision = hkOwner, wire.CardAccess, wire.CardOpen, turn.ID, "[]", "claude~paul@keymail.dev", 1
+ if err := r.s.db.G.Create(&c).Error; err != nil {
+ t.Fatal(err)
+ }
+ }
+ if got := callTool(t, r, l, turn, "call-record", wire.ToolRecordTask, map[string]string{"repo": "oficina/equipo", "title": "Fix the footer", "brief": "Fix it."}); got.Code != "recorded" {
+ t.Fatalf("record: %+v", got)
+ }
+ for _, c := range accessCards(t, r) {
+ if passed := c.State == wire.CardResolved && c.Choice == wire.ChoiceNotNeeded; passed != (c.ID != "c_other") {
+ t.Errorf("%s: %+v", c.ID, c)
+ }
+ }
+}
+
+// A project's title from its repository is the repository's name, never a
+// word lifted from its README, and never a bare verb or generic word.
+func TestProjectTitleFromRepositoryName(t *testing.T) {
+ equipo := swipeHello().Catalog[0]
+ for _, tc := range []struct {
+ repo string
+ info *wire.RepoInfo
+ want string
+ }{
+ {"amadan.net/oficina/equipo", &equipo, "Equipo"},
+ {"amadan.net/oficina/equipo", nil, "Equipo"},
+ {"amadan.net/paulca/threatmin", &wire.RepoInfo{Names: []string{"threatmin", "Build", "Deploy"}}, "Threatmin"},
+ // Review probes (Fable, ae26c16c): the runner's own names and
+ // summaries for real Oficina repositories. A name the README
+ // repeats is never the title, even when the summary uses it.
+ {"amadan.net/oficina/base", &wire.RepoInfo{Names: []string{"base", "Store", "Platform", "Sign", "Settings"}, Summary: "Base is the front door ... you install apps from a Store."}, "Base"},
+ {"amadan.net/oficina/alta", &wire.RepoInfo{Names: []string{"alta", "Paul", "Oficina", "Home", "Continue"}, Summary: "Paul's team-provisioning app for the Oficina suite."}, "Alta"},
+ {"amadan.net/oficina/sample", &wire.RepoInfo{Names: []string{"sample", "Woodstar"}, Summary: "Woodstar is a reading app."}, "Sample"},
+ {"amadan.net/oficina/sample", &wire.RepoInfo{Names: []string{"sample", "Install"}, Summary: "Install with make."}, "Sample"},
+ {"amadan.net/paulca/create", nil, "paulca/create"},
+ {"amadan.net/woodstar/app", nil, "woodstar/app"},
+ {"amadan.net/paulca/new", nil, "paulca/new"},
+ } {
+ if got := ProjectTitle(tc.repo); got != tc.want {
+ t.Errorf("%s: %q, want %q", tc.repo, got, tc.want)
+ }
+ }
+ for _, title := range []string{"Create", "new", " Project ", "Add", "Fix", "", "Untitled"} {
+ if UsableProjectTitle(title) {
+ t.Errorf("%q passed", title)
+ }
+ }
+ for _, title := range []string{"Equipo", "Woodstar", "Create Studio", "paulca/create"} {
+ if !UsableProjectTitle(title) {
+ t.Errorf("%q refused", title)
+ }
+ }
+}
+
+// sayInTurn replaces the person's words in the rig's turn.
+func sayInTurn(t *testing.T, r *meteredRig, words string) {
+ t.Helper()
+ if err := r.s.db.G.Model(&messageRecord{}).Where("id = ?", "m_swipe").Update("text", words).Error; err != nil {
+ t.Fatal(err)
+ }
+}
+
+// setHello replaces the runner's hello and protocol.
+func setHello(t *testing.T, r *meteredRig, h wire.Hello, protocol int) {
+ t.Helper()
+ raw, _ := json.Marshal(h)
+ if err := r.s.db.G.Model(&runnerSessionRecord{}).Where("runner_id = ?", "RUNNER1").Updates(map[string]any{"hello": string(raw), "protocol": protocol}).Error; err != nil {
+ t.Fatal(err)
+ }
+}
+
+// Review R1: in a namespace Equipo knows nothing of, a repository the
+// person named this turn gets the grant card (also on a runner without
+// request_access, and for a new team whose agent reaches nothing); one the
+// model made up gets neither a card nor a request_access suggestion, and
+// request_access refuses it.
+func TestUnknownNamespaceCardOnlyWhenThePersonNamesIt(t *testing.T) {
+ for _, tc := range []struct {
+ name, words string
+ hello wire.Hello
+ protocol int
+ }{
+ {"named", "Fix the header in acme/website.", swipeHello(), wire.ProtocolCurrent},
+ {"named on an old runner", "Fix the header in acme/website.", swipeHello(), wire.ProtocolAccess - 1},
+ {"new team", "Please work on https://amadan.net/acme/website", wire.Hello{Agent: "claude~paul@keymail.dev"}, wire.ProtocolCurrent},
+ } {
+ t.Run(tc.name, func(t *testing.T) {
+ r, turn, l := swipeRig(t)
+ sayInTurn(t, r, tc.words)
+ setHello(t, r, tc.hello, tc.protocol)
+ got := callTool(t, r, l, turn, "call-find", wire.ToolFind, map[string]string{"query": "acme/website"})
+ if got.IsError || got.Code != "none" || strings.Contains(got.Text, "request_access") != (tc.protocol >= wire.ProtocolAccess) {
+ t.Fatalf("find: %+v", got)
+ }
+ if cards := accessCards(t, r); len(cards) != 1 || cards[0].Name != "acme/website" || cards[0].State != wire.CardOpen {
+ t.Fatalf("cards: %+v", cards)
+ }
+ })
+ }
+ r, turn, l := swipeRig(t)
+ got := callTool(t, r, l, turn, "call-find", wire.ToolFind, map[string]string{"query": "ios/keyboard"})
+ if !got.IsError || got.Code != "unknown_namespace" || strings.Contains(got.Text, "request_access") {
+ t.Fatalf("find of an invented repository: %+v", got)
+ }
+ got = callTool(t, r, l, turn, "call-ask", wire.ToolRequestAccess, map[string]string{"target": "ios/keyboard", "reason": "I need to fix the keyboard."})
+ if !got.IsError || got.Code != "not_named" {
+ t.Fatalf("request_access for an invented repository: %+v", got)
+ }
+ if cards := accessCards(t, r); len(cards) != 0 {
+ t.Fatalf("cards: %+v", cards)
+ }
+}
+
+// Review RN2 and RN3: reading one repository in a namespace is not holding
+// the namespace, and a repository the agent reads in a namespace it holds
+// exists, so asking to write to it is not "no such repository".
+func TestRequestAccessNamespaceReaderAndReadRepository(t *testing.T) {
+ r, turn, l := swipeRig(t)
+ sayInTurn(t, r, "Give Equipo read access to the whole tito namespace.")
+ if got := callTool(t, r, l, turn, "call-ns", wire.ToolRequestAccess, map[string]string{"target": "tito", "role": "reader", "reason": "I need to read everything in tito."}); got.IsError || got.Code != "asked" {
+ t.Fatalf("namespace reader: %+v", got)
+ }
+ r, turn, l = swipeRig(t)
+ h := swipeHello()
+ h.Catalog = append(h.Catalog, wire.RepoInfo{Repo: "amadan.net/oficina/readonly", Names: []string{"readonly"}, Hints: []string{}})
+ setHello(t, r, h, wire.ProtocolCurrent)
+ if got := callTool(t, r, l, turn, "call-ro", wire.ToolRequestAccess, map[string]string{"target": "oficina/readonly", "reason": "I need to fix it."}); got.IsError || got.Code != "asked" {
+ t.Fatalf("write to a read repository in a held namespace: %+v", got)
+ }
+ r, turn, l = swipeRig(t)
+ if got := callTool(t, r, l, turn, "call-find", wire.ToolFind, map[string]string{"query": "oficina/ios-keyboard"}); got.Code != "no_such_repository" || !strings.Contains(got.Text, "sees no repository oficina/ios-keyboard there yet") {
+ t.Fatalf("find of a missing repository: %+v", got)
+ }
+}
diff --git a/internal/equipo/chat/access_request.go b/internal/equipo/chat/access_request.go
index 5fe7295e..4bddb123 100644
--- a/internal/equipo/chat/access_request.go
+++ b/internal/equipo/chat/access_request.go
@@ -57,6 +57,26 @@ func (t *txn) requestAccess(r turnRecord, in wire.AccessRequest) (wire.ToolResul
return refused("narrow_target", "Name the single repository. A namespace needs the person's explicit request for that namespace."), nil
}
}
+ // Never for what the agent already reaches (#48): a repository on its
+ // list, or a namespace it already holds.
+ h, err := t.hello(r.Person)
+ if err != nil {
+ return wire.ToolResult{}, err
+ }
+ target := strings.ToLower(in.Target)
+ if has(h, target, in.Role) {
+ return refused("already_reached", fmt.Sprintf(toolAlreadyReached, in.Target)), nil
+ }
+ if ns, _, ok := strings.Cut(target, "/"); ok {
+ if slices.Contains(h.CreateIn, ns) && !reaches(h, target) {
+ return refused("no_such_repository", fmt.Sprintf(toolNoSuchRepository, in.Target, ns)), nil
+ }
+ // In a namespace Equipo knows nothing of, only the person's own
+ // words this turn say the repository is real (review R1).
+ if !knownNamespace(h, ns) && !namedIn(messages, target) {
+ return refused("not_named", fmt.Sprintf(toolNotNamed, in.Target)), nil
+ }
+ }
var old []cardRecord
if err := t.db.Where("person = ? AND kind = ? AND coalesce(access, '') <> '' AND (turn_id = ? OR state = ?)", r.Person, wire.CardAccess, r.ID, wire.CardOpen).Find(&old).Error; err != nil {
return wire.ToolResult{}, err
@@ -73,9 +93,10 @@ func (t *txn) requestAccess(r turnRecord, in wire.AccessRequest) (wire.ToolResul
in.Reason, in.State = reason, "confirmation"
raw, _ := json.Marshal(in)
now := t.now()
- // Replace only the explanatory find card in this same turn.
+ // Replace only the explanatory find card in this same turn, and only
+ // while it is open: a resolved card never takes a confirmation.
var c cardRecord
- if err := t.db.Where("person = ? AND turn_id = ? AND kind = ? AND coalesce(access, '') = ''", r.Person, r.ID, wire.CardAccess).Find(&c).Error; err != nil {
+ if err := t.db.Where("person = ? AND turn_id = ? AND kind = ? AND state = ? AND coalesce(access, '') = ''", r.Person, r.ID, wire.CardAccess, wire.CardOpen).Find(&c).Error; err != nil {
return wire.ToolResult{}, err
}
fresh := c.ID == ""
@@ -245,3 +266,46 @@ func (t *txn) continueAccess(c cardRecord, h wire.Hello) error {
})
return err
}
+
+// personNamed reports whether the person's own words this turn name target
+// (AccessTarget's spelling), not text the model or Equipo wrote.
+func (t *txn) personNamed(r turnRecord, target string) (bool, error) {
+ var messages []messageRecord
+ if err := t.db.Where("person = ? AND turn_id = ? AND role = ?", r.Person, r.ID, wire.RolePerson).Order("seq").Find(&messages).Error; err != nil {
+ return false, err
+ }
+ return namedIn(messages, target), nil
+}
+
+// namedIn reports whether one of the person's composed messages names
+// target as a word of its own, spelled any way AccessTarget accepts.
+func namedIn(messages []messageRecord, target string) bool {
+ for _, m := range messages {
+ if m.Origin != originComposer {
+ continue
+ }
+ for _, word := range strings.Fields(m.Text) {
+ if AccessTarget(strings.Trim(word, ".,;:!?\"'`()[]<>")) == target {
+ return true
+ }
+ }
+ }
+ return false
+}
+
+// has reports whether the agent already has the access a request asks
+// for (review S1). Write work (role agent or runner) needs a repository on
+// the runner's list; a repository it only reads is in the catalog alone,
+// which is enough for reading. A namespace counts only held whole.
+func has(h wire.Hello, target, role string) bool {
+ if !strings.Contains(target, "/") {
+ // A namespace is held whole only where the agent may create;
+ // reading one repository there is not reading the namespace
+ // (review RN2).
+ return slices.Contains(h.CreateIn, target)
+ }
+ if role == "reader" {
+ return reaches(h, target)
+ }
+ return slices.ContainsFunc(h.Repos, func(repo string) bool { return strings.EqualFold(ProjectName(repo), target) })
+}
diff --git a/internal/equipo/chat/access_review_test.go b/internal/equipo/chat/access_review_test.go
index ee4e96bc..7df55292 100644
--- a/internal/equipo/chat/access_review_test.go
+++ b/internal/equipo/chat/access_review_test.go
@@ -115,6 +115,8 @@ func TestAccessFindHintHonorsNegotiatedProtocol(t *testing.T) {
for _, proto := range []int{25, 26} {
r := placementRig(t)
r.s.db.G.Model(&runnerSessionRecord{}).Where("runner_id = ?", "RUNNER1").Update("protocol", proto)
+ // The person named it: carlos is a namespace Equipo knows nothing of.
+ r.s.db.G.Create(&messageRecord{ID: "m_find", Person: hkOwner, TurnID: "find", Role: wire.RolePerson, Text: "Fix the build in carlos/platform", Origin: originComposer})
if err := r.s.tx(context.Background(), func(tx *txn) error {
got, err := tx.find(turnRecord{ID: "find", Person: hkOwner}, "carlos/platform")
if strings.Contains(got.Text, "request_access") != (proto >= 26) {
diff --git a/internal/equipo/chat/merge.go b/internal/equipo/chat/merge.go
index 0a1118a2..822c0327 100644
--- a/internal/equipo/chat/merge.go
+++ b/internal/equipo/chat/merge.go
@@ -210,10 +210,7 @@ func (t *txn) mergeDone(k *taskRecord, s *stepRecord, v *wire.StepReport) error
if err := t.db.Where("id = ?", k.ProjectID).First(&pr).Error; err != nil {
return err
}
- project := pr.Title
- if project == "" {
- project = ProjectTitle(pr.Repo, nil)
- }
+ project := pr.shownTitle()
k.MergeVerified = mergeVerified(v, s.CandidateSHA)
parents, _ := json.Marshal(v.MergeParents)
s.MergeSource, s.MergeParents = v.MergeSource, string(parents)
diff --git a/internal/equipo/chat/mergeauth.go b/internal/equipo/chat/mergeauth.go
index 0a840365..7dc91c10 100644
--- a/internal/equipo/chat/mergeauth.go
+++ b/internal/equipo/chat/mergeauth.go
@@ -576,10 +576,7 @@ func (t *txn) mergeQuestion(k taskRecord, p progress, d mergegate.Decision) (str
if err := t.db.Where("id = ?", k.ProjectID).First(&pr).Error; err != nil {
return "", nil, err
}
- project := pr.Title
- if project == "" {
- project = ProjectTitle(pr.Repo, nil)
- }
+ project := pr.shownTitle()
checks, reason, _, _ := p.judged()
var good, bad []string
var facts *wire.ChangeFacts
@@ -702,10 +699,7 @@ func (t *txn) askShips(k taskRecord) error {
if err := t.db.Where("id = ?", k.ProjectID).First(&proj).Error; err != nil {
return err
}
- name := proj.Title
- if name == "" {
- name = ProjectTitle(proj.Repo, nil)
- }
+ name := proj.shownTitle()
pr.ShipsAsked = true
if err := t.writePolicy(&pr, k.Creator, false); err != nil {
return err
@@ -911,10 +905,7 @@ func (t *txn) undoMerge(person string, k taskRecord) (taskRecord, error) {
if err := t.db.Where("id = ?", k.ProjectID).First(&pr).Error; err != nil {
return taskRecord{}, err
}
- project := pr.Title
- if project == "" {
- project = ProjectTitle(pr.Repo, nil)
- }
+ project := pr.shownTitle()
now := t.now()
title := clipText(t.words("chat.merge.revert_title", short(k.MergedSHA), project), wire.MaxTaskTitle)
brief := fmt.Sprintf("Revert merge commit %s on %s with `git revert -m 1 %s` and change nothing else. It undoes %q (task %s).", k.MergedSHA, k.MergedInto, k.MergedSHA, k.Title, k.ID)
@@ -1117,10 +1108,7 @@ func (t *txn) setMergePolicy(r turnRecord, args json.RawMessage) (wire.ToolResul
if !mergegate.ValidPolicy(next) {
return refused("invalid", toolBadPolicy), nil
}
- name := proj.Title
- if name == "" {
- name = ProjectTitle(proj.Repo, nil)
- }
+ name := proj.shownTitle()
if mergegate.Tighter(old, next) {
applyPolicy(&pr, next, words)
if err := t.savePolicy(&pr, r.Person); err != nil {
diff --git a/internal/equipo/chat/placement_edges_test.go b/internal/equipo/chat/placement_edges_test.go
index 666c0268..27ed13e2 100644
--- a/internal/equipo/chat/placement_edges_test.go
+++ b/internal/equipo/chat/placement_edges_test.go
@@ -204,6 +204,11 @@ func TestPlacementMissingRepositorySharingHint(t *testing.T) {
if err := r.s.db.G.Model(&runnerSessionRecord{}).Where("runner_id = ?", "RUNNER1").Update("hello", string(h)).Error; err != nil {
t.Fatal(err)
}
+ // The person named it, so a namespace Equipo knows nothing of
+ // (carlos) still gets the grant card.
+ if err := r.s.db.G.Create(&messageRecord{ID: "m_missing", Person: hkOwner, TurnID: "tr_missing", Role: wire.RolePerson, Text: "Work in " + query + " please", Origin: originComposer}).Error; err != nil {
+ t.Fatal(err)
+ }
if err := r.s.tx(context.Background(), func(tx *txn) error {
got, err := tx.find(turnRecord{ID: "tr_missing", Person: hkOwner}, query)
for _, want := range []string{"equipo-paul", "not shared with Equipo", "request_access", "single repository", "merging", "per-project"} {
diff --git a/internal/equipo/chat/project_catalog.go b/internal/equipo/chat/project_catalog.go
index 990040b3..6502dd57 100644
--- a/internal/equipo/chat/project_catalog.go
+++ b/internal/equipo/chat/project_catalog.go
@@ -63,7 +63,7 @@ func (t *txn) projectListExtras(person string, h wire.Hello, out *wire.ProjectLi
break
}
}
- v := wire.ReachableProject{Repo: repo, Name: ProjectName(repo), Title: ProjectTitle(repo, info), Forge: "amadan", ConnectionID: "amadan", DescriptionSource: "repository"}
+ v := wire.ReachableProject{Repo: repo, Name: ProjectName(repo), Title: ProjectTitle(repo), Forge: "amadan", ConnectionID: "amadan", DescriptionSource: "repository"}
if info != nil {
v.Description = clipText(info.Summary, 500)
}
diff --git a/internal/equipo/chat/project_names.go b/internal/equipo/chat/project_names.go
index 873d1b56..3a75eaa2 100644
--- a/internal/equipo/chat/project_names.go
+++ b/internal/equipo/chat/project_names.go
@@ -3,6 +3,7 @@ package chat
import (
"context"
"errors"
+ "path"
"slices"
"strings"
"time"
@@ -168,11 +169,11 @@ func (t *txn) namedProject(person, name string) (*projectRecord, error) {
var match *projectRecord
matches := 0
for _, p := range rows {
- title := ProjectTitle(p.Repo, nil)
+ title := ProjectTitle(p.Repo)
if p.TitleSet {
title = p.Title
}
- fits := want == strings.ToLower(title) || want == strings.ToLower(ProjectName(p.Repo)) || strings.EqualFold(NormalizeRepo(want), p.Repo)
+ fits := want == strings.ToLower(title) || !p.TitleSet && want == strings.ToLower(path.Base(p.Repo)) || want == strings.ToLower(ProjectName(p.Repo)) || strings.EqualFold(NormalizeRepo(want), p.Repo)
for _, n := range names {
if n.Person == "" && n.ProjectID == p.ID && n.Name == want {
fits = true
diff --git a/internal/equipo/chat/projects.go b/internal/equipo/chat/projects.go
index 1e9988d3..eff5668c 100644
--- a/internal/equipo/chat/projects.go
+++ b/internal/equipo/chat/projects.go
@@ -51,6 +51,16 @@ type projectRecord struct {
func (projectRecord) TableName() string { return "chat_projects" }
+// shownTitle is the project's title: the person's when they named it,
+// else its repository's name. A title Equipo stored itself never shows,
+// so a stored "Create" or "Store" (#49) cannot come back.
+func (p projectRecord) shownTitle() string {
+ if p.TitleSet && p.Title != "" {
+ return p.Title
+ }
+ return ProjectTitle(p.Repo)
+}
+
// cardRecord is a card in one person's conversation.
type cardRecord struct {
Access string
@@ -246,10 +256,7 @@ func ProjectName(repo string) string { return forgekey.Display(repo) }
func NormalizeRepo(raw string) string { return forgekey.Normalize(raw) }
func (t *txn) projectView(p projectRecord) (wire.Project, error) {
- title := p.Title
- if title == "" {
- title = ProjectTitle(p.Repo, nil)
- }
+ title := p.shownTitle()
v := wire.Project{CopyOwner: p.CopyOwner, CopyRevision: p.CopyRevision, ID: p.ID, Revision: p.Revision, Repo: p.Repo, Name: ProjectName(p.Repo), Title: title, State: p.State, AddedBy: p.AddedBy, CreatedAt: p.CreatedAt, UpdatedAt: p.UpdatedAt}
var err error
if v.Autonomy, err = t.autonomyOf(p); err != nil {
@@ -493,18 +500,9 @@ func (t *txn) addProject(person, raw string) (projectRecord, bool, error) {
if err := t.isOwner(person); err != nil {
return p, false, err
}
+ // No stored title: until the person names it, a project shows its
+ // repository's name (shownTitle), as create_project's do.
p = projectRecord{ID: newID("p_"), Repo: repo, State: wire.ProjectActive, AddedBy: person, Revision: 1, CreatedAt: now, UpdatedAt: now}
- h, err := t.hello(person)
- if err != nil {
- return p, false, err
- }
- var info *wire.RepoInfo
- for i := range h.Catalog {
- if h.Catalog[i].Repo == repo {
- info = &h.Catalog[i]
- }
- }
- p.Title = ProjectTitle(repo, info)
if err = t.db.Create(&p).Error; err != nil {
return p, false, err
}
diff --git a/internal/equipo/chat/report_thread_test.go b/internal/equipo/chat/report_thread_test.go
index a5dccf74..8acd43b8 100644
--- a/internal/equipo/chat/report_thread_test.go
+++ b/internal/equipo/chat/report_thread_test.go
@@ -20,7 +20,7 @@ func TestReportThreadOwnershipContextAndIsolation(t *testing.T) {
t.Fatal(err)
}
}
- must(r.s.db.G.Create(&projectRecord{ID: "p_report", Title: "Woodstar", Repo: "amadan.net/oficina/sample"}).Error)
+ must(r.s.db.G.Create(&projectRecord{ID: "p_report", Title: "Woodstar", TitleSet: true, Repo: "amadan.net/oficina/sample"}).Error)
must(r.s.db.G.Create(&taskRecord{ID: "tk_report", ProjectID: "p_report", Title: "Improve sign-in", Creator: hkOwner, Stage: wire.StageInReview, CreatedAt: now, UpdatedAt: now}).Error)
c := cardRecord{ID: "c_report", Person: hkOwner, TaskID: "tk_report", Kind: wire.CardTask, State: wire.StageInReview, Options: "[]", Revision: 1, CreatedAt: now, UpdatedAt: now}
must(r.s.db.G.Create(&c).Error)
diff --git a/internal/equipo/chat/roster.go b/internal/equipo/chat/roster.go
index 3d321efa..56f86c80 100644
--- a/internal/equipo/chat/roster.go
+++ b/internal/equipo/chat/roster.go
@@ -424,10 +424,11 @@ func cardContexts(tx *gorm.DB, person string, cards []cardRecord) (map[string]Ca
}
var rows []struct {
ID, Repo string
+ TitleSet bool
CardContext
}
err := tx.Table("chat_cards AS c").
- Select("c.id, p.id AS project_id, p.title AS project_title, p.repo, t.title AS task_title").
+ Select("c.id, p.id AS project_id, p.title AS project_title, coalesce(p.title_set, 0) AS title_set, p.repo, t.title AS task_title").
Joins("LEFT JOIN chat_tasks AS t ON t.id = c.task_id").
Joins("LEFT JOIN chat_projects AS p ON p.id = coalesce(nullif(t.project_id, ''), c.project_id)").
Where("c.person = ? AND c.id IN ?", person, ids).Scan(&rows).Error
@@ -435,8 +436,9 @@ func cardContexts(tx *gorm.DB, person string, cards []cardRecord) (map[string]Ca
return nil, err
}
for _, row := range rows {
- if row.ProjectTitle == "" && row.Repo != "" {
- row.ProjectTitle = ProjectTitle(row.Repo, nil)
+ if row.Repo != "" {
+ // The same title every other reader shows (shownTitle).
+ row.ProjectTitle = projectRecord{Repo: row.Repo, Title: row.ProjectTitle, TitleSet: row.TitleSet}.shownTitle()
}
out[row.ID] = row.CardContext
}
diff --git a/internal/equipo/chat/roster_context_test.go b/internal/equipo/chat/roster_context_test.go
index dc8fd03b..8d908f59 100644
--- a/internal/equipo/chat/roster_context_test.go
+++ b/internal/equipo/chat/roster_context_test.go
@@ -9,7 +9,7 @@ import (
func TestRosterCardContext(t *testing.T) {
r := newMeteredRig(t)
ctx := context.Background()
- for _, p := range []projectRecord{{ID: "p_old", Title: "Earlier", Repo: "amadan.net/one/old"}, {ID: "p_current", Title: "Woodstar", Repo: "amadan.net/one/current", State: "removed"}} {
+ for _, p := range []projectRecord{{ID: "p_old", Title: "Earlier", TitleSet: true, Repo: "amadan.net/one/old"}, {ID: "p_current", Title: "Woodstar", TitleSet: true, Repo: "amadan.net/one/current", State: "removed"}, {ID: "p_create", Title: "Create", Repo: "amadan.net/oficina/equipo"}} {
if err := r.s.db.G.Create(&p).Error; err != nil {
t.Fatal(err)
}
@@ -23,12 +23,13 @@ func TestRosterCardContext(t *testing.T) {
{ID: "c_global", Person: hkOwner, Kind: wire.CardQuestion},
{ID: "c_other", Person: hkMember, TaskID: "tk_context", Kind: wire.CardQuestion},
{ID: "c_missing", Person: hkOwner, TaskID: "gone", ProjectID: "p_old", Kind: wire.CardQuestion},
+ {ID: "c_create", Person: hkOwner, ProjectID: "p_create", Kind: wire.CardProject},
} {
if err := r.s.db.G.Create(&c).Error; err != nil {
t.Fatal(err)
}
}
- got, err := r.s.CardPresentations(ctx, hkOwner, []string{"c_task", "c_project", "c_global", "c_other", "c_missing"})
+ got, err := r.s.CardPresentations(ctx, hkOwner, []string{"c_task", "c_project", "c_global", "c_other", "c_missing", "c_create"})
if err != nil {
t.Fatal(err)
}
@@ -44,6 +45,10 @@ func TestRosterCardContext(t *testing.T) {
if _, ok := got["c_other"]; ok {
t.Fatal("other person's card exposed")
}
+ // A title Equipo stored itself (#49) shows as the repository's name.
+ if c := got["c_create"].Context; c.ProjectTitle != "Equipo" {
+ t.Fatalf("stored title shown: %+v", c)
+ }
if c := got["c_missing"].Context; c.ProjectTitle != "Earlier" || c.TaskTitle != "" {
t.Fatalf("missing task failed graceful context: %+v", c)
}
diff --git a/internal/equipo/chat/stars.go b/internal/equipo/chat/stars.go
index 69c00de8..7c0562a0 100644
--- a/internal/equipo/chat/stars.go
+++ b/internal/equipo/chat/stars.go
@@ -239,10 +239,7 @@ func (t *txn) starProject(r turnRecord, project string, starred bool) (wire.Tool
return wire.ToolResult{}, err
}
t.touched[r.Person] = true
- title := p.Title
- if title == "" {
- title = ProjectTitle(p.Repo, nil)
- }
+ title := p.shownTitle()
if starred {
return wire.ToolResult{Code: "starred", Repo: p.Repo, Text: "Starred " + title + ": it is pinned at the top of the person's Projects page."}, nil
}
diff --git a/internal/equipo/chat/tasks.go b/internal/equipo/chat/tasks.go
index 51c6b422..ff7f2c0c 100644
--- a/internal/equipo/chat/tasks.go
+++ b/internal/equipo/chat/tasks.go
@@ -376,27 +376,42 @@ func cleanPath(p string) (string, bool) {
return p, true
}
-// ProjectTitle is a project's product name: the catalog's capitalised
-// spelling of the repository's name (woodstar is Woodstar), else the
-// README's first heading when short, else the repository's name.
-func ProjectTitle(repo string, info *wire.RepoInfo) string {
+// ProjectTitle is the title a project takes from its repository, until
+// the person names it: the repository's name, capitalised (equipo is
+// Equipo). Never one of the catalog's other names: past the first they
+// are headings and capitalised words the README happens to repeat, and
+// for oficina/equipo the second was "Create" (hub oficina/equipo #49),
+// for oficina/base "Store". A repository named with a bare verb or
+// generic word (paulca/new) keeps its namespace.
+func ProjectTitle(repo string) string {
base := path.Base(repo)
- if info != nil {
- for _, n := range info.Names {
- if strings.EqualFold(n, base) && n != base {
- return n
- }
- }
- if len(info.Names) > 1 {
- if n := info.Names[1]; len(n) <= 40 && len(strings.Fields(n)) <= 4 && n != "" {
- return n
- }
- }
- }
- if base == "" {
+ if base == "" || base == "." || base == "/" {
return repo
}
- return strings.ToUpper(base[:1]) + base[1:]
+ title := strings.ToUpper(base[:1]) + base[1:]
+ if !UsableProjectTitle(title) {
+ return ProjectName(repo)
+ }
+ return title
+}
+
+// genericTitles are words that say nothing about which project it is:
+// bare verbs lifted from a request, and placeholders.
+var genericTitles = map[string]bool{
+ "create": true, "new": true, "add": true, "make": true, "build": true, "start": true, "fix": true,
+ "update": true, "change": true, "edit": true, "open": true, "run": true, "test": true, "tests": true,
+ "generate": true, "remove": true, "delete": true, "move": true, "use": true, "set": true, "check": true,
+ "project": true, "projects": true, "repo": true, "repository": true, "app": true, "apps": true,
+ "untitled": true, "task": true, "tasks": true, "work": true, "main": true, "default": true,
+ "code": true, "src": true, "site": true, "web": true, "website": true, "none": true, "todo": true,
+}
+
+// UsableProjectTitle reports whether a title Equipo chose (never one the
+// person typed) names a project: not empty, not a bare verb or generic
+// word such as Create, New or Project.
+func UsableProjectTitle(title string) bool {
+ t := strings.ToLower(strings.TrimSpace(title))
+ return t != "" && validProjectText(t, 120) && !genericTitles[t]
}
// TaskLink is a task's own page on this instance, as the coordinator
@@ -472,10 +487,7 @@ func (t *txn) taskView(k taskRecord) (wire.Task, error) {
if err := t.db.Where("id = ?", k.ProjectID).First(&p).Error; err != nil {
return v, err
}
- v.Repo, v.Project = p.Repo, p.Title
- if v.Project == "" {
- v.Project = ProjectTitle(p.Repo, nil)
- }
+ v.Repo, v.Project = p.Repo, p.shownTitle()
var entries []entryRecord
if err := t.db.Where("task_id = ?", k.ID).Order("created_at, id").Find(&entries).Error; err != nil {
return v, err
@@ -827,6 +839,9 @@ func (t *txn) recordTask(r turnRecord, repo, title, brief, kind string, separate
if err := t.taskEvent(k); err != nil {
return wire.ToolResult{}, err
}
+ if err := t.accessNeedPassed(r, p.Repo); err != nil {
+ return wire.ToolResult{}, err
+ }
if _, err := t.housekeepingPass(housekeeping.TriggerRecordTask, p.ID); err != nil {
return wire.ToolResult{}, err
}
diff --git a/internal/equipo/chat/tools.go b/internal/equipo/chat/tools.go
index a82c6fbd..9e0b19e4 100644
--- a/internal/equipo/chat/tools.go
+++ b/internal/equipo/chat/tools.go
@@ -38,6 +38,25 @@ const (
toolMovingIn = "While moving in or exploring you only look around and take notes: status, find, search_code, read_file, read_notes and write_note."
toolAskedOwner = "Nothing changed yet: the person sees a card asking whether to make this change, and one tap applies it. Do not ask again in your reply."
toolNoHome = "New projects have no home now, so there is nothing to clear."
+ // toolNotARepository follows a find that matched nothing and named no
+ // repository as namespace/repository (%q is the query).
+ toolNotARepository = "Nothing Equipo's agent can reach matches %q, and it does not name a repository as namespace/repository, so no access card was raised. Do not search again for parts of it. File the task in one of the person's projects, or ask the person which repository this is for."
+ // toolNoSuchRepository: the repository's namespace is one the agent
+ // holds whole (CreateIn), so it would reach the repository if it existed.
+ // Its list can be a minute old, so it says "yet", never "there is none".
+ toolNoSuchRepository = "Equipo's agent reaches everything in %[2]s and sees no repository %[1]s there yet, so no access would help and no card was raised. A repository made a moment ago shows within a minute. Otherwise file the task in one of the person's projects, or ask the person which repository this is for."
+ // toolUnknownNamespace: Equipo cannot tell whether the repository
+ // exists, and the person did not name it this turn.
+ toolUnknownNamespace = "Equipo cannot confirm that %[1]s exists: its agent reaches nothing in %[2]s, and the person has not named it, so no access card was raised. File the task in one of the person's projects, or ask the person which repository this is for."
+ // toolRequestAccessHint follows the grant hint on a runner with request_access.
+ toolRequestAccessHint = " Use request_access with the single repository, role agent unless asked otherwise, and your reason. It only raises a confirmation card, and Amadan checks the repository exists. Never retry unprompted."
+ // toolNotNamed: request_access for a repository in a namespace Equipo
+ // does not know, which the person did not name this turn.
+ toolNotNamed = "Equipo cannot confirm that %s exists, and the person has not named it this turn, so no card was raised. Ask the person which repository they mean."
+ // toolReachedNoMatch: the query names a repository the agent reaches.
+ toolReachedNoMatch = "Equipo's agent already reaches %s, so it needs no access. Use it."
+ // toolAlreadyReached: request_access for something already reached.
+ toolAlreadyReached = "Equipo's agent already reaches %s. No access request is needed; work there."
// toolUnknownProject: star_project names no single current project.
toolUnknownProject = "That names no single current project. Use status to see the projects and their names."
toolAmbiguous = "Nothing was recorded: this reads like more than one task this turn already recorded. If it is one of them, use its task id. If it is a new problem, call record_task again with separate: true."
@@ -1051,13 +1070,44 @@ func (t *txn) find(r turnRecord, query string) (wire.ToolResult, error) {
}
return wire.ToolResult{Code: "found", Text: b.String()}, nil
}
+ // An access card is for a repository or namespace the agent does not
+ // reach, never for what a request is about ("iOS keyboard", #48).
+ // It is raised only for an explicit repository in a namespace Equipo
+ // knows: the server cannot ask the hub whether a name exists, and a
+ // single word is a feature as often as a namespace (review S2).
+ target := AccessTarget(query)
+ if target == "" {
+ return refused("not_a_repository", fmt.Sprintf(toolNotARepository, query)), nil
+ }
+ if reaches(h, target) {
+ return wire.ToolResult{Code: "none", Text: fmt.Sprintf(toolReachedNoMatch, target)}, nil
+ }
+ asks, err := t.asksAccess(r.Person)
+ if err != nil {
+ return wire.ToolResult{}, err
+ }
+ ns, _, _ := strings.Cut(target, "/")
+ if slices.Contains(h.CreateIn, ns) {
+ return refused("no_such_repository", fmt.Sprintf(toolNoSuchRepository, target, ns)), nil
+ }
+ // A namespace Equipo knows nothing of: only the person's own words
+ // this turn say the repository is real (review R1).
+ if !knownNamespace(h, ns) {
+ named, err := t.personNamed(r, target)
+ if err != nil {
+ return wire.ToolResult{}, err
+ }
+ if !named {
+ return refused("unknown_namespace", fmt.Sprintf(toolUnknownNamespace, target, ns)), nil
+ }
+ }
namespaces := []string{}
for _, e := range entries {
if ns := strings.Split(ProjectName(e.Repo), "/")[0]; !slices.Contains(namespaces, ns) {
namespaces = append(namespaces, ns)
}
}
- if err := t.accessCard(r, query, h.Agent, namespaces); err != nil {
+ if err := t.accessCard(r, target, h.Agent, namespaces); err != nil {
return wire.ToolResult{}, err
}
reach := "nothing yet"
@@ -1068,31 +1118,43 @@ func (t *txn) find(r turnRecord, query string) (wire.ToolResult, error) {
if h.Agent == "" {
hint = fmt.Sprintf("Nothing Equipo's agent can reach matches %q. Tell the person it is not shared with Equipo. The agent name is unavailable until the runner reconnects. Do not invent a name. Mention that merging is a separate per-project setting.", query)
}
- primary, err := t.s.authority.PrimaryRunner(t.db, r.Person)
+ if asks {
+ hint += toolRequestAccessHint
+ }
+ return wire.ToolResult{Code: "none", Text: hint}, nil
+}
+
+// asksAccess reports whether the person's primary runner has request_access.
+func (t *txn) asksAccess(person string) (bool, error) {
+ primary, err := t.s.authority.PrimaryRunner(t.db, person)
if err != nil {
- return wire.ToolResult{}, err
+ return false, err
}
var runner runnerSessionRecord
if err := t.db.First(&runner, "runner_id = ?", primary).Error; err != nil {
- return wire.ToolResult{}, err
- }
- if runner.Protocol >= wire.ProtocolAccess {
- hint += " Use request_access with the single repository, role agent unless asked otherwise, and your reason. It only raises a confirmation card. Never retry unprompted."
+ return false, err
}
- return wire.ToolResult{Code: "none", Text: hint}, nil
+ return runner.Protocol >= wire.ProtocolAccess, nil
+}
+
+// knownNamespace reports whether Equipo knows ns exists: the agent may
+// create there, it is the home, or it reaches or reads a repository there.
+func knownNamespace(h wire.Hello, ns string) bool {
+ return ns == h.Home || slices.Contains(h.CreateIn, ns) || related(h, ns)
}
// accessCard shows how to give Equipo's agent another namespace, once per
-// turn. For an access card, question is what was looked for, options are
-// the namespaces the agent reaches and choice is the agent's name.
-func (t *txn) accessCard(r turnRecord, query, agent string, namespaces []string) error {
+// turn (a card Equipo resolved as not needed does not count). For an access card, question and name are the repository or
+// namespace looked for (AccessTarget), options are the namespaces the agent
+// reaches and choice is the agent's name.
+func (t *txn) accessCard(r turnRecord, target, agent string, namespaces []string) error {
var n int64
- if err := t.db.Model(&cardRecord{}).Where("person = ? AND turn_id = ? AND kind = ?", r.Person, r.ID, wire.CardAccess).Count(&n).Error; err != nil || n > 0 {
+ if err := t.db.Model(&cardRecord{}).Where("person = ? AND turn_id = ? AND kind = ? AND NOT (state = ? AND choice = ?)", r.Person, r.ID, wire.CardAccess, wire.CardResolved, wire.ChoiceNotNeeded).Count(&n).Error; err != nil || n > 0 {
return err
}
raw, _ := json.Marshal(namespaces)
now := t.now()
- c := cardRecord{ID: newID("c_"), Person: r.Person, Kind: wire.CardAccess, State: wire.CardOpen, TurnID: r.ID, Question: clipText(query, wire.MaxQuestion), Options: string(raw), Choice: agent, Name: AccessName(query), Revision: 1, CreatedAt: now, UpdatedAt: now, Lane: r.Lane}
+ c := cardRecord{ID: newID("c_"), Person: r.Person, Kind: wire.CardAccess, State: wire.CardOpen, TurnID: r.ID, Question: clipText(target, wire.MaxQuestion), Options: string(raw), Choice: agent, Name: target, Revision: 1, CreatedAt: now, UpdatedAt: now, Lane: r.Lane}
if err := t.db.Create(&c).Error; err != nil {
return err
}
@@ -1146,27 +1208,32 @@ func (t *txn) setProjectHome(r turnRecord, ns string) (wire.ToolResult, error) {
return wire.ToolResult{Code: "asked_owner", Text: toolAskedOwner}, nil
}
-// guessSkip are words in a query that never name a namespace.
-var guessSkip = map[string]bool{"the": true, "a": true, "an": true, "my": true, "our": true, "app": true, "apps": true, "ios": true, "android": true, "web": true, "site": true, "repo": true, "repository": true, "bug": true, "in": true, "on": true, "of": true, "for": true, "project": true}
-
-var guessName = regexp.MustCompile(`^[a-z0-9][a-z0-9-]{1,38}$`)
-
-// AccessName is what an access card is for, from what was looked for:
-// a repository with its namespace ("paulca/threatmin"), or else the one
-// name a person would type (Woodstar is woodstar); empty when unclear.
-// It is what resolves the card, never a namespace on its own.
-func AccessName(query string) string {
- for _, w := range strings.Fields(strings.ToLower(query)) {
- w = strings.TrimPrefix(strings.Trim(w, ".,;:!?'\"()"), "amadan.net/")
- if guessSkip[w] {
- continue
- }
- if repoRef.MatchString(w) || guessName.MatchString(w) {
- return w
- }
+// AccessTarget is the repository a query names, the way a person or the
+// model writes it (https://amadan.net/tito/website.git/ is tito/website):
+// namespace/repository, lower-cased, without the hub's host. Anything
+// else, a single word ("keyboard"), free text ("iOS keyboard") or another
+// host, is "". find and the reconnect cleanup parse with it alike.
+func AccessTarget(query string) string {
+ q := strings.ToLower(strings.TrimSpace(query))
+ q = strings.TrimPrefix(q, "https://")
+ q = strings.TrimSuffix(strings.TrimSuffix(q, "/"), ".git")
+ q = strings.TrimPrefix(q, "amadan.net/")
+ ns, _, _ := strings.Cut(q, "/")
+ if !repoRef.MatchString(q) || !wire.ValidAccessTarget(q) || ns == "amadan.net" || ns == "github.com" {
return ""
}
- return ""
+ return q
+}
+
+// reaches reports whether the agent already reaches target (AccessTarget):
+// a repository on its list or in its catalog, or a namespace it may create
+// in or holds a repository in.
+func reaches(h wire.Hello, target string) bool {
+ if strings.Contains(target, "/") {
+ entries, _ := reachable(h)
+ return slices.ContainsFunc(entries, func(e wire.RepoInfo) bool { return strings.EqualFold(ProjectName(e.Repo), target) })
+ }
+ return slices.Contains(h.CreateIn, target) || related(h, target)
}
// repoRef is a repository named with its namespace.
@@ -1210,10 +1277,52 @@ func (t *txn) resolveAccess(person string, h wire.Hello) error {
}
continue
}
- if c.Name == "" || !slices.ContainsFunc(h.Catalog, func(e wire.RepoInfo) bool { return intended(e.Repo, c.Name) }) {
+ // An older card's question is the raw query and its name what
+ // AccessName picked from it: an explicit repository there
+ // ("the acme/Moonbeam repo" named acme/moonbeam) is still one.
+ target := AccessTarget(c.Question)
+ if target == "" {
+ target = AccessTarget(c.Name)
+ }
+ switch {
+ case target == "":
+ // Invalid by find's rules (free text or a single word, as
+ // find raised before #48): no access was needed for it.
+ c.State, c.Choice = wire.CardResolved, wire.ChoiceNotNeeded
+ case slices.ContainsFunc(h.Catalog, func(e wire.RepoInfo) bool { return intended(e.Repo, target) }):
+ // What it asked for is reachable now, and it says so.
+ c.State = wire.CardResolved
+ default:
+ continue
+ }
+ if err := t.saveCard(&c); err != nil {
+ return err
+ }
+ }
+ return nil
+}
+
+// accessNeedPassed resolves the turn's open find card whose own target is
+// the repository the turn's task was filed in, or that repository's
+// namespace when the agent reaches it: that need has passed. Any other
+// card of the turn is still needed and stays open (review B2).
+func (t *txn) accessNeedPassed(r turnRecord, repo string) error {
+ h, err := t.hello(r.Person)
+ if err != nil {
+ return err
+ }
+ name := strings.ToLower(ProjectName(repo))
+ ns, _, _ := strings.Cut(name, "/")
+ var rows []cardRecord
+ if err := t.db.Where("person = ? AND turn_id = ? AND kind = ? AND state = ? AND coalesce(access, '') = ''", r.Person, r.ID, wire.CardAccess, wire.CardOpen).Find(&rows).Error; err != nil {
+ return err
+ }
+ for i := range rows {
+ c := rows[i]
+ if c.Name != name && (c.Name != ns || !reaches(h, ns)) {
continue
}
- c.State = wire.CardResolved
+ c.State, c.Choice = wire.CardResolved, wire.ChoiceNotNeeded
if err := t.saveCard(&c); err != nil {
return err
}
diff --git a/internal/equipo/chat_page.go b/internal/equipo/chat_page.go
index e1392929..70265883 100644
--- a/internal/equipo/chat_page.go
+++ b/internal/equipo/chat_page.go
@@ -179,9 +179,19 @@ func cardView(c wire.Card, choices []string, tasks map[string]wire.Task) chatCar
v.Namespace, v.GrantHow = ns, copyText("chat.card.grant_how")
}
v.Line = fmt.Sprintf(copyText("chat.card.access"), c.Question, reach)
+ if reach == "" {
+ // A new team whose agent reaches nothing yet (review R1).
+ v.Line = fmt.Sprintf(copyText("chat.card.access_first"), c.Question)
+ }
v.Open = c.State == wire.CardOpen
if c.State == wire.CardResolved {
v.Line = fmt.Sprintf(copyText("chat.card.access_resolved"), c.Question)
+ // Resolved by Equipo, not by a grant: the work found a
+ // repository the agent already reaches, or the card never
+ // named one (#48).
+ if c.Choice == wire.ChoiceNotNeeded {
+ v.Line = copyText("access.already")
+ }
}
case wire.CardMerge:
v.Line, v.Open = c.Question, c.State == wire.CardOpen
diff --git a/internal/equipo/copy.go b/internal/equipo/copy.go
index b6dba594..7a23685f 100644
--- a/internal/equipo/copy.go
+++ b/internal/equipo/copy.go
@@ -1751,6 +1751,7 @@ var pageCopy = map[string]string{
"chat.card.answer": "Answer", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
"chat.card.answered": "You answered: %s", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
"chat.card.access": "Equipo can't reach %s yet. Its agent reaches %s.", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
+ "chat.card.access_first": "Equipo can't reach %s yet. Its agent can't access any repositories.", // COPY ACCEPTED BY DELEGATION (Luna, 2026-11-24)
"chat.card.grant": "Grant access", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
"chat.card.grant_how": "The namespace owner runs this once:", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context)
"chat.card.grant_how_unknown": "The namespace owner runs this once. Replace <namespace> with the namespace that holds the repository.", // COPY ACCEPTED BY DELEGATION (Astra, 2026-11-11)
diff --git a/internal/equipo/migrations/0103_clear_equipo_chosen_titles.sql b/internal/equipo/migrations/0103_clear_equipo_chosen_titles.sql
new file mode 100644
index 00000000..33d0e5d3
--- /dev/null
+++ b/internal/equipo/migrations/0103_clear_equipo_chosen_titles.sql
@@ -0,0 +1,10 @@
+-- Hub oficina/equipo #49: a project added from the runner's catalog took a
+-- word its README repeats as its title ("Create" for oficina/equipo,
+-- project p_hydlybiyyy3jy574grtydymnyd; "Store" for oficina/base). Clear
+-- every title Equipo chose itself, so each project shows its repository's
+-- name ("Equipo"). Data only: no row is removed, tasks keep their project,
+-- a title an owner set (title_set) stays, and a second run changes nothing.
+UPDATE chat_projects
+SET title = '', revision = coalesce(revision, 0) + 1
+WHERE coalesce(title_set, 0) = 0
+ AND coalesce(title, '') <> '';
diff --git a/internal/equipo/project_title_migration_test.go b/internal/equipo/project_title_migration_test.go
new file mode 100644
index 00000000..6d47b9a8
--- /dev/null
+++ b/internal/equipo/project_title_migration_test.go
@@ -0,0 +1,71 @@
+package equipo
+
+import (
+ "context"
+ "testing"
+
+ "amadan.net/oficina/equipo/internal/equipo/chat"
+ "amadan.net/rastrillo/rastrillo/migrate"
+)
+
+// #49: project p_hydlybiyyy3jy574grtydymnyd (oficina/equipo) was stored
+// with the title "Create". The migration clears every title Equipo chose
+// itself (title_set 0), so each project shows its repository's name ("Store"
+// for oficina/base was the same bug); a title an owner set stays, and so
+// does every task. A second run changes nothing.
+func TestClearEquipoChosenTitlesMigration(t *testing.T) {
+ all := Schema.All()
+ at := -1
+ for i, m := range all {
+ if m.ID == "equipo/0103_clear_equipo_chosen_titles" {
+ at = i
+ }
+ }
+ if at < 0 {
+ t.Fatal("missing the migration that clears Equipo-chosen titles")
+ }
+ ctx := context.Background()
+ d, err := migrate.Replay(ctx, all[:at])
+ if err != nil {
+ t.Fatal(err)
+ }
+ defer d.Close()
+ for _, q := range []string{
+ "INSERT INTO chat_projects(id,repo,title,title_set,state,revision) VALUES('p_hydlybiyyy3jy574grtydymnyd','amadan.net/oficina/equipo','Create',0,'active',1)",
+ "INSERT INTO chat_projects(id,repo,title,title_set,state,revision) VALUES('p_named','amadan.net/oficina/new','New',1,'active',3)",
+ "INSERT INTO chat_projects(id,repo,title,state,revision) VALUES('p_legacy','amadan.net/oficina/web','Project','active',1)",
+ "INSERT INTO chat_projects(id,repo,title,title_set,state,revision) VALUES('p_base','amadan.net/oficina/base','Store',0,'active',2)",
+ "INSERT INTO chat_projects(id,repo,title,title_set,state,revision) VALUES('p_owner','amadan.net/oficina/alta','Alta provisioning',1,'active',4)",
+ "INSERT INTO chat_projects(id,repo,title,title_set,state,revision) VALUES('p_clean','amadan.net/oficina/docs','',0,'active',5)",
+ "INSERT INTO chat_tasks(id,project_id,title,stage) VALUES('tkqpu72zbeuo','p_hydlybiyyy3jy574grtydymnyd','Swipe down to dismiss the keyboard on iOS','noted')",
+ } {
+ if _, err := d.ExecContext(ctx, q); err != nil {
+ t.Fatal(err)
+ }
+ }
+ for range 2 {
+ if _, err := d.ExecContext(ctx, all[at].SQL); err != nil {
+ t.Fatal(err)
+ }
+ }
+ for id, want := range map[string]struct {
+ title string
+ revision int64
+ }{"p_hydlybiyyy3jy574grtydymnyd": {"", 2}, "p_named": {"New", 3}, "p_legacy": {"", 2}, "p_base": {"", 3}, "p_owner": {"Alta provisioning", 4}, "p_clean": {"", 5}} {
+ var title string
+ var revision int64
+ if err := d.QueryRowContext(ctx, "SELECT title, revision FROM chat_projects WHERE id = ?", id).Scan(&title, &revision); err != nil {
+ t.Fatal(err)
+ }
+ if title != want.title || revision != want.revision {
+ t.Errorf("%s: %q rev %d, want %q rev %d", id, title, revision, want.title, want.revision)
+ }
+ }
+ if got := chat.ProjectTitle("amadan.net/oficina/equipo"); got != "Equipo" {
+ t.Fatalf("cleared title shows %q", got)
+ }
+ var project string
+ if err := d.QueryRowContext(ctx, "SELECT project_id FROM chat_tasks WHERE id = 'tkqpu72zbeuo'").Scan(&project); err != nil || project != "p_hydlybiyyy3jy574grtydymnyd" {
+ t.Fatal("task lost its project", project, err)
+ }
+}
diff --git a/internal/equipotest/perf_plan3_test.go b/internal/equipotest/perf_plan3_test.go
index f40fbb39..2eb87ab2 100644
--- a/internal/equipotest/perf_plan3_test.go
+++ b/internal/equipotest/perf_plan3_test.go
@@ -104,7 +104,7 @@ func perfPlan3Paths(t *testing.T, f runnerFixture, paths, checks map[string]stri
mustSQL(t, f.d, "INSERT INTO chat_handoffs(id,person,state,ledger_key,lane,title,created_at,updated_at) VALUES('h_perf',?,'open','perf-handoff','job:h_perf','Fix the checkout',?,?)", ownerAddress, now, now)
add("/jobs/{id}", "/jobs/h_perf", "Fix the checkout")
// Project placement is a normal owner screen, measured with a real task.
- mustSQL(t, f.d, "INSERT INTO chat_projects(id,repo,title,state,added_by,revision,created_at,updated_at) VALUES('p_placement_perf','amadan.net/oficina/equipo','Placement','active',?,1,?,?)", ownerAddress, now, now)
+ mustSQL(t, f.d, "INSERT INTO chat_projects(id,repo,title,title_set,state,added_by,revision,created_at,updated_at) VALUES('p_placement_perf','amadan.net/oficina/equipo','Placement',1,'active',?,1,?,?)", ownerAddress, now, now)
mustSQL(t, f.d, "INSERT INTO chat_tasks(id,project_id,title,brief,stage,creator,revision,created_at,updated_at) VALUES('tkplacementperf','p_placement_perf','Placement example','Keep this brief','noted',?,1,?,?)", ownerAddress, now, now)
add("/tasks/{id}/move", "/tasks/tkplacementperf/move", "Move this task")
previewSHA := strings.Repeat("a", 40)
diff --git a/internal/headless/engineering_test.go b/internal/headless/engineering_test.go
index 4b041d0b..a83c0073 100644
--- a/internal/headless/engineering_test.go
+++ b/internal/headless/engineering_test.go
@@ -316,7 +316,9 @@ func scenarioGrant(t *testing.T, env *Env) {
}
s := open(t, env)
s.keep()
- sent := s.send(t, "tool:find:recipes/book")
+ // The person names the repository: in a namespace Equipo knows
+ // nothing of, that is what raises the card (#48, review R1).
+ sent := s.send(t, "Fix the index in recipes/book. tool:find:recipes/book")
var card wire.Card
s.wait(t, "access card", time.Minute, func(c *thintest.Conversation) bool {
if k := cards(c, sent.Turn.ID, wire.CardAccess); len(k) == 1 {
diff --git a/internal/headless/merge_test.go b/internal/headless/merge_test.go
index e76d50a3..ebcad95c 100644
--- a/internal/headless/merge_test.go
+++ b/internal/headless/merge_test.go
@@ -93,7 +93,7 @@ func scenarioChecksCard(t *testing.T, env *Env) {
id := s.taskOf(t, sent.Turn.ID)
card := s.mergeCard(t, id)
k, _ := env.Client.Task(s.ctx, id)
- if k.Stage != wire.StageReadyToMerge || k.Checks != wire.ChecksCannotRun || k.NeedsYou != wire.NeedsMerge || card.Question != "Merge iOS edge swipe? I'd wait: I don't know yet whether merging to Woodstar's main branch ships to users." || card.State != wire.CardOpen {
+ if k.Stage != wire.StageReadyToMerge || k.Checks != wire.ChecksCannotRun || k.NeedsYou != wire.NeedsMerge || card.Question != "Merge iOS edge swipe? I'd wait: I don't know yet whether merging to Sample's main branch ships to users." || card.State != wire.CardOpen {
t.Fatalf("asking %+v card %+v", k, card)
}
tip := forgeHead(t, bare, "main")
@@ -156,7 +156,7 @@ func scenarioChecksCard(t *testing.T, env *Env) {
if swift := forgeShow(t, bare, "main:ios/App.swift"); !strings.Contains(swift, "import SwiftUI // iPad") || !strings.Contains(swift, "edgeSwipe = true") {
t.Fatalf("main ios/App.swift: %s", swift)
}
- s.mergedLine(t, id2, "Merged [iPad edge swipe](/tasks/"+id2+") into Woodstar without checks.")
+ s.mergedLine(t, id2, "Merged [iPad edge swipe](/tasks/"+id2+") into Sample without checks.")
// Merge authority: the owner says Woodstar's main is not a release, and
// the next small iOS change, measured by the real runner's review,
@@ -254,7 +254,7 @@ func scenarioRebase(t *testing.T, env *Env) {
if r := forgeShow(t, bare, "main:README.md"); !strings.Contains(r, "It has a typo: the panes.") || strings.Contains(r, "<<<<<<<") || forgeShow(t, bare, "main:NEWS") != "news\n" {
t.Fatalf("main after the rebase: %s", r)
}
- s.mergedLine(t, id, "Merged [Fix the README typo](/tasks/"+id+") into Woodstar.")
+ s.mergedLine(t, id, "Merged [Fix the README typo](/tasks/"+id+") into Sample.")
Witness[t.Name()] = map[string]any{"task": id, "steps": kinds, "merged": k.Merged}
}
diff --git a/internal/headless/projects_test.go b/internal/headless/projects_test.go
index 7ee31af9..4165ceb1 100644
--- a/internal/headless/projects_test.go
+++ b/internal/headless/projects_test.go
@@ -393,13 +393,31 @@ func scenarioFindAndRead(t *testing.T, env *Env) {
if r := s.reply(t, trick.Turn.ID).Text; !strings.Contains(r, "Could not read that") {
t.Fatalf("path trick: %s", r)
}
+ // A repository the person never named, in a namespace Equipo knows
+ // nothing of: it cannot tell whether it exists, so no access card
+ // (#48, review R1); the model is told so.
missing := s.send(t, "In Moonbeam, the panes stick. tool:find:moonbeam/app")
s.waitTurn(t, missing.Turn.ID, wire.TurnReplied)
+ if r := s.reply(t, missing.Turn.ID).Text; !strings.Contains(r, "moonbeam/app exists") {
+ t.Fatalf("reply %s", r)
+ }
+ snap, err := env.Client.Snapshot(s.ctx)
+ if err != nil {
+ t.Fatal(err)
+ }
+ for _, k := range snap.Cards {
+ if k.TurnID == missing.Turn.ID && k.Kind == wire.CardAccess {
+ t.Fatalf("access card for an unknown namespace: %+v", k)
+ }
+ }
+ // The person names it: the grant card, as before #48.
+ named := s.send(t, "The panes stick in moonbeam/app. tool:find:moonbeam/app")
+ s.waitTurn(t, named.Turn.ID, wire.TurnReplied)
s.wait(t, "access card", 10*time.Second, func(c *thintest.Conversation) bool {
- k := cards(c, missing.Turn.ID, wire.CardAccess)
+ k := cards(c, named.Turn.ID, wire.CardAccess)
return len(k) == 1 && k[0].Question == "moonbeam/app" && k[0].Choice == "equipo-test" && slices.Equal(k[0].Options, []string{"oficina"})
})
- if r := s.reply(t, missing.Turn.ID).Text; !strings.Contains(r, `Nothing Equipo's agent can reach matches \"moonbeam/app\"`) && !strings.Contains(r, `matches "moonbeam/app"`) {
+ if r := s.reply(t, named.Turn.ID).Text; !strings.Contains(r, `Nothing Equipo's agent can reach matches \"moonbeam/app\"`) && !strings.Contains(r, `matches "moonbeam/app"`) {
t.Fatalf("reply %s", r)
}
}
diff --git a/internal/headless/review_test.go b/internal/headless/review_test.go
index 8844f871..3af5d0f5 100644
--- a/internal/headless/review_test.go
+++ b/internal/headless/review_test.go
@@ -150,7 +150,7 @@ func scenarioReview(t *testing.T, env *Env) {
t.Fatalf("review findings %+v", f)
}
// The coordinator says so at the outcome level, once.
- s.mergedLine(t, id, "Merged [Make edge swipe go back](/tasks/"+id+") into Woodstar.")
+ s.mergedLine(t, id, "Merged [Make edge swipe go back](/tasks/"+id+") into Sample.")
Witness[t.Name()].(map[string]any)["merged"] = k.Merged
Witness[t.Name()].(map[string]any)["merged_s"] = merged.Sub(start).Seconds()
if needs, _ := env.Client.NeedsYou(s.ctx); len(needs.Items) != 0 {
diff --git a/internal/plan3test/plan3_release_test.go b/internal/plan3test/plan3_release_test.go
index 82300e9b..f433de9f 100644
--- a/internal/plan3test/plan3_release_test.go
+++ b/internal/plan3test/plan3_release_test.go
@@ -200,11 +200,13 @@ func plan3CopyInventory(t *testing.T) {
acceptedNativeProjects := slices.Contains([]string{"projects.new_request", "projects.remove_selection"}, key) && strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23)")
acceptedGitHubEgress := key == "CopyGitHubEgress" && strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23)")
acceptedForgeSeam := key == "work.reason.proposal_failed" && strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23)")
+ // Luna's review of the new team's grant card line (hub #48).
+ acceptedNewTeamCard := key == "chat.card.access_first" && strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY ACCEPTED BY DELEGATION (Luna, 2026-11-24)")
acceptedCardNames := slices.Contains([]string{"projects.carried_selection", "projects.remember_name", "projects.name_to_remember", "projects.use_title", "docs/api/equipo-v1.md / Projects and starting a request"}, key) && strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23)")
acceptedProjects := slices.Contains([]string{"projects.amadan", "projects.yours", "projects.can_add", "projects.add_reachable", "projects.names", "projects.names_hint", "projects.details", "projects.title", "projects.description", "projects.save", "projects.context", "projects.found", "projects.selected", "projects.owner_add", "projects.selection_lost", "projects.other", "projects.name_question", "projects.personal_names", "projects.forget_name", "docs/api/equipo-v1.md / Projects and starting a request"}, key) && strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY ACCEPTED BY DELEGATION (Luna, 2026-11-22)")
acceptedAgentAccess := slices.Contains([]string{"copyAgentConfig", "copyAgentForbidden", "copyAgentNotFound", "copyAgentUnavailable", "copyAgentTooLarge", "copyAgentInvalid", "copyAgentMedia", "copyAgentUnauthenticated", "agent.equipo_projects_list", "agent.equipo_tasks_list", "agent.equipo_task_get", "agent.equipo_needs_you", "docs/api/equipo-v1.md / Delegated read-only operations"}, key) && strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY ACCEPTED BY DELEGATION (Luna, 2026-11-20)")
acceptedCopy := strings.TrimSuffix(cells[3], " |") == "COPY ACCEPTED BY DELEGATION (Copy, record-bound) sha256:"+copydesk.Hash(rows[key])
- if !acceptedGitHubEgress && !acceptedForgeSeam && !acceptedAPIErrors && !acceptedNativeProjects && !acceptedInjection && !acceptedMail && !acceptedPush && !acceptedAgentAccess && !acceptedProjects && !acceptedCardNames && !acceptedAccess && !acceptedPlacementEdges && !acceptedPlacement && !acceptedReportActions && !acceptedRoster && !acceptedCopy && !strings.Contains(cells[3], "COPY REVIEW REQUIRED") && !acceptedAll && !acceptedGuide && !acceptedRound2 && !acceptedStarter && !acceptedDelegation && !approvedPublish && !approvedAssistant && !approvedJobs && !approvedOficina && !approvedFailedReplies && !approvedStopReasons {
+ if !acceptedNewTeamCard && !acceptedGitHubEgress && !acceptedForgeSeam && !acceptedAPIErrors && !acceptedNativeProjects && !acceptedInjection && !acceptedMail && !acceptedPush && !acceptedAgentAccess && !acceptedProjects && !acceptedCardNames && !acceptedAccess && !acceptedPlacementEdges && !acceptedPlacement && !acceptedReportActions && !acceptedRoster && !acceptedCopy && !strings.Contains(cells[3], "COPY REVIEW REQUIRED") && !acceptedAll && !acceptedGuide && !acceptedRound2 && !acceptedStarter && !acceptedDelegation && !approvedPublish && !approvedAssistant && !approvedJobs && !approvedOficina && !approvedFailedReplies && !approvedStopReasons {
t.Fatal("entry has no copy review status or applicable acceptance", key)
}
}
diff --git a/internal/thintest/access_resume_browser_test.go b/internal/thintest/access_resume_browser_test.go
index ff2745ea..3204cbab 100644
--- a/internal/thintest/access_resume_browser_test.go
+++ b/internal/thintest/access_resume_browser_test.go
@@ -57,7 +57,7 @@ func TestBrowserCoordinatorQueue(t *testing.T) {
func TestBrowserAccessEmojiByline(t *testing.T) {
r := newAlignRig(t)
- if err := r.inst.DB.G.Exec("UPDATE chat_projects SET title = ?", "🤖 CARLOS platform").Error; err != nil {
+ if err := r.inst.DB.G.Exec("UPDATE chat_projects SET title = ?, title_set = 1", "🤖 CARLOS platform").Error; err != nil {
t.Fatal(err)
}
for _, width := range []int64{1280, 390} {
diff --git a/internal/thintest/empty_repo_contract_test.go b/internal/thintest/empty_repo_contract_test.go
index 0b54ec7f..dd96f64e 100644
--- a/internal/thintest/empty_repo_contract_test.go
+++ b/internal/thintest/empty_repo_contract_test.go
@@ -69,25 +69,26 @@ func TestContractEmptyRepository(t *testing.T) {
t.Fatalf("read outside the allowlist: %+v", res)
}
// What the agent reaches is every namespace it is granted, read or
- // not yet read: paulca is among them.
- if none := r.call("e8", wire.ToolFind, map[string]string{"query": "oficina/moonbeam"}); none.Code != "none" || !strings.Contains(none.Text, "It reaches: oficina, paulca.") {
+ // not yet read: paulca is among them, and moonbeam, which it reads.
+ if none := r.call("e8", wire.ToolFind, map[string]string{"query": "paulca/moonbeam"}); none.Code != "none" || !strings.Contains(none.Text, "It reaches: oficina, moonbeam, paulca.") {
t.Fatalf("find nothing: %+v", none)
}
}
-// An access card's name is what was looked for; the grant command names
-// a namespace only when the person gave one ("acme/moonbeam"). A bare
-// name is a repository or a product as often as a namespace, so the
-// command keeps the <namespace> placeholder rather than guess
-// ("threatmin" is a repository in paulca).
-func TestAccessName(t *testing.T) {
+// An access card is for what was looked for only when that names a
+// repository as namespace/repository, however it is spelled (#48: never
+// "iOS keyboard"; review S2: never a single word such as "keyboard" or
+// "Woodstar"; review N1: https://, a trailing slash and .git are the same
+// repository). The grant command names the namespace the card names.
+func TestAccessTarget(t *testing.T) {
for q, want := range map[string]string{
- "Woodstar": "woodstar", "the Woodstar iOS app": "woodstar", "Moon Beam": "moon", "¿Qué?": "", "my app": "", "x": "",
- "paulca/threatmin": "paulca/threatmin", "amadan.net/paulca/threatmin": "paulca/threatmin", "the acme/Moonbeam repo": "acme/moonbeam",
- "a/b/c": "", "/threatmin": "",
+ "Woodstar": "", "keyboard": "", "the Woodstar iOS app": "", "Moon Beam": "", "¿Qué?": "", "my app": "", "x": "", "ios": "", "iOS keyboard": "",
+ "paulca/threatmin": "paulca/threatmin", "amadan.net/paulca/threatmin": "paulca/threatmin", "acme/Moonbeam": "acme/moonbeam", "the acme/Moonbeam repo": "",
+ "https://amadan.net/tito/website": "tito/website", "amadan.net/tito/website/": "tito/website", "tito/website.git": "tito/website", "https://amadan.net/tito/website.git/": "tito/website",
+ "amadan.net/amadan.net/tito": "", "github.com/tito/website": "", "a/b/c": "", "/threatmin": "",
} {
- if got := chat.AccessName(q); got != want {
- t.Fatalf("AccessName(%q) = %q, want %q", q, got, want)
+ if got := chat.AccessTarget(q); got != want {
+ t.Fatalf("AccessTarget(%q) = %q, want %q", q, got, want)
}
}
for name, want := range map[string]string{"woodstar": "", "threatmin": "", "paulca/threatmin": "paulca", "": ""} {
diff --git a/internal/thintest/merge_contract_test.go b/internal/thintest/merge_contract_test.go
index 475114d6..e451cb87 100644
--- a/internal/thintest/merge_contract_test.go
+++ b/internal/thintest/merge_contract_test.go
@@ -91,7 +91,7 @@ func TestContractAutoMerge(t *testing.T) {
if i, j := slices.Index(stages, wire.StageReadyToMerge), slices.Index(stages, wire.StageMerging); i < 0 || j < i || !slices.Contains(stages, wire.StageDone) {
t.Fatalf("stages %v", stages)
}
- want := "Merged [Fix the README typo](/tasks/" + id + ") into Woodstar."
+ want := "Merged [Fix the README typo](/tasks/" + id + ") into Sample."
r.wait("the coordinator's line", func(c *Conversation) bool {
rs := c.Replies()
return len(rs) > 0 && rs[len(rs)-1].Text == want
@@ -158,7 +158,7 @@ func TestContractMergeWithoutChecks(t *testing.T) {
}
})
shape(t, "api/card-merge.json", card)
- if cards != 1 || card.State != wire.CardOpen || card.Question != "Merge Swipe back on iOS? I'd wait: I don't know yet whether merging to Woodstar's main branch ships to users." || !slices.Equal(card.Options, []string{"merge", "wait_mac"}) || card.Name != "Swipe back on iOS" || card.TaskID != id {
+ if cards != 1 || card.State != wire.CardOpen || card.Question != "Merge Swipe back on iOS? I'd wait: I don't know yet whether merging to Sample's main branch ships to users." || !slices.Equal(card.Options, []string{"merge", "wait_mac"}) || card.Name != "Swipe back on iOS" || card.TaskID != id {
t.Fatalf("merge card %+v (%d)", card, cards)
}
if r.heldKinds(wire.FrameDispatch) != 0 {
@@ -239,7 +239,7 @@ func TestContractMergeWithoutChecks(t *testing.T) {
if k, _ := r.client.Task(ctx, id2); k.Merged == nil || !k.Merged.WithoutChecks || !k.Steps[len(k.Steps)-1].WithoutChecks {
t.Fatalf("merged without checks %+v", k.Merged)
}
- want := "Merged [Edge swipe on iPad](/tasks/" + id2 + ") into Woodstar without checks."
+ want := "Merged [Edge swipe on iPad](/tasks/" + id2 + ") into Sample without checks."
r.wait("the coordinator's line", func(c *Conversation) bool {
rs := c.Replies()
return len(rs) > 0 && rs[len(rs)-1].Text == want
diff --git a/internal/thintest/mergeauth_contract_test.go b/internal/thintest/mergeauth_contract_test.go
index 02b0da62..097a371f 100644
--- a/internal/thintest/mergeauth_contract_test.go
+++ b/internal/thintest/mergeauth_contract_test.go
@@ -174,7 +174,7 @@ func TestContractMergeAuthorityAct(t *testing.T) {
}
return false
})
- want := "Merged [Swipe back from the edge](/tasks/" + id + ") into Woodstar without checks: approved by Review, a small change, 12 lines in one file, nothing ships until a release."
+ want := "Merged [Swipe back from the edge](/tasks/" + id + ") into Sample without checks: approved by Review, a small change, 12 lines in one file, nothing ships until a release."
if receipt.Question != want || !slices.Equal(receipt.Options, []string{"undo"}) {
t.Fatalf("receipt %+v", receipt)
}
@@ -449,7 +449,7 @@ func TestContractShipsQuestion(t *testing.T) {
base := strings.Repeat("1", 40)
id, _ := r.measured("s", "Swipe back", base, strings.Repeat("2", 40), wire.ChecksCannotRun, "needs_macos", func(d *wire.DispatchCommand) *wire.ChangeFacts { return facts(d) })
card := r.mergeCardsWait(id)
- if !strings.Contains(card.Question, "I don't know yet whether merging to Woodstar's main branch ships to users") {
+ if !strings.Contains(card.Question, "I don't know yet whether merging to Sample's main branch ships to users") {
t.Fatalf("card %+v", card)
}
var ships wire.Card
@@ -462,7 +462,7 @@ func TestContractShipsQuestion(t *testing.T) {
}
return false
})
- if ships.Question != "Does merging to Woodstar's main branch ship to users?" || !slices.Equal(ships.Options, []string{"ships", "not_ships"}) {
+ if ships.Question != "Does merging to Sample's main branch ship to users?" || !slices.Equal(ships.Options, []string{"ships", "not_ships"}) {
t.Fatalf("ships %+v", ships)
}
// A second task asking on the same unknown: no second question.
@@ -555,7 +555,7 @@ func TestContractUndoMerge(t *testing.T) {
if err != nil {
t.Fatal(err)
}
- if !strings.HasPrefix(out.Card.Question, "Reverting it: [Revert eeeeeee in Woodstar](/tasks/") {
+ if !strings.HasPrefix(out.Card.Question, "Reverting it: [Revert eeeeeee in Sample](/tasks/") {
t.Fatalf("receipt after undo %+v", out.Card)
}
_, body := r.expect(wire.FrameDispatch)
diff --git a/internal/thintest/pages_test.go b/internal/thintest/pages_test.go
index 54fa41a3..a71c05ce 100644
--- a/internal/thintest/pages_test.go
+++ b/internal/thintest/pages_test.go
@@ -2,6 +2,7 @@ package thintest
import (
"context"
+ "fmt"
"html"
"io"
"net/http"
@@ -124,7 +125,7 @@ func TestPagesTasksAndProjects(t *testing.T) {
r.step("r-pm", wire.StepReport{TaskID: id, StepID: m.StepID, Attempt: 1, State: wire.StepDone, BaseSHA: base, CandidateSHA: cand, Termination: true, MergeSHA: strings.Repeat("e", 40), Into: "main", Strategy: wire.MergeCommit})
r.wait("done", func(c *Conversation) bool { return c.Tasks[id].Stage == wire.StageDone })
page = r.get(owner, "/conversation", 200)
- for _, want := range []string{">Done<", "Merged into main at eeeeeee", `href="https://amadan.net/oficina/sample" rel="noopener" target="_blank" data-open-amadan>Open on Amadan</a>`, `Swipe back does nothing</a> into Woodstar.`} {
+ for _, want := range []string{">Done<", "Merged into main at eeeeeee", `href="https://amadan.net/oficina/sample" rel="noopener" target="_blank" data-open-amadan>Open on Amadan</a>`, `Swipe back does nothing</a> into Sample.`} {
if !strings.Contains(page, want) {
t.Fatalf("merged card lacks %q: %s", want, page)
}
@@ -139,7 +140,7 @@ func TestPagesTasksAndProjects(t *testing.T) {
list := r.get(owner, "/tasks", 200)
// Rows: the whole row links the task; who filed it and from where; the
// Done group; the project by name; the detail line says Merged.
- for _, want := range []string{`data-task="` + id + `"`, `equipo-row-link href="/tasks/` + id + `"`, `<span equipo-project-name>Woodstar</span>`, ">You</span>", "From your conversation, ", `data-group="done"`, ">Merged.</span>"} {
+ for _, want := range []string{`data-task="` + id + `"`, `equipo-row-link href="/tasks/` + id + `"`, `<span equipo-project-name>Sample</span>`, ">You</span>", "From your conversation, ", `data-group="done"`, ">Merged.</span>"} {
if !strings.Contains(list, want) {
t.Fatalf("Tasks page lacks %q", want)
}
@@ -165,7 +166,7 @@ func TestPagesTasksAndProjects(t *testing.T) {
}
projects := r.get(owner, "/projects", 200)
// Its one task is merged: nothing open, said in words, no empty bar.
- for _, want := range []string{"data-thin-projects", "Woodstar", "1 repository", "data-no-open>No open tasks<", "Woodstar is a reading app.", "Checks run here (make ci)"} {
+ for _, want := range []string{"data-thin-projects", "Sample", "1 repository", "data-no-open>No open tasks<", "Woodstar is a reading app.", "Checks run here (make ci)"} {
if !strings.Contains(projects, want) {
t.Fatalf("Projects page lacks %q", want)
}
@@ -223,10 +224,19 @@ func TestPagesTasksAndProjects(t *testing.T) {
}
// TestPagesGrantCard: the grant card shows the real command and a check,
-// and a resolved card is one quiet line.
+// and a resolved card is one quiet line. A card is raised only for an
+// explicit repository in a namespace Equipo knows (it reads moonbeam/docs
+// and acme/other), never for one it cannot tell exists (#48).
func TestPagesGrantCard(t *testing.T) {
r := newToolRig(t)
owner := r.inst.Cookie()
+ hello := wire.Hello{Generation: r.runner.Welcome.Generation, Repos: []string{}, CreateIn: []string{}, Agent: "equipo-test", Catalog: []wire.RepoInfo{{Repo: "amadan.net/moonbeam/docs", Names: []string{"docs"}, Hints: []string{}}, {Repo: "amadan.net/acme/other", Names: []string{"other"}, Hints: []string{}}}, Connections: []wire.HeldConnection{}, Versions: map[string]string{}}
+ if err := r.runner.Send(r.ctx, "h-pg0", wire.FrameHello, hello); err != nil {
+ t.Fatal(err)
+ }
+ if got := r.call("g0", wire.ToolFind, map[string]string{"query": "zeta/web"}); got.Code != "unknown_namespace" {
+ t.Fatalf("unknown namespace: %+v", got)
+ }
r.call("g1", wire.ToolFind, map[string]string{"query": "moonbeam/web"})
var card wire.Card
r.wait("access card", func(c *Conversation) bool {
@@ -249,7 +259,7 @@ func TestPagesGrantCard(t *testing.T) {
t.Fatalf("check: %d", status)
}
r.expect(wire.FrameRecheck)
- hello := wire.Hello{Generation: r.runner.Welcome.Generation, Repos: []string{}, CreateIn: []string{}, Agent: "equipo-test", Catalog: []wire.RepoInfo{{Repo: "amadan.net/moonbeam/web", Names: []string{"web", "Moonbeam"}, Hints: []string{}}}, Connections: []wire.HeldConnection{}, Versions: map[string]string{}}
+ hello.Catalog = append(hello.Catalog, wire.RepoInfo{Repo: "amadan.net/moonbeam/web", Names: []string{"web", "Moonbeam"}, Hints: []string{}})
if err := r.runner.Send(r.ctx, "h-pg", wire.FrameHello, hello); err != nil {
t.Fatal(err)
}
@@ -275,7 +285,7 @@ func TestPagesGrantCard(t *testing.T) {
if !strings.Contains(page, "amadan agent grant equipo-test acme</code>") || !strings.Contains(page, html.EscapeString(equipo.RunnerText("chat.card.grant_how"))) {
t.Fatal("grant card does not name the namespace given")
}
- hello.Catalog = append(hello.Catalog, wire.RepoInfo{Repo: "amadan.net/acme/other", Names: []string{"other"}, Hints: []string{}})
+ hello.Catalog = append(hello.Catalog, wire.RepoInfo{Repo: "amadan.net/acme/more", Names: []string{"more"}, Hints: []string{}})
if err := r.runner.Send(r.ctx, "h-pg2", wire.FrameHello, hello); err != nil {
t.Fatal(err)
}
@@ -288,6 +298,61 @@ func TestPagesGrantCard(t *testing.T) {
t.Fatal(err)
}
r.wait("named resolved", func(c *Conversation) bool { return c.Cards[named.ID].State == wire.CardResolved })
+ // A card whose need passed (the turn's task is filed in the very
+ // repository it asked for, granted but not read yet) says Equipo has
+ // access, not that it is reachable.
+ r.next("acme web")
+ r.call("g4", wire.ToolFind, map[string]string{"query": "acme/web"})
+ var passed wire.Card
+ r.wait("acme/web access card", func(c *Conversation) bool {
+ for _, k := range c.Cards {
+ if k.Kind == wire.CardAccess && k.State == wire.CardOpen {
+ passed = k
+ }
+ }
+ return passed.ID != ""
+ })
+ hello.Repos = []string{"amadan.net/acme/web"}
+ if err := r.runner.Send(r.ctx, "h-pg4", wire.FrameHello, hello); err != nil {
+ t.Fatal(err)
+ }
+ if got := r.call("g5", wire.ToolRecordTask, map[string]string{"repo": "acme/web", "title": "Fix the header", "brief": "go"}); got.Code != "recorded" {
+ t.Fatalf("record: %+v", got)
+ }
+ r.wait("need passed", func(c *Conversation) bool { return c.Cards[passed.ID].State == wire.CardResolved })
+ page = r.get(owner, "/conversation", 200)
+ if !strings.Contains(page, html.EscapeString(equipo.RunnerText("access.already"))) || strings.Contains(page, "acme/web is reachable now.") {
+ t.Fatal("a card whose need passed does not say so")
+ }
+}
+
+// TestPagesGrantCardNewTeam: a new team whose agent reaches nothing gets
+// the grant card for a repository the person names (review R1), and its
+// line does not end on an empty list of namespaces.
+func TestPagesGrantCardNewTeam(t *testing.T) {
+ r := newToolRig(t)
+ owner := r.inst.Cookie()
+ hello := wire.Hello{Generation: r.runner.Welcome.Generation, Repos: []string{}, CreateIn: []string{}, Agent: "equipo-test", Catalog: []wire.RepoInfo{}, Connections: []wire.HeldConnection{}, Versions: map[string]string{}}
+ if err := r.runner.Send(r.ctx, "h-new", wire.FrameHello, hello); err != nil {
+ t.Fatal(err)
+ }
+ r.next("Fix the header in acme/website.")
+ if got := r.call("n1", wire.ToolFind, map[string]string{"query": "acme/website"}); got.Code != "none" {
+ t.Fatalf("find: %+v", got)
+ }
+ r.wait("access card", func(c *Conversation) bool {
+ for _, k := range c.Cards {
+ if k.Kind == wire.CardAccess && k.State == wire.CardOpen {
+ return true
+ }
+ }
+ return false
+ })
+ page := r.get(owner, "/conversation", 200)
+ want := html.EscapeString(fmt.Sprintf(equipo.RunnerText("chat.card.access_first"), "acme/website"))
+ if !strings.Contains(page, want) || strings.Contains(page, "Its agent reaches .") || !strings.Contains(page, "amadan agent grant equipo-test acme") {
+ t.Fatal("new team's grant card")
+ }
}
func cardState(cards []wire.Card, id string) string {
diff --git a/internal/thintest/projects_pages_test.go b/internal/thintest/projects_pages_test.go
index 01c850ac..cdd2fd07 100644
--- a/internal/thintest/projects_pages_test.go
+++ b/internal/thintest/projects_pages_test.go
@@ -98,7 +98,7 @@ func newProjectsRig(t *testing.T) (*toolRig, map[string]string) {
for _, p := range projects.Items {
ids[p.Title] = p.ID
}
- woodstar, p1, p2, p3 := ids["Woodstar"], ids["P1"], ids["P2"], ids["P3"]
+ woodstar, p1, p2, p3 := ids["Sample"], ids["P1"], ids["P2"], ids["P3"]
if woodstar != task.ProjectID || p1 == "" || p2 == "" || p3 == "" || len(ids) != 10 {
t.Fatalf("projects: %v", ids)
}
@@ -119,17 +119,17 @@ func newProjectsRig(t *testing.T) (*toolRig, map[string]string) {
func TestPagesProjectsOrderAndStars(t *testing.T) {
r, ids := newProjectsRig(t)
owner := r.inst.Cookie()
- woodstar, p1, p2, p3 := ids["Woodstar"], ids["P1"], ids["P2"], ids["P3"]
+ woodstar, p1, p2, p3 := ids["Sample"], ids["P1"], ids["P2"], ids["P3"]
page := r.get(owner, "/projects", 200)
// Auto-star: the project with the most tasks waiting on the owner,
// with a receipt and its Undo.
- if !strings.Contains(page, "Starred Woodstar: 2 tasks are waiting on you") || !strings.Contains(page, `<form method="post" action="/projects/`+woodstar+`/star"><input type="hidden" name="starred" value="0"><button equipo-link type="submit" data-star-undo>Undo</button>`) {
+ if !strings.Contains(page, "Starred Sample: 2 tasks are waiting on you") || !strings.Contains(page, `<form method="post" action="/projects/`+woodstar+`/star"><input type="hidden" name="starred" value="0"><button equipo-link type="submit" data-star-undo>Undo</button>`) {
t.Fatalf("no receipt with Undo:\n%s", page)
}
if g := groupOf(t, page, woodstar); g != "starred" {
t.Fatalf("Woodstar in %q", g)
}
- if row := rowOf(t, page, woodstar); !strings.Contains(row, `aria-pressed="true" data-auto aria-label="Unstar Woodstar" title="Starred by Equipo: 2 tasks are waiting on you"`) {
+ if row := rowOf(t, page, woodstar); !strings.Contains(row, `aria-pressed="true" data-auto aria-label="Unstar Sample" title="Starred by Equipo: 2 tasks are waiting on you"`) {
t.Fatalf("auto star's hover: %s", row)
}
if g := groupOf(t, page, p1); g != "active" {
@@ -174,7 +174,7 @@ func TestPagesProjectsOrderAndStars(t *testing.T) {
for i := 0; i < 2; i++ {
page = r.get(owner, "/projects", 200)
}
- if g := groupOf(t, page, woodstar); g != "active" || strings.Contains(page, "Starred Woodstar") || !strings.Contains(rowOf(t, page, woodstar), `aria-pressed="false" aria-label="Star Woodstar"`) {
+ if g := groupOf(t, page, woodstar); g != "active" || strings.Contains(page, "Starred Sample") || !strings.Contains(rowOf(t, page, woodstar), `aria-pressed="false" aria-label="Star Sample"`) {
t.Fatalf("after Undo Woodstar is in %q:\n%s", g, page)
}
// The owner stars p1 themselves; the project page says who.
diff --git a/internal/thintest/report_actions_browser_test.go b/internal/thintest/report_actions_browser_test.go
index 07243ab7..5d1b02fd 100644
--- a/internal/thintest/report_actions_browser_test.go
+++ b/internal/thintest/report_actions_browser_test.go
@@ -137,7 +137,7 @@ func TestBrowserReportThread(t *testing.T) {
p.click(`[data-report-thread] [data-thread-send]`)
f, b := r.expect(wire.FrameMessage)
m := b.(*wire.MessageCommand)
- for _, want := range []string{id, "Show immediate loading feedback", "Woodstar", "in_review", "changes_requested"} {
+ for _, want := range []string{id, "Show immediate loading feedback", "Sample", "in_review", "changes_requested"} {
if !strings.Contains(m.Text, want) {
t.Fatalf("missing context %q: %s", want, m.Text)
}
diff --git a/internal/thintest/roster_browser_test.go b/internal/thintest/roster_browser_test.go
index e0b036d4..93cbe49e 100644
--- a/internal/thintest/roster_browser_test.go
+++ b/internal/thintest/roster_browser_test.go
@@ -37,7 +37,7 @@ func TestBrowserRosterVisual(t *testing.T) {
p.check(`document.querySelector('[equipo-roster-report] [aria-current]').dataset.tone==='warning'`, "waiting for you looks failed")
p.check(`[...document.querySelectorAll('[equipo-roster-facts] small')].every(e=>getComputedStyle(e).whiteSpace==='normal' && e.scrollWidth<=e.clientWidth+1)`, "fact details truncate")
p.check(`(()=>{const c=document.querySelector('[equipo-roster-byline] b'),m=document.querySelector('[equipo-message="incoming"] [equipo-message-meta] strong');return !m||getComputedStyle(c).fontSize===getComputedStyle(m).fontSize})()`, "byline sizes differ")
- p.check(`[...document.querySelectorAll('[equipo-card="task"], [equipo-card="merge"]')].every(c=>c.querySelector('[equipo-roster-project]')?.textContent.includes('Woodstar') && c.querySelector('[equipo-roster-project] [equipo-mono]'))`, "task and coordinator cards lack project context")
+ p.check(`[...document.querySelectorAll('[equipo-card="task"], [equipo-card="merge"]')].every(c=>c.querySelector('[equipo-roster-project]')?.textContent.includes('Sample') && c.querySelector('[equipo-roster-project] [equipo-mono]'))`, "task and coordinator cards lack project context")
p.check(`(()=>{const c=document.querySelector('[equipo-roster-card]'),b=c.previousElementSibling,r=c.querySelector('[equipo-roster-report]');return parseFloat(getComputedStyle(c).paddingTop)===0 && parseFloat(getComputedStyle(b).marginBottom)===8 && parseFloat(getComputedStyle(r).rowGap)===12 && parseFloat(getComputedStyle(c.querySelector('[equipo-roster-facts]')).paddingTop)===12})()`, "report spacing left the inset scale")
if width == 390 {
p.check(`document.querySelector('[equipo-roster-links] [data-report-next]').getBoundingClientRect().height>=44`, "task button lost its phone target")
@@ -76,7 +76,7 @@ func TestBrowserRosterSetAside(t *testing.T) {
p.check(`(()=>{const s=document.querySelector('[equipo-aside-stub]');return parseFloat(getComputedStyle(s).fontSize)<=14 && s.querySelector('[data-aside-title]') && s.getBoundingClientRect().height<=64})()`, "aside is a full question instead of a compact stub")
p.check(`(()=>{const t=document.querySelector('[equipo-roster-toast]'),c=document.querySelector('#chat-composer');return t.getBoundingClientRect().left>=c.getBoundingClientRect().left && t.getBoundingClientRect().bottom<=c.getBoundingClientRect().bottom})()`, "toast outside composer column")
p.check(`(()=>{const t=document.querySelector('[equipo-roster-toast]').getBoundingClientRect(),b=document.querySelector('[data-turn-stop]')?.getBoundingClientRect();return !b || (b.bottom<=t.top && b.bottom<=document.querySelector('[equipo-scroll]').getBoundingClientRect().bottom)})()`, "toast covers Stop")
- p.check(`document.querySelector('`+card+` [equipo-roster-project]')?.textContent.includes('Woodstar')`, "aside lost project context")
+ p.check(`document.querySelector('`+card+` [equipo-roster-project]')?.textContent.includes('Sample')`, "aside lost project context")
if width == 390 {
p.check(`document.querySelector('[equipo-aside-stub] button').getBoundingClientRect().width>=44`, "Undo has a narrow phone target")
}
@@ -152,7 +152,7 @@ func TestBrowserRosterSubchat(t *testing.T) {
p.wait(`document.querySelector('[data-question-thread]').textContent.includes('I’ll start with the sign-in page.')`, "thread after reload")
p.check(`!document.querySelector('[equipo-thread-turn][data-own] [equipo-thread-who]')`, "own thread turn repeats a byline")
p.check(`parseFloat(getComputedStyle(document.querySelector('[data-first] [equipo-thread-bubble]')).fontWeight)<600`, "question is entirely title weight")
- p.check(`(()=>{const c=document.querySelector('[data-question-thread]').closest('[data-card]');return c.querySelector('[equipo-roster-project]')?.textContent.includes('Woodstar') && c.querySelector('[equipo-roster-task]')?.textContent==='Improve sign-in'})()`, "thread lost project or task context")
+ p.check(`(()=>{const c=document.querySelector('[data-question-thread]').closest('[data-card]');return c.querySelector('[equipo-roster-project]')?.textContent.includes('Sample') && c.querySelector('[equipo-roster-task]')?.textContent==='Improve sign-in'})()`, "thread lost project or task context")
p.fits("sub-chat")
p.shot(fmt.Sprintf("roster-thread-answered-%d-%s", width, scheme))
p.check(`(()=>{const i=document.querySelector('[data-question-thread] [equipo-mini-composer] textarea');i.value='Keep the email link.';i.dispatchEvent(new Event('input',{bubbles:true}));return true})()`, "follow-up")
@@ -220,7 +220,7 @@ func TestBrowserRosterDecisionStates(t *testing.T) {
if k := r.task(id); k.Stage != wire.StageInProgress {
t.Fatalf("note did not choose another round: %s", k.Stage)
}
- p.check(`document.querySelector('`+card+` [equipo-roster-project]')?.textContent.includes('Woodstar')`, "decision lost project context")
+ p.check(`document.querySelector('`+card+` [equipo-roster-project]')?.textContent.includes('Sample')`, "decision lost project context")
p.fits("direction states")
p.shot(fmt.Sprintf("roster-decision-sent-%d-%s", width, scheme))
build := `[data-card="` + built.ID + `"]`
diff --git a/internal/thintest/rows_pages_test.go b/internal/thintest/rows_pages_test.go
index 47dba2c9..fe29621d 100644
--- a/internal/thintest/rows_pages_test.go
+++ b/internal/thintest/rows_pages_test.go
@@ -64,7 +64,7 @@ func TestPagesTaskRows(t *testing.T) {
}
// The project, the stepper's words, who and from where, the age.
retry := taskRow(t, tasks, f.retry)
- for _, want := range []string{`data-placement-task="` + f.retry + `"`, `href="/tasks/` + f.retry + `/move"`, `<span equipo-project-name>Woodstar</span>`,
+ for _, want := range []string{`data-placement-task="` + f.retry + `"`, `href="/tasks/` + f.retry + `/move"`, `<span equipo-project-name>Sample</span>`,
`role="img" aria-label="Step 3 of 6"`, ">Stopped: the model connection failed</p>",
"<span data-short>Conversation, ", "<span data-long>From your conversation, ", ">You</span>", "equipo-ago data-at=", `aria-label="More actions"`,
`href="/conversation?about=` + f.retry + `" data-ask-about>Ask about this</a>`} {
diff --git a/internal/thintest/tasks_contract_test.go b/internal/thintest/tasks_contract_test.go
index b458ceed..5ad5b3d5 100644
--- a/internal/thintest/tasks_contract_test.go
+++ b/internal/thintest/tasks_contract_test.go
@@ -99,7 +99,7 @@ func TestContractTasks(t *testing.T) {
if err != nil {
t.Fatal(err)
}
- if task.Branch != wire.TaskBranch(id, task.Title) || task.Project != "Woodstar" || task.Repo != "amadan.net/oficina/sample" || task.Creator != Owner || len(task.Steps) != 0 {
+ if task.Branch != wire.TaskBranch(id, task.Title) || task.Project != "Sample" || task.Repo != "amadan.net/oficina/sample" || task.Creator != Owner || len(task.Steps) != 0 {
t.Fatalf("task %+v", task)
}
var project wire.Project
@@ -109,7 +109,7 @@ func TestContractTasks(t *testing.T) {
}
})
// Projects are products: named from the catalog, with the repository attached.
- if project.Title != "Woodstar" || len(project.Attachments) != 1 || project.Attachments[0].Ref != "amadan.net/oficina/sample" || task.ProjectID != project.ID {
+ if project.Title != "Sample" || len(project.Attachments) != 1 || project.Attachments[0].Ref != "amadan.net/oficina/sample" || task.ProjectID != project.ID {
t.Fatalf("project %+v", project)
}
diff --git a/internal/thintest/tools_contract_test.go b/internal/thintest/tools_contract_test.go
index 520cab61..1720b6bc 100644
--- a/internal/thintest/tools_contract_test.go
+++ b/internal/thintest/tools_contract_test.go
@@ -680,7 +680,10 @@ func daytime() func() time.Time {
return func() time.Time { return base.Add(time.Since(start)) }
}
-// toolHello is the tool rig's hello (protocol 1).
+// toolHello is the tool rig's hello (protocol 1). The agent reads
+// moonbeam/docs only (a reader grant: catalog, not Repos), so moonbeam is
+// a namespace Equipo knows, and an unreached repository there gets an
+// access card (#48).
func toolHello(generation int64) wire.Hello {
- return wire.Hello{Generation: generation, Repos: []string{"amadan.net/oficina/sample", "amadan.net/oficina/equipo"}, CreateIn: []string{"oficina"}, Agent: "equipo-test", Catalog: []wire.RepoInfo{{Repo: "amadan.net/oficina/sample", DefaultBranch: "main", Summary: "Woodstar is a reading app.", Names: []string{"sample", "Woodstar"}, Hints: []string{"go"}, Gate: "make ci", HeadSHA: strings.Repeat("9", 40), HeadSubject: "Trim the compose sheet"}}, Connections: []wire.HeldConnection{{LocalID: "claude-a", Person: Owner, Provider: "claude", Kind: "subscription", Label: Owner, State: "healthy"}}, Versions: map[string]string{"runner": "test", "claude": "2.1.312"}}
+ return wire.Hello{Generation: generation, Repos: []string{"amadan.net/oficina/sample", "amadan.net/oficina/equipo"}, CreateIn: []string{"oficina"}, Agent: "equipo-test", Catalog: []wire.RepoInfo{{Repo: "amadan.net/oficina/sample", DefaultBranch: "main", Summary: "Woodstar is a reading app.", Names: []string{"sample", "Woodstar"}, Hints: []string{"go"}, Gate: "make ci", HeadSHA: strings.Repeat("9", 40), HeadSubject: "Trim the compose sheet"}, {Repo: "amadan.net/moonbeam/docs", DefaultBranch: "main", Names: []string{"docs"}, Hints: []string{}}}, Connections: []wire.HeldConnection{{LocalID: "claude-a", Person: Owner, Provider: "claude", Kind: "subscription", Label: Owner, State: "healthy"}}, Versions: map[string]string{"runner": "test", "claude": "2.1.312"}}
}
diff --git a/internal/wire/tasks.go b/internal/wire/tasks.go
index 4d3859fe..ff533ea2 100644
--- a/internal/wire/tasks.go
+++ b/internal/wire/tasks.go
@@ -156,6 +156,11 @@ const (
// ChoiceCheck is the answer on an access card: the person granted
// access, so the runner checks its reach now.
ChoiceCheck = "check"
+ // ChoiceNotNeeded marks an access card Equipo resolved itself because
+ // no access was needed: its target was never a repository or
+ // namespace, the agent already reached it, or the turn's task found a
+ // repository the agent reaches. It is never a person's answer.
+ ChoiceNotNeeded = "not_needed"
)
// Bounds for tasks.