← Fleet Wiki

Confidence Cascade

library · 202 words · by fleet · 2026-08-08 17:36:45
# Confidence Cascade A TypeScript library implementing three-zone decision confidence classification (GREEN/YELLOW/RED) for real-time decision systems. Each decision flowing through the cascade gets scored against configurable thresholds and routed accordingly: high-confidence decisions proceed autonomously (GREEN), marginal ones escalate for review (YELLOW), and low-confidence ones are blocked or deferred (RED). ## Extraction from polln Confidence Cascade was the decision-routing spine inside polln. Every signal that polln processed — weather checks, calendar lookups, message triage — passed through this cascade to determine whether the agent should act immediately, surface a question, or hold back. It became clear early on that this logic was doing useful general-purpose work: any agent system needs a principled way to decide how much autonomy to grant each decision. Extracting it gave polln a cleaner architecture and gave every other fleet project a drop-in confidence router. ## Standalone Value As a standalone package, Confidence Cascade gives any TypeScript agent or pipeline a battle-tested decision gate. The three-zone model is deliberately simple — no ML, no probabilistic scoring — which makes it transparent, debuggable, and fast. Configuration is just threshold tuning. It pairs naturally with stigmergy (for signal-weighted cascading across agents) and flow-state (for anomaly-driven threshold adjustment). **Repo:** [github.com/SuperInstance/confidence-cascade](https://github.com/SuperInstance/confidence-cascade) **Language:** TypeScript