Skip to content

refactor(config): split config I/O responsibilities - #107983

Merged
steipete merged 5 commits into
mainfrom
codex/refactor-config-io
Jul 15, 2026
Merged

steipete merged 5 commits into
mainfrom
codex/refactor-config-io

Conversation

@steipete

@steipete steipete commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The config I/O implementation had grown into one 3,200-line module spanning dependency setup, reads, snapshots, recovery, observation, writes, and runtime activation. That made ownership and invariants difficult to review and required a max-lines suppression.

This is a maintainer-requested refactor.

Why This Change Was Made

Keep src/config/io.ts as the stable public facade while moving cohesive responsibilities into focused sibling modules. Shared process state remains explicitly owned, and read, recovery, write, and runtime-activation paths retain their existing contracts.

The branch also carries forward current main's JSON5 comment-loss warning at the same final pre-rename guard boundary, with receiver-safe logger forwarding.

No config shape, runtime behavior, or compatibility policy changes.

User Impact

No user-visible behavior change. Maintainers get smaller review surfaces, clearer ownership boundaries, and removal of the oversized-file suppression.

Evidence

  • Path-scoped changed gates passed: formatting, generated Plugin SDK baseline, core and core-test typechecks, all lint shards, import-cycle checks, and repository guards. Blacksmith run
  • Full build passed, including bundled assets, runtime build, Plugin SDK export verification, and Control UI production build. Blacksmith run
  • Final prod types, lint, format, dead-export guard, deprecated-API guard, and 16 config files / 239 tests passed. Blacksmith run
  • Final max-lines ratchet passed: 1,217 grandfathered suppressions. Blacksmith run
  • Fresh whole-branch autoreview: no accepted or actionable findings.

AI-assisted: yes. Implementation reviewed and validated by the maintainer workflow above.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: XL maintainer Maintainer-authored PR labels Jul 15, 2026
@steipete
steipete force-pushed the codex/refactor-config-io branch from 0030997 to 97aea70 Compare July 15, 2026 04:12
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Jul 15, 2026
@steipete
steipete force-pushed the codex/refactor-config-io branch from 97aea70 to 3731964 Compare July 15, 2026 05:00
@steipete
steipete merged commit 290836c into main Jul 15, 2026
112 checks passed
@steipete
steipete deleted the codex/refactor-config-io branch July 15, 2026 05:11
@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 15, 2026
* refactor(config): split config I/O

* fix(config): align split modules with guardrails

* fix(config): remove dead write metadata helper

* style(config): format write safety imports

* fix(config): preserve comment-loss warning on split writes
zooqueen pushed a commit to zooqueen/openclaw that referenced this pull request Sep 11, 2026
* refactor(config): split config I/O

* fix(config): align split modules with guardrails

* fix(config): remove dead write metadata helper

* style(config): format write safety imports

* fix(config): preserve comment-loss warning on split writes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR scripts Repository scripts size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant