1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//! Tiles Integration - Adapter for cognitum-gate-kernel (256-tile WASM fabric)
//!
//! This module provides the coherence fabric adapter that wraps the `cognitum-gate-kernel`
//! crate, enabling distributed coherence computation across 256 WASM tiles.
//!
//! # Architecture
//!
//! The coherence fabric consists of 256 worker tiles, each running a lightweight kernel.
//! Tiles receive delta updates and observations, process them through a deterministic tick
//! loop, and produce witness fragments for global aggregation.
//!
//! # Key Types
//!
//! - [`CoherenceFabric`]: Main coordinator for all 256 tiles
//! - [`TileAdapter`]: Adapter wrapping a single `cognitum_gate_kernel::TileState`
//! - [`TileCoordinator`]: Coordinates tile communication and aggregation
//! - [`FabricReport`]: Aggregated report from all tiles after a tick
//!
//! # Example
//!
//! ```rust,ignore
//! use prime_radiant::tiles::{CoherenceFabric, FabricConfig};
//!
//! // Create fabric with default configuration
//! let mut fabric = CoherenceFabric::new(FabricConfig::default());
//!
//! // Distribute a node update
//! fabric.distribute_update(node_id, &new_state);
//!
//! // Execute one tick across all tiles
//! let report = fabric.tick(1);
//!
//! // Check global coherence
//! println!("Global energy: {}", report.global_energy);
//! ```
pub use ;
pub use ;
pub use ;
pub use ;