Skip to content

fix(gateway): make hot reload transactional - #105289

Merged
steipete merged 7 commits into
mainfrom
codex/103736-hotreload-transaction
Jul 13, 2026
Merged

steipete merged 7 commits into
mainfrom
codex/103736-hotreload-transaction

Conversation

@steipete

@steipete steipete commented Jul 12, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Hot reload could expose a mixed gateway generation when channel reload was deferred: config and secret state could advance while channel/runtime subsystems still represented the prior generation. Shutdown could also race an in-flight reload transaction.

Fixes #103736. Replaces #103880 because GitHub rejected maintainer writes to its fork branch and the repo-native GraphQL fallback cannot safely publish the 4,551-file rebase delta.

Why This Change Was Made

The gateway now stages reload work as one transaction, publishes config, secrets, auth snapshots, and subsystem state at the activation edge, and drains admitted reload work before teardown. The replacement commit preserves the reviewed tree from #103880, rebased onto current main, with contributor credit for @LZY3538.

User Impact

Vercel and other long-lived gateway hosts can reload configuration without observing partially advanced runtime state. Failed or cancelled reloads retain the prior coherent generation, while shutdown waits for admitted reload work to finish.

Evidence

  • Final head: e24aa321267bbc7653926493f5ac406aca97e57c. Relative to the fully proved code head 9174b447372f5426df85e7d24d016808df3ee2a7, it removes the release-owned root changelog entry and fixes the CI-revealed restart-emission self-count.
  • Blacksmith Testbox tbx_01kxccrq7t981qv7te8c163ydk: focused reload, restart, auth DB, config, secrets, and gateway surface, 748/748 tests passed.
  • Same Testbox: path-scoped pnpm check:changed passed in 11m31s, including formatting, conflict scan, changelog attribution, SDK baseline, core and test typechecks, core and script lint, database/storage guards, and runtime import-cycle checks.
  • Same Testbox: pnpm plugin-sdk:surface:check passed with zero forbidden package-exported subpaths.
  • Blacksmith Testbox tbx_01kxcfmf82307j1hay6m1fr2a5: the two failed CI files plus restart/infra invariants passed 81/81; a two-file pnpm check:changed passed in 3m16s; fresh autoreview reported no actionable findings.
  • Fresh autoreview --mode uncommitted passed with no accepted or actionable findings after whole-function review.
  • git diff --check passed.

Agent transcript omitted because publication was not approved.

Replace partial reload side effects with a deferred transaction that publishes config, secrets, auth, and subsystem state together, and drains in-flight reload work before shutdown.

Co-authored-by: LZY3538 <[email protected]>
@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime cli CLI command changes agents Agent runtime and tooling size: XL maintainer Maintainer-authored PR labels Jul 12, 2026
Keep derived runtime snapshots in place for main-store state mutations so order refreshes do not look like credential replacement.
@steipete
steipete marked this pull request as ready for review July 12, 2026 10:39
@steipete
steipete requested a review from a team as a code owner July 12, 2026 10:39
@steipete
steipete marked this pull request as draft July 12, 2026 10:45
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. labels Jul 12, 2026
@clawsweeper

clawsweeper Bot commented Jul 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 12, 2026, 9:12 PM ET / July 13, 2026, 01:12 UTC.

Summary
The PR stages gateway reload work and atomically publishes config, runtime environment, secrets, auth snapshots, live subsystems, restart recovery, and shutdown-drain state.

PR surface: Source +5442, Tests +11827. Total +17269 across 79 files.

Reproducibility: yes. The linked issue provides a concrete current-main path that holds active work during a combined hooks, cron, and channel reload and observes new global config alongside stale live subsystem references.

Review metrics: none identified.

