How spookynetwork/krakenos works
Kraken is a modular Rust operating-system kernel for controlling a distributed event DAG under adversarial conditions. Its principal loop ingests telemetry, estimates system risk in the PSC, routes proposed signals and agent requests through control-plane policy, verifies and gates transitions, then executes mutations. Agents and memory provide a parallel cognitive and persistence branch; mesh, proof, and recovery crates support distributed operation. The README documents several integrations whose implementation wiring was not sampled, so those links are shown only where explicitly described.
Main entry points: arbitration.rs Policy arbitration · manager.rs Execution envelope · lib.rs Swarm orchestration · store.rs Dual-channel store
Components 31
Control and observability
- Signal ingestion
krk-attention/src/ingestion.rs - Telemetry
krk-obs/src/lib.rs - Collapse pressure
krk-pressure/src/lib.rs - Phase controller
krk-psc/src/lib.rs - Policy arbitration
krk-control-plane/src/arbitration.rs - Authority
krk-control-plane/src/authority.rs - Constraints
krk-control-plane/src/constraints.rs - Policy stack
krk-control-plane/src/policy.rs - Signal routing
krk-control-plane/src/router.rs - Scheduling
krk-control-plane/src/scheduler.rs
Agents and memory
- Swarm orchestration
krk-agent-swarm/src/lib.rs - Specialist agents
krk-agent-swarm/src/agents.rs - Action coordination
krk-agent-swarm/src/coordination.rs - Dual-channel store
krk-memory-plane/src/store.rs - Raw capture
krk-memory-plane/src/memarch.rs - Canonical memory
krk-memory-plane/src/hermes.rs
Execution and verification
- Execution envelope
krk-sandbox/src/manager.rs - Doctrine policy
krk-doctrine/src/runtime/bindings.rs - SMT transition checks
krk-sat/src/lib.rs - Safe transitions
krk-safety-kernel/src/lib.rs - State mutation
krk-kernel/src/transition.rs - Merkle DAG state
krk-state/src/lib.rs - WASM executor
krk-wasm/src/lib.rs
Distributed integrity
- Gossip mesh
krk-dcmp/src/lib.rs - Effect equivalence
krk-algebra/src/properties.rs - Semantic lattice
krk-lattice/src/lib.rs - Byzantine recovery
krk-byzantine/src/lib.rs - Proof lineage
krk-proof-graph/src/lib.rs - Consensus quorum
krk-pbft/src/lib.rs
Other components
- Operator or signals
- Z3 solver
Connections 30
- Operator or signals → Signal ingestion: provides signals
- Signal ingestion → Telemetry: maps signals
- Telemetry → Phase controller: supplies telemetry
- Collapse pressure → Phase controller: informs control
- Phase controller → Policy arbitration: proposes signals
- Swarm orchestration → Policy arbitration: requests authorization
- Policy arbitration → Policy stack: evaluates policies
krk-control-plane/src/lib.rs - Policy arbitration → Authority: escalates authority
krk-control-plane/src/lib.rs - Policy arbitration → Constraints: checks constraints
krk-control-plane/src/lib.rs - Policy arbitration → Signal routing: routes decisions
krk-control-plane/src/lib.rs - Policy arbitration → Scheduling: schedules actions
krk-control-plane/src/lib.rs - Signal routing → Execution envelope: authorizes execution
- Execution envelope → Doctrine policy: validates actions
krk-sandbox/src/manager.rs - Execution envelope → Specialist agents: bounds agent actions
krk-agent-swarm/src/agents.rs - Swarm orchestration → Specialist agents: ticks agents
krk-agent-swarm/src/lib.rs - Swarm orchestration → Action coordination: filters actions
krk-agent-swarm/src/lib.rs - Specialist agents → Dual-channel store: records actions
- Dual-channel store → Raw capture: appends events
krk-memory-plane/src/store.rs - Dual-channel store → Canonical memory: compresses facts
krk-memory-plane/src/store.rs - Execution envelope → SMT transition checks: gates transitions
- SMT transition checks → Z3 solver: runs SMT queries
krk-sat/src/lib.rs - SMT transition checks → Safe transitions: verifies transitions
- Safe transitions → State mutation: executes transitions
- State mutation → Merkle DAG state: mutates state
- State mutation → WASM executor: dispatches execution
- Gossip mesh → Merkle DAG state: replicates DAG
- Effect equivalence → Semantic lattice: supports equivalence
- Byzantine recovery → Gossip mesh: recovers consensus
- Consensus quorum → Policy arbitration: verifies quorum
- Proof lineage → Merkle DAG state: tracks proof lineage