feat(harness): add chat application use case
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
## 1. Intent and single-turn executors
|
||||
|
||||
- [x] 1.1 Add typed Router input/limits/failure and strict three-enum direct ChatModel implementation with Harness retry auditing.
|
||||
- [x] 1.2 Add fixed SYSTEM_CHAT executor and protocol-neutral application content/status contracts.
|
||||
- [x] 1.3 Add KNOWLEDGE_QUERY executor with one lookup call, bounded RAG input, exact reference validation and ID-free public content.
|
||||
- [x] 1.4 Add focused Router/System/Knowledge tests for mapping, identical retry input, fail-closed routing, one Tool call and fabricated references.
|
||||
|
||||
## 2. PreviousTurn and Run persistence
|
||||
|
||||
- [x] 2.1 Add PublishedResultPolicy and centralized limits for bounded write/read projection and RAG document extraction.
|
||||
- [x] 2.2 Extend DiagnosisRun entity/repository and add V012 migration for intent, release_outcome, published_result and lookup index.
|
||||
- [x] 2.3 Add ChatRunStore/JPA implementation for prior context, start, intent, safe finish and terminal metrics.
|
||||
- [x] 2.4 Add focused policy/store/schema tests covering exact safe query, corrupt JSON, fallback exclusion and field leakage.
|
||||
|
||||
## 3. Application use case
|
||||
|
||||
- [x] 3.1 Add Diagnosis executor that composes stage 4 Agent and stage 5 release into ID-free typed content and optional PublishedResult.
|
||||
- [x] 3.2 Implement ChatApplicationUseCase ordering prior reads, Run persistence, observer start/status, routing, dispatch and first-terminal-wins completion.
|
||||
- [x] 3.3 Add protocol-neutral Run control whose client-disconnect cancellation targets the same RunContext.
|
||||
- [x] 3.4 Add focused end-to-end use-case tests for all intents, original Query, previous turn, consistent IDs, success/fallback/failure/cancel persistence and observer order.
|
||||
|
||||
## 4. Verification and isolation
|
||||
|
||||
- [x] 4.1 Run stage 6A focused tests, relevant stage 2-5 regression tests and Maven compile.
|
||||
- [x] 4.2 Validate strict OpenSpec, migration/entity alignment, no public Controller/frontend diff, no Router/ordinary executor Tool or Agent loop leakage, and no unsafe PublishedResult fields.
|
||||
Reference in New Issue
Block a user