Skip to content

app.ai_suggestion_fields

TableRow level security on

Proposed field values of an AI suggestion, each with a confidence score and provenance agent (rank 40, Section 3.8). A field the source does not support carries NO_ANSWER and what is missing instead of a guessed value (Section 3.7). The value is the model's output (a provider payload).

Primary key: id

Columns of app.ai_suggestion_fields
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.ai_suggestions on insert; never accepted from the caller and never changed.References app.organizations.id
suggestion_iduuidNoSuggestion the field belongs to.References app.ai_suggestions.id
field_pathtextNoAPI field the value is for, for example title or insurance.expires_on.
proposed_valuejsonbYesProposed value as JSON; null when the field is NO_ANSWER.
confidencenumeric(4,3)YesConfidence from 0 to 1; null when the field is NO_ANSWER.
refusaltextYesNO_ANSWER when the source does not support a value; otherwise null.
missingtextYesWhat the source lacks, when the field is NO_ANSWER.
source_excerpttextYesThe passage of the source the value was read from, redacted, so the person can check it.
positionsmallintNoOrder on the confirmation step.
created_attimestamp with time zoneNoWhen the row was inserted. Set by the database.
created_byuuidYesPerson who inserted the row, or null for a platform process. Set by the database.References app.people.id
updated_attimestamp with time zoneNoWhen the row last changed. Set by the database.
updated_byuuidYesPerson who last changed the row, or null for a platform process. Set by the database.References app.people.id
deleted_attimestamp with time zoneYesSoft delete time. A row with deleted_at set is ignored by every access helper.