Skip to content

Service composition ownership

ServiceSet supplies instances or lazy factories through the existing kernel resolver. Instances win over factories; factory results live in one kernel and an explicit bind replaces that kernel's resolved value. The original constructor and default behavior remain available.

Core owns prompt validation, preset handling, scripted prompts, silent progress and event emission in services/core/_prompter.py and _progress.py. Historical kernel imports re-export the same objects, including class serialization names. Composition imports the implementations directly. Heads still own rendering and input. Secrets remain unkeyed, never preset or retained as answers, and scripted transcripts redact them.

Exceptions that may only shrink

  • Local web runtime stays in place: origin replacement and session registration share a lock and revocation callback. Moving it needs concurrent registration/revocation parity, not merely endpoint model parity.
  • Session storage retains its existing service owner.

Resolved in 0.9.59: kernel/_compose.py defines no code. It names the runtime types from their published paths and passes its namespace to services/core/_composition.default_services, so resident classes and patches on the root still apply.

Identity (services/core/_identity.py) keeps its lazy, home-relative state selection, and a project configuration cannot redirect it (current_user_identity_test.py). Credentials and approval moved behind their storage and approval-journal ports with the same caller authority (credentials_identity_test.py, approval_identity_test.py); the keychain import ban covers services and spec too. Installation composition moved with the installation lane (services/install/_installation.py). CompiledJobs and JobInactive live in services/core/_jobs.py beside the tick cadence, naming JobLet from spec/_lets.py; kernel/_jobs.py re-exports them under their published __module__ (core_service_identity_test.py).

Do not expand these exceptions to add new business behavior to kernel facades. The identity/parity tests check exports, serialized class paths, kernel-local defaults, lazy factories, instance precedence and later rebinding.