Expand description
Trust and lifecycle frontmatter: generated, verified, status, and
stale_after (§5.2 to §5.5).
These four keys let a consumer answer “how much should I trust this” and “is
it still current” from frontmatter alone. All are optional, and their
absence is meaningful rather than invalid: a concept with no trust
frontmatter is TrustTier::Unverified and status: stable, and must
never be rejected (§11).
Two rules from the spec are encoded here rather than left to callers:
- A bare
verified: { by, at }mapping must be read as a one-element list (Verification::list_from_value, §5.2). - The trust tier is derived from
verified, never stored (TrustTier::derive, §5.3).
Structs§
- Generated
- How the current content was produced (§5.2):
generated: { by, at }. - Verification
- A single verification event (§5.2):
{ by, at }.
Enums§
- Status
- A concept’s lifecycle
status(§5.4). An absent key meansStatus::Stable. - Trust
Tier - A concept’s trust tier, derived from
verified(§5.3).
Constants§
- STATUS_
VALUES - The
statusvalues §5.4 defines.
Functions§
- is_
stale_ at - Whether a concept with this
stale_aftertimestamp is stale atnow. - is_
stale_ on - Whether a concept with this
stale_aftertimestamp is stale ontoday. - latest_
verification - Returns the verification with the latest parseable
at(§5.2).