Skip to main content

Crate wm_core

Crate wm_core 

Source
Expand description

WhiteMagic core — types, traits, and the Gana taxonomy

This crate defines the foundational types shared across all WhiteMagic subsystems: the 28 Gana enum, effect rows, tool traits, brain-wave states, and core error types.

Re-exports§

pub use attestation::sign_ed25519;
pub use attestation::sign_hmac;
pub use attestation::verify_ed25519;
pub use attestation::verify_hmac;
pub use brain_wave::BrainWave;
pub use context::Context;
pub use coords::Coordinate5D;
pub use coords::HolographicCoords;
pub use coords::Zone;
pub use coords::find_nearby;
pub use effects::Capability;
pub use effects::CostEstimate;
pub use effects::EffectRow;
pub use effects::Resource;
pub use effects::Sandbox;
pub use episodic::EPISODIC_SCHEMA_VERSION;
pub use episodic::EpisodicCapturePolicy;
pub use episodic::EpisodicId;
pub use episodic::EpisodicKind;
pub use episodic::EpisodicRecord;
pub use episodic::EvidenceRef;
pub use episodic::EvidenceRelation;
pub use episodic::MemoryTransition;
pub use episodic::Provenance;
pub use episodic::ProvenanceSource;
pub use episodic::ValidityState;
pub use episodic::ValidityTransitionError;
pub use error::CoreError;
pub use error::Result;
pub use galaxy::Galaxy;
pub use gana::Gana;
pub use mutable::CycleEffectiveness;
pub use mutable::CycleStrategy;
pub use mutable::DynamicGalaxy;
pub use mutable::DynamicGalaxyRegistry;
pub use mutable::GanaMerge;
pub use mutable::GanaRegistry;
pub use mutable::LearnedCycleStrategy;
pub use mutable::LearnedDreamCycle;
pub use mutable::PhaseEffectiveness;
pub use tool::Args;
pub use tool::Output;
pub use tool::Tool;
pub use tool::ToolStats;
pub use tool::ToolStatsSnapshot;

Modules§

attestation
Tool Capability Attestation — Signed manifests for tool provenance and trust.
brain_wave
Brain-Wave Eco Mode — Five-State Resource Management
context
Context — Per-request execution environment
coords
Holographic Coordinates — 6D spatial-temporal memory addressing
effects
Effect Row System — Inspired by Koka’s Effect Types
episodic
V6 typed contracts for lossless episodic memory.
error
Core error types for WhiteMagic v4.
galaxy
Galaxy — The 16 memory galaxies.
gana
The 28 Gana (Lunar Mansion) Taxonomy
kdf
HKDF-SHA256 derivation for domain-separated subkeys (S9 x Q39).
mutable
Mutable Structures — Phase 6
sandbox
Subprocess spawn policy — the B2 seam between tools and the OS runner.
security
Security validation utilities — SSRF prevention, path traversal detection, and tool description sanitization.
time
Time — one generation point for every persisted timestamp.
tool
Tool Trait — The Fractal Meta-Tool Foundation