Producer: the host whose admin skill saves metadata drafts from an ask
turn. At the end of a streamed turn that saved at least one draft, before
the stream's finish, it sends one UI-message-stream data part named
DRAFT_REVIEW_PART_TYPE whose data is a
DraftReviewListSchema list, in save order.
Reader: the console's chat (extractDraftReview in
@object-ui/plugin-chatbot). It reads the part through this schema; a part
the schema refuses draws no card, and the answer renders as it does
without one.
type, name, package name the saved draft; label is its display
label when the draft has one. One row per draft, unique by package,
type and name: a draft the turn saved more than once is one row, placed
at its first save and carrying the verdict read last. The rows (and the
cap and omitted) count drafts, not saves.
verdict is the light authoring door's own list_drafts verdict on the
draft — publishable is "no refusal", refusals are what a publish would
refuse it on and advisories are findings that do not block it — read as
the person who asked. null when no verdict was read: verdictWithheld
then says why the person may not read one, or verdictError that reading
it failed. Both carry the door's { code, message, status }.
verdictRead says when the verdict was read: turn-end, after the turn's
last save, or save, by the save that wrote this draft (a later save in
the same turn can change it).
review holds the two Studio routes where a person reviews the draft, as
the door hands them out (studioChangesReviewLink,
studioItemReviewLink in @objectstack/types): changes, the package's
Changes drawer, where it is published, and item, the draft's own review.
Both are Console paths, so each starts with one /.
Nothing is published or discarded from the chat: a person publishes in
Studio, through the review routes, as for any draft. The part is drawn live
only: it is not stored with the message, so a conversation reloaded from
history shows no card.
The saved drafts, in save order, at most 50: one row per draft, unique by package, type and name. A draft the turn saved more than once is one row, placed at its first save and carrying the verdict read last
omitted
integer
optional
How many more drafts (not saves) the turn saved beyond the 50 listed; absent when none
Stable diagnostic rule id (flow-multi-write-unfiltered, approval-expression-invalid, …). Machine-readable and stable across releases — the key a renderer groups or suppresses by.
path
string
✅
Config path inside the SUBMITTED body (flows[0].nodes[1].config.multi), so an editor can jump to the offending key. May be empty when the finding is about the item as a whole. The TOP-LEVEL collection entry follows one rule. The gate evaluates against a private per-write snapshot whose indexes no caller can resolve; a collection-resident write type is one whose collection that snapshot fills with the tenant's other stored items beside the written one, and there the entry is keyed by NAME, never by an array index — for example objects.acme_invoice.sharingModel (an object write) or datasets.acme_invoice_metrics.dimensions[0].field (a dataset write). Every other write type is the sole member of its own collection in that snapshot, so its [0] IS the written item and stays positional (for example flows[0]...). Which write types are collection-resident is derived, never listed: @objectstack/lint's runtime gate computes the set (NAME_KEYED_STACK_KEYS) as the collections it carries as resolution context that a gated write type also lands in, so it changes with the gate, not with this text. An entry whose name cannot be spliced into a dotted path keeps its index. Nested positions inside one named item stay positional (objects.acme_invoice.indexes[1]): they index the author's own document.
where
string
✅
Human-readable location — flow "leave_approval" · node "approve". Prose for a person; use path for anything mechanical.
message
string
✅
What is wrong, in the rule author's own words.
hint
string
✅
How to fix it.
severity
Enum<'error' | 'warning' | 'info'>
✅
How the gate treated this finding. error means the write was REFUSED (these appear on the 422, never on a 2xx); warning / info are advisory — the write succeeded and the finding is FYI.
userMessage
string
optional
The finding's user-facing sentence, composed by its producer in the request's locale (else the workspace default locale, else en) — the same field name and producer-marked meaning as ApiErrorSchema.userMessage. Present only when the producer authors a user sentence for this rule; absent, a consumer renders message as before. Consumers render it as received; rule stays the stable id and message / hint stay the developer-facing text.
Stable diagnostic rule id (flow-multi-write-unfiltered, approval-expression-invalid, …). Machine-readable and stable across releases — the key a renderer groups or suppresses by.
path
string
✅
Config path inside the SUBMITTED body (flows[0].nodes[1].config.multi), so an editor can jump to the offending key. May be empty when the finding is about the item as a whole. The TOP-LEVEL collection entry follows one rule. The gate evaluates against a private per-write snapshot whose indexes no caller can resolve; a collection-resident write type is one whose collection that snapshot fills with the tenant's other stored items beside the written one, and there the entry is keyed by NAME, never by an array index — for example objects.acme_invoice.sharingModel (an object write) or datasets.acme_invoice_metrics.dimensions[0].field (a dataset write). Every other write type is the sole member of its own collection in that snapshot, so its [0] IS the written item and stays positional (for example flows[0]...). Which write types are collection-resident is derived, never listed: @objectstack/lint's runtime gate computes the set (NAME_KEYED_STACK_KEYS) as the collections it carries as resolution context that a gated write type also lands in, so it changes with the gate, not with this text. An entry whose name cannot be spliced into a dotted path keeps its index. Nested positions inside one named item stay positional (objects.acme_invoice.indexes[1]): they index the author's own document.
where
string
✅
Human-readable location — flow "leave_approval" · node "approve". Prose for a person; use path for anything mechanical.
message
string
✅
What is wrong, in the rule author's own words.
hint
string
✅
How to fix it.
severity
Enum<'error' | 'warning' | 'info'>
✅
How the gate treated this finding. error means the write was REFUSED (these appear on the 422, never on a 2xx); warning / info are advisory — the write succeeded and the finding is FYI.
userMessage
string
optional
The finding's user-facing sentence, composed by its producer in the request's locale (else the workspace default locale, else en) — the same field name and producer-marked meaning as ApiErrorSchema.userMessage. Present only when the producer authors a user sentence for this rule; absent, a consumer renders message as before. Consumers render it as received; rule stays the stable id and message / hint stay the developer-facing text.