Prompt Details
Model
(claude-5-sonnet)
Token size
3,073
Example input
[EVENT_CONTRACT_MATERIAL]: UserEmailVerified v2 event, emitted by the Auth service when a user clicks the verification link in their confirmation email. Schema: user_id (string), verified_at (ISO8601 timestamp), verification_method (enum: email_link, admin_override). Documentation: "fired exactly once when Auth confirms the user's email ownership."
[SYSTEM_CONTEXTS]: Auth service (producer) — single source of truth, emits once per user, enforces idempotency at the database level before publishing. Marketing service (consumer) — reads user_id and verified_at only, uses it to move the user out of the "pending verification" drip campaign. Support Dashboard (consumer) — reads user_id, verified_at, and verification_method to show agents how a user got verified.
[REVIEW_PURPOSE]: Routine pre-release check, no known issues reported, confirming safe to keep as-is after adding the Support Dashboard as a new consumer.
[ARCHITECTURE_CONSTRAINTS]: At-least-once delivery with consumer-side idempotency keys on user_id; ordering not guaranteed but irrelevant here since the event fires once per user lifetime.
Example output
# FINAL VERDICT
- Status: PUBLISH
- Event or contract: UserEmailVerified v2
- Canonical domain fact: The user's email ownership was confirmed by Auth, exactly once per user
- Primary semantic risk: None material — Support Dashboard's use of verification_method is a local projection, not a meaning conflict
- Affected contexts: Auth (producer), Marketing (consumer), Support Dashboard (consumer)
- Required release action: None
- Blocking evidence gap: None
# EVENT IDENTITY
| Element | Established Meaning | Evidence Status | Limitation |
|---|---|---|---|
| Domain fact | User's email ownership confirmed | CONTRACTUALLY DEFINED | None |
| Occurrence condition | Verification link clicked or admin override | CONTRACTUALLY DEFINED | None |
| Entity identity | user_id | CONTRACTUALLY DEFINED | None |
| Lifecycle stage | Single terminal event, no further stages implied | IMPLEMENTATION-OBSERVED | Relies on producer's idempotency claim, not independently verifiable from evidence alone |
| Effective time | verified_at | CONTRACTUALLY DEFINED | None |
| Producer authority | Auth service, stated single source of truth | PRODUCER CLAIM | None material |
| Contract version | v2 | CONTRACTUALLY DEFINED | v1→v2 diff not supplied; not material to this review's purpose |
# CONTEXT PERSPECTIVE MAP
| Context | Role | Interpreted Meaning | Trigger/Use | Contract Support | Unsupported Assumption |
|---|---|---|---|---|---|
| Auth | Producer | Email ownership confirmed, once per user | Publishes on link click or admin override | Full | None |
| Marketing | Consumer | Same as producer meaning | Removes user from drip campaign | Full — uses only contractually defined fields | None |
| Support Dashboard | Consumer | Same as producer meaning, plus displays method | Shows agents verification_method for support context | Full — verification_method is a defined enum, reading it doesn't alter meaning | None |
# MATERIAL SEMANTIC COLLISIONS
None found. All consumers interpret the domain fact identically; Support Dashboard's use of an additional field is a local projection (different subset of fields), not a different meaning.
# FIELD-LEVEL AUDIT
| Field | Producer Meaning | Consumer Meaning | Absence Meaning | Time Meaning | Status | Correction |
|---|---|---|---|---|---|---|
| verification_method | How verification occurred | Same, displayed only | Not nullable per schema | N/A | SEMANTICALLY COMPATIBLE | None required |
# TEMPORAL AND PROVENANCE GAPS
None material to this review's stated purpose.
# CONTRACT ACTION PLAN
1. Release blocker: None
2. Required contract revision: None
3. Required producer change: None
4. Required consumer change: None
5. Validation or migration requirement: None
6. Non-blocking documentation improvement: Document that Auth's idempotency guarantee is enforced at the database layer, since two separate consumers currently rely on "exactly once" without that mechanism being contractually stated
# PROPOSED CONTRACT CORE
Not required — existing contract is sufficient as evaluated.
# QUALITY CHECK
Schema compatibility not conflated with semantic compatibility — confirmed via producer/consumer meaning match, not schema shape alone. Message emission not treated as unstated business proof — verification_method existing in schema doesn't imply a guarantee beyond what's stated. Producer and consumer perspectives evaluated separately in the Perspective Map. No delivery/ordering guarantee invented — idempotency reliance flagged as PRODUCER CLAIM, not treated as a contractual guarantee. Every remediation (the one documentation note) maps to the identity-limitation finding. Verdict follows PUBLISH rule: stable domain fact, compatible interpretations, no assumption exceeds contract.
# INPUT INTEGRITY NOTES
NONE.
By purchasing this prompt, you agree to our terms of service
CLAUDE-5-SONNET
Audits event contracts, schemas, and producer/consumer behavior in an event-driven system for semantic consistency — not just schema compatibility. Separates what actually happened (domain fact) from what merely got published (event occurrence), classifies every material claim by evidence type, and returns one of seven verdicts (PUBLISH / PUBLISH WITH CONDITIONS / REVISE CONTRACT / SPLIT EVENT / RETIRE OR REPLACE / INSUFFICIENT BASIS) with a bounded remediation plan
...more
Added 1 week ago
