Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
131 commits
Select commit Hold shift + click to select a range
d34dcda
chore(deps): bump globals from 17.9.0 to 17.14.0 (#2898)
dependabot[bot] Nov 19, 2026
6e650bf
fix(infra): restore managed apex marketing redirect (#2376)
simple-agent-manager[bot] Nov 19, 2026
f914221
docs: default agent CI waits to terminal events (#2883)
simple-agent-manager[bot] Nov 19, 2026
b62aba6
chore(deps-dev): bump Storybook family to 10.6.7 (#2895)
dependabot[bot] Nov 19, 2026
037da2a
fix(api): return 409 when compute pool node limit is reached (#2850)
simple-agent-manager[bot] Nov 19, 2026
62a169e
chore(deps): bump satori from 0.62.0 to 0.63.2 (#2897)
dependabot[bot] Nov 19, 2026
f31147b
chore(deps): remove unused root lucide-react dependency (#2894)
dependabot[bot] Nov 19, 2026
24abd33
fix(acp): send arrays for empty MCP headers and Amp env (#2849)
simple-agent-manager[bot] Nov 19, 2026
0b9fe27
fix: isolate GCP WIF setup by installation and preserve teardown proo…
simple-agent-manager[bot] Nov 19, 2026
61e9e5a
fix(inbox): archive every inbox kind without telling the agent (#2873)
simple-agent-manager[bot] Nov 19, 2026
b87f398
fix(api): hold follow-ups while waiting for the first VM (#2852)
simple-agent-manager[bot] Nov 19, 2026
4c93e80
fix: accept exact composable credential pool anchors (#2853)
simple-agent-manager[bot] Nov 19, 2026
c44ec15
L22a: bound shared in-flight joins so a dropped flight cannot hang (F…
simple-agent-manager[bot] Nov 19, 2026
39f0a92
fix(api): preserve provisioned-node ownership through placement (#2855)
simple-agent-manager[bot] Nov 19, 2026
69583ae
feat: owner-only retained manifest and WIP downloads (draft only) (#2…
simple-agent-manager[bot] Nov 19, 2026
fa04695
L22b: celld build and deploy core for self-hosting (plaintext mode) (…
simple-agent-manager[bot] Nov 19, 2026
6e1c998
Give stuck SAM-capacity nodes a supported way out of destroying (#2900)
simple-agent-manager[bot] Nov 19, 2026
c882448
Allow audited agent sessions on stuck-node removal by default (#2904)
simple-agent-manager[bot] Nov 19, 2026
08abf13
fix: keep eligible deployment nodes across pool priority changes (#2903)
simple-agent-manager[bot] Nov 19, 2026
7de72d6
fix(security): one owner per GCP workload identity pool (#2905)
simple-agent-manager[bot] Nov 19, 2026
efe96eb
chore(deps): bump github.com/emersion/go-smtp from 0.25.1 to 0.26.0 i…
dependabot[bot] Nov 19, 2026
512fc11
chore(deps): bump alpine from 3.22 to 3.24 in /deploy/selfhost/sam-mx…
dependabot[bot] Nov 19, 2026
87d62cd
fix(deps): align S3 client and presigner at 3.1169.0 (#2896)
dependabot[bot] Nov 19, 2026
2e0a11f
docs(www): journal post on GCP workload identity pool ownership (#2908)
simple-agent-manager[bot] Nov 19, 2026
c98cd43
docs: frame SAM as self-hosted, not SaaS (WIF journal post + agent in…
simple-agent-manager[bot] Nov 19, 2026
917077f
L22c: self-host box runtime (compose, Caddy, frps, live suite) (#2906)
simple-agent-manager[bot] Nov 19, 2026
64cd15f
fix(deps): bump github.com/compose-spec/compose-go/v2
dependabot[bot] Nov 19, 2026
94ed77e
fix(deps): bump isomorphic-git from 1.44.12 to 1.44.15
dependabot[bot] Nov 19, 2026
4940559
feat(selfhost): add encrypted backups and guarded operations
raphaeltm Nov 19, 2026
4c41531
fix(selfhost): prove rollback and teardown ownership at deletion
raphaeltm Nov 19, 2026
faf03e4
refactor(selfhost): address operations analysis findings
raphaeltm Nov 19, 2026
f546d91
fix(selfhost): require the selected backup writer to be running
raphaeltm Nov 19, 2026
761662d
fix(selfhost): make recovery retryable and receipt identity grants
raphaeltm Nov 19, 2026
cd2e646
fix(selfhost): retain rollback progress until recovered service is he…
raphaeltm Nov 19, 2026
c478397
fix(selfhost): clean readonly Go caches during rollback
raphaeltm Nov 19, 2026
8f7882d
fix(selfhost): preserve restore ownership and recover interrupted ope…
raphaeltm Nov 19, 2026
39f3fa9
fix(selfhost): isolate restore identity and bind destructive retries
raphaeltm Nov 20, 2026
2067501
fix(deps): bump anthropics/claude-code-action from 1.0.276 to 1.0.277…
dependabot[bot] Nov 20, 2026
1b8c925
Merge remote-tracking branch 'origin/main' into sam/self-host-landing…
raphaeltm Nov 20, 2026
a29aadf
docs(selfhost): archive verified L24 operations evidence
raphaeltm Nov 20, 2026
99960ba
fix(selfhost): make interrupted operations safely retryable
raphaeltm Nov 20, 2026
860718d
feat(selfhost): fence celld egress and downscope metadata tokens (L23…
simple-agent-manager[bot] Nov 20, 2026
d7f0e51
fix(deps): align compose-go minimum and verify memory compatibility
raphaeltm Nov 20, 2026
9b7c4d3
fix(deps): bump anthropics/claude-code-action from 1.0.277 to 1.0.278
dependabot[bot] Nov 20, 2026
73d673f
Merge main and validate combined self-host operations
raphaeltm Nov 20, 2026
cd6a497
fix(deps): bump astro from 6.4.8 to 7.4.12 (#2915)
dependabot[bot] Nov 20, 2026
ae27896
fix(deps): bump library/docker from `7bf70dc` to `4bbc722` in /apps/api
dependabot[bot] Nov 20, 2026
638edc8
fix(deps): bump caddy in /deploy/selfhost/caddy
dependabot[bot] Nov 20, 2026
a0850b6
fix(deps): bump library/node in /deploy/selfhost/metadata-proxy
dependabot[bot] Nov 20, 2026
365d6bb
fix(deps): bump alpine in /deploy/selfhost/egress-fence
dependabot[bot] Nov 20, 2026
a2a45b8
fix(selfhost): print the restored target health URL
raphaeltm Nov 20, 2026
b9d6ce9
fix(deps): bump google-auth-library in /deploy/selfhost/metadata-proxy
dependabot[bot] Nov 20, 2026
6dc6537
fix(deps): bump wrangler from 4.149.0 to 4.163.0
dependabot[bot] Nov 20, 2026
611eb57
fix(deps): align self-host Go compiler contract
raphaeltm Nov 20, 2026
2895321
fix(selfhost): persist IAM grant ownership before cloud mutation
raphaeltm Nov 20, 2026
7dd027f
fix(auth): turn signup approval on by default (#2919)
simple-agent-manager[bot] Nov 20, 2026
5bbbe61
Merge remote-tracking branch 'origin/main' into sam/self-host-landing…
raphaeltm Nov 20, 2026
1f1b194
fix(deps): preserve API source map upload behavior
raphaeltm Nov 20, 2026
53ca778
test(selfhost): handle restore overloads in scanner controls
raphaeltm Nov 20, 2026
6039697
fix(deps): handle source map setting in self-host config
raphaeltm Nov 20, 2026
1f5515e
fix(overview): accurate Running now; tighter Budgets and rail (#2921)
simple-agent-manager[bot] Nov 20, 2026
c8f84a8
feat: add self-host-only SAM-hosted git (#2907)
simple-agent-manager[bot] Nov 20, 2026
45f783b
Merge remote-tracking branch 'origin/main' into sam/self-host-landing…
raphaeltm Nov 20, 2026
afd19c8
Merge remote-tracking branch 'origin/main' into sam/self-host-landing…
raphaeltm Nov 20, 2026
7905b0e
Merge main after hosted-git landing
raphaeltm Nov 20, 2026
0755f69
fix(selfhost): resume interrupted rollback state swaps
raphaeltm Nov 20, 2026
ef46680
Merge pull request #2912 from raphaeltm/dependabot/npm_and_yarn/wrang…
simple-agent-manager[bot] Nov 20, 2026
b23b995
Merge remote-tracking branch 'origin/main' into sam/self-host-landing…
raphaeltm Nov 20, 2026
d436de5
fix(selfhost): reserve independent clone identities and protect proje…
raphaeltm Nov 20, 2026
be24db7
fix(selfhost): commit healthy upgrade and recovery before cleanup
raphaeltm Nov 20, 2026
614f326
chore(deps): reconcile isomorphic-git update with current main
raphaeltm Nov 20, 2026
4a40c52
Merge pull request #2918 from raphaeltm/sam/self-host-landing-slice-n…
simple-agent-manager[bot] Nov 20, 2026
bb2b9cb
Merge pull request #2913 from raphaeltm/dependabot/npm_and_yarn/isomo…
simple-agent-manager[bot] Nov 20, 2026
8266db1
fix(deps): bump jose from 6.2.3 to 6.2.17
dependabot[bot] Nov 20, 2026
a92f37f
docs(agents): subscribe to PR review/comment events on every PR (#2920)
simple-agent-manager[bot] Nov 20, 2026
94f6274
Merge pull request #2922 from raphaeltm/dependabot/github_actions/ant…
simple-agent-manager[bot] Nov 20, 2026
c315d4d
Merge main into Docker builder dependency update
raphaeltm Nov 20, 2026
6d653c4
docs(deps): record Docker builder image toolchain versions
raphaeltm Nov 20, 2026
a7ed718
Merge pull request #2914 from raphaeltm/dependabot/npm_and_yarn/jose-…
simple-agent-manager[bot] Nov 20, 2026
791721f
Merge pull request #2925 from raphaeltm/dependabot/docker/apps/api/li…
simple-agent-manager[bot] Nov 20, 2026
a6791eb
feat(selfhost): adopt pre-L24 legacy compose installs before upgradin…
simple-agent-manager[bot] Nov 20, 2026
0b7412c
Merge remote-tracking branch 'origin/main' into dependabot/docker/dep…
raphaeltm Nov 20, 2026
4860453
Merge pull request #2926 from raphaeltm/dependabot/docker/deploy/self…
simple-agent-manager[bot] Nov 20, 2026
51a2bd1
fix(selfhost): restore keeps the egress fence rules readable (#2934)
simple-agent-manager[bot] Nov 20, 2026
8e81f93
test(api): make fake SMTP server silent mode truly silent (#2936)
simple-agent-manager[bot] Nov 20, 2026
2e38a3b
Merge remote-tracking branch 'origin/main' into deps2927-completion
raphaeltm Nov 20, 2026
3213faf
fix(deps): keep metadata proxy on maintained Node 22 patch
raphaeltm Nov 20, 2026
3ff7d1a
Merge pull request #2927 from raphaeltm/dependabot/docker/deploy/self…
simple-agent-manager[bot] Nov 20, 2026
ac92b64
fix(automation): stop flagging agents' own wake-ups as failing (#2935)
simple-agent-manager[bot] Nov 20, 2026
4a2b3c1
Merge remote-tracking branch 'origin/main' into deps2928-completion
raphaeltm Nov 20, 2026
9c68f91
fix(deps): pair Alpine 3.24 with its pinned nftables package
raphaeltm Nov 20, 2026
e3b6805
fix(deps): align adoption helper with the fence base contract
raphaeltm Nov 20, 2026
c0637eb
fix(selfhost): tolerate auto-removed adoption helpers during rollback
raphaeltm Nov 20, 2026
498fe3c
fix(selfhost): wait for concurrent adoption helper removal
raphaeltm Nov 20, 2026
346a7c2
fix(incidents): restart triage dispatch; readable, self-closing incid…
simple-agent-manager[bot] Nov 20, 2026
9a5decc
Merge pull request #2928 from raphaeltm/dependabot/docker/deploy/self…
simple-agent-manager[bot] Nov 20, 2026
cc91b40
fix(deps): bump library/node in /deploy/selfhost/egress-fence
dependabot[bot] Nov 20, 2026
c08dd7b
fix(deps): retain maintained Node 22 patch for Corepack fence lab
raphaeltm Nov 20, 2026
968d70e
Merge main into compose-go dependency completion
raphaeltm Nov 20, 2026
45f7c80
fix(web): keep glass pane rim and frost fixed while content scrolls (…
simple-agent-manager[bot] Nov 20, 2026
e344c14
Merge pull request #2929 from raphaeltm/dependabot/docker/deploy/self…
simple-agent-manager[bot] Nov 20, 2026
cd4dd9c
Merge remote-tracking branch 'origin/main' into deps2931-completion
raphaeltm Nov 20, 2026
d5a3424
fix(deps): update metadata proxy auth within compatible 10.x family
raphaeltm Nov 20, 2026
1a342b5
perf(project-data): coalesce idle-cleanup extension on chat ingest (#…
simple-agent-manager[bot] Nov 20, 2026
2180f93
test(selfhost): await fence loss log delivery
raphaeltm Nov 20, 2026
77572b6
Self-host: sealed Worker secrets on by default (F9 socket channel, F1…
simple-agent-manager[bot] Nov 20, 2026
b5bcfdb
Merge pull request #2911 from raphaeltm/dependabot/go_modules/package…
simple-agent-manager[bot] Nov 20, 2026
372362b
Merge pull request #2931 from raphaeltm/dependabot/npm_and_yarn/deplo…
simple-agent-manager[bot] Nov 20, 2026
3af18ec
feat(web): one-row inbox header with ? help note (#2942)
simple-agent-manager[bot] Nov 20, 2026
8f60312
feat(inbox): deliver replies to agents and return their responses (#2…
simple-agent-manager[bot] Nov 20, 2026
500223f
fix(api): retire never-requested node rows; honour cleanup failure ba…
simple-agent-manager[bot] Nov 20, 2026
bdd1e2b
docs(www): journal post on the glass outline that scrolled away (#2951)
simple-agent-manager[bot] Nov 20, 2026
3821653
feat(web): reply to inbox items with the chat composer (#2953)
simple-agent-manager[bot] Nov 20, 2026
2056ae7
fix(deps): bump @hono/valibot-validator from 0.6.1 to 0.6.2 (#2944)
dependabot[bot] Nov 20, 2026
34c2125
fix(deps): bump actions/setup-go from 7.0.0 to 7.1.0 (#2945)
dependabot[bot] Nov 20, 2026
842f2b8
Open Library references in a preview over the current screen (#2941)
simple-agent-manager[bot] Nov 20, 2026
35fd2e0
fix(deps): bump mermaid from 11.14.0 to 12.3.0 (#2946)
dependabot[bot] Nov 20, 2026
5d3310a
fix(deps-dev): bump esbuild from 0.28.1 to 0.28.2 (#2949)
dependabot[bot] Nov 20, 2026
1f71319
fix(deps): bump typescript-eslint from 8.72.0 to 8.73.0 (#2947)
dependabot[bot] Nov 20, 2026
1d9fe1e
feat(incidents): watching disposition, spike escalation, quiet expiry…
simple-agent-manager[bot] Nov 20, 2026
b1ebe03
Self-host: platform-key rotation for sealed boxes (selfhost:secrets r…
simple-agent-manager[bot] Nov 20, 2026
2d2ec53
Merge main 917077fef (L22a/b/c) into self-host integration (M6 step 1)
raphaeltm Nov 20, 2026
4abfff3
Merge main 860718dc3 (L23) into self-host integration (M6 step 2)
raphaeltm Nov 20, 2026
67cb93d
Merge main c8f84a8e5 (H2) into self-host integration (M6 step 3)
raphaeltm Nov 20, 2026
efb4cdc
Merge main 51a2bd14d (L24 + #2932 + #2934) into self-host integration…
raphaeltm Nov 20, 2026
cf52d4d
Merge main 77572b69e (sealed secrets) into self-host integration (M6 …
raphaeltm Nov 20, 2026
9d11f20
Merge main b1ebe0314 (key rotation, main tip) into self-host integrat…
raphaeltm Nov 20, 2026
0ddb006
fix(selfhost): post-M6 wiring after the six staged merges
raphaeltm Nov 20, 2026
77593bc
fix(selfhost): M6 review fixes (dependabot, baselines, uid collision,…
raphaeltm Nov 20, 2026
ae2db51
test(selfhost): restore adopt-check and teardown-gcp-constants tests
raphaeltm Nov 20, 2026
6aacfcc
fix(selfhost): main wins on providerless GCP teardown; drop supersede…
raphaeltm Nov 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 12 additions & 0 deletions .agents/skills/do/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ description: 'End-to-end autonomous task executor. Takes a task description and

Read the full workflow from `.claude/commands/do.md` and execute it. Use `.claude/rules/00-rule-routing.md` and the nearest `AGENTS.md` to find the rules for the changed paths, and read them before editing.

For CI waits, default to `check_suite.completed` + `workflow_run.completed` for the
full 40-character PR head SHA. Opt in to `check_run.completed` only for early
per-job failure or job-specific progress. Reconcile all current GitHub checks on
every resume; one suite/workflow completion includes failures and is not all-CI
success. Subscriptions stay active after delivery: while required checks are
pending on the same SHA, retain the existing subscription and fallback and end
your turn again; do not recreate them on each wake. Keep one bounded fallback schedule for missing terminal webhooks; follow
`docs/guides/ci-wait-recovery.md` for registration, reconciliation and cleanup.
When you open the PR, also subscribe to `source: github`, `subjectType: pull_request`,
`subjectId: <PR number>` (no eventType) so Codex, CodeRabbit and human reviews/comments
wake you; address or reply to every finding before merge.

## Quick Summary

1. **Research** — understand the request, search the codebase, read related docs
Expand Down
9 changes: 9 additions & 0 deletions .agents/skills/workflow/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ description: 'Orchestrate multi-step workflows by decomposing and dispatching su

Read the full workflow from `.claude/commands/workflow.md` and execute it.

For CI waits, default to `check_suite.completed` + `workflow_run.completed` for the
full 40-character PR head SHA. Opt in to `check_run.completed` only for early
per-job failure or job-specific progress. Reconcile all current GitHub checks on
every resume; one suite/workflow completion includes failures and is not all-CI
success. Subscriptions stay active after delivery: while required checks are
pending on the same SHA, retain the existing subscription and fallback and end
your turn again; do not recreate them on each wake. Keep one bounded fallback schedule for missing terminal webhooks; follow
`docs/guides/ci-wait-recovery.md` for registration, reconciliation and cleanup.

## Quick Summary

1. **Decompose** — break the user's request into discrete subtasks with dependencies
Expand Down
16 changes: 15 additions & 1 deletion .claude/commands/do.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@ You are an autonomous task executor. The user has described a task above. Your j

---

For CI waits, default to `check_suite.completed` + `workflow_run.completed` for the
full 40-character PR head SHA. Opt in to `check_run.completed` only for early
per-job failure or job-specific progress. Reconcile all current GitHub checks on
every resume; one suite/workflow completion includes failures and is not all-CI
success. Subscriptions stay active after delivery: while required checks are
pending on the same SHA, retain the existing subscription and fallback and end
your turn again; do not recreate them on each wake. Keep one bounded fallback schedule for missing terminal webhooks; follow
`docs/guides/ci-wait-recovery.md` for registration, reconciliation and cleanup.
When you open the PR, also subscribe to `source: github`, `subjectType: pull_request`,
`subjectId: <PR number>` (no eventType) so Codex, CodeRabbit and human reviews/comments
wake you; address or reply to every finding before merge.

## Phase 0: Initialize Workflow Tracker (MANDATORY FIRST STEP)

**Before doing ANYTHING else**, create a TodoWrite with all phases of this workflow. This todo list survives context compaction and ensures no phase is skipped even if the conversation is continued in a new session.
Expand Down Expand Up @@ -118,6 +130,8 @@ Execute the checklist from the task file. Follow these rules:
gh pr create --draft --title "<short title>" --body-file <filled-in .github/pull_request_template.md>
```

Then subscribe to the PR's review and comment events (see the top of this file).

CI on a draft PR runs only the quick checks: Detect Changes, PR Evidence, Lint, Build and Type Check, Code Quality Checks and Secret Scan. The test suites, browser audits, deploy-script, VM, CLI and Workers jobs start only when the PR is marked ready (Phase 4, step 5), and the required `Durable Object Workers` check is not reported for a draft run, so a draft can never be merged on quick checks. Push as often as you like while it is a draft. PR Evidence is expected to fail until the Specialist Review Evidence table is filled in; after the final body edit, re-run it with `gh run rerun <run-id> --failed` (body edits alone do not start CI, and the check reads the live body).

4. **Run quality checks regularly** during implementation:
Expand Down Expand Up @@ -385,7 +399,7 @@ The PR is open as a draft from Phase 3 and ready from Phase 4, so CI and CodeRab

Agents MUST NOT post `@coderabbitai review` directly with their own GitHub App token; CodeRabbit ignores bot-authored review commands. The workflow is the human-identity bridge.

5. **Wait about 15 minutes from the request for CodeRabbit, then follow whichever case applies.** The wait ends at once when CodeRabbit replies with a rate-limit, quota or `Review skipped` notice, or the request workflow fails. If you have nothing else to do while waiting, you may subscribe to the PR's review and comment events (`create_project_event_subscription`, source `github`, subjectType `pull_request`, subjectId = the PR number; `requestedDelivery` defaults to `runtime_steer`) and end your turn instead of sleeping in a loop; only PR comment wakes of a live chat are verified so far, so still check the PR once when the wait ends and say if eventing did not wake you. If CodeRabbit has visibly started a review that is still in progress, let it finish, up to about 45 minutes in total. A CodeRabbit review is not required; requesting one and waiting is. See `.claude/rules/25-review-merge-gate.md`.
5. **Wait about 15 minutes from the request for CodeRabbit, then follow whichever case applies.** The wait ends at once when CodeRabbit replies with a rate-limit, quota or `Review skipped` notice, or the request workflow fails. If you have nothing else to do while waiting, end your turn on the PR subscription from Phase 3 instead of sleeping in a loop (it expires after the MCP token lifetime, about 8 hours: list your subscriptions with `state: "any"` first; if it has expired, create a replacement with a new `idempotencyKey`, because the original key returns the expired record). Before ending the turn, make sure your single bounded fallback schedule is due at or after this wait's deadline: extend the existing one, or create one if none is active, and confirm it was accepted; only PR comment wakes of a live chat are verified so far, so still check the PR once when the wait ends and say if eventing did not wake you. If CodeRabbit has visibly started a review that is still in progress, let it finish, up to about 45 minutes in total. A CodeRabbit review is not required; requesting one and waiting is. See `.claude/rules/25-review-merge-gate.md`.
- **A review arrived: it blocks merge until its feedback is resolved.** Read every CodeRabbit review comment, thread, and summary. Implement valid feedback, push fixes, and re-run the affected validation/CI checks. For feedback you believe is not applicable, explicitly review it, document the reason, and resolve the thread. Keep the `coderabbit-review` label on the PR so pushed fixes get incremental reviews, and give each one the same wait. You are done when no CodeRabbit feedback is unresolved and you independently agree the PR is ready. CodeRabbit not re-reviewing your fixes within the wait does not block.
- **No review arrived: skip CodeRabbit and continue.** This covers silence after the wait, a `Review skipped` status (for example `bot user not eligible for review`), a rate-limit or quota notice, and a failed request workflow. Record what you observed in the PR's "CodeRabbit Review Evidence" section. **Do NOT add `needs-human-review`, call `request_human_input`, or wait for a waiver because CodeRabbit is silent.**

Expand Down
11 changes: 11 additions & 0 deletions .claude/commands/workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,3 +230,14 @@ Dispatch sequence:
- **DO NOT** poll less frequently than every 600 seconds in compatibility mode
- **DO NOT** skip writing to `.workflow-state.md` (you WILL lose context)
- **DO NOT** merge PRs under time pressure without all quality gates

## CI waits

For CI waits, default to `check_suite.completed` + `workflow_run.completed` for the
full 40-character PR head SHA. Opt in to `check_run.completed` only for early
per-job failure or job-specific progress. Reconcile all current GitHub checks on
every resume; one suite/workflow completion includes failures and is not all-CI
success. Subscriptions stay active after delivery: while required checks are
pending on the same SHA, retain the existing subscription and fallback and end
your turn again; do not recreate them on each wake. Keep one bounded fallback schedule for missing terminal webhooks; follow
`docs/guides/ci-wait-recovery.md` for registration, reconciliation and cleanup.
4 changes: 4 additions & 0 deletions .claude/rules/06-api-patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ app.use('*', async (c, next) => {

Throw `AppError` (from `@simple-agent-manager/worker-core`, re-exported by `middleware/error.ts`) in route handlers — the global `app.onError()` handler catches them.

Expected domain rejections from services also need the `AppError` contract. Preserve
exception names used by recovery callers, and test the real route with the production
`handleAppError` handler plus an unrelated-error control when changing classification.

## Hono Middleware Scoping (CRITICAL)

**NEVER use wildcard `use('/*', ...)` middleware on subrouters that share a base path with other subrouters using different auth models.** Hono's `app.route('/', subRouter)` merges routes — wildcard middleware from one subrouter leaks to ALL sibling subrouters mounted at the same path.
Expand Down
12 changes: 7 additions & 5 deletions .claude/rules/09-task-tracking.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ When a task asks you to review a previous session or recover context from recent

### Why This Matters

Without the `/do` instruction, a dispatched agent may skip critical phases like staging verification, specialist review, or proper PR creation. The `/do` workflow enforces all quality gates defined in this project's rules.
Without `/do`, a dispatched agent may skip staging verification, specialist review, or proper PR creation.

## Integration with Other Systems

Expand All @@ -162,7 +162,9 @@ Without the `/do` instruction, a dispatched agent may skip critical phases like

## CI Wait Recovery

For CI subscriptions and PR shepherd owner reconciliation, follow
[CI wait recovery](../../docs/guides/ci-wait-recovery.md): exact completion event
names, full head SHAs, current checks before/after waits, and one independent
fallback. Expiry or a stale continuation is not evidence of a future wake.
CI: `check_suite.completed` + `workflow_run.completed` on full SHA; opt in to
`check_run.completed` for early per-job failure. Follow
[CI wait recovery](../../docs/guides/ci-wait-recovery.md): reconcile GitHub on
resume; keep the subscription/fallback while checks pend. Expiry is no wake.
On opening a PR, subscribe to `subjectType: pull_request`, `subjectId: <PR #>` so
Codex/CodeRabbit reviews and comments reach you; answer each finding.
6 changes: 6 additions & 0 deletions .claude/rules/47-control-loop-io-budget.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,12 @@ until the budget refreshes and must not silently drop the candidate.
`NodeLifecycleWorkspaceDeletionQueue.schedule`, passed by `sweepStaleStoppedWorkspaces`.
Test it through the real cron after real failed attempts, and assert the entry is
unchanged (`tests/workers/scheduled-node-cleanup.test.ts`).
The same holds inside one owner: a refusal re-check cadence must not replace a failed
attempt's backoff. Incident (2026-11-20): `handleCleanupFailure` logged a one-hour
backoff, then its own refusal diagnosis rewrote it to five minutes, so two production
nodes failed every 5-10 minutes for five days (436 of 700 sampled API errors). Fix:
`failureRetryAt` in `scheduled/node-cleanup/cleanup-outcome.ts`; two-sweep test in
`tests/unit/services/node-cleanup-never-requested-placeholder.test.ts`.

## Required Tests

Expand Down
2 changes: 1 addition & 1 deletion .claude/rules/54-vm-agent-rollout-compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Required pattern:
2. Build matching binaries reproducibly and upload them under immutable, commit-addressed release keys before deploying Worker code that requires that version. A same-commit retry must reuse byte-identical objects and fail on a digest mismatch. Initialize missing legacy VM-agent keys for fresh installations, but never overwrite existing legacy bytes.
3. Generate `VM_AGENT_REQUIRED_VERSION` from the VM-agent release; do not hardcode rollout-specific SHAs or ask operators to maintain a manual required version. The resolver fails closed on a shallow clone, an unresolvable release, or a non-SHA result: an empty required version disables rollout gating entirely (`isNodeAgentVersionCompatible` returns true when it is unset), so a silent fallback is worse than a failed deploy. The deploy checkout therefore needs `fetch-depth: 0`.
3a. **Forcing a fleet rotation now requires an actual agent change.** Under deploy-commit keying every deploy rotated the fleet by accident; it no longer does. To retire every running agent deliberately, land a change that affects a VM-agent release input (or use the existing cleanup paths) rather than assuming a redeploy will do it.
3b. **Identical agent content must rebuild byte-identically.** `VERSION` and `BUILD_DATE` both come from the release commit, because `BUILD_DATE` is baked in through ldflags and `publish-vm-agent-artifacts.sh` refuses to overwrite an immutable release key whose bytes differ. That refusal used to be unreachable (every deploy had a unique key) and is now exercised on any deploy that resolves to an already-published release, so build non-determinism surfaces as `Refusing to overwrite immutable VM-agent artifact` and blocks an otherwise unrelated deploy. That is the correct fail-closed behaviour: never serve different bytes under one version identity; do not relax the check. The Go toolchain is pinned in `packages/vm-agent/go.mod` (`toolchain go1.26.11`), which is inside the release path, so a genuine toolchain bump rotates the release as it should — but the same version is duplicated in the workflow's `GO_VERSION` and in the hardcoded `Assert Go version` grep. Move all three together. A change to the runner image or to any build input that is NOT under `packages/vm-agent` and NOT reflected in `go.mod` is the case that trips this; the remedy is to make that input visible to the release, not to loosen the key.
3b. **Identical agent content must rebuild byte-identically.** `VERSION` and `BUILD_DATE` both come from the release commit, because `BUILD_DATE` is baked in through ldflags and `publish-vm-agent-artifacts.sh` refuses to overwrite an immutable release key whose bytes differ. That refusal used to be unreachable (every deploy had a unique key) and is now exercised on any deploy that resolves to an already-published release, so build non-determinism surfaces as `Refusing to overwrite immutable VM-agent artifact` and blocks an otherwise unrelated deploy. That is the correct fail-closed behaviour: never serve different bytes under one version identity; do not relax the check. The minimum Go version is recorded in `packages/vm-agent/go.mod` (`go 1.26.11`), which is inside the release path; the matching redundant `toolchain` directive is omitted. CI and release workflows select and assert Go 1.26.11 through `GO_VERSION` and the `Assert Go version` grep. Keep the module minimum, any newer selected toolchain directive, workflow compiler pin and version assertion coordinated so a genuine toolchain bump rotates the release identity. A change to the runner image or to any build input that is NOT under `packages/vm-agent` and NOT reflected in `go.mod` is the case that trips this; the remedy is to make that input visible to the release, not to loosen the key.
3c. `sysinfo.BuildDate` is now the release commit's date, not the wall-clock time the binary was compiled. It is display/diagnostics only (`incident_collectors.go`, `routes/agent.ts`, `routes/cli.ts`); do not introduce staleness or expiry logic that reads it.
4. If a deployment intentionally skips agent artifacts (`skip_agent`), leave the required version unset and use the retained unversioned legacy object. Use this only for Worker changes that remain compatible with the previously published VM agent.
5. VM-agent `/ready` and heartbeat callbacks must report the build identity additively so old agents remain protocol-compatible.
Expand Down
2 changes: 2 additions & 0 deletions .claude/rules/75-external-api-check-then-act.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ Tells:
(`packages/repo-hosting/src/github-app-branches.ts`) already solved this class against the GitHub API,
treating a `422` on create as `status: 'exists'`. Match the existing shape.

- A setup conflict must read and validate the existing resource's installation identity before updating it. For OIDC providers, refuse a different issuer; never repoint another installation's trust after an HTTP 409. Test two installations sharing one cloud project and provider name, alongside a same-installation retry.

## Required Tests

- **The race, per tolerated code:** lookup returns empty, create returns the conflict,
Expand Down
Loading
Loading