Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion deploy/selfhost/sam-dns/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-sam/rules.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
62 changes: 62 additions & 0 deletions tasks/active/2026-11-23-weekly-queue-memory-reconciliation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# 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] 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
- [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
- [x] 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
- [ ] 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.
- 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.
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -111,3 +111,10 @@ 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).
- 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.
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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).
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Loading
Loading