oficina / equipo Public

Show deceptive diff characters and wrap every line on Mac

Paul Campbell pushed by claude agent, operated by paul@keymail.dev be92446773ff3c509fbb10246bf46effa7bcf78c parent f0f34d2
19 files changed, +723 −111
  • .rastrillo/budgets.txt +1 −1
  • docs/api/equipo-v1.openapi.json +1 −1
  • docs/superpowers/plans/CONTROLLER-REPORT-changes-diff.md +89 −8
  • internal/diffscan/scan.go +1 −1
  • internal/diffscan/scan_test.go +1 −1
  • internal/equipo/chat/change_diffs_test.go +1 −1
  • internal/runner/thin/change_diffs_test.go +1 −1
  • internal/wire/change_diffs.go +10 −3
  • internal/wire/change_diffs_test.go +27 −6
  • internal/wire/testdata/hidden-codepoints.json +392 −0
  • internal/wire/wireschema/wireschema.go +1 −1
  • native/apple/Sources/EquipoKit/API/ChangeDiff.swift +5 −27
  • native/apple/Sources/EquipoKit/Presentation/ChangedFiles.swift +4 −0
  • native/apple/Sources/EquipoKit/Presentation/VisibleCodeText.swift +31 −0
  • native/apple/Sources/EquipoKit/UI/Screens/ChangeDiffSheet.swift +66 −40
  • native/apple/Sources/EquipoKit/UI/Screens/ChangedFilesList.swift +6 −6
  • native/apple/Sources/EquipoKit/UI/Screens/TaskDetailScreen.swift +1 −1
  • native/apple/Sources/EquipoKit/UI/TaskViewFixture.swift +6 −3
  • native/apple/Tests/EquipoKitTests/ChangeDiffTests.swift +79 −10

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/changes__diff: Type  Size Avail | ext4   96G   86G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type  Size Avail | ext4   96G   86G
ci-box: bwrap: fetched and verified in 0.3s
ci-box: claude: fetched and verified in 2.2s
ci-box: codex: fetched and verified in 4.3s
ci-box: codex-code-mode-host: fetched and verified in 1.5s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.4s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: image pulled in 9.8s
ci-box: pi: installed and verified in 7.4s
ci-box: opencode: installed and verified in 2.2s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 9.0s
ci-box: clone deepened in 4.4s
ci-box: file times set from content: 3144 files, 201 directories
ci-box: ready in 19.0s
=== copy ===
EQUIPO_RELEASE_COPY_CHECK=1 CGO_ENABLED=0 go test ./internal/equipotest -run '^TestReleaseCopyReviewed$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipotest	0.147s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
  4.5s
+ go list -export -test -tags testbuild -f  ./...
  5.1s
+ go list -export -test -tags browser,testbuild -f  ./internal/equipo ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
  3.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-24 15:56:00 +0000 UTC

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

--- FAIL amadan.net/oficina/equipo/internal/headless TestHeadless/4c_rebase
=== RUN   TestHeadless/4c_rebase
time=2026-11-26T17:23:03.174Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-26T17:23:03.174Z level=INFO msg="startup phase done" phase=state_lock took=266µs
time=2026-11-26T17:23:03.174Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-26T17:23:03.174Z level=INFO msg="startup phase done" phase=claim_roots took=105µs
time=2026-11-26T17:23:03.174Z level=INFO msg="startup phase" phase=sweep
time=2026-11-26T17:23:03.216Z level=INFO msg="startup phase done" phase=sweep took=41.73ms
time=2026-11-26T17:23:03.216Z level=INFO msg="startup phase" phase=credentials
time=2026-11-26T17:23:03.216Z level=INFO msg="startup phase done" phase=credentials took=215µs
time=2026-11-26T17:23:03.216Z level=INFO msg="startup phase" phase=open_state
time=2026-11-26T17:23:03.304Z level=INFO msg="startup phase done" phase=open_state took=87.472ms
time=2026-11-26T17:23:03.304Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-26T17:23:03.306Z level=INFO msg=connecting host=127.0.0.1:35155 protocol=34
time=2026-11-26T17:23:03.308Z level=INFO msg=connected host=127.0.0.1:35155 took=1.013ms
time=2026-11-26T17:23:03.308Z level=INFO msg="capabilities gathering"
time=2026-11-26T17:23:03.309Z level=INFO msg="capabilities gathered" took=567µs tags=linux,claude,go
time=2026-11-26T17:23:03.309Z level=INFO msg="hello sent" protocol=34
time=2026-11-26T17:23:03.315Z level=INFO msg=welcome protocol=34 role=primary generation=1
time=2026-11-26T17:23:04.317Z level=INFO msg="connection checked" connection=claude-1 state=healthy
time=2026-11-26T17:23:08.793Z level=INFO msg="kept sessions" kept=1 bytes=2939 expired=0
time=2026-11-26T17:23:14.604Z level=INFO msg="kept sessions" kept=2 bytes=5145 expired=0
    merge_test.go:245: steps [engineering:done checks:passed review:approve merge:merge_conflict engineering:queued], want [engineering:done checks:passed review:approve merge:merge_conflict engineering:done checks:passed review:approve merge:done] (in_progress )
time=2026-11-26T17:23:14.733Z level=WARN msg="step clone" err="signal: killed"
--- FAIL: TestHeadless/4c_rebase (12.10s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m11.272s
FAIL	amadan.net/oficina/equipo/internal/headless	71.539s


receipt: test step 1m13.327s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 0 cached, 0 without tests, 1 failed
receipt: slow package 1m11.272s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m11.27s amadan.net/oficina/equipo/internal/headless TestHeadless
exit status 1
+ go test -tags testbuild -timeout 15m -run '^TestHeadless$/^4c_rebase$|^TestHeadless$/^4b_ask$|^TestHeadless$/^4c_checks_card$|^TestHeadless$/^4_step_crash$' -v -run '^TestHeadless$/^4c_rebase$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestHeadless/4c_rebase headless-work be92446773ff3c509fbb10246bf46effa7bcf78c 12.10s 84.97
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 80.77, cpu waiting 46.12%, memory waiting 0.00%, io waiting 0.87%
--- shard 1 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-review: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadless$/^4_review$|^TestHeadless$/^2b_access$|^TestHeadless$/^runner_crash$|^TestHeadless$/^2b_first_message$|^TestHeadless$/^4_checks_honest$|^TestHeadless$/^7_stream_resume$|^TestHeadless$/^2b_notebook$|^TestHeadless$/^2b_move_in$|^TestHeadless$/^2b_desk_failure$|^TestHeadless$/^cancel$' ./internal/headless

receipt: test step 1m23.673s 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 1m21.603s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m21.6s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 85.36, cpu waiting 46.96%, memory waiting 0.00%, io waiting 1.02%
--- shard 2 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-connections: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadlessConnections$|^TestHeadlessTokenPasteEndToEnd$|^TestHeadlessTokenConnection$' ./internal/headless

receipt: test step 1m24.65s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m22.315s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m11.83s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 5.58s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.91s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 85.36, cpu waiting 46.96%, memory waiting 0.00%, io waiting 1.02%
--- shard 3 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-mac: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestMacWorker$|^TestHeadlessAttachments$|^TestHeadlessPrewarm$|^TestHeadless$/^1_first_token$|^TestHeadless$/^6_quick_messages$|^TestHeadless$/^8_instance_restart$|^TestHeadless$/^3_runner_offline$' ./internal/headless

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

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

receipt: test step 2m53.538s 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 2m51.341s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m42.44s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 19.79s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.13s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 6.72s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
receipt: slow test 6.64s amadan.net/oficina/equipo/internal/headless TestHeadlessBatchAfterRefusedReply
machine: 32 CPUs, load 29.44, cpu waiting 14.75%, memory waiting 0.00%, io waiting 0.22%
--- 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 2m18.836s 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 2m16.387s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 10.02s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.78s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 4.24s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 3.93s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 2.73s amadan.net/oficina/equipo/internal/thintest TestContractTeamUpdatePersonNeeds
machine: 32 CPUs, load 48.36, cpu waiting 25.70%, memory waiting 0.00%, io waiting 0.40%
--- 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
rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/thintest TestContractRetryAccountActions
=== RUN   TestContractRetryAccountActions
    retry_contract_test.go:296: sign in again
--- FAIL: TestContractRetryAccountActions (0.26s)

--- FAIL amadan.net/oficina/equipo/internal/thintest (package output)
FAIL
rastrillo-budget/v1 ran 1m40.984s
FAIL	amadan.net/oficina/equipo/internal/thintest	101.225s


receipt: test step 1m43.132s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 0 cached, 0 without tests, 1 failed
receipt: slow package 1m40.984s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.19s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 5.09s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.56s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 3.01s amadan.net/oficina/equipo/internal/thintest TestContractPausedJob
receipt: slow test 2.41s amadan.net/oficina/equipo/internal/thintest TestContractRetryFailedPreviewAfterMerge
exit status 1
+ go 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)' -v -run '^TestContractRetryAccountActions$' -count=1 ./internal/thintest   (retry, once)
##############################################################################
FLAKE ./internal/thintest:TestContractRetryAccountActions thintest-contract be92446773ff3c509fbb10246bf46effa7bcf78c 0.26s 75.05
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 70.24, cpu waiting 43.57%, memory waiting 0.00%, io waiting 0.71%
--- shard 8 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-thin: ./internal/runner/thin
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./internal/runner/thin
budget note: internal/runner/thin took 5m9.966s, over the 45s its record on line 44 allows; reported only, timing fails on CI

receipt: test step 5m15.569s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 5m9.966s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 37.01s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.94s 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.48s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 10.02s amadan.net/oficina/equipo/internal/runner/thin TestTimeoutKeepsNothingForAnOlderInstance
machine: 32 CPUs, load 3.44, cpu waiting 1.38%, memory waiting 0.00%, io waiting 0.01%
--- 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 53.133s 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 52.037s amadan.net/oficina/equipo/internal/runner
receipt: slow test 32.01s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.02s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 59.52, cpu waiting 35.98%, memory waiting 0.00%, io waiting 1.70%
--- 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 1m7.83s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m6.204s amadan.net/oficina/equipo/internal/runner
receipt: slow test 56.15s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 48.37s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.42s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.6s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 82.09, cpu waiting 45.15%, memory waiting 0.00%, io waiting 1.34%
--- shard 11 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-rest: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$|^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner
cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed

receipt: test step 36.235s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 35.393s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.14s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.27s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 3.14s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 3.05s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestReportPostsRetryExactRequest
machine: 32 CPUs, load 40.93, cpu waiting 21.77%, memory waiting 0.00%, io waiting 2.29%
--- shard 12 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-a started 30s late; cpu waiting 40.7%, load 27.48
test lane equipotest-a: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test[A-D]|^TestQ' ./internal/equipotest

