A governed cognitive OS in one file.
cmpsbl-agent-bestowal.ts ships as a single 5,006-line TypeScript module with zero npm dependencies. Five behavioral engines — DEFENSE, CORTEX, NEXUS, BRAIN, ORACLE — chain into a Lex Gate that decides allow / deny / detach / quarantine / escalate before a single side-effect fires.
- NEXUS multi-provider LLM router — 5 strategies, circuit breakers, cost tracking
- ReAct reasoning loop · SSE streaming · OpenAI-compatible tool framework
- Output Defense Gate: PII redaction, hallucination detection, response signing
- FNV-1a tamper-evident audit chain — every action linked into a verifiable hash chain
- executeProduction() — sandbox + human-approval gate + budget limits, fails closed