Stored data model
Persistent data-model change detected: migration/backfill/repair: src/agents/auth-profiles.permissions.test.ts, migration/backfill/repair: src/commands/doctor-session-sqlite.test.ts, migration/backfill/repair: src/state/openclaw-agent-db.permissions.test.ts, migration/backfill/repair: src/state/openclaw-agent-db.test.ts, serialized state: src/agents/auth-profiles/runtime-snapshots.test.ts, serialized state: src/config/io.write-config.test.ts, and 5 more. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster
Relationship: fixed_by_candidate
Canonical: #103736
Summary: The issue is the canonical bug report; this PR is its replacement candidate fix, while the earlier contributor PR is superseded by this repo-owned replacement branch but remains open.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge readiness
Overall: 🦐 gold shrimp
Proof: 🦐 gold shrimp
Patch quality: 🦞 diamond lobster
Result: blocked until stronger real behavior proof is added.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • [P1] Add redacted exact-head live proof covering commit, rollback, auth/secret coherence, and shutdown during reload.

Proof guidance:

  • [P1] Needs stronger real behavior proof before merge: The predecessor has useful live hooks/cron output, but this exact head lacks live proof for the expanded environment, secrets, auth, restart-recovery, and shutdown behavior; add redacted terminal output, logs, or a recording, then update the PR body to trigger review or ask for @clawsweeper re-review.

Risk before merge

  • [P1] The expanded activation edge changes compatibility-sensitive config, environment, SecretRef, and auth-profile publication behavior; a missed ownership or rollback path could expose mixed generations to existing long-lived gateways.
  • [P1] The transaction now owns shared auth/session generation state, so an incorrect compare-and-swap or rollback decision could disconnect valid clients or retain stale credentials.
  • [P1] Reload recovery and shutdown now interact with restart admission and root-work draining; an unproved edge could delay shutdown, suppress recovery, or leave the gateway unavailable.

Maintainer options:

  1. Prove the complete transaction before merge (recommended)
    Add redacted exact-head live output for successful activation, rollback after a forced failure, credential/session coherence, and shutdown joining an active reload.
  2. Accept the broader lifecycle risk
    A maintainer may explicitly accept the predecessor live proof and extensive exact-head automated coverage as sufficient for this replacement patch.

Next step before merge

  • [P1] The protected maintainer label and unresolved proof-sufficiency choice require human review; no narrow current-head code repair is established for automation.

Maintainer decision needed

  • Question: Does the predecessor live transcript plus current-head test coverage sufficiently prove this expanded transaction, or must this exact head show a live gateway commit, rollback, and shutdown race before merge?
  • Rationale: The patch is broad and compatibility-sensitive, but the remaining blocker is evidentiary rather than a concrete code defect; only a maintainer can explicitly accept inherited proof for the expanded lifecycle surface.
  • Likely owner: steipete — This person is assigned and carried the replacement transaction, follow-up repairs, and current-head validation context.
  • Options:
    • Require exact-head live proof (recommended): Ask for a redacted live transcript or recording covering successful atomic reload, forced rollback, auth/secret coherence, and shutdown during reload before merging.
    • Accept inherited proof: Explicitly accept the predecessor hooks/cron transcript plus current-head focused tests as sufficient for the added transaction surfaces.

Security
Cleared: The diff is security-sensitive because it changes secrets and auth publication, but no concrete security or supply-chain regression is established from the reviewed patch and validation evidence.

Review details

Best possible solution:

Merge only after an exact-head live gateway scenario demonstrates coherent success publication, failed-reload rollback, auth/secret refresh behavior, and shutdown during an admitted reload, while the focused tests and required CI remain green.

Do we have a high-confidence way to reproduce the issue?

Yes. The linked issue provides a concrete current-main path that holds active work during a combined hooks, cron, and channel reload and observes new global config alongside stale live subsystem references.

Is this the best way to solve the issue?

Yes, provisionally. A single staged activation edge with ownership-checked rollback is more maintainable than independently publishing selected subsystems early, but the expanded solution needs exact-head live proof before merge.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 4afcbea5c580.

Label changes

