Skip to content

7. Deployment View

This view maps logical building blocks to execution and storage boundaries. It describes the selected local arrangement and optional integrations, not a verified installation topology for every operating system.

The host embeds Rukh and trusted integrations. Foreground extensions use supervised child processes; scripts use exact verified runtimes. Managed process IPC has a private control channel separate from stdin/stdout/stderr. Only the core renders terminal recipients; redirected streams preserve bytes. ADR-0003, ADR-0010

Process and external dependency boundaries
Process and external dependency boundariesThe host embeds Rukh and trusted adapters, supervises the extension process and owns local profile state. External sources and optional services remain outside the host. This view does not prescribe machine placement.CLI userNamed CLI applicationExtension processProfile and resource stateApproved artifact sourcesExternal identity serviceExternal permission serviceAgent or machine clientProtected resourcesCommands and interactionStreams and private control IPCAtomic profile publicationResolve and verify artifactsOptional identity integrationOptional permission integrationDiscover and call toolsDeclared execution boundaryProcess and external dependency boundariesThe host embeds Rukh and trusted adapters, supervises the extension process and owns local profile state. External sources and optional services remain outside the host. This view does not prescribe machine placement.CLI userNamed CLI applicationExtension processProfile and resource stateApproved artifact sourcesExternal identity serviceExternal permission serviceAgent or machine clientProtected resourcesCommands and interactionStreams and private control IPCAtomic profile publicationResolve and verify artifactsOptional identity integrationOptional permission integrationDiscover and call toolsDeclared execution boundary
Components and decisions

CLI user · Named CLI application · Profile and resource state · Extension process · Approved artifact sources · External identity service · External permission service · Protected resources · Agent or machine client

ADR-0001 · ADR-0002 · ADR-0003 · ADR-0004 · ADR-0005 · ADR-0007 · ADR-0009 · ADR-0011 · ADR-0012 · ADR-0013 · ADR-0015

Logical elementPlacement and boundary
Branded host, embedded core and admitted integrationsApplication code assembled by the owner; logical responsibilities do not imply separate services
CLI and optional local MCP adapterEntry paths in that application; MCP stdio is distinct from the private extension channel
Ordinary native or scripted extensionSupervised process for one foreground invocation; script runtimes and dependencies use a verified selected environment
Profile and coordination stateOwner-controlled storage shared by the core processes that use the same authority; credentials use their supported protected storage binding
Artifact, identity, permission and resource systemsExternal dependencies reached only through selected bindings; identity and permission servers are optional

This placement follows ADR-0001, ADR-0008, ADR-0010 and ADR-0013. It does not prescribe service replicas, containers, network subnets or an implementation package layout.

7.2 Persistent state and resource ownership

Section titled “7.2 Persistent state and resource ownership”

Persistent credentials require a supported protected store and coordinated metadata. Explicit volatile mode is process-local; an unavailable required store never silently selects it. Shared profile coordination does not require a new daemon. Managed environments can coexist; borrowed tools are not deleted by Rukh. ADR-0007, ADR-0008, ADR-0011

Credential, task, budget and effect records have different meanings even when backed by the same protected local store. The store does not require a server. Durable effect records preserve uncertainty across host restart; they do not resume or repeat the original command. ADR-0011, ADR-0014, ADR-0016

Local files still need an actual storage contract: OS-held locking, durable publication and recovery, with capture/reference acquisition coordinated against collection. A shared or network filesystem is not implicitly supported merely because it exposes paths. Its adapter must demonstrate the same guarantees. Staging and retained old versions count toward capacity; exhaustion refuses new work rather than deleting a running invocation’s files. Incomplete preparation and uncertain termination remain visible across restart. ADR-0007, ADR-0008

7.3 Local configuration and optional integrations

Section titled “7.3 Local configuration and optional integrations”

The local baseline can host CLI and MCP stdio in one branded application with file-backed catalogs, policy and protected coordination records. Identity services, remote authorization and HTTP hosting are independently selected integrations. Shared state requires actual locking and crash consistency; several processes do not receive independent copies of a shared task budget. ADR-0009, ADR-0013, ADR-0014

Selected arrangementRequired resources and dependencies
Local catalog, local rules and native or preinstalled executionThe branded application, approved release files, a compatible executor/environment and the selected local state bindings; no mandatory runtime manager, remote identity service or client-side KCL compiler
Lazy runtime preparationAn owner-registered provider, approved source access, staging capacity and the exact preparation plan. Its network and storage needs belong to preparation, not to every native invocation
Organization-integrated configurationThe selected protected credential store and identity, discovery or authorization providers, each only where required by its binding. Artifact delivery uses approved origins and credentials independently of command authorization

An unavailable mandatory integration prevents startup, candidate application or the affected operation as its registered contract requires. A lazy connection is possible only where that contract permits it; availability failure does not turn a required provider into an optional one. Thus the same local architecture can run with few dependencies or depend on organizational services without hiding that operational difference. ADR-0005, ADR-0007, ADR-0008, ADR-0010, ADR-0011

7.4 Platform requirements and enforcement limits

Section titled “7.4 Platform requirements and enforcement limits”

Actual OS/runtime support depends on verified adapters. Corporate process, filesystem, certificate and identity restrictions can prevent preparation or launch. Failure does not automatically request elevation or weaken trust. The process/IPC experiments retain their recorded scope; they are not a general platform support matrix. ADR-0003, ADR-0007

The owner explicitly chooses host-trusted execution or a verified confinement profile. Host trust retains the process account’s OS authority. Confined execution must establish all required dimensions before any extension code starts; a missing platform mechanism cannot trigger a weaker fallback. Runtime preparation has its own authority and is not automatically enclosed by the later extension’s boundary. ADR-0008, ADR-0015

For an actual deployment, the selected bindings need evidence for the following boundaries, rather than a claim that the OS name alone establishes compatibility:

BoundaryDeployment evidence required by the contract
Process and runtimeExact OS/architecture/runtime adapter; permitted executable launch, connected control-handle transfer and descendant supervision under that account
Files and managed environmentsWritable owner-approved paths, safe extraction and the storage adapter’s locking/recovery behavior; preparation cannot silently change global PATH or a system-default runtime
Source accessReachable approved origins and valid TLS or SSH host verification; redirects recheck destinations and do not forward credentials to another origin
Credentials and interactionSupported protected storage and the selected interactive/noninteractive binding; an unavailable store or terminal cannot be replaced by plaintext storage or a hidden OS prompt

ADR-0003, ADR-0007, ADR-0008 and ADR-0011 define these requirements. The support matrix and measurements for a production distribution remain implementation evidence to obtain; this table does not certify corporate Windows policies or any other deployment environment.

Diagram

Drag to move · + / − to zoom · 0 to fit · Esc to closeDrag to move and pinch to zoom

100%