Skip to main content

Crate qualia_client_core

Crate qualia_client_core 

Source

Re-exports§

pub use api::*;
pub use state::*;

Modules§

accountability_ledger
Tamper-evident accountability ledger — the append-only, ed25519-signed, hash-chained store that makes the conduct + disclosure records un-erasable (tamper-evident) and attributable (signed).
accountability_store
Persistence for the accountability fabric — the on-disk home for the tamper-evident AccountabilityLedger, the revocable ConsentCredentials, and the durable ConductRecords (ADR 0011 D2/D4/D5). It turns the tested domain models into something the desktop can actually use.
activity_signals
Cross-crate activity flags for ambient telemetry (ontology jobs, inference, …).
agent_registry
Per-principal roster of software agents.
agreements
First-class peer-agreement store — the terms of a relationship between parties.
anatomy_context
Builds Anatomy representation context by merging knowledge catalog, chat text, and optional live daemon query results.
api
Client API surface — split into domain sub-modules. All items are re-exported here to preserve the flat pi::function_name() API.
asset_recommendations
Device-aware LLM + ontology recommendations for Design Studio and native runtime.
audio_pipeline
Client-facing auditory Ears MVP + later swarm helpers.
browser_agent
Browser agent (P2 / B4) — page-aware helper for the Webizen browser.
bundled_ontologies
Seed and resolve ontology sources bundled with the desktop app.
bundled_qapps
Seed qapps shipped beside the desktop executable into {storage}/Qapps/.
canvas_state
Runtime Chora navigation state (active world + temporal scrub position).
canvas_store
Persistent store for Chora canvas world configurations.
canvas_world
Chora — spatio-temporal commons canvas world configuration.
chat_agents
Group-chat sub-agent hierarchy — local LLM / Webizen agents are bound to human principals.
chat_files
Session-scoped chat file attachments — PDF/text extraction, image sharing, vision ingest.
chat_graph
Chat graph — selectable fragments and reply edges forming a DAG off the linear chat.
chat_inference
End-to-end Webizen-gated chat inference with retrieval, streaming, and provenance.
chat_mesh
Chat over the SocialWebNet mesh — bridge the chat-graph engine to peer tunnels.
chat_mesh_service
Running chat-over-mesh service — drives ChatMeshBridge over a live MeshService.
chat_ontology
Chat discourse ontology — branch types grounded in WordNet when wordnet.q42 is present.
chat_relay
Group chat relay — publish to daemon inbox and pull from peer relay endpoints.
chat_retrieval
Scoped graph retrieval for chat — local .q42 scan + optional daemon query.
chat_session
Chat session persistence — WAL quins + JSON sidecar under {storage}/Chats/.
chora
Chora — the spatio-temporal commons canvas inside WellFair (Peace Infrastructure).
cloudflare
Cloudflare API client — publishes the QDP front-door DNS record (the easy-install path).
cml_context
CML context loop — chat logs carry Context Markup that binds topic-related semantics into the person’s inforg (their private hypermedia library), which is then reused, permissively, to improve the context given to the local agent.
companion_bundle
Deterministic WellFair companion WASM/PWA bundle builder (Workstream 3, M2).
connection_identifier
Connection identifier — the single signed payload that underlies every connection method (email string, magic link, DNS record, token metadata). It extends the connect-invite with the WireGuard peering material + ordered rendezvous hints, and encodes to a compact, copy-pasteable qcx1_<base64url> string. Self-certifying: ed25519-signed over its own fields, so a recipient verifies it without any third party. See docs/plans/social-network-plan.md §1.
consent_credential
Revocable consent credentials with crypto-enforced payload revocation + a durable, attestable conduct record — the mechanism that resolves “revocable data vs durable accountability” (docs/plans/social-worker-support-and-accountability.md §2 + §4).
context_binding
Compiles chat session scope from installed ontologies, active model, and qapps.
cookie_graph
Cookie / personal-data transparency graph (v0).
dead_mans_switch
Dead-man switch — post-death (or believed-death) disposition of the principal’s data, under gamified validation rules, enacted by the person’s chosen friends who hold the dataset.
directory
Personal directory — an “Active Directory”-like service for a person’s relationships.
disclosure_trace
Disclosure traceability — so a betrayal is knowable and attributable.
dns_resolver
QDP identity resolution — Q42 DNS Overlay.
domains
Domains & mail addresses — the foundation of the domain + semantic-mail/address stack (docs/plans/social-network-plan.md §0.5). A domain/subdomain acts as an agent (QDP — Timothy’s draft-webcivics-QDP: a domain publishes an RDF agent profile at /.well-known/QDP). A person runs several context-domains (personal/work/projects), each with its own front-door DID(s); subdomains serve families/children. A domain may be single-owner or (deferred placeholder) group-owned via an M:N agreement — modelled now so group domains slot in later without a refactor.
duty_of_inquiry
Duty of inquiry — expectations that define negligence.
engine
envelope_encryption
Real envelope encryption for the accountability commons payload — the crypto that makes ConsentCredential’s “revoke destroys the wrapped key ⇒ no key, no payload” a fact, not a model with opaque placeholder bytes.
front_door
Front-door record — how a domain is discovered as an agent (QDP: draft-webcivics-QDP).
github
guardianship
Bilateral guardianship — global suspended-transaction queue for M:N co-signature.
handshake
Mutual challenge-response handshake proving peer identity.
identity_plane
Person ≠ machine ≠ OS-account identity plane.
incapacity_switch
Incapacity switch — involuntary psychiatric admission / serious injury (more common than death), and the discrediting-counter that goes with it.
inference_backend
Persisted inference backend preference (Local / Remote / Hybrid / Ollama).
job_router
Job routing / placement policy — decide where a curated job is processed.
local_job_scheduler
Bounded local job queue for cold-path work (ontology import, daemon reload, …).
magic_link
Magic link — encode/decode a ConnectionIdentifier as a shareable link for email/text/web onboarding. A single connection payload can travel three interchangeable ways, all decoded by from_link:
mail_inbound
Inbound mail acceptance — the path that makes domain mail work.
mail_rules
Mail rules engine — evaluates a mailbox’s MailRules against an inbound message.
mail_store
Local mail message store — where delivered mail actually lives.
mail_transport
SMTP send + IMAP fetch transport for the semantic mail client.
mcp_tool_loop
Principal-gated MCP tool loop (U3-A / U3-B).
mesh_channel
Reliable message channel over the mesh datagram transport.
model_lifecycle
Catalog LLM download → GGUF shard map → WAL → lifecycle (in-process).
model_preferences
User-defined LLM load priority and conditional selection.
node_identity
Node cryptographic identity — the node’s persisted signing + WireGuard keys.
ollama_harness
Optional Ollama HTTP harness for inference when the native Qualia GGUF path is unavailable or the principal explicitly selects Ollama.
ontology_router
Prompt-to-ontology routing for contextual inference.
ontology_workbench
Ontology Hub workbench — URI import, .c.q42 distribution, WebTorrent magnets, sharing.
prerequisites
Windows desktop runtime prerequisites (WebView2 + VC++ redistributable).
project_collab
Lightweight cooperative project registry + collaborator roster for Talk → Projects.
provider_credentials
OS-keychain backed credentials for user-configured inference connections.
q42_compress
LZ4 distribution artifacts — legacy .c.q42 alias for browser / WebTorrent deploy.
qapp_api
Zero-allocation scoped query execution boundary for Flutter qapps.
qapp_install
Atomic qApp package installation into {storage}/Qapps/.
qapp_manifest
Boot-time Qapp capability compilation for the 42MB Sentinel hot loop.
qapp_mcp
qapp_paths
Storage path helpers for installed Qualia qapps.
qapp_registry
qapp_version
Semver-style version parsing and comparison for qapp.json version fields.
qapps_protocol
Loopback HTTP server mirroring Tauri’s qualia://localhost/ custom protocol.
qdp_http
QDP-over-HTTP — serve the rich /.well-known/QDP profile over a local HTTP listener.
qdp_resolver
QDP front-door resolver over DNS-over-HTTPS (DoH) — QDP §3.6.
qdp_server
QDP profile renderer — HTTP content-negotiation for the /.well-known/QDP profile.
qpu_dispatcher
HTTP egress to all supported QPU providers — blind numeric payloads only.
qpu_oracle
Person-controlled QPU Oracle — BYOK remote quantum offload for NP-hard tasks.
qpu_pipeline
End-to-end quantum pipeline: compile → egress → re-hydrate.
remote_mcp
Remote-MCP inference backend — reach an external provider (Claude / Google / X, or another Webizen node) over the Model Context Protocol to run a completion on the person’s behalf.
resource_import
Catalog ontology download → .q42 import pipeline (in-process, no subprocess).
setup
Persisted first-run setup state for the desktop shell.
shamir_recovery
Shamir Secret Sharing over GF(2⁸) — the primitive for social recovery of a key without the owner.
social_connect
Connect codes, signed invites, and friend contacts for group chat.
social_mesh
Social ↔ mesh bridge — bring the SocialWebNet mesh up from identity + the peer store.
social_peers
SocialWebNet peer store.
solid_chat
Solid Chat interop — bidirectional mapping between the native chat model and the SolidOS “long chat” data model (https://solid.github.io/chat/), without degrading the native format.
state
studio_pane_generator
Keyword- and domain-driven pane layout planner for the studio prompt bar.
studio_pane_llm
Optional local-LLM layout generation for /generate_pane.
studio_workspace_wal
Quin-backed audit trail for studio workspace deploys.
system_telemetry
Structured system telemetry events for Flutter HUD (100 ms during activation).
update_installer
Download platform installers and launch them (Tauri updater parity for Flutter desktop).
user_profile
Local user profile and sharing policy for chats and connect invites.
view_host
App-global entity-view host (desktop-wide session + projectors; product mindware is whole Qualia). App-global entity-view session composition (desktop-wide, not browser-only).
vision_10d_browse
F1 — list / inspect sealed vision .10d assets under storage.
vision_10d_load
F2 + D3 + F3 + F4 — load sealed vision .10d into mesh + spectral/acoustic paint.
vision_10d_rights
F4 — rights / attestation barrier for vision .10d browse and load.
vision_ingest
Multimodal image ingest — binds assets to active mmproj + WAL (no Ollama).
vision_pipeline
End-to-end native vision pipeline (MVP + GSW W/G/S).
wallet
webizen_trust
Webizen trust store — user-controlled trust anchors (P1).
webizen_x509
Bounded X.509 helpers for Webizen trust (swarm-2 Track C / D6).
wellfair