Contracts and SDK generation
Contracts are generated assets in OpenFoundry, not secondary documentation.
Pipeline shape
The generation path is:
text
proto/*
-> of-cli docs generate / validate commands
-> checked-in OpenAPI output
-> generated TypeScript, Python, and Java SDKs
-> frontend and integration consumersRepository signals
The CLI surface lives in tools/of-cli/src/main.rs, where the Docs command group exposes:
generate-openapivalidate-openapigenerate-sdk-typescriptvalidate-sdk-typescriptgenerate-sdk-pythonvalidate-sdk-pythongenerate-sdk-javavalidate-sdk-java
Artifact destinations
apps/web/static/generated/openapi/openfoundry.jsonsdks/typescript/openfoundry-sdksdks/python/openfoundry-sdksdks/java/openfoundry-sdk
Why this matters
This flow is one of the cleanest anti-drift mechanisms in the repo. It makes contract changes visible in code review and allows CI to reject mismatches early.