Label justifications:

  • P2: This is a normal-priority gateway consistency fix with meaningful but bounded impact and no established current-head emergency regression.
  • merge-risk: 🚨 compatibility: The patch changes compatibility-sensitive runtime publication and rollback behavior for config, environment, secrets, and auth state during reload.
  • merge-risk: 🚨 session-state: The transaction now claims and restores shared gateway auth/session generations, where an ownership error could stale or mis-associate connected client state.
  • merge-risk: 🚨 availability: Reload recovery, restart admission, root-work draining, and shutdown ordering could stall or disrupt a running gateway if an uncovered lifecycle edge is wrong.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦞 diamond lobster.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The predecessor has useful live hooks/cron output, but this exact head lacks live proof for the expanded environment, secrets, auth, restart-recovery, and shutdown behavior; add redacted terminal output, logs, or a recording, then update the PR body to trigger review or ask for @clawsweeper re-review.
Evidence reviewed

PR surface:

Source +5442, Tests +11827. Total +17269 across 79 files.

View PR surface stats
Area Files Added Removed Net
Source 38 6263 821 +5442
Tests 41 12973 1146 +11827
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 79 19236 1967 +17269

What I checked:

  • Current-head transaction scope: The head coordinates publication and rollback across gateway reload planning, config runtime environment, secrets snapshots, auth-profile snapshots, subsystem state, restart admission, and shutdown draining. (src/gateway/server-reload-handlers.ts:120, e24aa321267b)
  • Atomic secrets contract: The patch adds revision-checked activation and restoration so stale reload work cannot overwrite a newer secrets or auth generation. (src/secrets/runtime-state.ts:1, e24aa321267b)
  • Shutdown ordering: Gateway close now joins the config reloader before tearing down mutable plugin and channel runtime state, with focused ordering coverage. (src/gateway/server-close.ts:729, e24aa321267b)
  • Regression and static validation: The PR body reports 748 focused tests, a subsequent 81-test repair run, two path-scoped check passes, the plugin SDK surface check, diff checking, and fresh autoreview with no actionable findings. (e24aa321267b)
  • Proof coverage gap: The predecessor PR includes live output for hooks/cron coherence and rollback, but the current PR body does not provide exact-head live output demonstrating the expanded environment, secrets, auth, restart-recovery, and shutdown transaction on a running gateway. (e24aa321267b)
  • Prior findings resolved: The earlier watcher-cleanup, optional-transaction narrowing, and impossible-comparison findings are absent from the latest completed review cycle; no current-head line-level defect is established. (src/gateway/config-reload.ts:120, e24aa321267b)

