AlmondTill/G3N API

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

FieldTypeNotes
idID ID!The record’s id — a UUID the platform assigned when the record was created; every reference to this record uses it.
sysIdString String!The human-readable id, shaped like SU-… — stable for the record’s life.
typeString String!The kind of record — always Suggestion here.
captionString String!The record’s display name — what people see it called.
statusString String!The record’s current state — one of open, taken, declined, expired or superseded.
parentIdID ID!The Organization whose desk holds the offer; rootId = the org group.
rootIdID ID!The id of your organization group — every record of yours carries the same one.
createdAtString String!When the record was created, as a UTC timestamp.
updatedAtString String!When the record last changed, as a UTC timestamp.
revisionNumInt Int!How many times this record has been edited; the first save is 0.
revisionID 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.
refCaptionsRefCaption [RefCaption!]!The captions of the records this one refers to, composed for you — one row per referenced id; see RefCaption.
skillString String!The declared skill that produced this offer.
schemaIdID ID!The per-org schema registration that generated it.
whyString String!WHY, in merchant words (≤2000).
evidenceRefsTaskConstructRef [TaskConstructRef!]!Exactly what the detector looked at (the Task {type, id} structured-ref shape reused — ≤16).
draftedPlanSuggestionPlanStep [SuggestionPlanStep!]!The drafted plan in wire vocabulary.
dedupKeyString String!The (skill × subject) identity (≤256) — the refresh dedup law: an identical open twin skips the mint; changed content supersedes and mints fresh.
expiresAtString 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.
takenScratchpadIdIDTake-stamped (with the taken flip — one fact): the Scratchpad the take minted through the live spine; the provenance forward.
declineReasonStringDecline-stamped (with the declined flip): the stored learning judgment.

Used by