Skip to content

refactor(config): retire per-agent agentRuntime and compaction from the authored config type - #164586

Merged
steipete merged 1 commit into
mainfrom
steipete/agent-config-legacy-keys
Oct 3, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/agent-config-legacy-keys

Conversation

@steipete

@steipete steipete commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Related: #164103

What Problem This Solves

The authored config type still declared per-agent agentRuntime and compaction, which config validation rejects, so typed fixtures and config writers could author agent entries that Gateway startup then refuses.

User Impact

No user-visible change. Developers and plugin authors get a type error instead of a startup rejection when they put agentRuntime or compaction on an agent entry; per-model models[ref].agentRuntime and agents.defaults.compaction remain the supported owners. Type-only Plugin SDK change, documented in the SDK migration guide.

Why This Change Was Made

Same cutover as #164103, applied to the two remaining rejected agent-entry keys. The authored type drops them; Doctor and pre-admission readers use the existing Doctor-owned legacy config type, which now carries one shared set of retired entry fields (default, agentRuntime, compaction) and stays structurally assignable to OpenClawConfig.

Readers, fixtures, and SDK impact
  • resolveAgentConfig stops projecting agentRuntime; validated entries cannot carry it. The system-agent inference route drops its dead per-agent runtime snapshot (per-model policy already owns it). The Control UI drops an unused agentRuntime field from a local config subset; its runtime labels come from Gateway metadata.
  • The shipped whole-agent runtime opt-out (fix(openai): harden codex catalog, routing opt-out, and WHAM half-open reprobe #108683) still guards implicit Codex plugin installation for pre-admission source config (update and Doctor plugin repair). It moves from the SDK-reachable agent-runtime-id module into a private openai-routing helper typed with the legacy config, so the Doctor-owned type stays out of the public SDK declaration closure. plugin-sdk:api:diff confirmed no legacy types are reachable.
  • Doctor and migration readers already used the legacy type or raw records.
  • Fixtures: the agents_list tool fixture drops a per-agent runtime its per-model policy already overrode; the test that fed the runtime a rejected per-agent key is removed (validation makes that input impossible). The routing opt-out test types its legacy input as OpenClawConfigWithLegacyRoster.
  • Plugin SDK: OpenClawConfig agent entries lose both keys and the resolveAgentConfig return type (openclaw/plugin-sdk/agent-runtime, agent-scope-runtime) loses agentRuntime. No bundled plugin reads either agent-level key, and validated configs never held a value, so no compatibility record is added. API diff acknowledgement digest: 79f700a9 (pre-rebase).

Follow-up: AgentDefaultsConfig still declares Doctor-only legacy keys (including its own agentRuntime); tracked separately.

Evidence

Blacksmith Testbox, on the exact rebased head:

Lane Result Seconds
pnpm run tsgo:core pass 44
pnpm run tsgo:ui pass 38
pnpm run tsgo:extensions pass 48
pnpm run tsgo:extensions:test pass 78
vitest: 7 files (2 changed tests plus direct tests of every changed module) pass 77
oxfmt --check on the 10 changed files pass 0

Head eadb43cc91af, lease tbx_01m41wekd2qe2jr6jq2k1ph533. The tsgo:test:{src,packages,ui,root} shards passed on the identical pre-rebase patch (734 / 33 / 235 / 163 s, lease tbx_01m40d0x3ezex3fg76qd6ck9mm); the exact-head shard rerun is queued on Testbox and PR CI runs the same shards.

Before the rebase (same patch stacked on the pre-landing #164103 commit), the same lanes passed, plus pnpm run plugin-sdk:api:diff (5 reachable declarations changed: AgentConfig, ResolvedAgentConfig, and the opt-out helper leaving agent-runtime-id; no legacy roster types reachable) and a Codex autoreview (scoped-clean).

No new tests. One test removed; one fixture retyped.

…n from the authored config type

AgentConfig still declared agent-level `agentRuntime` and `compaction` after
strict schema parsing began rejecting both, so `satisfies OpenClawConfig`
kept admitting fixtures and writers that validation refuses. This is the
same trap the agents.list/default cutover closed.

The authored type now omits both keys. The Doctor-owned legacy types in
src/config/legacy.roster.ts carry them instead: one shared set of retired
entry fields (default, agentRuntime, compaction) backs both
LegacyAgentListEntry and the agents.entries record of
OpenClawConfigWithLegacyRoster, which stays structurally assignable to
OpenClawConfig.

Readers:
- resolveAgentConfig no longer projects agentRuntime; validated entries
  cannot carry it.
- The system-agent inference route drops its dead per-agent runtime
  snapshot; per-model policy already owns that decision.
- The retired whole-agent runtime opt-out (#108683) still guards implicit
  Codex plugin installation for pre-admission source config (update,
  Doctor repair). It moves from the SDK-reachable agent-runtime-id module
  into a private openai-routing helper typed with the legacy config, so
  the Doctor type stays out of the public SDK declaration closure.
- Doctor and migration readers already used the legacy type or raw records.

Fixtures: the agents_list tool fixture drops a per-agent runtime that its
per-model policy already overrode, and the test that fed the runtime a
rejected per-agent key is removed. The routing opt-out test now types its
legacy input as OpenClawConfigWithLegacyRoster.

Plugin SDK impact: type-only. OpenClawConfig agent entries lose the two
keys, and the resolveAgentConfig return type (openclaw/plugin-sdk/agent-runtime,
agent-scope-runtime) loses agentRuntime. No bundled plugin reads either
agent-level key, and validated configs never held a value, so no
compatibility record is needed. plugin-sdk:api:diff acknowledgement digest
79f700a9; docs/plugins/sdk-migration/how-to-migrate.md documents the
canonical owners.
@clawsweeper

clawsweeper Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete marked this pull request as ready for review October 3, 2026 22:34
@github-actions

github-actions Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components.

No secops approval is required. This comment is informational because the PR author has Maintain or Admin access.

  • Current SHA: eadb43cc91af6a6e6a260fda29adfc9aafd5d1ce
  • Maintainer: @steipete
  • Repository role: admin

These security sensitive changes were made:

  • src/config/types.agents.ts: Controls sandbox containment or tool execution authority. Check filesystem and network isolation, approval scope, and command allowlists.

Carefully review these changes before merging.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui agents Agent runtime and tooling size: S labels Oct 3, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 3, 2026
@clawsweeper

clawsweeper Bot commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed October 3, 2026, 6:40 PM ET / 22:40 UTC.

ClawSweeper review

What this changes

The PR removes retired per-agent runtime and compaction fields from authored configuration types and resolved agent configuration while preserving legacy readers used before admission.

Merge readiness

⛔ Blocked before merge - 1 item remains

This remains useful: current main still permits the rejected fields in its authored types. No blocking correctness or security defect was found, and the documented SDK narrowing has explicit maintainer intent.

Priority: P2
Reviewed head: eadb43cc91af6a6e6a260fda29adfc9aafd5d1ce

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, documented contract correction with preserved legacy behavior and reported targeted validation.
Proof confidence 🌊 off-meta tidepool Not applicable: The verified admin-authored PR is exempt from ordinary contributor runtime proof. Source inspection connects the moved opt-out to the unchanged installation owner; reported Testbox checks are supplemental. No persistent format changes require migration proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The verified admin-authored PR is exempt from ordinary contributor runtime proof. Source inspection connects the moved opt-out to the unchanged installation owner; reported Testbox checks are supplemental. No persistent format changes require migration proof.
Evidence reviewed 7 items Verified introduced scope: Inspected the pinned merge-base-to-head delta. The verified test merge records the pinned base followed by the original head and carries the same focused changes; unrelated endpoint drift was excluded.
Current main still needs the type correction: Fetched main still declares deprecated agentRuntime and compaction on AgentConfig. The strict agent-entry schema contains neither field, establishing the mismatch addressed by this PR.
Latest-release contract: GitHub REST inspection of v2026.9.8 confirms the released type already describes these fields as legacy Doctor-only input, and the strict agent-entry base schema excludes them. This PR does not newly reject valid stored configuration.
Findings None None.
Security None None.

How this fits together

OpenClaw configuration types guide developers and plugins authoring agent settings. Strict validation admits supported settings, while Doctor and update preparation retain separate readers for legacy input.

flowchart TD
  A[Developer and plugin configuration] --> B[Authored configuration types]
  B --> C[Strict configuration validation]
  C --> D[Agent runtime settings]
  E[Legacy stored configuration] --> F[Doctor and update preparation]
  F --> C
  F --> G[Runtime plugin installation decision]
Loading

Before merge

  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
Agent review details

Security

None.

PR surface

Source +1, Tests -32, Docs +5. Total -26 across 10 files.

View PR surface stats
Area Files Added Removed Net
Source 7 40 39 +1
Tests 2 2 34 -32
Docs 1 5 0 +5
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 10 47 73 -26

Review metrics

None.

Technical review

Best possible solution:

Keep authored types aligned with strict validation, with legacy input confined to Doctor and pre-admission preparation.

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

Yes, from source: current main's AgentConfig permits two properties absent from the strict agent-entry schema. No runtime reproduction was executed in this read-only review.

Is this the best way to solve the issue?

Yes. Removing the invalid authored fields and retaining a private legacy reader matches the existing validation and migration ownership without adding another runtime compatibility path.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 67ab6f3104fd.

Labels

Label changes:

  • add P2: This bounded correction prevents typed configuration writers from authoring agent settings that startup rejects.
  • add merge-risk: 🚨 compatibility: The SDK source types lose previously declared properties; the admin-authored PR explicitly documents and owns that narrowing while preserving legacy preparation behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The verified admin-authored PR is exempt from ordinary contributor runtime proof. Source inspection connects the moved opt-out to the unchanged installation owner; reported Testbox checks are supplemental. No persistent format changes require migration proof.

Label justifications:

  • P2: This bounded correction prevents typed configuration writers from authoring agent settings that startup rejects.
  • merge-risk: 🚨 compatibility: The SDK source types lose previously declared properties; the admin-authored PR explicitly documents and owns that narrowing while preserving legacy preparation behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The verified admin-authored PR is exempt from ordinary contributor runtime proof. Source inspection connects the moved opt-out to the unchanged installation owner; reported Testbox checks are supplemental. No persistent format changes require migration proof.

Evidence

What I checked:

  • Verified introduced scope: Inspected the pinned merge-base-to-head delta. The verified test merge records the pinned base followed by the original head and carries the same focused changes; unrelated endpoint drift was excluded. (eadb43cc91af)
  • Current main still needs the type correction: Fetched main still declares deprecated agentRuntime and compaction on AgentConfig. The strict agent-entry schema contains neither field, establishing the mismatch addressed by this PR. (src/config/types.agents.ts:23, 67ab6f3104fd)
  • Latest-release contract: GitHub REST inspection of v2026.9.8 confirms the released type already describes these fields as legacy Doctor-only input, and the strict agent-entry base schema excludes them. This PR does not newly reject valid stored configuration. (src/config/zod-schema.agent-entry-base.ts, fc23bc864e45)
  • Legacy installation opt-out preserved: The private helper reads the raw entry, applies the same normalization and defaults fallback as the former helper, and retains explicit model-policy precedence. Its production caller remains runtime-plugin-install; execution harness policy independently reads model/provider policy. No Codex dependency contract is changed or required to establish this equivalence. (src/agents/openai-routing.ts:123, eadb43cc91af)
  • Maintainer intent and SDK migration: The captured PR body explicitly describes removing the SDK-visible fields and resolved return property, documents their replacements, and intentionally declines a compatibility record for rejected input. The security guard comment verifies steipete has repository admin access: refactor(config): retire per-agent agentRuntime and compaction from the authored config type #164586 (comment). This decision covers the current type narrowing; source compatibility remains a recorded tradeoff. Public docs: docs/plugins/sdk-migration/how-to-migrate.md. (docs/plugins/sdk-migration/how-to-migrate.md:290, eadb43cc91af)
  • Validation and proof scope: The captured body reports exact-head core/UI/extensions typechecks and seven focused test files passing on Testbox, plus a pre-rebase SDK API diff. These are supplemental reported checks, not reviewer execution. Inspected downloaded screenshots belong to the earlier roster PR and do not demonstrate this change. No stored-data model changes or visible UI changes are introduced. (eadb43cc91af)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • 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.

@steipete

steipete commented Oct 3, 2026

Copy link
Copy Markdown
Contributor Author

Config compatibility and upgrade impact, confirmed by the maintainer before merge:

  • Stored configs: no change. Validation, migrations, and defaults are untouched. Per-agent agentRuntime and compaction were already rejected by the strict agent-entry schema, and v2026.9.8 already documents them as Doctor-only legacy input. This PR changes only what the authored TypeScript type admits.
  • Doctor: no change. Doctor already refuses agent-scope agentRuntime as a retired pre-July-2026 setting (since 461a995, with the intermediate-upgrade guidance), and its existing per-agent compaction repairs keep reading raw records. Doctor/migration readers were already typed with OpenClawConfigWithLegacyRoster or raw records.
  • Update: no change. openclaw update and Doctor plugin repair still honor the shipped whole-agent runtime opt-out (fix(openai): harden codex catalog, routing opt-out, and WHAM half-open reprobe #108683) on raw source config, with the same decision order: explicit per-model policy first, then the opt-out, then the implicit runtime. Only its location moved, to a private openai-routing helper typed with the legacy config, which also keeps the Doctor-owned type out of the public SDK declarations.
  • Runtime: no change. The removed runtime reads could only ever observe undefined on validated config.
  • Plugin SDK: type-only narrowing. OpenClawConfig agent entries and the resolveAgentConfig return type lose fields that never held a value after validation. No bundled plugin reads them. This is documented in the SDK migration guide (Agent roster config). No compatibility record is needed, unlike the agents.list runtime projection in refactor(config): retire agents.list and default markers from the authored config type #164103.

@steipete
steipete merged commit bf761b0 into main Oct 3, 2026
210 of 213 checks passed
@steipete
steipete deleted the steipete/agent-config-legacy-keys branch October 3, 2026 23:05
@steipete

steipete commented Oct 3, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 4, 2026
…n from the authored config type (openclaw#164586)

AgentConfig still declared agent-level `agentRuntime` and `compaction` after
strict schema parsing began rejecting both, so `satisfies OpenClawConfig`
kept admitting fixtures and writers that validation refuses. This is the
same trap the agents.list/default cutover closed.

The authored type now omits both keys. The Doctor-owned legacy types in
src/config/legacy.roster.ts carry them instead: one shared set of retired
entry fields (default, agentRuntime, compaction) backs both
LegacyAgentListEntry and the agents.entries record of
OpenClawConfigWithLegacyRoster, which stays structurally assignable to
OpenClawConfig.

Readers:
- resolveAgentConfig no longer projects agentRuntime; validated entries
  cannot carry it.
- The system-agent inference route drops its dead per-agent runtime
  snapshot; per-model policy already owns that decision.
- The retired whole-agent runtime opt-out (openclaw#108683) still guards implicit
  Codex plugin installation for pre-admission source config (update,
  Doctor repair). It moves from the SDK-reachable agent-runtime-id module
  into a private openai-routing helper typed with the legacy config, so
  the Doctor type stays out of the public SDK declaration closure.
- Doctor and migration readers already used the legacy type or raw records.

Fixtures: the agents_list tool fixture drops a per-agent runtime that its
per-model policy already overrode, and the test that fed the runtime a
rejected per-agent key is removed. The routing opt-out test now types its
legacy input as OpenClawConfigWithLegacyRoster.

Plugin SDK impact: type-only. OpenClawConfig agent entries lose the two
keys, and the resolveAgentConfig return type (openclaw/plugin-sdk/agent-runtime,
agent-scope-runtime) loses agentRuntime. No bundled plugin reads either
agent-level key, and validated configs never held a value, so no
compatibility record is needed. plugin-sdk:api:diff acknowledgement digest
79f700a9; docs/plugins/sdk-migration/how-to-migrate.md documents the
canonical owners.
steipete added a commit that referenced this pull request Oct 4, 2026
…thored config type (#165014)

* refactor(config): remove retired agents.defaults keys from the authored config type

AgentDefaultsConfig still declared nine keys that the strict agents.defaults
schema rejects (imageGenerationModel, videoGenerationModel,
musicGenerationModel, envelopeTimezone, envelopeTimestamp, envelopeElapsed,
timeFormat, promptOverlays, agentRuntime), so `satisfies OpenClawConfig`
admitted fixtures and writers that validation refuses. This is the same trap
the agents.list/default (#164103) and per-agent agentRuntime/compaction
(#164586) cutovers closed.

The authored type now omits all nine. The Doctor-owned
OpenClawConfigWithLegacyRoster in src/config/legacy.roster.ts carries them as
retired defaults fields, each naming what Doctor does and the canonical owner.
It stays structurally assignable to OpenClawConfig, so Doctor and
pre-admission fixtures need no casts.

Readers:
- The system-agent inference route no longer snapshots a defaults-level
  agentRuntime; per-model policy already travels in the projected model map.
- current-time drops an unused timeFormat field from its local config shape.
- The private retired whole-agent runtime opt-out in openai-routing keeps
  reading agents.defaults.agentRuntime through the legacy type for
  pre-admission plugin repair.
- The WhatsApp test envelope mock honored the retired envelope toggles; it
  now mirrors resolveEnvelopeFormatOptions (timezone from userTimezone,
  timestamps and elapsed time always on).
- The test-only shim that translated legacy media keys is removed; the
  image, video, and music tool tests author agents.defaults.mediaModels.

Fixtures move to canonical owners: mediaModels.{image,video,music},
userTimezone instead of envelope/time-format toggles, and per-model
models[ref].agentRuntime. Runtime-selection tests now configure the per-model
runtime they exercise instead of an inert defaults key. Doctor and migration
tests keep raw legacy inputs typed as OpenClawConfigWithLegacyRoster; media
model migration coverage moves to legacy-config-migrate.media-models.test.ts
and two test helpers move to support modules to stay under line caps.
dead-config-keys now also asserts that validation rejects
agents.defaults.agentRuntime, so all nine keys have runtime rejection
coverage.

Plugin SDK impact: type-only. OpenClawConfig agents.defaults loses the nine
keys; no bundled plugin reads them and validated configs never hold them.
plugin-sdk:api:diff confirms legacy.roster stays outside the public
declaration closure. docs/plugins/sdk-migration/how-to-migrate.md names the
canonical owners.

* docs(plugins): route stored agents.defaults.agentRuntime through the intermediate upgrade

Doctor refuses a stored agents.defaults.agentRuntime as a retired format
(findRetiredConfigUpgradeRequirement), so the blanket doctor --fix guidance
in the SDK migration paragraph did not hold for that key. Point it at the
existing upgrade-through-2026.9.5 instructions.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 5, 2026
…thored config type (openclaw#165014)

* refactor(config): remove retired agents.defaults keys from the authored config type

AgentDefaultsConfig still declared nine keys that the strict agents.defaults
schema rejects (imageGenerationModel, videoGenerationModel,
musicGenerationModel, envelopeTimezone, envelopeTimestamp, envelopeElapsed,
timeFormat, promptOverlays, agentRuntime), so `satisfies OpenClawConfig`
admitted fixtures and writers that validation refuses. This is the same trap
the agents.list/default (openclaw#164103) and per-agent agentRuntime/compaction
(openclaw#164586) cutovers closed.

The authored type now omits all nine. The Doctor-owned
OpenClawConfigWithLegacyRoster in src/config/legacy.roster.ts carries them as
retired defaults fields, each naming what Doctor does and the canonical owner.
It stays structurally assignable to OpenClawConfig, so Doctor and
pre-admission fixtures need no casts.

Readers:
- The system-agent inference route no longer snapshots a defaults-level
  agentRuntime; per-model policy already travels in the projected model map.
- current-time drops an unused timeFormat field from its local config shape.
- The private retired whole-agent runtime opt-out in openai-routing keeps
  reading agents.defaults.agentRuntime through the legacy type for
  pre-admission plugin repair.
- The WhatsApp test envelope mock honored the retired envelope toggles; it
  now mirrors resolveEnvelopeFormatOptions (timezone from userTimezone,
  timestamps and elapsed time always on).
- The test-only shim that translated legacy media keys is removed; the
  image, video, and music tool tests author agents.defaults.mediaModels.

Fixtures move to canonical owners: mediaModels.{image,video,music},
userTimezone instead of envelope/time-format toggles, and per-model
models[ref].agentRuntime. Runtime-selection tests now configure the per-model
runtime they exercise instead of an inert defaults key. Doctor and migration
tests keep raw legacy inputs typed as OpenClawConfigWithLegacyRoster; media
model migration coverage moves to legacy-config-migrate.media-models.test.ts
and two test helpers move to support modules to stay under line caps.
dead-config-keys now also asserts that validation rejects
agents.defaults.agentRuntime, so all nine keys have runtime rejection
coverage.

Plugin SDK impact: type-only. OpenClawConfig agents.defaults loses the nine
keys; no bundled plugin reads them and validated configs never hold them.
plugin-sdk:api:diff confirms legacy.roster stays outside the public
declaration closure. docs/plugins/sdk-migration/how-to-migrate.md names the
canonical owners.

* docs(plugins): route stored agents.defaults.agentRuntime through the intermediate upgrade

Doctor refuses a stored agents.defaults.agentRuntime as a retired format
(findRetiredConfigUpgradeRequirement), so the blanket doctor --fix guidance
in the SDK migration paragraph did not hold for that key. Point it at the
existing upgrade-through-2026.9.5 instructions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui docs Improvements or additions to documentation merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. security-sensitive-changed size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant