Skip to content

feat(core): register capability_override for operator configuration - #9628

Merged
Xuanwo merged 1 commit into
mainfrom
xuanwo/9542-capability-override-registry
Dec 3, 2026
Merged

Xuanwo merged 1 commit into
mainfrom
xuanwo/9542-capability-override-registry

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Dec 3, 2026

Copy link
Copy Markdown
Member

Which issue does this PR close?

Closes #9542

Rationale for this change

Applications that load operator settings from a URI or map need to select the built-in layer to describe the capabilities and storage hints of a specific endpoint. The other five layer registrations shipped in #9623. Prior registration change

What changes are included in this PR?

Register capability_override in the facade's default registry. The required overrides option uses the existing CapabilityOverrideLayer::from_overrides parser. Construction returns ConfigInvalid for missing or invalid assignments and identifies the scoped option in the diagnostic. Existing parser and vocabulary

Are there any user-facing changes?

Set layers=capability_override and layer.capability_override.overrides=write_with_if_not_exists=false,file_and_dir_coexist=false in a URI query or configuration map. The operator configuration specification documents the accepted values. Python callers can also pass a CapabilityOverrideLayerConfig to Operator.from_config or AsyncOperator.from_config.

Breaking changes

AI Usage Statement

  • Pi via T3 Code ran magpie/codex/gpt-6.2-astra at high effort to trace registry and binding callers and propose the overrides configuration schema.
  • Pi via T3 Code ran magpie/codex/gpt-6.2-astra at xhigh effort to coordinate the remaining registration with the landed RFC and optional-layer registrations.
  • Pi via T3 Code ran magpie/codex/gpt-6.2-sol at max effort to implement and document the factory, generate the Python configuration type, verify local Rust and Python callers, and draft this description.
  • Pi via T3 Code ran magpie/devin/swe-2-1 at high effort to independently review signed commit 38ded3d02a, rerun Rust registration and generation checks, and probe Python configuration and error diagnostics.

@Xuanwo
Xuanwo requested a review from PsiACE December 3, 2026 23:33
@Xuanwo
Xuanwo merged commit 0c5254f into main Dec 3, 2026
79 checks passed
@Xuanwo
Xuanwo deleted the xuanwo/9542-capability-override-registry branch December 3, 2026 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(core): register capability_override and new pure-config optional layers in OperatorRegistry

2 participants