receipt: test step 1m11.258s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m8.695s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 29.69s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 29.66s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 27.3s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 24.31s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 24.14s amadan.net/oficina/equipo/internal/equipotest TestBudgetLoweringBelowUsage
machine: 32 CPUs, load 75.05, cpu waiting 46.02%, memory waiting 0.00%, io waiting 0.76%
--- shard 13 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-e started 30s late; cpu waiting 40.7%, load 27.48
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 1m20.44s 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.344s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 20.98s amadan.net/oficina/equipo/internal/equipotest TestProjectKindsAndDefaultBranch
receipt: slow test 20.97s amadan.net/oficina/equipo/internal/equipotest TestProjectsReopen
receipt: slow test 20.96s amadan.net/oficina/equipo/internal/equipotest TestProjectWritesRequireCurrentOwner
receipt: slow test 20.91s amadan.net/oficina/equipo/internal/equipotest TestProjectOwnersAreMembers
receipt: slow test 20.82s amadan.net/oficina/equipo/internal/equipotest TestProjectBindingUniqueness
machine: 32 CPUs, load 70.24, cpu waiting 41.44%, memory waiting 0.00%, io waiting 0.66%
--- shard 14 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-r started 30s late; cpu waiting 40.7%, load 27.48
test lane equipotest-r: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestR' ./internal/equipotest

receipt: test step 1m20.272s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m14.473s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 18.39s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 13.48s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 10.65s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 10.52s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 7.63s amadan.net/oficina/equipo/internal/equipotest TestRosterBootstrapOnce
machine: 32 CPUs, load 65.98, cpu waiting 41.44%, memory waiting 0.00%, io waiting 0.66%
--- shard 15 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: equipotest-rest started 30s late; cpu waiting 40.7%, load 30.48
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 1m10.354s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m7.875s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 26.82s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 26.13s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 26.07s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 23.94s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsRollbackAndUnavailable
receipt: slow test 23.83s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsCurrentOwner
machine: 32 CPUs, load 75.05, cpu waiting 46.02%, memory waiting 0.00%, io waiting 0.76%
--- shard 16 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: plan3test started 30s late; cpu waiting 40.7%, load 27.48
test lane plan3test: ./internal/plan3test
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./internal/plan3test

receipt: test step 57.093s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 54.727s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 4s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.49s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.69s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.49s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.32s amadan.net/oficina/equipo/internal/plan3test TestInviteMigration
machine: 32 CPUs, load 84.85, cpu waiting 47.10%, memory waiting 0.00%, io waiting 0.96%
--- shard 17 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: rest started 30s late; cpu waiting 40.7%, load 27.48
test lane rest: ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/diffscan ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/door ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/pause ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/push ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/claude/realcli ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/forgekey ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/diffscan ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/door ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/pause ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/push ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/claude/realcli ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/forgekey ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
cache miss: amadan.net/oficina/equipo/internal/copydesk: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/equipo/team: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/forge: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/claude/realcli: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/webread: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runnerproto: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/workspace: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/checks: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/containment: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/opencode: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/runner/provider/pi: its inputs changed
budget note: internal/equipo took 2m30.23s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/chat took 25.873s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/setup took 12.609s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/idtest took 2m0.955s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/release took 40.638s, 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 56.436s, over the 15s its record on line 40 allows; reported only, timing fails on CI
budget note: internal/runner/forge took 27.536s, over the 20s its record on line 35 allows; reported only, timing fails on CI
budget note: internal/runner/provider/claude/realcli took 16.373s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/runner/workspace took 17.203s, over the 10s the default allows; reported only, timing fails on CI

