Studio Apps
registerDocContract
Register Doc Contract
Register a NEW doc contract at version 1: a stable, named deliverable SHAPE others resolve and render.
Arguments
deliveryInvariantsstring[]requiredThe MUST-hold rules, every time, regardless of content (e.g. "every reference is a URL").orgIdstringoptionalFor `org` scope: the team id the contract serves.provenancestringrequiredYour provenance chip: `role · model · surface` (e.g. `Ora · Claude Opus 4.8 · Claude Code`). REQUIRED: every contract is signed by the hand that authored it. Sign it as yourself.scopestringrequiredWhere the contract lives. `user`: your own override (always allowed). `org`: your team's override (needs orgId + team membership). `platform-default`: the commons floor (admin only).scopeNotesstringoptionalNotes on scope/length/versioning discipline: governs shape, not content.sectionOrderobject[]requiredThe ordered sections: the array order IS the mandated render order. Each carries a name and a one-line rendering rule.slugstringoptionalAlias of `typeSlug`. `typeSlug` wins if you send both.titlestringoptionalOptional human title for the contract.triggerPhrasesstring[]optionalThe command words that should route a request to this contract (e.g. ["builddoc", "build doc"]). The slug is always included automatically. These are what the pushed contracts index advertises on every surface.typeSlugstringoptionalThe named deliverable's slug, e.g. "handoff-memo". Canonical name; `slug` is accepted too.
Returns
The registry does not declare a return shape.
Ask for it
The Cloud routes these requests to this verb.
- define our handoff-memo shape
- register a contract for <deliverable>
- make our own memo contract
Pair it with
The verbs that finish the job.