Optimizer
Changes or improves deployment state. In the current model, it may mutate IR when its metadata declares that capability, and the observable changes must be reported.
KOSTRAL is designed for independently developed engines that can participate in a common execution system. Contributions should preserve clear responsibilities, explicit capabilities, and predictable interaction with the rest of the workflow.
A contributor should not need to reproduce a different protocol for every workflow. The shared contract defines how an engine declares its behavior and participates; the workflow decides when it runs.
Changes or improves deployment state. In the current model, it may mutate IR when its metadata declares that capability, and the observable changes must be reported.
Detects configuration problems and reports findings. It remains read-only in the current architecture.
Detects security or policy risks and reports findings. It remains read-only in the current architecture.
The current implementation establishes a small, concrete contract foundation.
Engine metadata declares mutates. ServiceBus captures observable state before and after processing and rejects a manifest change from an engine declared read-only.
If an engine changes manifests, the current verifier requires a new optimization finding to accompany the change.
A remote engine declares its name, version, contract version, mutation capability, and accepted Kubernetes input kinds.
A registry entry can pin the remote engine version and accepted input kinds. The client verifies the descriptor before sending supported input.
Maintain a focused validator, optimizer, or security engine without taking ownership of the entire KOSTRAL workflow.
Build an adapter around a tool's existing intelligence rather than reimplementing its scanning or validation logic. External integrations must be evaluated and implemented individually.
Use the current remote adapter as an experimental path for invoking separate engine processes while preserving declared engine responsibilities.
Keep contributions aligned with the current implementation and its guarantees.
KOSTRAL may eventually distinguish engines that are contract-compatible, tested, approved, or experimental. Those labels need explicit criteria and a real review process. A registry is not automatically a trust system, and a contract-compliant engine is not automatically safe.