receipt: test step 2m35.16s against a 60s target (the gate's other steps are not in this figure)
receipt: 37 packages ran, 30 cached, 17 without tests, 0 failed
receipt: slow package 2m30.23s amadan.net/oficina/equipo/internal/equipo
receipt: slow package 2m0.955s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 1m14.283s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 1m3.487s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 57.355s amadan.net/oficina/equipo/cmd/equipo-runner
receipt: slow test 55.98s amadan.net/oficina/equipo/internal/idtest TestDoorRemembersOficinaID
receipt: slow test 52.05s amadan.net/oficina/equipo/cmd/equipo-runner TestReleaseRunnerHasNoFakeWorker
receipt: slow test 46.96s amadan.net/oficina/equipo/internal/idtest TestDoorForgetsOficinaIDForARefusedSession
receipt: slow test 46.54s amadan.net/oficina/equipo/internal/idtest TestDoorStepUpIsLocal
receipt: slow test 46.39s amadan.net/oficina/equipo/internal/idtest TestDoorNeverJudgesANativeSession
machine: 32 CPUs, load 23.37, cpu waiting 12.08%, memory waiting 0.00%, io waiting 0.18%
--- shard 18 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-chat: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$' ./internal/headless

receipt: test step 1m27.436s 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 1m25.278s amadan.net/oficina/equipo/internal/headless
receipt: slow test 39.06s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 15.01s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 11.09s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.49s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 6.74s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 84.85, cpu waiting 47.10%, memory waiting 0.00%, io waiting 0.96%
--- shard 19 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-work: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$' ./internal/headless

receipt: test step 1m37.994s 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 1m36.246s amadan.net/oficina/equipo/internal/headless
receipt: slow test 29.56s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 23.89s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 13.58s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 10.6s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
receipt: slow test 9.79s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
machine: 32 CPUs, load 78.71, cpu waiting 46.09%, memory waiting 0.00%, io waiting 0.78%
--- shard 20 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-connections: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless

receipt: test step 1m56.868s 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 1m55.19s amadan.net/oficina/equipo/internal/headless
receipt: slow test 14.82s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 13.75s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 13.54s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 11.48s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsSignInEmail
receipt: slow test 11.47s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
machine: 32 CPUs, load 61.73, cpu waiting 35.37%, memory waiting 0.00%, io waiting 0.56%
--- shard 21 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-rest: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInEmail|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless
rastrillo: budget test: go test failed
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserCopyContinue
=== RUN   TestBrowserCopyContinue
time=2026-11-26T17:22:42.682Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-26T17:22:42.682Z level=INFO msg="startup phase done" phase=state_lock took=246µs
time=2026-11-26T17:22:42.682Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-26T17:22:42.682Z level=INFO msg="startup phase done" phase=claim_roots took=114µs
time=2026-11-26T17:22:42.682Z level=INFO msg="startup phase" phase=sweep
time=2026-11-26T17:22:42.758Z level=INFO msg="startup phase done" phase=sweep took=75.652ms
time=2026-11-26T17:22:42.758Z level=INFO msg="startup phase" phase=credentials
time=2026-11-26T17:22:42.758Z level=INFO msg="startup phase done" phase=credentials took=103µs
time=2026-11-26T17:22:42.758Z level=INFO msg="startup phase" phase=open_state
time=2026-11-26T17:22:42.852Z level=INFO msg="startup phase done" phase=open_state took=93.941ms
time=2026-11-26T17:22:42.856Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-26T17:22:42.856Z level=INFO msg=connecting host=127.0.0.1:42927 protocol=34
time=2026-11-26T17:22:42.859Z level=INFO msg=connected host=127.0.0.1:42927 took=2.36ms
time=2026-11-26T17:22:42.859Z level=INFO msg="capabilities gathering"
time=2026-11-26T17:22:42.860Z level=INFO msg="capabilities gathered" took=1.325ms tags=linux,claude,go
time=2026-11-26T17:22:42.869Z level=INFO msg="hello sent" protocol=34
time=2026-11-26T17:22:42.872Z level=INFO msg=welcome protocol=34 role=primary generation=1
    browser_copy_test.go:90: waiting for !document.querySelector('[data-copy-continue]'): context deadline exceeded (last evaluation: context deadline exceeded)
--- FAIL: TestBrowserCopyContinue (6.47s)

--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m37.071s
FAIL	amadan.net/oficina/equipo/internal/headless	97.275s


receipt: test step 1m38.725s against a 60s target (the gate's other steps are not in this figure)
receipt: 0 packages ran, 0 cached, 0 without tests, 1 failed
receipt: slow package 1m37.071s amadan.net/oficina/equipo/internal/headless
receipt: slow test 14.9s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 11.87s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
receipt: slow test 11.33s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 9.72s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 7.86s amadan.net/oficina/equipo/internal/headless TestBrowserEmptyExplore
exit status 1
+ go test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInEmail|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' -v -run '^TestBrowserCopyContinue$' -count=1 ./internal/headless   (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserCopyContinue browser-headless-rest be92446773ff3c509fbb10246bf46effa7bcf78c 6.47s 75.05
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 75.05, cpu waiting 44.78%, memory waiting 0.00%, io waiting 0.73%
--- shard 22 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-rest: ./internal/equipo
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserPreviewBlocksNavigation|TestBrowserPreviewPassExchange)$' ./internal/equipo

receipt: test step 4.235s 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.465s amadan.net/oficina/equipo/internal/equipo
receipt: slow test 1.86s amadan.net/oficina/equipo/internal/equipo TestBrowserPreviewPassExchange
receipt: slow test 610ms 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.906s, over the 10s the default allows; reported only, timing fails on CI

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

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

receipt: test step 3m44.913s 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 3m42.997s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 25.01s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.43s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12.07s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.75s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 9.15s amadan.net/oficina/equipo/internal/thintest TestBrowserRhythm
machine: 32 CPUs, load 9.15, cpu waiting 4.30%, memory waiting 0.00%, io waiting 0.06%
--- 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   (55s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 4.51s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.30s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 9.32s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 9.23s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 28.78s
+ 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   (62s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 15.20s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 12.22s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 10.53s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 21.50s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless   (22s)
ok ./internal/headless TestMixedVersions 20.10s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks   (2s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.77s
+ 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 78.71, cpu waiting 43.55%, memory waiting 0.00%, io waiting 1.43%
--- shard 24 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
shard 24: make runner-host
python3 scripts/runner-prerequisites.py
CGO_ENABLED=0 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run 'TestDirect|TestProvider|TestCheckSandbox' -count=1 ./internal/runner/provider/... ./internal/runner/checks
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run 'TestDirect|TestProvider|TestCheckSandbox' -count=1 ./internal/runner/provider/... ./internal/runner/checks

receipt: test step 13.841s 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.863s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 269ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 102ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 3ms amadan.net/oficina/equipo/internal/runner/provider/gotoolchain
receipt: slow package 2ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow test 5.56s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.8s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 370ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 270ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxToolchain
CGO_ENABLED=0 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run '^TestNamespace' -count=1 ./internal/runner/containment
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run '^TestNamespace' -count=1 ./internal/runner/containment

receipt: test step 3.709s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 3.263s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 350ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 220ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 130ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryReusedPID
receipt: slow test 120ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryMalformedRecord
machine: 32 CPUs, load 21.07, cpu waiting 11.01%, memory waiting 0.00%, io waiting 3.10%
--- shard 25 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: runner-dead-references started 30s late; cpu waiting 40.7%, load 27.48
shard 25: make runner-dead-references lanes-check build vet fmt-check spacing budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 2856 text files, 3229 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: 93 directories within budget
CGO_ENABLED=0 go test ./internal/equipo -run '^TestMigrationModels$' -count=1
ok  	amadan.net/oficina/equipo/internal/equipo	2.532s
machine: 32 CPUs, load 85.36, cpu waiting 46.99%, memory waiting 0.00%, io waiting 1.06%
--- shard 26 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: staticcheck started 30s late; cpu waiting 40.7%, load 27.48
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 59.52, cpu waiting 35.98%, memory waiting 0.00%, io waiting 1.70%
--- 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 42.6%, load 30.48
shard 27: make govulncheck
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 ./...
=== Symbol Results ===

No vulnerabilities found.

Your code is affected by 0 vulnerabilities.
This scan also found 1 vulnerability in packages you import and 10
vulnerabilities in modules you require, but your code doesn't appear to call
these vulnerabilities.
Use '-show verbose' for more details.
machine: 32 CPUs, load 67.89, cpu waiting 37.65%, memory waiting 0.00%, io waiting 1.64%
--- shard 28 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: gitleaks started 30s late; cpu waiting 40.7%, load 27.48
shard 28: make gitleaks
5:22PM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
5:22PM INF 1209 commits scanned.
5:22PM INF scanned ~67184634 bytes (67.18 MB) in 27.8s
5:22PM INF no leaks found
machine: 32 CPUs, load 67.89, cpu waiting 39.20%, memory waiting 0.00%, io waiting 1.59%
=== 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.099ms, worst 1.223ms, budget 150ms
perf: GET /api/runner/protocol: median 80µs, worst 104µs, budget 150ms
perf: GET /api/v1/account-setups/{id}: median 628µs, worst 660µs, budget 150ms
perf: GET /api/v1/accounts: median 431µs, worst 466µs, budget 150ms
perf: GET /api/v1/auth/devices: median 462µs, worst 485µs, budget 150ms
perf: GET /api/v1/budgets: median 493µs, worst 1.168ms, budget 150ms
perf: GET /api/v1/capabilities: median 507µs, worst 868µs, budget 150ms
perf: GET /api/v1/cards/{id}: median 1.238ms, worst 1.35ms, budget 150ms
perf: GET /api/v1/connections: median 576µs, worst 665µs, budget 150ms
perf: GET /api/v1/connections/{id}: median 536µs, worst 575µs, budget 150ms
perf: GET /api/v1/conversation: median 888µs, worst 911µs, budget 150ms
perf: GET /api/v1/conversation/cards: median 1.488ms, worst 1.571ms, budget 150ms
perf: GET /api/v1/coordinator: median 1.724ms, worst 1.76ms, budget 150ms
perf: GET /api/v1/invites/{id}: median 440µs, worst 472µs, budget 150ms
perf: GET /api/v1/journey: median 9.358ms, worst 9.415ms, budget 150ms
perf: GET /api/v1/me: median 471µs, worst 556µs, budget 150ms
perf: GET /api/v1/me/settings: median 596µs, worst 640µs, budget 150ms
perf: GET /api/v1/needs-you: median 8.987ms, worst 9.193ms, budget 150ms
perf: GET /api/v1/notifications: median 1.626ms, worst 1.67ms, budget 150ms
perf: GET /api/v1/onboarding: median 383µs, worst 414µs, budget 150ms
perf: GET /api/v1/people: median 444µs, worst 478µs, budget 150ms
perf: GET /api/v1/playbooks: median 578µs, worst 626µs, budget 150ms
perf: GET /api/v1/playbooks/{id}: median 508µs, worst 545µs, budget 150ms
perf: GET /api/v1/playbooks/{id}/template-diff: median 849µs, worst 868µs, budget 150ms
perf: GET /api/v1/preferences: median 743µs, worst 826µs, budget 150ms
perf: GET /api/v1/projects/{id}: median 461µs, worst 501µs, budget 150ms
perf: GET /api/v1/projects/{id}/settings: median 595µs, worst 658µs, budget 150ms
perf: GET /api/v1/roster: median 477µs, worst 505µs, budget 150ms
perf: GET /api/v1/runners/{id}: median 413µs, worst 469µs, budget 150ms
perf: GET /api/v1/specialists: median 8.278ms, worst 8.369ms, budget 150ms
perf: GET /api/v1/specialists/{id}: median 8.014ms, worst 8.203ms, budget 150ms
perf: GET /api/v1/specialists/{id}/template-diff: median 844µs, worst 875µs, budget 150ms
perf: GET /api/v1/tasks/{id}/plan: median 1.102ms, worst 1.209ms, budget 150ms
perf: GET /api/v1/tasks/{id}/thread: median 718µs, worst 816µs, budget 150ms
perf: GET /api/v1/teams: median 419µs, worst 443µs, budget 150ms
perf: GET /api/v1/templates: median 593µs, worst 621µs, budget 150ms
perf: GET /api/v1/templates/{id}: median 446µs, worst 486µs, budget 150ms
perf: GET /auth/callback: median 90µs, worst 121µs, budget 150ms
perf: GET /auth/devices/{id}: median 3.989ms, worst 4.051ms, budget 150ms
perf: GET /auth/verify: median 90µs, worst 121µs, budget 150ms
perf: GET /connections: median 4.314ms, worst 4.41ms, budget 150ms
perf: GET /conversation: median 8.586ms, worst 11.422ms, budget 150ms
perf: GET /conversation/connections: median 255µs, worst 305µs, budget 150ms
perf: GET /conversation/notebook: median 249µs, worst 306µs, budget 150ms
perf: GET /conversation/settings: median 4.587ms, worst 4.66ms, budget 150ms
perf: GET /conversation/settings/autonomy: median 4.587ms, worst 4.691ms, budget 150ms
perf: GET /conversation/settings/connections: median 7.236ms, worst 7.444ms, budget 150ms
perf: GET /conversation/settings/connections/add: median 7.267ms, worst 7.319ms, budget 150ms
perf: GET /conversation/settings/copy: median 4.641ms, worst 4.814ms, budget 150ms
perf: GET /conversation/settings/housekeeping: median 4.738ms, worst 4.932ms, budget 150ms
perf: GET /conversation/settings/machines: median 5.301ms, worst 7.174ms, budget 150ms
perf: GET /conversation/settings/machines/add: median 5.164ms, worst 5.327ms, budget 150ms
perf: GET /conversation/settings/notebook: median 3.927ms, worst 4.12ms, budget 150ms
perf: GET /conversation/settings/thinking: median 4.619ms, worst 4.809ms, budget 150ms
perf: GET /housekeeping: median 4.378ms, worst 4.561ms, budget 150ms
perf: GET /invites/new: median 603µs, worst 634µs, budget 150ms
perf: GET /invites/{id}: median 645µs, worst 679µs, budget 150ms
perf: GET /jobs: median 3.948ms, worst 4.062ms, budget 150ms
perf: GET /jobs/{id}: median 5.312ms, worst 5.489ms, budget 150ms
perf: GET /journey: median 11.098ms, worst 11.289ms, budget 150ms
perf: GET /nav/rail: median 3.717ms, worst 5.383ms, budget 150ms
perf: GET /needs-you: median 10.972ms, worst 11.42ms, budget 150ms
perf: GET /onboarding: median 4.63ms, worst 4.676ms, budget 150ms
perf: GET /people: median 4.014ms, worst 4.168ms, budget 150ms
perf: GET /playbook-suggestions/{suggestion}: median 5.261ms, worst 5.374ms, budget 150ms
perf: GET /playbooks: median 4.779ms, worst 4.982ms, budget 150ms
perf: GET /playbooks/new: median 4.949ms, worst 5.033ms, budget 150ms
perf: GET /playbooks/{id}: median 5.367ms, worst 5.554ms, budget 150ms
perf: GET /playbooks/{id}/edit: median 5.36ms, worst 5.595ms, budget 150ms
perf: GET /playbooks/{id}/template-diff: median 4.63ms, worst 4.762ms, budget 150ms
perf: GET /preferences: median 4.895ms, worst 5.018ms, budget 150ms
perf: GET /preferences/sources/{source}: median 4.682ms, worst 4.787ms, budget 150ms
perf: GET /projects: median 6.408ms, worst 6.645ms, budget 150ms
perf: GET /projects/accounts: median 4.185ms, worst 4.303ms, budget 150ms
perf: GET /projects/new: median 4.289ms, worst 4.362ms, budget 150ms
perf: GET /projects/{id}: median 10.994ms, worst 11.212ms, budget 150ms
perf: GET /projects/{id}/edit: median 4.223ms, worst 4.381ms, budget 150ms
perf: GET /runners/enrol: median 5.001ms, worst 5.091ms, budget 150ms
perf: GET /settings: median 3.93ms, worst 4.025ms, budget 150ms
perf: GET /settings/coordinator: median 6.42ms, worst 8.284ms, budget 150ms
perf: GET /settings/devices: median 3.953ms, worst 4.052ms, budget 150ms
perf: GET /settings/recovery: median 4.066ms, worst 4.133ms, budget 150ms
perf: GET /settings/recovery/release: median 4.055ms, worst 4.118ms, budget 150ms
perf: GET /settings/thinking: median 259µs, worst 293µs, budget 150ms
perf: GET /signed-out: median 271µs, worst 291µs, budget 150ms
perf: GET /signin: median 274µs, worst 306µs, budget 150ms
perf: GET /specialists/new: median 4.048ms, worst 4.12ms, budget 150ms
perf: GET /specialists/{key}: median 11.451ms, worst 11.545ms, budget 150ms
perf: GET /specialists/{key}/edit: median 4.165ms, worst 4.359ms, budget 150ms
perf: GET /specialists/{key}/template-diff: median 4.228ms, worst 4.356ms, budget 150ms
perf: GET /tasks: median 6.342ms, worst 6.574ms, budget 150ms
perf: GET /tasks/new: median 3.865ms, worst 3.954ms, budget 150ms
perf: GET /tasks/{id}: median 6.385ms, worst 9.211ms, budget 150ms
perf: GET /tasks/{id}/merge: median 5.536ms, worst 5.601ms, budget 150ms
perf: GET /tasks/{id}/move: median 5.339ms, worst 5.543ms, budget 150ms
perf: GET /tasks/{id}/plan: median 6.499ms, worst 6.761ms, budget 150ms
perf: GET /tasks/{id}/preview: median 1.685ms, worst 1.779ms, budget 150ms
perf: GET /tasks/{id}/questions/{question}: median 5.725ms, worst 6.016ms, budget 150ms
perf: GET /tasks/{id}/rendered-change: median 5.356ms, worst 5.487ms, budget 150ms
perf: GET /tasks/{id}/rendered-change/{hash}.png: median 4.874ms, worst 4.947ms, budget 150ms
perf: GET /tasks/{id}/thread: median 8.655ms, worst 8.75ms, budget 150ms
perf: GET /team/{specialist}: median 5.072ms, worst 5.303ms, budget 150ms
perf: GET /teams: median 10.8ms, worst 11.098ms, budget 150ms
perf: GET /templates: median 3.997ms, worst 4.118ms, budget 150ms
perf: GET /usage: median 4.915ms, worst 5.051ms, budget 150ms
perf: GET /work: median 3.651ms, worst 3.727ms, 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 164ms of [161.927055ms 164.099249ms 164.237589ms], budget 500ms

receipt: test step 52.203s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 89 without tests, 0 failed
receipt: slow package 10.629s amadan.net/oficina/equipo/internal/equipotest
receipt: slow package 1ms amadan.net/oficina/equipo/internal/stagingtest
receipt: slow package 1ms amadan.net/oficina/equipo/internal/wire/wireschema
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo
receipt: slow package 0s amadan.net/oficina/equipo/cmd/equipo-runner
receipt: slow test 10.08s amadan.net/oficina/equipo/internal/equipotest TestPerfScreens
receipt: slow test 540ms amadan.net/oficina/equipo/internal/equipotest TestPerfBoot
=== cache ===
ci-box: build cache /home/ci/work/repos/oficina__equipo/cache/go-build: 4.03 GiB in 26631 files
ci-box: module cache /home/ci/work/repos/oficina__equipo/cache/go-mod: 1.25 GiB in 41706 files
ci-box: build cache over 4.0 GiB: dropped 1.13 GiB this job did not read, kept 2.91 GiB
diff --git a/.rastrillo/budgets.txt b/.rastrillo/budgets.txt
index 80d008d4..8887a4ce 100644
--- a/.rastrillo/budgets.txt
+++ b/.rastrillo/budgets.txt
@@ -15,7 +15,7 @@ time internal/equipo/team 60s Plan 3 loaded CI measured 45.985s; niced serial re
time internal/equipotest 300s Final fix package rerun measured 187.035s (review 172.4s); 300s gives 60 percent headroom for HTTP, sandbox, authority and final regression coverage.
size internal/equipo 23248 - Preview grants, Retry/timeline, no-access merges, kept timed-out work, and reviewed check-db operator copy; measured 23248 source lines (2026-11-26).
-size internal/wire 7528 - Protocol 34 display diffs and hidden-character flag, alongside 31 facts and 32 unfinished work; measured 7528 source lines.
+size internal/wire 7535 - Protocol 34 diffs and complete hidden-scalar detection, alongside 31 facts and 32 unfinished work; measured 7535 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).
diff --git a/docs/api/equipo-v1.openapi.json b/docs/api/equipo-v1.openapi.json
index 5df3408e..efc04aa2 100644
--- a/docs/api/equipo-v1.openapi.json
+++ b/docs/api/equipo-v1.openapi.json
@@ -24527,7 +24527,7 @@
},
"hidden_characters": {
"type": "boolean",
- "description": "True when patch contains Unicode format characters (including bidi controls, marks, isolates and zero-width characters). Native shows visible code-point markers; patch bytes are preserved."
+ "description": "True when patch contains Unicode Cf, Default_Ignorable_Code_Point, U+2028/U+2029, or Cc except TAB and LF. Native shows visible code-point markers; LF remains structural and patch bytes are preserved."
}
},
"required": [
diff --git a/docs/superpowers/plans/CONTROLLER-REPORT-changes-diff.md b/docs/superpowers/plans/CONTROLLER-REPORT-changes-diff.md
index ce1c04c3..94b2c2fb 100644
--- a/docs/superpowers/plans/CONTROLLER-REPORT-changes-diff.md
+++ b/docs/superpowers/plans/CONTROLLER-REPORT-changes-diff.md
@@ -1,7 +1,7 @@
# Changed files: bounded per-file diffs
Implemented on `changes/diff`, based on main 70e4880 with a normal merge.
-The controller approved the design and protocol 32 on 2026-11-26.
+The controller approved the design on 2026-11-26; the final diff protocol is 34.
## Decisions
@@ -33,7 +33,7 @@ Only focused tests run locally because the shared Mac is loaded.
## Result
-Protocol 32 transports complete bounded file patches separately from task views.
+Protocol 34 transports complete bounded file patches separately from task views.
The instance checks runner, person, task, step, attempt, base, candidate, digest,
path, byte count and collection binding, and scans before storing. Only a
matching accepted Engineering report publishes the collection. Device reads
@@ -204,10 +204,10 @@ Main had meanwhile shipped unfinished-work capability 32, and the controller
reserved 33 for the open Assistant attachments branch. The controller allocated
`ProtocolChangeDiffs = 34`. Diff references and frames are stripped/refused for
32 and 33, with frozen StepReport key sets and unfinished-work semantics tested.
-Historical protocol-32 references earlier in this report describe the first
-implementation; the final diff capability is 34. At landing, the controller
-must decide whether Assistant attachments has landed or whether to retain the
-gap. No code from that open branch was merged.
+The controller will not land or release this branch before
+`design/assistant-attachments` (protocol 33) lands. If that branch stalls, the
+controller will coordinate renumbering. Keep 34 meanwhile. No code from that
+open branch was merged.
The instance computes `hidden_characters` from every Unicode Cf code point on
the returned patch. This covers bidi controls, marks, isolates, zero-width
@@ -215,8 +215,9 @@ characters and other format characters. Patch bytes and collection hashes stay
unchanged; this is a device response field, not runner-supplied authority.
Native also detects the characters locally for older responses. It shows the
approved notice and renders each character as a highlighted code-point marker.
-Mac lines display at most 2,000 Unicode scalars plus an ellipsis, bounding even
-one pathological grapheme cluster; Copy retains the full original patch.
+The initial Mac cap and original-byte Copy described by this review have been
+replaced by the second-review fixes below. Both platforms now wrap all text,
+and Copy contains the displayed markers.
The new notice is `native.diff.hidden_characters`: “This file contains hidden
characters that can change how code reads. They are shown as codes.” Approved
@@ -265,3 +266,83 @@ CI at `daeedf1e` found the device schema's new flag did not match the generated
contract: the always-emitted bool must be required, and its description belongs
in `wireschema` as well as the generated document. Both are corrected. The
focused `TestPersonAPIDeviceContract` is now included in local validation.
+
+## Second Fable review: visible characters and complete Mac text
+
+The Go flag and native presentation now cover every Cf and
+Default_Ignorable_Code_Point, U+2028/U+2029, and every Cc except TAB and LF.
+The controller explicitly keeps LF structural. CR is marked, including in
+CRLF files; that case also displays the approved hidden-character notice.
+NUL remains refused by patch validation, and is still covered by the display
+predicate. Original patch bytes, path acceptance and merge authority do not change.
+
+`internal/wire/testdata/hidden-codepoints.json` is consumed by Go and Swift:
+65 ranges, 4,422 code-point cases including visible/structural negative cases.
+Its Cf and Default_Ignorable ranges come from Unicode 17's
+[UnicodeData](https://www.unicode.org/Public/17.0.0/ucd/UnicodeData.txt) and
+[DerivedCoreProperties](https://www.unicode.org/Public/17.0.0/ucd/DerivedCoreProperties.txt).
+The fixture includes all default-ignorable ranges, including unassigned points,
+Hangul fillers, CGJ, variation selectors and tags. The Go union of Cf,
+Other_Default_Ignorable_Code_Point and Variation_Selector covers the same set;
+Swift uses its scalar properties. Tests also pin Cf characters excluded from
+Default_Ignorable_Code_Point, so dropping either class fails.
+
+Mac now uses selectable NSTextView with character wrapping in the vertical
+scroll view. There is no line truncation and no horizontal scroll requirement.
+The layout regression measures the real text container at widths 240, 560 and
+800, with 2,000 spaces before `evil()`, and verifies those glyphs are inside the
+view's measured bounds. A separate 60,000-character line keeps its trailing code.
+Rendering and whole-file Copy use the same visible text, including marker codes
+and actual LF separators. The Copy button remains outside the patch and copies
+the whole displayed file; native selection also copies only visible text.
+File rows, folder headers, rename sources, accessibility labels and the sheet
+header use the same escaping. Request URLs still use the original validated path.
+
+The CRLF regression exposed another issue: Swift Character treats CRLF as one
+grapheme, so the old suffix check rejected it and the line counter missed it.
+Both now inspect Unicode scalars, matching Go. CRLF is accepted within the bounds,
+renders `⟨U+000D⟩` before each real line break, and counts toward the 2,000-line cap.
+The scanner now also withholds empty-username password URLs such as
+`redis://:secret@host`; runner collection and instance acceptance tests cover it.
+No new copy was introduced.
+
+Test-first evidence (logs in `site/build/slice5b/validation-review2/`):
+
+- `GOMAXPROCS=2 GOTOOLCHAIN=go1.26.11 CGO_ENABLED=0 go test -p 1 ./internal/wire ./internal/diffscan -run 'TestPatchHiddenCharacters|TestEmbeddedPasswordURL' -count=1` failed for missing scalar classes and the empty username, then passed.
+- `swift test --package-path native/apple --jobs 2 --filter ChangeDiffTests` failed for missing markers, raw Copy and lost trailing code. The added CRLF test separately failed three assertions before its fix.
+- Restored `swift test --package-path native/apple --jobs 2 --filter 'ChangeDiffTests|ChangeFilesTests'`: 21 tests passed.
+- Focused wire, scanner, chat, device route and generated OpenAPI contract tests passed, as did the runner credential/URL withholding test.
+- String parity (334 web strings), catalog checks, API/Markdown fixtures, Oficina ID and sign-in lifetime checks passed. Mac and iPhone builds use two jobs. Full local suites remain deferred under the loaded-Mac ruling; Linux CI is the full gate.
+- `make fmt-check budget copy-release-check` passed. Wire's measured source count is 7,535; no time budget was raised.
+
+All 19 deliberate mutations failed at runtime, then were restored:
+
+1. Go Cf detection removed.
+2. Go Other_Default_Ignorable detection removed.
+3. Go Variation_Selector detection removed.
+4. Go Cc detection removed.
+5. Go U+2028 detection removed.
+6. Go U+2029 detection removed.
+7. Empty URL username refused by the password detector's pattern.
+8. Native Cf detection removed.
+9. Native Default_Ignorable detection removed.
+10. Native Cc detection removed.
+11. Native U+2028 detection removed.
+12. Native U+2029 detection removed.
+13. Copy returns original hidden bytes.
+14. File name rendering returns raw paths.
+15. Rename source rendering returns raw paths.
+16. Display cuts a line at 2,000 characters.
+17. Character wrapping replaced by clipping.
+18. CRLF line counting reverted to Character iteration.
+19. CRLF suffix validation reverted to Character suffix matching.
+
+The mutation runner, exact commands and per-mutation logs are archived with the
+validation evidence. Protocol remains 34. The controller will land/release only
+after Assistant attachments 33 lands, or coordinate a separate renumbering.
+
+Visual evidence was recaptured from this branch: `iphone-hidden-characters.png`,
+`mac-hidden-characters.png`, `mac-hidden-filenames.png`, and `mac-long-line.png`
+in `site/build/slice5b/`. The long-line capture visibly includes `evil()` after
+2,000 spaces. All were inspected. The owned simulator was terminated, shut down
+and deleted, and the Mac fixture apps were closed after capture.
diff --git a/internal/diffscan/scan.go b/internal/diffscan/scan.go
index 2958e73a..54a8873d 100644
--- a/internal/diffscan/scan.go
+++ b/internal/diffscan/scan.go
@@ -25,7 +25,7 @@ import (
func init() { logging.Logger = zerolog.Nop() }
// Cheap whole-file refusal for URL userinfo containing a nonempty password.
-var passwordURL = regexp.MustCompile(`[A-Za-z][A-Za-z0-9+.-]*://[^\s/:@]+:[^\s/@]+@[^\s/]+`)
+var passwordURL = regexp.MustCompile(`[A-Za-z][A-Za-z0-9+.-]*://[^\s/:@]*:[^\s/@]+@[^\s/]+`)
var privateHeader = regexp.MustCompile(`-----BEGIN [A-Z ]*PRIVATE KEY-----`)
diff --git a/internal/diffscan/scan_test.go b/internal/diffscan/scan_test.go
index d33e7abb..71cb5f3b 100644
--- a/internal/diffscan/scan_test.go
+++ b/internal/diffscan/scan_test.go
@@ -38,7 +38,7 @@ func TestScanClosed(t *testing.T) {
}
func TestEmbeddedPasswordURL(t *testing.T) {
- for _, value := range []string{"https://reader:tiny@repo.example.test/path", "postgres://app:p%40ss@db.example.test/main", "custom+scheme://user:password@host"} {
+ for _, value := range []string{"https://reader:tiny@repo.example.test/path", "postgres://app:p%40ss@db.example.test/main", "custom+scheme://user:password@host", "redis://:secret@host"} {
if Check(context.Background(), value, nil) != wire.DiffWithheld {
t.Fatal("embedded password accepted")
}
diff --git a/internal/equipo/chat/change_diffs_test.go b/internal/equipo/chat/change_diffs_test.go
index 79e09913..0af8426d 100644
--- a/internal/equipo/chat/change_diffs_test.go
+++ b/internal/equipo/chat/change_diffs_test.go
@@ -36,7 +36,7 @@ func TestChangeDiffUploadBinding(t *testing.T) {
"total": func(v *wire.ChangeDiffUpload, _ *Lease) { v.Total = 201 },
"path": func(v *wire.ChangeDiffUpload, _ *Lease) { v.Path = "../secret" },
"password-url": func(v *wire.ChangeDiffUpload, _ *Lease) {
- p := "+https://user:tiny@host.example.test/path\n"
+ p := "+redis://:secret@host.example.test/path\n"
v.Data = base64.StdEncoding.EncodeToString([]byte(p))
v.Size = len(p)
v.SHA256 = wire.DiffDigest([]byte(p))
diff --git a/internal/runner/thin/change_diffs_test.go b/internal/runner/thin/change_diffs_test.go
index fb00465c..62651e85 100644
--- a/internal/runner/thin/change_diffs_test.go
+++ b/internal/runner/thin/change_diffs_test.go
@@ -191,7 +191,7 @@ func TestQueueDiffWithholdsOwnForgeCredentials(t *testing.T) {
base := git("rev-parse", "HEAD")
writeFile(t, dir, "api.txt", "api-canary\n")
writeFile(t, dir, "git.txt", "git-canary\n")
- writeFile(t, dir, "password.txt", "https://user:tiny@repo.example.test/path\n")
+ writeFile(t, dir, "password.txt", "redis://:secret@repo.example.test/path\n")
git("add", "-A")
git("commit", "-qm", "credentials")
facts := changeFiles(context.Background(), "/usr/bin/git", filepath.Join(dir, ".git"), base, git("rev-parse", "HEAD"))
diff --git a/internal/wire/change_diffs.go b/internal/wire/change_diffs.go
index b6836712..8ced5ba0 100644
--- a/internal/wire/change_diffs.go
+++ b/internal/wire/change_diffs.go
@@ -83,8 +83,15 @@ func DiffDigest(data []byte) string { sum := sha256.Sum256(data); return hex.Enc
// The collection hash binds ordering, paths, refusals and every patch byte.
func DiffCollection(files []FileDiff) string { raw, _ := json.Marshal(files); return DiffDigest(raw) }
-// PatchHasHiddenCharacters flags every Unicode format character, including
-// bidi controls, marks, isolates and zero-width characters. Bytes stay intact.
+// PatchHasHiddenCharacters flags deceptive scalars without changing patch bytes.
+// Cf and DICP follow Unicode DerivedCoreProperties; LF and TAB stay structural.
func PatchHasHiddenCharacters(patch string) bool {
- return strings.ContainsFunc(patch, func(r rune) bool { return unicode.Is(unicode.Cf, r) })
+ return strings.ContainsFunc(patch, func(r rune) bool {
+ // DICP is Other_Default_Ignorable + Cf + Variation_Selector minus
+ // exceptions that are already Cf. We deliberately include every Cf.
+ // LF is structural; TAB is allowed whitespace. CR remains visible.
+ return unicode.Is(unicode.Cf, r) || unicode.Is(unicode.Other_Default_Ignorable_Code_Point, r) ||
+ unicode.Is(unicode.Variation_Selector, r) ||
+ (unicode.Is(unicode.Cc, r) && r != '\t' && r != '\n') || r == '\u2028' || r == '\u2029'
+ })
}
diff --git a/internal/wire/change_diffs_test.go b/internal/wire/change_diffs_test.go
index 64d34479..a9ebe5a2 100644
--- a/internal/wire/change_diffs_test.go
+++ b/internal/wire/change_diffs_test.go
@@ -4,6 +4,8 @@ import (
"amadan.net/oficina/equipo/internal/wire"
"encoding/json"
"errors"
+ "os"
+ "strconv"
"strings"
"testing"
)
@@ -79,14 +81,33 @@ func TestDisplayBoundsContract(t *testing.T) {
}
}
+// Unicode 17 Cf and Default_Ignorable_Code_Point ranges are shared with native.
func TestPatchHiddenCharacters(t *testing.T) {
- for _, r := range []rune{'\u202a', '\u202b', '\u202c', '\u202d', '\u202e', '\u2066', '\u2067', '\u2068', '\u2069', '\u200e', '\u200f', '\u061c', '\u200b', '\u200c', '\u200d', '\u2060', '\ufeff', '\u00ad'} {
- if !wire.PatchHasHiddenCharacters("+safe" + string(r) + "code\n") {
- t.Fatalf("missed U+%04X", r)
- }
+ data, err := os.ReadFile("testdata/hidden-codepoints.json")
+ if err != nil {
+ t.Fatal(err)
+ }
+ var cases []struct {
+ First, Last, Kind string
+ Hidden bool
}
- if wire.PatchHasHiddenCharacters("+日本語 café\t🙂\n") {
- t.Fatal("visible text flagged")
+ if err = json.Unmarshal(data, &cases); err != nil {
+ t.Fatal(err)
+ }
+ for _, c := range cases {
+ first, err := strconv.ParseInt(c.First, 16, 32)
+ if err != nil {
+ t.Fatal(err)
+ }
+ last, err := strconv.ParseInt(c.Last, 16, 32)
+ if err != nil {
+ t.Fatal(err)
+ }
+ for r := rune(first); r <= rune(last); r++ {
+ if got := wire.PatchHasHiddenCharacters("+safe" + string(r) + "code\n"); got != c.Hidden {
+ t.Errorf("%s U+%04X: hidden = %v, want %v", c.Kind, r, got, c.Hidden)
+ }
+ }
}
}
diff --git a/internal/wire/testdata/hidden-codepoints.json b/internal/wire/testdata/hidden-codepoints.json
new file mode 100644
index 00000000..4716a73f
--- /dev/null
+++ b/internal/wire/testdata/hidden-codepoints.json
@@ -0,0 +1,392 @@
+[
+ {
+ "first": "00AD",
+ "last": "00AD",
+ "kind": "Default_Ignorable_Code_Point",
+ "hidden": true
+ },
+ {
+ "first": "034F",
+ "last": "034F",
+ "kind": "Default_Ignorable_Code_Point",
+ "hidden": true
+ },
+ {
+ "first": "061C",
+ "last": "061C",
+ "kind": "Default_Ignorable_Code_Point",
+ "hidden": true
+ },
+ {
+ "first": "115F",
+ "last": "1160",
+ "kind": "Default_Ignorable_Code_Point",
+ "hidden": true
+ },
+ {
+ "first": "17B4",
+ "last": "17B5",
+ "kind": "Default_Ignorable_Code_Point",
+ "hidden": true
+ },
+ {
+ "first": "180B",
+ "last": "180D",
+ "kind": "Default_Ignorable_Code_Point",
+ "hidden": true
+ },
+ {
+ "first": "180E",
+ "last": "180E",
+ "kind": "Default_Ignorable_Code_Point",
+ "hidden": true
+ },
+ {
+ "first": "180F",
+ "last": "180F",
+ "kind": "Default_Ignorable_Code_Point",
+ "hidden": true
+ },
+ {
+ "first": "200B",
+ "last": "200F",
+ "kind": "Default_Ignorable_Code_Point",
+ "hidden": true
+ },
+ {
+ "first": "202A",
+ "last": "202E",
+ "kind": "Default_Ignorable_Code_Point",
+ "hidden": true
+ },
+ {
+ "first": "2060",
+ "last": "2064",
+ "kind": "Default_Ignorable_Code_Point",
+ "hidden": true
+ },
+ {
+ "first": "2065",
+ "last": "2065",
+ "kind": "Default_Ignorable_Code_Point",
+ "hidden": true
+ },
+ {
+ "first": "2066",
+ "last": "206F",
+ "kind": "Default_Ignorable_Code_Point",
+ "hidden": true
+ },
+ {
+ "first": "3164",
+ "last": "3164",
+ "kind": "Default_Ignorable_Code_Point",
+ "hidden": true
+ },
+ {
+ "first": "FE00",
+ "last": "FE0F",
+ "kind": "Default_Ignorable_Code_Point",
+ "hidden": true
+ },
+ {
+ "first": "FEFF",
+ "last": "FEFF",
+ "kind": "Default_Ignorable_Code_Point",
+ "hidden": true
+ },
+ {
+ "first": "FFA0",
+ "last": "FFA0",
+ "kind": "Default_Ignorable_Code_Point",
+ "hidden": true
+ },
+ {
+ "first": "FFF0",
+ "last": "FFF8",
+ "kind": "Default_Ignorable_Code_Point",
+ "hidden": true
+ },
+ {
+ "first": "1BCA0",
+ "last": "1BCA3",
+ "kind": "Default_Ignorable_Code_Point",
+ "hidden": true
+ },
+ {
+ "first": "1D173",
+ "last": "1D17A",
+ "kind": "Default_Ignorable_Code_Point",
+ "hidden": true
+ },
+ {
+ "first": "E0000",
+ "last": "E0000",
+ "kind": "Default_Ignorable_Code_Point",
+ "hidden": true
+ },
+ {
+ "first": "E0001",
+ "last": "E0001",
+ "kind": "Default_Ignorable_Code_Point",
+ "hidden": true
+ },
+ {
+ "first": "E0002",
+ "last": "E001F",
+ "kind": "Default_Ignorable_Code_Point",
+ "hidden": true
+ },
+ {
+ "first": "E0020",
+ "last": "E007F",
+ "kind": "Default_Ignorable_Code_Point",
+ "hidden": true
+ },
+ {
+ "first": "E0080",
+ "last": "E00FF",
+ "kind": "Default_Ignorable_Code_Point",
+ "hidden": true
+ },
+ {
+ "first": "E0100",
+ "last": "E01EF",
+ "kind": "Default_Ignorable_Code_Point",
+ "hidden": true
+ },
+ {
+ "first": "E01F0",
+ "last": "E0FFF",
+ "kind": "Default_Ignorable_Code_Point",
+ "hidden": true
+ },
+ {
+ "first": "0000",
+ "last": "0008",
+ "kind": "Cc",
+ "hidden": true
+ },
+ {
+ "first": "000B",
+ "last": "001F",
+ "kind": "Cc",
+ "hidden": true
+ },
+ {
+ "first": "007F",
+ "last": "009F",
+ "kind": "Cc",
+ "hidden": true
+ },
+ {
+ "first": "2028",
+ "last": "2029",
+ "kind": "separator",
+ "hidden": true
+ },
+ {
+ "first": "0009",
+ "last": "0009",
+ "kind": "visible or structural",
+ "hidden": false
+ },
+ {
+ "first": "000A",
+ "last": "000A",
+ "kind": "visible or structural",
+ "hidden": false
+ },
+ {
+ "first": "0020",
+ "last": "0020",
+ "kind": "visible or structural",
+ "hidden": false
+ },
+ {
+ "first": "0041",
+ "last": "0041",
+ "kind": "visible or structural",
+ "hidden": false
+ },
+ {
+ "first": "0301",
+ "last": "0301",
+ "kind": "visible or structural",
+ "hidden": false
+ },
+ {
+ "first": "65E5",
+ "last": "65E5",
+ "kind": "visible or structural",
+ "hidden": false
+ },
+ {
+ "first": "1F642",
+ "last": "1F642",
+ "kind": "visible or structural",
+ "hidden": false
+ },
+ {
+ "first": "115E",
+ "last": "115E",
+ "kind": "visible or structural",
+ "hidden": false
+ },
+ {
+ "first": "1161",
+ "last": "1161",
+ "kind": "visible or structural",
+ "hidden": false
+ },
+ {
+ "first": "3163",
+ "last": "3163",
+ "kind": "visible or structural",
+ "hidden": false
+ },
+ {
+ "first": "3165",
+ "last": "3165",
+ "kind": "visible or structural",
+ "hidden": false
+ },
+ {
+ "first": "FFEF",
+ "last": "FFEF",
+ "kind": "visible or structural",
+ "hidden": false
+ },
+ {
+ "first": "E1000",
+ "last": "E1000",
+ "kind": "visible or structural",
+ "hidden": false
+ },
+ {
+ "first": "00AD",
+ "last": "00AD",
+ "kind": "Cf",
+ "hidden": true
+ },
+ {
+ "first": "0600",
+ "last": "0605",
+ "kind": "Cf",
+ "hidden": true
+ },
+ {
+ "first": "061C",
+ "last": "061C",
+ "kind": "Cf",
+ "hidden": true
+ },
+ {
+ "first": "06DD",
+ "last": "06DD",
+ "kind": "Cf",
+ "hidden": true
+ },
+ {
+ "first": "070F",
+ "last": "070F",
+ "kind": "Cf",
+ "hidden": true
+ },
+ {
+ "first": "0890",
+ "last": "0891",
+ "kind": "Cf",
+ "hidden": true
+ },
+ {
+ "first": "08E2",
+ "last": "08E2",
+ "kind": "Cf",
+ "hidden": true
+ },
+ {
+ "first": "180E",
+ "last": "180E",
+ "kind": "Cf",
+ "hidden": true
+ },
+ {
+ "first": "200B",
+ "last": "200F",
+ "kind": "Cf",
+ "hidden": true
+ },
+ {
+ "first": "202A",
+ "last": "202E",
+ "kind": "Cf",
+ "hidden": true
+ },
+ {
+ "first": "2060",
+ "last": "2064",
+ "kind": "Cf",
+ "hidden": true
+ },
+ {
+ "first": "2066",
+ "last": "206F",
+ "kind": "Cf",
+ "hidden": true
+ },
+ {
+ "first": "FEFF",
+ "last": "FEFF",
+ "kind": "Cf",
+ "hidden": true
+ },
+ {
+ "first": "FFF9",
+ "last": "FFFB",
+ "kind": "Cf",
+ "hidden": true
+ },
+ {
+ "first": "110BD",
+ "last": "110BD",
+ "kind": "Cf",
+ "hidden": true
+ },
+ {
+ "first": "110CD",
+ "last": "110CD",
+ "kind": "Cf",
+ "hidden": true
+ },
+ {
+ "first": "13430",
+ "last": "1343F",
+ "kind": "Cf",
+ "hidden": true
+ },
+ {
+ "first": "1BCA0",
+ "last": "1BCA3",
+ "kind": "Cf",
+ "hidden": true
+ },
+ {
+ "first": "1D173",
+ "last": "1D17A",
+ "kind": "Cf",
+ "hidden": true
+ },
+ {
+ "first": "E0001",
+ "last": "E0001",
+ "kind": "Cf",
+ "hidden": true
+ },
+ {
+ "first": "E0020",
+ "last": "E007F",
+ "kind": "Cf",
+ "hidden": true
+ }
+]
diff --git a/internal/wire/wireschema/wireschema.go b/internal/wire/wireschema/wireschema.go
index 50a72110..aca08ebe 100644
--- a/internal/wire/wireschema/wireschema.go
+++ b/internal/wire/wireschema/wireschema.go
@@ -463,7 +463,7 @@ func (g *gen) fields(t reflect.Type, name string, props *ordered, required *[]st
g.enums[name+"."+key] = true
}
if name == "ChangeDiff" && key == "hidden_characters" {
- s.set("description", "True when patch contains Unicode format characters (including bidi controls, marks, isolates and zero-width characters). Native shows visible code-point markers; patch bytes are preserved.")
+ s.set("description", "True when patch contains Unicode Cf, Default_Ignorable_Code_Point, U+2028/U+2029, or Cc except TAB and LF. Native shows visible code-point markers; LF remains structural and patch bytes are preserved.")
}
if name == "ChangeDiff" && key == "patch" {
s.set("maxLength", wire.MaxFileDiffBytes)
diff --git a/native/apple/Sources/EquipoKit/API/ChangeDiff.swift b/native/apple/Sources/EquipoKit/API/ChangeDiff.swift
index 49d6936a..6dc0350c 100644
--- a/native/apple/Sources/EquipoKit/API/ChangeDiff.swift
+++ b/native/apple/Sources/EquipoKit/API/ChangeDiff.swift
@@ -14,16 +14,16 @@ struct ChangeDiff: Codable, Sendable, Equatable {
var truncated: Bool
var hiddenCharacters: Bool? = nil
- var hasHiddenCharacters: Bool { hiddenCharacters == true || (patch ?? "").unicodeScalars.contains { $0.properties.generalCategory == .format } }
+ var hasHiddenCharacters: Bool { hiddenCharacters == true || (patch ?? "").unicodeScalars.contains(where: VisibleCodeText.isHidden) }
var hiddenCharactersNotice: String? { hasHiddenCharacters ? EquipoStrings.text("native.diff.hidden_characters") : nil }
- var copyText: String { patch ?? "" }
+ var copyText: String { VisibleCodeText.display(patch ?? "") }
var isValid: Bool {
guard !taskId.isEmpty, !stepId.isEmpty, attempt > 0,
(base.isEmpty || ThinChangeFiles.commit(base)), ThinChangeFiles.commit(candidateSha),
ThinChangeFiles.path(path), ["added", "modified", "deleted", "renamed"].contains(status),
(patch ?? "").utf8.count <= 64 * 1024, !(patch ?? "").contains("\0"),
- (patch ?? "").filter({ $0 == "\n" }).count <= 2000 else { return false }
+ (patch ?? "").unicodeScalars.filter({ $0 == "\n" }).count <= 2000 else { return false }
if status == "renamed" {
guard let oldPath, ThinChangeFiles.path(oldPath), oldPath != path else { return false }
} else if oldPath != nil { return false }
@@ -31,35 +31,13 @@ struct ChangeDiff: Codable, Sendable, Equatable {
return ["binary", "too_large", "withheld", "unavailable", "expired"].contains(reason)
&& (patch ?? "").isEmpty && !truncated
}
- return (patch ?? "").isEmpty || patch?.hasSuffix("\n") == true
+ return (patch ?? "").isEmpty || patch?.unicodeScalars.last == "\n"
}
struct Line: Identifiable, Equatable {
enum Kind { case added, removed, context }
let id: Int
let text: String
- struct Segment: Equatable {
- let text: String
- let marker: Bool
- }
- var macSegments: [Segment] { displaySegments(maxScalars: 2000) }
- func displaySegments(maxScalars: Int? = nil) -> [Segment] {
- var result: [Segment] = []
- var plain = ""
- func flush() {
- if !plain.isEmpty { result.append(Segment(text: plain, marker: false)); plain = "" }
- }
- for (index, scalar) in text.unicodeScalars.enumerated() {
- if let maxScalars, index >= maxScalars {
- flush(); result.append(Segment(text: "…", marker: false)); break
- }
- if scalar.properties.generalCategory == .format {
- flush()
- result.append(Segment(text: String(format: "⟨U+%04X⟩", scalar.value), marker: true))
- } else { plain.unicodeScalars.append(scalar) }
- }
- flush()
- return result
- }
+ func displaySegments() -> [VisibleCodeText.Segment] { VisibleCodeText.segments(text) }
var kind: Kind {
if text.hasPrefix("+") && !text.hasPrefix("+++") { return .added }
if text.hasPrefix("-") && !text.hasPrefix("---") { return .removed }
diff --git a/native/apple/Sources/EquipoKit/Presentation/ChangedFiles.swift b/native/apple/Sources/EquipoKit/Presentation/ChangedFiles.swift
index f6bb2545..dbc7783c 100644
--- a/native/apple/Sources/EquipoKit/Presentation/ChangedFiles.swift
+++ b/native/apple/Sources/EquipoKit/Presentation/ChangedFiles.swift
@@ -36,6 +36,10 @@ enum ChangedFilesPresentation {
static func total(files: Int, additions: Int, deletions: Int) -> String {
String.localizedStringWithFormat(Bundle.module.localizedString(forKey: "native.changes.total", value: nil, table: nil), files, additions, deletions)
}
+ static func displayPath(_ file: ThinChangedFile) -> String { VisibleCodeText.display(file.path) }
+ static func renamedFrom(_ file: ThinChangedFile) -> String? {
+ file.oldPath.map { String(format: EquipoStrings.text("native.changes.renamed_from"), VisibleCodeText.display($0)) }
+ }
static func status(_ file: ThinChangedFile) -> String {
switch file.status {
case "added": EquipoStrings.text("native.changes.added")
diff --git a/native/apple/Sources/EquipoKit/Presentation/VisibleCodeText.swift b/native/apple/Sources/EquipoKit/Presentation/VisibleCodeText.swift
new file mode 100644
index 00000000..e6780ec1
--- /dev/null
+++ b/native/apple/Sources/EquipoKit/Presentation/VisibleCodeText.swift
@@ -0,0 +1,31 @@
+import Foundation
+
+/// Display-only escaping. Original paths remain unchanged for validation and requests.
+enum VisibleCodeText {
+ struct Segment: Equatable {
+ let text: String
+ let marker: Bool
+ }
+ static func isHidden(_ scalar: Unicode.Scalar) -> Bool {
+ let category = scalar.properties.generalCategory
+ return category == .format || scalar.properties.isDefaultIgnorableCodePoint
+ || (category == .control && scalar != "\t" && scalar != "\n")
+ || scalar == "\u{2028}" || scalar == "\u{2029}"
+ }
+ static func display(_ text: String) -> String { segments(text).map(\.text).joined() }
+ static func segments(_ text: String) -> [Segment] {
+ var result: [Segment] = []
+ var plain = ""
+ func flush() {
+ if !plain.isEmpty { result.append(Segment(text: plain, marker: false)); plain = "" }
+ }
+ for scalar in text.unicodeScalars {
+ if isHidden(scalar) {
+ flush()
+ result.append(Segment(text: String(format: "⟨U+%04X⟩", scalar.value), marker: true))
+ } else { plain.unicodeScalars.append(scalar) }
+ }
+ flush()
+ return result
+ }
+}
diff --git a/native/apple/Sources/EquipoKit/UI/Screens/ChangeDiffSheet.swift b/native/apple/Sources/EquipoKit/UI/Screens/ChangeDiffSheet.swift
index 1fe51db8..5ba06936 100644
--- a/native/apple/Sources/EquipoKit/UI/Screens/ChangeDiffSheet.swift
+++ b/native/apple/Sources/EquipoKit/UI/Screens/ChangeDiffSheet.swift
@@ -12,9 +12,9 @@ struct ChangeDiffSheet: View {
var body: some View {
NavigationStack {
VStack(alignment: .leading, spacing: 12) {
- ScrollView(axes) {
+ ScrollView(.vertical) {
VStack(alignment: .leading, spacing: 12) {
- Text(verbatim: selection.file.path).font(.system(.subheadline, design: .monospaced))
+ Text(verbatim: ChangedFilesPresentation.displayPath(selection.file)).font(.system(.subheadline, design: .monospaced))
.textSelection(.enabled).fixedSize(horizontal: false, vertical: true)
Text(ChangedFilesPresentation.status(selection.file)).font(Typo.caption).foregroundStyle(Palette.secondary)
if model.loading { ProgressView().accessibilityLabel(EquipoStrings.text("native.task.changes")) }
@@ -26,9 +26,9 @@ struct ChangeDiffSheet: View {
if let reason = diff.reason { Text(EquipoStrings.text(reasonKey(reason))).fixedSize(horizontal: false, vertical: true) }
else {
if let notice = diff.hiddenCharactersNotice {
- Text(notice).font(Typo.secondary).foregroundStyle(Palette.warning).fixedSize(horizontal: false, vertical: true)
- }
- if diff.truncated { Text(EquipoStrings.text("native.diff.truncated")).font(Typo.secondary) }
+ Text(notice).font(Typo.secondary).foregroundStyle(Palette.warning).fixedSize(horizontal: false, vertical: true)
+ }
+ if diff.truncated { Text(EquipoStrings.text("native.diff.truncated")).font(Typo.secondary) }
DiffText(diff: diff).padding(12)
.background(Palette.surface2, in: .rect(cornerRadius: 8))
}
@@ -58,13 +58,6 @@ struct ChangeDiffSheet: View {
.task(id: selection.id) { await load() }
.onDisappear { model.clear() }
}
- private var axes: Axis.Set {
- #if os(iOS)
- .vertical
- #else
- [.vertical, .horizontal]
- #endif
- }
private func load() async { await model.load(client: session.client, task: selection.task.id, candidate: selection.facts.sha, path: selection.file.path) }
private func reasonKey(_ reason: String) -> String.LocalizationValue {
switch reason {
@@ -80,24 +73,7 @@ struct ChangeDiffSheet: View {
private struct DiffText: View {
let diff: ChangeDiff
var body: some View {
- #if os(iOS)
- WrappingDiffText(diff: diff)
- #else
- Text(attributed).font(.system(.caption, design: .monospaced)).textSelection(.enabled).fixedSize()
- #endif
- }
- private var attributed: AttributedString {
- var result = AttributedString()
- for line in diff.lines {
- for segment in line.macSegments {
- var text = AttributedString(segment.text)
- text.foregroundColor = segment.marker ? Palette.warning : line.kind == .added ? Palette.positive : line.kind == .removed ? Palette.negative : Palette.text
- if segment.marker { text.backgroundColor = Palette.warningBackground }
- result.append(text)
- }
- result.append(AttributedString("\n"))
- }
- return result
+ WrappingDiffText(diff: diff).frame(maxWidth: .infinity, alignment: .leading)
}
}
@@ -114,22 +90,72 @@ private struct WrappingDiffText: UIViewRepresentable {
return view
}
func updateUIView(_ view: UITextView, context: Context) {
+ view.attributedText = DiffAttributedText.make(diff)
+ }
+ func sizeThatFits(_ proposal: ProposedViewSize, uiView: UITextView, context: Context) -> CGSize? {
+ guard let width = proposal.width else { return nil }
+ return uiView.sizeThatFits(CGSize(width: width, height: .greatestFiniteMagnitude))
+ }
+}
+#else
+struct WrappingDiffText: NSViewRepresentable {
+ let diff: ChangeDiff
+ func makeNSView(context: Context) -> NSTextView { Self.makeTextView() }
+ func updateNSView(_ view: NSTextView, context: Context) {
+ view.textStorage?.setAttributedString(DiffAttributedText.make(diff))
+ }
+ func sizeThatFits(_ proposal: ProposedViewSize, nsView: NSTextView, context: Context) -> CGSize? {
+ guard let width = proposal.width else { return nil }
+ return Self.measure(nsView, width: width)
+ }
+ static func makeTextView() -> NSTextView {
+ let view = NSTextView(frame: .zero)
+ view.isEditable = false; view.isSelectable = true; view.drawsBackground = false
+ view.isHorizontallyResizable = false; view.isVerticallyResizable = true
+ view.textContainerInset = .zero
+ view.textContainer?.lineFragmentPadding = 0
+ view.textContainer?.lineBreakMode = .byCharWrapping
+ view.textContainer?.widthTracksTextView = false
+ view.textContainer?.heightTracksTextView = false
+ return view
+ }
+ static func measure(_ view: NSTextView, width: CGFloat) -> CGSize {
+ guard let container = view.textContainer, let layout = view.layoutManager else { return .zero }
+ container.containerSize = CGSize(width: max(1, width), height: .greatestFiniteMagnitude)
+ layout.ensureLayout(for: container)
+ return CGSize(width: width, height: ceil(layout.usedRect(for: container).height))
+ }
+}
+#endif
+
+/// Shared visible text for rendering and Copy. Selection also copies only markers.
+@MainActor enum DiffAttributedText {
+ static func make(_ diff: ChangeDiff) -> NSAttributedString {
let text = NSMutableAttributedString(string: "")
+ #if os(iOS)
let font = UIFontMetrics(forTextStyle: .caption1).scaledFont(for: .monospacedSystemFont(ofSize: 12, weight: .regular))
- for line in diff.lines {
+ typealias PlatformColor = UIColor
+ #else
+ let font = NSFont.monospacedSystemFont(ofSize: NSFont.preferredFont(forTextStyle: .caption1).pointSize, weight: .regular)
+ typealias PlatformColor = NSColor
+ #endif
+ let paragraph = NSMutableParagraphStyle()
+ paragraph.lineBreakMode = .byCharWrapping
+ // Append actual separators only where they exist, so whole-file Copy is
+ // byte-identical to the displayed text, including the final newline.
+ let lines = diff.lines
+ for (index, line) in lines.enumerated() {
let color = line.kind == .added ? Palette.positive : line.kind == .removed ? Palette.negative : Palette.text
for segment in line.displaySegments() {
- var attributes: [NSAttributedString.Key: Any] = [.font: font, .foregroundColor: UIColor(segment.marker ? Palette.warning : color)]
- if segment.marker { attributes[.backgroundColor] = UIColor(Palette.warningBackground) }
+ var attributes: [NSAttributedString.Key: Any] = [.font: font, .paragraphStyle: paragraph,
+ .foregroundColor: PlatformColor(segment.marker ? Palette.warning : color)]
+ if segment.marker { attributes[.backgroundColor] = PlatformColor(Palette.warningBackground) }
text.append(NSAttributedString(string: segment.text, attributes: attributes))
}
- text.append(NSAttributedString(string: "\n", attributes: [.font: font]))
+ if index < lines.count - 1 || diff.patch?.unicodeScalars.last == "\n" {
+ text.append(NSAttributedString(string: "\n", attributes: [.font: font, .paragraphStyle: paragraph]))
+ }
}
- view.attributedText = text
- }
- func sizeThatFits(_ proposal: ProposedViewSize, uiView: UITextView, context: Context) -> CGSize? {
- guard let width = proposal.width else { return nil }
- return uiView.sizeThatFits(CGSize(width: width, height: .greatestFiniteMagnitude))
+ return text
}
}
-#endif
diff --git a/native/apple/Sources/EquipoKit/UI/Screens/ChangedFilesList.swift b/native/apple/Sources/EquipoKit/UI/Screens/ChangedFilesList.swift
index 06f4a7be..b3f3e2e9 100644
--- a/native/apple/Sources/EquipoKit/UI/Screens/ChangedFilesList.swift
+++ b/native/apple/Sources/EquipoKit/UI/Screens/ChangedFilesList.swift
@@ -12,7 +12,7 @@ struct ChangedFilesList: View {
ForEach(ChangedFilesPresentation.groups(facts)) { group in
VStack(alignment: .leading, spacing: 0) {
if !group.folder.isEmpty {
- Text(verbatim: group.folder).font(Typo.secondaryStrong).foregroundStyle(Palette.secondary).padding(.bottom, 8)
+ Text(verbatim: VisibleCodeText.display(group.folder)).font(Typo.secondaryStrong).foregroundStyle(Palette.secondary).padding(.bottom, 8)
}
ForEach(group.files) { file in
Button { openFile(file) } label: { ChangedFileLabel(file: file) }
@@ -30,8 +30,8 @@ struct ChangedFilesList: View {
}
}
private func accessibility(_ file: ThinChangedFile) -> String {
- [file.path, ChangedFilesPresentation.status(file),
- file.oldPath.map { String(format: EquipoStrings.text("native.changes.renamed_from"), $0) },
+ [ChangedFilesPresentation.displayPath(file), ChangedFilesPresentation.status(file),
+ ChangedFilesPresentation.renamedFrom(file),
file.binary ? EquipoStrings.text("native.changes.binary")
: ChangedFilesPresentation.total(files: 1, additions: file.additions, deletions: file.deletions)]
.compactMap { $0 }.joined(separator: ", ")
@@ -43,10 +43,10 @@ private struct ChangedFileLabel: View {
var body: some View {
HStack(alignment: .top, spacing: 12) {
VStack(alignment: .leading, spacing: 6) {
- Text(verbatim: file.path).font(.system(.subheadline, design: .monospaced))
+ Text(verbatim: ChangedFilesPresentation.displayPath(file)).font(.system(.subheadline, design: .monospaced))
.foregroundStyle(Palette.text).fixedSize(horizontal: false, vertical: true)
- if let old = file.oldPath {
- Text(String(format: EquipoStrings.text("native.changes.renamed_from"), old))
+ if let old = ChangedFilesPresentation.renamedFrom(file) {
+ Text(verbatim: old)
.font(Typo.caption).foregroundStyle(Palette.secondary).fixedSize(horizontal: false, vertical: true)
}
HStack(spacing: 12) {
diff --git a/native/apple/Sources/EquipoKit/UI/Screens/TaskDetailScreen.swift b/native/apple/Sources/EquipoKit/UI/Screens/TaskDetailScreen.swift
index 3a805779..bca9cce5 100644
--- a/native/apple/Sources/EquipoKit/UI/Screens/TaskDetailScreen.swift
+++ b/native/apple/Sources/EquipoKit/UI/Screens/TaskDetailScreen.swift
@@ -73,7 +73,7 @@ public struct TaskScreen: View {
.background(Palette.background)
#if DEBUG
.task(id: model.changeFiles?.sha) {
- if ProcessInfo.processInfo.environment["EQUIPO_TASK_FIXTURE"] == "changes-diff",
+ if (ProcessInfo.processInfo.environment["EQUIPO_TASK_FIXTURE"] ?? "").hasPrefix("changes-diff"),
let facts = model.changeFiles, let file = facts.entries.first, let task = model.task {
diffSelection = ChangeDiffSelection(task: task, facts: facts, file: file)
}
diff --git a/native/apple/Sources/EquipoKit/UI/TaskViewFixture.swift b/native/apple/Sources/EquipoKit/UI/TaskViewFixture.swift
index ccebdd4f..53407ef9 100644
--- a/native/apple/Sources/EquipoKit/UI/TaskViewFixture.swift
+++ b/native/apple/Sources/EquipoKit/UI/TaskViewFixture.swift
@@ -46,6 +46,7 @@ public struct TaskViewFixture: View {
private struct TaskViewFixtureTransport: EquipoTransport {
private var changes: Bool { (ProcessInfo.processInfo.environment["EQUIPO_TASK_FIXTURE"] ?? "").hasPrefix("changes") }
+ private var hiddenNames: Bool { (ProcessInfo.processInfo.environment["EQUIPO_TASK_FIXTURE"] ?? "").hasPrefix("changes-diff") || ProcessInfo.processInfo.environment["EQUIPO_TASK_FIXTURE"] == "changes-hidden" }
private var candidate: String { changes ? String(repeating: "b", count: 40) : "3f9c2a167de8" }
private var hosted: Bool { ProcessInfo.processInfo.environment["EQUIPO_TASK_FIXTURE"] == "hosted" }
private var failed: Bool { hosted || ProcessInfo.processInfo.environment["EQUIPO_TASK_FIXTURE"] == "checks" }
@@ -62,7 +63,9 @@ private struct TaskViewFixtureTransport: EquipoTransport {
value = ["task_id": "tk_fixture", "step_id": "engineering", "attempt": 1,
"base": String(repeating: "a", count: 40), "candidate_sha": candidate,
"path": path, "status": "modified", "truncated": false, "hidden_characters": true,
- "patch": "diff --git a/Sources/Session/EquipoSession.swift b/Sources/Session/EquipoSession.swift\n--- a/Sources/Session/EquipoSession.swift\n+++ b/Sources/Session/EquipoSession.swift\n@@ -42,6 +42,8 @@\n func signOut() {\n+ needsYouCount = 0 // \u{202E}hidden\u{202C}\u{200B}\n+ accountGeneration += 1\n credential = nil\n- refreshBadge()\n+ notifications.updateBadge(count: 0, account: signedOutAccount, reason: .signedOut)\n }\n"]
+ "patch": ProcessInfo.processInfo.environment["EQUIPO_TASK_FIXTURE"] == "changes-diff-long"
+ ? "+" + String(repeating: " ", count: 2000) + "evil()\r\n+safe\u{3164}\u{034F}\u{202E}end\n"
+ : "diff --git a/\(path) b/\(path)\n--- a/\(path)\n+++ b/\(path)\n@@ -42,6 +42,8 @@\n func signOut() {\n+ needsYouCount = 0 // \u{202E}hidden\u{202C}\u{200B}\n+ accountGeneration += 1 // \u{3164}\u{034F}\u{FE0F}\n+ reset() // \u{001B}\r\n credential = nil\n- refreshBadge()\n+ notifications.updateBadge(count: 0, account: signedOutAccount, reason: .signedOut)\n }\n"]
case "/steps/checks/log": value = ["step_id": "checks", "attempt": 1, "tail": hosted ? "Hosted CI on oficina/equipo at 3f9c2a1: failed.\nFailed: format; check shard 5 of 23\n=== format\nThe changed Swift file needs formatting.\n=== check shard 5 of 23\nTest needsBadgeClearsAfterSignOut failed\nExpected: 0\nReceived: 1\n" : "=== formatting\nFormatting passed.\n=== native-tests\nRunning EquipoKitTests\nTest needsBadgeClearsAfterSignOut failed\nExpected: 0\nReceived: 1\nThe signed-out account still contributes to the Needs you badge.\nexit status 1"]
case "/projects": value = ["items": [], "allowed": ["oficina/equipo", "oficina/notes"]]
default: value = [:]
@@ -83,11 +86,11 @@ private struct TaskViewFixtureTransport: EquipoTransport {
}
return ["base": base, "sha": candidate, "files": 6, "additions": 55, "deletions": 10, "binary": 1, "truncated": false,
"entries": [
- file("Sources/Session/EquipoSession.swift", "modified", 24, 4),
+ file(hiddenNames ? "Sources/Session/Equipo\u{3164}Session.swift" : "Sources/Session/EquipoSession.swift", "modified", 24, 4),
file("Tests/NeedsBadgeTests.swift", "modified", 19, 2),
file("Sources/Needs/Badge.swift", "added", 12),
file("Resources/Badge.png", "modified", binary: true),
- file("docs/Badge behaviour.md", "renamed", old: "docs/Badge notes.md"),
+ file("docs/Badge behaviour.md", "renamed", old: hiddenNames ? "docs/Ba\u{034F}dge notes.md" : "docs/Badge notes.md"),
file("Sources/Needs/OldBadge.swift", "deleted", 0, 4)
]]
}
diff --git a/native/apple/Tests/EquipoKitTests/ChangeDiffTests.swift b/native/apple/Tests/EquipoKitTests/ChangeDiffTests.swift
index a3288e0d..231a406c 100644
--- a/native/apple/Tests/EquipoKitTests/ChangeDiffTests.swift
+++ b/native/apple/Tests/EquipoKitTests/ChangeDiffTests.swift
@@ -1,5 +1,8 @@
import Foundation
import Testing
+#if os(macOS)
+import AppKit
+#endif
@testable import EquipoKit
@MainActor @Suite struct ChangeDiffTests {
@@ -60,18 +63,84 @@ import Testing
diff.hiddenCharacters = true
#expect(diff.hiddenCharactersNotice != nil)
}
- @Test func macLongLineIsBoundedAndCopyKeepsFullText() throws {
+ @Test func sharedHiddenCodepointsAndDisplayedCopy() throws {
+ struct Case: Decodable { let first: String; let last: String; let kind: String; let hidden: Bool }
+ var root = URL(fileURLWithPath: #filePath)
+ for _ in 0..<5 { root.deleteLastPathComponent() }
+ let cases = try JSONDecoder().decode([Case].self, from: Data(contentsOf: root.appendingPathComponent("internal/wire/testdata/hidden-codepoints.json")))
+ for item in cases {
+ for value in UInt32(item.first, radix: 16)!...UInt32(item.last, radix: 16)! {
+ let scalar = Unicode.Scalar(value)!
+ var diff = Self.value(); diff.patch = String(scalar)
+ #expect(diff.hasHiddenCharacters == item.hidden, "\(item.kind) U+\(item.first)")
+ let displayed = ChangeDiff.Line(id: 0, text: String(scalar)).displaySegments()
+ let expected = item.hidden ? String(format: "⟨U+%04X⟩", value) : String(scalar)
+ #expect(displayed.map(\.text).joined() == expected)
+ #expect(displayed.contains(where: \.marker) == item.hidden)
+ #expect(diff.copyText == expected)
+ }
+ }
+ var diff = Self.value(); diff.patch = "+safe\u{202E}evil()\r\n"
+ #expect(diff.copyText == "+safe⟨U+202E⟩evil()⟨U+000D⟩\n")
+ }
+ @Test func crlfIsVisibleAndObeysTheSameLineBound() {
+ var diff = Self.value(); diff.patch = "+windows\r\n"
+ #expect(diff.isValid)
+ #expect(diff.hiddenCharactersNotice != nil)
+ #expect(DiffAttributedText.make(diff).string == "+windows⟨U+000D⟩\n")
+ #expect(DiffAttributedText.make(diff).string == diff.copyText)
+ diff.patch = String(repeating: "+x\r\n", count: 2001)
+ #expect(!diff.isValid)
+ }
+ @Test func longLineKeepsTrailingCode() throws {
var diff = Self.value()
- diff.patch = "+" + String(repeating: "x", count: 60_000) + "\n"
- let shown = try #require(diff.lines.first).macSegments.map(\.text).joined()
- #expect(shown.count == 2001)
- #expect(shown.hasSuffix("…"))
- #expect(diff.copyText == diff.patch)
- #expect(diff.copyText.count == 60_002)
- // Counting scalars also bounds pathological single grapheme clusters.
- diff.patch = "+a" + String(repeating: "\u{0301}", count: 60_000) + "\n"
- #expect(diff.lines[0].macSegments.map(\.text).joined().unicodeScalars.count == 2001)
+ diff.patch = "+" + String(repeating: " ", count: 2000) + "evil()\n"
+ let shown = try #require(diff.lines.first).displaySegments().map(\.text).joined()
+ #expect(shown.hasSuffix("evil()"))
+ #expect(shown == String(diff.patch!.dropLast()))
+ diff.patch = "+" + String(repeating: "x", count: 60_000) + "evil()\n"
+ #expect(diff.lines[0].displaySegments().map(\.text).joined().hasSuffix("evil()"))
+ }
+ @Test func fileNamesAndRenameSourcesShowCodesWithoutChangingPaths() throws {
+ var file = ChangeFilesTests.facts().entries[0]
+ file.path = "dir/a\u{3164}b\u{200D}.swift"
+ file.status = "renamed"; file.oldPath = "dir/old\u{034F}.swift"
+ #expect(ThinChangeFiles.path(file.path))
+ #expect(ChangedFilesPresentation.displayPath(file) == "dir/a⟨U+3164⟩b⟨U+200D⟩.swift")
+ #expect(ChangedFilesPresentation.renamedFrom(file) == "Renamed from dir/old⟨U+034F⟩.swift")
+ var task = try TaskDetailTests.task(); task.repo = "oficina/equipo"
+ let url = try #require(ChangedFilesPresentation.fileURL(task: task, facts: ChangeFilesTests.facts(), file: file))
+ #expect(URLComponents(url: url, resolvingAgainstBaseURL: false)?.queryItems?.first(where: { $0.name == "path" })?.value == file.path)
+ }
+ #if os(macOS)
+ @Test func macCharacterWrappingLaysOutTrailingCodeAndCopiesDisplayedFile() throws {
+ var diff = Self.value()
+ diff.patch = "+" + String(repeating: " ", count: 2000) + "evil()\r\n+\u{3164}\u{202E}end\n"
+ let view = WrappingDiffText.makeTextView()
+ let attributed = DiffAttributedText.make(diff)
+ view.textStorage?.setAttributedString(attributed)
+ #expect(view.isSelectable && !view.isEditable)
+ #expect(view.textContainer?.lineBreakMode == .byCharWrapping)
+ #expect(attributed.string == diff.copyText)
+ #expect(attributed.string.contains("evil()⟨U+000D⟩\n+⟨U+3164⟩⟨U+202E⟩end"))
+ for width: CGFloat in [240, 560, 800] {
+ let size = WrappingDiffText.measure(view, width: width)
+ view.frame = CGRect(origin: .zero, size: size)
+ let layout = try #require(view.layoutManager)
+ let container = try #require(view.textContainer)
+ let chars = (attributed.string as NSString).range(of: "evil()")
+ let glyphs = layout.glyphRange(forCharacterRange: chars, actualCharacterRange: nil)
+ let rect = layout.boundingRect(forGlyphRange: glyphs, in: container)
+ #expect(rect.width > 0 && rect.height > 0)
+ #expect(rect.minX >= 0 && rect.maxX <= width + 1)
+ #expect(rect.minY >= 0 && rect.maxY <= size.height)
+ #expect(layout.glyphRange(for: container).length == layout.numberOfGlyphs)
+ }
+ // The whole-file Copy button and selected native text expose the same codes.
+ let marker = (attributed.string as NSString).range(of: "⟨U+202E⟩")
+ #expect(attributed.attribute(.backgroundColor, at: marker.location, effectiveRange: nil) != nil)
}
+ #endif
@Test func selectionChangeDropsLateResponse() async throws {
let server = ScriptedTransport()
let gate = DiffReadGate(base: server)