Let other systems use what you build
An order service needs to move a delivery. The delivery system already knows how to do that. Its catalogue entry tells the order service which operation to call, what information to send and what change to expect.
The delivery system can describe this offer with the shared Capability type. A service or an agent can discover the operation, check versions and permissions, and invoke a compatible implementation through a configured connection.
The delivery system can also report the resulting change using the shared Event type. It identifies who reported the change, when it happened and how to interpret the payload. This is how shared contracts let independently built tools, agents and services work together.
See how teams use OKHAM in practice
Connect applications and services
A maintenance service can publish its availability check as a versioned capability. The OFR describes the operation and the OTC defines the equipment identifier and result. A lending application can discover a compatible version and call it through a configured connection with the applicable permissions.
When a maintenance window changes, the service can publish an event with a typed payload. A scheduling application can react to that event without sharing the maintenance service’s database. The contract gives each side the meaning of the message. The connection carries requests, replies or events.
Follow the same capability across three clientsMove a system between languages
OKHAM contracts are language-independent. They capture what a function is for, the data it exchanges, the effects it promises and the rules of the process it serves. A team can reimplement a service or migrate a whole system in stages while keeping those definitions available to every implementation.
For example, a team can replace a Python operation with one written in Go and keep the same business requirements and acceptance cases. It adapts the test adapter to the new implementation and reruns those cases to check that the results, permissions and expected effects still match. Explore the contract map