Expand description
AgencyDelegation — the integrating record for supported agency (ADR §7–§10).
Binds a principal to their agent(s) for a domain of agency, under an AuthorityProfile
(modality × trigger × accountability), gated by a Trigger, anchored to a shared-values
credential (default UN-HR / UNCRC), scoped by ABAC attributes + jurisdiction + precedence
(the backpacker case: family Primary, a local housemate LocalTemporary), with validity,
consent, revocation, an evidence-chain reference, and — for the child-maturation case — a
monotonic developmental transfer schedule.
delegation_permits is the fail-closed ABAC evaluator. Two invariants are load-bearing:
selfhood is never delegated by default (a Selfhood-sphere request is denied unless the
delegation carries an explicit selfhood grant), and consequential-domain judgements require
declared provenance + an epistemic horizon.
Structs§
- Access
Request - A request to act under a delegation.
provenancecarries the declared judgement provenance (required for consequential-domain judgements). - Agency
Delegation - A supported-agency delegation.
- Transfer
Stage - One monotonic transfer step: at
trigger(age milestone / capacity attestation / the child’s declarative claim),domainadvances toto_stage.
Enums§
- Access
Decision - Consent
State - Consent state of the principal. Fail-closed:
Pendingis not effective. - Control
Stage - Control stage of a domain under a developmental (child-maturation) transfer. Monotonic: authority only ever flows toward the principal (ADR §7.2).
- Precedence
- Precedence among agents/delegations. The backpacker case: family back home is
Primary, a local housemate who can help in an emergency isLocalTemporary.
Functions§
- agency_
delegation_ full_ json - The lossless JSON of a delegation — every field. Stored as the journal record’s summary so
the full delegation (authority, trigger, scope, transfer schedule, …) reconstructs on read; the
lossy
agency_delegation_summaryis for compact projections only. - agency_
delegation_ record_ id agency-delegation-recordID.- agency_
delegation_ summary - Agency-delegation summary.
- build_
agency_ delegation_ envelope - Builds agency-delegation-envelope.
- delegation_
permits - Fail-closed, bounded, deterministic ABAC. Order matters: revocation → consent → validity → trigger → domain → selfhood default-deny → consequential-provenance → jurisdiction.
- parse_
agency_ delegation - Reconstruct a delegation from its lossless JSON (as stored by
agency_delegation_full_json).