Contract API¶
ZEO Creator ships its versioned JSON Schemas inside the wheel and commits copies
under reference/schemas.
zeo-creator contracts list --json
zeo-creator contracts export --output=./schemas
zeo-creator contract-schema --name=content-brief --version=1
Every catalog entry contains the stable name, contract major, filename, and RFC 8785 canonical SHA-256 digest. Consumers should pin both the contract name and major, then verify the digest before accepting an exported schema.
Compatibility and version axes¶
ZEO Creator versions three surfaces independently:
| Axis | Example | Changes when |
|---|---|---|
| Package | 0.5.4 |
Code, documentation, or bundled contracts are released |
| Capability | creator.create_content_brief@1.0.0 |
Request/response behavior or orchestration-facing semantics change |
| Contract schema | content-brief@1 |
Serialized contract compatibility changes |
Package releases may add implementations or documentation without changing a capability or schema version. Backward-compatible schema additions remain within the same major only when existing strict consumers can accept them; otherwise a new schema major and filename are required. Capability IDs change independently when the invocation contract or observable behavior is incompatible. The earlier Git-only development line removed unsafe email preparation APIs without aliases; its archived schemas remain available. Version 0.5.4 uses email v4. Pin versions and follow explicit migration instructions for future incompatible changes.
Publication and evidence¶
zeo_creator.contracts.publications ¶
Publication identity and brand isolation contracts.
zeo_creator.contracts.evidence ¶
Evidence provenance and publication-scoped research synthesis contracts.
Editorial planning¶
zeo_creator.contracts.editorial ¶
Cadence-neutral content portfolio and assignment contracts.
Continuous newsroom interchange¶
zeo_creator.contracts.newsroom ¶
Provider-neutral contracts for continuous editorial operations.
Commentary¶
zeo_creator.contracts.commentary ¶
Provider-neutral social conversation and commentary contracts.
Newsletter specialization¶
zeo_creator.contracts.newsletter ¶
Newsletter specializations over story dossiers and edition plans.
Journalism integrity¶
zeo_creator.contracts.journalism ¶
News publishing integrity contracts.
Production boundary¶
zeo_creator.contracts.production ¶
Producer-neutral creative brief and extension contracts.
Delivery and distribution¶
zeo_creator.contracts.delivery ¶
Producer-neutral artifact bundles and digest-bound delivery reviews.
zeo_creator.contracts.distribution ¶
Provider-neutral publication proposals and secret-safe receipt contracts.
Performance¶
zeo_creator.contracts.performance ¶
Publication-scoped performance observation and assessment contracts.
Common identity and canonicalization¶
zeo_creator.contracts.common ¶
Shared immutable identity, timestamp, revision, and digest contracts.
CreatorModel ¶
Bases: BaseModel
Strict immutable base for public ZEO Creator contracts.
Source code in src/zeo_creator/contracts/common.py
normalize_direct_timestamps ¶
Reject naïve datetimes and persist direct timestamp fields as UTC.
Source code in src/zeo_creator/contracts/common.py
DurableArtifact ¶
Bases: CreatorModel
Fields common to durable, revisioned creator-domain artifacts.
Source code in src/zeo_creator/contracts/common.py
assert_secret_safe ¶
Reject credential-shaped keys recursively without inspecting secret stores.
Source code in src/zeo_creator/contracts/common.py
canonical_bytes ¶
canonical_digest ¶
digest_is_current ¶
Detect stale artifacts, including unsafe model_copy mutations.
stable_id ¶
Derive a readable stable identifier from immutable input identity.
Email marketing v1¶
The additive email family uses new contract names. Existing v1 newsletter,
AudienceSelection, performance and generic distribution schemas are unchanged.
All email references carry organization/publication, revision and digest.
EmailEffectIntent describes editorial intent; executable identities reference
public Zeocore CapabilityId values. Simulated example identities are not a
provider protocol and must never be used as live connector operations.
zeo_creator.contracts.email_marketing ¶
Version 4 email marketing artifacts. Intent and evidence confer no effect authority.
All references are opaque, scoped and digest-bound. Subscriber records and provider payloads have no representation. Runtime owns reference resolution and authorization.
EmailEffectIntent ¶
Bases: StrEnum
Editorial intent only. Zeocore owns the executable operation vocabulary.
Source code in src/zeo_creator/contracts/email_marketing.py
EmailReviewEvidence ¶
Bases: EmailArtifact
Caller-supplied review evidence; authenticity is verified by the controlling runtime.