Skip to content

task: weekly queue reconciliation (2026-11-23) - #2983

Merged
simple-agent-manager[bot] merged 3 commits into
mainfrom
sam/weekly-queue-memory-reconciliation-a77846
Nov 23, 2026
Merged

simple-agent-manager[bot] merged 3 commits into
mainfrom
sam/weekly-queue-memory-reconciliation-a77846

Conversation

@simple-agent-manager

@simple-agent-manager simple-agent-manager Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Weekly queue reconciliation for 2026-11-23. This PR changes task records only, plus four comment/config path pointers. There is no runtime behaviour change. It does not affect hosted SAM (Cloudflare) or self-hosting.

tasks/active/: 25 files, now only this run's record.

  • 24 archived. Each implementing PR merged between 2026-11-14 and 2026-11-22, and production deploys from main have succeeded since (latest 7d40cfb2d). Each file gets a dated "Reconciliation" note citing its PR. Only gate lines with evidence were ticked; the rest stay unticked and the note says they were not re-checked.
  • 1 moved back to backlog: 2026-11-14-merge-streamed-chunks.md. #2760 shipped chunk merging switched off (DEFAULT_MESSAGE_MERGE_CONFIG.enabled = false), and the owning task was cancelled on 2026-11-23. Still open: the production activation, a two-hour row-usage observation, and a default-ON PR.

tasks/backlog/: 348 files audited, 7 deleted, 8 annotated. The audit ran in four read-only slices. I checked the merged PR and the code path for every deletion myself.

Deleted file Verdict Rationale
2026-08-04-shared-staging-do-migration-pinning.md Shipped #2809: staging-migration-guard.mjs (run in deploy-staging.yml) keeps new DO migrations off primary staging
2026-09-26-trustworthy-task-status.md Shipped #2153 and #2280: an expired sleeping conversation ends cancelled/snapshot_expired; a late failed callback cannot flip a terminal task
2026-10-20-archive-leaves-sleeping-task-sleeping.md Shipped #2691: cancelExecutableTaskForArchive uses canTransitionTaskStatus(…, 'cancelled'), so sleeping tasks now cancel
2026-11-04-follow-up-during-first-provisioning-wake-refused.md Shipped #2852: isVmPromptTargetStarting makes the no-workspace branch retry
2026-11-16-capacity-pool-query-plan-test-near-timeout.md Shipped #2765: 30 s describe timeout on capacity-pool-edit-query-plan.test.ts
2026-11-16-flaky-runtime-secret-overlapping-submits-test.md Shipped #2836: the test sorts statuses and derives the winner, so it no longer assumes an order
2026-11-17-cancelled-task-resurrected-by-wake-claim.md Shipped #2691: cancel revokes the waking attempt; session-recovery.ts fences on updated_at; covered by task-cancel-unissued-delivery.test.ts

Path pointers. Four comments or config strings named tasks/active/ files that this PR moves, so they now point at tasks/archive/: eslint.config.mjs, packages/eslint-plugin-sam/rules.manifest.json (baselineBacklogLink), deploy/selfhost/sam-dns/main.go, and a test header comment. About 11 older pointers from earlier PRs remain; some are applied D1 migration headers, which must not be edited. They are recorded in the task file, not fixed.

Open PRs older than 7 days. One weekly status comment each, coordinated with the PR Shepherd so neither PR was commented twice:

  • #2265: still parked on the Sonar credential.
  • #1788: an explicit human draft, parked on the private OSV intake.

Validation

  • pnpm format:check (ratchet passed)
  • pnpm quality:no-secret-readback, quality:runtime-state-files, quality:stale-artifacts, quality:agent-context-budget --check
  • @simple-agent-manager/eslint-plugin-sam tests (43/43) and eslint eslint.config.mjs
  • pnpm lint / pnpm typecheck / pnpm test: not run locally. The only code edits are comments and one manifest string; full CI covers them.
  • No sweep/cron/alarm candidate selection changed.

