@zthr/intent
Journey cards and their runner. A card states a persona, a goal, what success looks like, what must never happen, the modes and channels it covers, and its action and time budgets. Cards are locked by hash.
erDiagram
CARD { string id PK string persona string goal string phase string delight }
CARD ||--|{ SUCCESS : "succeeds when"
CARD ||--o{ FORBID : "never"
CARD ||--|{ VARIANT : "runs in"
VARIANT { string mode "brief, standard, walk-me-through" string channel "app, text" }
LOCK ||--|{ CARD : "pins sha256 of"Use it for
Journey cards: whole user goals with forbidden outcomes and budgets, locked by hash and run in every mode and channel.
Not for
Unit-level assertions, or editing a goal so that a change passes.
Verified by
- `packages/intent/test/intent-more.test.ts` (12 test definitions)
- `packages/intent/test/intent.test.ts` (6 test definitions)