Skip to main content

candor_sentinel/
lib.rs

1// candor-sentinel: portable sidecar sentinel pattern.
2//
3// From the design doc: "Relying on a primary agent to evaluate its
4// own outputs creates a circular dependency that fails to catch
5// hallucinations. The architecture introduces a Sentinel Agent."
6//
7// Five explicit guardrails:
8// 1. Verify-First: check local files/docs before acting
9// 2. Scope-Lock: do exactly what was asked, no scope expansion
10// 3. Test-Then-Ship: code must pass tests before commit
11// 4. No-Slop Code: reject dead code, TODOs, narration comments
12// 5. Git-Discipline: feature branches, no force push
13
14pub mod ast_checker;
15pub mod interceptor;
16pub mod rules;
17pub mod slop_detector;
18pub mod doctrine;
19
20pub use interceptor::SentinelInterceptor;