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
@@ -25,6 +25,10 @@ export const SentMessageSchema = z.strictObject({
|
||||
postImageAnalysis: z.string().optional(),
|
||||
postCreatedAt: z.number().optional(),
|
||||
owner: RedditAccountOwnerSchema.optional(),
|
||||
// Attribution/learning fields added by the conversation learning loop.
|
||||
matrixEventId: z.string().nullable().optional(),
|
||||
imageOutcomeCredit: z.string().nullable().optional(),
|
||||
imageOutcomeAt: z.number().nullable().optional(),
|
||||
});
|
||||
export const MessagesResponseSchema = z.array(SentMessageSchema);
|
||||
|
||||
|
||||
Reference in new issue
Block a user