Skip to content
Unverified: This page has not yet been anchored to automated code tests.

vox-kb-facets API Reference (generated)

Crate: vox-kb-facets · Version: 0.6.0 · Target: Library (lib.rs)

L0 KB facet contract: facet types, eligibility rule, summary block, provenance validators, taxonomy and backlog (KB Phase 4).

L0 KB facet contract (KB Phase 4, D-01).

Pure: no I/O and no hashing. Lint, indexer, MENS builder and the generated schema all read facets through this crate, so a doc cannot be eligible in one consumer and ineligible in another.

ModuleDescription
backlog—
frontmatter—
keys—
provenance—
summary—
taxonomy—
StructDescription
SourceOne entry of sources[]; every field is optional so a gap is a lint error, not a parse error.
FacetsTyped KB facets read from page frontmatter. Unknown frontmatter keys are ignored.
EnumDescription
AuthorshipWho wrote the page.
OriginHow the page entered the KB.
KbTierWhich collection the page belongs to: Vox docs or the general library.
TrustTierTrust level of the page; same wire strings as ContextTrustTier.
ScopeWhether the page is about Vox internals or external subject matter.
SensitivityEgress sensitivity; private pages must not leave the machine.
FunctionDescription
parse_facetsParse facets from a whole document. No --- fence at all or an empty block is Facets::default() (grandfathered, D-05). A fence that is opened but not recognised (unterminated, indented, preceded by a blank line) or holds an invalid facet value is an Err: callers must treat it as “not eligible”, never as “no facets” (CR-01).
is_valid_attestationTrue when human_attested_by names a person: non-blank and not a placeholder or AI name (case-insensitive, whole value).
forced_training_ineligibleTrue when the page is forced training-ineligible: web-promoted or LLM-authored content with no valid human_attested_by ([is_valid_attestation]).
effective_training_eligibleThe one shared MENS eligibility rule (D-05, D-06): not forced-ineligible and the flag, which defaults to true.
facet_json_schemaDraft-07 JSON Schema for [Facets] (the GUI type and the 04-03 golden read this).