Perseus Computing develops pure-Rust crates for microsecond context budgeting, encrypted local memory concurrency, and tamper-evident audit logs.
Eviction occurs deterministically through explicit priority policies (Fifo, LowestPriority, TruncateTail, LeastRelevant). Context ceiling is enforced with absolute token bounds before model inference invocation.
pub struct TokenBudget {
pub total_budget: usize,
pub reserved_completion: usize,
pub reserved_tools: usize,
pub safety_margin: usize,
}
pub enum PrunePolicy {
Fifo,
LowestPriority,
TruncateTail,
LeastRelevant,
}
Deterministic context window budgeting and priority token pruning. Harpe governs agent token allocations before inference calls to eliminate rate overflows and bounded degradation.
use harpe::{TokenBudget, PrunePolicy};
fn main() -> Result<(), Box<dyn std::error::Error>> {
// Initialize token budget with strict allocations
let mut budget = TokenBudget::new(8192);
budget.reserved_completion = 1024;
budget.reserved_tools = 512;
budget.safety_margin = 128;
let available = budget.available_context();
assert_eq!(available, 6528);
// Verify context limits prior to inference execution
let prompt_tokens = 5400;
if budget.is_exceeded(prompt_tokens) {
println!("Pruning triggered under policy: {:?}", PrunePolicy::LowestPriority);
} else {
println!("Context allocation verified: {:.2}% utilized", budget.utilization_pct(prompt_tokens));
}
Ok(())
}
| Subsystem Crate | Evaluation Condition | Metric | Measurement | Verification Invariant |
|---|---|---|---|---|
| harpe | Context Pruning (128k Token Limit) | p50 Latency | 1.72 µs | Deterministic eviction without token distortion |
| harpe | High Contention Peak Window | p95 Latency | 4.88 µs | Strict sub-5µs bounding on all eviction curves |
| harpe | Dynamic Multi-Turn Compression | Ceiling Reduction | 69.50% | Prevents context runaway while retaining core trajectory |
| kibisis | Concurrent Read/Write Leases | Throughput | 1,745,000+ ops/s | Zero data races under 100% thread contention |
| kibisis | 10-Node Edge Swarm Partition | Split-Brain Count | 0 Errors | 100% state convergence under 50% simulated packet loss |
| argus-ledger | Append Event to Merkle DAG | Append Latency | 4.12 µs | SHA-256 continuous hash continuity preserved |
| argus-ledger | Single-Bit Corrupt Inspection | Detection Latency | 46.00 µs | Immediate fail-closed validation rejection |
{
"suite": "perseus-benchmarks",
"version": "0.1.0-alpha.2",
"rig": {
"os": "Linux 6.18.38-Unraid x86_64",
"compiler": "rustc 1.85.0 (nightly)",
"profile": "release",
"opt_level": 3,
"lto": "fat",
"cpu_affinity": "isolcpus=2-7"
},
"results": {
"harpe": {
"p50_latency_micros": 1.72,
"p95_latency_micros": 4.88,
"ceiling_reduction_pct": 69.5,
"allocations_per_cycle": 0
},
"kibisis": {
"ops_per_second": 1745280,
"sustained_writes_per_sec": 2140000,
"lock_contention_races": 0,
"recovery_time_ms": 0.42
},
"argus": {
"append_latency_micros": 4.12,
"tamper_detection_micros": 46.0,
"hash_primitive": "SHA-256",
"fail_closed_verified": true
},
"longmemeval_s": {
"instances": 500,
"total_sessions": 23854,
"runtime_seconds": 7.45,
"recall_at_1": 0.872,
"recall_at_10": 0.982,
"mrr": 0.9111
}
}
}
Primary GitHub organization hosting pure-Rust source trees, benchmark test beds, and CI validation suites.
Published packages ready for instant cargo compilation across x86_64 and aarch64 architectures.
Complete rustdoc generation including memory safety invariants, error types, and trait definitions.
Perseus Computing maintains active compliance records and government self-assessments. All components are written in Rust from scratch without third-party proprietary dependencies.
Direct communication channels for systems architects, researchers, and security disclosures. Encrypted correspondence preferred for vulnerability reporting.