Skip to content

refactor(acpx): remove dead config keys and legacy reaper heuristics - #120937

Merged
steipete merged 1 commit into
mainfrom
steipete/acpx-config-hygiene
Aug 9, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/acpx-config-hygiene

Conversation

@steipete

@steipete steipete commented Aug 9, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The ACPX plugin accepted strictWindowsCmdWrapper and queueOwnerTtlSeconds even though the embedded runtime ignored both. Operators could therefore keep apparently valid configuration that had no effect, while the Zod and manifest schemas were maintained separately and could drift.

Why This Change Was Made

Items 1 and 2 are complete. The two retired keys are removed from the plugin schemas, resolved configuration, and ignored-value logging. The plugin-owned doctor compatibility contract now detects and removes them before strict validation, so openclaw doctor --fix repairs existing configurations without retaining runtime compatibility branches.

For schema hygiene, this adopts the repository's existing buildPluginConfigSchema generator precedent: the ACPX test now generates JSON Schema from the Zod owner and compares it with openclaw.plugin.json, including nested strict-object behavior. No new dependency or parallel schema fixture was added.

Item 3 is a stop-report. Lease ownership does not yet cover unleased startup probes, direct agent launches, rootPid: 0 leases, or descendants reparented after the leased root exits. Removing command markers would weaken cross-gateway process safety, so the legacy reaper heuristics, their tests, and docs/refactor/acp.md remain unchanged.

Root cause: obsolete compatibility fields remained wired through both schema surfaces and runtime resolution after their upstream behavior disappeared, with logging substituting for a real plugin-owned config migration.

Production LOC: +46/-66 (net -20). Tests: +67/-118 (net -51).

User Impact

Operators can run openclaw doctor --fix to strip the two retired ACPX settings before strict config validation. Runtime behavior is otherwise unchanged because the settings were already ignored. Existing process-reaper safeguards remain intact.

Evidence

  • node scripts/run-vitest.mjs extensions/acpx — PASS, 19 files / 245 tests; Vitest 43.48s.
  • node scripts/run-vitest.mjs src/plugins/doctor-contract-declarations.test.ts — PASS, 1 file / 1 test; Vitest 269.50s, wrapper 282.44s.
  • git diff --check — PASS.
  • node scripts/check-changed.mjs — PASS, exit 0 in 13m17.309s on Blacksmith Testbox lease tbx_01kzjgny75rmeavdxx10swxt9s; Actions run; cleanup completed.
  • .agents/skills/autoreview/scripts/autoreview --mode local — exit 0: autoreview clean: no accepted/actionable findings reported (confidence 0.97).
  • The workspace-mutation lock flake fix was superseded by fix: bound outbound bootstrap state and preserve workspace locks #120939 on main, so its commit was dropped during rebase.

@steipete
steipete marked this pull request as ready for review August 9, 2026 05:59
@openclaw-barnacle openclaw-barnacle Bot added size: M maintainer Maintainer-authored PR gateway Gateway runtime labels Aug 9, 2026
@steipete steipete self-assigned this Aug 9, 2026
@steipete
steipete force-pushed the steipete/acpx-config-hygiene branch from ac00d89 to 1085b6d Compare August 9, 2026 07:29
@openclaw-barnacle openclaw-barnacle Bot removed the gateway Gateway runtime label Aug 9, 2026
@steipete
steipete merged commit cc4cc83 into main Aug 9, 2026
119 checks passed
@steipete
steipete deleted the steipete/acpx-config-hygiene branch August 9, 2026 07:50
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant