mirror of
https://github.com/openclaw/openclaw.git
synced 2026-10-03 01:29:56 +00:00
2 commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
2a1402cd3e
|
fix(startup): keep legacy state repair in Doctor (#151025)
* fix(startup): keep legacy state repair in doctor Separate current-state startup readiness from explicit Doctor migrations. Preserve current config recovery, quarantine, device identity checks, lease fencing and updater completion ownership. Remove automatic startup migration/checkpoint and node-host import paths. Keep shipped read-only context and roster projections unchanged. * test(doctor): align proof callers with repair ownership Keep survivor fixture setup in caller order and select the shared Doctor flow separately from the channel-specific proof. Include the complete isolated diagnostics dependency closure. Prove ordinary startup preserves legacy directories before explicit Doctor repair, and await SQLite worker closure before test cleanup. * test(startup): verify index repair through gateway maintenance * test(doctor): align cutover fixtures with state owners Reacquire the database after Doctor retires its generation, retain real session history for startup refusal, and keep pending reads at their actual owners. Distinguish the reused readonly reader from independent snapshot-token children and verify every child settles. * fix(doctor): preserve image activation and published migration receipts Run the shared noninteractive Doctor owner before default and Compose Gateway activation so retained Docker volumes keep their published upgrade path while ordinary Gateway startup stays readiness-only. Preserve root selectors and settle interrupted repair before executing the original command. Retain the path-wide tombstones emitted by the published restart-sentinel importer, including consumed notices, and validate completed source decisions before retiring recreated inputs. Add the root-image activation lane and causal receipt coverage without introducing a schema, option, or second importer. * test(docker): preserve release state pairs in upgrade proof Use the existing synthetic v2026.9.2 corpus instead of combining a July shared database with a later agent schema. Preserve its deletion journal, registry, both transcript payloads, paired backups, and unsafe-state controls. Register the two shell-launched helpers with Knip. * test(docker): normalize persisted schema snapshot rows Compare node:sqlite schema rows using the same plain-object representation as the saved JSON preimage. Keep strict schema, row, and value-type assertions intact. * fix(models): retain discovered models after refresh failures Record successful legacy catalog results at the producer boundary so unavailable refreshes retain the accepted inventory. Preserve explicit outcomes, advisory SDK fallback behavior, and first-discovery starter policy. * fix(models): preserve skipped catalog outcome semantics Mark bundled static, configured, and advisory catalog projections with explicit empty outcomes so legacy success inference cannot promote them to observed account inventory. Preserve live outcomes and helper types. Keep exact auth provenance histories and move existing fixture/policy code into focused owners where required by the line-cap ratchet. Validation: 447 producer and sibling cases, 56 shared self-hosted cases, 95 auth/policy cases, causal missing-outcome failures, maintained checks, and independent review. * test(plugin-sdk): keep discovery loader types acyclic Move the shared loader type into a leaf consumed by both discovery contract helpers. Preserve its public provider-test-contracts export without a child-to-parent type import cycle. Validation: maintained Madge check reports zero cycles; core, all core test graphs, extension test types, lint, formatting and independent review pass. Runtime behavior and previous catalog proof are unchanged. * fix(plugin-sdk): mark generated static catalogs explicitly Keep the generated non-live, non-strict catalog adapter from claiming successful acquisition for manifest or configured rows. Preserve null, errors, strict and custom callbacks, static catalogs, and public types. Validation: three existing controls fail before the correction; all49 owner and sibling cases pass afterward, with types, lint, line caps and fresh independent review clean. * test(gateway): cover restart import during state retirement Exercise canonical database close while a legacy notice read is paused. Verify admission rejection, retained canonical and source bytes, no migration receipt, and joined maintenance custody without changing the accepted sidecar-stop drain contract. * fix(test): drain sharing fixtures before removing state * test: bind retirement regression to its own worker * docs(docker): clarify automatic Doctor activation * test(doctor): keep readiness fixture runtime private * test: stabilize shared skill watcher fixture roots (cherry picked from commit 15606be10ed61be99931fcf3bb300ebdb475ad89) * perf(tooling): share indexed scope parsing for artifact scans (cherry picked from commit |
||
|
|
2ce0573b02
|
fix(gateway): preserve active work during recovered Node restarts (#153435)
* fix(gateway): preserve work during recovered Node restarts Let Unix Node recovery wrappers respect the existing Gateway stop budget. Share startup-safe command classification and deadline facts, and resolve managed restart intent against the live serving owner in its write transaction with current update authority. Preserve the existing public PID intent API, record format, and Windows behavior. Keep cold lifecycle test preparation outside timed hooks. Inspired by @ly85206559's wrapper-grace approach in #147054; this repair is independently authored from main. Related: #146956. Windows cooperative shutdown remains a follow-up. * refactor(gateway): stabilize restart callback and test setup Declare receiver-independent restart intent callbacks as arrows and retain typed signal spy handles for lint-safe assertions. Move cold lifecycle imports into test collection so worker preparation cannot consume timed setup hooks. |