AlmondTill/G3N API

Consultation

object type

A Consultation: the verbatim transcript is the record (bounded turn rows — read via consultationTurns) and the memory is the stored rolling summary ON this record — auditable, purgeable, merchant-visible, never hidden model state. Each ask composes the summary + the last 12 turns verbatim + the asked materials' stored extractions (extract-then-compose — raw content is read exactly once, at material confirm). Aldric may attach a drafted plan to a reply; taking a drafted plan (takeConsultationPlan) mints a Scratchpad through the live spine (origin consultation) and the walk proceeds under the taker's own capability (the hardened-Aldric law — the chat holds zero mutation authority). Outgrowing the 200-turn transcript refuses honestly naming the cure: a follow-on consultation linked via followOnOfId (never silent middle-loss). User-parented (the consulter owns the chat), group-rooted. The ops event domain (at.ops.consultation.*).

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 CI-… — stable for the record’s life.
typeString String!The kind of record — always Consultation here.
captionString String!The record’s display name — what people see it called.
statusString String!The record’s current state — one of open, archived or discarded.
parentIdID ID!The consulting User; parentId ≠ rootId by construction (the org group is the root).
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.
turnCountInt Int!The transcript length.
summaryStringThe stored rolling summary.
summarizedThroughSeqInt Int!Turns below this seq live inside the summary; turns from it onward compose verbatim into each ask.
followOnOfIdIDThe outgrowth link — the consultation this one continues.
idleArchiveAtStringSystem-stamped at birth, at every ask and at reopen = the last activity + 30 days — the scheduler archives the conversation at this instant if it is still open; a parked row keeps its last stamp as history.
turnsTierAtStringSystem-stamped when the conversation archives (by you or by the idle sweep) = the archive instant + 90 days — the scheduler moves the transcript to the archive bucket at this instant if the conversation is still archived; reopen removes it; a tiered row carries none.
turnsTierStringPresent (archive) once the transcript has moved to the archive bucket after 90 days archived — consultationTurns still reads it whole (the tier is transparent); taking a drafted plan then needs a reopen first; reopen brings the rows back and clears this. Absent while the rows are hot.

Used by