Skip to main content

Module taxonomy

Module taxonomy 

Source
Expand description

Extensible taxonomy primitives — the base for the AuthorityType and GuardianshipRole vocabularies (see docs/plans/adr-authority-attestation-guardianship-model.md).

Design constraint (Timothy, 2026-07-03): must be extensible. Terms are therefore data, not a closed Rust enum — a Taxonomy is an open registry of TaxonomyTerms keyed by a stable URI id (which q_hashes cleanly and can be exported to / loaded from a cooperative ontology). New terms can be added at load-time (ontology) or runtime without changing these types. Each term carries an attribute bag so ABAC axioms and jurisdiction facets can grow without a schema migration. Well-known terms also get const ids so code references them without magic strings.

Structs§

Taxonomy
An open registry of terms. Both AuthorityType and GuardianshipRole are Taxonomys. Extensible: insert adds or replaces a term by id; nothing here is closed at compile time.
TaxonomyTerm
A single term in some taxonomy: a stable id, a human label, an optional grouping category (a coarser term id), and an open attribute bag for ABAC / ontological axioms.

Enums§

Sphere
Selfhood vs personhood (Timothy): selfhood is inherent to the person and non-delegable by default (genome, biometrics, reproductive autonomy); personhood is the socio-legal relationship between an agent and societal structures, which may be delegated under a role.

Type Aliases§

TermId
A stable term identifier — a URI, e.g. urn:qualia:guardianship-role:welfare:healthcare-proxy. Kept as String (not an enum) so the vocabulary is open/extensible.