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, 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 human-readable id, shaped like SU-… — stable for the record’s life. |
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 record’s current state — one of open, taken, declined, expired or superseded. |
parentId | ID ID! | The Organization whose desk holds the offer; rootId = the org group. |
rootId | ID ID! | The id of your organization group — every record of yours carries the same one. |
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 id of the record’s current edit — send it back with a change so an edit made in the meantime is refused instead of overwritten. |
refCaptions | RefCaption [RefCaption!]! | The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption. |
skill | String String! | The declared skill that produced this offer. |
schemaId | ID ID! | The per-org schema registration that generated it. |
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. |