feat: show the conversation evidence behind each learning trajectory
Reviewers were asked to include or exclude learning trajectories while only seeing metadata — credit class, confidence, status. The decisions and their redacted context turns were already captured and stored, but no endpoint returned them, so the evidence was unreachable from the UI. Add GET /api/learning/trajectories/:id and an expandable row on the learning page that fetches on demand. Also widen SentMessageSchema to accept matrixEventId, imageOutcomeCredit and imageOutcomeAt. The learning loop added these to SentMessageRecord and they flow out of /api/messages, but the strict contract rejected them, breaking the dashboard. Enable generation with shadow mode off so eligible examples reach reply prompts. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
687abab82b
commit
142378df33
25 files changed
+836
-28
No files matched your search
+2
-2
@@ -65,8 +65,8 @@ conversations:
|
||||
|
||||
learning:
|
||||
captureEnabled: true # Build an auditable dataset without changing messages
|
||||
generationEnabled: false # Enable only after the candidate policy passes offline evaluation
|
||||
shadowMode: true # Record which examples would be used without injecting them
|
||||
generationEnabled: true # Retrieve eligible examples for reply generation
|
||||
shadowMode: false # Inject the retrieved examples into prompts (true = audit only)
|
||||
maturityHours: 12
|
||||
maxContextExamples: 3
|
||||
maxTurnsPerExample: 8
|
||||
|
||||
Reference in new issue
Block a user