0.7.4 gives the Ambient pack weather. A page names one feed URL on its own site, and the pack sets data-weather from it, uses its sunrise and sunset for dawn and dusk, and never shows a stale observation. Helpers for producing the feed from Open-Meteo are included. Ambient p…
Document provenance disclosure panel showing authorship, trust badges, content history, and AI provenance declarations.
Overview
The <page-info> component is a disclosure panel for document provenance. Its trust bar summary shows author, date, and a trust badge at a glance. Clicking expands a detail panel with authorship, history, and AI provenance information.
Without JavaScript, the <details>/<summary> structure provides native expand/collapse behavior. With JS, the component adds relative time rendering and reading time computation.
<page-info><details><summary><spanclass="page-info-author">Jane Doe</span><spanclass="page-info-sep"aria-hidden="true">·</span><timedatetime="2026-03-15"data-relative> 15 March 2026</time><spanclass="page-info-sep"aria-hidden="true">·</span><spanclass="page-info-badge"data-provenance="ai-assisted"data-trust="declared"> Human-written, AI-assisted</span></summary><sectionclass="page-info-panel"><section><h2class="page-info-section-heading">Author</h2><ulclass="page-info-author-list"><li><address><ahref="/team/jane"rel="author">Jane Doe</a><spanclass="page-info-role">Lead author</span></address></li></ul></section><section><h2class="page-info-section-heading">History</h2><dl><div><dt>Published</dt><dd><timedatetime="2026-01-10">January 10, 2026</time></dd></div><div><dt>Last updated</dt><dd><timedatetime="2026-03-15"data-relative> 15 March 2026</time></dd></div><div><dt>Version</dt><dd>1.4.0</dd></div><div><dt>Reading time</dt><dddata-reading-time>—</dd></div></dl></section><section><h2class="page-info-section-heading">How this was made</h2><dl><div><dt>Authorship</dt><dd>Human-written, AI-assisted</dd></div><div><dt>AI tools used</dt><dd>Claude Sonnet 4 — research and drafting</dd></div><div><dt>Review</dt><dd>Editor-reviewed</dd></div></dl></section></section></details></page-info>
Keep links out of <summary>: it is the disclosure control, so a link inside it competes with the toggle. Put the author link in the panel and plain text in the summary.
In static markup the component enhances three hooks: time[data-relative] (localized relative time, absolute date in title), any element with data-reading-time (filled with the estimated reading time), and the first .page-info-badge (trust tier).
Auto Mode
When the CMS cannot easily render the full static markup, auto makes the component self-contained. It reads the meta-tag contract fields from the page <head> and renders the panel. Every value is inserted as text, never as markup, and links are only rendered when they resolve to http: or https:.
Auto mode
1
<page-infoauto></page-info>
Meta tags read in auto mode
Head metadata
1234567891011121314151617
<!-- Section A: public standards --><metaname="author"content="Jane Doe"><linkrel="author"href="/team/jane"><!-- or meta property="article:author" --><metaname="last-modified"content="2026-03-15"><!-- or meta property="article:modified_time" --><metaproperty="article:published_time"content="2026-01-10T00:00:00Z"><metaitemprop="version"content="1.4.0"><metaname="license"content="CC BY 4.0"><linkrel="license"href="https://creativecommons.org/licenses/by/4.0/"><metaname="keywords"content="provenance, metadata"><!-- Section B: vb:* namespace --><metaname="vb:provenance"content="ai-assisted"><metaname="vb:ai-tools"content="Claude Sonnet 4"><metaname="vb:review"content="editor-reviewed"><metaname="vb:status"content="published"><metaname="vb:version-url"content="/changelog#v1-4-0"><metaname="concept"content="provenance"><!-- repeat per concept -->
Concept IDs link to /topics/{id}/. Set data-concept-base to point them elsewhere, for example data-concept-base="/tags/". A vb:status other than published also adds a status badge to the summary.
Provenance Vocabulary
The vb:provenance meta tag and data-provenanceattribute use the controlled vocabulary defined in data-provenance. Core tokens describe how the content was produced; extension tokens compose with a core value (space-separated; labels are joined with ·). Unknown tokens are shown as written.
Token
Type
Display Label
human
core
Human written
ai-assisted
core
Human-written, AI-assisted
ai-generated
core
AI-generated
translated
extension
Translated
synthesized
extension
Synthesized from sources
migrated
extension
Migrated content
Review level (vb:review: Unreviewed, Fact-checked, Editor-reviewed) and publication state (vb:status: Draft, Published, Archived) are declared separately; see data-review and data-status.
Verification Tiers
The badge data-trustattribute holds the runtime verification tier. The component starts at declared (or undeclared) and, when the page carries <meta name="vb:signature">, fetches the link rel="author-key" JWK and checks the vb:hash tag (when present) and the signature against the canonical document. The tier is also written as visible text inside the badge (for example Human-written, AI-assisted · Verified), so it never depends on colour alone. See data-trust.
Tier
data-trust
Badge text
Meaning
0
undeclared
—
No provenance metadata
1
declared
Self-declared
Provenance claimed, not verified
3
verified
Verified
Rendered content matches the cryptographic signature
−1
failed
Signature failed
Signature present but content doesn't match, the vb:hash tag doesn't match, the algorithm is unsupported, or no author key is linked
−1
failed
Key not from this site
The author key is on another origin. The key must be same-origin with the page and is not fetched otherwise.
−1
failed
Key expired
The date in the key's metadata.expires has passed
−2
key-unavailable
Key unavailable
Signature present but the author key could not be fetched or imported
The signed url is the raw href of <link rel="canonical"> (normalized when absolute; an empty string when there is no canonical link). The build-time signer and the browser verifier use the same rule, so pages with a relative canonical link, or none, still verify.
Relative times use Intl.RelativeTimeFormat and reading time uses Intl.NumberFormat, both in the language of the closest [lang] ancestor. Future dates read in 3 days. Reading time counts the page's outermost [data-signable] roots at 238 words per minute (500 characters per minute for Chinese and Japanese), the same rules as <page-stats>; [data-signable="false"], hidden content and scripts are skipped.
Events
Event
Detail
Description
page-info:verified
{ status: string, tier: number, reason?: string }
Bubbles. Fired on connect with the declared tier, then again with the verification result when the page is signed. reason is ok, mismatch, hash-mismatch, key-origin, key-expired, missing-author-key, unsupported-algorithm:…, canonicalize:…, verify:…, or the key fetch error.
Event handling
123456
// Listen for trust assessmentdocument.addEventListener('page-info:verified', (e) => {console.log(e.detail.status); // 'declared', then 'verified'console.log(e.detail.tier); // 1, then 3console.log(e.detail.reason); // undefined, then 'ok'});
Granularity
The author chooses what to expose by varying the content inside <page-info>. A minimal usage with only an author and date renders a compact trust bar; a fully-populated panel surfaces every metadata section. Same component, different depths — matching how photo EXIF data has a small always-present core (date, format) and expands from there.
The autoattribute renders the entire component from the <meta> tags in the document head, useful when the same metadata is needed for SEO and the visible disclosure panel.
Accessibility
<details>/<summary> provides native expand/collapse without JavaScript
The summary holds only text; links live in the expanded panel so they do not compete with the disclosure toggle
The trust tier is spelled out as text inside the badge and the badge colours use AA text tokens; colour is never the only signal. If static markup puts an aria-label on the badge, the component appends the tier to the authored label instead of piling up suffixes
Separator dots use aria-hidden="true"
Section headings are real headings (level set with data-heading-level), so the panel shows up in heading navigation
Relative time text replaces the <time> content; the datetimeattribute keeps the machine-readable date and title shows the absolute date