{# Fragments several areas share. Presentation only — no macro here decides anything, and none takes a value that is not already on a payload. #} {% macro failed(panel) %} {# A panel whose operation failed, rendered where it sits so the rest of the page still says what it knows. The error's type, message and hint are the same three fields every other surface reports; nothing is softened and nothing is invented. #}
{{ panel.op }} failed
{% if panel.error %}{{ panel.error.type }}
{{ panel.error.message }}
{% if panel.error.hint %}{{ panel.error.hint }}
{% endif %} {% endif %}{{ item.quote }}{% endif %}
{{ message }}
{% endmacro %} {% macro knowledge(record) %} {# What a structured memory rests on. Nothing for a document that is not one. Every value is rendered as text, **including the locator**. It is restricted to http and https before it is stored, so a link would be safe — but an address that is never an `href` has no sink to get wrong, and the same is true of the quote, which is somebody else's message. The word is "attested", not "verified": these are the sources the memory's author recorded, and nothing here was opened or checked. `verified` is what an answer citation's quotation is when it resolves against the text it cites, and the two must not be readable as one. #} {% if record %}This memory declares a record that could not be used. {{ record.unavailable_reason }}
{% else %}{{ source.quote }}
{{ source.locator }}
{% for link in record.relationships %}{{ link.relation }} {{ link.target }}{% if not loop.last %} · {% endif %}{% endfor %}