Skip to content

Contracts And Source Of Truth

Status: beta.

Regent docs should explain behavior without becoming the authority for behavior.

  • Product HTTP contracts define product service behavior.
  • CLI contracts define shipped command behavior.
  • Product records define workflow state.
  • Chain records define money movement and wallet-approved state.
  • Public docs explain the current system and link back to the owning surface.

If a page and a contract disagree, the contract wins and the page should be fixed.

Platform serves:

  • /api-contract.openapiv3.yaml
  • /cli-contract.yaml

Shared, Autolaunch, and Techtree command behavior lives in their owning contract files and in the Regents CLI contract inputs.

Only use command examples that exist in the contract-backed command surface. For public Platform copy that names Regents CLI commands, run the public CLI copy check in the CLI repo.

Terminal window
cd /Users/sean/Documents/regent/regents-cli
pnpm check:platform-public-cli-copy

When a public path or command shape changes, publish only the current path or shape. Do not add duplicate old routes, old command aliases, or pages whose job is to preserve old wording.