Who owns the decision?
Each engine has a distinct job: improve state, detect configuration problems, detect security risks, or render output.
KOSTRAL is building a common contract and execution model for independently developed engines. This documentation explains the current implementation, its boundaries, and the architectural direction—without presenting planned ecosystem features as available today.
Each engine has a distinct job: improve state, detect configuration problems, detect security risks, or render output.
Engine metadata and contracts describe capabilities such as whether the engine may mutate the observable IR.
The workflow composes independent engines into explicit execution phases and sequences.
The contract is not a generic plugin label. It is the shared agreement that lets KOSTRAL check how an engine participates.
| Contract concern | Current implementation | Boundary |
|---|---|---|
| Identity | Remote descriptor declares engine name and version. | Not a global identity or publishing service. |
| Contract compatibility | Remote descriptor declares contract version; client verifies the supported version. | Current contract version is a single implementation-level version. |
| Input compatibility | Descriptor declares accepted Kubernetes kinds; registry pins can be checked. | Not a full schema negotiation system. |
| Mutation authority | Engine metadata declares mutates; ServiceBus snapshots and verifies observable
IR changes. |
IR boundary, not a general-purpose sandbox for filesystem, network, or external side effects. |
| Execution | ServiceBus runs explicit phases; remote clients invoke HTTP engines. | Remote example is experimental, not distributed orchestration. |
| Reporting | Engines contribute structured findings; mutations must be accompanied by optimization findings. | Does not certify analytical correctness of an engine. |
The shared contract should not erase the differences between engine types.
Improves or prepares deployment state. It may mutate IR when its metadata grants that capability, and observable changes must be reported.
Detects and reports configuration problems. It is read-only in the current architecture and may recommend fixes without applying them.
Detects security and policy risks. It is read-only in the current architecture and reports findings rather than changing manifests.
Converts the prepared representation into the requested output. It does not own optimization or validation decisions.
Invokes an engine over HTTP and checks its descriptor and applicable registry pins before sending supported inputs.
Additional engine categories may require extra rules—for example, AI provenance or external-tool version handling. These are not current product claims.
Where an engine runs should not redefine what it is responsible for. The workflow composes engines; the contract defines how they participate.
Let platform, security, and infrastructure teams own specialized engines while sharing a contract for integration and execution.
Allow an optimizer to change the manifest while keeping validators and security checks read-only. Verify observable IR changes between engine executions.
Compare a remote engine's declared contract and descriptor against the expected identity and pinned version/input kinds before sending the workload.
Use KOSTRAL as the integration and execution layer rather than rebuilding every scanner or validator. External adapters remain a development direction unless explicitly implemented.
| Architecture | IR, core components, ServiceBus, adapters, and module structure. | Read → |
| Guarantees | Behavioral guarantees, mutation boundaries, determinism, and limitations. | Read → |
| Engine contracts | how engine works, contract requirements implementation and boundaries. | Read → |