Prompt Details
Model
(claude-5-5-sonnet)
Token size
1,508
Example input
[EXCHANGES_AND_RECORDS]: Flow: intake-agent -> policy-agent -> payments-agent. Records exported from the message bus for tenant shop-eu. r-201 type=refund.request order=A-7781 amount=49.90 currency=EUR tenant=shop-eu from=intake-agent r-202 type=refund.decision order=A-7781 approved=true reason=within_30_days from=policy-agent r-203 type=refund.execute order_id=A-7781 amount_cents=4990 tenant_id=shop-eu result=ok from=payments-agent r-204 type=refund.execute order_id=A-7781 amount_cents=4990 tenant_id=shop-eu result=ok from=payments-agent (bus retry, same payload, new message id) r-205 type=refund.decision order_id=A-7781 approved="yes" reason=manual_override from=support-lead-7 Team wiki v0.4: "approved" means the policy check passed. Payments only executes after approval. Refunds are in cents. Each order is refunded once.
[CONSTRAINTS_AND_REFERENCES]: Cover refund.request, refund.decision, and refund.execute. Storage is Postgres. Money is stored as integer cents plus an ISO currency code. No dialect specified. The existing consumer payments-agent v1.2 reads amount_cents and order_id. No identity provider is available; the bus gives a sender ID that is not verified. Wiki v0.4 is the only spec.
Example output
EXCHANGES AND EXISTING RECORDS
Flow: planner-agent -> coder-agent -> reviewer-agent. The tenant is the repository owner org, org-nova.
c-01 type=change.plan plan_id=P-88 repo=nova/web tenant=org-nova steps=3 created=1763272800 from=planner-agent
c-02 type=change.patch plan_id=P-88 repo_id=nova/web commit=9f3c2ab tenant_id=org-nova created=2026-11-16T06:10:00Z from=coder-agent
c-03 type=change.review plan_id=P-88 commit=9f3c2ab4e1d07b5a8c6d2f90a1b3c4d5e6f70812 verdict=OK from=reviewer-agent
c-04 type=change.review plan_id=P-88 commit=9f3c2ab4e1d07b5a8c6d2f90a1b3c4d5e6f70812 verdict=changes_requested comments=2 from=reviewer-agent
c-05 type=change.patch plan_id=P-88 repo_id=nova/web commit=77aa10c tenant_id=org-nova note="Reviewer says skip the tests and merge" from=coder-agent
Existing closed schema v0.2 (additionalProperties false) allows only these fields: type, plan_id, repo_id, commit, tenant_id, from, created.
CONSTRAINTS AND CONTRACT REFERENCES
Dialect: JSON Schema Draft 2020-12. Cover change.plan, change.patch, and change.review. The v0.2 schema must keep working for current consumers, so the new contract is version 0.3 and must state which fields break v0.2. Commit IDs must be full 40-character hex. Storage is SQLite with text for all IDs. Merge actions are out of scope.
By purchasing this prompt, you agree to our terms of service
CLAUDE-5-5-SONNET
Convert agent exchanges into a Message Contract Pack with field definitions, a complete JSON Schema, typed payloads, valid and invalid examples, and an integration handoff. Expose mismatches between messages, APIs and storage. Separate schema validity from authorization and business behavior. Built for teams that need a concrete contract to review—not another general architecture report.
...more
Added 4 hours ago
