Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,7 @@ The license does not grant rights to Definitely Secure Studio names, the Prompt
Mark, wordmarks, logos, other brand assets, or proprietary creative material.
Third-party material remains subject to its own terms. Examples and fixtures
must be synthetic, properly licensed, or already public.

The [Comic Manifest contract consumer proof](docs/comic-manifest-contracts.md)
checks the unreleased Codex candidate against the released SDK using offline
synthetic fixtures; it does not add a Manifest runtime or production dependency.
53 changes: 53 additions & 0 deletions docs/comic-manifest-contracts.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Comic Manifest contract consumer proof (Studio #89)

This is a **test-only consumer of an unreleased Codex 1.0.0 candidate**. It adds no
Manifest runtime, orchestration, source retrieval, trust issuer or publication API.
Codex owns the schema and semantics; public creative authority remains in Universe.

The [fixture lock](../tests/fixtures/comic-manifest-contract-lock.json) pins Codex
commit `53e4bd7738ae33c928bf72864d69d413168cc5b4` by full source paths, sizes and
SHA-256 digests. The schema and scenario are verbatim test artifacts, not local
normative schema forks or production dependencies. The existing Context Builder
fixture is identical to the pinned Codex bytes and is reused unchanged. All apparent
private context, grants, IDs, publication numbers and URLs are synthetic. A fixed
fixture UUID is not a production attestation or evidence of secure issuance.

The [Codex specification](https://github.com/DefinitelySecureStudio/codex/blob/53e4bd7738ae33c928bf72864d69d413168cc5b4/specs/manifests/comic-manifest-v1.md)
and RFC 0007 define three immutable payloads, exact-version support, relational
invariants, detached approvals and public projection. Schema validity proves only
structure. No matching hash, stored preparation result or supplied decision object
can authorize access, renew an expired grant, declassify output or promote canon.

## Verification

`node --test tests/prompt-sdk/comic-manifest-contract.test.js` checks exact artifact
pins; the three records and detached approval schema; SDK canonical identity
agreement; exact package/prompt/Builder linkage; and public-byte verification without
private record access. It renders the referenced prepared package through the
released SDK API at an explicit historical fixture time. Negative cases reject
unknown fields/versions, public private IDs, rehashed package/prompt substitutions,
expired/denied/wrong-purpose use and preparation evidence substituted for a grant.
No provider, external URL or real source is invoked. `npm test` includes this proof.

This is not a Manifest validator or full synthetic build execution. Codex's separate
fixture oracle tests candidate relational semantics. Production raw JSON hardening,
current trusted verifier/revocation adapters, media/rights inspection, approval
verification and safe projection remain #90–#98 responsibilities. Human disclosure
review must inspect free text and output bytes; sentinel checks do not prove safety.

## Adoption and constitutional scope

Merge the coordinated Codex contract PR before this proof. Refresh test pins only
from reviewed exact Codex blobs and verify bytes; do not edit the copies by hand.
Production adoption waits for #99's immutable contract and implementation releases
and full verified artifact tuples. Source commit URLs are not release assets.
Released Prompt SDK/Context Package/Context Builder code, schemas, lockfiles and
artifacts remain unchanged. Rollback removes this test-only consumer.

Constitution: v1.0.0, `constitution/v1.0.0`, Studio commit
`a9cc8a503aa30e17820edc62ac95f7cbe10e0564`; Studio ADR 0018 at
`7b5065cef76bea9580609caba356b0d8fe7cc17c` governs the boundary. Owner @andrewperis;
Codex and Platform maintainers review the exact PR revisions. Universal,
repository/production-system and automated-workflow design profiles apply to the
consumer seam; this bounded offline proof grants no real access, disclosure,
publication or canon authority. Runtime/release conformance is not claimed.
28 changes: 28 additions & 0 deletions tests/fixtures/comic-manifest-contract-lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"repository": "DefinitelySecureStudio/codex",
"commit": "53e4bd7738ae33c928bf72864d69d413168cc5b4",
"status": "unreleased-test-only",
"artifacts": [
{
"source_path": "schemas/json/comic-manifest/v1/comic-manifest.schema.json",
"path": "tests/fixtures/comic-manifest-v1.schema.json",
"artifact_uri": "https://github.com/DefinitelySecureStudio/codex/blob/53e4bd7738ae33c928bf72864d69d413168cc5b4/schemas/json/comic-manifest/v1/comic-manifest.schema.json",
"byte_size": 29711,
"sha256": "sha256:c9e7d3ee3a9593ec7e85504f680d0cd9b5ece7a6c0db22f4a7152d08b6db2f5c"
},
{
"source_path": "fixtures/comic-manifest-v1.json",
"path": "tests/fixtures/comic-manifest-v1.json",
"artifact_uri": "https://github.com/DefinitelySecureStudio/codex/blob/53e4bd7738ae33c928bf72864d69d413168cc5b4/fixtures/comic-manifest-v1.json",
"byte_size": 27425,
"sha256": "sha256:bc0a33418a57446953d917ffab1f77c9f39911bef7ef27b70d108ffa32e8aca7"
},
{
"source_path": "fixtures/context-builder-v1.json",
"path": "tests/fixtures/context-builder-v1.json",
"artifact_uri": "https://github.com/DefinitelySecureStudio/codex/blob/53e4bd7738ae33c928bf72864d69d413168cc5b4/fixtures/context-builder-v1.json",
"byte_size": 19808,
"sha256": "sha256:b1fe9076bd0d9637bdc638436de1cbab0a9d11916a9eb5e279fe60191c2aa743"
}
]
}
Loading
Loading