Skip to content

Latest commit

 

History

History
83 lines (67 loc) · 4.23 KB

architecture.md

File metadata and controls

83 lines (67 loc) · 4.23 KB

Architecture boundary

The platform implements production capabilities; it does not own the contracts or creative inputs it consumes.

codex contracts ────────┐
public universe input ──┼──> platform runtime ──> proposed release artifacts
approved lore export ───┘
  • codex owns stable IDs, schemas, prompt contracts, manifest specifications, and context-package specifications.
  • universe owns reader-safe canon and accepts public release records.
  • lore owns unrevealed material and may provide a minimal approved runtime export through a secure channel.
  • platform validates versioned inputs, executes production behavior, and emits artifacts with source and contract provenance.

The platform must not require a checkout of studio, universe, or lore to build its software. Private inputs are runtime data, never source dependencies.

Dependency references

Every production input uses the stable reference tuple defined by the Studio dependency strategy: logical version, immutable tag, exact source commit, artifact URI, media type, byte size, and verified SHA-256 digest.

  • Codex contracts arrive as immutable released bundles.
  • Public canon arrives as an immutable Universe snapshot bundle.
  • Private context arrives as a minimal encrypted object from an approved secure store, with an immutable object version and digest.
  • Platform packages use their ecosystem lock and integrity data; container deployments use an OCI manifest digest rather than a floating tag.

Provider execution uses the same rule: the core Prompt SDK consumes the pinned Codex execution contract and invokes an adapter interface. Provider SDKs, credentials, and vendor response types do not cross that core boundary.

Prompt discovery is a separate storage boundary. The v1 registry reads only validated definitions from explicit approved filesystem/repository checkouts, records exact source identity, and returns definitions to callers without rendering, executing, publishing, or granting lifecycle authority.

Prepared context is another separate boundary. Platform accepts an explicit prepared package through its Prompt SDK consumer. The separate proposed Context Builder capability owns authorized source resolution, selection and assembly; it does not grant itself approval. The Prompt SDK accepts an explicit Context Package v1 artifact and authorization, validates and binds declared sections, and never searches, retrieves, selects, or assembles context. Package and section identities, source versions, classification, and authorization evidence survive rendering and provider execution.

Structured-output processing is post-execution and provider-neutral. Platform accepts exact schema bytes from an approved caller, validates their identity, parses the raw response once, and emits a distinct normalized result or explicit failure. It never fetches schemas or treats provider-native JSON mode as independent validation.

Before Studio issue #72 publishes the first immutable Codex contract bundles, non-release implementation work may pin an accepted contract by exact commit, verified byte size, and SHA-256 digest. That provisional dependency must be visible in runtime evidence and conformance records and is release-blocking until replaced by the complete immutable artifact tuple.

Do not use cross-repository submodules, build-time clones, branch references, or vendored canon, lore, or schemas. Version ranges may discover upgrades, but a reviewed lock resolves one exact artifact.

Release output

A production release records Platform version, immutable tag and commit, package or OCI digest, exact Codex and canon inputs, build workflow identity, output sizes and digests, and an artifact attestation when supported. If private context influenced the build, public output contains only the opaque attestation ID supplied by the restricted provenance process—never Lore paths, commits, object locations, or hashes.

Platform builds against canon snapshot C(n) and proposes release R to Universe. Universe may include R in C(n+1); Platform must not claim that downstream snapshot as an input to R.