Suggestion
object type
A Suggestion: a declared SKILL's detector minted this offer from bounded live reads: the WHY in merchant words, the EVIDENCE refs (exactly what it looked at), a DRAFTED PLAN in wire vocabulary (the {operation, input} shape), and an expiry. System-minted end to end (authorless — no create/edit surface exists; refreshSuggestions is the only entrance). the offer rule: a caller sees only suggestions whose drafted plan THEIR OWN capability could realize — the list filters, the get answers null, and take/decline enforce the same predicate (preview ≡ enforcement). TAKING mints a Scratchpad through the live spine (origin suggestion; the plan lands via the setScratchpadPlan validate/mark path VERBATIM — stale steps arrive MARKED, never repaired); DECLINING stores the learning reason on the record. Every suggestion drills down to the SuggestionSchema that produced it. The ops event domain (at.ops.suggestion.*).
Fields
| Field | Type | Notes |
|---|---|---|
id | ID ID! | The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it. |
sysId | String String! | The group-scoped human-facing system id (SU-…). |
type | String String! | The kind of record — always Suggestion here. |
caption | String String! | The record’s display name — what people see it called. |
status | String String! | The FSM state: open | taken | declined | expired | superseded. |
parentId | ID ID! | The Organization whose desk holds the offer; rootId = the org group. |
rootId | ID ID! | The org-group family root. |
createdAt | String String! | When the record was created, as a UTC timestamp. |
updatedAt | String String! | When the record last changed, as a UTC timestamp. |
revisionNum | Int Int! | How many times this record has been edited; the first save is 0. |
revision | ID ID! | The OCC revision token — supply it on every mutation of this record; rotates on every write. |
refCaptions | RefCaption [RefCaption!]! | The server-composed captions of this record's declared references (the referenced-caption rule) — one row per referenced id; see RefCaption. |
skill | String String! | The declared skill that produced this offer (low_stock | aging_approvals | stock_imbalance — the registry; a skill is declared, never emergent). |
schemaId | ID ID! | The per-org schema registration that generated it (the v2 drill-down — provenance to the generator). |
why | String String! | WHY, in merchant words (≤2000). |
evidenceRefs | TaskConstructRef [TaskConstructRef!]! | Exactly what the detector looked at (the Task {type, id} structured-ref shape reused — ≤16). |
draftedPlan | SuggestionPlanStep [SuggestionPlanStep!]! | The drafted plan in wire vocabulary. |
dedupKey | String String! | The (skill × subject) identity (≤256) — the refresh dedup law: an identical open twin skips the mint; changed content supersedes and mints fresh. |
expiresAt | String String! | The offer's lapse instant (mint + 7 days, ISO-8601): the sweep expires it, and a take/decline past it refuses CONFLICT/EXPIRED lazily expiring on the touch. |
takenScratchpadId | ID | TAKE-stamped (with the taken flip — one fact): the Scratchpad the take minted through the live spine; the provenance forward. |
declineReason | String | DECLINE-stamped (with the declined flip): the stored learning judgment. |