Skip to main content

qualia_core_db/net/peer/cells/
mod.rs

1//! Supervised cell admission (RT-02 / E10, **partial**).
2//!
3//! Reserves a bounded number of cell slots against the existing RT-01
4//! [`LeaseTable`](crate::net::peer::runtime::LeaseTable) and
5//! [`ReservationLedger`](crate::net::peer::runtime::ReservationLedger).
6//! This library does **not** own a scheduler, construct [`crate::governance::webizen::SlgArena`],
7//! or allocate backing storage.
8//!
9//! E10.1 production table is 16 caller-backed descriptors / [`admit::MAX_CELLS`]
10//! slots under one [`HostAdmission`]. E10.5 scaling measurement and E10.6
11//! AF_XDP are not implemented here (`PlatformUnsupported` remains correct).
12
13pub mod admit;
14pub mod descriptors;
15pub mod host_owner;
16pub mod isolation;
17pub mod pass_budget;
18pub mod spsc;
19pub mod workers;
20
21pub use admit::{
22    llm_shares_ordinary_network_reserve, CellProfile, CellSlot, CellTable, MAX_CELLS,
23    MAX_ORDINARY_CELL,
24};
25pub use descriptors::{admit_descriptors, CellDescriptor, MAX_DESCRIPTOR_CELLS};
26pub use host_owner::{extra_identity_multiplies_host_budget, HostAdmission, MAX_HOST_BYTES};
27pub use isolation::{admit_llm_cannot_starve_network, llm_backing_profile_allowed};
28pub use pass_budget::{charge_pass, reclaim_pass, PassCharge, PassOutcome, SENTINEL_PASS_TOTAL};
29pub use spsc::{OwnershipReceipt, SpscQueue, SPSC_CAP};
30pub use workers::{
31    cancel_worker, drain_and_handover, fail_worker, release_worker, start_worker, WorkerFence,
32};