SELECT [Id], [WorkspaceId], [AgentId], [DecisionKey], [Action], [Summary], [Rationale], [Confidence], [ScoreDelta], [SupportingSignalsJson], [MetadataJson], [GeneratedAt], [Status], [StatusUpdatedAt], [StatusChangedByUserId], [StatusReason], [ExpiresAt], [CreatedAt], [UpdatedAt]
FROM [dbo].[AgentOutcomeLearningProposals]
WHERE [WorkspaceId] = @WorkspaceId
  AND (@Status IS NULL
   OR [Status] = @Status)
ORDER BY [GeneratedAt] DESC;
