Examples
Five patterns, each anchored to a real framework primitive. Each is ~50–100 lines, runnable as written, copy-pasteable. Replace ${ZSM_KEY} and ${SLUG} with your own.
| Pattern | Primitive | When to reach for it |
|---|---|---|
| Hash-chained IoT heartbeat | POST /api/chain/:slug/event | Devices that need an audited beacon every Zeqond. |
| LLM-agent compliance audit | POST /api/chain/:slug/event + contract | Every model call as a transition; chain proves what the agent saw and did. |
| Conditional release gate | timelock-release Foundations contract | Hold until N sign-offs or a deadline — no funds. |
| Machine-to-machine handshake | custom contract + cross-machine events | Two state machines negotiating a session, both chains witness. |
| Scientific instrument provenance | File events + QM operator sequence | Every reading hash-chained with operator id and CKO. |
Every example assumes you've completed the spin-up tutorial and have:
export ZSM_KEY=zsm_…
export ZID=ZEQ07XXXXXXXXX
export SLUG=your-slug