Base's team zone never overrides the person's own; carry_on answers only its three 409s
Human
Prompt
Build Paul's approved design for "a clearer indication of why work stopped" in Equipo (web, wire/API, and the minimum on native). Paul approved the recommended design (Option 2 in polish-audit/paused-work) and all five recommendations on 2026-11-24: a Paused stop in calm indigo with a lead line (local time plus relative), a what-happens-next line and one action; "Run it now with Codex" naming the predicted model, also on the conversation card; indigo from Equipo's palette with AA contrast; a per-person time zone defaulting to Europe/Dublin; and Base's job card gaining state paused, carry_on and a POST /api/v1/assistant/cards/{id}/carry_on route. Native: the minimum so the app stops showing a false green.From this commit's own message. The prompt ledger has no entries for it — which is what a squashed, rebased or amended commit looks like, and what every commit looks like in a repo without a ledger.
Summary
PUT /api/v1/assistant/time-zone takes an optional only_if_unset: with it, Equipo stores Base's zone only when the person has none from their own browser or device, and answers the zone in effect. Each zone now records its source (device or base) in chat_person_zones. Carry on now folds Run now's own refusals, a step gone included, into carry_on_unavailable, so it answers no 409 beyond card_stale, not_paused and carry_on_unavailable. The new API sentence is marked COPY REVIEW REQUIRED for Luna. Also the task-held fixture in Go's compact form.
Agent notes
Controller ruling from Fable's review of Base (S2): a person's own device wins. 0104 is unreleased, so the source column is folded into it rather than a new migration.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
13 files changed,
+139
−19
docs/api/equipo-v1.md+2 −0docs/api/equipo-v1.openapi.json+16 −1docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md+1 −0internal/equipo/chat/assistant_http.go+1 −1internal/equipo/chat/job_paused.go+7 −1internal/equipo/chat/zone.go+50 −11internal/equipo/chat/zone_test.go+34 −0internal/equipo/migrations/0104_person_zones.sql+3 −2internal/equipo/migrations/schema.sql+1 −1internal/thintest/assistant.go+6 −0internal/thintest/assistant_paused_contract_test.go+9 −1internal/wire/assistant.go+8 −0internal/wire/wiretest/testdata/api/task-held.json+1 −1
CI cancelled — superseded by a newer push — run details
CI log
=== prepare === ci-box: machine: aarch64, 32 CPUs, 62 GiB memory, kernel 7.0.0-1017-aws ci-box: python 3.12.3; Docker version 29.1.3, build 29.1.3-0ubuntu3~24.04.2 ci-box: user namespaces allowed: 233151 ci-box: cgroup: cgroup2fs ci-box: disk /home/ci/work/repos/oficina__equipo/wt/feat__paused-work: Type Size Avail | ext4 96G 84G ci-box: disk /home/ci/.cache/equipo-ci-box: Type Size Avail | ext4 96G 84G ci-box: bwrap: fetched and verified in 0.3s ci-box: claude: fetched and verified in 1.4s ci-box: codex: fetched and verified in 3.4s ci-box: codex-code-mode-host: fetched and verified in 1.3s ci-box: libwrap: fetched and verified in 0.3s ci-box: socat: fetched and verified in 0.3s npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead ci-box: image pulled in 10.1s ci-box: pi: installed and verified in 7.5s ci-box: opencode: installed and verified in 2.3s ci-box: chromium 156.0.8078.79-1~deb13u1: 76 packages fetched, verified and unpacked in 8.8s ci-box: clone deepened in 3.7s ci-box: file times set from content: 2980 files, 193 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.148s === compile === go build ./... RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py compile + go build -tags testbuild ./... 4.1s + go list -export -test -tags testbuild -f ./... 4.7s + go list -export -test -tags browser,testbuild -f ./internal/equipo ./internal/headless ./internal/idtest ./internal/plan3test ./internal/thintest 3.2s rastrillo: budget size: 4 problem(s) exit status 1 go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 -version staticcheck 2026.1 (v0.7.0) go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 -version Go: go1.26.11 Scanner: govulncheck@v1.8.0 DB: https://vuln.go.dev DB updated: 2026-11-23 20:05:14 +0000 UTC go run github.com/zricethezav/gitleaks/v8@v8.30.1 version version is set by build process === check === --- shard 0 of 29 --- RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard test lane headless-work: ./internal/headless timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner) + go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestHeadless$/^4c_rebase$|^TestHeadless$/^4b_ask$|^TestHeadless$/^4c_checks_card$|^TestHeadless$/^4_step_crash$' ./internal/headless amadan: job cancelled — a newer push superseded it --- 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 amadan: job cancelled — a newer push superseded it --- 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 amadan: job cancelled — a newer push superseded it --- 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 amadan: job cancelled — a newer push superseded it --- 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 amadan: job cancelled — a newer push superseded it --- 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 amadan: job cancelled — a newer push superseded it --- 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 amadan: job cancelled — a newer push superseded it --- 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 amadan: job cancelled — a newer push superseded it --- 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 amadan: job cancelled — a newer push superseded it --- shard 9 of 29 --- RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard test lane runner-bug: ./internal/runner timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner) + go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$' ./internal/runner cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed amadan: job cancelled — a newer push superseded it --- shard 10 of 29 --- RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard test lane runner-plans: ./internal/runner timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner) + go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -run '^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed amadan: job cancelled — a newer push superseded it --- shard 11 of 29 --- RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard test lane runner-rest: ./internal/runner timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner) + go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags testbuild -timeout 15m -skip '^TestDirectBugWorkflow$|^TestEnrolKeepsTheRole$|^TestPlanWorkflowCandidateOrder$|^TestPlanWorkflowFeature$|^TestCoordinatorRecoveryCallRefusalKeepsServing$|^TestCoordinatorRefusalMatrix$' ./internal/runner cache miss: amadan.net/oficina/equipo/internal/runner: its inputs changed amadan: job cancelled — a newer push superseded it --- shard 12 of 29 --- RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard amadan: job cancelled — a newer push superseded it --- shard 13 of 29 --- RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard amadan: job cancelled — a newer push superseded it --- shard 14 of 29 --- RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard amadan: job cancelled — a newer push superseded it --- shard 15 of 29 --- RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard amadan: job cancelled — a newer push superseded it --- shard 16 of 29 --- RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard amadan: job cancelled — a newer push superseded it --- shard 17 of 29 --- RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard amadan: job cancelled — a newer push superseded it --- 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 amadan: job cancelled — a newer push superseded it --- 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 amadan: job cancelled — a newer push superseded it --- 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 amadan: job cancelled — a newer push superseded it --- shard 21 of 29 --- RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard timing budgets: reported, not enforced: a shared runner's load is not this change's time (set EQUIPO_CI_DEDICATED=1 on a dedicated runner) browser: /opt/chromium-156.0.8078.79-1_deb13u1/chrome: Chromium 156.0.8078.79 browser lane browser-headless-rest: ./internal/headless + go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserAskAfterMerge|TestBrowserChat|TestBrowserChatSendStaysOnPage|TestBrowserComposer|TestBrowserComposerDock|TestBrowserComposerFocus|TestBrowserComposerReconcile|TestBrowserConnectionsAdd|TestBrowserConnectionsAddPage|TestBrowserConnectionsConversation|TestBrowserConnectionsCopyLink|TestBrowserConnectionsEndedNote|TestBrowserConnectionsMeteredLimitRequired|TestBrowserConnectionsOpenCodeGoLimitRequired|TestBrowserConnectionsSignIn|TestBrowserConnectionsSignInEmail|TestBrowserConnectionsSignInSwitch|TestBrowserConnectionsToken|TestBrowserCopyContinue|TestBrowserCopySettingAndFlag|TestBrowserDraftIsTheMessage|TestBrowserDraftStreamsFormatted|TestBrowserEmptyExplore|TestBrowserMoveIn|TestBrowserNotebook|TestBrowserNotebookLook|TestBrowserPasteBox|TestBrowserPasteBoxLook|TestBrowserPasteCopiesItsBox|TestBrowserRailFollowsWork|TestBrowserReceiptFollowsReview|TestBrowserReceiptsDesktop|TestBrowserReceiptsTouch|TestBrowserRefreshRace|TestBrowserStalePageReloads|TestBrowserTaskCard|TestBrowserTaskThread|TestBrowserThinkingAndCards|TestBrowserUsageAndAdvice|TestBrowserWaitingTurns|TestNotebookScreenshots)$' -skip '^TestBrowserChat$|^TestBrowserChatSendStaysOnPage$|^TestBrowserComposer$|^TestBrowserComposerReconcile$|^TestBrowserComposerFocus$|^TestBrowserComposerDock$|^TestBrowserDraftStreamsFormatted$|^TestBrowserDraftIsTheMessage$|^TestBrowserTaskCard$|^TestBrowserReceiptFollowsReview$|^TestBrowserRailFollowsWork$|^TestBrowserTaskThread$|^TestBrowserAskAfterMerge$|^TestBrowserReceiptsDesktop$|^TestBrowserReceiptsTouch$|^TestBrowserConnections|^TestBrowserPasteBox$|^TestBrowserPasteCopiesItsBox$' ./internal/headless amadan: job cancelled — a newer push superseded it --- 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.56s 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 718ms amadan.net/oficina/equipo/internal/equipo receipt: slow test 720ms amadan.net/oficina/equipo/internal/equipo TestBrowserPreviewBlocksNavigation browser lane browser-rest: ./internal/idtest + go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -tags browser,testbuild -timeout 15m -run '^(TestBrowserOficinaIDDoor|TestBrowserSmartDoor)$' ./internal/idtest receipt: test step 11.352s 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 10s amadan.net/oficina/equipo/internal/idtest receipt: slow test 7.96s amadan.net/oficina/equipo/internal/idtest TestBrowserSmartDoor receipt: slow test 2.04s 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 amadan: job cancelled — a newer push superseded it --- 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 amadan: job cancelled — a newer push superseded it --- 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.283s 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.857s amadan.net/oficina/equipo/internal/runner/checks receipt: slow package 216ms amadan.net/oficina/equipo/internal/runner/provider/claude receipt: slow package 109ms amadan.net/oficina/equipo/internal/runner/provider/codex receipt: slow package 1ms amadan.net/oficina/equipo/internal/runner/provider receipt: slow package 1ms amadan.net/oficina/equipo/internal/runner/provider/gotoolchain receipt: slow test 5.62s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsGoFixture receipt: slow test 1.76s amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPaths receipt: slow test 370ms amadan.net/oficina/equipo/internal/runner/checks TestCheckSandboxDeniedPathsCache receipt: slow test 210ms amadan.net/oficina/equipo/internal/runner/provider/claude TestDirectJournalAdapterBarrier receipt: slow test 110ms amadan.net/oficina/equipo/internal/runner/provider/codex TestDirectJournalAdapterBarrier CGO_ENABLED=0 RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py retried runner-host -run '^TestNamespace' -count=1 ./internal/runner/containment + go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -no-time -run '^TestNamespace' -count=1 ./internal/runner/containment amadan: job cancelled — a newer push superseded it --- shard 25 of 29 --- RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard amadan: job cancelled — a newer push superseded it --- shard 26 of 29 --- RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard amadan: job cancelled — a newer push superseded it --- shard 27 of 29 --- RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard amadan: job cancelled — a newer push superseded it --- shard 28 of 29 --- RASTRILLO='go run amadan.net/rastrillo/rastrillo/cmd/rastrillo' python3 scripts/ci-test.py shard amadan: job cancelled — a newer push superseded it
diff --git a/docs/api/equipo-v1.md b/docs/api/equipo-v1.md| index 6bf7c794..bcaa3b27 100644 |
| --- a/docs/api/equipo-v1.md |
| +++ b/docs/api/equipo-v1.md |
| @@ -192,6 +192,8 @@ Times in `result` and `detail` use your time zone. Equipo uses `Europe/Dublin` u |
| The response is `200` with `time_zone`. If Equipo does not recognise the time zone, the response is `422 invalid_input`. A device can set its time zone with `PUT /api/v1/time-zone`. |
| +To keep a time zone the person's own browser or device set, add `"only_if_unset": true`. Equipo then stores yours only if they have none, and `time_zone` in the response is the time zone in effect. |
| + |
| A job runs in its own thread, which you can follow in Equipo. Its messages, turns and cards never appear in the conversation that `/api/v1/snapshot` returns. Handing work off needs your runner on protocol 22 or later. A runner on protocol 19, 20 or 21 can still answer the Assistant, but cannot start a job. |
| Tell Equipo where your Base operations live with `PUT /api/v1/assistant/host`: |
diff --git a/docs/api/equipo-v1.openapi.json b/docs/api/equipo-v1.openapi.json| index 9b9a3d1e..4bce5309 100644 |
| --- a/docs/api/equipo-v1.openapi.json |
| +++ b/docs/api/equipo-v1.openapi.json |
| @@ -9834,7 +9834,7 @@ |
| "content": { |
| "application/json": { |
| "schema": { |
| - "$ref": "#/components/schemas/TimeZoneInput" |
| + "$ref": "#/components/schemas/AssistantTimeZoneInput" |
| } |
| } |
| }, |
| @@ -24101,6 +24101,21 @@ |
| "card" |
| ], |
| "additionalProperties": false |
| + }, |
| + "AssistantTimeZoneInput": { |
| + "type": "object", |
| + "properties": { |
| + "time_zone": { |
| + "type": "string" |
| + }, |
| + "only_if_unset": { |
| + "type": "boolean" |
| + } |
| + }, |
| + "required": [ |
| + "time_zone" |
| + ], |
| + "additionalProperties": false |
| } |
| }, |
| "responses": { |
diff --git a/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md b/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md| index cc32cfba..df8ce4c0 100644 |
| --- a/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md |
| +++ b/docs/superpowers/plans/CONTROLLER-REPORT-plan-3.md |
| @@ -6900,6 +6900,7 @@ records remain unchanged. |
| | `time.when_in` | %s (%s) | Paused work: report card, task page and Base job card (spec 2026-11-24) | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-24) | |
| | `api.not_paused` | This work is not paused now. Check its latest status. | Paused work: report card, task page and Base job card (spec 2026-11-24) | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-24) | |
| | `docs/api/equipo-v1.md / Talk to the Assistant: paused jobs` | Each job has one `job` card, updated in place as the work goes on, so the same card `id` comes again in `card` events with a higher `revision`. Its `question` is the job’s title, `result` its short status, `detail` adds one sentence, and `started_at` gives the start time. Its state is `working`, `asking`, `ready`, `done`, `stopped` or `paused`. A paused job waits and will carry on by itself, for example when a plan’s limit resets. Its `result` says when that will be, in your time zone, such as “Paused until 21:00”, or says “Paused” if the time is unknown. Its `detail` explains why it paused and when it will carry on. A paused card has `carry_on: true` when “Carry on now” is available because another of your plans has room at no extra cost; otherwise `carry_on` is left out. To carry on, call `POST /api/v1/assistant/cards/{id}/carry_on` with the card’s revision and a key of your choosing, 1 to 128 bytes:<br><br>```json<br>{"revision":7,"idempotency_key":"<a new key for each tap>"}<br>```<br><br>The answer is `200` with the card as it is now in `card`; the same key again gives the same answer. A stale revision is `409 card_stale`, a card that is not paused is `409 not_paused`, and a paused card without `carry_on` is `409 carry_on_unavailable`. Each `409` body carries the card as it is now in `card`.<br><br>A job card takes no answer: answering one is `404 not_found`. Its links may include something to try, the published site, and the job's page in Equipo. A go-ahead or Publish card for a job carries `job`, the job card's `id`. `job`, `detail` and `started_at` are left out when they do not apply.<br><br>`paused` is sent only to a client that asks for it: add `job_states=paused` to `GET /api/v1/assistant/snapshot` and `GET /api/v1/assistant/events`. Without it a paused job card comes as `working`, with the same `result` and `detail` and no `carry_on`.<br><br>Times in `result` and `detail` use your time zone. Equipo uses `Europe/Dublin` unless you set a different one. Set it with `PUT /api/v1/assistant/time-zone` and an IANA time-zone name:<br><br>```json<br>{"time_zone":"Europe/Madrid"}<br>```<br><br>The response is `200` with `time_zone`. If Equipo does not recognise the time zone, the response is `422 invalid_input`. A device can set its time zone with `PUT /api/v1/time-zone`. | Paused job cards, carry_on and the time zone for Base (spec 2026-11-24; Luna, with the controller's Equipo correction) | COPY ACCEPTED BY DELEGATION (Luna, 2026-11-24) | |
| +| `docs/api/equipo-v1.md / Talk to the Assistant: only_if_unset` | To keep a time zone the person's own browser or device set, add `"only_if_unset": true`. Equipo then stores yours only if they have none, and `time_zone` in the response is the time zone in effect. | Base's team zone never overrides the person's own (controller ruling, 2026-11-24) | COPY REVIEW REQUIRED | |
| ## Task 21 |
diff --git a/internal/equipo/chat/assistant_http.go b/internal/equipo/chat/assistant_http.go| index 519e75a9..a2af53ee 100644 |
| --- a/internal/equipo/chat/assistant_http.go |
| +++ b/internal/equipo/chat/assistant_http.go |
| @@ -62,7 +62,7 @@ func (h *HTTP) MountAssistant(r chi.Router) { |
| r.Post("/cards/{id}/carry_on", h.bearer(func(w http.ResponseWriter, r *http.Request, p personapi.PersonPrincipal) { |
| h.carryOn(w, r, p) |
| })) |
| - r.Put("/time-zone", h.bearer(h.setZone)) |
| + r.Put("/time-zone", h.bearer(h.setAssistantZone)) |
| if h.OficinaConnect != nil { |
| r.Post("/oficina/connect", h.bearer(h.oficinaConnect)) |
| } |
diff --git a/internal/equipo/chat/job_paused.go b/internal/equipo/chat/job_paused.go| index 60f78d5b..02d978f7 100644 |
| --- a/internal/equipo/chat/job_paused.go |
| +++ b/internal/equipo/chat/job_paused.go |
| @@ -243,6 +243,10 @@ func (s *Store) CarryOn(ctx context.Context, person, id string, in wire.CarryOn) |
| return err |
| } |
| k, err := t.loadTask(p.task) |
| + if errors.Is(err, ErrNotFound) { |
| + refused = ErrCarryOnUnavailable |
| + return nil |
| + } |
| if err != nil { |
| return err |
| } |
| @@ -251,7 +255,9 @@ func (s *Store) CarryOn(ctx context.Context, person, id string, in wire.CarryOn) |
| return nil |
| } |
| release, err := t.release(k, person, p.step, p.rev) |
| - if errors.Is(err, ErrConflict) || errors.Is(err, ErrHoldBar) || errors.Is(err, ErrRunnerTooOld) { |
| + if errors.Is(err, ErrConflict) || errors.Is(err, ErrHoldBar) || errors.Is(err, ErrRunnerTooOld) || errors.Is(err, ErrNotFound) { |
| + // Run now's own refusals are one answer here: Carry on now is |
| + // not available (the contract's three 409s, and no other). |
| refused = ErrCarryOnUnavailable |
| return nil |
| } |
diff --git a/internal/equipo/chat/zone.go b/internal/equipo/chat/zone.go| index 08c17728..cbd25d8b 100644 |
| --- a/internal/equipo/chat/zone.go |
| +++ b/internal/equipo/chat/zone.go |
| @@ -26,11 +26,20 @@ const DefaultZone = "Europe/Dublin" |
| // zoneRecord is one person's zone, an IANA name. |
| type zoneRecord struct { |
| - Person string `gorm:"primaryKey"` |
| - Zone string `gorm:"not null"` |
| + Person string `gorm:"primaryKey"` |
| + Zone string `gorm:"not null"` |
| + // Source is who said it: the person's own browser or device |
| + // (ZoneDevice), or Base for the team (ZoneBase). The person's own wins. |
| + Source string |
| UpdatedAt time.Time |
| } |
| +// Where a person's zone came from. |
| +const ( |
| + ZoneDevice = "device" |
| + ZoneBase = "base" |
| +) |
| + |
| func (zoneRecord) TableName() string { return "chat_person_zones" } |
| // zones caches loaded locations by name: time.LoadLocation reads and |
| @@ -78,14 +87,22 @@ func (t *txn) zone(person string) *time.Location { |
| return defaultLocation() |
| } |
| -// SetZone records the person's zone (PUT /api/v1/time-zone, PUT |
| -// /api/v1/assistant/time-zone, the web page's quiet post): the roster |
| -// checked in the transaction; ErrInvalid for a zone Equipo does not know. |
| -// The same zone again writes nothing. |
| +// SetZone records the zone the person's own browser or device says (PUT |
| +// /api/v1/time-zone, the web page's quiet post). It always wins. |
| func (s *Store) SetZone(ctx context.Context, person, name string) (string, error) { |
| - if _, ok := LoadZone(name); !ok { |
| + return s.SetZoneFrom(ctx, person, name, ZoneDevice, false) |
| +} |
| + |
| +// SetZoneFrom records the person's zone from source: the roster checked |
| +// in the transaction; ErrInvalid for a zone Equipo does not know. With |
| +// onlyIfUnset (Base's team zone, PUT /api/v1/assistant/time-zone) it is |
| +// stored only when the person has none from their own browser or device. |
| +// It answers the zone in effect; the same zone again writes nothing. |
| +func (s *Store) SetZoneFrom(ctx context.Context, person, name, source string, onlyIfUnset bool) (string, error) { |
| + if _, ok := LoadZone(name); !ok || (source != ZoneDevice && source != ZoneBase) { |
| return "", ErrInvalid |
| } |
| + effect := name |
| err := s.tx(ctx, func(t *txn) error { |
| if err := s.authority.CurrentPerson(ctx, t.db); err != nil { |
| return err |
| @@ -94,14 +111,19 @@ func (s *Store) SetZone(ctx context.Context, person, name string) (string, error |
| if err := t.db.Where("person = ?", person).Limit(1).Find(&r).Error; err != nil { |
| return err |
| } |
| - if r.Zone == name { |
| + if onlyIfUnset && r.Person != "" && r.Source != ZoneBase { |
| + // The person's own browser or device said it: theirs wins. |
| + effect = r.Zone |
| + return nil |
| + } |
| + if r.Zone == name && r.Source == source { |
| return nil |
| } |
| now := t.now() |
| if r.Person == "" { |
| - return t.db.Create(&zoneRecord{Person: person, Zone: name, UpdatedAt: now}).Error |
| + return t.db.Create(&zoneRecord{Person: person, Zone: name, Source: source, UpdatedAt: now}).Error |
| } |
| - return t.db.Model(&zoneRecord{}).Where("person = ?", person).Select("zone", "updated_at").Updates(&zoneRecord{Zone: name, UpdatedAt: now}).Error |
| + return t.db.Model(&zoneRecord{}).Where("person = ?", person).Select("zone", "source", "updated_at").Updates(&zoneRecord{Zone: name, Source: source, UpdatedAt: now}).Error |
| }) |
| if errors.Is(err, gorm.ErrRecordNotFound) { |
| err = ErrNotFound |
| @@ -109,7 +131,7 @@ func (s *Store) SetZone(ctx context.Context, person, name string) (string, error |
| if err != nil { |
| return "", err |
| } |
| - return name, nil |
| + return effect, nil |
| } |
| // setZone is PUT /time-zone and PUT /assistant/time-zone: 200 with the |
| @@ -127,3 +149,20 @@ func (h *HTTP) setZone(w http.ResponseWriter, r *http.Request, p personapi.Perso |
| } |
| writeJSON(w, 200, wire.TimeZone{TimeZone: out}) |
| } |
| + |
| +// setAssistantZone is PUT /assistant/time-zone: Base's zone for the |
| +// person, kept from overriding their own device's with only_if_unset; 200 |
| +// with the zone in effect. |
| +func (h *HTTP) setAssistantZone(w http.ResponseWriter, r *http.Request, p personapi.PersonPrincipal) { |
| + var in wire.AssistantTimeZone |
| + if err := readJSON(r, &in); err != nil { |
| + h.fail(w, r, err) |
| + return |
| + } |
| + out, err := h.Store.SetZoneFrom(r.Context(), p.Address, in.TimeZone, ZoneBase, in.OnlyIfUnset) |
| + if err != nil { |
| + h.fail(w, r, err) |
| + return |
| + } |
| + writeJSON(w, 200, wire.TimeZone{TimeZone: out}) |
| +} |
diff --git a/internal/equipo/chat/zone_test.go b/internal/equipo/chat/zone_test.go| index 416c65cc..bc2a8e76 100644 |
| --- a/internal/equipo/chat/zone_test.go |
| +++ b/internal/equipo/chat/zone_test.go |
| @@ -46,3 +46,37 @@ func TestPersonZone(t *testing.T) { |
| t.Fatalf("same zone: %q %v", got, err) |
| } |
| } |
| + |
| +// Base sends the team's zone for every member (only_if_unset): it never |
| +// overrides a zone the person's own browser or device sent, which wins; |
| +// and it answers the zone in effect. |
| +func TestBaseZoneNeverOverridesTheDevice(t *testing.T) { |
| + r := newMeteredRig(t) |
| + ctx := context.Background() |
| + // Nothing yet: Base's zone is stored, as Base's. |
| + if got, err := r.s.SetZoneFrom(ctx, "owner@example.com", "Europe/Lisbon", ZoneBase, true); err != nil || got != "Europe/Lisbon" { |
| + t.Fatalf("first from Base: %q %v", got, err) |
| + } |
| + // Base again with another: still Base's, so it moves. |
| + if got, _ := r.s.SetZoneFrom(ctx, "owner@example.com", "Europe/Paris", ZoneBase, true); got != "Europe/Paris" { |
| + t.Fatalf("Base again: %q", got) |
| + } |
| + // The person's device: it wins. |
| + if got, err := r.s.SetZone(ctx, "owner@example.com", "America/New_York"); err != nil || got != "America/New_York" { |
| + t.Fatalf("device: %q %v", got, err) |
| + } |
| + if got, err := r.s.SetZoneFrom(ctx, "owner@example.com", "Europe/Paris", ZoneBase, true); err != nil || got != "America/New_York" { |
| + t.Fatalf("Base after the device: %q %v", got, err) |
| + } |
| + if got := r.s.Zone("owner@example.com").String(); got != "America/New_York" { |
| + t.Fatalf("zone %q", got) |
| + } |
| + // A plain PUT from Base is an explicit change: it is stored. |
| + if got, _ := r.s.SetZoneFrom(ctx, "owner@example.com", "Europe/Paris", ZoneBase, false); got != "Europe/Paris" { |
| + t.Fatalf("Base without only_if_unset: %q", got) |
| + } |
| + // An unknown zone is refused even when it would not be stored. |
| + if _, err := r.s.SetZoneFrom(ctx, "owner@example.com", "Mars/Olympus", ZoneBase, true); !errors.Is(err, ErrInvalid) { |
| + t.Fatalf("unknown: %v", err) |
| + } |
| +} |
diff --git a/internal/equipo/migrations/0104_person_zones.sql b/internal/equipo/migrations/0104_person_zones.sql| index f8670daa..a662cb94 100644 |
| --- a/internal/equipo/migrations/0104_person_zones.sql |
| +++ b/internal/equipo/migrations/0104_person_zones.sql |
| @@ -1,3 +1,4 @@ |
| -- A person's time zone (paused work, 2026-11-24): the IANA name their |
| --- browser, device or Base last sent. None is Europe/Dublin. |
| -CREATE TABLE chat_person_zones (person text PRIMARY KEY, zone text NOT NULL, updated_at datetime); |
| +-- browser or device (source device) or Base (source base) last sent; the |
| +-- person's own wins. None is Europe/Dublin. |
| +CREATE TABLE chat_person_zones (person text PRIMARY KEY, zone text NOT NULL, source text, updated_at datetime); |
diff --git a/internal/equipo/migrations/schema.sql b/internal/equipo/migrations/schema.sql| index 59b2a6e7..9098c88c 100644 |
| --- a/internal/equipo/migrations/schema.sql |
| +++ b/internal/equipo/migrations/schema.sql |
| @@ -772,5 +772,5 @@ CREATE TABLE chat_project_names ( |
| ALTER TABLE chat_projects ADD COLUMN title_set numeric; |
| ALTER TABLE chat_projects ADD COLUMN description_set numeric; |
| UPDATE chat_projects SET title_set = metadata_set, description_set = metadata_set; |
| -CREATE TABLE chat_person_zones (person text PRIMARY KEY, zone text NOT NULL, updated_at datetime); |
| +CREATE TABLE chat_person_zones (person text PRIMARY KEY, zone text NOT NULL, source text, updated_at datetime); |
| ALTER TABLE chat_cards ADD COLUMN carry_on numeric; |
diff --git a/internal/thintest/assistant.go b/internal/thintest/assistant.go| index bb41cadd..300f5d7f 100644 |
| --- a/internal/thintest/assistant.go |
| +++ b/internal/thintest/assistant.go |
| @@ -98,3 +98,9 @@ func (a *AssistantClient) CarryOn(ctx context.Context, id string, revision int64 |
| func (a *AssistantClient) PutTimeZone(ctx context.Context, zone string) (out wire.TimeZone, err error) { |
| return out, a.c.do(ctx, http.MethodPut, assistantPath+"/time-zone", wire.TimeZone{TimeZone: zone}, &out) |
| } |
| + |
| +// PutTimeZoneIfUnset is PUT /api/v1/assistant/time-zone with only_if_unset: |
| +// Base's team zone, never over the person's own device's. |
| +func (a *AssistantClient) PutTimeZoneIfUnset(ctx context.Context, zone string) (out wire.TimeZone, err error) { |
| + return out, a.c.do(ctx, http.MethodPut, assistantPath+"/time-zone", wire.AssistantTimeZone{TimeZone: zone, OnlyIfUnset: true}, &out) |
| +} |
diff --git a/internal/thintest/assistant_paused_contract_test.go b/internal/thintest/assistant_paused_contract_test.go| index 71ee45a1..666e8c7c 100644 |
| --- a/internal/thintest/assistant_paused_contract_test.go |
| +++ b/internal/thintest/assistant_paused_contract_test.go |
| @@ -103,7 +103,6 @@ func TestContractPausedJob(t *testing.T) { |
| if err != nil { |
| t.Fatal(err) |
| } |
| - _, _ = o.inst.Store.Chat().SetZone(o.ctx, Owner, "Europe/Dublin") |
| o.tick() |
| want := wire.JobWorking |
| if knows { |
| @@ -144,6 +143,15 @@ func TestContractPausedJob(t *testing.T) { |
| if _, err := o.a.PutTimeZone(o.ctx, "Europe/Dublin"); err != nil { |
| t.Fatal(err) |
| } |
| + // Base's team zone never overrides the person's own device's: the |
| + // answer is the zone in effect. |
| + var device wire.TimeZone |
| + if err := o.client.do(o.ctx, "PUT", "/api/v1/time-zone", wire.TimeZone{TimeZone: "Europe/Dublin"}, &device); err != nil || device.TimeZone != "Europe/Dublin" { |
| + t.Fatalf("the device's zone: %+v %v", device, err) |
| + } |
| + if z, err := o.a.PutTimeZoneIfUnset(o.ctx, "Asia/Tokyo"); err != nil || z.TimeZone != "Europe/Dublin" { |
| + t.Fatalf("only_if_unset over the device's zone: %+v %v", z, err) |
| + } |
| o.tick() |
| paused = o.jobKnowing(request, "back in Dublin", func(c wire.AssistantCard) bool { return c.State == wire.JobPaused && c.Result == until(dublin) }) |
diff --git a/internal/wire/assistant.go b/internal/wire/assistant.go| index 3f4c5067..c3beb74e 100644 |
| --- a/internal/wire/assistant.go |
| +++ b/internal/wire/assistant.go |
| @@ -230,6 +230,14 @@ type AssistantCarriedOn struct { |
| Card AssistantCard `json:"card"` |
| } |
| +// AssistantTimeZone is PUT /api/v1/assistant/time-zone: Base's zone for |
| +// the person. OnlyIfUnset keeps a zone the person's own browser or device |
| +// set; the answer is the zone in effect (TimeZone). |
| +type AssistantTimeZone struct { |
| + TimeZone string `json:"time_zone"` |
| + OnlyIfUnset bool `json:"only_if_unset,omitempty"` |
| +} |
| + |
| // TimeZone is PUT /api/v1/time-zone and PUT /api/v1/assistant/time-zone, |
| // and their answer: the person's zone, an IANA name. Times the instance |
| // words for the person (a reset, when paused work carries on) are in it. |
diff --git a/internal/wire/wiretest/testdata/api/task-held.json b/internal/wire/wiretest/testdata/api/task-held.json| index b3e75944..c73d7cf0 100644 |
| --- a/internal/wire/wiretest/testdata/api/task-held.json |
| +++ b/internal/wire/wiretest/testdata/api/task-held.json |
| @@ -1 +1 @@ |
| -{"id": "tk0001", "revision": 5, "project_id": "p_0001", "project": "Sample", "repo": "amadan.net/oficina/sample", "title": "Swipe back from the edge does nothing", "brief": "Swiping from the left edge should go back a pane.", "stage": "in_progress", "branch": "equipo/tk0001-swipe-back-from-the-edge-does-nothing", "base_sha": "1111111111111111111111111111111111111111", "url": "https://amadan.net/oficina/sample?branch=equipo/tk0001-swipe-back-from-the-edge-does-nothing", "creator": "owner@example.com", "turn_id": "t_0001", "findings": [{"id": "f_0001", "headline": "Found it: the edge swipe never reaches the back handler.", "text": "The edge-swipe handler returns false, so back never fires.", "repo": "amadan.net/oficina/sample", "path": "panes/swipe.go", "line": 4, "at": "2026-11-07T10:00:02Z"}], "steps": [{"id": "s_0001", "revision": 3, "task_id": "tk0001", "index": 1, "specialist": "engineering", "state": "queued", "reason": "", "attempt": 1, "base_sha": "1111111111111111111111111111111111111111", "candidate_sha": "2222222222222222222222222222222222222222", "pushed": true, "terminated": true, "summary": "EdgeSwipe now goes back on a swipe from the edge.", "headline": "Fixed swipe-back from the edge.", "log_tail": "Edit panes/swipe.go\nDone.", "started_at": "2026-11-07T10:00:03Z", "finished_at": "2026-11-07T10:01:40Z", "round": 0, "family": "claude", "account": "claude-a", "verdict": "", "review_label": "", "findings": [], "checks": "", "gate": "", "exit_code": null, "askable": true, "rebase": false, "merge_sha": "", "into": "", "strategy": "", "without_checks": false, "switched": null, "activity": [{"kind": "read", "subject": "panes/swipe.go", "at": "2026-11-07T10:00:20Z"}, {"kind": "edit", "subject": "panes/swipe.go", "at": "2026-11-07T10:01:02Z"}, {"kind": "run", "subject": "go test ./panes", "at": "2026-11-07T10:01:20Z"}], "runner_id": "RUNNER1", "runner_label": "", "needs": [], "placement": "", "publication": "", "termination_kind": "namespace", "hold": {"reason": "headroom", "connection": "claude-a", "provider": "claude", "resets_at": "2026-11-16T10:00:00Z", "wake_at": "2026-11-16T10:00:00Z", "needs_person": "no_reset", "step_revision": 1}, "paused": {"since": "2026-11-13T09:00:00Z", "run_now": {"connection": "cn_claude_a", "provider": "claude", "name": "Claude", "billing": "subscription", "same": true}}}], "thread": [{"id": "e_0001", "author": "owner@example.com", "text": "It happens on the iPhone only.", "at": "2026-11-07T10:00:30Z"}], "created_at": "2026-11-07T10:00:01Z", "updated_at": "2026-11-07T10:01:40Z", "candidate_sha": "2222222222222222222222222222222222222222", "checks": "", "checks_reason": "", "verdict": "", "review_label": "", "needs_you": "held", "fix_rounds": 0, "branch_head": "", "questions": [{"id": "q_0001", "revision": 3, "task_id": "tk0001", "step_id": "s_0001", "specialist": "engineering", "asker": "owner@example.com", "text": "What did you change and why?", "state": "answered", "reason": "", "attempt": 1, "answer": "I made the edge swipe return true, so a swipe from the left edge goes back a pane. Before, the handler always said no.", "created_at": "2026-11-07T10:05:00Z", "updated_at": "2026-11-07T10:05:09Z", "timing": null}], "merged": null, "reports": 0, "ask_open": false, "merge_offered": false, "creator_name": "Owner", "source_message_id": "m_0001", "source_at": "2026-11-07T09:59:58Z", "duplicate_of": null, "coordinator": null, "folded": null, "combined": null, "engineering_runner": "RUNNER1", "priority": {"priority": "low", "by": "2026-11-20T17:00:00Z", "set_by": "coordinator"}} |
| +{"id":"tk0001","revision":5,"project_id":"p_0001","project":"Sample","repo":"amadan.net/oficina/sample","title":"Swipe back from the edge does nothing","brief":"Swiping from the left edge should go back a pane.","stage":"in_progress","branch":"equipo/tk0001-swipe-back-from-the-edge-does-nothing","base_sha":"1111111111111111111111111111111111111111","url":"https://amadan.net/oficina/sample?branch=equipo/tk0001-swipe-back-from-the-edge-does-nothing","creator":"owner@example.com","turn_id":"t_0001","findings":[{"id":"f_0001","headline":"Found it: the edge swipe never reaches the back handler.","text":"The edge-swipe handler returns false, so back never fires.","repo":"amadan.net/oficina/sample","path":"panes/swipe.go","line":4,"at":"2026-11-07T10:00:02Z"}],"steps":[{"id":"s_0001","revision":3,"task_id":"tk0001","index":1,"specialist":"engineering","state":"queued","reason":"","attempt":1,"base_sha":"1111111111111111111111111111111111111111","candidate_sha":"2222222222222222222222222222222222222222","pushed":true,"terminated":true,"summary":"EdgeSwipe now goes back on a swipe from the edge.","headline":"Fixed swipe-back from the edge.","log_tail":"Edit panes/swipe.go\nDone.","started_at":"2026-11-07T10:00:03Z","finished_at":"2026-11-07T10:01:40Z","round":0,"family":"claude","account":"claude-a","verdict":"","review_label":"","findings":[],"checks":"","gate":"","exit_code":null,"askable":true,"rebase":false,"merge_sha":"","into":"","strategy":"","without_checks":false,"switched":null,"activity":[{"kind":"read","subject":"panes/swipe.go","at":"2026-11-07T10:00:20Z"},{"kind":"edit","subject":"panes/swipe.go","at":"2026-11-07T10:01:02Z"},{"kind":"run","subject":"go test ./panes","at":"2026-11-07T10:01:20Z"}],"runner_id":"RUNNER1","runner_label":"","needs":[],"placement":"","publication":"","termination_kind":"namespace","hold":{"reason":"headroom","connection":"claude-a","provider":"claude","resets_at":"2026-11-16T10:00:00Z","wake_at":"2026-11-16T10:00:00Z","needs_person":"no_reset","step_revision":1},"paused":{"since":"2026-11-13T09:00:00Z","run_now":{"connection":"cn_claude_a","provider":"claude","name":"Claude","billing":"subscription","same":true}}}],"thread":[{"id":"e_0001","author":"owner@example.com","text":"It happens on the iPhone only.","at":"2026-11-07T10:00:30Z"}],"created_at":"2026-11-07T10:00:01Z","updated_at":"2026-11-07T10:01:40Z","candidate_sha":"2222222222222222222222222222222222222222","checks":"","checks_reason":"","verdict":"","review_label":"","needs_you":"held","fix_rounds":0,"branch_head":"","questions":[{"id":"q_0001","revision":3,"task_id":"tk0001","step_id":"s_0001","specialist":"engineering","asker":"owner@example.com","text":"What did you change and why?","state":"answered","reason":"","attempt":1,"answer":"I made the edge swipe return true, so a swipe from the left edge goes back a pane. Before, the handler always said no.","created_at":"2026-11-07T10:05:00Z","updated_at":"2026-11-07T10:05:09Z","timing":null}],"merged":null,"reports":0,"ask_open":false,"merge_offered":false,"creator_name":"Owner","source_message_id":"m_0001","source_at":"2026-11-07T09:59:58Z","duplicate_of":null,"coordinator":null,"folded":null,"combined":null,"engineering_runner":"RUNNER1","priority":{"priority":"low","by":"2026-11-20T17:00:00Z","set_by":"coordinator"}} |