Persist versioned rule documents, validate before save, seed defaults on startup, and switch the in-memory automaton only after commit.
Co-authored-by: Cursor <cursoragent@cursor.com>
Wire POST /api/v1/asr-events with per-call locking, citizen Final matching, first-alert dedupe, and validation error handling.
Co-authored-by: Cursor <cursoragent@cursor.com>
Support immediate in-memory release via POST /api/v1/calls/{callId}/close while keeping scheduled TTL as a fallback for unclosed sessions.
Co-authored-by: Cursor <cursoragent@cursor.com>
Introduce call-session contracts and Chinese-first normalization, then wire an in-memory Aho-Corasick matcher with overlap aggregation and unit coverage.
Co-authored-by: Cursor <cursoragent@cursor.com>
Add Maven deps, CN mirrors with DNS workaround, H2 file DB config, and empty package layout from the confirmed solution.
Co-authored-by: Cursor <cursoragent@cursor.com>