Likely related people:

  • steipete: The current transaction, follow-up gap repairs, restart-emission correction, main rebase, and review coordination are carried in this PR's commit history, making this person the clearest routing owner for final lifecycle and proof review. (role: recent gateway lifecycle contributor and assignee; confidence: medium; commits: 840e1de6d629, d5f64748dbea, 9174b447372f; files: src/gateway/server-reload-handlers.ts, src/gateway/config-reload.ts, src/gateway/server.impl.ts)
  • LZY3538: The replaced pull request introduced the original coherent hooks/cron publication and rollback implementation, and the replacement explicitly preserves that reviewed work with co-author credit. (role: predecessor implementation contributor; confidence: high; commits: 840e1de6d629; files: src/gateway/server-reload-handlers.ts, src/gateway/config-reload.test.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
Review history (2 earlier review cycles)
  • reviewed 2026-07-12T10:54:38.190Z sha 5a6a854 :: needs real behavior proof before merge. :: [P1] Return only a cleanup callback from the watcher factory | [P1] Narrow the optional transaction before rollback callbacks | [P1] Remove the impossible false comparison
  • reviewed 2026-07-13T00:55:46.795Z sha 83e4fdf :: needs real behavior proof before merge. :: none

@steipete steipete self-assigned this Jul 12, 2026
steipete added 3 commits July 12, 2026 20:03
…d-transaction

# Conflicts:
#	CHANGELOG.md
#	docs/.generated/plugin-sdk-api-baseline.sha256
#	src/commands/doctor-session-sqlite.test.ts
#	src/gateway/server-reload-handlers.test.ts
#	src/gateway/server-reload-handlers.ts
#	src/gateway/server.impl.ts
@openclaw-barnacle openclaw-barnacle Bot added the commands Command implementations label Jul 13, 2026
@steipete
steipete marked this pull request as ready for review July 13, 2026 00:45
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Jul 13, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

Land-ready proof for e24aa321267bbc7653926493f5ac406aca97e57c:

  • Exact-head CI: run 29216774927 completed green.
  • Exact-head CodeQL: run 29216774911 green; critical-quality run 29216774908 green.
  • Exact-head behavior proof: run 29216796965 green. OpenGrep, dependency guard, security-sensitive guard, and workflow sanity green.
  • Blacksmith Testbox tbx_01kxccrq7t981qv7te8c163ydk on code head 9174b447372f5426df85e7d24d016808df3ee2a7: 748 focused reload/restart/auth/config/secrets/gateway tests passed.
  • Same Testbox: path-scoped pnpm check:changed passed in 11m31s; pnpm plugin-sdk:surface:check passed with zero forbidden package-exported subpaths.
  • CI exposed a restart-emission self-count in the previous head. Blacksmith Testbox tbx_01kxcfmf82307j1hay6m1fr2a5 then passed the two failed CI files plus restart/infra invariants, 81/81, followed by a 3m16s two-file pnpm check:changed and clean autoreview.
  • Fresh autoreview: no accepted or actionable findings. Repo-native review artifacts validate as READY FOR /prepare-pr, 0 findings.

Known proof gap: Vercel production rollout and host-side integration remain outside this OpenClaw PR. No new config, protocol, docs, or public plugin SDK surface.

@steipete
steipete merged commit 3616fba into main Jul 13, 2026
115 checks passed
@steipete
steipete deleted the codex/103736-hotreload-transaction branch July 13, 2026 01:16
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 13, 2026
* fix(gateway): make hot reload transactional

Replace partial reload side effects with a deferred transaction that publishes config, secrets, auth, and subsystem state together, and drains in-flight reload work before shutdown.

Co-authored-by: LZY3538 <[email protected]>

* fix(auth): preserve state-only credential ownership

Keep derived runtime snapshots in place for main-store state mutations so order refreshes do not look like credential replacement.

* fix(gateway): close reload transaction gaps

* fix(gateway): close merged reload gaps

* chore: move reload note to PR context

* fix(gateway): exclude restart emission root

---------

Co-authored-by: LZY3538 <[email protected]>
steipete added a commit that referenced this pull request Oct 13, 2026
Share existing config-path and retired-media traversal owners. Remove speculative
rollback, retry, reentry, and diagnostic freshness machinery while preserving
security effect checks, ordinary cleanup settlement, resource bounds, and public
config, CLI, protocol, and persisted-data shapes. Phase E is untouched.

Production delta: 335 net lines removed (+97/-432) across 16 old files.
Focused proof: 311 tests in 25 files; final embedding/shutdown proof: 91 tests
in 4 files. Independent scoped review found no actionable P0-P2 findings.
Published as a branch only under the campaign's below-500 rule, not a PR.

Best-effort tradeoffs accepted

- Overlapping failed env publications may require reload/restart instead of ordered compensation; #105289/#103736 document synthetic harness proof, not a human actual-use report.
- Failed in-process restart preparation/emission requires explicit config reapply or manual restart; #105289/#160375 describe synthetic timing, not a transient transport failure.
- A mount changed during sampling may briefly be attributed to its parent filesystem until the next snapshot; #149792 uses forced mount fixtures, without a human incident.
- CLI provider cleanup is attempted once; #113471's blocked-close fixtures do not establish a transient failed-close incident, and the CLI exits on cleanup failure.
- Requested-head CI details are a snapshot until refresh; #148464's synthetic push/rerun interleavings do not justify rereading the head and check inventory after fetching jobs.
- A malformed catalog resolver may repeat rejection until the existing 16-fallback bound instead of an earlier identity bailout; #92175/#89456 are synthetic trust-harness work, and every trust check remains.
- Model normalizers must not reenter the same resolver; #156076's callback reentry is synthetic. Measured lookup caches and ordinary callback errors/order remain.
- Offline plugin-state imports assume no unsupported same-destination writer after capacity preflight; #109679's ordinary near-capacity import remains fixed, while concurrent eviction compensation came from synthetic sibling seeding.
- A delayed update verification reply may repeat a terminal broadcast or briefly show old status; #160592 supplies synthetic ordering proof, while durable effect idempotency, FIFO, repair authority, and shutdown joining remain.
- A malformed reply from the fixed inline CA worker may fail instead of using a dedicated invalid-result fallback; #112338/#112336 do not report a human malformed-message incident. Timeout/error/exit handling remains.
- Failed Gateway embedding cleanup blocks only its agent/provider scope until restart instead of retaining provider objects and retrying close; #113471 documents synthetic blocked-close proof, not a human failed-close incident. Local FIFO cleanup, remote concurrency, abort handling, authority, and normal shutdown settlement remain.
steipete added a commit that referenced this pull request Oct 13, 2026
…#170826)

* refactor: simplify older agent and channel execution paths

Consolidate duplicate payload and metadata projections under their existing owners. Simplify internal bookkeeping and bounded cache invalidation while retaining public SDK contracts, security-effect authority, ordinary concurrency, and durable user state.

* refactor: retain branch cache pending complete old-code cutover

Withdraw the branch-cache cluster because completing its unused-export cleanup requires an infra owner touched this week. Preserve the original cache, regression assertions, and docs. The remaining old-code lane removes 424 net production lines and is branch-only under the campaign BELOW-500 rule.

* refactor: simplify old gateway, config, and CLI bookkeeping

Share existing config-path and retired-media traversal owners. Remove speculative
rollback, retry, reentry, and diagnostic freshness machinery while preserving
security effect checks, ordinary cleanup settlement, resource bounds, and public
config, CLI, protocol, and persisted-data shapes. Phase E is untouched.

Production delta: 335 net lines removed (+97/-432) across 16 old files.
Focused proof: 311 tests in 25 files; final embedding/shutdown proof: 91 tests
in 4 files. Independent scoped review found no actionable P0-P2 findings.
Published as a branch only under the campaign's below-500 rule, not a PR.

Best-effort tradeoffs accepted

- Overlapping failed env publications may require reload/restart instead of ordered compensation; #105289/#103736 document synthetic harness proof, not a human actual-use report.
- Failed in-process restart preparation/emission requires explicit config reapply or manual restart; #105289/#160375 describe synthetic timing, not a transient transport failure.
- A mount changed during sampling may briefly be attributed to its parent filesystem until the next snapshot; #149792 uses forced mount fixtures, without a human incident.
- CLI provider cleanup is attempted once; #113471's blocked-close fixtures do not establish a transient failed-close incident, and the CLI exits on cleanup failure.
- Requested-head CI details are a snapshot until refresh; #148464's synthetic push/rerun interleavings do not justify rereading the head and check inventory after fetching jobs.
- A malformed catalog resolver may repeat rejection until the existing 16-fallback bound instead of an earlier identity bailout; #92175/#89456 are synthetic trust-harness work, and every trust check remains.
- Model normalizers must not reenter the same resolver; #156076's callback reentry is synthetic. Measured lookup caches and ordinary callback errors/order remain.
- Offline plugin-state imports assume no unsupported same-destination writer after capacity preflight; #109679's ordinary near-capacity import remains fixed, while concurrent eviction compensation came from synthetic sibling seeding.
- A delayed update verification reply may repeat a terminal broadcast or briefly show old status; #160592 supplies synthetic ordering proof, while durable effect idempotency, FIFO, repair authority, and shutdown joining remain.
- A malformed reply from the fixed inline CA worker may fail instead of using a dedicated invalid-result fallback; #112338/#112336 do not report a human malformed-message incident. Timeout/error/exit handling remains.
- Failed Gateway embedding cleanup blocks only its agent/provider scope until restart instead of retaining provider objects and retrying close; #113471 documents synthetic blocked-close proof, not a human failed-close incident. Local FIFO cleanup, remote concurrency, abort handling, authority, and normal shutdown settlement remain.

* refactor: defer pricing cache cleanup touched on main

Withdraw the usage-format production and paired test changes after main landed afc559c, keeping the hard seven-day old-code exclusion. Both files match the pre-campaign base, so main retains its interrupted-stream usage repair. The remaining reviewed o05/o06 union removes 713 net production lines across 42 files.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 14, 2026
…openclaw#170826)

* refactor: simplify older agent and channel execution paths

Consolidate duplicate payload and metadata projections under their existing owners. Simplify internal bookkeeping and bounded cache invalidation while retaining public SDK contracts, security-effect authority, ordinary concurrency, and durable user state.

* refactor: retain branch cache pending complete old-code cutover

Withdraw the branch-cache cluster because completing its unused-export cleanup requires an infra owner touched this week. Preserve the original cache, regression assertions, and docs. The remaining old-code lane removes 424 net production lines and is branch-only under the campaign BELOW-500 rule.

* refactor: simplify old gateway, config, and CLI bookkeeping

Share existing config-path and retired-media traversal owners. Remove speculative
rollback, retry, reentry, and diagnostic freshness machinery while preserving
security effect checks, ordinary cleanup settlement, resource bounds, and public
config, CLI, protocol, and persisted-data shapes. Phase E is untouched.

Production delta: 335 net lines removed (+97/-432) across 16 old files.
Focused proof: 311 tests in 25 files; final embedding/shutdown proof: 91 tests
in 4 files. Independent scoped review found no actionable P0-P2 findings.
Published as a branch only under the campaign's below-500 rule, not a PR.

Best-effort tradeoffs accepted

- Overlapping failed env publications may require reload/restart instead of ordered compensation; openclaw#105289/openclaw#103736 document synthetic harness proof, not a human actual-use report.
- Failed in-process restart preparation/emission requires explicit config reapply or manual restart; openclaw#105289/openclaw#160375 describe synthetic timing, not a transient transport failure.
- A mount changed during sampling may briefly be attributed to its parent filesystem until the next snapshot; openclaw#149792 uses forced mount fixtures, without a human incident.
- CLI provider cleanup is attempted once; openclaw#113471's blocked-close fixtures do not establish a transient failed-close incident, and the CLI exits on cleanup failure.
- Requested-head CI details are a snapshot until refresh; openclaw#148464's synthetic push/rerun interleavings do not justify rereading the head and check inventory after fetching jobs.
- A malformed catalog resolver may repeat rejection until the existing 16-fallback bound instead of an earlier identity bailout; openclaw#92175/openclaw#89456 are synthetic trust-harness work, and every trust check remains.
- Model normalizers must not reenter the same resolver; openclaw#156076's callback reentry is synthetic. Measured lookup caches and ordinary callback errors/order remain.
- Offline plugin-state imports assume no unsupported same-destination writer after capacity preflight; openclaw#109679's ordinary near-capacity import remains fixed, while concurrent eviction compensation came from synthetic sibling seeding.
- A delayed update verification reply may repeat a terminal broadcast or briefly show old status; openclaw#160592 supplies synthetic ordering proof, while durable effect idempotency, FIFO, repair authority, and shutdown joining remain.
- A malformed reply from the fixed inline CA worker may fail instead of using a dedicated invalid-result fallback; openclaw#112338/openclaw#112336 do not report a human malformed-message incident. Timeout/error/exit handling remains.
- Failed Gateway embedding cleanup blocks only its agent/provider scope until restart instead of retaining provider objects and retrying close; openclaw#113471 documents synthetic blocked-close proof, not a human failed-close incident. Local FIFO cleanup, remote concurrency, abort handling, authority, and normal shutdown settlement remain.

* refactor: defer pricing cache cleanup touched on main

Withdraw the usage-format production and paired test changes after main landed 7a00a9f, keeping the hard seven-day old-code exclusion. Both files match the pre-campaign base, so main retains its interrupted-stream usage repair. The remaining reviewed o05/o06 union removes 713 net production lines across 42 files.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling cli CLI command changes commands Command implementations gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gateway: hot reload leaves getRuntimeConfig flipped while hooks and cron stay stale for the length of a deferred channel restart

1 participant