Canonical shape
Every case carries the same envelope:| Field | Type | Notes |
|---|---|---|
case_id | string | Globally unique. Idempotency anchor. |
type | enum | transaction · kyc · kyb |
subject | object | The entity the case is about (see below by type). |
payload | object | Type-specific body. |
opened_at | datetime | When the case entered Frayme. |
subject shape varies with the case type:
- transaction
- kyc
- kyb
Lifecycle of a case
Open
Posted to the workflow endpoint or fanned-out from a stream. Validated
against the workflow’s input schema.
Evaluate
Rule, Decision Table, AI and Scorecard nodes consume the enriched context
and emit a verdict.
Route
Split nodes send the case down the appropriate branch — auto-approve, manual
review, block, regulator report.
Idempotency
Frayme can receive anidempotencyKey as the idempotency key. A second post with the same key returns the previously committed decision rather than re-running the graph.