Define the behavior.
Inputs, outputs, policy, effects and ownership live in an inspectable contract.
En toda la familia de sitios · Contexto útil · Cámbiala cuando lo necesites.
Typed contracts for applications & agents
Define el comportamiento de tu producto en TypeScript. Conéctalo a tu API, interfaces y herramientas de agentes, con entradas, permisos y reglas de aprobación explícitos.
Start with one operation in the codebase you already own.
One equipment request, three entry points. Adjust the policy and see the app, API and agent reach the same decision.
The local request satisfies the supplied policy.
Studio setup · Sample workspace
Prueba la acción y examina el resultado.
{
"operation": "request.submit",
"allowed": true,
"reviewRequired": false,
"reviewRecorded": false,
"role": "requester",
"amount": 2400,
"threshold": 5000,
"reason": "permitted"
}Illustrative response shape{
"kind": "educational-fixture",
"operation": "request.submit",
"reviewFrom": 5000,
"submitRoles": [
"requester",
"reviewer"
],
"approvalIsIndependent": true,
"interfaces": [
"app",
"api",
"agent"
]
}This is an educational JSON fixture, evaluated by this page. It is not an importable ContractSpec definition.
A person clicks a button. An integration calls an API. An agent invokes a tool.
When those paths implement the same operation separately, a permission change or new input requirement has several places to go wrong.
ContractSpec gives that behavior an explicit definition, then connects supported adapters and your implementations to it.
A typed description of what an operation accepts, what it returns and the rules it must follow. Your handler implements the work. The configured runtime checks the boundary.
Inputs, outputs, policy, effects and ownership live in an inspectable contract.
Bind your handler and expose the operation through the adapters your application needs.
Make successful calls, denied calls and the required evidence visible at the execution boundary.
Follow a request to export a report through three interfaces. The useful common ground is the registered operation and its boundary.
A person selects a report and gives a reason for the export.
Collect the report and reason, and explain errors in the person’s language.
Labels, validation messages and the way the result is presented.
The report, required reason, business implementation and configured execution checks.
The form can make a requirement clear. The server still needs to reject a request that bypasses the form.
An authored situation, grounded in the linked source guides. Choosing a case explores its expected responsibilities; it does not execute an operation.
The same operation can be reached in several ways.
The approval requirement should still hold.
Interactive illustration · local fixture, not a live runtime trace.
// Part of an operation definition
execution: {
effects: ['write'],
approval: {
required: true
}
}
An approval requirement is explicit metadata. Enforcement also needs a configured runtime and approval port.
HTTP REQUEST · ILLUSTRATIVE
POST /reports/demo-report/publish
Content-Type: application/json
{ "reportId": "demo-report" }Draft · ready for review
Intenta la operación, añade un comprobante de prueba válido y vuelve a intentarlo.
The illustration explains the proposed experience. The inspected REST test asserts denial before handler invocation; this page does not execute ContractSpec packages.
Inspect the source basis ↗Reuse product behavior while changing the experience. Add adapted interfaces, reusable capabilities and change controls as your product grows.
Describe operations, data and events with typed contracts. Bind implementations through a runtime built around explicit boundaries.
Connect supports scoped decisions and receipts, with durable verification supplied by a configured host. Your host performs the actual merge, deployment or effect.
RoleMorph and presentation contracts support different interfaces for different roles, with authorization kept explicit.
Feature Hubs declare their needs and provide reusable functionality. Installation, readiness and starting effects remain distinct steps.
Content, supporting sources and the next review step.
Changed content, requested effect and approval evidence.
Built at LSSM. CompanyOS is an application built on this shared foundation, bringing contracts, operations and interfaces into a business workflow.
A communication capability might need an operation, a provider port and a policy binding. Explore what happens when one piece is missing.
The capability is described, but no active installation or provider has been selected.
Name the operations, capabilities and required ports.
The product can discover the capability and its requirements.
A declaration alone does not send a message or initialize a provider.
Use the dependency map to choose what to bind. Do not treat catalogue presence as runtime readiness.
An authored situation, grounded in the linked source guides. Choosing a case explores its expected responsibilities; it does not execute an operation.
Start where several interfaces already need to agree.
Choose a bounded action with clear inputs, one handler and a failure you want to catch. Add a contract, connect two entry points and test the failure directly.
A real operation with a repeated rule.
Your existing business logic stays yours.
Verify both success and a denied path.
Keep the existing application. Make one operation explicit, then decide what the next useful proof would be.
An existing account lookup already returns a useful result to an API consumer.
The operation gains an explicit input, result, errors and ownership boundary.
Its business implementation can remain in place.
Compare the current route with the new binding using the same valid and invalid cases. Widen the scope only after the difference is understood.
An authored situation, grounded in the linked source guides. Choosing a case explores its expected responsibilities; it does not execute an operation.
Your business logic, host authentication, infrastructure and provider integrations. Contracts describe behavior; adapters and configured runtime ports connect that description to execution.
Enforcement requires the appropriate runtime path and configuration. In the inspected operation model, approval is explicitly enabled through execution metadata. Descriptive tags alone do not protect an operation.
No. Supported artifact generation exists. The inspected integration CLI still restricts generation apply to a dry run. Review, merge, deployment and real effects remain separate responsibilities.
The developer foundation has its own adoption path. Packaged applications are separate products built on top; they are not a prerequisite for using the foundation.
Take an operation that explicitly requires approval. Change one condition and inspect the expected path from the captured runtime guide.
The request omits an input required by the operation schema.
Parse and validate the request against the declared schema.
The request cannot become a valid prepared input.
No visible button or descriptive tag makes the missing value valid.
A denial test for approval should use otherwise valid input, so it actually reaches the approval boundary.
An authored situation, grounded in the linked source guides. Choosing a case explores its expected responsibilities; it does not execute an operation.
The concept is grounded in inspected repository code. It is a design review, not a fresh runtime verification or a claim of production qualification.
Approval fixture at inspected release ↗The repository link currently requires access.
Several packages have public npm metadata. That metadata and the current source tree describe different dependency layouts.
A clean, anonymous installation of the exact starter and versions advertised on the new site.
A local illustration of an approval boundary. No provider calls, backend execution or production data.
A short illustrated walkthrough of shared meaning, AI-assisted creation and reusable execution.
Then try it yourself ↗Intent. Empieza con un objetivo. ContractSpec da a las piezas significado, datos, comportamiento y políticas compartidos.
Create and run. La IA puede ayudar a generar código o componer interfaces compatibles. Los componentes reutilizables y los entornos de ejecución habituales ejecutan el trabajo definido.
Adapt. El mismo trabajo puede presentarse de forma distinta en un escritorio, una vista móvil o un agente, con los límites de acción correspondientes.
Compose. Reúne capacidades de dominio en torno al resultado: comunicación, facturación, crecimiento, desarrollo y más.
Download the full transcript ↓