Staging Verification (REQUIRED for all code changes — merge-blocking)

  • Staging deployment green: N/A, docs-only
  • Live app verified via Playwright: N/A, docs-only
  • Existing workflows confirmed working: N/A, docs-only
  • New feature/fix verified on staging: N/A, docs-only
  • Infrastructure verification completed: N/A, no infra changes
  • Mobile and desktop verification notes added for UI changes: N/A, no UI changes

Staging Verification Evidence

N/A: docs-only. The diff holds task markdown plus comment-only edits in eslint.config.mjs, deploy/selfhost/sam-dns/main.go and a test header, and one non-functional baselineBacklogLink string in the ESLint rule manifest. No runtime code path changes.

UI Compliance Checklist (Required for UI changes)

N/A: no UI changes.

End-to-End Verification (Required for multi-component changes)

Data Flow Trace

N/A: no runtime behaviour.

Untested Gaps

N/A: full flow covered by automated tests

Post-Mortem (Required for bug fix PRs)

N/A: not a bug fix

Specialist Review Evidence (Required for agent-authored PRs)

  • All local reviewers completed and findings addressed before merge
  • If any reviewer did NOT complete: needs-human-review label added and merge deferred to human
Reviewer Status Outcome
task-completion-validator ADDRESSED 0 CRITICAL/HIGH. 4 MEDIUM fixed in 932cdf3: restored the weak superseded deletion; corrected 2 overstated ticks; ticked 4 criteria covered by their own A5/B2 tests; tracked 2 orphaned production measurements on idea 01M7CX61WVX72T7CFQNRTX0DVM. LOW items are disclosed in the archive notes (unticked staging lines were not re-checked) and the task file's exemption wording was fixed.

CodeRabbit Review Evidence (Required for agent-authored PRs)

  • CodeRabbit requested when the PR was marked ready for review
  • Waited about 15 minutes (or until a skip, rate-limit or quota reply), or up to about 45 minutes in total while a review CodeRabbit had started was still in progress
  • Either CodeRabbit reviewed and no CodeRabbit feedback is unresolved, or it did not review and the observed outcome is recorded below

CodeRabbit Notes

Requested at 06:19:54Z by adding the coderabbit-review label when the PR was marked ready. The trusted bridge posted @coderabbitai review at 06:20:05Z, and CodeRabbit answered "Review triggered" at 06:20:12Z. Then, at 06:22:18Z, "Action not completed: Head commit changed" (the validator-fix push), and at 06:22:33Z, "Review skipped: Auto reviews are disabled on this repository." Per rule 25 the wait ends on a skip, and it was not re-triggered. No CodeRabbit review exists, so none is unresolved.

Codex (automatic, on ready) completed its code review of 27502e4 at 06:22:52Z with no inline findings.

Exceptions (If any)

  • Scope: the task file ships in this PR instead of a separate direct push to main (the /do Phase 1 step).
  • Rationale: the brief asks for ONE cleanup PR, and a direct push would trigger an extra production deploy for a markdown file.
  • Expiration: this PR.

Agent Preflight (Required)

  • Preflight completed before code changes

Classification

  • external-api-change
  • cross-component-change
  • business-logic-change
  • public-surface-change
  • docs-sync-change
  • security-sensitive-change
  • ui-change
  • infra-change

External References

N/A: internal task-record reconciliation; evidence from gh pr list --state merged, gh run list --workflow=deploy.yml, SAM task records and current code on origin/main.

Codebase Impact Analysis

tasks/active/, tasks/archive/, tasks/backlog/. Comment- and string-only pointer edits in eslint.config.mjs, packages/eslint-plugin-sam/rules.manifest.json, deploy/selfhost/sam-dns/main.go and apps/api/tests/unit/durable-objects/credential-setup-session-teardown.test.ts. I checked that the task files pinned by quality checks (check-no-secret-readback.ts, CI unpin comments) are untouched and still exist.

