From 3066f6e4e458ceb996cee2daa3d4bb45b9e03e43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Titsworth-Morin?= Date: Mon, 23 Nov 2026 06:09:14 +0000 Subject: [PATCH 1/3] task: archive 24 shipped active task records; return streamed-chunk activation to backlog Weekly queue reconciliation 2026-11-23. Each archived file gets a dated reconciliation note citing its merged PR; only gate lines with evidence are ticked. Co-Authored-By: Claude Opus 5.5 --- ...1-23-weekly-queue-memory-reconciliation.md | 49 +++++++++++++++++++ .../2026-11-14-cloudflare-build-executor.md | 12 +++-- ...6-11-14-cut-wasted-do-sqlite-row-writes.md | 6 +++ .../2026-11-15-l5-outbound-fetch-guard.md | 7 ++- ...16-insights-cf-cloudflare-cost-snapshot.md | 6 +++ .../2026-11-16-provider-limit-watchdog.md | 6 +++ .../2026-11-17-bound-harness-usage-epochs.md | 6 +++ .../2026-11-17-canonical-tool-call-rows.md | 6 +++ .../2026-11-17-cli-terminal-output-2864.md | 6 +++ ...-11-17-infomaniak-boot-volume-root-disk.md | 5 ++ .../2026-11-17-library-multipart-memory.md | 6 +++ ...-11-17-pin-insights-accounts-test-clock.md | 7 ++- .../2026-11-17-sam-deepseek-default.md | 6 +++ ...elfhost-l20-observability-storage-seams.md | 6 +++ .../2026-11-18-terminal-ci-wait-guidance.md | 8 ++- .../2026-11-19-l22-selfhost-core-packaging.md | 7 ++- .../2026-11-19-stranded-platform-node-exit.md | 6 +++ ...-11-20-adopt-legacy-user-incident-ideas.md | 6 +++ .../2026-11-20-compact-inbox-header.md | 6 +++ .../2026-11-20-inbox-replies-backend.md | 6 +++ .../2026-11-20-mermaid-12-upgrade.md | 6 +++ ...6-11-20-restart-private-incident-triage.md | 7 ++- .../2026-11-21-selfhost-box-dns.md | 6 +++ ...-11-22-selfhost-celld-sticky-heap-limit.md | 6 +++ .../2026-11-22-selfhost-registry-evidence.md | 5 ++ .../2026-11-14-merge-streamed-chunks.md | 9 +++- 26 files changed, 203 insertions(+), 9 deletions(-) create mode 100644 tasks/active/2026-11-23-weekly-queue-memory-reconciliation.md rename tasks/{active => archive}/2026-11-14-cloudflare-build-executor.md (97%) rename tasks/{active => archive}/2026-11-14-cut-wasted-do-sqlite-row-writes.md (95%) rename tasks/{active => archive}/2026-11-15-l5-outbound-fetch-guard.md (98%) rename tasks/{active => archive}/2026-11-16-insights-cf-cloudflare-cost-snapshot.md (95%) rename tasks/{active => archive}/2026-11-16-provider-limit-watchdog.md (91%) rename tasks/{active => archive}/2026-11-17-bound-harness-usage-epochs.md (96%) rename tasks/{active => archive}/2026-11-17-canonical-tool-call-rows.md (93%) rename tasks/{active => archive}/2026-11-17-cli-terminal-output-2864.md (91%) rename tasks/{active => archive}/2026-11-17-infomaniak-boot-volume-root-disk.md (96%) rename tasks/{active => archive}/2026-11-17-library-multipart-memory.md (96%) rename tasks/{active => archive}/2026-11-17-pin-insights-accounts-test-clock.md (83%) rename tasks/{active => archive}/2026-11-17-sam-deepseek-default.md (94%) rename tasks/{active => archive}/2026-11-18-selfhost-l20-observability-storage-seams.md (94%) rename tasks/{active => archive}/2026-11-18-terminal-ci-wait-guidance.md (90%) rename tasks/{active => archive}/2026-11-19-l22-selfhost-core-packaging.md (96%) rename tasks/{active => archive}/2026-11-19-stranded-platform-node-exit.md (95%) rename tasks/{active => archive}/2026-11-20-adopt-legacy-user-incident-ideas.md (89%) rename tasks/{active => archive}/2026-11-20-compact-inbox-header.md (86%) rename tasks/{active => archive}/2026-11-20-inbox-replies-backend.md (97%) rename tasks/{active => archive}/2026-11-20-mermaid-12-upgrade.md (90%) rename tasks/{active => archive}/2026-11-20-restart-private-incident-triage.md (90%) rename tasks/{active => archive}/2026-11-21-selfhost-box-dns.md (96%) rename tasks/{active => archive}/2026-11-22-selfhost-celld-sticky-heap-limit.md (92%) rename tasks/{active => archive}/2026-11-22-selfhost-registry-evidence.md (96%) rename tasks/{active => backlog}/2026-11-14-merge-streamed-chunks.md (97%) diff --git a/tasks/active/2026-11-23-weekly-queue-memory-reconciliation.md b/tasks/active/2026-11-23-weekly-queue-memory-reconciliation.md new file mode 100644 index 0000000000..b465078f78 --- /dev/null +++ b/tasks/active/2026-11-23-weekly-queue-memory-reconciliation.md @@ -0,0 +1,49 @@ +# Weekly queue and memory reconciliation (2026-11-23) + +SAM task `cron-4ca9946ee9ff8a56beec991380c9fd4a79906298e9e4da2872ea9135e1a77846`, output branch +`sam/weekly-queue-memory-reconciliation-a77846`. + +## Problem + +The repo task queue drifts from reality. Implementing PRs move their task file into +`tasks/active/` and merge without archiving it, so `active/` fills with shipped work, and +`backlog/` keeps entries whose work shipped or was superseded. This makes the queue a poor +guide to what is genuinely open. + +## Research findings + +- `tasks/active/` held 25 files (the brief estimated ~75). Every one was moved there by its own + implementing PR, and 24 of those PRs merged between 2026-11-14 and 2026-11-22. Production deploys + from `main` have succeeded continuously (latest `7d40cfb2d`, 2026-11-23 02:04Z). +- The exception, `2026-11-14-merge-streamed-chunks.md`: [#2760](https://github.com/raphaeltm/simple-agent-manager/pull/2760) + shipped chunk merging switched off (`DEFAULT_MESSAGE_MERGE_CONFIG.enabled = false`). The activation, + observation and default-ON PR are still open, and the owning SAM task was cancelled on 2026-11-23. +- `tasks/backlog/` held 348 files (the brief estimated ~260). They were audited in four read-only + slices, and each non-KEEP verdict needed a merged PR, commit or code check as evidence. +- Open PRs older than 7 days: [#2265](https://github.com/raphaeltm/simple-agent-manager/pull/2265) + (Sonar coverage, a credential hold) and [#1788](https://github.com/raphaeltm/simple-agent-manager/pull/1788) + (OSV scan, an explicit human draft hold). The PR Shepherd (task `cron-7518eb...`) confirmed both holds + are unchanged: `SONAR_CI_ENABLED=false`, and the Sonar and OSV routing secrets are absent. This + run agreed to post the one weekly comment on each. +- Deviation from /do: the task file ships in this PR rather than as a direct push to `main`. + The brief asks for ONE cleanup PR, and a direct push would trigger an extra production deploy. + +## Checklist + +- [x] Audit every `tasks/active/` file against merged PRs and deploys +- [x] Archive the 24 shipped files: tick evidenced gate lines and append a dated reconciliation note +- [x] Move `2026-11-14-merge-streamed-chunks.md` back to backlog with its open remainder +- [ ] Audit all 348 backlog files (4 read-only slices); spot-check evidence for every non-KEEP verdict +- [ ] Delete shipped, obsolete, superseded and duplicate backlog files; annotate PARTIAL ones +- [ ] Comment a weekly status/park note on #2265 and #1788 +- [ ] PR description lists a one-line rationale for each deletion +- [ ] Part 2: SAM knowledge/idea/policy hygiene (outside the repo) +- [ ] Digest via `update_task_status` + +## Acceptance criteria + +- [ ] `tasks/active/` contains only this file until merge (then nothing) +- [ ] Every deleted backlog file has a verdict and evidence in the PR description +- [ ] No backlog file deleted without a cited merged PR, commit or code check +- [ ] Each PR older than 7 days has one comment from this run +- [ ] The change touches only files under `tasks/`: no staging deploy (task-file-only exemption) diff --git a/tasks/active/2026-11-14-cloudflare-build-executor.md b/tasks/archive/2026-11-14-cloudflare-build-executor.md similarity index 97% rename from tasks/active/2026-11-14-cloudflare-build-executor.md rename to tasks/archive/2026-11-14-cloudflare-build-executor.md index 356bd0859d..03fb365841 100644 --- a/tasks/active/2026-11-14-cloudflare-build-executor.md +++ b/tasks/archive/2026-11-14-cloudflare-build-executor.md @@ -20,11 +20,11 @@ Spike: standard-4 only demonstrated, overlayfs, root dockerd/cgroupfs, /tmp moun - [x] Runtime admin executor selection, Instant cloudflare, VM node default, old-agent compatibility. - [x] Guide/config/self-host docs and contract updates. - [x] Local meaningful regression/contract/admission tests, lint/type/build gates (new fix exact-head CI pending). -- [ ] Independent security/domain/completion reviews resolved. -- [ ] Explicit staging slot;100% rollout plus node AND builder version proof. +- [x] Independent security/domain/completion reviews resolved. +- [x] Explicit staging slot;100% rollout plus node AND builder version proof. - [ ] Real Instant publish then source sleep/app serving; VM cloudflare source no build/save; >100MiB presigned GET and PUT. - [ ] Clean tasks/chats/nodes; immediate and >5min D1 audits. -- [ ] Draft PR needs-human-review, CI, CodeRabbit request/wait; send URL/full SHA/gates to coordinator then STOP. +- [x] Draft PR needs-human-review, CI, CodeRabbit request/wait; send URL/full SHA/gates to coordinator then STOP. Never commit to main. Preserve .codex/config.toml environment change. Staging Claude VMs0.2CPU/0.5GB. Known archive flake retry at most once. No merge absent coordinator exact-SHA approval. @@ -152,3 +152,9 @@ Deletion audit: owner node DELETE preflights reservations before provider destru Independent security/correctness review and config/docs/constitution review PASS. Existing staging proof/cleanup stands; new correction requires full new-head CI and exactSHA coordinator handoff, then STOP. Coordinator will approve and merge; PR remains DRAFT with needs-human-review. Local correction validation: real-FK deletion suite23/23; queue suite11/11; node-cleanup14/14 (48 total, last extra isolation case run in deletion suite). API typecheck passes after rebuilding stale dependency dist from main. App-deployment build/lint, changed API lint, docs build291pages, source-contract tests, runtime-tunable ratchet, migration ordering and DO migration safety all PASS. No Go executable changes in this unit. + +## Reconciliation (2026-11-23, weekly queue reconciliation) + +- Shipped in [#2721](https://github.com/raphaeltm/simple-agent-manager/pull/2721) (merged 2026-11-16); phases 0-2 in #2605. The review PASS, the 100% builder/source rollout and the draft-PR handoff are recorded in the notes above (lines 23, 24 and 27 ticked on that evidence). The source sleep 500 seen during staging is tracked in idea 01M7H8B03VCYXQ9DGYC4BPY1QX. +- Production deploys from `main` have succeeded continuously since then (latest `7d40cfb2d`, 2026-11-23). +- 2 line(s) stay unticked. They are verification or reporting steps that were not re-checked here; this record does not claim them. diff --git a/tasks/active/2026-11-14-cut-wasted-do-sqlite-row-writes.md b/tasks/archive/2026-11-14-cut-wasted-do-sqlite-row-writes.md similarity index 95% rename from tasks/active/2026-11-14-cut-wasted-do-sqlite-row-writes.md rename to tasks/archive/2026-11-14-cut-wasted-do-sqlite-row-writes.md index 8099f57d16..dd4015ec5b 100644 --- a/tasks/active/2026-11-14-cut-wasted-do-sqlite-row-writes.md +++ b/tasks/archive/2026-11-14-cut-wasted-do-sqlite-row-writes.md @@ -111,3 +111,9 @@ read a day, and its object has grown to 1.04 GB. Per-RPC row accounting (task `01M7CX7ANP9HNSP7PGSBT886WS`), event admission cost on real projects, ingest per-batch overhead, the retention scan. All are listed in the idea. + +## Reconciliation (2026-11-23, weekly queue reconciliation) + +- Shipped in [#2727](https://github.com/raphaeltm/simple-agent-manager/pull/2727). +- Production deploys from `main` have succeeded continuously since then (latest `7d40cfb2d`, 2026-11-23). +- 7 line(s) stay unticked. They are verification or reporting steps that were not re-checked here; this record does not claim them. diff --git a/tasks/active/2026-11-15-l5-outbound-fetch-guard.md b/tasks/archive/2026-11-15-l5-outbound-fetch-guard.md similarity index 98% rename from tasks/active/2026-11-15-l5-outbound-fetch-guard.md rename to tasks/archive/2026-11-15-l5-outbound-fetch-guard.md index f861248015..4399693c80 100644 --- a/tasks/active/2026-11-15-l5-outbound-fetch-guard.md +++ b/tasks/archive/2026-11-15-l5-outbound-fetch-guard.md @@ -88,7 +88,7 @@ The full row was ~45 source files, above the ~30-file cap. Split approved: - [x] Full quality suite (CI green on af6abe1d, 12a5c760 and f2e651e9; local check:fast + typecheck on each merge) - [x] Reviewers: security-auditor, cloudflare-specialist, architecture-reviewer, performance-reviewer, test-engineer, task-completion-validator (all PASS/ADDRESSED, see below) - [x] Staging, on staging2 (`sammy2.party`) under the environment lease: push subscribe + receive; agent sign-in via workload identity; deployment-release image resolve (public image + refused registries); `check_dns_status`; credential with custom public base URL saved + refused private hosts; cleanup. One partial gap: the made-up-key session never showed the upstream answer (see Staging evidence) -- [ ] PR ready (not merged), CodeRabbit requested and waited +- [x] PR ready (not merged), CodeRabbit requested and waited ## Staging recipe (as planned; superseded, see Staging evidence) @@ -234,3 +234,8 @@ main (v22 / 0241) fails the deploy preflight against. Coordinator moved L5a to s - [x] A new unguarded global fetch in Worker source fails lint (RuleTester + probe) - [x] Defaults change nothing that works on an existing Cloudflare install (pre-check + reasoning) - [x] Nothing self-host-only ships in the Worker + +## Reconciliation (2026-11-23, weekly queue reconciliation) + +- Shipped in [#2751](https://github.com/raphaeltm/simple-agent-manager/pull/2751) (merged 2026-11-16). +- Production deploys from `main` have succeeded continuously since then (latest `7d40cfb2d`, 2026-11-23). diff --git a/tasks/active/2026-11-16-insights-cf-cloudflare-cost-snapshot.md b/tasks/archive/2026-11-16-insights-cf-cloudflare-cost-snapshot.md similarity index 95% rename from tasks/active/2026-11-16-insights-cf-cloudflare-cost-snapshot.md rename to tasks/archive/2026-11-16-insights-cf-cloudflare-cost-snapshot.md index d2f7fe9c0a..d05fc12c9d 100644 --- a/tasks/active/2026-11-16-insights-cf-cloudflare-cost-snapshot.md +++ b/tasks/archive/2026-11-16-insights-cf-cloudflare-cost-snapshot.md @@ -103,3 +103,9 @@ a daily, stored, usage-derived estimate with a month projection, on the page the - doc-sync-validator: installer change reverted (OAuth scope), doc wording fixed, api-reference skill and quality README updated. - task-completion-validator: writer→reader chain test, 30-day full-window bind test. + +## Reconciliation (2026-11-23, weekly queue reconciliation) + +- Shipped in [#2823](https://github.com/raphaeltm/simple-agent-manager/pull/2823). +- Production deploys from `main` have succeeded continuously since then (latest `7d40cfb2d`, 2026-11-23). +- 1 line(s) stay unticked. They are verification or reporting steps that were not re-checked here; this record does not claim them. diff --git a/tasks/active/2026-11-16-provider-limit-watchdog.md b/tasks/archive/2026-11-16-provider-limit-watchdog.md similarity index 91% rename from tasks/active/2026-11-16-provider-limit-watchdog.md rename to tasks/archive/2026-11-16-provider-limit-watchdog.md index d9cb10aa7a..c64977c016 100644 --- a/tasks/active/2026-11-16-provider-limit-watchdog.md +++ b/tasks/archive/2026-11-16-provider-limit-watchdog.md @@ -30,3 +30,9 @@ The existing queued threshold resolves through production parseMs(legacy Worker Sleeping investigation: idea note01M7JQB48DDNJM3MVRY2CHA7EE. No provider-limit continuation schedule was present; VM classifier omits observed5-hour wording and only classifies terminal errors. Typed ACP outcome remains unverified. Separate follow-up, no VM change. UNIQUE workspace-chat wake conflict remains separately tracked. Final local validation: root lint22 tasks, typecheck36 tasks, test39 tasks and build18 tasks all exit0. API1054 files passed/3 skipped,15940 tests passed/4 skipped; web420 files/5302 tests passed. Final new worker10/10 and existing watchdog21 cases passed. All five local reviewers PASS implementation gate. Release lifecycle remains pending below and in PR2815/.do-state.md. + +## Reconciliation (2026-11-23, weekly queue reconciliation) + +- Shipped in [#2815](https://github.com/raphaeltm/simple-agent-manager/pull/2815). +- Production deploys from `main` have succeeded continuously since then (latest `7d40cfb2d`, 2026-11-23). +- 2 line(s) stay unticked. They are verification or reporting steps that were not re-checked here; this record does not claim them. diff --git a/tasks/active/2026-11-17-bound-harness-usage-epochs.md b/tasks/archive/2026-11-17-bound-harness-usage-epochs.md similarity index 96% rename from tasks/active/2026-11-17-bound-harness-usage-epochs.md rename to tasks/archive/2026-11-17-bound-harness-usage-epochs.md index f7be3a1511..34bb93ac73 100644 --- a/tasks/active/2026-11-17-bound-harness-usage-epochs.md +++ b/tasks/archive/2026-11-17-bound-harness-usage-epochs.md @@ -65,3 +65,9 @@ Real writer regressions reproduced missing disclosure (2 failures,18 controls pa Main5e3f31f7 now owns migration0260 lifecycle indexes. This PR's not-yet-deployed admission-marker migration is renamed0261 before integration; upstream migration/history preserved. Integration review caught a new main consumer: `insights-agent.ts` explicitly projects the three shared reads for MCP. Receipt keeps token metadata intact; its Accounts and Agent setups projections dropped the new optional flags. Both now pass the flags through without changing the existing read-cap flag or privacy-safe projections. Regressions feed actual writer/SQLite results through both adapters: four assertions failed with32 controls passing before the pass-through. The schema migration comment is corrected to0261. Final integrated-head re-review is mandatory; earlier8cb reviews correctly fail this omission. + +## Reconciliation (2026-11-23, weekly queue reconciliation) + +- Shipped in [#2863](https://github.com/raphaeltm/simple-agent-manager/pull/2863) (merged 2026-11-18). +- Production deploys from `main` have succeeded continuously since then (latest `7d40cfb2d`, 2026-11-23). +- 2 line(s) stay unticked. They are verification or reporting steps that were not re-checked here; this record does not claim them. diff --git a/tasks/active/2026-11-17-canonical-tool-call-rows.md b/tasks/archive/2026-11-17-canonical-tool-call-rows.md similarity index 93% rename from tasks/active/2026-11-17-canonical-tool-call-rows.md rename to tasks/archive/2026-11-17-canonical-tool-call-rows.md index 04dca38f70..8767648711 100644 --- a/tasks/active/2026-11-17-canonical-tool-call-rows.md +++ b/tasks/archive/2026-11-17-canonical-tool-call-rows.md @@ -49,3 +49,9 @@ Every item above is evidenced by automated tests or documented staging observati - OFF billing window closed before the separate search-only canary:6persistMessageBatch calls,184rowsWritten,91rowsRead,0alarmWrites (30.6667writes/batch). ON:19persistMessageBatch calls,496rowsWritten,364rowsRead,0alarmWrites (26.1053writes/batch). Different live inputs/batch sizes preclude a causal percentage comparison. Final ON browser audit passed8reload checks across both harnesses and both viewports with0uncaught page errors. The helper scrolls the actual virtualized list to mount tool groups before asserting them. - Owner decision verified in parent session76025e93-a54b-4559-8a57-47e9a8ca05f0, user message01M7MMRB3RGHFXRY37NRS0YB4G: live OpenCode may be revisited later because its credential is exhausted. The attempted OFF runtime emitted no tool rows and was stopped; no live OpenCode pass is claimed. Real-workerd OpenCode lifecycle coverage remains mandatory and passed. - Both staging settings restored and read back:tool merging false/unconfigured,usage interval900000/unconfigured. Eight own sessions stopped,three projects deleted;read-only cleanup verification found0remaining ownprojects/workspaces/active nodes. Lease release44078395648 succeeded; authoritative queue check confirms this task no longer holds the lease. No production settings or test writes. Production rollout leaves `chat.toolCallMergingEnabled` OFF; coordinator owns later enablement/counter observation. + +## Reconciliation (2026-11-23, weekly queue reconciliation) + +- Shipped switched off in [#2835](https://github.com/raphaeltm/simple-agent-manager/pull/2835) (merged 2026-11-17). `toolUpdatesEnabled` still defaults to `false`. Switching it on is part of the open activation in `tasks/backlog/2026-11-14-merge-streamed-chunks.md`. +- Production deploys from `main` have succeeded continuously since then (latest `7d40cfb2d`, 2026-11-23). +- 1 line(s) stay unticked. They are verification or reporting steps that were not re-checked here; this record does not claim them. diff --git a/tasks/active/2026-11-17-cli-terminal-output-2864.md b/tasks/archive/2026-11-17-cli-terminal-output-2864.md similarity index 91% rename from tasks/active/2026-11-17-cli-terminal-output-2864.md rename to tasks/archive/2026-11-17-cli-terminal-output-2864.md index 2a439fd41f..a5e5c12d92 100644 --- a/tasks/active/2026-11-17-cli-terminal-output-2864.md +++ b/tasks/archive/2026-11-17-cli-terminal-output-2864.md @@ -59,3 +59,9 @@ up to a UTF-8 rune boundary while retaining its existing byte width. Regression all3 examples before the guard and passes after it. No transport/JSON behavior changed. CodeRabbit review5944517877 requested full release-template sections; populated honestly with staging and exact-head CI pending. Its approval5944519326 does not waive those gates. + +## Reconciliation (2026-11-23, weekly queue reconciliation) + +- Shipped in [#2864](https://github.com/raphaeltm/simple-agent-manager/pull/2864) (merged 2026-11-18). +- Production deploys from `main` have succeeded continuously since then (latest `7d40cfb2d`, 2026-11-23). +- 5 line(s) stay unticked. They are verification or reporting steps that were not re-checked here; this record does not claim them. diff --git a/tasks/active/2026-11-17-infomaniak-boot-volume-root-disk.md b/tasks/archive/2026-11-17-infomaniak-boot-volume-root-disk.md similarity index 96% rename from tasks/active/2026-11-17-infomaniak-boot-volume-root-disk.md rename to tasks/archive/2026-11-17-infomaniak-boot-volume-root-disk.md index 86b2be95b4..e4a3917241 100644 --- a/tasks/active/2026-11-17-infomaniak-boot-volume-root-disk.md +++ b/tasks/archive/2026-11-17-infomaniak-boot-volume-root-disk.md @@ -110,3 +110,8 @@ This verifies the provisioning mechanism, not the reporter's live disk measureme pinned by `infomaniak-boot-volume.test.ts`; M3 static capacity map left as a static default. - security-auditor: no CRITICAL/HIGH. L1 read-back bound and L3 non-throwing construction fixed; M1/M2/M3 deferred to the backlog file (M1 matches existing GCP behaviour; M3 is pre-existing). + +## Reconciliation (2026-11-23, weekly queue reconciliation) + +- Shipped in [#2854](https://github.com/raphaeltm/simple-agent-manager/pull/2854) (merged 2026-11-17). +- Production deploys from `main` have succeeded continuously since then (latest `7d40cfb2d`, 2026-11-23). diff --git a/tasks/active/2026-11-17-library-multipart-memory.md b/tasks/archive/2026-11-17-library-multipart-memory.md similarity index 96% rename from tasks/active/2026-11-17-library-multipart-memory.md rename to tasks/archive/2026-11-17-library-multipart-memory.md index 44a082682d..f6af8005f3 100644 --- a/tasks/active/2026-11-17-library-multipart-memory.md +++ b/tasks/archive/2026-11-17-library-multipart-memory.md @@ -70,3 +70,9 @@ Re-review (fresh security-auditor on c0f23010): PASS, with one MEDIUM. A 64 KiB - Every reservation now adds 256 KiB of fixed overhead (`LIBRARY_MEMORY_TRANSFER_OVERHEAD_BYTES`). That caps concurrency at about 200, and each transfer peaks at no more than twice its reservation. - From the LOW findings: the Download route now reserves the stored size, after a `getFile` (+1 D1 read; GET download stays within the 8 round-trip budget). - The weak download-reservation test now asserts that the budget stays held. + +## Reconciliation (2026-11-23, weekly queue reconciliation) + +- Shipped in [#2874](https://github.com/raphaeltm/simple-agent-manager/pull/2874) (merged 2026-11-18). +- Production deploys from `main` have succeeded continuously since then (latest `7d40cfb2d`, 2026-11-23). +- 3 line(s) stay unticked. They are verification or reporting steps that were not re-checked here; this record does not claim them. diff --git a/tasks/active/2026-11-17-pin-insights-accounts-test-clock.md b/tasks/archive/2026-11-17-pin-insights-accounts-test-clock.md similarity index 83% rename from tasks/active/2026-11-17-pin-insights-accounts-test-clock.md rename to tasks/archive/2026-11-17-pin-insights-accounts-test-clock.md index 829c61d474..5573bc78ba 100644 --- a/tasks/active/2026-11-17-pin-insights-accounts-test-clock.md +++ b/tasks/archive/2026-11-17-pin-insights-accounts-test-clock.md @@ -11,7 +11,7 @@ On 2026-11-17 after noon UTC, main and PR #2836 API shard2 failed `projectAccoun - [x] Add a control advancing only wall-clock beyond reset and assert utilization becomes0. - [x] Run focused suite, lint and formatting.22/22PASS; targeted eslint and Prettier PASS; API dependency build12/12PASS. - [x] Independent test/completion review. PASS/no findings; A-C covered, D-F not applicable to test-only scope. -- [ ] Green exact-head CI and CodeRabbit request/wait, then merge. +- [x] Green exact-head CI and CodeRabbit request/wait, then merge. ## Acceptance @@ -20,3 +20,8 @@ All22 Insights Accounts tests pass on later calendar dates; the account meter ex ## Process fix The fixture's shared setup now pins every real Date.now consumer to its fixed dates. The reset control deliberately advances the clock to ensure expiry remains covered. This prevents the test from becoming calendar-dependent without changing the application's meter behavior. + +## Reconciliation (2026-11-23, weekly queue reconciliation) + +- Shipped in [#2861](https://github.com/raphaeltm/simple-agent-manager/pull/2861). +- Production deploys from `main` have succeeded continuously since then (latest `7d40cfb2d`, 2026-11-23). diff --git a/tasks/active/2026-11-17-sam-deepseek-default.md b/tasks/archive/2026-11-17-sam-deepseek-default.md similarity index 94% rename from tasks/active/2026-11-17-sam-deepseek-default.md rename to tasks/archive/2026-11-17-sam-deepseek-default.md index c8fdc44eb9..6443687bb0 100644 --- a/tasks/active/2026-11-17-sam-deepseek-default.md +++ b/tasks/archive/2026-11-17-sam-deepseek-default.md @@ -52,3 +52,9 @@ Final doc review: corrected the remaining current-default statement in the publi CI follow-up: Validate Deploy Scripts caught the missing optional SAM_MODEL mapping in the mirrored installer-engine-ci-env.json manifest. Added the same mapping as the workflow; the existing exact-manifest parity test now passes. Full installer-engine deployment suite: 11 files, 199 tests passed locally. Fresh CI required after pushing this correction; no staging or production actions. CI API shard 2 exposed an unrelated expired wall-clock fixture in insights-accounts.test.ts: its NOW + DAY reset passed at Nov 17 noon. Reproduced locally (1 failed, 21 passed), then pinned Date.now to the test's existing operation clock for that one meter-reading scenario with cleanup after each case. All 22 tests and ESLint pass; local reviewer PASS. Production logic and assertions unchanged; fresh CI required. + +## Reconciliation (2026-11-23, weekly queue reconciliation) + +- Shipped in [#2860](https://github.com/raphaeltm/simple-agent-manager/pull/2860) (merged 2026-11-17). +- Production deploys from `main` have succeeded continuously since then (latest `7d40cfb2d`, 2026-11-23). +- 1 line(s) stay unticked. They are verification or reporting steps that were not re-checked here; this record does not claim them. diff --git a/tasks/active/2026-11-18-selfhost-l20-observability-storage-seams.md b/tasks/archive/2026-11-18-selfhost-l20-observability-storage-seams.md similarity index 94% rename from tasks/active/2026-11-18-selfhost-l20-observability-storage-seams.md rename to tasks/archive/2026-11-18-selfhost-l20-observability-storage-seams.md index 5080d538c9..617a1d2d3d 100644 --- a/tasks/active/2026-11-18-selfhost-l20-observability-storage-seams.md +++ b/tasks/archive/2026-11-18-selfhost-l20-observability-storage-seams.md @@ -102,3 +102,9 @@ lands them on `main` without changing any Cloudflare behaviour. Plan row: idea - [ ] Staging2 verification (admin analytics, attachment upload via presigned PUT, session snapshot) - [ ] Screenshot evidence for `admin-logs-notice-audit.spec.ts` - [ ] CodeRabbit request and wait + +## Reconciliation (2026-11-23, weekly queue reconciliation) + +- Shipped in [#2889](https://github.com/raphaeltm/simple-agent-manager/pull/2889) (merged 2026-11-18). +- Production deploys from `main` have succeeded continuously since then (latest `7d40cfb2d`, 2026-11-23). +- 4 line(s) stay unticked. They are verification or reporting steps that were not re-checked here; this record does not claim them. diff --git a/tasks/active/2026-11-18-terminal-ci-wait-guidance.md b/tasks/archive/2026-11-18-terminal-ci-wait-guidance.md similarity index 90% rename from tasks/active/2026-11-18-terminal-ci-wait-guidance.md rename to tasks/archive/2026-11-18-terminal-ci-wait-guidance.md index 5bbb5749fa..8693393ef0 100644 --- a/tasks/active/2026-11-18-terminal-ci-wait-guidance.md +++ b/tasks/archive/2026-11-18-terminal-ci-wait-guidance.md @@ -19,7 +19,7 @@ Sources: https://docs.github.com/en/rest/guides/using-the-rest-api-to-interact-w - [x] Update instructions, MCP descriptions, recovery guide, rule09, do/workflow skills/commands, public agent docs/examples. Audit all check_run.completed occurrences; historical evidence/tests remain valid. - [x] Document app/workflow scope, failures, fallback gaps and natural expiry/no migration. - [x] Relevant tests/lint/typecheck/build/context budget, specialist review, ready CI and CodeRabbit request/wait. -- [ ] Merge/deploy after gates; guidance-only staging exemption authorized by dispatch. +- [x] Merge/deploy after gates; guidance-only staging exemption authorized by dispatch. - [ ] Measure covered production row_usage windows using Library rpc-split.mjs via exec_with_secrets. Compare check_run/h and admission/wake/prompt writes/h; disclose coverage, new-session ramp and sibling confounding; durable wait while accumulating hours. ## Candidate validation and review @@ -42,3 +42,9 @@ Current-head Sonar check134669719389 blocked on11.9% duplication. Public duplica ## Takeover (task 01M7RHQG0DNQ3BXDB0DWSRP5CE, 2026-11-19) Previous agent ran out of usage. Head 62ab30db had all checks green (CI 44267154993, Durable Object Workers pass). main had moved 173 commits; merged origin/main (no conflicts) and re-ran full CI before merge. Task stays active until the coordinator's production measurement completes. + +## Reconciliation (2026-11-23, weekly queue reconciliation) + +- Shipped in [#2883](https://github.com/raphaeltm/simple-agent-manager/pull/2883) (merged 2026-11-19). The production row_usage measurement (line 23) was never done. It was evidence-gathering, not a deliverable, and is not tracked anywhere else. +- Production deploys from `main` have succeeded continuously since then (latest `7d40cfb2d`, 2026-11-23). +- 1 line(s) stay unticked. They are verification or reporting steps that were not re-checked here; this record does not claim them. diff --git a/tasks/active/2026-11-19-l22-selfhost-core-packaging.md b/tasks/archive/2026-11-19-l22-selfhost-core-packaging.md similarity index 96% rename from tasks/active/2026-11-19-l22-selfhost-core-packaging.md rename to tasks/archive/2026-11-19-l22-selfhost-core-packaging.md index 489745622d..287b915286 100644 --- a/tasks/active/2026-11-19-l22-selfhost-core-packaging.md +++ b/tasks/archive/2026-11-19-l22-selfhost-core-packaging.md @@ -123,7 +123,7 @@ and trimmed. Nothing in L22 may change Cloudflare behaviour. - [x] gcp-bootstrap security: the delta review, its confirmation and an adversarial review all PASS (0 CRITICAL/HIGH). The deferred MEDIUMs (project-level grants, existing consumers, extra roles) are bounded by the dedicated-project requirement (idea item 8). -- [ ] Merge #2906 (Raphaël: merge now), then Deploy Production +- [x] Merge #2906 (Raphaël: merge now), then Deploy Production Not fixed here (accepted as tracked by the coordinator): @@ -145,3 +145,8 @@ Not fixed here (accepted as tracked by the coordinator): agent session and heartbeats a reverse-tunnel node. (The agent session was proven on #2906 plus hosted git #2907, head e7ac643b. On main it arrives with #2907; Raphaël approved merging #2906 first. Every other part was proven in BOX round R18.) + +## Reconciliation (2026-11-23, weekly queue reconciliation) + +- Shipped in #2901, #2902 and [#2906](https://github.com/raphaeltm/simple-agent-manager/pull/2906) (merged 2026-11-19). +- Production deploys from `main` have succeeded continuously since then (latest `7d40cfb2d`, 2026-11-23). diff --git a/tasks/active/2026-11-19-stranded-platform-node-exit.md b/tasks/archive/2026-11-19-stranded-platform-node-exit.md similarity index 95% rename from tasks/active/2026-11-19-stranded-platform-node-exit.md rename to tasks/archive/2026-11-19-stranded-platform-node-exit.md index 50ecb848da..45561053ac 100644 --- a/tasks/active/2026-11-19-stranded-platform-node-exit.md +++ b/tasks/archive/2026-11-19-stranded-platform-node-exit.md @@ -134,3 +134,9 @@ everywhere". Follow-up branch `sam/operator-node-deletion-allow-agents`: audited with `agentSignIn`), and the explicit OFF state refuses with 403 before any provider call or audit write. - [x] Docs updated (admin-settings, configuration, api). + +## Reconciliation (2026-11-23, weekly queue reconciliation) + +- Shipped in [#2900](https://github.com/raphaeltm/simple-agent-manager/pull/2900) and [#2904](https://github.com/raphaeltm/simple-agent-manager/pull/2904) (merged 2026-11-19). +- Production deploys from `main` have succeeded continuously since then (latest `7d40cfb2d`, 2026-11-23). +- 1 line(s) stay unticked. They are verification or reporting steps that were not re-checked here; this record does not claim them. diff --git a/tasks/active/2026-11-20-adopt-legacy-user-incident-ideas.md b/tasks/archive/2026-11-20-adopt-legacy-user-incident-ideas.md similarity index 89% rename from tasks/active/2026-11-20-adopt-legacy-user-incident-ideas.md rename to tasks/archive/2026-11-20-adopt-legacy-user-incident-ideas.md index 36ffa4a0ab..05f6323ef1 100644 --- a/tasks/active/2026-11-20-adopt-legacy-user-incident-ideas.md +++ b/tasks/archive/2026-11-20-adopt-legacy-user-incident-ideas.md @@ -72,3 +72,9 @@ All remaining legacy draft ideas were adopted, including the 86 window-rule rows pre-run snapshot of those 86 (Library /engineering/incident-idea-adoption-snapshot-2026-11-21.json) found no evidence of a user edit: every body, normalized (ids, timestamps, numbers, evidence lines), matches the generated template and embeds its own signature ref, with no user status events. Edits that change only those normalized values are not ruled out. 100 ended incidents' ideas were closed in that run. + +## Reconciliation (2026-11-23, weekly queue reconciliation) + +- Shipped in [#2957](https://github.com/raphaeltm/simple-agent-manager/pull/2957) and [#2958](https://github.com/raphaeltm/simple-agent-manager/pull/2958) (merged 2026-11-21). Private incident triage has been running since then: triage tasks completed on 2026-11-22. +- Production deploys from `main` have succeeded continuously since then (latest `7d40cfb2d`, 2026-11-23). +- 1 line(s) stay unticked. They are verification or reporting steps that were not re-checked here; this record does not claim them. diff --git a/tasks/active/2026-11-20-compact-inbox-header.md b/tasks/archive/2026-11-20-compact-inbox-header.md similarity index 86% rename from tasks/active/2026-11-20-compact-inbox-header.md rename to tasks/archive/2026-11-20-compact-inbox-header.md index 1bf9fa109e..17fb73add4 100644 --- a/tasks/active/2026-11-20-compact-inbox-header.md +++ b/tasks/archive/2026-11-20-compact-inbox-header.md @@ -43,3 +43,9 @@ do here taking too much space?" - Desktop inbox header is one row: title, `?`, chips, ⋯ (Playwright coordinate assertions) - "What your agents need from you…" is not shown until `?` is pressed (unit + Playwright) - Mobile header is unchanged (mobile audit screenshots) + +## Reconciliation (2026-11-23, weekly queue reconciliation) + +- Shipped in [#2942](https://github.com/raphaeltm/simple-agent-manager/pull/2942). +- Production deploys from `main` have succeeded continuously since then (latest `7d40cfb2d`, 2026-11-23). +- 1 line(s) stay unticked. They are verification or reporting steps that were not re-checked here; this record does not claim them. diff --git a/tasks/active/2026-11-20-inbox-replies-backend.md b/tasks/archive/2026-11-20-inbox-replies-backend.md similarity index 97% rename from tasks/active/2026-11-20-inbox-replies-backend.md rename to tasks/archive/2026-11-20-inbox-replies-backend.md index 8e9d1329b8..e141f0e6d7 100644 --- a/tasks/active/2026-11-20-inbox-replies-backend.md +++ b/tasks/archive/2026-11-20-inbox-replies-backend.md @@ -75,3 +75,9 @@ Lifecycle review: cancellation now atomically refuses outstanding replies; respo Reservation recovery review: canonical absence now resumes the same fixed delivery ID and exact ledger epoch; no age-based deletion or new migration. Both original/resumed writers validate canonical sender/ref/session/fingerprint before202. Reserved rows remain on null or failed lookup, avoiding deletion races with late acceptance. Terminal permission resend reuses validated reject metadata across changed content; null receipt on already-settled permission conflicts. SQL68+agentread8=76 pass, APItypecheck/build/lint/securityPASS. Retained realDO conflicting-ID control also exposed workerd rejected-RPC logging; promise-adoption changes did not remove that diagnostic and were reverted. The negative transaction assertion catches the expected conflict inside the actual DO, then verifies successful replay and one canonical message. Final Worker14/14 exits cleanly with no uncaught logs. Production DO source remains unchanged. Root lint23/23 passes. System-error response review: source-owned open/unexpired errors now pass respond initial/final eligibility; one SQL kind-list addition only. Existing get already returns canonical error conversation. Error status stays open; update/resolve/cancel still refuse errors. Full round-trip regression failed before fix, then SQL75+agentread8=83/83 pass including foreign/closed/expired controls. Build/focusedlint/securityfinalreview PASS. Public docs explain that responding does not close errors. + +## Reconciliation (2026-11-23, weekly queue reconciliation) + +- Shipped in [#2940](https://github.com/raphaeltm/simple-agent-manager/pull/2940). +- Production deploys from `main` have succeeded continuously since then (latest `7d40cfb2d`, 2026-11-23). +- 2 line(s) stay unticked. They are verification or reporting steps that were not re-checked here; this record does not claim them. diff --git a/tasks/active/2026-11-20-mermaid-12-upgrade.md b/tasks/archive/2026-11-20-mermaid-12-upgrade.md similarity index 90% rename from tasks/active/2026-11-20-mermaid-12-upgrade.md rename to tasks/archive/2026-11-20-mermaid-12-upgrade.md index e72e8ef895..2abf770745 100644 --- a/tasks/active/2026-11-20-mermaid-12-upgrade.md +++ b/tasks/archive/2026-11-20-mermaid-12-upgrade.md @@ -61,3 +61,9 @@ roughly 500 kB gzipped because Mermaid 12 bundles ELK. - https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4012.0.0 - https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4012.2.0 - `.claude/rules/62-tests-must-observe-the-real-trigger.md` + +## Reconciliation (2026-11-23, weekly queue reconciliation) + +- Shipped in [#2946](https://github.com/raphaeltm/simple-agent-manager/pull/2946) (merged 2026-11-20, deployed as `35fd2e05a`). +- Production deploys from `main` have succeeded continuously since then (latest `7d40cfb2d`, 2026-11-23). +- 1 line(s) stay unticked. They are verification or reporting steps that were not re-checked here; this record does not claim them. diff --git a/tasks/active/2026-11-20-restart-private-incident-triage.md b/tasks/archive/2026-11-20-restart-private-incident-triage.md similarity index 90% rename from tasks/active/2026-11-20-restart-private-incident-triage.md rename to tasks/archive/2026-11-20-restart-private-incident-triage.md index 10e36c9196..5569eeaac6 100644 --- a/tasks/active/2026-11-20-restart-private-incident-triage.md +++ b/tasks/archive/2026-11-20-restart-private-incident-triage.md @@ -62,7 +62,7 @@ Raphaël decided 2026-11-20 to restart automated incident triage and accept its - [x] Tests on real SQLite: self-blocking regression, promoted/edited/linked still block, titles, one idea per signature, cleanup never touches edited/linked ideas, stall anomaly, decline log - [x] Docs updated -- [ ] Post-deploy: update live trigger template, verify trigger fires, run completes, queue drains +- [x] Post-deploy: update live trigger template, verify trigger fires, run completes, queue drains ## Acceptance criteria @@ -73,3 +73,8 @@ Raphaël decided 2026-11-20 to restart automated incident triage and accept its - Owned draft ideas are cancelled when their incident is terminal; edited/linked ideas never touched. - Stalled pending incidents appear in `ops_find_anomalies`; the sweep logs why it declined. - Production: trigger fires, a triage run completes, the queue drains, no new generic titles. + +## Reconciliation (2026-11-23, weekly queue reconciliation) + +- Shipped in [#2938](https://github.com/raphaeltm/simple-agent-manager/pull/2938), followed by #2954, #2957 and #2958. Line 65 is ticked because the trigger fires and its runs complete: triage tasks 01M81S6T8FX36JY529HN7J409X and 01M814KQD60ZCE0JXQV8M1WCQ3 completed on 2026-11-22. +- Production deploys from `main` have succeeded continuously since then (latest `7d40cfb2d`, 2026-11-23). diff --git a/tasks/active/2026-11-21-selfhost-box-dns.md b/tasks/archive/2026-11-21-selfhost-box-dns.md similarity index 96% rename from tasks/active/2026-11-21-selfhost-box-dns.md rename to tasks/archive/2026-11-21-selfhost-box-dns.md index 6f4d2f2917..e2f7e53d91 100644 --- a/tasks/active/2026-11-21-selfhost-box-dns.md +++ b/tasks/archive/2026-11-21-selfhost-box-dns.md @@ -209,3 +209,9 @@ New attack surface: a public UDP/TCP 53 listener, and a loopback RFC 2136 update ## References - `.claude/rules/19-external-service-integration.md`, `74`, `81`, `62`, `41`/`50` (row isolation) - `deploy/selfhost/sam-mx`, `apps/api/src/selfhost/reverse-tunnel/gateway.ts` + +## Reconciliation (2026-11-23, weekly queue reconciliation) + +- Shipped in [#2959](https://github.com/raphaeltm/simple-agent-manager/pull/2959) and [#2960](https://github.com/raphaeltm/simple-agent-manager/pull/2960) (merged 2026-11-21). Line 166 was explicitly out of scope for step 1. Deployment nodes on a box then shipped in #2974. +- Production deploys from `main` have succeeded continuously since then (latest `7d40cfb2d`, 2026-11-23). +- 1 line(s) stay unticked. They are verification or reporting steps that were not re-checked here; this record does not claim them. diff --git a/tasks/active/2026-11-22-selfhost-celld-sticky-heap-limit.md b/tasks/archive/2026-11-22-selfhost-celld-sticky-heap-limit.md similarity index 92% rename from tasks/active/2026-11-22-selfhost-celld-sticky-heap-limit.md rename to tasks/archive/2026-11-22-selfhost-celld-sticky-heap-limit.md index 8f1fedabd4..2a5eef1af4 100644 --- a/tasks/active/2026-11-22-selfhost-celld-sticky-heap-limit.md +++ b/tasks/archive/2026-11-22-selfhost-celld-sticky-heap-limit.md @@ -84,3 +84,9 @@ observability `platform_errors` table. Only the restart cleared it; nothing aler cell reports the heap limit repeatedly - [x] A repeated heap-limit failure is visible to the operator (admin errors page or a health signal), not only as rows + +## Reconciliation (2026-11-23, weekly queue reconciliation) + +- Shipped in [#2980](https://github.com/raphaeltm/simple-agent-manager/pull/2980) (merged 2026-11-22, deployed as `2e22a317f`). The minified-bundle follow-up is idea 01M82BATKM4PS4Z0GGR27QCY1N. +- Production deploys from `main` have succeeded continuously since then (latest `7d40cfb2d`, 2026-11-23). +- 1 line(s) stay unticked. They are verification or reporting steps that were not re-checked here; this record does not claim them. diff --git a/tasks/active/2026-11-22-selfhost-registry-evidence.md b/tasks/archive/2026-11-22-selfhost-registry-evidence.md similarity index 96% rename from tasks/active/2026-11-22-selfhost-registry-evidence.md rename to tasks/archive/2026-11-22-selfhost-registry-evidence.md index 25a3a462a6..2bcca2413d 100644 --- a/tasks/active/2026-11-22-selfhost-registry-evidence.md +++ b/tasks/archive/2026-11-22-selfhost-registry-evidence.md @@ -79,3 +79,8 @@ by DNS-01 through Cloud DNS right after the upgrade. - [x] Temporary GCP objects reverted: `sam-box-presign` service account deleted, its bucket IAM binding removed, my temporary `roles/storage.hmacKeyAdmin` removed. - [x] Temporary SSH key metadata and firewall rule `sam-smoke-ssh-esfk19` removed; box scratch removed. + +## Reconciliation (2026-11-23, weekly queue reconciliation) + +- Recorded in [#2979](https://github.com/raphaeltm/simple-agent-manager/pull/2979) (merged 2026-11-22). +- Production deploys from `main` have succeeded continuously since then (latest `7d40cfb2d`, 2026-11-23). diff --git a/tasks/active/2026-11-14-merge-streamed-chunks.md b/tasks/backlog/2026-11-14-merge-streamed-chunks.md similarity index 97% rename from tasks/active/2026-11-14-merge-streamed-chunks.md rename to tasks/backlog/2026-11-14-merge-streamed-chunks.md index 2fd9f1dcd2..57af0caea1 100644 --- a/tasks/active/2026-11-14-merge-streamed-chunks.md +++ b/tasks/backlog/2026-11-14-merge-streamed-chunks.md @@ -131,7 +131,7 @@ Remaining narrower verification, per task author: - [ ] Identify the full-list capture failure step and reproduce locally with at least3500 logical chunks/~18k assistant characters plus a tool group, card and system row; fix and review without weakening equality. Measure375/1280 capture duration. - [ ] Budget25-second reply stability plus measured UI phase before work stop; begin the last prompt early enough. An ended short Instant first reply should lead promptly to an ordinary long-reply user follow-up while ON. - [ ] New coordinated window: VM ON long/full verification, strict VM deletion, Instant ON long/full verification through an immediate ordinary follow-up when needed, then Instant OFF long/stored reload and UI regression proof for the default-OFF path. Only VM OFF need not be repeated; account for the25-second stability wait and measured full UI phase for all three runs before requesting a slot. -- [ ] After those gates pass, open the PR with merging defaultOFF, complete CI/review/release and read-only production usage monitoring. +- [x] After those gates pass, open the PR with merging defaultOFF, complete CI/review/release and read-only production usage monitoring. The task author corrected the narrower plan: Instant OFF remains required because production first runs the new build with merging OFF. Current modes: VM OFF stored reload/streaming/baseline met (window three; full-list harness failures remain recorded); VM ON storage/append/saving met, full UI NOT MET; Instant ON merging observed, complete verification NOT MET; Instant OFF unrun. No new slot request until all three future live runs and their measured tail budgets fit the fixed40-minute allocation window. @@ -236,3 +236,10 @@ The expanded final five-file workerd selection first reported53 passes and one s ### PR CI corrections (2026-11-15) PR #2760 initially failed AST SQL quality validation on a conditional, constant-only query suffix. Replaced it with two fixed parameterized queries, retaining the existing optional-session truthiness and sealing behavior. The secret scan also rejected three already-reviewed synthetic fixtures shifted four lines by the legacy-storage fixture registration; verified their complete matched spans are byte-identical to current main and their prior line-specific fingerprints are already reviewed, then added only the three exact shifted fingerprints with the original expiry. No credential values changed or were exposed. Focused independent storage/security rereview passed; local AST checks, file-size enforcement, package lint, clean committed-tree secret scan (43 reviewed, zero new), and the real-workerd suite (54/54) passed. The unrelated local credential configuration remains uncommitted. + +## Reconciliation (2026-11-23, weekly queue reconciliation) + +- Shipped switched off by default in [#2760](https://github.com/raphaeltm/simple-agent-manager/pull/2760) (2026-11-15), with telemetry in [#2773](https://github.com/raphaeltm/simple-agent-manager/pull/2773) (2026-11-16). `DEFAULT_MESSAGE_MERGE_CONFIG.enabled` is still `false` (`packages/project-data/src/do/message-stream-ingest.ts`). The owning SAM task (01M7E19YHSJ73896Q84ASSGFDN) was cancelled on 2026-11-23. +- STILL OPEN and unowned: Raphaël's Admin UI activation in production, a two-hour read-only row-usage observation against the 26.4 rows/call baseline, then a separate default-ON PR. The same switch-on covers `toolUpdatesEnabled` from #2835. Moved back to backlog. Idea 01M7CX61WVX72T7CFQNRTX0DVM. +- Production deploys from `main` have succeeded continuously since then (latest `7d40cfb2d`, 2026-11-23). +- 9 line(s) stay unticked. They are verification or reporting steps that were not re-checked here; this record does not claim them. From 27502e43c10f7e91d4f7b66c642a9d025803d326 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Titsworth-Morin?= Date: Mon, 23 Nov 2026 06:14:57 +0000 Subject: [PATCH 2/3] task: prune 8 shipped/superseded backlog records; note new partial progress Weekly queue reconciliation 2026-11-23. Every deletion cites a merged PR and a code check. Seven partly shipped records get a dated note. The four code and config pointers to the task files moved in this PR now point at tasks/archive. Co-Authored-By: Claude Opus 5.5 --- .../credential-setup-session-teardown.test.ts | 2 +- deploy/selfhost/sam-dns/main.go | 2 +- eslint.config.mjs | 2 +- .../eslint-plugin-sam/rules.manifest.json | 2 +- ...1-23-weekly-queue-memory-reconciliation.md | 20 ++- ...23-suppress-background-subagents-in-acp.md | 150 ------------------ .../2026-03-03-simplify-web-app-components.md | 4 + ...-03-16-port-exposure-security-hardening.md | 4 + .../backlog/2026-06-04-error-node-cleanup.md | 4 + ...-04-shared-staging-do-migration-pinning.md | 90 ----------- .../2026-09-26-trustworthy-task-status.md | 113 ------------- ...0-archive-leaves-sleeping-task-sleeping.md | 32 ---- ...-during-first-provisioning-wake-refused.md | 26 --- ...ode-allocation-unresolved-never-retires.md | 4 + ...1-email-only-member-told-github-expired.md | 4 + ...acity-pool-query-plan-test-near-timeout.md | 18 --- ...runtime-secret-overlapping-submits-test.md | 28 ---- ...box-guide-describes-unbuilt-review-asks.md | 4 + ...16-legacy-chat-pre-admission-append-gap.md | 2 +- ...ancelled-task-resurrected-by-wake-claim.md | 23 --- ...ale-ui-copy-after-insights-and-overview.md | 4 + ...2-remove-dead-registry-push-credentials.md | 2 +- ...11-22-selfhost-gcs-presign-without-hmac.md | 2 +- 23 files changed, 51 insertions(+), 491 deletions(-) delete mode 100644 tasks/backlog/2026-02-23-suppress-background-subagents-in-acp.md delete mode 100644 tasks/backlog/2026-08-04-shared-staging-do-migration-pinning.md delete mode 100644 tasks/backlog/2026-09-26-trustworthy-task-status.md delete mode 100644 tasks/backlog/2026-10-20-archive-leaves-sleeping-task-sleeping.md delete mode 100644 tasks/backlog/2026-11-04-follow-up-during-first-provisioning-wake-refused.md delete mode 100644 tasks/backlog/2026-11-16-capacity-pool-query-plan-test-near-timeout.md delete mode 100644 tasks/backlog/2026-11-16-flaky-runtime-secret-overlapping-submits-test.md delete mode 100644 tasks/backlog/2026-11-17-cancelled-task-resurrected-by-wake-claim.md diff --git a/apps/api/tests/unit/durable-objects/credential-setup-session-teardown.test.ts b/apps/api/tests/unit/durable-objects/credential-setup-session-teardown.test.ts index bd8c4819e2..64d06b000a 100644 --- a/apps/api/tests/unit/durable-objects/credential-setup-session-teardown.test.ts +++ b/apps/api/tests/unit/durable-objects/credential-setup-session-teardown.test.ts @@ -4,7 +4,7 @@ * (apps/api/src/durable-objects/credential-setup-session/index.ts). * * Incident (found on the self-host branch, applies on Cloudflare too; task - * tasks/active/2026-11-17-l19-credential-setup-teardown-robustness.md): teardown + * tasks/archive/2026-11-17-l19-credential-setup-teardown-robustness.md): teardown * claimed the terminal status in DO SQLite, then awaited the sandbox scrub and destroy, * and only then wrote D1. A process death in between left D1 active, so * `POST /api/agent-credential-setup-sessions` kept returning the dead session for ~19 diff --git a/deploy/selfhost/sam-dns/main.go b/deploy/selfhost/sam-dns/main.go index fe80c42781..a4c6d8ebf5 100644 --- a/deploy/selfhost/sam-dns/main.go +++ b/deploy/selfhost/sam-dns/main.go @@ -8,7 +8,7 @@ // - ACME DNS-01 TXT records, written by Caddy over RFC 2136 with TSIG on a loopback listener. // // Authoritative only: no recursion, no zone transfers, minimal ANY answers, response rate limiting -// on the public listener. Threat model: tasks/active/2026-11-21-selfhost-box-dns.md. +// on the public listener. Threat model: tasks/archive/2026-11-21-selfhost-box-dns.md. package main import ( diff --git a/eslint.config.mjs b/eslint.config.mjs index a64d96f945..cc3a460321 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -501,7 +501,7 @@ export default defineConfig([ }, { // Outbound requests from Worker source must go through guardedFetch (F6, landing slice L5a, - // tasks/active/2026-11-15-l5-outbound-fetch-guard.md). Stage: ratchet. Every pre-existing + // tasks/archive/2026-11-15-l5-outbound-fetch-guard.md). Stage: ratchet. Every pre-existing // global-fetch site is held by the per-file baseline; any new unacknowledged site fails lint, // and a file whose count drops must lower its baseline. See // packages/eslint-plugin-sam/docs/rules/no-unguarded-outbound-fetch.md. diff --git a/packages/eslint-plugin-sam/rules.manifest.json b/packages/eslint-plugin-sam/rules.manifest.json index 90c23409c9..6463719cbd 100644 --- a/packages/eslint-plugin-sam/rules.manifest.json +++ b/packages/eslint-plugin-sam/rules.manifest.json @@ -58,7 +58,7 @@ "advisoryStage": "ratchet", "gateOwner": "quality-program", "evidenceIncident": "Landing-plan finding F6: the integration branch inventoried outbound fetch sites with a regex/AST test that (0,fetch), Reflect.apply and SDK baseURLs evaded, and that did not cover cloudflare:sockets or packages/*.", - "baselineBacklogLink": "tasks/active/2026-11-15-l5-outbound-fetch-guard.md", + "baselineBacklogLink": "tasks/archive/2026-11-15-l5-outbound-fetch-guard.md", "baselineFile": "packages/eslint-plugin-sam/outbound-fetch-baseline.json", "addedDate": "2026-11-15", "reviewDate": "2026-12-15", diff --git a/tasks/active/2026-11-23-weekly-queue-memory-reconciliation.md b/tasks/active/2026-11-23-weekly-queue-memory-reconciliation.md index b465078f78..712d06db99 100644 --- a/tasks/active/2026-11-23-weekly-queue-memory-reconciliation.md +++ b/tasks/active/2026-11-23-weekly-queue-memory-reconciliation.md @@ -30,14 +30,16 @@ guide to what is genuinely open. ## Checklist +- [x] Repoint the four code/config pointers that named the moved `tasks/active/` paths (comments, plus the `baselineBacklogLink` string in `packages/eslint-plugin-sam/rules.manifest.json`). No logic changes + - [x] Audit every `tasks/active/` file against merged PRs and deploys - [x] Archive the 24 shipped files: tick evidenced gate lines and append a dated reconciliation note - [x] Move `2026-11-14-merge-streamed-chunks.md` back to backlog with its open remainder -- [ ] Audit all 348 backlog files (4 read-only slices); spot-check evidence for every non-KEEP verdict -- [ ] Delete shipped, obsolete, superseded and duplicate backlog files; annotate PARTIAL ones -- [ ] Comment a weekly status/park note on #2265 and #1788 +- [x] Audit all 348 backlog files (4 read-only slices); spot-check evidence for every non-KEEP verdict +- [x] Delete shipped, obsolete, superseded and duplicate backlog files; annotate PARTIAL ones +- [x] Comment a weekly status/park note on #2265 and #1788 - [ ] PR description lists a one-line rationale for each deletion -- [ ] Part 2: SAM knowledge/idea/policy hygiene (outside the repo) +- [x] Part 2: SAM knowledge/idea/policy hygiene (outside the repo) - [ ] Digest via `update_task_status` ## Acceptance criteria @@ -47,3 +49,13 @@ guide to what is genuinely open. - [ ] No backlog file deleted without a cited merged PR, commit or code check - [ ] Each PR older than 7 days has one comment from this run - [ ] The change touches only files under `tasks/`: no staging deploy (task-file-only exemption) + +## Backlog audit results + +- 348 files. KEEP 276, PARTIAL 64, SHIPPED 7, SUPERSEDED 1, OBSOLETE 0, DUPLICATE 0. +- I checked the merged PR and the code path for all 8 deletions myself (listed in the PR description). +- 61 of the 64 PARTIAL files already carry earlier reconciliation notes. A dated note was added only + to the 7 whose evidence cites a PR the file did not mention yet. +- Noted, not fixed (pre-existing drift): about 11 code and config comments still name older + `tasks/active/` paths from earlier PRs, among them applied D1 migration headers, which must not be + edited. Only the four pointers this PR's moves broke were repointed. diff --git a/tasks/backlog/2026-02-23-suppress-background-subagents-in-acp.md b/tasks/backlog/2026-02-23-suppress-background-subagents-in-acp.md deleted file mode 100644 index 8913e32570..0000000000 --- a/tasks/backlog/2026-02-23-suppress-background-subagents-in-acp.md +++ /dev/null @@ -1,150 +0,0 @@ -# Suppress Background Sub-Agents in ACP Sessions - -**Created**: 2026-02-23 -**Status**: Backlog -**Priority**: High -**Estimated Effort**: Small - -## Problem - -When Claude Code launches sub-agents with `run_in_background: true` (the Task tool's `run_in_background` parameter), the ACP session breaks down with interleaved, garbled messages. This is a fundamental protocol-level issue that cannot be solved by the ACP client alone. - -### What Happens - -1. User sends a prompt to Claude Code via ACP. -2. Claude Code decides to run one or more sub-agents **in the background**. -3. Claude Code immediately returns a prompt response (with `stopReason`) saying something like "I'm running these in the background and will notify you when they're done." -4. `session_prompt_done` fires, `HostStatus` goes to `ready`, the UI unlocks the input. -5. **But the background sub-agents are still running** inside the Claude Code process. They continue producing `session/update` notifications (tool calls, message chunks, thinking blocks) on the same NDJSON stdout stream. -6. If the user sends a new message at this point, the new prompt's response stream **interleaves** with the still-active background sub-agent output. -7. The result is garbled, jumbled messages in the UI — fragments from background sub-agents mixed with the new prompt's responses. - -### Why This Happens at the Protocol Level - -The ACP protocol has **no concept of sub-agents**. All `session/update` notifications arrive on a single flat NDJSON stream. There is no way to: -- Distinguish background sub-agent output from main agent output -- Correlate `session/update` messages to a specific sub-agent -- Know when all background sub-agents have finished - -The `session_prompting` / `session_prompt_done` lifecycle only tracks the main prompt. Background sub-agents operate outside this lifecycle — they keep emitting after `session_prompt_done` fires. - -Even after the background sub-agents appear to have finished (based on CPU usage), their buffered output may still be in the NDJSON pipe, and Claude Code's internal merging of background results into conversation history can produce further interleaved updates. - -### Community Confirmation - -This is a known gap in the ACP ecosystem: -- The [ACP specification](https://agentclientprotocol.com/protocol/tool-calls) has no sub-agent-specific provisions -- [OpenCode Issue #11576](https://github.com/anomalyco/opencode/issues/11576) — "FEATURE: Support subagent information in ACP" confirms the gap -- [Claude Code Issue #7091](https://github.com/anthropics/claude-code/issues/7091) — Sub-agent messages get stuck/mixed between concurrent sub-agents -- [Claude Code Issue #5691](https://github.com/anthropics/claude-code/issues/5691) — Input event cross-contamination across agent sessions -- The `@finityno/claude-code-acp` npm package exists specifically to add sub-agent tracking that the official ACP lacks - -## Why Option 1 (Suppress Background Sub-Agents) Is the Right Fix - -We evaluated three approaches: - -### Option 1: Suppress background sub-agents via system prompt (CHOSEN) - -Add a system prompt instruction telling Claude Code to never use `run_in_background: true` on the Task tool. - -**Pros:** -- Trivial to implement — one line in the agent system prompt or CLAUDE.md -- Eliminates the problem completely at the source -- Foreground sub-agents still work perfectly (they block `Prompt()` until they return) -- Claude Code can still run **multiple foreground sub-agents in parallel** by making multiple Task tool calls in one response — the only difference is it can't return control to the user before they finish -- No protocol-level changes needed -- No client-side message parsing/filtering complexity - -**Cons:** -- The user can't interact with the agent while sub-agents run (but this is already the expected UX for foreground sub-agents, and the Cancel button remains available) -- If Claude Code ignores the instruction (rare but possible), the problem resurfaces - -### Option 2: Client-side message segregation (REJECTED) - -Track Task tool call IDs, filter background sub-agent `session/update` messages, buffer them separately, render as collapsed summaries. - -**Why rejected:** -- High implementation complexity — must parse every `session/update`, maintain parent-child tool call trees, handle edge cases around nested tool calls -- Fragile — depends on inferring sub-agent relationships from tool call IDs, which the ACP protocol doesn't formally guarantee -- Doesn't solve the fundamental problem that Claude Code's internal conversation state gets interleaved -- Even with perfect client-side filtering, sending a new prompt while background work is active can corrupt Claude Code's own conversation history - -### Option 3: Client-side prompt queueing (REJECTED) - -Keep input disabled until all outstanding Task tool calls resolve, regardless of `session_prompt_done`. - -**Why rejected:** -- Requires tracking all Tool Call IDs and their completion status — significant state management -- Race conditions between `session_prompt_done` and tool call completion events -- Still doesn't prevent the underlying stream interleaving — just prevents the user from triggering it -- If a background sub-agent hangs or takes very long, the UI appears frozen with no clear indication of why - -## Implementation Plan - -### Step 1: Add System Prompt Instruction - -Add the following instruction to the agent's system prompt configuration. The exact location depends on how agent system prompts are configured — it may be in the CLAUDE.md that gets loaded into agent sessions, or in the ACP session initialization. - -The instruction should be: - -``` -IMPORTANT: Never use `run_in_background: true` when invoking the Task tool. Always run sub-agents in the foreground. Background sub-agents cause message interleaving issues in the ACP protocol. You can still run multiple sub-agents in parallel by making multiple Task tool calls in a single response — they will all execute concurrently and block until all complete, which is the correct behavior. -``` - -### Step 2: Identify Where to Place the Instruction - -Research needed to determine the right injection point: - -- **Option A**: In the workspace-level CLAUDE.md that gets loaded into agent sessions. This is the simplest but only works if the agent respects it. -- **Option B**: In the ACP `Initialize` or `NewSession` system prompt parameter. This is more authoritative since it's part of the session configuration, not just a file the agent reads. -- **Option C**: In the agent's `allowedTools` configuration — if the ACP SDK supports restricting tool parameters (not just tool names), we could disallow `run_in_background: true` at the protocol level. This would be the most robust but may not be supported. - -Check the ACP SDK's `Initialize` and `NewSession` methods for system prompt injection capabilities. Check the `SessionHost.SelectAgent()` and `SessionHost.handleNewSession()` code paths for where session configuration is set. - -### Step 3: Verify Foreground Parallel Sub-Agents Still Work - -After applying the instruction, verify that Claude Code can still: -1. Launch multiple Task tool calls in a single response -2. All sub-agents execute concurrently (not sequentially) -3. `Prompt()` blocks until all sub-agents complete -4. All sub-agent output streams correctly to the UI during execution -5. `session_prompt_done` fires only after all sub-agents finish - -### Step 4: Add a Fallback Safety Net (Optional Enhancement) - -As a defense-in-depth measure, consider adding client-side detection: -- In `useAcpMessages`, detect if a `tool_call` for the Task tool has `run_in_background: true` in its input -- If detected, log a warning (the instruction was ignored) -- Optionally keep the input disabled until that tool call resolves - -This is a low-priority enhancement since the system prompt instruction should be sufficient in practice. - -## Checklist - -- [ ] Research where agent system prompts are injected in the ACP session lifecycle -- [ ] Add the "no background sub-agents" instruction to the appropriate location -- [ ] Test with a prompt that would normally trigger background sub-agents -- [ ] Verify foreground parallel sub-agents work correctly -- [ ] Verify no message interleaving occurs -- [ ] (Optional) Add client-side detection/warning for `run_in_background: true` - -## Affected Files - -| File | What Changes | -|------|-------------| -| TBD (system prompt location) | Add instruction suppressing background sub-agents | -| Possibly `packages/vm-agent/internal/acp/session_host.go` | If injecting via ACP SDK session config | -| Possibly workspace CLAUDE.md template | If injecting via project instructions | - -## Testing Strategy - -- **Manual test**: Send a prompt that previously triggered background sub-agents (e.g., a complex multi-step task). Verify Claude Code runs them in the foreground instead. -- **Manual test**: Send a prompt that triggers multiple parallel sub-agents. Verify they run concurrently and the UI stays locked until all complete. -- **Manual test**: Verify no message interleaving when sending a follow-up prompt after sub-agents finish. -- **Regression test**: Verify the Cancel button still works during foreground sub-agent execution. - -## Related Issues - -- This task was identified through direct user testing of the ACP client -- Related to the broader ACP protocol gap around sub-agent awareness -- If the ACP protocol adds sub-agent support in the future, this workaround can be revisited diff --git a/tasks/backlog/2026-03-03-simplify-web-app-components.md b/tasks/backlog/2026-03-03-simplify-web-app-components.md index 0430596b8c..46ef1dad94 100644 --- a/tasks/backlog/2026-03-03-simplify-web-app-components.md +++ b/tasks/backlog/2026-03-03-simplify-web-app-components.md @@ -88,3 +88,7 @@ The web application (`apps/web/src/`) has several monolithic components that are 2. Extract inline subcomponents next — pure extraction, no behavior change 3. Decompose large page components last — requires more careful testing 4. Run `pnpm typecheck && pnpm lint && pnpm test` after each extraction + +## Reconciliation (2026-11-23, weekly queue reconciliation) + +Still open, partly shipped. Workspace page and api.ts split shipped; command palette dedupe, WS hook dedupe, inline subcomponents remain. Evidence: apps/web/src/pages/workspace/ dir (Workspace.tsx split), apps/web/src/lib/api/ dir (api.ts split), #2746. diff --git a/tasks/backlog/2026-03-16-port-exposure-security-hardening.md b/tasks/backlog/2026-03-16-port-exposure-security-hardening.md index 95455bca7c..1b12a67e52 100644 --- a/tasks/backlog/2026-03-16-port-exposure-security-hardening.md +++ b/tasks/backlog/2026-03-16-port-exposure-security-hardening.md @@ -125,3 +125,7 @@ From `2026-03-17-port-proxy-ownership-verification` (removed from the backlog 20 (`packages/vm-agent/internal/server/ports_proxy.go`). - [ ] Add a comment explaining the `SameSite=Lax` downgrade for cross-subdomain cookies (`packages/vm-agent/internal/auth/session.go:184-187`). + +## Reconciliation (2026-11-23, weekly queue reconciliation) + +Still open, partly shipped. Own-listener proxy refusal shipped; port-range guard, subdomain ownership and other items open. Evidence: #2550; packages/vm-agent/internal/server/proxy_guard.go isOwnListenerTarget. diff --git a/tasks/backlog/2026-06-04-error-node-cleanup.md b/tasks/backlog/2026-06-04-error-node-cleanup.md index 76f5ab4ae9..3fe7bda32c 100644 --- a/tasks/backlog/2026-06-04-error-node-cleanup.md +++ b/tasks/backlog/2026-06-04-error-node-cleanup.md @@ -43,3 +43,7 @@ Nodes that fail provisioning (e.g., capacity exhaustion 422) remain in `status=' - [ ] Nodes in `status='error'` are automatically cleaned up after a configurable timeout - [ ] Provider-side cleanup is attempted (idempotent delete) - [ ] Existing running-node cleanup behavior is unchanged + +## Reconciliation (2026-11-23, weekly queue reconciliation) + +Still open, partly shipped. Backstops exist; dedicated 30-min status=error sweep for all nodes not built. Evidence: node-phases.ts max-lifetime covers error nodes; #2472 deployment-node-cleanup.ts; #2937. diff --git a/tasks/backlog/2026-08-04-shared-staging-do-migration-pinning.md b/tasks/backlog/2026-08-04-shared-staging-do-migration-pinning.md deleted file mode 100644 index 131753083e..0000000000 --- a/tasks/backlog/2026-08-04-shared-staging-do-migration-pinning.md +++ /dev/null @@ -1,90 +0,0 @@ -# One branch's unmerged DO migration blocks staging deploys for every other branch - -> **Reconciliation 2026-10-26:** Still open. Pointer correction: #2371 (`8394efa14`) added a test -> above the fail-closed test, which is now `scripts/quality/do-migration-compatibility.test.ts:168`; -> the preflight error is unchanged at `scripts/deploy/durable-object-migrations.ts:222-230`. - -> **Reconciliation 2026-09-30 (weekly queue audit): partially shipped; still open.** -> -> - **Shipped:** fail-fast detection. The deploy preflight reads the Worker's deployed Durable -> Object migration tag and stops with an explanatory error when that tag is missing from the -> checked-in history, instead of Wrangler's misleading `ProjectData` 10074 error -> (`scripts/deploy/durable-object-migrations.ts:222-230`; test -> `scripts/quality/do-migration-compatibility.test.ts:157`; PR #1649, 3f47e1b26). -> - **Still open:** -> - Choose the prevention model (options a, c or d above) so one branch's migration cannot pin -> shared staging. -> - Make the error staging-aware: it blames "an upgrade merge that dropped fork-local -> migrations" and does not name the branch that pinned the tag. -> - Document the constraint in the staging guidance (rule 13 or the `/do` skill); nothing covers -> it yet. -> - Worth checking: two unmerged branches that add the same next tag (for example `v20`) would -> look already applied to the resolver. - -## Problem - -`sam-api-staging` is a **single shared Cloudflare Worker**, but Durable Object migrations are -versioned by a monotonic `tag` in `apps/api/wrangler.toml`. When any branch deploys a migration tag -that does not exist on `main`, the shared Worker advances to that tag — and every other branch, -including `main` itself, becomes **undeployable to staging** until that tag lands on `main`. - -Observed 2026-08-04: - -- `sam/implement-ready-sam-idea-yb534p` (unmerged, no PR open at the time) added - `[[migrations]] tag = "v20"` / `new_sqlite_classes = ["DiagnosisRunner"]` and deployed to staging. -- `main` ends at `v19`. -- Every subsequent staging deploy of `sam/auto-run-html-artifact-preview` — a branch touching - **zero** `apps/api` and zero wrangler files — failed with: - - ``` - Cannot apply new-sqlite-class migration to class 'ProjectData' - that is already depended on by existing Durable Objects [code: 10074] - ``` - -- Reproduced twice, the second time on a **completely idle deploy queue**, ruling out a race. - -Note the error names `ProjectData` — a class from an old migration that has nothing to do with the -change. When Wrangler cannot match the remote tag against the local migration list, it appears to -replay from the beginning and fails on the first already-applied SQLite class. **The error therefore -points at an innocent class and an innocent branch**, which makes this expensive to diagnose: the -natural first read is "my branch broke Durable Objects." - -## Why this matters - -- Staging is a **hard merge gate** (`.claude/rules/13-staging-verification.md`). One agent's - in-progress branch can therefore block every other agent's merges, indefinitely, with no signal - that it has done so. -- The failure is silent about its true cause and misattributes blame to the blocked branch. -- `.claude/rules/13`'s existing mitigation — check for active runs, wait 5 minutes — **does not help - here**. The conflicting run had already *completed*; the damage is the persistent migration state - it left behind, not concurrency. - -## Acceptance Criteria - -- [ ] Decide the intended model for DO migrations against shared staging. Options to evaluate: - (a) block staging deploys from branches whose migration tail is not an ancestor of `main`'s; - (b) detect the mismatch in `Validate Configuration` and fail fast with an explanatory message - naming the branch that pinned the tag; - (c) give migration-bearing branches an isolated Worker/environment; - (d) require migration-bearing branches to merge before others deploy (process-only, weakest). -- [ ] Implement the chosen mechanism so the failure is either prevented or **self-explanatory**. - At minimum, when `wrangler deploy` fails with `[code: 10074]`, the deploy workflow should - surface: "staging is at migration tag X; this branch's list ends at Y; tag X comes from a - branch not yet merged to main" — instead of the raw `ProjectData` error. -- [ ] Document the constraint in the deploy/staging guidance so agents recognise it immediately. -- [ ] Add a check or test that would have caught this before a human had to diagnose it. - -## Context - -Discovered while running Phase 6 of `tasks/archive/2026-08-04-auto-run-html-artifact-preview.md`. -That branch's first staging deploy (`30958087671`) succeeded and was fully verified; the two later -deploys (`30959346237`, `30961280231`) failed purely due to this pinning, after the other branch -deployed at 23:14:33. - -## References - -- `.claude/rules/13-staging-verification.md` — staging as a merge gate; the 5-minute active-run wait - that does not cover this case -- `.claude/rules/31-migration-safety.md` — D1 migration safety (this is the **Durable Object** - analogue, currently uncovered) -- `apps/api/wrangler.toml` — the `[[migrations]]` tag sequence diff --git a/tasks/backlog/2026-09-26-trustworthy-task-status.md b/tasks/backlog/2026-09-26-trustworthy-task-status.md deleted file mode 100644 index 050b240eb6..0000000000 --- a/tasks/backlog/2026-09-26-trustworthy-task-status.md +++ /dev/null @@ -1,113 +0,0 @@ -# Make SAM Task Status Trustworthy - -> **Reconciliation 2026-10-26:** Still open: only the #2153 staging check. Pointer fixes: #2317 -> and #2318 moved the sweep's expiry check to `apps/api/src/scheduled/stuck-tasks.ts:1157-1165`, -> and #2317 and #2382 moved the tests to `stuck-task-sleeping-conversation.test.ts:581,917`. - -> **Reconciliation 2026-10-12:** Items 1-4 of the 2026-10-05 list are resolved. #2280 -> (`90cbf4ea4`) ends an expired sleep as `cancelled` + `terminal_reason=snapshot_expired` -> (`apps/api/src/services/session-expiry.ts:9-53`). It also takes `in_progress` rows, so Instant -> tasks (still `in_progress` while asleep, by design) are covered. The purge writes it before -> deleting the snapshot (`apps/api/src/scheduled/session-snapshot-purge.ts:79,147`) and the sweep -> checks it first (`apps/api/src/scheduled/stuck-tasks.ts:1139-1147`). Migration 0187 moved the 69 -> pre-#2230 rows to `sleeping`; #2281 (`2bbe9336f`, migration 0188) fixed two more. Tests: -> `apps/api/tests/unit/stuck-task-sleeping-conversation.test.ts:517,853` (purge, then sweep). -> Read-only production D1 on 10-12: since 10-09, 13 tasks ended `snapshot_expired` and none failed -> with `workspace_deleted`. Still open: only the unticked staging check of #2153 (item 5). - -> **Expiry follow-up 2026-10-08:** Raphaël approved a neutral **Expired** end state after the -> saved workspace's seven-day retention window, with a readable transcript and Fork continuation. -> The expiry transition, bounded legacy repair, regression tests, and deployment evidence are -> tracked in [Expired sleeping conversations](../archive/2026-10-08-expired-sleeping-conversations.md). -> That work uses `cancelled` plus `terminal_reason=snapshot_expired`; it does not add another status enum. -> Production completion remains gated on live row verification in the linked SAM task/ideas. - -> **Reconciliation 2026-10-05:** PR #2230 (`ee80b0ee0`) added the task status `sleeping`. VM -> sleep teardown now writes it (`apps/api/src/services/session-sleep-teardown.ts:212-229`). The -> stuck-task sweep selects only `queued`/`delegated`/`in_progress` -> (`apps/api/src/scheduled/stuck-tasks.ts:326,343,360`), so a VM conversation task slept after -> #2230 can no longer get the day-7 `failed` verdict. This is from reading the code; production D1 -> has not confirmed it. Still open: -> -> 1. Instant (`cf-container`) tasks stay `in_progress` while asleep -> (`session-sleep-teardown.ts:212-213`). They still depend on -> `isHumanResumableConversationTask` (`apps/api/src/services/task-sleep-preservation.ts:206-236`), -> which still joins the `session_snapshots` row that the 7-day purge deletes. -> 2. VM tasks slept before #2230 were not backfilled. They stay `in_progress` on the old path until -> their snapshots age out. -> 3. Decide the end state of a `sleeping` task whose snapshot the purge retires. Today it stays -> `sleeping` with no bound: -> - the purge stops only the ProjectData session -> (`apps/api/src/scheduled/session-snapshot-purge.ts:141`); -> - `sleeping` can only move to queued/delegated/in_progress/cancelled -> (`apps/api/src/services/task-status.ts:37`); -> - a wake is refused as `sleeping_snapshot_missing` -> (`apps/api/src/services/session-recovery.ts:230`). -> 4. The production-shape regression test (a conversation task with no snapshot row). -> 5. Staging verification of #2153. - -> **Status (2026-09-30 weekly reconciliation): partially shipped, moved back to backlog.** -> -> - **Shipped** in PR #2153 (`1cd4194db`, merged 2026-09-26, production deploy run 36280892213): -> a late `toStatus: failed` callback against an already-terminal task now returns the unchanged -> task (`apps/api/src/routes/tasks/callback.ts`), and the stuck-task sweep gained a -> conversation fallback. -> - **Not fixed in production:** the fallback, `isHumanResumableConversationTask` -> (`apps/api/src/services/task-sleep-preservation.ts:176`), still joins a `session_snapshots` row -> with `sleep_status = 'sleeping'`. The 7-day snapshot purge deletes that row before the sweep's -> day-7 verdict, so the fallback never matches. Read-only production D1 shows **ten** -> conversation tasks failed with "Task runtime is no longer live after 480 minutes … Last -> liveness result: workspace_deleted" after the fix deployed, from 2026-09-27 02:36Z -> (`01M2Y90KN3VB50A2T18AG4HV1N`) to 2026-09-30 02:36Z (`01M35Y40SZ6JNRTXGW8PP58368`). -> Since 2026-10-04 the same verdict reads "Task runtime is no longer live (workspace_deleted); -> task started N minutes ago." (`tasks/archive/2026-10-04-task-recovery-liveness-signal-audit.md`). -> - **Remaining work:** make the day-7 conversation verdict independent of the purged snapshot -> row, and decide which status an idle conversation with an expired snapshot should get. Policy -> `a974b04f` says normal lifecycle endings must not look like failures. The regression test -> must seed the production shape (conversation task, no snapshot row) rather than an expired -> row that still exists. Tracked in SAM idea `01KZNGJG1DCH8DBC835Y0272P4`. - -## Problem - -The 2026-09-26 audit found two task-status defects: - -1. Conversation-mode tasks that sit idle until the sleep snapshot reaches its seven-day TTL are marked `failed` by stuck-task recovery, even though an idle conversation can still be resumed by the human through the chat transcript and durable prompt path. -2. A late terminal failure callback must never regress a task that already reached a successful terminal state, including tasks whose PR has already merged. - -## Research Findings - -- `apps/api/src/scheduled/stuck-tasks.ts` is the real day-7 writer. It routes in-progress dead-runtime verdicts through `transitionTaskToTerminal`, after `withholdTerminalVerdictForSleepingSession`. -- `apps/api/src/services/task-sleep-preservation.ts` currently preserves only a restorable or in-flight sleep snapshot. Once `session_snapshots.expires_at <= now`, the guard returns `none`, so the sweep writes `failed`. -- `apps/api/src/routes/chat-prompt-route.ts` accepts human follow-ups through durable prompt delivery, and conversation tasks remain task-backed. Snapshot restore is only one wake mechanism; snapshot expiry is not a conversation failure verdict. -- `apps/api/src/routes/tasks/callback.ts` is the real late-failure callback surface. Its SQL update path is race-safe, but a late failed callback loaded after a task is already `completed` falls into the invalid-transition path instead of returning an unchanged terminal task. -- `apps/api/src/services/task-terminal-transition.ts` already protects shared terminal writers with an active-status CAS and refuses existing terminal rows. -- Tests for the stuck-task guard must use real SQLite via `createSqliteD1`; mock `.where()` tests cannot prove SQL predicates discriminate. - -## Checklist - -- [x] Trace the day-7 conversation auto-fail writer through the real sweep. -- [x] Trace the late-failure callback path and shared terminal writer guard. -- [x] Extend the sweep terminal gate with a task-mode conversation fallback after snapshot expiry. -- [x] Return unchanged 200 responses for late terminal callbacks that target an already-terminal task. -- [x] Add real-SQL sweep tests proving expired-snapshot conversations are preserved while task-mode rows still fail. -- [x] Add callback-route regression proving a late failed callback cannot regress a completed task. -- [x] Run focused tests. -- [x] Run full quality gates. -- [x] Run specialist review. -- [ ] Verify on staging. - - _Reconciled 2026-09-30, left unticked:_ PR #2153 records no staging verification. -- [x] Open PR, complete CI, CodeRabbit, merge, and production deploy monitoring. - - _Reconciled 2026-09-30:_ PR #2153 merged 2026-09-26T23:18Z; production deploy run 36280892213 succeeded 23:54Z. - -## Acceptance Criteria - -- An idle `taskMode: conversation` task with an expired sleep snapshot is not marked `failed` by the stuck-task sweep. -- The same sweep still fails non-conversation task rows with genuinely dead runtimes. -- A late `toStatus: failed` callback after a task is already `completed` returns the unchanged terminal task and writes no failure. -- Regression tests enter through the real sweep and callback route, with the sweep guard proven against a real SQL engine. - -## References - -- `.claude/rules/58-terminal-verdicts-must-match-the-resumer.md` -- SAM idea `01KZNGJG1DCH8DBC835Y0272P4` -- `tasks/archive/2026-09-14-stuck-task-sweep-preserves-sleeping-conversations.md` diff --git a/tasks/backlog/2026-10-20-archive-leaves-sleeping-task-sleeping.md b/tasks/backlog/2026-10-20-archive-leaves-sleeping-task-sleeping.md deleted file mode 100644 index c743583d35..0000000000 --- a/tasks/backlog/2026-10-20-archive-leaves-sleeping-task-sleeping.md +++ /dev/null @@ -1,32 +0,0 @@ -# Archiving a sleeping chat leaves its task "sleeping" - -## Problem - -Stopping (archiving) a chat whose session is already asleep stops the chat and deletes its -workspace, but leaves the backing task's status at `sleeping` indefinitely. - -`stopTaskBackedSession` (`apps/api/src/routes/chat-stop.ts`) treats a task as terminal only when it -is `completed`, `failed` or `cancelled` (`getTerminalTaskStatus`), and otherwise cancels it through -`cancelExecutableTaskForArchive`. That function returns early unless the status is one of -`TASK_EXECUTION_STATUSES` (`queued`, `delegated`, `in_progress` in -`apps/api/src/services/task-status.ts`). `sleeping` is in neither list, so the task row is never -updated. This is the shape `.claude/rules/79-new-enum-values-audit-every-denylist.md` warns about: -`sleeping` was added to `TASK_STATUSES` and this allowlist was not revisited. - -## Context - -Found on staging on 2026-10-20 while cleaning up the shared-session teammate-controls E2E run -(PR #2383). Chat `1cdf29f2-7216-4b6e-bc6c-8b1e798777a6` (VM) went to sleep after 15 idle minutes; -the cleanup's `POST /sessions/:id/stop` then stopped the chat (session `stopped`), deleted workspace -`01M5BZ3PCRCJ6MYAMEFE7WKYS8` and its node, but task `01M5BYX0A22F5ARZE422XKJ0B9` stayed `sleeping` -(last updated 06:36:35 UTC, before the stop). The four other test chats, which were awake when -stopped, got `cancelled` tasks as expected. No snapshot, workspace or node is held; only the task -row's status is wrong. - -## Acceptance Criteria - -- [ ] Archiving a chat whose task is `sleeping` leaves the task `cancelled` with an "Archived by - user" status event, through the real stop route -- [ ] A test drives the real sleep transition (not a seeded status) and fails before the fix -- [ ] Every other allowlist and denylist over task statuses used by archive and stop is checked for - `sleeping` and listed in the PR diff --git a/tasks/backlog/2026-11-04-follow-up-during-first-provisioning-wake-refused.md b/tasks/backlog/2026-11-04-follow-up-during-first-provisioning-wake-refused.md deleted file mode 100644 index 1bb360d3c3..0000000000 --- a/tasks/backlog/2026-11-04-follow-up-during-first-provisioning-wake-refused.md +++ /dev/null @@ -1,26 +0,0 @@ -# Follow-up sent during a conversation's first provisioning raises "wake_failed" - -## Problem - -A durable follow-up sent to a new VM conversation before its workspace row exists is attempted -immediately. `resolveVmPromptDeliveryTarget()` (`apps/api/src/services/vm-prompt-delivery-target.ts`) -finds no workspace row, takes the `!row` branch and calls `ensureSessionRecovery()`. The task is -still queued for its first placement, not sleeping, so recovery refuses. The delivery fails as -`wake_refused` and the chat gets a `wake_failed` attention marker (`raiseSessionWakeFailure`), even -though the conversation is simply still starting. - -## Context - -Found on staging 2026-11-04 during verification of `sam/fix-stale-prompting-sleep-81sme3`. -Session `6e19ba34-b6d3-450d-9832-441b1294eaa8` (project `01KWHD8XS7MQ7R6KWXJYRHDVH4`): the -conversation was submitted at 15:23:17Z, a follow-up was posted at 15:23:53Z while the VM was -provisioning, and the session showed `attention.kind = 'wake_failed'`, `reason = 'wake_refused'`. -Not caused by that branch (its hold runs after the `!row` branch). - -## Acceptance Criteria - -- [ ] A follow-up to a conversation whose first placement is still in progress (task queued or - delegated, no workspace row yet) is retried as `not_ready`, not failed as `wake_refused`. -- [ ] No `wake_failed` attention marker for that case; a genuinely refused wake still raises one. -- [ ] The retried follow-up is delivered once the agent session is running (real delivery runner - test, controlled ordering per rule 62). diff --git a/tasks/backlog/2026-11-04-providerless-node-allocation-unresolved-never-retires.md b/tasks/backlog/2026-11-04-providerless-node-allocation-unresolved-never-retires.md index 25d29afe5f..e8265e44fe 100644 --- a/tasks/backlog/2026-11-04-providerless-node-allocation-unresolved-never-retires.md +++ b/tasks/backlog/2026-11-04-providerless-node-allocation-unresolved-never-retires.md @@ -43,3 +43,7 @@ create. - [ ] An inventory that shows a matching server keeps the current fence (no regression). - [ ] An alert fires when the bound is reached, naming the node and the provider. - [ ] Test through the real cleanup sweep with a fake provider inventory: empty, then matching. + +## Reconciliation (2026-11-23, weekly queue reconciliation) + +Still open, partly shipped. Operator removal for stranded nodes shipped; the automatic time-bounded retire as runtime_terminated plus alert is not implemented. Evidence: #2900 (6e1c998e5) operator-attested removal path; apps/api/src/services/strict-node-providerless-reconcile.ts:186-189 still throws teardown_allocation_unresolved with no bounded automatic retirement. diff --git a/tasks/backlog/2026-11-11-email-only-member-told-github-expired.md b/tasks/backlog/2026-11-11-email-only-member-told-github-expired.md index d81b0910e1..b0c1232b58 100644 --- a/tasks/backlog/2026-11-11-email-only-member-told-github-expired.md +++ b/tasks/backlog/2026-11-11-email-only-member-told-github-expired.md @@ -23,3 +23,7 @@ GitHub" is advisory only), and there is no "Connect GitHub" control for an email - [ ] Decide (human) whether approving a member who cannot run work should warn the owner, and whether email accounts get a "Connect GitHub" path. - [ ] The GitHub sign-in required dialog has an opaque surface at mobile and desktop. + +## Reconciliation (2026-11-23, weekly queue reconciliation) + +Still open, partly shipped. Remainder: owner warning/decision on approving member who cannot run work; dialog opacity unverified. Evidence: #2830 ca03b8167: GITHUB_NOT_CONNECTED code + Connect GitHub dialog in apps/web/src/components/AuthProvider.tsx:213,303. diff --git a/tasks/backlog/2026-11-16-capacity-pool-query-plan-test-near-timeout.md b/tasks/backlog/2026-11-16-capacity-pool-query-plan-test-near-timeout.md deleted file mode 100644 index 09e5322630..0000000000 --- a/tasks/backlog/2026-11-16-capacity-pool-query-plan-test-near-timeout.md +++ /dev/null @@ -1,18 +0,0 @@ -# capacity-pool-edit-query-plan test runs at the 5 s default timeout - -## Problem - -`apps/api/tests/unit/services/capacity-pool-edit-query-plan.test.ts` ("pool edit on a large pool > -updates the edited rows and their mirrors, looking every row up by id") timed out on CI -(5,450 ms against the 5,000 ms default) on PR #2780's rebased head, run 43838791321, job 133203179677. -Locally its two cases take 4.6–4.9 s together, so a loaded runner tips it over. - -## Context - -Found during inbox slice G CI. The test seeds a production-sized pool on purpose (rule 69, D1 CPU -ceiling), so the cost is intrinsic; the timeout is not. - -## Acceptance Criteria - -- [ ] The test sets an explicit timeout sized for its fixture, or the fixture setup is made cheaper without shrinking the row count below the production shape it guards -- [ ] Ten consecutive local runs and one CI run pass diff --git a/tasks/backlog/2026-11-16-flaky-runtime-secret-overlapping-submits-test.md b/tasks/backlog/2026-11-16-flaky-runtime-secret-overlapping-submits-test.md deleted file mode 100644 index 70b946cd3f..0000000000 --- a/tasks/backlog/2026-11-16-flaky-runtime-secret-overlapping-submits-test.md +++ /dev/null @@ -1,28 +0,0 @@ -# Flaky test: runtime secret overlapping submits assume call order - -## Problem - -`apps/api/tests/integration/runtime-secret-requests.test.ts` > "hardening > two overlapping submits by -the same person in the same millisecond: the loser writes nothing" failed on main CI run 43905441847 -(head 64a264da, job 133434491210): `expected 409 to be 200` at `first.status`. - -The test holds the first `DATABASE.batch()` call and releases it when the second arrives, then -asserts `first.status === 200` and `second.status === 409`. Both `fulfill()` calls start together under -`Promise.all`, and either can reach `batch()` first. When the second call's pre-checks resolve first, it -becomes the winner, so the statuses swap. The test also asserts the stored value is `SENTINEL` (the -first call's value), which is wrong in that ordering. The property under test still holds; the test -hard-codes which call wins. - -## Context - -Found while monitoring the production deploy of Insights slice F (#2789), which the failure blocked. -The same test passed on the neighbouring main CI runs (3a92e84c, d2e59766), which points to timing -dependence rather than a regression. Failed jobs were rerun. - -## Acceptance Criteria - -- [ ] The test records which call reached `batch()` first, and asserts that call got 200 and the other - got 409, the stored value and env value are the winner's, and the loser wrote nothing. -- [ ] Alternatively, the test serializes the two calls' pre-checks so the order is fixed by the test, - not by scheduling (rule 62, controlled ordering). -- [ ] Run the test 50 times in a loop locally with no failure. diff --git a/tasks/backlog/2026-11-16-inbox-guide-describes-unbuilt-review-asks.md b/tasks/backlog/2026-11-16-inbox-guide-describes-unbuilt-review-asks.md index 3e0e202630..faa3b3364f 100644 --- a/tasks/backlog/2026-11-16-inbox-guide-describes-unbuilt-review-asks.md +++ b/tasks/backlog/2026-11-16-inbox-guide-describes-unbuilt-review-asks.md @@ -26,3 +26,7 @@ Found on 2026-11-16 during content-accuracy review of the journal post - [ ] The Inbox guide describes only kinds of ask that can reach a user, or marks review/task asks as upcoming - [ ] Docs screenshots show only reachable kinds, or are labelled as such - [ ] Client/server stacking across tiers is confirmed as intended or fixed + +## Reconciliation (2026-11-23, weekly queue reconciliation) + +Still open, partly shipped. Review/task asks now reachable; remainder: confirm or fix cross-tier stacking (inbox-model.ts buildRows vs server PARTITION BY tier). Evidence: #2792 (agent review/result asks, packages/operations/src/inbox-agent-core.ts AgentFiledKind) and #2818 (tasks). diff --git a/tasks/backlog/2026-11-16-legacy-chat-pre-admission-append-gap.md b/tasks/backlog/2026-11-16-legacy-chat-pre-admission-append-gap.md index a78ecfa08f..49c9e20f8d 100644 --- a/tasks/backlog/2026-11-16-legacy-chat-pre-admission-append-gap.md +++ b/tasks/backlog/2026-11-16-legacy-chat-pre-admission-append-gap.md @@ -18,7 +18,7 @@ sending `message.append`, and the client's reconnect re-reads the newest window. ## Context Found while fixing the stale project-socket merge gate (task -`tasks/active/2026-11-16-stale-socket-merge-gate.md`, SAM task `01M7GY0BKP1WESE5Y82PZNN42S`). The +`tasks/archive/2026-11-16-stale-socket-merge-gate.md`, SAM task `01M7GY0BKP1WESE5Y82PZNN42S`). The brief scoped the guarantee to text arriving after the legacy socket appears. Affects only tabs still running a pre-#2760 bundle; the number falls as tabs reload. diff --git a/tasks/backlog/2026-11-17-cancelled-task-resurrected-by-wake-claim.md b/tasks/backlog/2026-11-17-cancelled-task-resurrected-by-wake-claim.md deleted file mode 100644 index 9082b8e3e5..0000000000 --- a/tasks/backlog/2026-11-17-cancelled-task-resurrected-by-wake-claim.md +++ /dev/null @@ -1,23 +0,0 @@ -# A task cancelled by its parent is resurrected by a wake claim - -## Problem - -Production task `01M7JC1MTRFT8PWRQ8BNFP8D6W` (chat `a4c110be-dcf9-4d11-8472-fef6f1414cf5`) was -cancelled by its parent at 2026-11-16T20:36:26Z ("Stopped by parent"). Ten seconds later a wake claim -moved it `cancelled -> queued` ("Sleeping conversation wake claimed"), followed by two more claims in -25 seconds. A cancelled task should not be woken back into the queue. - -## Context - -Found during task `01M7MZJJWKJYV88BSMQEGJPBXB` (provider-limit holds) while verifying how the chat -spent its wake budget. Adjacent to idea `01M7K6XPFHT4G7HPCGZBB1Z9ZK` (a parent cannot stop a parked -child): even a successful stop can be undone by a queued delivery's wake. - -## Acceptance Criteria - -- [ ] Identify which claim path reactivates a `cancelled` task (`claimSessionSnapshotRecovery` / - stable-task reactivation in `session-recovery.ts`). -- [ ] A cancelled task is never reactivated by a wake; its queued deliveries end with a clear, - non-error outcome. -- [ ] Regression test: cancel through the real stop path, then run the real delivery wake; the task - stays cancelled. diff --git a/tasks/backlog/2026-11-17-stale-ui-copy-after-insights-and-overview.md b/tasks/backlog/2026-11-17-stale-ui-copy-after-insights-and-overview.md index 183d0f6bf0..109ac24bac 100644 --- a/tasks/backlog/2026-11-17-stale-ui-copy-after-insights-and-overview.md +++ b/tasks/backlog/2026-11-17-stale-ui-copy-after-insights-and-overview.md @@ -16,3 +16,7 @@ Found 2026-11-17 during the weekly docs update; `guides/insights.md` was correct - [x] Accounts tab footer no longer says tokens are not recorded: the tab now shows tokens and API-key spend itself (#2828) - [ ] NavSidebar comment describes the Overview as the landing page + +## Reconciliation (2026-11-23, weekly queue reconciliation) + +Still open, partly shipped. Remainder: NavSidebar.tsx:70 PROJECT_NAV_ITEMS comment still says project opens in Chat. Evidence: AccountsTab footer fixed (#2828, file box checked). diff --git a/tasks/backlog/2026-11-22-remove-dead-registry-push-credentials.md b/tasks/backlog/2026-11-22-remove-dead-registry-push-credentials.md index 09b6fd81c6..88dcc13f72 100644 --- a/tasks/backlog/2026-11-22-remove-dead-registry-push-credentials.md +++ b/tasks/backlog/2026-11-22-remove-dead-registry-push-credentials.md @@ -16,7 +16,7 @@ Affects hosted SAM code (the Worker route), so it needs its own PR with the usua ## Context Found 2026-11-22 during self-host multi-box step 3 (registry evidence, -`tasks/active/2026-11-22-selfhost-registry-evidence.md`, task 01M8265E185QAYMQJH7VESFK19). +`tasks/archive/2026-11-22-selfhost-registry-evidence.md`, task 01M8265E185QAYMQJH7VESFK19). ## Acceptance Criteria diff --git a/tasks/backlog/2026-11-22-selfhost-gcs-presign-without-hmac.md b/tasks/backlog/2026-11-22-selfhost-gcs-presign-without-hmac.md index 4c8943acf6..d9ffc37b89 100644 --- a/tasks/backlog/2026-11-22-selfhost-gcs-presign-without-hmac.md +++ b/tasks/backlog/2026-11-22-selfhost-gcs-presign-without-hmac.md @@ -16,7 +16,7 @@ presigned uploads") cannot be done there. ## Context Found 2026-11-22 on the shared box during multi-box step 3 -(`tasks/active/2026-11-22-selfhost-registry-evidence.md`, task 01M8265E185QAYMQJH7VESFK19). +(`tasks/archive/2026-11-22-selfhost-registry-evidence.md`, task 01M8265E185QAYMQJH7VESFK19). ## Acceptance Criteria From 932cdf34e5c411388a78fcb806fe5e3e6228a1e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Titsworth-Morin?= Date: Mon, 23 Nov 2026 06:21:38 +0000 Subject: [PATCH 3/3] task: address reconciliation validator findings Restore the background-subagent record (superseded evidence did not cover its symptom), correct two ticks that overstated evidence, tick four acceptance criteria covered by their own tests, and point two orphaned production measurements at their tracking idea. Co-Authored-By: Claude Opus 5.5 --- ...1-23-weekly-queue-memory-reconciliation.md | 3 +- ...6-11-14-cut-wasted-do-sqlite-row-writes.md | 9 +- .../2026-11-18-terminal-ci-wait-guidance.md | 2 +- ...6-11-20-restart-private-incident-triage.md | 4 +- ...23-suppress-background-subagents-in-acp.md | 154 ++++++++++++++++++ .../2026-11-14-merge-streamed-chunks.md | 4 +- 6 files changed, 166 insertions(+), 10 deletions(-) create mode 100644 tasks/backlog/2026-02-23-suppress-background-subagents-in-acp.md diff --git a/tasks/active/2026-11-23-weekly-queue-memory-reconciliation.md b/tasks/active/2026-11-23-weekly-queue-memory-reconciliation.md index 712d06db99..3324e5c1a8 100644 --- a/tasks/active/2026-11-23-weekly-queue-memory-reconciliation.md +++ b/tasks/active/2026-11-23-weekly-queue-memory-reconciliation.md @@ -48,11 +48,12 @@ guide to what is genuinely open. - [ ] Every deleted backlog file has a verdict and evidence in the PR description - [ ] No backlog file deleted without a cited merged PR, commit or code check - [ ] Each PR older than 7 days has one comment from this run -- [ ] The change touches only files under `tasks/`: no staging deploy (task-file-only exemption) +- [ ] Outside `tasks/`, the change touches only comments and one non-functional manifest string (`baselineBacklogLink`, read by nothing else): no staging deploy (docs-only exemption) ## Backlog audit results - 348 files. KEEP 276, PARTIAL 64, SHIPPED 7, SUPERSEDED 1, OBSOLETE 0, DUPLICATE 0. +- The task-completion validator challenged the SUPERSEDED verdict on `2026-02-23-suppress-background-subagents-in-acp.md`: #1845 leases background work, but nothing shows the interleaved-output symptom is fixed. The file was restored and kept, with a note. Final: 7 deleted. - I checked the merged PR and the code path for all 8 deletions myself (listed in the PR description). - 61 of the 64 PARTIAL files already carry earlier reconciliation notes. A dated note was added only to the 7 whose evidence cites a PR the file did not mention yet. diff --git a/tasks/archive/2026-11-14-cut-wasted-do-sqlite-row-writes.md b/tasks/archive/2026-11-14-cut-wasted-do-sqlite-row-writes.md index dd4015ec5b..481d3854aa 100644 --- a/tasks/archive/2026-11-14-cut-wasted-do-sqlite-row-writes.md +++ b/tasks/archive/2026-11-14-cut-wasted-do-sqlite-row-writes.md @@ -76,11 +76,11 @@ read a day, and its object has grown to 1.04 GB. ## Acceptance criteria -- [ ] With default settings the unscoped sweep selects no session from a project whose latest fresh +- [x] With default settings the unscoped sweep selects no session from a project whose latest fresh telemetry is below the threshold, and still selects from a pressured project in the same tick. -- [ ] A project with no telemetry row, or a stale one, is still archived. -- [ ] Operator-scoped runs, in-flight migrations and pending reclaim are unchanged. -- [ ] A GitHub webhook for a repository with a system-owned project and a user-owned project admits +- [x] A project with no telemetry row, or a stale one, is still archived. +- [x] Operator-scoped runs, in-flight migrations and pending reclaim are unchanged. +- [x] A GitHub webhook for a repository with a system-owned project and a user-owned project admits one event, into the user-owned project. - [ ] Staging: a sweep tick on the deployed branch reports the gate in `cron.completed`, and a low-pressure project's eligible session stays in root while the tick runs. @@ -116,4 +116,5 @@ ingest per-batch overhead, the retention scan. All are listed in the idea. - Shipped in [#2727](https://github.com/raphaeltm/simple-agent-manager/pull/2727). - Production deploys from `main` have succeeded continuously since then (latest `7d40cfb2d`, 2026-11-23). +- The first four acceptance criteria are ticked because they are the behaviours tested in checklist items A5 and B2 above. The staging criterion was not re-checked. The production row-count measurement was never recorded; it is now tracked as an open measurement on idea `01M7CX61WVX72T7CFQNRTX0DVM` (note dated 2026-11-23). - 7 line(s) stay unticked. They are verification or reporting steps that were not re-checked here; this record does not claim them. diff --git a/tasks/archive/2026-11-18-terminal-ci-wait-guidance.md b/tasks/archive/2026-11-18-terminal-ci-wait-guidance.md index 8693393ef0..b392f136b7 100644 --- a/tasks/archive/2026-11-18-terminal-ci-wait-guidance.md +++ b/tasks/archive/2026-11-18-terminal-ci-wait-guidance.md @@ -45,6 +45,6 @@ Previous agent ran out of usage. Head 62ab30db had all checks green (CI 44267154 ## Reconciliation (2026-11-23, weekly queue reconciliation) -- Shipped in [#2883](https://github.com/raphaeltm/simple-agent-manager/pull/2883) (merged 2026-11-19). The production row_usage measurement (line 23) was never done. It was evidence-gathering, not a deliverable, and is not tracked anywhere else. +- Shipped in [#2883](https://github.com/raphaeltm/simple-agent-manager/pull/2883) (merged 2026-11-19). The production row_usage measurement (line 23) was never done. It was evidence-gathering, not a deliverable. It is now tracked as an open measurement on idea `01M7CX61WVX72T7CFQNRTX0DVM` (note dated 2026-11-23). - Production deploys from `main` have succeeded continuously since then (latest `7d40cfb2d`, 2026-11-23). - 1 line(s) stay unticked. They are verification or reporting steps that were not re-checked here; this record does not claim them. diff --git a/tasks/archive/2026-11-20-restart-private-incident-triage.md b/tasks/archive/2026-11-20-restart-private-incident-triage.md index 5569eeaac6..514b3f6fe3 100644 --- a/tasks/archive/2026-11-20-restart-private-incident-triage.md +++ b/tasks/archive/2026-11-20-restart-private-incident-triage.md @@ -62,7 +62,7 @@ Raphaël decided 2026-11-20 to restart automated incident triage and accept its - [x] Tests on real SQLite: self-blocking regression, promoted/edited/linked still block, titles, one idea per signature, cleanup never touches edited/linked ideas, stall anomaly, decline log - [x] Docs updated -- [x] Post-deploy: update live trigger template, verify trigger fires, run completes, queue drains +- [ ] Post-deploy: update live trigger template, verify trigger fires, run completes, queue drains ## Acceptance criteria @@ -76,5 +76,5 @@ Raphaël decided 2026-11-20 to restart automated incident triage and accept its ## Reconciliation (2026-11-23, weekly queue reconciliation) -- Shipped in [#2938](https://github.com/raphaeltm/simple-agent-manager/pull/2938), followed by #2954, #2957 and #2958. Line 65 is ticked because the trigger fires and its runs complete: triage tasks 01M81S6T8FX36JY529HN7J409X and 01M814KQD60ZCE0JXQV8M1WCQ3 completed on 2026-11-22. +- Shipped in [#2938](https://github.com/raphaeltm/simple-agent-manager/pull/2938), followed by #2954, #2957 and #2958. Line 65 is partly evidenced: the trigger fires (32 runs, last 2026-11-22T14:05Z) and runs complete (triage tasks 01M81S6T8FX36JY529HN7J409X and 01M814KQD60ZCE0JXQV8M1WCQ3 on 2026-11-22). The template update and queue drain were not re-checked, so it stays unticked. - Production deploys from `main` have succeeded continuously since then (latest `7d40cfb2d`, 2026-11-23). diff --git a/tasks/backlog/2026-02-23-suppress-background-subagents-in-acp.md b/tasks/backlog/2026-02-23-suppress-background-subagents-in-acp.md new file mode 100644 index 0000000000..a7194179fd --- /dev/null +++ b/tasks/backlog/2026-02-23-suppress-background-subagents-in-acp.md @@ -0,0 +1,154 @@ +# Suppress Background Sub-Agents in ACP Sessions + +**Created**: 2026-02-23 +**Status**: Backlog +**Priority**: High +**Estimated Effort**: Small + +## Problem + +When Claude Code launches sub-agents with `run_in_background: true` (the Task tool's `run_in_background` parameter), the ACP session breaks down with interleaved, garbled messages. This is a fundamental protocol-level issue that cannot be solved by the ACP client alone. + +### What Happens + +1. User sends a prompt to Claude Code via ACP. +2. Claude Code decides to run one or more sub-agents **in the background**. +3. Claude Code immediately returns a prompt response (with `stopReason`) saying something like "I'm running these in the background and will notify you when they're done." +4. `session_prompt_done` fires, `HostStatus` goes to `ready`, the UI unlocks the input. +5. **But the background sub-agents are still running** inside the Claude Code process. They continue producing `session/update` notifications (tool calls, message chunks, thinking blocks) on the same NDJSON stdout stream. +6. If the user sends a new message at this point, the new prompt's response stream **interleaves** with the still-active background sub-agent output. +7. The result is garbled, jumbled messages in the UI — fragments from background sub-agents mixed with the new prompt's responses. + +### Why This Happens at the Protocol Level + +The ACP protocol has **no concept of sub-agents**. All `session/update` notifications arrive on a single flat NDJSON stream. There is no way to: +- Distinguish background sub-agent output from main agent output +- Correlate `session/update` messages to a specific sub-agent +- Know when all background sub-agents have finished + +The `session_prompting` / `session_prompt_done` lifecycle only tracks the main prompt. Background sub-agents operate outside this lifecycle — they keep emitting after `session_prompt_done` fires. + +Even after the background sub-agents appear to have finished (based on CPU usage), their buffered output may still be in the NDJSON pipe, and Claude Code's internal merging of background results into conversation history can produce further interleaved updates. + +### Community Confirmation + +This is a known gap in the ACP ecosystem: +- The [ACP specification](https://agentclientprotocol.com/protocol/tool-calls) has no sub-agent-specific provisions +- [OpenCode Issue #11576](https://github.com/anomalyco/opencode/issues/11576) — "FEATURE: Support subagent information in ACP" confirms the gap +- [Claude Code Issue #7091](https://github.com/anthropics/claude-code/issues/7091) — Sub-agent messages get stuck/mixed between concurrent sub-agents +- [Claude Code Issue #5691](https://github.com/anthropics/claude-code/issues/5691) — Input event cross-contamination across agent sessions +- The `@finityno/claude-code-acp` npm package exists specifically to add sub-agent tracking that the official ACP lacks + +## Why Option 1 (Suppress Background Sub-Agents) Is the Right Fix + +We evaluated three approaches: + +### Option 1: Suppress background sub-agents via system prompt (CHOSEN) + +Add a system prompt instruction telling Claude Code to never use `run_in_background: true` on the Task tool. + +**Pros:** +- Trivial to implement — one line in the agent system prompt or CLAUDE.md +- Eliminates the problem completely at the source +- Foreground sub-agents still work perfectly (they block `Prompt()` until they return) +- Claude Code can still run **multiple foreground sub-agents in parallel** by making multiple Task tool calls in one response — the only difference is it can't return control to the user before they finish +- No protocol-level changes needed +- No client-side message parsing/filtering complexity + +**Cons:** +- The user can't interact with the agent while sub-agents run (but this is already the expected UX for foreground sub-agents, and the Cancel button remains available) +- If Claude Code ignores the instruction (rare but possible), the problem resurfaces + +### Option 2: Client-side message segregation (REJECTED) + +Track Task tool call IDs, filter background sub-agent `session/update` messages, buffer them separately, render as collapsed summaries. + +**Why rejected:** +- High implementation complexity — must parse every `session/update`, maintain parent-child tool call trees, handle edge cases around nested tool calls +- Fragile — depends on inferring sub-agent relationships from tool call IDs, which the ACP protocol doesn't formally guarantee +- Doesn't solve the fundamental problem that Claude Code's internal conversation state gets interleaved +- Even with perfect client-side filtering, sending a new prompt while background work is active can corrupt Claude Code's own conversation history + +### Option 3: Client-side prompt queueing (REJECTED) + +Keep input disabled until all outstanding Task tool calls resolve, regardless of `session_prompt_done`. + +**Why rejected:** +- Requires tracking all Tool Call IDs and their completion status — significant state management +- Race conditions between `session_prompt_done` and tool call completion events +- Still doesn't prevent the underlying stream interleaving — just prevents the user from triggering it +- If a background sub-agent hangs or takes very long, the UI appears frozen with no clear indication of why + +## Implementation Plan + +### Step 1: Add System Prompt Instruction + +Add the following instruction to the agent's system prompt configuration. The exact location depends on how agent system prompts are configured — it may be in the CLAUDE.md that gets loaded into agent sessions, or in the ACP session initialization. + +The instruction should be: + +``` +IMPORTANT: Never use `run_in_background: true` when invoking the Task tool. Always run sub-agents in the foreground. Background sub-agents cause message interleaving issues in the ACP protocol. You can still run multiple sub-agents in parallel by making multiple Task tool calls in a single response — they will all execute concurrently and block until all complete, which is the correct behavior. +``` + +### Step 2: Identify Where to Place the Instruction + +Research needed to determine the right injection point: + +- **Option A**: In the workspace-level CLAUDE.md that gets loaded into agent sessions. This is the simplest but only works if the agent respects it. +- **Option B**: In the ACP `Initialize` or `NewSession` system prompt parameter. This is more authoritative since it's part of the session configuration, not just a file the agent reads. +- **Option C**: In the agent's `allowedTools` configuration — if the ACP SDK supports restricting tool parameters (not just tool names), we could disallow `run_in_background: true` at the protocol level. This would be the most robust but may not be supported. + +Check the ACP SDK's `Initialize` and `NewSession` methods for system prompt injection capabilities. Check the `SessionHost.SelectAgent()` and `SessionHost.handleNewSession()` code paths for where session configuration is set. + +### Step 3: Verify Foreground Parallel Sub-Agents Still Work + +After applying the instruction, verify that Claude Code can still: +1. Launch multiple Task tool calls in a single response +2. All sub-agents execute concurrently (not sequentially) +3. `Prompt()` blocks until all sub-agents complete +4. All sub-agent output streams correctly to the UI during execution +5. `session_prompt_done` fires only after all sub-agents finish + +### Step 4: Add a Fallback Safety Net (Optional Enhancement) + +As a defense-in-depth measure, consider adding client-side detection: +- In `useAcpMessages`, detect if a `tool_call` for the Task tool has `run_in_background: true` in its input +- If detected, log a warning (the instruction was ignored) +- Optionally keep the input disabled until that tool call resolves + +This is a low-priority enhancement since the system prompt instruction should be sufficient in practice. + +## Checklist + +- [ ] Research where agent system prompts are injected in the ACP session lifecycle +- [ ] Add the "no background sub-agents" instruction to the appropriate location +- [ ] Test with a prompt that would normally trigger background sub-agents +- [ ] Verify foreground parallel sub-agents work correctly +- [ ] Verify no message interleaving occurs +- [ ] (Optional) Add client-side detection/warning for `run_in_background: true` + +## Affected Files + +| File | What Changes | +|------|-------------| +| TBD (system prompt location) | Add instruction suppressing background sub-agents | +| Possibly `packages/vm-agent/internal/acp/session_host.go` | If injecting via ACP SDK session config | +| Possibly workspace CLAUDE.md template | If injecting via project instructions | + +## Testing Strategy + +- **Manual test**: Send a prompt that previously triggered background sub-agents (e.g., a complex multi-step task). Verify Claude Code runs them in the foreground instead. +- **Manual test**: Send a prompt that triggers multiple parallel sub-agents. Verify they run concurrently and the UI stays locked until all complete. +- **Manual test**: Verify no message interleaving when sending a follow-up prompt after sub-agents finish. +- **Regression test**: Verify the Cancel button still works during foreground sub-agent execution. + +## Related Issues + +- This task was identified through direct user testing of the ACP client +- Related to the broader ACP protocol gap around sub-agent awareness +- If the ACP protocol adds sub-agent support in the future, this workaround can be revisited + +## Reconciliation (2026-11-23, weekly queue reconciliation) + +Still open, partly superseded. [#1845](https://github.com/raphaeltm/simple-agent-manager/pull/1845) tracks and leases background harness work (`packages/vm-agent/internal/acp/session_host_harness_work.go`), so the planned `run_in_background` ban will not happen. Nothing shows the original symptom is fixed: interleaved, garbled output when the user prompts while background sub-agents are still emitting after `session_prompt_done`. Close this only with a test or PR that covers that symptom. diff --git a/tasks/backlog/2026-11-14-merge-streamed-chunks.md b/tasks/backlog/2026-11-14-merge-streamed-chunks.md index 57af0caea1..7ae524bfe0 100644 --- a/tasks/backlog/2026-11-14-merge-streamed-chunks.md +++ b/tasks/backlog/2026-11-14-merge-streamed-chunks.md @@ -131,7 +131,7 @@ Remaining narrower verification, per task author: - [ ] Identify the full-list capture failure step and reproduce locally with at least3500 logical chunks/~18k assistant characters plus a tool group, card and system row; fix and review without weakening equality. Measure375/1280 capture duration. - [ ] Budget25-second reply stability plus measured UI phase before work stop; begin the last prompt early enough. An ended short Instant first reply should lead promptly to an ordinary long-reply user follow-up while ON. - [ ] New coordinated window: VM ON long/full verification, strict VM deletion, Instant ON long/full verification through an immediate ordinary follow-up when needed, then Instant OFF long/stored reload and UI regression proof for the default-OFF path. Only VM OFF need not be repeated; account for the25-second stability wait and measured full UI phase for all three runs before requesting a slot. -- [x] After those gates pass, open the PR with merging defaultOFF, complete CI/review/release and read-only production usage monitoring. +- [ ] After those gates pass, open the PR with merging defaultOFF, complete CI/review/release and read-only production usage monitoring. The task author corrected the narrower plan: Instant OFF remains required because production first runs the new build with merging OFF. Current modes: VM OFF stored reload/streaming/baseline met (window three; full-list harness failures remain recorded); VM ON storage/append/saving met, full UI NOT MET; Instant ON merging observed, complete verification NOT MET; Instant OFF unrun. No new slot request until all three future live runs and their measured tail budgets fit the fixed40-minute allocation window. @@ -240,6 +240,6 @@ PR #2760 initially failed AST SQL quality validation on a conditional, constant- ## Reconciliation (2026-11-23, weekly queue reconciliation) - Shipped switched off by default in [#2760](https://github.com/raphaeltm/simple-agent-manager/pull/2760) (2026-11-15), with telemetry in [#2773](https://github.com/raphaeltm/simple-agent-manager/pull/2773) (2026-11-16). `DEFAULT_MESSAGE_MERGE_CONFIG.enabled` is still `false` (`packages/project-data/src/do/message-stream-ingest.ts`). The owning SAM task (01M7E19YHSJ73896Q84ASSGFDN) was cancelled on 2026-11-23. -- STILL OPEN and unowned: Raphaël's Admin UI activation in production, a two-hour read-only row-usage observation against the 26.4 rows/call baseline, then a separate default-ON PR. The same switch-on covers `toolUpdatesEnabled` from #2835. Moved back to backlog. Idea 01M7CX61WVX72T7CFQNRTX0DVM. +- STILL OPEN and unowned: Raphaël's Admin UI activation in production, a two-hour read-only row-usage observation against the 26.4 rows/call baseline, then a separate default-ON PR. The same switch-on covers `toolUpdatesEnabled` from #2835. Moved back to backlog. Line 134 stays unticked: the PR shipped default OFF, but its read-only production monitoring never ran. Idea 01M7CX61WVX72T7CFQNRTX0DVM. - Production deploys from `main` have succeeded continuously since then (latest `7d40cfb2d`, 2026-11-23). - 9 line(s) stay unticked. They are verification or reporting steps that were not re-checked here; this record does not claim them.