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 (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

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 group-scoped human-facing system id (SU-…).
typeString String!The kind of record — always Suggestion here.
captionString String!The record’s display name — what people see it called.
statusString String!The FSM state: open | taken | declined | expired | superseded.
parentIdID ID!The Organization whose desk holds the offer; rootId = the org group.
rootIdID ID!The org-group family root.
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 OCC revision token — supply it on every mutation of this record; rotates on every write.
refCaptionsRefCaption [RefCaption!]!The server-composed captions of this record's declared references (the referenced-caption rule) — one row per referenced id; see RefCaption.
skillString String!The declared skill that produced this offer (low_stock | aging_approvals | stock_imbalance — the registry; a skill is declared, never emergent).
schemaIdID ID!The per-org schema registration that generated it (the v2 drill-down — provenance to the generator).
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