Fix forge routing and preserve successful pushes after proposal errors
Co-Authored-By: Codex GPT-6-Astra <noreply@openai.com>
26 files changed,
+564
−41
.rastrillo/budgets.txt+5 −5docs/superpowers/plans/2026-11-23-github-seam-assumptions.md+5 −5docs/superpowers/plans/2026-11-23-github-seam.md+13 −0docs/superpowers/plans/CONTROLLER-REPORT-github-seam.md+132 −0docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md+1 −0docs/superpowers/specs/2026-11-22-equipo-github-connector-probe.md+36 −1internal/equipo/chat/proposal_seam_test.go+49 −0internal/equipo/chat/tasks.go+5 −1internal/equipo/chat/transfers.go+3 −0internal/equipo/copy.go+1 −0internal/equipo/proposal_seam_test.go+29 −0internal/equipo/work_views.go+3 −0internal/plan3test/plan3_release_test.go+2 −1internal/runner/forge/push_detail.go+1 −1internal/runner/forge/username_test.go+11 −0internal/runner/thin/engineer.go+5 −3internal/runner/thin/forges.go+18 −10internal/runner/thin/forges_review_test.go+141 −0internal/runner/thin/forges_test.go+5 −5internal/runner/thin/merge.go+1 −1internal/runner/thin/proposal_seam_test.go+68 −4internal/runner/thin/relay.go+3 −3internal/wire/forgekey/key.go+7 −0internal/wire/forgekey/key_test.go+18 −1internal/wire/runners.go+1 −0internal/wire/tasks.go+1 −0
CI failed — run details
CI log
=== prepare ===
ci-box: machine: aarch64, 32 CPUs, 62 GiB memory, kernel 7.0.0-1017-aws
ci-box: python 3.12.3; Docker version 29.1.3, build 29.1.3-0ubuntu3~24.04.2
ci-box: user namespaces allowed: 233151
ci-box: cgroup: cgroup2fs
ci-box: disk /home/ci/work/repos/oficina__equipo/wt/github__seam: Type Size Avail | ext4 96G 86G
ci-box: disk /home/ci/.cache/equipo-ci-box: Type Size Avail | ext4 96G 86G
ci-box: bwrap: fetched and verified in 0.3s
ci-box: claude: fetched and verified in 1.8s
ci-box: codex: fetched and verified in 3.5s
ci-box: codex-code-mode-host: fetched and verified in 1.4s
ci-box: libwrap: fetched and verified in 0.3s
ci-box: socat: fetched and verified in 0.4s
npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
ci-box: image pulled in 9.7s
ci-box: pi: installed and verified in 7.5s
ci-box: opencode: installed and verified in 2.2s
ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 8.7s
ci-box: clone deepened in 3.7s
ci-box: file times set from content: 2951 files, 192 directories
ci-box: ready in 17.3s
=== 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.142s
=== compile ===
go build ./...
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile
+ go build -tags testbuild ./...
4.6s
+ go list -export -test -tags testbuild -f ./...
5.0s
+ go list -export -test -tags browser,testbuild -f ./internal/equipo ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest
3.1s
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -version
staticcheck 2026.1 (v0.7.0)
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 -version
Go: go1.26.11
Scanner: govulncheck@v1.8.0
DB: https://vuln.go.dev
DB updated: 2026-11-11 02:51:11 +0000 UTC
go run github.com/zricethezav/gitleaks/v8@v8.30.1 version
version is set by build process
=== check ===
--- shard 0 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-work: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadless$/^4c_rebase$|^TestHeadless$/^4b_ask$|^TestHeadless$/^4c_checks_card$|^TestHeadless$/^4_step_crash$' ./internal/headless
receipt: test step 1m16.421s 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.707s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m14.71s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 65.96, cpu waiting 41.14%, memory waiting 0.00%, io waiting 0.49%
--- shard 1 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane headless-review: ./internal/headless
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadless$/^4_review$|^TestHeadless$/^2b_access$|^TestHeadless$/^runner_crash$|^TestHeadless$/^2b_first_message$|^TestHeadless$/^4_checks_honest$|^TestHeadless$/^7_stream_resume$|^TestHeadless$/^2b_notebook$|^TestHeadless$/^2b_move_in$|^TestHeadless$/^2b_desk_failure$|^TestHeadless$/^cancel$' ./internal/headless
receipt: test step 1m17.194s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m15.102s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m15.1s amadan.net/oficina/equipo/internal/headless TestHeadless
machine: 32 CPUs, load 65.96, cpu waiting 41.14%, memory waiting 0.00%, io waiting 0.49%
--- 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 1m17.059s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m15.129s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m5.39s amadan.net/oficina/equipo/internal/headless TestHeadlessConnections
receipt: slow test 5.24s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenPasteEndToEnd
receipt: slow test 4.5s amadan.net/oficina/equipo/internal/headless TestHeadlessTokenConnection
machine: 32 CPUs, load 64.04, cpu waiting 41.14%, memory waiting 0.00%, io waiting 0.49%
--- 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 1m14.782s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m12.837s amadan.net/oficina/equipo/internal/headless
receipt: slow test 36.33s amadan.net/oficina/equipo/internal/headless TestMacWorker
receipt: slow test 19.07s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 8.9s amadan.net/oficina/equipo/internal/headless TestHeadlessPrewarm
receipt: slow test 8.53s amadan.net/oficina/equipo/internal/headless TestHeadlessAttachments
machine: 32 CPUs, load 65.96, cpu waiting 40.80%, memory waiting 0.00%, io waiting 0.51%
--- 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 1m31.871s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m30.158s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m1.67s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 9.09s amadan.net/oficina/equipo/internal/headless TestHeadlessRunnerKillLeavesNoCopies
receipt: slow test 7.96s amadan.net/oficina/equipo/internal/headless TestHeadlessCopyRotation
receipt: slow test 6.92s amadan.net/oficina/equipo/internal/headless TestHeadlessPolicyGuards
receipt: slow test 4.52s amadan.net/oficina/equipo/internal/headless TestHeadlessNewHouseRuleStartsFresh
machine: 32 CPUs, load 58.61, cpu waiting 40.19%, memory waiting 0.00%, io waiting 0.37%
--- 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 2m40.999s 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 2m38.732s amadan.net/oficina/equipo/internal/headless
receipt: slow test 1m35.14s amadan.net/oficina/equipo/internal/headless TestHeadlessAssistant
receipt: slow test 17.84s amadan.net/oficina/equipo/internal/headless TestHeadless
receipt: slow test 8.52s amadan.net/oficina/equipo/internal/headless TestHeadlessResearchHandoff
receipt: slow test 6.53s amadan.net/oficina/equipo/internal/headless TestHeadlessTurnBatching
receipt: slow test 6.26s amadan.net/oficina/equipo/internal/headless TestHeadlessBatchAfterRefusedReply
machine: 32 CPUs, load 26.13, cpu waiting 14.13%, memory waiting 0.00%, io waiting 0.11%
--- shard 6 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane thintest: ./internal/thintest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test([^C]|C[^o]|Co[^n]|Con[^t])|^TestContract(Assistant|Outcome|Team|Handoff|HostAllowlist|HostIsPerPerson|Look|Use[A-Z]|RemoteCall|LanesRunAtOnce|NoMergeQuestionWhenGateMerges|PreviewHeldUntilPublishAnswer|PreviewNotHeldBelow19|PublishNeedsOwnerAnswer)' ./internal/thintest
receipt: test step 2m4.758s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 2m2.986s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 8.08s amadan.net/oficina/equipo/internal/thintest TestContractTeamJobSettledStates
receipt: slow test 6.74s amadan.net/oficina/equipo/internal/thintest TestExplorePreviewsOff
receipt: slow test 3.85s amadan.net/oficina/equipo/internal/thintest TestContractPreviewHeldUntilPublishAnswer
receipt: slow test 3.59s amadan.net/oficina/equipo/internal/thintest TestContractTeamNudgePersonNeeds
receipt: slow test 2.4s amadan.net/oficina/equipo/internal/thintest TestResearchDoneFallsBack
machine: 32 CPUs, load 41.75, cpu waiting 25.66%, memory waiting 0.00%, io waiting 0.21%
--- 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.20s)
--- FAIL amadan.net/oficina/equipo/internal/thintest (package output)
FAIL
rastrillo-budget/v1 ran 1m26.889s
FAIL amadan.net/oficina/equipo/internal/thintest 87.157s
receipt: test step 1m28.741s 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 1m26.889s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 9.13s amadan.net/oficina/equipo/internal/thintest TestContractPreviewNotScheduled
receipt: slow test 5.08s amadan.net/oficina/equipo/internal/thintest TestContractPublishNotOffered
receipt: slow test 4.4s amadan.net/oficina/equipo/internal/thintest TestContractMacRecheckMergeAuthority
receipt: slow test 2.36s amadan.net/oficina/equipo/internal/thintest TestContractPreview
receipt: slow test 2.35s amadan.net/oficina/equipo/internal/thintest TestContractPublishNameTaken
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 18594290c0568fd8375e83478e6a0e8db10b8272 0.20s 61.02
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 61.02, cpu waiting 40.19%, memory waiting 0.00%, io waiting 0.37%
--- 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 4m43.371s, over the 45s its record on line 44 allows; reported only, timing fails on CI
receipt: test step 4m48.769s 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 4m43.371s amadan.net/oficina/equipo/internal/runner/thin
receipt: slow test 37s amadan.net/oficina/equipo/internal/runner/thin TestModelsEngineeringProbesThenRunsTheStrongest
receipt: slow test 36.94s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeAnsweredByAnotherModel
receipt: slow test 36.77s amadan.net/oficina/equipo/internal/runner/thin TestModelsUnhealthyRetriedOnDemand
receipt: slow test 18.46s amadan.net/oficina/equipo/internal/runner/thin TestModelsProbeRunsInsideTheAdmission
receipt: slow test 6.88s amadan.net/oficina/equipo/internal/runner/thin TestOpenCodeStepsRealOpenCode
machine: 32 CPUs, load 4.15, cpu waiting 1.67%, memory waiting 0.00%, io waiting 0.00%
--- shard 9 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-bug: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$' ./internal/runner
receipt: test step 51.2s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 50.061s amadan.net/oficina/equipo/internal/runner
receipt: slow test 30.03s amadan.net/oficina/equipo/internal/runner TestDirectBugWorkflow
receipt: slow test 20.02s amadan.net/oficina/equipo/internal/runner TestEnrolKeepsTheRole
machine: 32 CPUs, load 59.76, cpu waiting 34.85%, memory waiting 0.00%, io waiting 0.74%
--- shard 10 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-plans: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner
receipt: test step 1m1.422s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m0.218s amadan.net/oficina/equipo/internal/runner
receipt: slow test 50.15s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowCandidateOrder
receipt: slow test 45.08s amadan.net/oficina/equipo/internal/runner TestPlanWorkflowFeature
receipt: slow test 8.41s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryCallRefusalKeepsServing
receipt: slow test 1.64s amadan.net/oficina/equipo/internal/runner TestCoordinatorRefusalMatrix
machine: 32 CPUs, load 66.73, cpu waiting 39.76%, memory waiting 0.00%, io waiting 0.63%
--- shard 11 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
test lane runner-rest: ./internal/runner
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$|^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner
receipt: test step 35.789s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 34.854s amadan.net/oficina/equipo/internal/runner
receipt: slow test 5.13s amadan.net/oficina/equipo/internal/runner TestDirectFaultIsolation
receipt: slow test 3.13s amadan.net/oficina/equipo/internal/runner TestCoordinatorRecoveryRefusedKeepsServing
receipt: slow test 3.05s amadan.net/oficina/equipo/internal/runner TestClaimRefusalsBackOff
receipt: slow test 2.61s amadan.net/oficina/equipo/internal/runner TestToolVerbUnderFakeHarness
receipt: slow test 1.61s amadan.net/oficina/equipo/internal/runner TestReportPostsRetryExactRequest
machine: 32 CPUs, load 32.07, cpu waiting 22.33%, memory waiting 0.00%, io waiting 0.97%
--- 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.6%, load 26.51
test lane equipotest-a: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test[A-D]|^TestQ' ./internal/equipotest
receipt: test step 1m8.067s 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.242s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 28.01s amadan.net/oficina/equipo/internal/equipotest TestAuthorityCoreIntegration
receipt: slow test 27.93s amadan.net/oficina/equipo/internal/equipotest TestBootstrapNamesOwnersSetting
receipt: slow test 25.61s amadan.net/oficina/equipo/internal/equipotest TestAccountLabelMigration
receipt: slow test 23.15s amadan.net/oficina/equipo/internal/equipotest TestBudgetConfigurationFailuresAreAtomic
receipt: slow test 22.94s amadan.net/oficina/equipo/internal/equipotest TestBudgetLoweringBelowUsage
machine: 32 CPUs, load 56.08, cpu waiting 38.20%, memory waiting 0.00%, io waiting 0.34%
--- 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.6%, load 26.51
test lane equipotest-e: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^Test[E-P]' ./internal/equipotest
receipt: test step 1m17.077s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m15.214s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 19.79s amadan.net/oficina/equipo/internal/equipotest TestProjectConcurrentRetry
receipt: slow test 19.77s amadan.net/oficina/equipo/internal/equipotest TestProjectRequestActorAndUpdate
receipt: slow test 19.73s amadan.net/oficina/equipo/internal/equipotest TestProjectRetryAndRevision
receipt: slow test 19.7s amadan.net/oficina/equipo/internal/equipotest TestProjectsReopen
receipt: slow test 19.69s amadan.net/oficina/equipo/internal/equipotest TestProjectsFailuresRollBack
machine: 32 CPUs, load 49.63, cpu waiting 32.87%, memory waiting 0.00%, io waiting 0.28%
--- 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.6%, load 26.51
test lane equipotest-r: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestR' ./internal/equipotest
receipt: test step 1m15.328s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m10.261s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 17.02s amadan.net/oficina/equipo/internal/equipotest TestReleaseStampContract
receipt: slow test 13.4s amadan.net/oficina/equipo/internal/equipotest TestRosterChangesAffectExistingSession
receipt: slow test 10.4s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalWhileAssigned
receipt: slow test 10.33s amadan.net/oficina/equipo/internal/equipotest TestRosterRemovalRollsBack
receipt: slow test 7.32s amadan.net/oficina/equipo/internal/equipotest TestRosterProtectsLastOwner
machine: 32 CPUs, load 53.43, cpu waiting 33.95%, memory waiting 0.00%, io waiting 0.29%
--- 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.6%, load 26.51
test lane equipotest-rest: ./internal/equipotest
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^Test[A-D]|^TestQ|^Test[E-P]|^TestR' ./internal/equipotest
receipt: test step 1m8.694s 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.744s amadan.net/oficina/equipo/internal/equipotest
receipt: slow test 25.75s amadan.net/oficina/equipo/internal/equipotest TestSigninNoProof
receipt: slow test 24.79s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedRollback
receipt: slow test 24.78s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsSeedExistingTeam
receipt: slow test 23.03s amadan.net/oficina/equipo/internal/equipotest TestSpecialistsUpgrade
receipt: slow test 22.92s amadan.net/oficina/equipo/internal/equipotest TestSpecialistSettingsRollbackAndUnavailable
machine: 32 CPUs, load 56.08, cpu waiting 37.24%, memory waiting 0.00%, io waiting 0.33%
--- 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.6%, load 26.51
test lane plan3test: ./internal/plan3test
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./internal/plan3test
receipt: test step 53.85s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 51.956s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 3.55s amadan.net/oficina/equipo/internal/plan3test TestPlan3Upgrade
receipt: slow test 3.52s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3B
receipt: slow test 1.63s amadan.net/oficina/equipo/internal/plan3test TestConversationQuestionRace
receipt: slow test 1.55s amadan.net/oficina/equipo/internal/plan3test TestCoordinatorAcceptance3A
receipt: slow test 1.23s amadan.net/oficina/equipo/internal/plan3test TestPlanMigrationUpgrade
machine: 32 CPUs, load 61.72, cpu waiting 40.03%, memory waiting 0.00%, io waiting 0.43%
--- 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.6%, load 26.51
test lane rest: ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/door ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/push ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/claude/realcli ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/forgekey ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m ./cmd/equipo ./cmd/equipo-runner ./cmd/equipo-tool-proxy ./internal/advice ./internal/attach ./internal/attach/attachtest ./internal/chatmarkdown ./internal/chatsend ./internal/chatstream ./internal/coordinator ./internal/coordinatorcontract ./internal/coordinatormail ./internal/copydesk ./internal/equipo ./internal/equipo/activity ./internal/equipo/assist ./internal/equipo/chat ./internal/equipo/conversation ./internal/equipo/conversation/chatstate ./internal/equipo/door ./internal/equipo/housekeeping ./internal/equipo/icons ./internal/equipo/identity ./internal/equipo/kernel ./internal/equipo/library ./internal/equipo/mergegate ./internal/equipo/notifications ./internal/equipo/oficina ./internal/equipo/oficina/oficinatest ./internal/equipo/oficinaid ./internal/equipo/ownermode ./internal/equipo/personapi ./internal/equipo/planning ./internal/equipo/push ./internal/equipo/setup ./internal/equipo/team ./internal/equipo/teamcontract ./internal/equipo/triage ./internal/fakeclaude ./internal/fakecodex ./internal/fakeopencode ./internal/fakepi ./internal/idtest ./internal/ownermodetest ./internal/release ./internal/runner/checks ./internal/runner/connect ./internal/runner/containment ./internal/runner/containment/sysunix ./internal/runner/egress ./internal/runner/forge ./internal/runner/forge/forgetest ./internal/runner/heartbeat ./internal/runner/mac ./internal/runner/mcpresource ./internal/runner/metered ./internal/runner/planflow ./internal/runner/provider ./internal/runner/provider/claude ./internal/runner/provider/claude/realcli ./internal/runner/provider/codex ./internal/runner/provider/gotoolchain ./internal/runner/provider/opencode ./internal/runner/provider/pi ./internal/runner/setup ./internal/runner/transporttest ./internal/runner/webread ./internal/runner/workspace ./internal/runnerproto ./internal/schedule ./internal/sealbox ./internal/specialist ./internal/stagingtest ./internal/taskplan ./internal/testci ./internal/toolproxy ./internal/websource ./internal/wire ./internal/wire/forgekey ./internal/wire/wireschema ./internal/wire/wiretest ./tools/drive
cache miss: amadan.net/oficina/equipo/internal/chatmarkdown: its inputs changed
cache miss: amadan.net/oficina/equipo/internal/copydesk: 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/containment: its inputs changed
--- FAIL amadan.net/oficina/equipo/internal/runner/webread TestTimeouts
=== RUN TestTimeouts
fetch_test.go:537: s1: {Source:s1 Origin:paul Parent: URL:https://shop.example.com/slow-body Hops:[{URL:https://shop.example.com/slow-body Address:151.101.1.1 Status:200}] Address:151.101.1.1 Status:200 Type:text/plain Bytes:5 SHA256:2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824 Millis:306 Reason: File:s001.txt}
--- FAIL: TestTimeouts (0.65s)
--- FAIL amadan.net/oficina/equipo/internal/runner/webread (package output)
FAIL
rastrillo-budget/v1 ran 2.219s
FAIL amadan.net/oficina/equipo/internal/runner/webread 2.238s
budget note: internal/equipo took 52.887s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/chat took 19.036s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/equipo/setup took 10.202s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/idtest took 1m51.262s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/release took 36.558s, over the 10s the default allows (measured on the run this cached result came from); reported only, timing fails on CI
budget note: internal/runner/containment took 48.862s, over the 15s its record on line 40 allows; reported only, timing fails on CI
budget note: internal/runner/forge took 20.226s, over the 20s its record on line 35 allows; reported only, timing fails on CI
budget note: internal/runner/provider/claude/realcli took 14.191s, over the 10s the default allows; reported only, timing fails on CI
budget note: internal/runner/provider/pi took 1m17.133s, over the 1m0s its record on line 27 allows; reported only, timing fails on CI
budget note: internal/runner/workspace took 11.492s, over the 10s the default allows; reported only, timing fails on CI
receipt: test step 1m59.372s against a 60s target (the gate's other steps are not in this figure)
receipt: 36 packages ran, 27 cached, 18 without tests, 1 failed
receipt: slow package 1m51.262s amadan.net/oficina/equipo/internal/idtest
receipt: slow package 1m17.133s amadan.net/oficina/equipo/internal/runner/provider/pi
receipt: slow package 1m5.912s amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow package 54.115s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 52.887s amadan.net/oficina/equipo/internal/equipo
receipt: slow test 53.62s amadan.net/oficina/equipo/internal/idtest TestDoorRemembersOficinaID
receipt: slow test 45.84s amadan.net/oficina/equipo/internal/idtest TestDoorStepUpIsLocal
receipt: slow test 45.74s amadan.net/oficina/equipo/internal/idtest TestDoorOficinaSettingsUnreadableIsNoLoop
receipt: slow test 43.9s amadan.net/oficina/equipo/internal/idtest TestDoorNeverJudgesANativeSession
receipt: slow test 43.83s amadan.net/oficina/equipo/internal/idtest TestDoorForgetsOficinaIDForARefusedSession
rastrillo: budget test: go test failed
exit status 1
+ go test -tags testbuild -timeout 15m -v -run '^TestTimeouts$' -count=1 ./internal/runner/webread (retry, once)
##############################################################################
FLAKE ./internal/runner/webread:TestTimeouts rest 18594290c0568fd8375e83478e6a0e8db10b8272 0.65s 29.42
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 29.42, cpu waiting 16.69%, memory waiting 0.00%, io waiting 0.14%
--- shard 18 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-chat: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$' ./internal/headless
receipt: test step 1m24.24s 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.763s amadan.net/oficina/equipo/internal/headless
receipt: slow test 38.84s amadan.net/oficina/equipo/internal/headless TestBrowserDraftIsTheMessage
receipt: slow test 15.06s amadan.net/oficina/equipo/internal/headless TestBrowserDraftStreamsFormatted
receipt: slow test 10.35s amadan.net/oficina/equipo/internal/headless TestBrowserChat
receipt: slow test 7.08s amadan.net/oficina/equipo/internal/headless TestBrowserComposer
receipt: slow test 6.2s amadan.net/oficina/equipo/internal/headless TestBrowserChatSendStaysOnPage
machine: 32 CPUs, load 61.72, cpu waiting 39.90%, memory waiting 0.00%, io waiting 0.42%
--- 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 1m29.585s against a 60s target (the gate's other steps are not in this figure)
receipt: 1 packages ran, 0 cached, 0 without tests, 0 failed
receipt: slow package 1m28.046s amadan.net/oficina/equipo/internal/headless
receipt: slow test 27.13s amadan.net/oficina/equipo/internal/headless TestBrowserRailFollowsWork
receipt: slow test 20.96s amadan.net/oficina/equipo/internal/headless TestBrowserTaskThread
receipt: slow test 12.94s amadan.net/oficina/equipo/internal/headless TestBrowserReceiptFollowsReview
receipt: slow test 9.5s amadan.net/oficina/equipo/internal/headless TestBrowserTaskCard
receipt: slow test 9.08s amadan.net/oficina/equipo/internal/headless TestBrowserAskAfterMerge
machine: 32 CPUs, load 61.02, cpu waiting 40.19%, memory waiting 0.00%, io waiting 0.37%
--- 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 1m41.151s 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 1m39.401s amadan.net/oficina/equipo/internal/headless
receipt: slow test 13.26s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAddPage
receipt: slow test 12.97s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsConversation
receipt: slow test 12.07s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsAdd
receipt: slow test 11.54s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsMeteredLimitRequired
receipt: slow test 10.85s amadan.net/oficina/equipo/internal/headless TestBrowserConnectionsOpenCodeGoLimitRequired
machine: 32 CPUs, load 56.08, cpu waiting 36.15%, memory waiting 0.00%, io waiting 0.32%
--- shard 21 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-headless-rest: ./internal/headless
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless
--- FAIL amadan.net/oficina/equipo/internal/headless TestBrowserCopyContinue
=== RUN TestBrowserCopyContinue
time=2026-11-23T18:25:08.562Z level=INFO msg="startup phase" phase=state_lock
time=2026-11-23T18:25:08.562Z level=INFO msg="startup phase done" phase=state_lock took=239µs
time=2026-11-23T18:25:08.562Z level=INFO msg="startup phase" phase=claim_roots
time=2026-11-23T18:25:08.562Z level=INFO msg="startup phase done" phase=claim_roots took=173µs
time=2026-11-23T18:25:08.562Z level=INFO msg="startup phase" phase=sweep
time=2026-11-23T18:25:08.614Z level=INFO msg="startup phase done" phase=sweep took=51.499ms
time=2026-11-23T18:25:08.614Z level=INFO msg="startup phase" phase=credentials
time=2026-11-23T18:25:08.614Z level=INFO msg="startup phase done" phase=credentials took=229µs
time=2026-11-23T18:25:08.614Z level=INFO msg="startup phase" phase=open_state
time=2026-11-23T18:25:08.713Z level=INFO msg="startup phase done" phase=open_state took=98.709ms
time=2026-11-23T18:25:08.714Z level=WARN msg="no seal key: token connections cannot be added" err=*fs.PathError
time=2026-11-23T18:25:08.715Z level=INFO msg=connecting host=127.0.0.1:40717 protocol=28
time=2026-11-23T18:25:08.719Z level=INFO msg=connected host=127.0.0.1:40717 took=4.091ms
time=2026-11-23T18:25:08.719Z level=INFO msg="capabilities gathering"
time=2026-11-23T18:25:08.719Z level=INFO msg="capabilities gathered" took=538µs tags=linux,claude,go
time=2026-11-23T18:25:08.720Z level=INFO msg="hello sent" protocol=28
time=2026-11-23T18:25:08.733Z level=INFO msg=welcome protocol=28 role=primary generation=1
browser_copy_test.go:90: waiting for !document.querySelector('[data-copy-continue]'): context deadline exceeded (last evaluation: context deadline exceeded)
--- FAIL: TestBrowserCopyContinue (6.43s)
--- FAIL amadan.net/oficina/equipo/internal/headless (package output)
FAIL
rastrillo-budget/v1 ran 1m32.042s
FAIL amadan.net/oficina/equipo/internal/headless 92.252s
receipt: test step 1m33.463s 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 1m32.042s amadan.net/oficina/equipo/internal/headless
receipt: slow test 14.63s amadan.net/oficina/equipo/internal/headless TestBrowserThinkingAndCards
receipt: slow test 11.53s amadan.net/oficina/equipo/internal/headless TestBrowserStalePageReloads
rastrillo: budget test: go test failed
receipt: slow test 10.42s amadan.net/oficina/equipo/internal/headless TestBrowserWaitingTurns
receipt: slow test 9.33s amadan.net/oficina/equipo/internal/headless TestBrowserMoveIn
receipt: slow test 7.35s amadan.net/oficina/equipo/internal/headless TestBrowserRefreshRace
exit status 1
+ go test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' -v -run '^TestBrowserCopyContinue$' -count=1 ./internal/headless (retry, once)
##############################################################################
FLAKE ./internal/headless:TestBrowserCopyContinue browser-headless-rest 18594290c0568fd8375e83478e6a0e8db10b8272 6.43s 58.61
##############################################################################
failed, then passed on its one retry: the step stays green and the flake is on record
machine: 32 CPUs, load 56.08, cpu waiting 38.20%, memory waiting 0.00%, io waiting 0.34%
--- shard 22 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner)
browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79
browser lane browser-rest: ./internal/equipo
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserPreviewBlocksNavigation)$' ./internal/equipo
receipt: test step 2.223s 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 644ms amadan.net/oficina/equipo/internal/equipo
receipt: slow test 640ms 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.481s, over the 10s the default allows; reported only, timing fails on CI
receipt: test step 11.68s 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.481s amadan.net/oficina/equipo/internal/idtest
receipt: slow test 8.37s amadan.net/oficina/equipo/internal/idtest TestBrowserSmartDoor
receipt: slow test 2.11s 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.555s 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.112s amadan.net/oficina/equipo/internal/plan3test
receipt: slow test 2.11s amadan.net/oficina/equipo/internal/plan3test TestTeamsHierarchyBrowser
browser lane browser-rest: ./internal/thintest
+ go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAccessEmojiByline|TestBrowserAccessFinalOutcomes|TestBrowserAccessRequest|TestBrowserAccessReview|TestBrowserActivitySubjects|TestBrowserAutonomySettings|TestBrowserCoordinatorQueue|TestBrowserEmptyConversation|TestBrowserEndedNoteStaysGone|TestBrowserHousekeeping|TestBrowserInnerGallery|TestBrowserInnerScreens|TestBrowserInstantThinking|TestBrowserInstantThinkingQueued|TestBrowserMachines|TestBrowserPhoneIndex|TestBrowserPlacementQuestionAndPending|TestBrowserProjectPlacement|TestBrowserProjectsList|TestBrowserReportActionFeedback|TestBrowserReportNextSteps|TestBrowserReportThread|TestBrowserRhythm|TestBrowserRollup|TestBrowserRosterAlignment|TestBrowserRosterDecisionStates|TestBrowserRosterQuietDay|TestBrowserRosterReports|TestBrowserRosterSetAside|TestBrowserRosterSubchat|TestBrowserRosterThinking|TestBrowserRosterVisual|TestBrowserSettingsHousekeepingGroups|TestBrowserSettingsMenu|TestBrowserSettingsRail|TestBrowserSettingsSaveBar|TestBrowserSettingsShots|TestBrowserSettingsStayOnPage|TestBrowserSettingsTeams|TestBrowserShipsButtons|TestBrowserSpecialistRows|TestBrowserSpendFollowsAnswers|TestBrowserTaskRows|TestBrowserTeamPanel|TestBrowserThinkingCycles|TestBrowserThinkingLinesClear|TestBrowserThinkingSteady|TestBrowserThinkingWords|TestBrowserTokenRowEmail|TestBrowserTrackPulse|TestBrowserTrackStarCentre|TestBrowserTryAgain)$' ./internal/thintest
receipt: test step 3m29.647s 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 3m28.065s amadan.net/oficina/equipo/internal/thintest
receipt: slow test 21.97s amadan.net/oficina/equipo/internal/thintest TestBrowserAccessRequest
receipt: slow test 14.37s amadan.net/oficina/equipo/internal/thintest TestBrowserSettingsTeams
receipt: slow test 12.07s amadan.net/oficina/equipo/internal/thintest TestBrowserThinkingCycles
receipt: slow test 10.56s amadan.net/oficina/equipo/internal/thintest TestBrowserPlacementQuestionAndPending
receipt: slow test 8.53s amadan.net/oficina/equipo/internal/thintest TestBrowserRhythm
machine: 32 CPUs, load 9.31, cpu waiting 4.55%, memory waiting 0.00%, io waiting 0.03%
--- 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 (53s)
ok ./internal/headless TestHeadlessConnections/A5_cancel_and_sign_out 4.60s
ok ./internal/headless TestHeadlessConnections/C4_claude_sign_in 1.15s
ok ./internal/headless TestHeadlessConnections/C5_engineering_failover 9.03s
ok ./internal/headless TestHeadlessConnections/C5_engineering_to_codex 8.48s
ok ./internal/headless TestHeadlessConnections/C5_engineering_waits 27.35s
+ 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 (56s)
ok ./internal/headless TestHeadlessConnections/C5_review_auth 12.64s
ok ./internal/headless TestHeadlessConnections/C5_review_failover 11.01s
ok ./internal/headless TestHeadlessConnections/C5_review_on_codex 10.03s
ok ./internal/headless TestHeadlessConnections/C5_review_other_family_first 19.74s
+ go test -tags testbuild -timeout 15m -v -run '^TestMixedVersions$' ./internal/headless (21s)
ok ./internal/headless TestMixedVersions 18.55s
+ go test -tags testbuild -timeout 15m -v -run '^TestCheckSandboxDeniedPathsTampering$' ./internal/runner/checks (2s)
ok ./internal/runner/checks TestCheckSandboxDeniedPathsTampering 0.80s
+ go test -tags testbuild -timeout 15m -v -run '^TestRunnerCancelAndSupersede$' ./internal/runner/thin (2s)
ok ./internal/runner/thin TestRunnerCancelAndSupersede 0.05s
quarantine: 0 flaked (passed on the retry), 0 failed
machine: 32 CPUs, load 67.15, cpu waiting 37.85%, memory waiting 0.00%, io waiting 0.69%
--- 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.179s 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.913s amadan.net/oficina/equipo/internal/runner/checks
receipt: slow package 225ms amadan.net/oficina/equipo/internal/runner/provider/claude
receipt: slow package 104ms amadan.net/oficina/equipo/internal/runner/provider/codex
receipt: slow package 2ms amadan.net/oficina/equipo/internal/runner/provider
receipt: slow package 1ms amadan.net/oficina/equipo/internal/runner/provider/opencode
receipt: slow test 5.63s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture
receipt: slow test 1.81s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths
receipt: slow test 350ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache
receipt: slow test 220ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier
receipt: slow test 120ms 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.562s 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.133s amadan.net/oficina/equipo/internal/runner/containment
receipt: slow test 280ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReadOnlyScratch
receipt: slow test 220ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryUnavailableProof
receipt: slow test 160ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceDirectPolicyAdmission
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceReapsOrphans
receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/containment TestNamespaceRecoveryMalformedRecord
machine: 32 CPUs, load 20.80, cpu waiting 11.42%, memory waiting 0.00%, io waiting 1.32%
--- 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.6%, load 26.51
shard 25: make runner-dead-references lanes-check build vet fmt-check spacing budget migration-check
python3 scripts/runner-dead-references.py
reference scan: 2664 text files, 3210 matches, 0 failures
python3 scripts/ci-test.py check
lanes: 18 lanes and 5 browser lanes run every test once; 20-check@29
CGO_ENABLED=0 go build ./...
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o /dev/null ./cmd/equipo-runner
go vet ./...
go vet -tags testbuild ./internal/runner/thin ./internal/headless
GOOS=darwin GOARCH=arm64 go vet ./cmd/equipo-runner/... ./internal/runner/... ./internal/wire/... ./internal/release/...
go tool fiesta spacing -skip tokens.css internal/equipo/static
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget size
budget size: 91 directories within budget
CGO_ENABLED=0 go test ./internal/equipo -run '^TestMigrationModels$' -count=1
ok amadan.net/oficina/equipo/internal/equipo 2.453s
machine: 32 CPUs, load 65.96, cpu waiting 41.14%, memory waiting 0.00%, io waiting 0.49%
--- 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.6%, load 26.51
shard 26: make staticcheck
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -tags browser,perf,testbuild ./...
machine: 32 CPUs, load 67.15, cpu waiting 36.43%, memory waiting 0.00%, io waiting 0.72%
--- shard 27 of 29 ---
RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard
stagger: govulncheck started 30s late; cpu waiting 40.6%, load 26.51
shard 27: make govulncheck
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 ./...
=== Symbol Results ===
No vulnerabilities found.
Your code is affected by 0 vulnerabilities.
This scan also found 0 vulnerabilities in packages you import and 3
vulnerabilities in modules you require, but your code doesn't appear to call
these vulnerabilities.
Use '-show verbose' for more details.
machine: 32 CPUs, load 39.84, cpu waiting 24.09%, memory waiting 0.00%, io waiting 0.94%
--- 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.6%, load 26.51
shard 28: make gitleaks
[90m6:24PM[0m [32mINF[0m [1mUnknown SCM platform. Use --platform to include links in findings.[0m [36mhost=[0mamadan.net
[90m6:25PM[0m [32mINF[0m [1m1120 commits scanned.[0m
[90m6:25PM[0m [32mINF[0m [1mscanned ~64925716 bytes (64.93 MB) in 25.3s[0m
[90m6:25PM[0m [33mWRN[0m [1mleaks found: 1[0m
exit status 1
machine: 32 CPUs, load 67.15, cpu waiting 37.85%, memory waiting 0.00%, io waiting 0.69%
make[1]: *** [Makefile:214: gitleaks] Error 1
make: *** [Makefile:113: ci-shard] Error 2
amadan: step check shard 28 of 29 failed: exit status 2
amadan: job failed at step check shard 28 of 29 — its output is above, not at the tail of this log
diff --git a/.rastrillo/budgets.txt b/.rastrillo/budgets.txt| index e56c35ff..e0f0afb0 100644 |
| --- a/.rastrillo/budgets.txt |
| +++ b/.rastrillo/budgets.txt |
| @@ -14,8 +14,8 @@ perf GET /* skip Unknown private paths render 404; this fallback contains no scr |
| time internal/equipo/team 60s Plan 3 loaded CI measured 45.985s; niced serial reruns measured 18.079s and 22.031s. Keep migration, recovery, accounting and concurrency assertions; 60s leaves 30 percent headroom above loaded CI. |
| time internal/equipotest 300s Final fix package rerun measured 187.035s (review 172.4s); 300s gives 60 percent headroom for HTTP, sandbox, authority and final regression coverage. |
| -size internal/equipo 22101 - Reviewed native Projects and API copy plus Engineering stop reasons; measured 22101 source lines. |
| -size internal/wire 6828 - Project cursor, typed placement marker and Engineering stop reasons; measured 6828 source lines. |
| +size internal/equipo 22105 - Proposal failure detail and Luna-reviewed copy; measured 22105 source lines. |
| +size internal/wire 6830 - Successful-push proposal diagnostic in existing Reason fields; measured 6830 source lines. |
| size internal/equipotest - 12017 Task 21 repairs historical migration and conversation fixtures after Plan 3, and the Rastrillo upgrade contract comparing served assets with what Assets serves; measured 0/12017 source/test lines. |
| time internal/runner/checks 90s CI worker measured 44.553s (44.6s rounded); |
| time internal/runner 330s Plan 3 CI repair measured 292.120s for the full package (controller CI 472.184s). |
| @@ -30,7 +30,7 @@ size internal/runner/provider 5715 - Fable follow-up: base and diagnostic gates, |
| time internal/plan3test 300s Initial cap for combined browser and runner acceptance; measure at both usable stops. |
| -size internal/plan3test - 11898 Reviewed API, native Projects and Engineering stop reason acceptance lists; measured 11898 test lines. |
| +size internal/plan3test - 11899 Add the controller-approved Luna proposal copy key to release inventory; measured 11899 test lines, source cap unchanged. |
| time internal/runner/forge 20s Plan 3 CI repair measured 10.527s for the full package (controller CI 10.407s). |
| time internal/runner/provider 15s Plan 3 CI repair measured 10.346s for the full package (controller CI 10.709s); |
| @@ -38,7 +38,7 @@ time internal/runner/provider 15s Plan 3 CI repair measured 10.346s for the full |
| perf GET /releases/* skip Verified runner release file downloads, not browser GET screens. |
| perf GET /install.sh skip Mac runners: the one-line bootstrap a terminal pipes to sh, not a browser screen. |
| time internal/runner/containment 15s Plan 3 loaded CI measured 10.817s; |
| -size internal/runner/thin 28436 22414 Forge router, explicit read/push use, proposal seam and mutation regressions; measured 28436 source and 22414 test lines. |
| +size internal/runner/thin 28446 22619 Forge review fixes, real fileForge router coverage, authority and proposal regressions; measured 28446 source and 22619 test lines. |
| time internal/thintest 240s Thin contract and page tests, the Assistant's and the models' included, share one harness. Measured 202s on a shared 16 CPU box (2026-11-13); CI runs two lanes. |
| time internal/runner/mac 30s Mac runners (Darwin worker): real process groups killed after a grace and proven gone (SIGTERM, SIGKILL, the marker sweep), and the probes run end to end with fake srt and xcodebuild, P6 killing. |
| time internal/runner/thin 45s Thin v1 slice 4 review: real git repositories for the merge and squash checks, a stalled fetch, and a 16 MiB candidate streamed through the review diff and the checks pack (about 5s). |
| @@ -56,7 +56,7 @@ perf GET /api/v1/tasks/{id} skip Thin v1 person API: bearer-only JSON for device |
| perf GET /api/v1/assistant/snapshot skip Assistant person API: bearer-only JSON for Base's chat, not a browser screen. |
| perf GET /api/v1/assistant/messages skip Assistant person API: bearer-only JSON for Base's chat, not a browser screen. |
| perf GET /api/v1/assistant/events skip Assistant event stream (Server-Sent Events), bearer-only and long-lived; not a screen. |
| -size internal/equipo/chat 33345 8333 Project cursor and typed-card marker with native review regression; measured 33345/8333 source/test lines. |
| +size internal/equipo/chat 33345 8382 Preserve proposal diagnostics on successful local and worker publication; measured 8382 test lines, source cap unchanged. |
| perf GET /api/v1/questions/{id} skip Thin v1 person API: bearer-only JSON for devices; the browser reads questions on /tasks/{id}. |
| perf GET /api/v1/steps/{id}/log skip Thin v1 person API: bearer-only JSON for devices; the browser shows the log tail on /tasks/{id}. |
| perf GET /api/v1/connections/preference skip Connections slice 1 person API: bearer-only JSON for devices; the browser shows the preference on /conversation/connections. |
diff --git a/docs/superpowers/plans/2026-11-23-github-seam-assumptions.md b/docs/superpowers/plans/2026-11-23-github-seam-assumptions.md| index 22195898..b0e2638e 100644 |
| --- a/docs/superpowers/plans/2026-11-23-github-seam-assumptions.md |
| +++ b/docs/superpowers/plans/2026-11-23-github-seam-assumptions.md |
| @@ -11,14 +11,14 @@ registered, and recognition by forgekey alone grants no work or access. |
| | Credential files | `internal/runner/config.go:46`; `internal/runner/config.go:46`; `internal/runner/forge/credential_file.go:19`; `internal/runner/workspace/workspace.go:45`; `internal/runner/workspace/workspace.go:59`; `internal/runner/thin/run.go:197`; `internal/runner/thin/forge.go:106` | Same standing agent file, optional repository overrides, CLI and sandbox exclusions. Real hub is registered behind Forges; no GitHub credentials. | |
| | Clone and fetch | `internal/runner/thin/forge.go:153`; `internal/runner/thin/forge.go:170`; `internal/runner/thin/forge.go:411`; `internal/runner/thin/forge.go:491`; `internal/runner/thin/forge.go:631`; `internal/runner/thin/access_catalog.go:91`; `internal/runner/workspace/workspace.go:33` | Explicit Read or Push authority; username defaults to x. Existing URLs/passwords unchanged; read grants cannot write. | |
| | Reachability | `internal/runner/thin/forge.go:101`; `internal/runner/thin/forge.go:187`; `internal/runner/thin/access_catalog.go:18`; `internal/runner/thin/index.go:123`; `internal/wire/frames.go:348`; `internal/runner/thin/run.go:339`; `internal/wire/frames.go:318` | Same 55-second ETag hub list, checked read grants, 100-repository shallow catalog and hello fields. Router combines only each forge's own host entries. | |
| -| Branch push | `internal/runner/thin/engineer.go:434`; `internal/runner/forge/branch.go:216`; `internal/wire/tasks.go:627`; `internal/runner/thin/engineer.go:495`; `internal/runner/thin/relay.go:485`; `internal/runner/thin/forges.go:166` | Same equipo branch rule, default protection and lease confirmation. Propose follows successful pushes and returns the hub branch URL without a request. Initial main uses Push authority too. | |
| -| Hosted CI | `internal/runner/forge/ci.go:66`; `internal/runner/forge/ci.go:81`; `internal/runner/thin/forge.go:334`; `internal/runner/thin/judge_hosted.go:19`; `internal/runner/thin/judge.go:233`; `internal/runner/thin/forges.go:129` | HostedCI shape and hub transport unchanged; router forwards per host. Feedback stays separate from trusted checks certificates. | |
| -| Merge | `internal/runner/thin/mergestep.go:44`; `internal/runner/forge/merge.go:353`; `internal/runner/forge/merge.go:109`; `internal/runner/forge/merge.go:129`; `internal/runner/thin/forge.go:320`; `internal/runner/thin/mergestep.go:155`; `internal/wire/tasks.go:1026`; `internal/runner/thin/merge.go:118` | Only request/result type names lose Hub; every field and hub response/reason stays. Plain-git merge watch unchanged. | |
| +| Branch push | `internal/runner/thin/engineer.go:434`; `internal/runner/forge/branch.go:216`; `internal/wire/tasks.go:627`; `internal/runner/thin/engineer.go:497`; `internal/runner/thin/relay.go:485`; `internal/runner/thin/forges.go:174` | Same equipo branch rule, default protection and lease confirmation. Propose follows successful pushes and returns the hub branch URL without a request. Initial main uses Push authority too. Proposal failure preserves push success with a fixed diagnostic. | |
| +| Hosted CI | `internal/runner/forge/ci.go:66`; `internal/runner/forge/ci.go:81`; `internal/runner/thin/forge.go:334`; `internal/runner/thin/judge_hosted.go:19`; `internal/runner/thin/judge.go:233`; `internal/runner/thin/forges.go:137` | HostedCI shape and hub transport unchanged; router forwards per host and keeps refusal sentinels. Feedback stays separate from trusted checks certificates. | |
| +| Merge | `internal/runner/thin/mergestep.go:44`; `internal/runner/forge/merge.go:353`; `internal/runner/forge/merge.go:109`; `internal/runner/forge/merge.go:129`; `internal/runner/thin/forge.go:320`; `internal/runner/thin/mergestep.go:155`; `internal/wire/tasks.go:1027`; `internal/runner/thin/merge.go:118` | Only request/result type names lose Hub; every field and hub response/reason stays. Plain-git merge watch unchanged. | |
| | Repository creation | `internal/runner/thin/bridge.go:83`; `internal/runner/thin/forge.go:279`; `internal/runner/thin/forge.go:543` | Existing hub POST and first-commit behavior; no GitHub creation. Shared new-name validator preserves hub rules. | |
| | Project add and star | `internal/equipo/chat/http.go:89`; `internal/equipo/chat/http.go:86`; `internal/equipo/chat/projects.go:479`; `internal/equipo/chat/tools.go:756`; `internal/equipo/chat/stars.go:230`; `internal/equipo/app.go:328` | Hub allowlist and owner checks unchanged. Spec's missing device-star route was already delivered by the projects slice; PUT /api/v1/projects/{id}/star exists on this base. | |
| | Access requests | `internal/equipo/chat/access_request.go:12`; `internal/equipo/chat/tools.go:1013`; `internal/runner/thin/access_forge.go:28`; `internal/runner/thin/access_forge.go:44`; `internal/wire/access.go:63`; `internal/equipo/templates/chat.html:23`; `internal/equipo/chat_page.go:102` | AccessForge and existing command/link validation unchanged. Hostless access targets still belong to the hub; router delegates only to its hub service. | |
| -| Links | `internal/equipo/chat/tasks.go:406`; `internal/equipo/work_pages.go:220`; `internal/equipo/task_merge.go:14` | Hub branch and repository URLs and approved merge-reference host unchanged. ProposalRef is local only; no proposal wire field yet. | |
| -| Prompts | `internal/runner/thin/claude.go:874`; `internal/runner/thin/engineer.go:604`; `internal/runner/thin/judge.go:984` | Shared display function retains exactly the old hub-prefix removal. Future non-hub names keep their host visible. | |
| +| Links | `internal/equipo/chat/tasks.go:407`; `internal/equipo/work_pages.go:220`; `internal/equipo/task_merge.go:14` | Hub branch and repository URLs and approved merge-reference host unchanged; branch links share forgekey.HubBranchURL. ProposalRef is local only; no proposal wire field yet. | |
| +| Prompts | `internal/runner/thin/claude.go:874`; `internal/runner/thin/engineer.go:606`; `internal/runner/thin/judge.go:984` | Shared display function retains exactly the old hub-prefix removal. Future non-hub names keep their host visible. | |
| | Audit | `internal/runner/forge/publisher.go:376`; `internal/runnerproto/report_validation.go:68`; `internal/equipo/chat/mergeauth.go:65`; `internal/equipo/chat/merge.go:224` | Legacy publication provider and every merge decision audit unchanged. | |
| | Previews | `internal/runner/thin/preview.go:52`; `internal/runner/thin/preview_devbox.go:35` | No forge dependency added. Existing runner tree, devbox and Carloku paths untouched. | |
| | Old engine | `internal/runner/forge/publisher.go:51`; `internal/runner/forge/description.go:28`; `internal/runner/forge/description_transport.go:31`; `internal/runner/runtime_workflow.go:138` | Still hub-only; no GitHub extension. Key validation delegates to the same shared hub grammar. | |
diff --git a/docs/superpowers/plans/2026-11-23-github-seam.md b/docs/superpowers/plans/2026-11-23-github-seam.md| index 06cb9d16..5fa10f94 100644 |
| --- a/docs/superpowers/plans/2026-11-23-github-seam.md |
| +++ b/docs/superpowers/plans/2026-11-23-github-seam.md |
| @@ -27,3 +27,16 @@ No device API or runner wire additions are planned. New GitHub lease and |
| proposal wire fields, a protocol bump and older-runner refusal tests belong |
| with the later implementation that can dispatch GitHub work. This slice must |
| continue to reject GitHub work at hub admission boundaries. |
| + |
| +## Fable review follow-up, 2026-11-23 |
| + |
| +On the same branch after 176d61cb, add focused regressions before fixing: |
| +truncated host keys, real fileForge routing, git username redaction and Heads, |
| +per-call push authority, distinct hub identity, proposal failure after a good |
| +push, operation error identity, and the existing branch-link spelling. |
| +Break each guard and record the killing test. Preserve successful pushes and |
| +carry only proposal_failed in the existing Reason field, as the controller |
| +approved. Add Luna's approved fragment to copy.go and test sentence rendering. |
| +Record the organisation manifest flow and explicitly leave the uncaptured |
| +workflow refusal cause open. Repeat gates, full suites, postcommit reference |
| +scan and Linux CI, without rewriting existing commits. |
diff --git a/docs/superpowers/plans/CONTROLLER-REPORT-github-seam.md b/docs/superpowers/plans/CONTROLLER-REPORT-github-seam.md| index 2be5ceb5..5fa73ea3 100644 |
| --- a/docs/superpowers/plans/CONTROLLER-REPORT-github-seam.md |
| +++ b/docs/superpowers/plans/CONTROLLER-REPORT-github-seam.md |
| @@ -189,3 +189,135 @@ macOS release-packaging failures (`TestRunnerReleaseContractPackaging` and |
| `TestReleasePinsAndProvenance`): their isolated PATH selects a Python whose |
| hashlib has no file_digest. The project binding tests passed. Those packaging |
| lanes passed on Linux in the first CI run; no unrelated packaging code changed. |
| + |
| +## Fable review follow-up after 176d61cb |
| + |
| +The fixes are new commits on github/seam. Earlier commits and all tests that |
| +predate this branch retain their names and assertions. Changes to test code |
| +in this follow-up are to seam tests introduced on this branch, new regression |
| +files, and the explicitly approved copy-release inventory list. |
| + |
| +### Findings and behavior |
| + |
| +- P2-1: Parse rejects two-part keys beginning with either known host. Both |
| + amadan.net/a and github.com/a are rejected by key and no-fallback tests. |
| + Equal no longer equates them with a prefixed hub key; Normalize preserves |
| + the invalid input and parsing it still rejects it. |
| +- P2-2: a real NewFileForge, wrapped in NewForges, talks to the fake hub for |
| + read and push credentials, merge, hosted CI/status, and access request/poll. |
| + The test asserts its host and the exact authenticated HTTP paths. |
| +- P2-3: push redaction and Clones.Heads use Remote.Username(). The redaction |
| + regression uses x-access-token with a deliberately short fixture password |
| + so the generic long-token scrubber cannot hide a missing explicit scrub. |
| + It checks both raw and encoded values in PushDetail's resulting log tail. |
| +- Push authority: both Engineering and relay tests assert exactly one Push |
| + credential request. Changing either call to Read fails its regression. |
| +- Hub identity: fake forges now have different agents and create namespaces. |
| + Routing either hostless identity call to GitHub fails the test. |
| +- Proposal failure: a successful push remains successful and is not retried. |
| + The existing Reason field carries only proposal_failed. The instance keeps |
| + the diagnostic for local and worker publication and the successful step |
| + detail renders the approved fragment. No raw forge error reaches a person. |
| + ProposalRef remains local and absent on error; there is no new wire field. |
| +- Error identities: rejected Remote, Exists/Create, Merge, CIHosted and |
| + CIStatus keep their operation sentinel as well as ErrKey through errors.Is. |
| + Invalid Use and duplicate registration have separate ErrForgeUse and |
| + ErrForgeDuplicate identities. Neither is ErrKey. |
| +- Branch links: chat.BranchURL and hub Propose share forgekey.HubBranchURL, |
| + preserving the literal branch slash in the existing hub URL spelling. |
| +- Probe: recorded the controller-confirmed organisation manifest flow, |
| + with the external manifest_server.py's request/callback logic. The saved |
| + workflow report has only git's generic final stderr line, not the remote |
| + cause. Capturing the exact workflows-permission refusal remains open, |
| + alongside the complete merge table and CARLOS egress. |
| + |
| +### Tests first |
| + |
| +Focused tests ran with GOTOOLCHAIN=go1.26.11, CGO_ENABLED=0, testbuild and a |
| +physical TMPDIR. Before fixes they failed on the two malformed host keys, |
| +Equal/Normalize identity, router fallback, operation error identities, |
| +escaped proposal URL, Heads' x username, and the non-default encoded header |
| +remaining in PushDetail. Engineering requested Push three times after a |
| +proposal error; relay returned Pushed:false / push_failed after one good |
| +push. The rendering regression had no diagnostic text. After repairing the |
| +chat test's missing RunnerRole fixture, its local path also demonstrated |
| +that the instance discarded the diagnostic, before that path was fixed. |
| + |
| +### Copy review |
| + |
| +The controller supplied Luna's replacement on 2026-11-23, message |
| +`e27ea4c2-0708-4c63-9507-febfb7d1d032`: |
| + |
| +> "work.reason.proposal_failed": "the branch was pushed, but the review request could not be created", // COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) |
| + |
| +The original proposed complete sentence did not fit the fragment grammar |
| +of work.reason.*. Luna also replaced "proposal" with "review request". |
| +The key was marked pending through copy-status.py, then recorded with the |
| +controller-authorized Luna marker and a bounded acceptedForgeSeam list. |
| +No accept command was run. Tests exercise reasonLine, "Stopped: %s", and |
| +successful-step detail; each rendered sentence has one final period. |
| +This is the only new app copy. ErrForgeUse and ErrForgeDuplicate are internal |
| +configuration diagnostics, not person-facing API text. |
| + |
| +### Review mutation checks |
| + |
| +All 26 review mutations failed a runtime assertion, then were restored. No |
| +compile failure counts as a kill. In particular, Fable's five surviving |
| +mutations (production Host, both Push call sites, Agent and CreateIn) now die. |
| +The swallowed-error mutation dies in both publication paths. These 26 checks |
| +are additional to the 29 recorded in the earlier implementation. |
| + |
| +Each command was `go test -tags testbuild ./<package> -run <test> -count=1`, |
| +with the pinned environment above. |
| + |
| +| # | Deliberate mutation | Package suffix | Killing test | |
| +| --- | --- | --- | --- | |
| +| 1 | reject truncated known host | `internal/wire/forgekey` | `TestRejectInvalidKeys|TestNormalizationAndEqualityAgree` | |
| +| 2 | production host identity | `internal/runner/thin` | `TestRouterWithProductionFileForge` | |
| +| 3 | push detail encoded username | `internal/runner/forge` | `TestPushDetailScrubsRemoteUsername` | |
| +| 4 | push detail raw password | `internal/runner/forge` | `TestPushDetailScrubsRemoteUsername` | |
| +| 5 | heads username | `internal/runner/thin` | `TestHeadsUsesRemoteUsername` | |
| +| 6 | engineering push authority | `internal/runner/thin` | `TestEngineeringProposesAfterPush` | |
| +| 7 | relay push authority | `internal/runner/thin` | `TestRelayProposesAfterPush` | |
| +| 8 | hub agent identity | `internal/runner/thin` | `TestForgesCatalogAndHubIdentity` | |
| +| 9 | hub create namespace identity | `internal/runner/thin` | `TestForgesCatalogAndHubIdentity` | |
| +| 10 | engineering proposal diagnostic | `internal/runner/thin` | `TestEngineeringProposalFailureKeepsPush` | |
| +| 11 | engineering successful push preserved | `internal/runner/thin` | `TestEngineeringProposalFailureKeepsPush` | |
| +| 12 | relay proposal diagnostic | `internal/runner/thin` | `TestRelayProposalFailureKeepsPush` | |
| +| 13 | relay successful push preserved | `internal/runner/thin` | `TestRelayProposalFailureKeepsPush` | |
| +| 14 | remote sentinel | `internal/runner/thin` | `TestRouterRefusalsKeepOperationIdentity` | |
| +| 15 | exists sentinel | `internal/runner/thin` | `TestRouterRefusalsKeepOperationIdentity` | |
| +| 16 | create sentinel | `internal/runner/thin` | `TestRouterRefusalsKeepOperationIdentity` | |
| +| 17 | merge sentinel | `internal/runner/thin` | `TestRouterRefusalsKeepOperationIdentity` | |
| +| 18 | hosted CI sentinel | `internal/runner/thin` | `TestRouterRefusalsKeepOperationIdentity` | |
| +| 19 | CI status sentinel | `internal/runner/thin` | `TestRouterRefusalsKeepOperationIdentity` | |
| +| 20 | invalid use identity sentinel | `internal/runner/thin` | `TestRouterRefusalsKeepOperationIdentity` | |
| +| 21 | duplicate identity sentinel | `internal/runner/thin` | `TestRouterRefusalsKeepOperationIdentity` | |
| +| 22 | branch link spelling | `internal/runner/thin` | `TestHubProposalIsOnlyALink` | |
| +| 23 | local step diagnostic | `internal/equipo/chat` | `TestProposalFailureKeepsSuccessfulPublication` | |
| +| 24 | worker step diagnostic | `internal/equipo/chat` | `TestProposalFailureKeepsSuccessfulPublication` | |
| +| 25 | step diagnostic displayed | `internal/equipo` | `TestProposalFailureDetailAndPunctuation` | |
| +| 26 | wire reason accepted | `internal/equipo/chat` | `TestProposalFailureKeepsSuccessfulPublication` | |
| + |
| +### Review verification |
| + |
| +Passed after restoration: fmt-check, gitleaks (1119 commits, no leaks), budget, |
| +migration-check, copy-release-check, lanes-check, spacing, TestPersonAPI, |
| +TestPlan3Release, TestBudgetRecordsAreShort and native fixtures (11 API, |
| +3586 markdown and 32000 seeded differential cases). |
| + |
| +Full suites passed: equipo 60.262s, chat 6.374s, thintest 208.968s, wire 0.367s, |
| +forgekey 0.249s and wireschema 0.739s. The focused thin forge, merge, hosted CI, |
| +access, proposal, router, username and initialization suite passed in 65.267s. |
| +The full runner tree was run with a four-minute per-package bound. Forge |
| +passed in 96.960s and workspace in 63.874s. As on the initial seam run, the |
| +Mac cannot pass the Linux containment/provider and host-policy fixtures; |
| +thin reached the four-minute timeout. These are not claimed as local passes. |
| +No platform guards or existing tests were weakened. Linux CI is the full |
| +runner gate. |
| + |
| +The six size exemptions changed only to measured counts: equipo 22105 source, |
| +wire 6830 source, plan3test 11899 test, thin 28446 source / 22619 test, and |
| +chat 8382 test with its existing source cap. Reasons name the diagnostic and |
| +regressions; no timing budget changed. Existing test files from main have no |
| +new substitutions in this review beyond the approved copy inventory list. |
diff --git a/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md b/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md| index 724dd0b8..0f12520d 100644 |
| --- a/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md |
| +++ b/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md |
| @@ -6843,6 +6843,7 @@ records remain unchanged. |
| | `projects.remove_selection` | Remove project | Copy specialist | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) | |
| | `work.reason.no_further_changes` | it made no further changes to the candidate | Task page: fills "Engineering stopped: %s" when an Engineering step ended no_changes and an earlier round already pushed a candidate (stop reasons, 2026-11-23) | Runtime; COPY APPROVED (Paul, 2026-11-23, copy-review eavqvil43jg2zs3wxx3kxp3bpm, unchanged) | |
| | `work.reason.tools_refused` | Equipo refused the commands it needed to run | Task page: fills "Engineering stopped: %s" when an Engineering step committed nothing after Equipo refused tool requests it made (stop reasons, 2026-11-23) | Runtime; COPY APPROVED (Paul, 2026-11-23, copy-review eavqvil43jg2zs3wxx3kxp3bpm, unchanged) | |
| +| `work.reason.proposal_failed` | the branch was pushed, but the review request could not be created | Successful push diagnostic (GitHub seam, 2026-11-23; Luna, house rules) | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) | |
| ## Task 21 |
diff --git a/docs/superpowers/specs/2026-11-22-equipo-github-connector-probe.md b/docs/superpowers/specs/2026-11-22-equipo-github-connector-probe.md| index dfdaba24..2d641dca 100644 |
| --- a/docs/superpowers/specs/2026-11-22-equipo-github-connector-probe.md |
| +++ b/docs/superpowers/specs/2026-11-22-equipo-github-connector-probe.md |
| @@ -11,6 +11,26 @@ Scripts outside this repository: `agent-tools/github-probe/probe.py` and |
| fresh run saved at 2026-11-23 17:16:51 UTC. The Actions report was saved at |
| 17:16:21 UTC. Credentials, JWTs and installation tokens are deliberately absent. |
| +## Organisation manifest flow: confirmed |
| + |
| +The controller confirms that private App `oficina-equipo-probe-acbafc`, |
| +ID `5891080`, was created through the manifest flow in organisation |
| +`oficina-equipo-test` and installed there on `probe` and `probe-other`. |
| +The saved full report confirms the installation lookup returned `200`, |
| +with exactly G4 permissions and no webhook events. It does not retain |
| +creation response bodies or the conversion code. |
| + |
| +The reviewed external `agent-tools/github-probe/manifest_server.py` binds |
| +only loopback. Its form posts the private App manifest with G4 permissions, |
| +an inactive webhook and empty default events to |
| +`https://github.com/organizations/oficina-equipo-test/settings/apps/new`. |
| +The callback checks its random state and the one-time code before |
| +`POST https://api.github.com/app-manifests/{code}/conversions`. |
| +It writes the returned credentials privately with mode 0600 and redirects |
| +to `https://github.com/apps/{slug}/installations/new`. Its creation response log contains only |
| +the App ID and slug. Neither credentials nor conversion values were read |
| +or copied for this record. |
| + |
| ## Calls and checks |
| All REST calls use `https://api.github.com`, API version `2022-11-28`, Accept |
| @@ -175,5 +195,20 @@ check_runs_on_commit: 200 [('check', 'completed', 'success')] |
| - Exercise every row of the merge response table, including review, branch |
| protection, CI and merge queue cases, in the later merge implementation. |
| - Confirm the Equipo instance on CARLOS can reach `api.github.com`. |
| +- Capture the workflow-push refusal cause line, as detailed below. |
| + |
| +The completed checks above do not claim these remaining gates passed. |
| + |
| +### Workflow refusal cause still to capture |
| + |
| +The saved report retains only: |
| + |
| +```text |
| +error: failed to push some refs to 'https://github.com/oficina-equipo-test/probe.git' |
| +``` |
| -The completed checks above do not claim these two remaining gates passed. |
| +It proves a nonzero push exit, but does not retain GitHub's cause line. |
| +Capturing that exact remote refusal, specifically the missing workflows |
| +permission, remains open. The complete merge table and CARLOS egress remain |
| +open as recorded above. The organisation manifest flow and Actions on an |
| +App push are confirmed. |
diff --git a/internal/equipo/chat/proposal_seam_test.go b/internal/equipo/chat/proposal_seam_test.go| new file mode 100644 |
| index 00000000..de62655d |
| --- /dev/null |
| +++ b/internal/equipo/chat/proposal_seam_test.go |
| @@ -0,0 +1,49 @@ |
| +package chat |
| + |
| +import ( |
| + "amadan.net/oficina/equipo/internal/wire" |
| + "context" |
| + "gorm.io/gorm" |
| + "strings" |
| + "testing" |
| +) |
| + |
| +func TestProposalFailureKeepsSuccessfulPublication(t *testing.T) { |
| + for _, worker := range []bool{false, true} { |
| + t.Run(map[bool]string{false: "local", true: "worker"}[worker], func(t *testing.T) { |
| + r := placementRig(t) |
| + r.s.authority.RunnerRole = func(*gorm.DB, string) (string, error) { return wire.RolePrimary, nil } |
| + st := placementEdgeStep("s_proposal") |
| + st.CandidateSHA = strings.Repeat("a", 40) |
| + if worker { |
| + st.State = wire.StepDone |
| + st.Terminated = true |
| + st.Publication = wire.PublicationPending |
| + st.PublicationID = "pub_proposal" |
| + } |
| + if err := r.s.db.G.Create(&st).Error; err != nil { |
| + t.Fatal(err) |
| + } |
| + l := Lease{Runner: RunnerPrincipal{RunnerID: "RUNNER1", Person: hkOwner}, Protocol: wire.ProtocolCurrent} |
| + err := r.s.tx(context.Background(), func(tx *txn) error { |
| + if worker { |
| + return tx.published(l, &wire.PublishedReport{Publication: st.PublicationID, TaskID: st.TaskID, StepID: st.ID, Attempt: 1, CandidateSHA: st.CandidateSHA, Pushed: true, Reason: "proposal_failed"}) |
| + } |
| + return tx.stepReport(l, &wire.StepReport{TaskID: st.TaskID, StepID: st.ID, Attempt: 1, State: wire.StepDone, Termination: true, CandidateSHA: st.CandidateSHA, Pushed: true, Reason: "proposal_failed"}) |
| + }) |
| + if err != nil { |
| + t.Fatal(err) |
| + } |
| + var got stepRecord |
| + if err := r.s.db.G.First(&got, "id = ?", st.ID).Error; err != nil { |
| + t.Fatal(err) |
| + } |
| + if got.State != wire.StepDone || !got.Pushed || got.Reason != "proposal_failed" { |
| + t.Fatalf("successful push diagnostic: %+v", got) |
| + } |
| + if worker && got.Publication != wire.PublicationPublished { |
| + t.Fatal("publication failed", got.Publication) |
| + } |
| + }) |
| + } |
| +} |
diff --git a/internal/equipo/chat/tasks.go b/internal/equipo/chat/tasks.go| index 6a80e7da..f451ef62 100644 |
| --- a/internal/equipo/chat/tasks.go |
| +++ b/internal/equipo/chat/tasks.go |
| @@ -17,6 +17,7 @@ import ( |
| "amadan.net/oficina/equipo/internal/equipo/housekeeping" |
| "amadan.net/oficina/equipo/internal/equipo/mergegate" |
| "amadan.net/oficina/equipo/internal/wire" |
| + "amadan.net/oficina/equipo/internal/wire/forgekey" |
| "gorm.io/gorm" |
| ) |
| @@ -404,7 +405,7 @@ func TaskLink(id string) string { return "/tasks/" + id } |
| // BranchURL opens a task branch on Amadan. |
| func BranchURL(repo, branch string) string { |
| - return "https://" + repo + "?branch=" + branch |
| + return forgekey.HubBranchURL(repo, branch) |
| } |
| func (t *txn) attachments(projectID string) ([]wire.Attachment, error) { |
| @@ -1508,6 +1509,9 @@ func (t *txn) stepReport(l Lease, v *wire.StepReport) error { |
| // Pushed is the primary's word: for a worker's commit only the |
| // primary's published report sets it, and this report keeps it. |
| if role == wire.RolePrimary { |
| + if v.Reason == "proposal_failed" { |
| + s.Reason = v.Reason |
| + } |
| s.Pushed = true |
| } |
| s.Apple = v.Apple |
diff --git a/internal/equipo/chat/transfers.go b/internal/equipo/chat/transfers.go| index 0efdfdbc..40570913 100644 |
| --- a/internal/equipo/chat/transfers.go |
| +++ b/internal/equipo/chat/transfers.go |
| @@ -257,6 +257,9 @@ func (t *txn) published(l Lease, v *wire.PublishedReport) error { |
| } |
| if v.Pushed { |
| s.Pushed, s.Publication = true, wire.PublicationPublished |
| + if v.Reason == "proposal_failed" { |
| + s.Reason = v.Reason |
| + } |
| } else { |
| s.Publication = wire.PublicationFailed |
| switch v.Reason { |
diff --git a/internal/equipo/copy.go b/internal/equipo/copy.go| index b5a1e9f9..40979234 100644 |
| --- a/internal/equipo/copy.go |
| +++ b/internal/equipo/copy.go |
| @@ -923,6 +923,7 @@ var pageCopy = map[string]string{ |
| "work.reason.no_changes": "nothing needed changing", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context) |
| "work.reason.no_further_changes": "it made no further changes to the candidate", // COPY APPROVED (Paul, 2026-11-23, copy-review eavqvil43jg2zs3wxx3kxp3bpm, unchanged) |
| "work.reason.tools_refused": "Equipo refused the commands it needed to run", // COPY APPROVED (Paul, 2026-11-23, copy-review eavqvil43jg2zs3wxx3kxp3bpm, unchanged) |
| + "work.reason.proposal_failed": "the branch was pushed, but the review request could not be created", // COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23) |
| "work.reason.push_failed": "the push to Amadan failed", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context) |
| "work.reason.push_conflict": "the branch changed on Amadan", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context) |
| "work.reason.step_timeout": "it ran out of time", // COPY ACCEPTED FOR NOW (Paul, 2026-11-04; iterate in context) |
diff --git a/internal/equipo/proposal_seam_test.go b/internal/equipo/proposal_seam_test.go| new file mode 100644 |
| index 00000000..04a85bde |
| --- /dev/null |
| +++ b/internal/equipo/proposal_seam_test.go |
| @@ -0,0 +1,29 @@ |
| +package equipo |
| + |
| +import ( |
| + "amadan.net/oficina/equipo/internal/wire" |
| + "fmt" |
| + "strings" |
| + "testing" |
| +) |
| + |
| +func TestProposalFailureDetailAndPunctuation(t *testing.T) { |
| + const want = "The branch was pushed, but the review request could not be created." |
| + line := reasonLine("proposal_failed", "") |
| + stopped := fmt.Sprintf(copyText("work.stopped"), line) |
| + if line != want || stopped != "Stopped: "+want || strings.Count(line, ".") != 1 || strings.Count(stopped, ".") != 1 { |
| + t.Fatalf("reason %q, stopped %q", line, stopped) |
| + } |
| + task := wire.Task{ID: "tk1", Stage: wire.StageInProgress, Steps: []wire.Step{{Specialist: wire.SpecialistEngineering, State: wire.StepDone, Pushed: true, Reason: "proposal_failed", CandidateSHA: strings.Repeat("a", 40)}}} |
| + for _, it := range timelineOf(task, taskLineOf(task, "")) { |
| + if it.Kind == "stopped" { |
| + t.Fatal("successful push shown as stopped") |
| + } |
| + for _, text := range it.Text { |
| + if text == want { |
| + return |
| + } |
| + } |
| + } |
| + t.Fatal("successful step has no proposal diagnostic") |
| +} |
diff --git a/internal/equipo/work_views.go b/internal/equipo/work_views.go| index 2b2f626f..8a6c1691 100644 |
| --- a/internal/equipo/work_views.go |
| +++ b/internal/equipo/work_views.go |
| @@ -1133,6 +1133,9 @@ func timelineOf(t wire.Task, v taskLine) []timelineItem { |
| it := timelineItem{Kind: "step", What: title, Took: took(s), Headline: headline(s.Headline, s.Summary), Markdown: s.Summary, At: s.FinishedAt} |
| if s.Pushed { |
| it.Text = append(it.Text, fmt.Sprintf(copyText("work.tl.pushed"), short(s.CandidateSHA))) |
| + if s.Reason == "proposal_failed" { |
| + it.Text = append(it.Text, reasonLine(s.Reason, "")) |
| + } |
| } |
| out = append(out, it) |
| case wire.SpecialistChecks: |
diff --git a/internal/plan3test/plan3_release_test.go b/internal/plan3test/plan3_release_test.go| index c6788077..ea13c803 100644 |
| --- a/internal/plan3test/plan3_release_test.go |
| +++ b/internal/plan3test/plan3_release_test.go |
| @@ -198,11 +198,12 @@ func plan3CopyInventory(t *testing.T) { |
| // Paul, 2026-11-22: Luna verdicts and the controller clarification are this slice's review. |
| acceptedAPIErrors := slices.Contains([]string{"api.repo_not_allowed", "api.card_answered", "api.card_stale", "api.confirmation_required", "api.coordinator_busy", "api.hold_bar", "api.idempotency_conflict", "api.models_not_allowed", "api.not_active", "api.not_askable", "api.not_mergeable", "api.not_retryable", "api.question_ended", "api.runner_offline", "api.task_busy", "api.task_ended", "api.task_merging", "api.turn_ended"}, key) && strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23)") |
| acceptedNativeProjects := slices.Contains([]string{"projects.new_request", "projects.remove_selection"}, key) && strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23)") |
| + acceptedForgeSeam := key == "work.reason.proposal_failed" && strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23)") |
| acceptedCardNames := slices.Contains([]string{"projects.carried_selection", "projects.remember_name", "projects.name_to_remember", "projects.use_title", "docs/api/equipo-v1.md / Projects and starting a request"}, key) && strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY ACCEPTED BY DELEGATION (Luna, 2026-11-23)") |
| acceptedProjects := slices.Contains([]string{"projects.amadan", "projects.yours", "projects.can_add", "projects.add_reachable", "projects.names", "projects.names_hint", "projects.details", "projects.title", "projects.description", "projects.save", "projects.context", "projects.found", "projects.selected", "projects.owner_add", "projects.selection_lost", "projects.other", "projects.name_question", "projects.personal_names", "projects.forget_name", "docs/api/equipo-v1.md / Projects and starting a request"}, key) && strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY ACCEPTED BY DELEGATION (Luna, 2026-11-22)") |
| acceptedAgentAccess := slices.Contains([]string{"copyAgentConfig", "copyAgentForbidden", "copyAgentNotFound", "copyAgentUnavailable", "copyAgentTooLarge", "copyAgentInvalid", "copyAgentMedia", "copyAgentUnauthenticated", "agent.equipo_projects_list", "agent.equipo_tasks_list", "agent.equipo_task_get", "agent.equipo_needs_you", "docs/api/equipo-v1.md / Delegated read-only operations"}, key) && strings.HasSuffix(strings.TrimSuffix(cells[3], " |"), "COPY ACCEPTED BY DELEGATION (Luna, 2026-11-20)") |
| acceptedCopy := strings.TrimSuffix(cells[3], " |") == "COPY ACCEPTED BY DELEGATION (Copy, record-bound) sha256:"+copydesk.Hash(rows[key]) |
| - if !acceptedAPIErrors && !acceptedNativeProjects && !acceptedInjection && !acceptedMail && !acceptedPush && !acceptedAgentAccess && !acceptedProjects && !acceptedCardNames && !acceptedAccess && !acceptedPlacementEdges && !acceptedPlacement && !acceptedReportActions && !acceptedRoster && !acceptedCopy && !strings.Contains(cells[3], "COPY REVIEW REQUIRED") && !acceptedAll && !acceptedGuide && !acceptedRound2 && !acceptedStarter && !acceptedDelegation && !approvedPublish && !approvedAssistant && !approvedJobs && !approvedOficina && !approvedFailedReplies && !approvedStopReasons { |
| + if !acceptedForgeSeam && !acceptedAPIErrors && !acceptedNativeProjects && !acceptedInjection && !acceptedMail && !acceptedPush && !acceptedAgentAccess && !acceptedProjects && !acceptedCardNames && !acceptedAccess && !acceptedPlacementEdges && !acceptedPlacement && !acceptedReportActions && !acceptedRoster && !acceptedCopy && !strings.Contains(cells[3], "COPY REVIEW REQUIRED") && !acceptedAll && !acceptedGuide && !acceptedRound2 && !acceptedStarter && !acceptedDelegation && !approvedPublish && !approvedAssistant && !approvedJobs && !approvedOficina && !approvedFailedReplies && !approvedStopReasons { |
| t.Fatal("entry has no copy review status or applicable acceptance", key) |
| } |
| } |
diff --git a/internal/runner/forge/push_detail.go b/internal/runner/forge/push_detail.go| index 2c37c2d8..2795ce6e 100644 |
| --- a/internal/runner/forge/push_detail.go |
| +++ b/internal/runner/forge/push_detail.go |
| @@ -133,7 +133,7 @@ func pushAnswer(stdout, stderr string, remote *workspace.Remote) string { |
| } |
| text := strings.Join(lines, "\n") |
| if remote != nil && len(remote.GitPassword) >= 8 { |
| - text = strings.ReplaceAll(text, base64.StdEncoding.EncodeToString([]byte("x:"+remote.GitPassword)), "***") |
| + text = strings.ReplaceAll(text, base64.StdEncoding.EncodeToString([]byte(remote.Username()+":"+remote.GitPassword)), "***") |
| text = strings.ReplaceAll(text, remote.GitPassword, "***") |
| } |
| return runnerproto.RedactDetail(text, runnerproto.DetailLimit) |
diff --git a/internal/runner/forge/username_test.go b/internal/runner/forge/username_test.go| index fc0eb882..e518a4fe 100644 |
| --- a/internal/runner/forge/username_test.go |
| +++ b/internal/runner/forge/username_test.go |
| @@ -5,6 +5,7 @@ import ( |
| "encoding/base64" |
| "os" |
| "path/filepath" |
| + "strings" |
| "testing" |
| "amadan.net/oficina/equipo/internal/runner/workspace" |
| @@ -30,3 +31,13 @@ func TestBranchGitUsesRemoteUsername(t *testing.T) { |
| } |
| } |
| } |
| + |
| +func TestPushDetailScrubsRemoteUsername(t *testing.T) { |
| + remote := workspace.Remote{URL: "https://github.com/o/r", GitPassword: "abc12345", GitUsername: "x-access-token"} |
| + encoded := base64.StdEncoding.EncodeToString([]byte(remote.Username() + ":" + remote.GitPassword)) |
| + answer := pushAnswer("! rejected", "remote: diagnostic "+encoded+" "+remote.GitPassword, &remote) |
| + tail := PushDetail(&PushError{Op: "push", Answer: answer, Err: ErrPushUncertain}) |
| + if strings.Contains(tail, encoded) || strings.Contains(tail, remote.GitPassword) || !strings.Contains(tail, "diagnostic") { |
| + t.Fatalf("credentials leaked or detail lost: %q", tail) |
| + } |
| +} |
diff --git a/internal/runner/thin/engineer.go b/internal/runner/thin/engineer.go| index ced41ae4..ee0d9f89 100644 |
| --- a/internal/runner/thin/engineer.go |
| +++ b/internal/runner/thin/engineer.go |
| @@ -435,9 +435,6 @@ func (e *Engineer) publish(ctx context.Context, r stepRow, rep wire.StepReport) |
| Remote: func(ctx context.Context) (workspace.Remote, error) { return e.Forge.Remote(ctx, r.Repo, Push) }, |
| Confirm: e.confirmFor(r)}) |
| } |
| - if err == nil { |
| - _, err = e.Forge.Propose(ctx, Proposal{Repo: r.Repo, Branch: r.Branch}) |
| - } |
| if err == nil || errors.Is(err, forge.ErrPushRefused) || errors.Is(err, forge.ErrPushConflict) || ctx.Err() != nil { |
| break |
| } |
| @@ -451,6 +448,11 @@ func (e *Engineer) publish(ctx context.Context, r stepRow, rep wire.StepReport) |
| // The private repository stays until the instance has acked this |
| // report (Sweep): a crash before then reconciles from it. |
| rep.State, rep.Reason, rep.Pushed = wire.StepDone, "", true |
| + // A proposal is subsequent metadata, not the outcome of the push. |
| + // Its raw error may contain credentials and never enters the report. |
| + if _, proposalErr := e.Forge.Propose(ctx, Proposal{Repo: r.Repo, Branch: r.Branch}); proposalErr != nil { |
| + rep.Reason = "proposal_failed" |
| + } |
| case errors.Is(err, forge.ErrPushConflict): |
| rep.State, rep.Reason = wire.StepFailed, "push_conflict" |
| default: |
diff --git a/internal/runner/thin/forges.go b/internal/runner/thin/forges.go| index 075fbb1b..c2828e79 100644 |
| --- a/internal/runner/thin/forges.go |
| +++ b/internal/runner/thin/forges.go |
| @@ -2,7 +2,7 @@ package thin |
| import ( |
| "context" |
| - "net/url" |
| + "errors" |
| "slices" |
| "amadan.net/oficina/equipo/internal/runner/forge" |
| @@ -11,6 +11,11 @@ import ( |
| "amadan.net/oficina/equipo/internal/wire/forgekey" |
| ) |
| +// ErrForgeUse and ErrForgeDuplicate identify configuration errors separately |
| +// from a repository key rejected by routing. |
| +var ErrForgeUse = errors.New("invalid forge credential use") |
| +var ErrForgeDuplicate = errors.New("duplicate forge registration") |
| + |
| // Use distinguishes credential authority for reads and writes. |
| type Use uint8 |
| @@ -32,9 +37,12 @@ type Forges struct{ byHost map[string]Forge } |
| func NewForges(forges ...Forge) (*Forges, error) { |
| f := &Forges{byHost: make(map[string]Forge)} |
| for _, fg := range forges { |
| - if fg == nil || !forgekey.KnownHost(fg.Host()) || f.byHost[fg.Host()] != nil { |
| + if fg == nil || !forgekey.KnownHost(fg.Host()) { |
| return nil, forgekey.ErrKey |
| } |
| + if f.byHost[fg.Host()] != nil { |
| + return nil, ErrForgeDuplicate |
| + } |
| f.byHost[fg.Host()] = fg |
| } |
| return f, nil |
| @@ -55,25 +63,25 @@ func (f *Forges) route(repo string) (Forge, string, error) { |
| } |
| func (f *Forges) Remote(ctx context.Context, repo string, use Use) (workspace.Remote, error) { |
| if use != Read && use != Push { |
| - return workspace.Remote{}, forgekey.ErrKey |
| + return workspace.Remote{}, errors.Join(workspace.ErrGitPassword, ErrForgeUse) |
| } |
| fg, key, err := f.route(repo) |
| if err != nil { |
| - return workspace.Remote{}, err |
| + return workspace.Remote{}, errors.Join(workspace.ErrGitPassword, err) |
| } |
| return fg.Remote(ctx, key, use) |
| } |
| func (f *Forges) Exists(ctx context.Context, repo string) (bool, error) { |
| fg, key, err := f.route(repo) |
| if err != nil { |
| - return false, err |
| + return false, errors.Join(ErrNoCreate, err) |
| } |
| return fg.Exists(ctx, key) |
| } |
| func (f *Forges) Create(ctx context.Context, repo string) error { |
| fg, key, err := f.route(repo) |
| if err != nil { |
| - return err |
| + return errors.Join(ErrNoCreate, err) |
| } |
| return fg.Create(ctx, key) |
| } |
| @@ -88,7 +96,7 @@ func (f *Forges) Propose(ctx context.Context, p Proposal) (ProposalRef, error) { |
| func (f *Forges) Merge(ctx context.Context, repo, branch string, req forge.MergeRequest) (forge.MergeResult, error) { |
| fg, key, err := f.route(repo) |
| if err != nil { |
| - return forge.MergeResult{}, err |
| + return forge.MergeResult{}, errors.Join(forge.ErrMergeRefused, err) |
| } |
| return fg.Merge(ctx, key, branch, req) |
| } |
| @@ -129,7 +137,7 @@ func (f *Forges) CreateIn(ctx context.Context) []string { |
| func (f *Forges) CIHosted(ctx context.Context, repo string) (bool, error) { |
| fg, key, err := f.route(repo) |
| if err != nil { |
| - return false, err |
| + return false, errors.Join(forge.ErrCIRead, err) |
| } |
| if ci, ok := fg.(HostedCI); ok { |
| return ci.CIHosted(ctx, key) |
| @@ -139,7 +147,7 @@ func (f *Forges) CIHosted(ctx context.Context, repo string) (bool, error) { |
| func (f *Forges) CIStatus(ctx context.Context, repo, branch, logs string) (forge.CIStatus, error) { |
| fg, key, err := f.route(repo) |
| if err != nil { |
| - return forge.CIStatus{}, err |
| + return forge.CIStatus{}, errors.Join(forge.ErrCIRead, err) |
| } |
| if ci, ok := fg.(HostedCI); ok { |
| return ci.CIStatus(ctx, key, branch, logs) |
| @@ -168,5 +176,5 @@ func (*fileForge) Propose(_ context.Context, p Proposal) (ProposalRef, error) { |
| if err != nil || k.Host != forgekey.Hub || !wire.ValidTaskBranch(p.Branch) { |
| return ProposalRef{}, forgekey.ErrKey |
| } |
| - return ProposalRef{URL: "https://" + k.String() + "?branch=" + url.QueryEscape(p.Branch)}, nil |
| + return ProposalRef{URL: forgekey.HubBranchURL(k.String(), p.Branch)}, nil |
| } |
diff --git a/internal/runner/thin/forges_review_test.go b/internal/runner/thin/forges_review_test.go| new file mode 100644 |
| index 00000000..57c1860d |
| --- /dev/null |
| +++ b/internal/runner/thin/forges_review_test.go |
| @@ -0,0 +1,141 @@ |
| +package thin |
| + |
| +import ( |
| + "context" |
| + "encoding/base64" |
| + "encoding/json" |
| + "errors" |
| + "fmt" |
| + "net/http" |
| + "os" |
| + "path/filepath" |
| + "reflect" |
| + "testing" |
| + |
| + "amadan.net/oficina/equipo/internal/runner/forge" |
| + "amadan.net/oficina/equipo/internal/runner/workspace" |
| + "amadan.net/oficina/equipo/internal/wire/forgekey" |
| +) |
| + |
| +func TestRouterRefusalsKeepOperationIdentity(t *testing.T) { |
| + ctx := context.Background() |
| + f, _ := NewForges(&routeForge{host: forgekey.Hub}) |
| + for _, repo := range []string{"github.com/a", "github.com/o/r", "bad"} { |
| + _, remote := f.Remote(ctx, repo, Read) |
| + _, exists := f.Exists(ctx, repo) |
| + create := f.Create(ctx, repo) |
| + _, merge := f.Merge(ctx, repo, "main", forge.MergeRequest{}) |
| + _, hosted := f.CIHosted(ctx, repo) |
| + _, status := f.CIStatus(ctx, repo, "main", forge.CILogsNone) |
| + for _, tc := range []struct{ got, want error }{{remote, workspace.ErrGitPassword}, {exists, ErrNoCreate}, {create, ErrNoCreate}, {merge, forge.ErrMergeRefused}, {hosted, forge.ErrCIRead}, {status, forge.ErrCIRead}} { |
| + if !errors.Is(tc.got, tc.want) || !errors.Is(tc.got, forgekey.ErrKey) { |
| + t.Errorf("%q: %v lost %v or key identity", repo, tc.got, tc.want) |
| + } |
| + } |
| + } |
| + _, use := f.Remote(ctx, "o/r", Use(99)) |
| + _, duplicate := NewForges(&routeForge{host: forgekey.Hub}, &routeForge{host: forgekey.Hub}) |
| + if !errors.Is(use, ErrForgeUse) || !errors.Is(duplicate, ErrForgeDuplicate) || errors.Is(use, forgekey.ErrKey) || errors.Is(duplicate, forgekey.ErrKey) || errors.Is(use, duplicate) || !errors.Is(use, workspace.ErrGitPassword) { |
| + t.Fatalf("use and registration need distinct identities: %v / %v", use, duplicate) |
| + } |
| +} |
| + |
| +func TestRouterWithProductionFileForge(t *testing.T) { |
| + ctx := context.Background() |
| + const repo = "amadan.net/carlos/platform" |
| + const branch = "equipo/t1-fix" |
| + const sha = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" |
| + var calls []string |
| + ff := accessForge(t, func(w http.ResponseWriter, r *http.Request) { |
| + calls = append(calls, r.Method+" "+r.URL.Path) |
| + if r.Header.Get("Authorization") != "Bearer SECRET-ACCESS-TOKEN" { |
| + t.Error("missing hub credential") |
| + } |
| + switch r.URL.Path { |
| + case "/api/v1/repos": |
| + fmt.Fprint(w, `{"repos":[{"ns":"carlos","name":"platform"}]}`) |
| + case "/api/v1/repos/carlos/platform/branches/" + branch + "/merge": |
| + var req forge.MergeRequest |
| + if err := json.NewDecoder(r.Body).Decode(&req); err != nil || req.ExpectSHA != sha { |
| + t.Errorf("merge request: %+v %v", req, err) |
| + } |
| + fmt.Fprintf(w, `{"merged":true,"sha":%q,"into":"main"}`, sha) |
| + case "/api/v1/repos/carlos/platform/ci/hosted": |
| + fmt.Fprint(w, `{"on":true}`) |
| + case "/api/v1/repos/carlos/platform/ci/status": |
| + if r.URL.Query().Get("branch") != branch || r.URL.Query().Get("logs") != forge.CILogsFailed { |
| + t.Error("CI query lost") |
| + } |
| + fmt.Fprintf(w, `{"ns":"carlos","repo":"platform","branch":%q,"sha":%q,"state":"passed"}`, branch, sha) |
| + case "/api/v1/agents/access-requests": |
| + w.WriteHeader(201) |
| + writeAccess(w, "ar_one", "pending") |
| + case "/api/v1/agents/access-requests/ar_one": |
| + writeAccess(w, "ar_one", "approved") |
| + default: |
| + t.Error("unexpected route", r.URL) |
| + w.WriteHeader(404) |
| + } |
| + }) |
| + if ff.Host() != forgekey.Hub { |
| + t.Fatalf("production forge host: %q", ff.Host()) |
| + } |
| + f, err := NewForges(ff) |
| + if err != nil { |
| + t.Fatal(err) |
| + } |
| + for _, use := range []Use{Read, Push} { |
| + remote, err := f.Remote(ctx, repo, use) |
| + if err != nil || remote.URL != "https://"+repo || remote.GitPassword != "SECRET-GIT-TOKEN" { |
| + t.Fatalf("remote %d: %+v %v", use, remote, err) |
| + } |
| + } |
| + res, err := f.Merge(ctx, repo, branch, forge.MergeRequest{ExpectSHA: sha}) |
| + if err != nil || !res.Merged || res.SHA != sha { |
| + t.Fatalf("merge: %+v %v", res, err) |
| + } |
| + if hosted, err := f.CIHosted(ctx, repo); err != nil || !hosted { |
| + t.Fatal("hosted", hosted, err) |
| + } |
| + if status, err := f.CIStatus(ctx, repo, branch, forge.CILogsFailed); err != nil || status.SHA != sha || status.State != "passed" { |
| + t.Fatal("CI", status, err) |
| + } |
| + c := accessCommand() |
| + if rep, err := f.RequestAccess(ctx, c); err != nil || rep.State != "pending" { |
| + t.Fatal("request", rep, err) |
| + } |
| + if rep, err := f.PollAccess(ctx, "ar_one", c); err != nil || rep.State != "approved" { |
| + t.Fatal("poll", rep, err) |
| + } |
| + want := []string{"GET /api/v1/repos", "POST /api/v1/repos/carlos/platform/branches/" + branch + "/merge", "GET /api/v1/repos/carlos/platform/ci/hosted", "GET /api/v1/repos/carlos/platform/ci/status", "POST /api/v1/agents/access-requests", "GET /api/v1/agents/access-requests/ar_one"} |
| + if !reflect.DeepEqual(calls, want) { |
| + t.Fatalf("hub calls: %v", calls) |
| + } |
| +} |
| + |
| +type usernameForge struct { |
| + Forge |
| + remote workspace.Remote |
| +} |
| + |
| +func (f usernameForge) Remote(context.Context, string, Use) (workspace.Remote, error) { |
| + return f.remote, nil |
| +} |
| +func TestHeadsUsesRemoteUsername(t *testing.T) { |
| + root := t.TempDir() |
| + script := filepath.Join(root, "git") |
| + capture := filepath.Join(root, "header") |
| + if err := os.WriteFile(script, []byte("#!/bin/sh\nprintf '%s' \"$GIT_CONFIG_VALUE_9\" > '"+capture+"'\n"), 0700); err != nil { |
| + t.Fatal(err) |
| + } |
| + remote := workspace.Remote{URL: "https://github.com/o/r", GitPassword: "fixture-password", GitUsername: "x-access-token"} |
| + c := Clones{Root: root, Git: script, Forge: usernameForge{remote: remote}} |
| + if _, _, _, err := c.Heads(context.Background(), "github.com/o/r", nil); err != nil && !errors.Is(err, ErrEmptyRepo) { |
| + t.Fatal(err) |
| + } |
| + got, err := os.ReadFile(capture) |
| + want := "Authorization: Basic " + base64.StdEncoding.EncodeToString([]byte("x-access-token:fixture-password")) |
| + if err != nil || string(got) != want { |
| + t.Fatalf("heads header %q: %v", got, err) |
| + } |
| +} |
diff --git a/internal/runner/thin/forges_test.go b/internal/runner/thin/forges_test.go| index 6ce26094..0c54b1ca 100644 |
| --- a/internal/runner/thin/forges_test.go |
| +++ b/internal/runner/thin/forges_test.go |
| @@ -27,8 +27,8 @@ func (f *routeForge) Host() string { return f.host } |
| func (f *routeForge) Repos() []string { return f.repos } |
| func (f *routeForge) Reachable(context.Context) []string { return f.repos } |
| func (f *routeForge) Recheck() { f.rechecks++ } |
| -func (f *routeForge) Agent() string { return "hub-agent" } |
| -func (f *routeForge) CreateIn(context.Context) []string { return []string{"oficina"} } |
| +func (f *routeForge) Agent() string { return f.host + "-agent" } |
| +func (f *routeForge) CreateIn(context.Context) []string { return []string{f.host + "-namespace"} } |
| func (f *routeForge) Remote(_ context.Context, repo string, use Use) (workspace.Remote, error) { |
| f.calls = append(f.calls, repo) |
| f.uses = append(f.uses, use) |
| @@ -93,7 +93,7 @@ func TestForgesRouteWithoutFallback(t *testing.T) { |
| } |
| } |
| onlyHub, _ := NewForges(hub) |
| - for _, repo := range []string{"github.com/Org/Repo", "evil.com/a/b", "amadan.net/../b"} { |
| + for _, repo := range []string{"amadan.net/a", "github.com/a", "github.com/Org/Repo", "evil.com/a/b", "amadan.net/../b"} { |
| n := len(hub.calls) |
| if _, err = onlyHub.Remote(ctx, repo, Read); err == nil { |
| t.Fatalf("remote accepted %q", repo) |
| @@ -133,7 +133,7 @@ func TestForgesCatalogAndHubIdentity(t *testing.T) { |
| if !reflect.DeepEqual(f.Repos(), want) || !reflect.DeepEqual(f.Reachable(context.Background()), want) { |
| t.Fatal("catalog crosses host or loses order") |
| } |
| - if f.Agent() != "hub-agent" || !reflect.DeepEqual(f.CreateIn(context.Background()), []string{"oficina"}) { |
| + if f.Agent() != "amadan.net-agent" || !reflect.DeepEqual(f.CreateIn(context.Background()), []string{"amadan.net-namespace"}) { |
| t.Fatal("hub identity changed") |
| } |
| f.Recheck() |
| @@ -145,7 +145,7 @@ func TestForgesCatalogAndHubIdentity(t *testing.T) { |
| func TestHubProposalIsOnlyALink(t *testing.T) { |
| f := accessForge(t, func(http.ResponseWriter, *http.Request) { t.Fatal("proposal contacted hub") }) |
| ref, err := f.Propose(context.Background(), Proposal{Repo: "amadan.net/oficina/site", Branch: "equipo/t1-a"}) |
| - if err != nil || ref.URL != "https://amadan.net/oficina/site?branch=equipo%2Ft1-a" { |
| + if err != nil || ref.URL != "https://amadan.net/oficina/site?branch=equipo/t1-a" { |
| t.Fatalf("proposal %+v %v", ref, err) |
| } |
| for _, p := range []Proposal{{Repo: "github.com/o/r", Branch: "equipo/t1-a"}, {Repo: "amadan.net/o/r", Branch: "main"}, {Repo: "amadan.net/../r", Branch: "equipo/t1-a"}} { |
diff --git a/internal/runner/thin/merge.go b/internal/runner/thin/merge.go| index ac839f2c..995ef764 100644 |
| --- a/internal/runner/thin/merge.go |
| +++ b/internal/runner/thin/merge.go |
| @@ -294,7 +294,7 @@ func (c *Clones) Heads(ctx context.Context, repo string, branches []string) (str |
| } else if remote.GitPassword != "" { |
| env["GIT_CONFIG_COUNT"] = "10" |
| env["GIT_CONFIG_KEY_9"] = "http.extraHeader" |
| - env["GIT_CONFIG_VALUE_9"] = "Authorization: Basic " + base64.StdEncoding.EncodeToString([]byte("x:"+remote.GitPassword)) |
| + env["GIT_CONFIG_VALUE_9"] = "Authorization: Basic " + base64.StdEncoding.EncodeToString([]byte(remote.Username()+":"+remote.GitPassword)) |
| } |
| // main as well: when HEAD names no default (an empty repository, or a |
| // task branch a hub rebuild pointed it at), main decides, in this one |
diff --git a/internal/runner/thin/proposal_seam_test.go b/internal/runner/thin/proposal_seam_test.go| index fe77404b..10611ba2 100644 |
| --- a/internal/runner/thin/proposal_seam_test.go |
| +++ b/internal/runner/thin/proposal_seam_test.go |
| @@ -4,14 +4,18 @@ import ( |
| "amadan.net/oficina/equipo/internal/runner/workspace" |
| "amadan.net/oficina/equipo/internal/wire" |
| "context" |
| + "errors" |
| "path/filepath" |
| + "reflect" |
| + "strings" |
| "testing" |
| ) |
| type proposalSpy struct { |
| Forge |
| - calls []Proposal |
| - at func(Proposal) |
| + calls []Proposal |
| + failure error |
| + at func(Proposal) |
| } |
| func (f *proposalSpy) Propose(ctx context.Context, p Proposal) (ProposalRef, error) { |
| @@ -19,6 +23,9 @@ func (f *proposalSpy) Propose(ctx context.Context, p Proposal) (ProposalRef, err |
| if f.at != nil { |
| f.at(p) |
| } |
| + if f.failure != nil { |
| + return ProposalRef{}, f.failure |
| + } |
| return f.Forge.Propose(ctx, p) |
| } |
| func TestEngineeringProposesAfterPush(t *testing.T) { |
| @@ -34,8 +41,12 @@ func TestEngineeringProposesAfterPush(t *testing.T) { |
| t.Fatal("proposal before push or wrong branch") |
| } |
| }} |
| - e.Forge = spy |
| + authority := &useSpy{Forge: spy} |
| + e.Forge = authority |
| rep := e.publish(context.Background(), r, wire.StepReport{}) |
| + if !reflect.DeepEqual(authority.uses, []Use{Push}) { |
| + t.Fatalf("publish authority %v", authority.uses) |
| + } |
| if !rep.Pushed || len(spy.calls) != 1 { |
| t.Fatalf("report %+v proposals %+v", rep, spy.calls) |
| } |
| @@ -47,10 +58,14 @@ func TestRelayProposesAfterPush(t *testing.T) { |
| t.Fatal("proposal before push or wrong branch") |
| } |
| }} |
| - r.e.Forge = spy |
| + authority := &useSpy{Forge: spy} |
| + r.e.Forge = authority |
| r.receive(t, r.pack, r.header()) |
| r.publish(t, "pb_1") |
| r.relay.Once(context.Background()) |
| + if !reflect.DeepEqual(authority.uses, []Use{Push}) { |
| + t.Fatalf("relay authority %v", authority.uses) |
| + } |
| if len(spy.calls) != 1 { |
| t.Fatalf("proposals %+v", spy.calls) |
| } |
| @@ -81,3 +96,52 @@ func TestStartDefaultRequestsPushAuthority(t *testing.T) { |
| t.Fatalf("initialization authority %v", spy.uses) |
| } |
| } |
| + |
| +func TestEngineeringProposalFailureKeepsPush(t *testing.T) { |
| + e, f, r, _ := hubRig(t) |
| + r.Specialist, r.StepID, r.Branch = wire.SpecialistEngineering, "s2", "equipo/tk1-another-fix" |
| + base := gitOut(t, f.dir, "rev-parse", "main") |
| + gitDir := e.tree(r, base).GitDir |
| + gitOut(t, filepath.Dir(f.dir), "clone", "-q", "--bare", f.dir, gitDir) |
| + tree := gitOut(t, filepath.Dir(f.dir), "--git-dir="+gitDir, "rev-parse", base+"^{tree}") |
| + r.Base, r.Candidate = base, gitOut(t, filepath.Dir(f.dir), "--git-dir="+gitDir, "commit-tree", tree, "-p", base, "-m", "another fix") |
| + spy := &proposalSpy{Forge: f, failure: errors.New("private raw forge diagnostic"), at: func(p Proposal) { |
| + if p.Repo != r.Repo || p.Branch != r.Branch || gitOut(t, f.dir, "rev-parse", p.Branch) != r.Candidate { |
| + t.Fatal("proposal before push or wrong branch") |
| + } |
| + }} |
| + authority := &useSpy{Forge: spy} |
| + e.Forge = authority |
| + rep := e.publish(context.Background(), r, wire.StepReport{}) |
| + if !reflect.DeepEqual(authority.uses, []Use{Push}) { |
| + t.Fatalf("publish authority %v", authority.uses) |
| + } |
| + if !rep.Pushed || rep.State != wire.StepDone || rep.Reason != "proposal_failed" || len(spy.calls) != 1 || strings.Contains(rep.LogTail, "private raw") { |
| + t.Fatalf("report %+v proposals %+v", rep, spy.calls) |
| + } |
| +} |
| + |
| +func TestRelayProposalFailureKeepsPush(t *testing.T) { |
| + r := newRelayRig(t) |
| + spy := &proposalSpy{Forge: r.f, failure: errors.New("private raw forge diagnostic"), at: func(p Proposal) { |
| + if p.Repo != r.header().Repo || p.Branch != relayBranch || r.head(t) != r.commit { |
| + t.Fatal("proposal before push or wrong branch") |
| + } |
| + }} |
| + authority := &useSpy{Forge: spy} |
| + r.e.Forge = authority |
| + r.receive(t, r.pack, r.header()) |
| + r.publish(t, "pb_1") |
| + r.relay.Once(context.Background()) |
| + if !reflect.DeepEqual(authority.uses, []Use{Push}) { |
| + t.Fatalf("relay authority %v", authority.uses) |
| + } |
| + r.relay.Once(context.Background()) |
| + reps := r.reports(t) |
| + if len(reps) != 1 || !reps[0].Pushed || reps[0].Reason != "proposal_failed" || r.pushCount() != 1 { |
| + t.Fatalf("publication: %+v pushes %d", reps, r.pushCount()) |
| + } |
| + if len(spy.calls) != 1 { |
| + t.Fatalf("proposals %+v", spy.calls) |
| + } |
| +} |
diff --git a/internal/runner/thin/relay.go b/internal/runner/thin/relay.go| index 4bfa6e2a..6ee8e5b1 100644 |
| --- a/internal/runner/thin/relay.go |
| +++ b/internal/runner/thin/relay.go |
| @@ -485,15 +485,15 @@ func (e *Engineer) publishWorker(ctx context.Context, p pubRow) (wire.PublishedR |
| err = forge.PushBranch(ctx, forge.BranchPush{Root: filepath.Join(e.root(), "publish"), Git: e.O.Runner.GitPath, GitDir: dir, Repo: p.Repo, Branch: p.Branch, Default: def, Base: p.BaseSHA, Commit: p.CandidateSHA, Key: p.TaskID + "/" + p.StepID + "/" + itoa(p.Attempt) + "/worker", Person: p.Person, Owners: e.Owners, |
| Remote: func(ctx context.Context) (workspace.Remote, error) { return e.Forge.Remote(ctx, p.Repo, Push) }, |
| Confirm: confirm}) |
| - if err == nil { |
| - _, err = e.Forge.Propose(ctx, Proposal{Repo: p.Repo, Branch: p.Branch}) |
| - } |
| if relayFault != nil && relayFault("pushed") { |
| return rep, false |
| } |
| switch { |
| case err == nil: |
| rep.Pushed = true |
| + if _, proposalErr := e.Forge.Propose(ctx, Proposal{Repo: p.Repo, Branch: p.Branch}); proposalErr != nil { |
| + rep.Reason = "proposal_failed" |
| + } |
| return rep, true |
| case errors.Is(refused, ErrWithdrawn): |
| return fail("cancelled") |
diff --git a/internal/wire/forgekey/key.go b/internal/wire/forgekey/key.go| index cd741ee2..a25b6a58 100644 |
| --- a/internal/wire/forgekey/key.go |
| +++ b/internal/wire/forgekey/key.go |
| @@ -27,6 +27,9 @@ func (k Key) String() string { return k.Host + "/" + k.Owner + "/" + k.Name |
| func Parse(raw string) (Key, error) { |
| parts := strings.Split(raw, "/") |
| if len(parts) == 2 { |
| + if KnownHost(parts[0]) { |
| + return Key{}, ErrKey |
| + } |
| parts = append([]string{Hub}, parts...) |
| } |
| if len(parts) != 3 || !KnownHost(parts[0]) { |
| @@ -83,3 +86,7 @@ func NewHubRepo(raw string) bool { |
| // HasHubPrefix preserves legacy prefix-only checks. Canonical admission uses Parse. |
| func HasHubPrefix(raw string) bool { return strings.HasPrefix(raw, Hub+"/") } |
| + |
| +// HubBranchURL preserves the hub's existing branch-link spelling. |
| +// Callers validate the repository and branch at their admission boundary. |
| +func HubBranchURL(repo, branch string) string { return "https://" + repo + "?branch=" + branch } |
diff --git a/internal/wire/forgekey/key_test.go b/internal/wire/forgekey/key_test.go| index c83de8d1..eff11c58 100644 |
| --- a/internal/wire/forgekey/key_test.go |
| +++ b/internal/wire/forgekey/key_test.go |
| @@ -16,7 +16,7 @@ func TestParseAndDisplay(t *testing.T) { |
| } |
| func TestRejectInvalidKeys(t *testing.T) { |
| - for _, raw := range []string{"", "name", "evil.com/org/repo", "https://amadan.net/org/repo", "AMADAN.NET/org/repo", "github.com/org/repo/extra", "amadan.net/../repo", "amadan.net/org/.", "amadan.net/org/repo?x", "amadan.net/org/repo#x", "amadan.net/org/re%2fpo", "amadan.net/org/re po", "amadan.net/org/repo\n", "amadan.net/org/\\repo", "user@amadan.net/org/repo", "amadan.net:443/org/repo"} { |
| + for _, raw := range []string{"", "name", "amadan.net/a", "github.com/a", "evil.com/org/repo", "https://amadan.net/org/repo", "AMADAN.NET/org/repo", "github.com/org/repo/extra", "amadan.net/../repo", "amadan.net/org/.", "amadan.net/org/repo?x", "amadan.net/org/repo#x", "amadan.net/org/re%2fpo", "amadan.net/org/re po", "amadan.net/org/repo\n", "amadan.net/org/\\repo", "user@amadan.net/org/repo", "amadan.net:443/org/repo"} { |
| if _, err := Parse(raw); err == nil { |
| t.Errorf("accepted %q", raw) |
| } |
| @@ -59,3 +59,20 @@ func TestHubAdmissionAndCreation(t *testing.T) { |
| t.Fatal("GitHub spelling lost") |
| } |
| } |
| + |
| +func TestNormalizationAndEqualityAgree(t *testing.T) { |
| + for _, raw := range []string{"amadan.net/a", "github.com/a"} { |
| + normalized := Normalize(raw) |
| + if normalized != raw || Equal(raw, "amadan.net/"+raw) || Equal(normalized, "amadan.net/"+raw) { |
| + t.Fatalf("truncated host changed identity: %q -> %q", raw, normalized) |
| + } |
| + if _, err := Parse(normalized); err == nil { |
| + t.Fatalf("normalized truncated host accepted: %q", normalized) |
| + } |
| + } |
| + for _, raw := range []string{"oficina/site", "amadan.net/oficina/site", "github.com/Oficina/Site"} { |
| + if !Equal(raw, Normalize(raw)) { |
| + t.Fatalf("normalization changed identity: %q", raw) |
| + } |
| + } |
| +} |
diff --git a/internal/wire/runners.go b/internal/wire/runners.go| index 501afdf2..4f73d801 100644 |
| --- a/internal/wire/runners.go |
| +++ b/internal/wire/runners.go |
| @@ -515,6 +515,7 @@ type PublishCommand struct { |
| // PublishedReport is the primary's answer to a publish: Pushed, or the |
| // reason it was not (push_failed, push_conflict, candidate_unavailable, |
| // cancelled). |
| +// A successful push may carry proposal_failed as a diagnostic only. |
| type PublishedReport struct { |
| Publication string `json:"publication"` |
| TaskID string `json:"task_id"` |
diff --git a/internal/wire/tasks.go b/internal/wire/tasks.go| index d4247d56..4d3859fe 100644 |
| --- a/internal/wire/tasks.go |
| +++ b/internal/wire/tasks.go |
| @@ -995,6 +995,7 @@ var StepReasons = map[string]bool{ |
| "workspace_refused": true, |
| "clone_failed": true, |
| "push_failed": true, |
| + "proposal_failed": true, |
| "push_conflict": true, |
| "superseded": true, |
| "interrupted": true, |