# 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](/types/#scalars) `ID!` | The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it. |
| `sysId` | [String](/types/#scalars) `String!` | The group-scoped human-facing system id (SU-…). |
| `type` | [String](/types/#scalars) `String!` | The kind of record — always `Suggestion` here. |
| `caption` | [String](/types/#scalars) `String!` | The record’s display name — what people see it called. |
| `status` | [String](/types/#scalars) `String!` | The FSM state: open \| taken \| declined \| expired \| superseded. |
| `parentId` | [ID](/types/#scalars) `ID!` | The Organization whose desk holds the offer; rootId = the org group. |
| `rootId` | [ID](/types/#scalars) `ID!` | The org-group family root. |
| `createdAt` | [String](/types/#scalars) `String!` | When the record was created, as a UTC timestamp. |
| `updatedAt` | [String](/types/#scalars) `String!` | When the record last changed, as a UTC timestamp. |
| `revisionNum` | [Int](/types/#scalars) `Int!` | How many times this record has been edited; the first save is 0. |
| `revision` | [ID](/types/#scalars) `ID!` | The OCC revision token — supply it on every mutation of this record; rotates on every write. |
| `refCaptions` | [RefCaption](/types/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](/types/#scalars) `String!` | The declared skill that produced this offer (low_stock \| aging_approvals \| stock_imbalance — the registry; a skill is declared, never emergent). |
| `schemaId` | [ID](/types/#scalars) `ID!` | The per-org schema registration that generated it (the v2 drill-down — provenance to the generator). |
| `why` | [String](/types/#scalars) `String!` | WHY, in merchant words (≤2000). |
| `evidenceRefs` | [TaskConstructRef](/types/TaskConstructRef/) `[TaskConstructRef!]!` | Exactly what the detector looked at (the Task {type, id} structured-ref shape reused — ≤16). |
| `draftedPlan` | [SuggestionPlanStep](/types/SuggestionPlanStep/) `[SuggestionPlanStep!]!` | The drafted plan in wire vocabulary. |
| `dedupKey` | [String](/types/#scalars) `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](/types/#scalars) `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](/types/#scalars) | TAKE-stamped (with the taken flip — one fact): the Scratchpad the take minted through the live spine; the provenance forward. |
| `declineReason` | [String](/types/#scalars) | DECLINE-stamped (with the declined flip): the stored learning judgment. |

## Used by

- [declineSuggestion](/reference/suggestion/declineSuggestion/)
- [suggestion](/reference/suggestion/suggestion/)
