Per-tenant confidence-threshold gate overload (config↔gate wiring)

Featurekamo-shared-library
Shipped
June 26, 2026 at 4:15 PM UTC
Author
Kamo
Commit
64b8f53

Additive DecisionGate.evaluate(stage, confidence, legallyRequiresHuman, BigDecimal tenantThresholdOverride) — the autonomy-tuned per-tenant wall resolved by **************** stage, floor). The legal wall stays absolute and the override is STILL floored by the non-tunable safety floor (autonomy can never auto-act below it). Null override falls back to the platform default; the existing 3-arg evaluate() delegates with null, so the shipped gate/DecisionSpine behavior + their tests are unchanged. Added safetyFloor() getter so a caller resolves the tenant threshold against the same floor. This connects the Phase-1 config foundation to the decision gate: an engine can now do gate.evaluate(stage, conf, legal, **************** stage, **************** 9 DecisionGateTest (4 new) + 5 DecisionSpineTest + 6 MlosActivationServiceTest green.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing