Skip to content

Public Trust Contracts Example

This example validates public fixture summaries with @stendar/policy-contracts only. It does not import @stendar/control-plane, local-runtime shared packages, hosted-runtime internals, or private DTOs.

Terminal window
pnpm --filter @stendar/example-public-trust-contracts test
pnpm --filter @stendar/example-public-trust-contracts typecheck

The test command runs internal/examples/public-trust-contracts/demo.ts and prints deterministic JSON.

  • DEFAULT_PUBLIC_TRUST_CONTRACT_MANIFEST
  • official package channel entry and readiness summaries
  • canonical connector/tool manifest and controlled module manifest
  • action lifecycle request and response
  • Policy V2 evaluation result
  • audit entry and verification result
  • wallet signing readiness and preview summaries
  • remote MCP session and readiness summaries
  • governance decision summary
  • execution boundary summaries

The fixture uses public IDs, summaries, booleans, hashes, reason codes, and sync-safe metadata. It intentionally avoids raw wallet payloads, private keys, local paths, secret references, bearer credentials, hosted execution grants, and local-runtime request DTOs.

See Control Plane Contracts for the public boundary and API Reference for the package-level export map.