Re-exports§
pub use consciousness_thresholds as phi_thresholds;pub use consciousness_thresholds::ConsciousnessThresholds;pub use consciousness_thresholds::PhiThresholds;pub use consciousness_profile::bootstrap_credential;pub use consciousness_profile::decay_reputation;pub use consciousness_profile::evaluate_bootstrap_governance;pub use consciousness_profile::evaluate_governance;pub use consciousness_profile::evaluate_governance_with_reputation;pub use consciousness_profile::is_bootstrap_eligible;pub use consciousness_profile::needs_refresh;pub use consciousness_profile::requirement_for_basic;pub use consciousness_profile::requirement_for_constitutional;pub use consciousness_profile::requirement_for_guardian;pub use consciousness_profile::requirement_for_proposal;pub use consciousness_profile::requirement_for_voting;pub use consciousness_profile::ConsciousnessCredential;Deprecated pub use consciousness_profile::ConsciousnessProfile;pub use consciousness_profile::ConsciousnessTier;Deprecated pub use consciousness_profile::ExtensionKey;pub use consciousness_profile::GateAuditInput;pub use consciousness_profile::GovernanceAuditFilter;pub use consciousness_profile::GovernanceAuditResult;pub use consciousness_profile::GovernanceEligibility;pub use consciousness_profile::GovernanceRequirement;Deprecated pub use consciousness_profile::ReputationState;pub use consciousness_profile::GRACE_PERIOD_US;pub use consciousness_profile::REFRESH_WINDOW_US;pub use consciousness_profile::REPUTATION_BLACKLIST_THRESHOLD;pub use consciousness_profile::REPUTATION_DECAY_PER_DAY;pub use consciousness_profile::REPUTATION_MAX_SLASHES;pub use consciousness_profile::REPUTATION_RESTORATION_INTERACTIONS;pub use consciousness_profile::REPUTATION_SLASH_FACTOR;pub use collective_phi::AgentConsciousnessVector;pub use collective_phi::CollectivePhiEngine;pub use collective_phi::CollectivePhiResult;pub use collective_phi::COLLECTIVE_PHI_MAX_SYNC;pub use routing::resolve_civic_zome;pub use routing::resolve_commons_zome;pub use routing::BridgeDomain;pub use routing::CivicZome;pub use routing::CommonsZome;pub use routing::CrossClusterRole;pub use routing::CIVIC_DOMAINS;pub use routing::COMMONS_DOMAINS;
Modules§
- collective_
phi - Collective Phi — Group Consciousness Measurement
- consciousness_
profile - Multi-dimensional consciousness profile for governance gating.
- consciousness_
thresholds - Canonical consciousness threshold configuration — single source of truth.
- consciousness_
zkp - Zero-knowledge consciousness tier attestation.
- constitutional_
envelope - Constitutional Envelope — Immutable Governance Invariants
- membership_
zkp - Privacy-preserving membership verification for cross-cluster bridges.
- metrics
- Lightweight in-memory bridge metrics collection.
- notifications
- Shared notification helpers for bridge coordinator zomes.
- offline_
credential - Offline-resilient credential extensions for Mycelix identity.
- routing
- Type-safe bridge dispatch routing.
- routing_
registry - Centralized routing registry for cross-cluster bridge dispatch.
- sovereign_
gate - Sovereign civic gating — 8D replacement for consciousness gating.
- sub_
passport - Sub-Passport – Morally-constrained AI agent delegation.
Structs§
- Audit
Trail Entry - Summary of a single audit trail entry (lightweight, no full record).
- Audit
Trail Query - Input for querying events within a time range, optionally filtered by domain and type.
- Audit
Trail Result - Result of an audit trail query.
- Bridge
Health - Health status for a cluster bridge.
- Budget
Proposal Query - Query: Check budget proposal status (Finance ↔ Governance)
- Budget
Proposal Result - Result: Budget proposal status
- Carbon
Credit Query - Input for querying carbon credits (commons: property → transport)
- Carbon
Credit Result - Result of a carbon credit query
- Carbon
Offset Query - Query: Carbon offset from transport (Climate → Transport/Commons)
- Carbon
Offset Result - Result: Carbon offset calculation
- Care
Availability Query - Input for querying care provider availability (commons: mutualaid → care)
- Care
Availability Result - Result of a care availability query
- Civic
Requirement - A governance requirement specifying minimum tier and optional per-dimension minimums.
- Claim
Verification Query - Query: Verify knowledge claim (Knowledge → Media)
- Claim
Verification Result - Result: Claim verification
- Collateral
Property Query - Query: Verify property as collateral (Finance → Commons)
- Collateral
Property Result - Result: Collateral property status
- Consented
Record Query - Query: Consented health record access (Health → Personal)
- Consented
Record Result - Result: Consented record access
- Correlated
Dispatch - Wrapper for cross-cluster dispatch with audit correlation.
- Cross
Cluster Dispatch Input - Input for dispatching a call to a zome in another DNA within the same hApp.
- Dimension
Weights - Weights for the 8 sovereign dimensions. Must sum to 1.0 (±0.01).
- Dispatch
Input - Input for dispatching a call to any domain zome within a cluster DNA.
- Dispatch
Result - Result of a dispatched cross-domain call.
- Emergency
Care Query - Input for querying available care providers during an emergency (emergency → care)
- Emergency
Care Result - Result of an emergency care provider query
- Emergency
Food Query - Input for querying food availability during an emergency (emergency → food)
- Emergency
Food Result - Result of an emergency food availability query
- Event
Type Query - Query for events by type within a domain.
- Factcheck
Status Query - Input for checking factcheck status (civic: justice → media)
- Factcheck
Status Result - Result of a factcheck status query
- Food
Availability Query - Input for querying food availability (commons: emergency → food, mutualaid → food)
- Food
Availability Result - Result of a food availability query
- Hearth
Care Result - Result of a hearth care query
- Hearth
Emergency Result - Result of a hearth emergency status query
- Hearth
Member Result - Result of a hearth membership query
- Justice
Area Query - Input for checking active cases in an area (civic: emergency → justice)
- Justice
Area Result - Result of an area case query
- Project
Proposal Query - Query: Energy project governance approval (Energy → Governance)
- Project
Proposal Result - Result: Project governance approval
- Property
Ownership Query - Input for verifying property ownership (commons: housing → property)
- Property
Ownership Result - Result of a property ownership verification
- Restitution
Query - Query: Check restitution ability (Civic → Finance)
- Restitution
Result - Result: Restitution check
- Revocation
Ack - Acknowledgment: Revocation received
- Revocation
Notice - Notice: Credential revocation push (Identity → *)
- Shelter
Capacity Query - Input for querying shelter capacity during an emergency (emergency → housing)
- Shelter
Capacity Result - Result of a shelter capacity query
- Sovereign
Credential - A time-limited, cryptographically-bound civic credential.
- Sovereign
Profile - 8-dimensional sovereign civic profile.
- Transport
Route Query - Input for querying transport routes (commons: mutualaid → transport, care → transport)
- Transport
Route Result - Result of a transport route query
- Water
Safety Query - Input for querying water safety in a disaster zone (emergency → water)
- Water
Safety Result - Result of a water safety query
Enums§
- Bridge
Error Code - Structured error codes for bridge dispatch failures.
- Civic
Tier - Progressive civic tier derived from the combined 8D score.
- Constellation
Target - Target for a constellation dispatch. Can be internal (OtherRole) or external (RemoteAgent).
- Notification
Priority - Priority levels for cross-cluster notifications.
- Sovereign
Dimension - The 8 axes of civic identity.
Constants§
- MAX_
DISPATCH_ IDENTIFIER_ BYTES - Maximum dispatch zome/fn_name identifier length (256 bytes).
- MAX_
DISPATCH_ PAYLOAD_ BYTES - Maximum dispatch payload size (1 MB). Prevents memory exhaustion from oversized payloads being cloned into ExternIO.
- RATE_
LIMIT_ MAX_ DISPATCH - Maximum dispatch calls per agent within the rate limit window.
- RATE_
LIMIT_ WINDOW_ SECS - Rate limit window in seconds.
Functions§
- check_
rate_ limit_ count - Check whether the number of recent dispatches exceeds the rate limit.
- civic_
requirement_ basic - Requirement for basic civic participation (viewing proposals, commenting).
- civic_
requirement_ constitutional - Requirement for constitutional changes (amendments, budget).
- civic_
requirement_ guardian - Requirement for guardian-level operations (emergency powers).
- civic_
requirement_ proposal - Requirement for submitting proposals.
- civic_
requirement_ voting - Requirement for casting votes.