AI autonomy config + safety-floor resolver (Phase-1 Slice 2)

Featurekamo-shared-library
Shipped
June 26, 2026 at 2:36 PM UTC
Author
Kamo
Commit
f5b9113

- AiAutonomyConfig (singleton per LenderProfile; autonomyLevel **************** globalDefaultThreshold DECIMAL(4,3), autoExecuteEnabled) + AutonomyStageOverride (per (profile,stage); stageKey reuses LifecycleStage — no separate PipelineStage enum exists; confidenceThreshold + autoExecuteEnabled). Same config-entity base pattern (manual @Id UUID + @Embedded EmbRecordState); UNIQUE(lender_profile_id) singleton + UNIQUE(profile,stage_key). - AutonomyResolver @Component (ungated, stateless like DecisionGate): effectiveThreshold = max(stageOverride?:global, safetyFloor) — autonomy tunes ONLY the confidence wall and can NEVER lower the non-tunable platform floor (doc 13 §8.7); autoExecuteEnabled override-then-global. The per-tenant source for the gate's confidence wall (wiring deferred). 5 AutonomyResolverTest + 4 LicensingResolverTest green (TDD). Indexes entity-declared. mlos.config already in KamoInitializer scan — re-run creates the 2 new tables.

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