⚠️ Experimental — Lists the Guild diary learning review queue: proposed insights (suggestions) aggregated with any linked draft artifacts.
Prefer this when you want the same combined view as the Diary Learning UI. For a flat insights list with richer filters use sg_diary_insights. For raw daily diary markdown use sg_agent_diaries. Read-only — approve/dismiss happens outside Terraform. Respects provider workspace_id for workspace scoping.
# When to use: Read the Institutional Learning review queue (proposed insights
# plus any materialized draft artifacts). Pair with sg_il_reflection_config.
data "sg_diary_learning_queue" "pending" {
status = "proposed"
limit = 20
}
output "queue_total" {
value = data.sg_diary_learning_queue.pending.total
}
agent_name (String) Filter queue items associated with this agent name.category (String) Filter by insight category.limit (Number) Maximum number of queue items to return.offset (Number) Number of items to skip for pagination.status (String) Queue filter. Defaults to proposed on the API. Use proposed, materialized, dismissed, or all.items (Attributes List) Diary learning review queue items (insights plus any linked draft artifacts). (see below for nested schema)total (Number) Total matching queue items reported by the API.itemsRead-Only:
insight (Attributes) The diary insight / suggestion for this queue row. (see below for nested schema)kind (String) Queue item kind (typically insight).materialized (Attributes) Linked draft artifact when the insight has been materialized. (see below for nested schema)items.insightRead-Only:
agent_names (List of String) Agents whose diaries contributed to this insight.category (String) Insight category (recurring_failure, task_sequence, policy_friction, efficiency_opportunity, missing_capability, cost_pattern).confidence (Number) Model confidence score for this insight.created_at (String) Creation timestamp (RFC 3339).date_range (String) Diary date range covered by this insight.description (String) Longer explanation of the detected pattern.evidence (Attributes) Signals that support this insight. (see below for nested schema)id (String) Unique diary insight UUID.proposed_action (Attributes) Suggested follow-up action (e.g. create a skill or runbook). (see below for nested schema)reviewed_at (String) When the insight was reviewed (RFC 3339).reviewed_by (String) Operator who approved or dismissed the insight.status (String) Review lifecycle status (proposed, approved, dismissed, materialized).tags (List of String) Tags associated with the insight.title (String) Short human-readable insight title.updated_at (String) Last update timestamp (RFC 3339).items.insight.evidenceRead-Only:
audit_event_types (List of String) Audit event types cited as evidence.diary_entry_agent (String) Agent name for the linked diary entry.diary_entry_date (String) Diary entry date (YYYY-MM-DD) linked to this insight.episodic_memory_ids (List of String) Episodic memory point IDs cited as evidence.items.insight.proposed_actionRead-Only:
materialized_ref (Attributes) Link to a draft artifact created after approval, when present. (see below for nested schema)rationale (String) Why this action was proposed.target_name (String) Suggested target name for the action (e.g. skill or runbook name).type (String) Proposed action type.items.insight.proposed_action.materialized_refRead-Only:
href (String) Optional UI or API href for the artifact.id (String) Materialized artifact identifier.name (String) Materialized artifact name.status (String) Materialized artifact status.type (String) Materialized artifact type (e.g. skill, runbook).version (Number) Materialized artifact version when applicable.items.materializedRead-Only:
href (String) Optional UI or API href for the artifact.id (String) Materialized artifact identifier.name (String) Materialized artifact name.status (String) Materialized artifact status.type (String) Materialized artifact type (e.g. skill, runbook).version (Number) Materialized artifact version when applicable.