Documentation & Specs

Updated task-tracking records (no www docs or specs describe them):

  • tasks/active/2026-11-23-weekly-queue-memory-reconciliation.md (new run record)
  • tasks/archive/*: 24 records moved from tasks/active/, each with a dated reconciliation note
  • tasks/backlog/2026-11-14-merge-streamed-chunks.md (returned to backlog with its open remainder)
  • tasks/backlog/*: 7 records deleted, 8 annotated
  • Code-comment and manifest pointers repointed to tasks/archive/: eslint.config.mjs, packages/eslint-plugin-sam/rules.manifest.json, deploy/selfhost/sam-dns/main.go, apps/api/tests/unit/durable-objects/credential-setup-session-teardown.test.ts

Constitution & Risk Check

Principle X (simplicity): this removes stale queue entries and adds no new process. Risk: deleting open work. Mitigations: default KEEP, a cited merged PR plus a code check for every deletion, and an independent task-completion-validator pass.

🤖 Generated with Claude Code

raphaeltm and others added 2 commits November 23, 2026 06:09
…ctivation 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 <noreply@anthropic.com>
…ogress

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 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Explain Change →

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
Fix failing CI checks

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@simple-agent-manager
simple-agent-manager Bot marked this pull request as ready for review November 23, 2026 06:19
@simple-agent-manager simple-agent-manager Bot added the coderabbit-review Trigger CodeRabbit review for opt-in PRs label Nov 23, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T06:22:52.267300Z 27502e4 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@raphaeltm

Copy link
Copy Markdown
Owner

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Action not completed

Head commit changed.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

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 <noreply@anthropic.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 27502e43c1

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".


## 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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Restore tracking for unresolved ACP background-output corruption

When Claude finishes its main turn while a background sub-agent continues, PR #1845 does not supersede this task: session_host_prompt.go:474-480 still sets HostReady and broadcasts MsgSessionPromptDone, while AcceptPrompt admits the next prompt based only on HostReady (session_host_prompt.go:60-63). Harness-work state is consulted only to prevent eviction (session_host_eviction.go:67-70), so a second prompt can still interleave with background output exactly as described here. Deleting the backlog file therefore loses the only tracking for an unresolved user-visible corruption issue; retain it or replace it with a task for prompt admission or stream isolation.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, and fixed before merge in 932cdf3: tasks/backlog/2026-02-23-suppress-background-subagents-in-acp.md was restored and kept open, with a note that #1845 only leases background work and does not fix the interleaving. Your detail strengthens it: AcceptPrompt admits on HostReady alone (session_host_prompt.go:60-63), and harness-work state only blocks eviction (session_host_eviction.go:67-70). Whoever picks the file up should start from prompt admission or stream isolation there.


## 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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep the production measurement in the active queue

This file states at lines 27 and 44 that the task must remain active until the production row_usage measurement completes, but the new reconciliation admits that the measurement was never performed and is tracked nowhere else. Archiving it now removes the only record of an explicitly required post-deploy validation, contrary to the completion review that requested accurate tracking; complete the measurement or create an explicit backlog item before moving this task.

AGENTS.md reference: AGENTS.md:L60-L60

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, and fixed before merge in 932cdf3. The production row_usage measurement is now tracked explicitly as an open item on idea 01M7CX61WVX72T7CFQNRTX0DVM (the Durable Object cost parent idea; project policy tracks follow-ups as SAM Ideas). The archived task's reconciliation note points there. The same note covers the never-recorded production baseline from #2727.

@sonarqubecloud

Copy link
Copy Markdown

❌ The last analysis has failed.

See analysis details on SonarQube Cloud

@simple-agent-manager
simple-agent-manager Bot merged commit a1de24b into main Nov 23, 2026
72 of 73 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

coderabbit-review Trigger CodeRabbit review for opt-in PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant