Skip to content

SummaryPanel

<caos-summary-panel>

the Summarize capability’s binding: prose whose claims carry fieldRef citations back into the record

May be placed on a record page, a page inside an app and an app’s home page.

Name Attribute Description Type Default Required
prose prose, markup only The summary body, with citation markers written in square brackets — [1], [rev]. Empty or whitespace-only draws the refusal line rather than an empty panel. text none declared Optional
citations property only The fieldRef citations: { marker, object, field, recordId?, value? }[]. marker is the token as it appears in the prose WITHOUT its brackets. A property, because it is structured data. A citation whose marker is nowhere in the prose is reported through orphaned rather than dropped. json empty list Optional
refusalText refusal-text, markup only What to say when no summary was produced. text No summary was produced. An empty answer is reported rather than shown. Optional
uncitedLabel uncited-label, markup only How an uncited claim is announced to a screen reader, before the sentence itself. text Uncited claim Optional
Name When it fires What it carries
caos-summary-cite a citation marker is pressed { object, field, recordId, marker } — the field to open; recordId is null when the surface’s own record is meant

Not documented yet — this piece has not said.

Not documented yet — this piece has not said.

Not documented yet — this piece has not said.

Name Type What it tells you
uncited string[] The sentences carrying a number and no citation. Read it to GATE publishing a summary rather than only to colour it — which is the difference between a warning and a control.
orphaned CaosSummaryCitation[] Citations whose marker appears nowhere in the prose, so a reader can never reach them. This is how a summary ends up looking fully cited while half its citations point at nothing.
fullyCited boolean Every quantitative claim carries a citation, and every citation is reachable.
empty boolean There is no summary — the contract’s empty_output, readable without parsing the panel.
Part Which piece of it When it is there
::part(summary) The outer column. Always
::part(prose) The summary body. a summary was produced
::part(sentence) One sentence of the body. Always
::part(uncited) A sentence carrying a number and no citation. at least one claim is uncited
::part(citation) One citation marker, as a control that opens the field. Always
::part(verdict) The line under the prose saying what is and is not traceable. Always
::part(refusal) The “no summary was produced” panel. prose is empty

Wherever a generated summary is read for a decision, and somebody will be asked where a number in it came from.

  • MessageBubble — the prose is one turn of a conversation. A bubble is a message with an author and a time; this is an answer with provenance.
  • NoticeBanner — the text is the platform speaking — a warning, a state, an instruction — rather than a generated answer.
  • DetailSection — the facts can be shown as fields. A summary is for when the shape of the answer is prose.

Each citation is a real button whose accessible name reads the field it opens and, where one was supplied, the value it was read from — so a reader can check a claim without leaving the panel. An uncited sentence carries an aria-label naming it as an uncited claim and then repeating the sentence, because the tint behind it is not a word and a monochrome display would show nothing at all. The verdict line is a role="status" live region, so a summary that arrives short of citations is announced rather than only redrawn.

The case the capability is for. Each figure carries a marker that opens the field it came from, and the verdict line says so — so a reader who is going to repeat one of these numbers can check it first.

{
"id": "example",
"section": "Every number traced to a field",
"columns": 1,
"items": [
{
"id": "summary_panel_1",
"type": "component",
"key": "summary_panel",
"inputs": {
"prose": "The account has been open since 2019 [1] and carries 4 active contracts [2]. Its last payment arrived on 12 October [3].",
"citations": [
{
"marker": "1",
"object": "account",
"field": "created_at",
"value": "2019-03-04"
},
{
"marker": "2",
"object": "account",
"field": "active_contract_count",
"value": "4"
},
{
"marker": "3",
"object": "payment",
"field": "received_at",
"recordId": "pay_9912",
"value": "2026-10-12"
}
]
}
}
]
}
<caos-summary-panel id="summaryPanel1" prose="The account has been open since 2019 [1] and carries 4 active contracts [2]. Its last payment arrived on 12 October [3]."></caos-summary-panel>
// What an attribute cannot hold, set as a property — the same values the preview is drawn with.
const summaryPanel1 = document.getElementById('summaryPanel1');
summaryPanel1.citations = [
{
"marker": "1",
"object": "account",
"field": "created_at",
"value": "2019-03-04"
},
{
"marker": "2",
"object": "account",
"field": "active_contract_count",
"value": "4"
},
{
"marker": "3",
"object": "payment",
"field": "received_at",
"recordId": "pay_9912",
"value": "2026-10-12"
}
];

The middle sentence states a figure and cites nothing, so it is marked and counted. This is the failure the panel exists to make visible: the prose reads exactly as authoritatively as the cited sentences around it.

{
"id": "example",
"section": "A number nothing backs",
"columns": 1,
"items": [
{
"id": "summary_panel_1",
"type": "component",
"key": "summary_panel",
"inputs": {
"prose": "The account has been open since 2019 [1]. It is responsible for roughly 18% of regional revenue. Its last payment arrived on 12 October [3].",
"citations": [
{
"marker": "1",
"object": "account",
"field": "created_at",
"value": "2019-03-04"
},
{
"marker": "3",
"object": "payment",
"field": "received_at",
"recordId": "pay_9912"
}
]
}
}
]
}
<caos-summary-panel id="summaryPanel1" prose="The account has been open since 2019 [1]. It is responsible for roughly 18% of regional revenue. Its last payment arrived on 12 October [3]."></caos-summary-panel>
// What an attribute cannot hold, set as a property — the same values the preview is drawn with.
const summaryPanel1 = document.getElementById('summaryPanel1');
summaryPanel1.citations = [
{
"marker": "1",
"object": "account",
"field": "created_at",
"value": "2019-03-04"
},
{
"marker": "3",
"object": "payment",
"field": "received_at",
"recordId": "pay_9912"
}
];

Four citations were supplied and one names a marker the prose never uses. It is reported rather than dropped, because a long citation list beside clean prose is exactly how nobody notices.

{
"id": "example",
"section": "A citation pointing at nothing",
"columns": 1,
"items": [
{
"id": "summary_panel_1",
"type": "component",
"key": "summary_panel",
"inputs": {
"prose": "The account has been open since 2019 [1] and carries 4 active contracts [2].",
"citations": [
{
"marker": "1",
"object": "account",
"field": "created_at"
},
{
"marker": "2",
"object": "account",
"field": "active_contract_count"
},
{
"marker": "7",
"object": "account",
"field": "industry"
}
]
}
}
]
}
<caos-summary-panel id="summaryPanel1" prose="The account has been open since 2019 [1] and carries 4 active contracts [2]."></caos-summary-panel>
// What an attribute cannot hold, set as a property — the same values the preview is drawn with.
const summaryPanel1 = document.getElementById('summaryPanel1');
summaryPanel1.citations = [
{
"marker": "1",
"object": "account",
"field": "created_at"
},
{
"marker": "2",
"object": "account",
"field": "active_contract_count"
},
{
"marker": "7",
"object": "account",
"field": "industry"
}
];

The contract reports an empty body as empty_output rather than letting it pass as an answer, and the panel says the same thing on screen instead of drawing an empty box that reads as still loading.

{
"id": "example",
"section": "No summary at all",
"columns": 1,
"items": [
{
"id": "summary_panel_1",
"type": "component",
"key": "summary_panel",
"inputs": {
"prose": " "
}
}
]
}
<caos-summary-panel prose=" "></caos-summary-panel>