Loading Lion artifact…
Inspect Lion Program Source (JSON)
[
"begin",
[
"relation",
"task",
[
"id",
"title",
"agent",
"summary"
],
{
"certified": true,
"description": "Dependency-aware coding agent work queue (Beads-style)",
"key": [
"id"
]
}
],
[
"relation",
"blocks",
[
"prereq",
"next_task"
],
{
"certified": true,
"references": {
"next_task": [
"task",
"id"
],
"prereq": [
"task",
"id"
]
}
}
],
[
"relation",
"task_done",
[
"id",
"done"
],
{
"key": [
"id"
]
}
],
[
"relation",
"ui_state",
[
"k",
"v"
],
{
"key": [
"k"
]
}
],
[
"fact",
[
"task",
"t_schema",
"1. Define Schema",
"architect-agent",
"Declare typed relations and foreign keys in Lion JSON."
],
[
"task",
"t_smt",
"2. Add SMT Guard",
"prover-agent",
"Write QF_AUFLIA balance invariant and verify proof/valid?."
],
[
"task",
"t_ui",
"3. Build Lion UI",
"ui-agent",
"Compose ui/graph + linked inspector using pure ui/* nodes."
],
[
"task",
"t_e2e",
"4. Browser E2E",
"qa-agent",
"Verify live rendering, node clicks, and zero console errors."
],
[
"task",
"t_ship",
"5. Export Artifact",
"release-agent",
"Package standalone offline HTML artifact with lion artifact."
],
[
"blocks",
"t_schema",
"t_smt"
],
[
"blocks",
"t_schema",
"t_ui"
],
[
"blocks",
"t_smt",
"t_e2e"
],
[
"blocks",
"t_ui",
"t_e2e"
],
[
"blocks",
"t_e2e",
"t_ship"
],
[
"task_done",
"t_schema",
true
],
[
"task_done",
"t_smt",
false
],
[
"task_done",
"t_ui",
false
],
[
"task_done",
"t_e2e",
false
],
[
"task_done",
"t_ship",
false
],
[
"ui_state",
"selected",
"t_smt"
]
],
[
"relation",
"is_blocked",
[
"id"
]
],
[
"rule",
[
"is_blocked",
"?t"
],
[
"blocks",
"?p",
"?t"
],
[
"task_done",
"?p",
false
]
],
[
"relation",
"task_status",
[
"id",
"status"
]
],
[
"rule",
[
"task_status",
"?t",
"done"
],
[
"task_done",
"?t",
true
]
],
[
"rule",
[
"task_status",
"?t",
"blocked"
],
[
"task_done",
"?t",
false
],
[
"is_blocked",
"?t"
]
],
[
"rule",
[
"task_status",
"?t",
"ready"
],
[
"task_done",
"?t",
false
],
[
"not",
[
"is_blocked",
"?t"
]
]
],
[
"define",
"view",
[
"lambda",
[],
[
"begin",
[
"define",
"sel",
[
"array/head",
[
"find",
"?v",
[
"ui_state",
"selected",
"?v"
]
]
]
],
[
"define",
"done_list",
[
"find",
"?id",
[
"task_status",
"?id",
"done"
]
]
],
[
"define",
"ready_list",
[
"find",
"?id",
[
"task_status",
"?id",
"ready"
]
]
],
[
"define",
"blocked_list",
[
"find",
"?id",
[
"task_status",
"?id",
"blocked"
]
]
],
[
"define",
"nodes",
[
"find",
{
"group": "?st",
"id": "?id",
"label": "?title",
"subtitle": [
"string/join",
[
"array/make",
"?st",
"?ag"
],
" · "
],
"tone": [
"cond",
[
[
"=",
"?st",
"done"
],
"ok"
],
[
[
"=",
"?st",
"ready"
],
"accent"
],
[
"else",
"neutral"
]
]
},
[
"and",
[
"task",
"?id",
"?title",
"?ag",
"?_sum"
],
[
"task_status",
"?id",
"?st"
]
]
]
],
[
"define",
"edges",
[
"find",
{
"from": "?a",
"label": [
"cond",
[
"?d",
"unblocked"
],
[
"else",
"blocking"
]
],
"to": "?b",
"tone": [
"cond",
[
"?d",
"ok"
],
[
"else",
"warn"
]
]
},
[
"and",
[
"blocks",
"?a",
"?b"
],
[
"task_done",
"?a",
"?d"
]
]
]
],
[
"define",
"queue_rows",
[
"find",
{
"agent": "?ag",
"id": "?id",
"status": "?st",
"task": "?title"
},
[
"and",
[
"task",
"?id",
"?title",
"?ag",
"?_s"
],
[
"task_status",
"?id",
"?st"
]
]
]
],
[
"define",
"sel_info",
[
"array/head",
[
"find",
{
"agent": "?ag",
"done": "?d",
"status": "?st",
"summary": "?sum",
"title": "?title"
},
[
"and",
[
"task",
"sel",
"?title",
"?ag",
"?sum"
],
[
"task_done",
"sel",
"?d"
],
[
"task_status",
"sel",
"?st"
]
]
]
]
],
[
"define",
"sel_status",
[
"object/get",
"sel_info",
"status"
]
],
[
"ui/stack",
{
"gap": "lg"
},
[
"ui/hero",
{
"badges": [
"quote",
[
{
"label": "Agent Work Queue",
"tone": "accent"
},
{
"label": "Derived Ready / Blocked",
"tone": "ok"
},
{
"label": "Live DAG Unlocking",
"tone": "ok"
}
]
],
"eyebrow": "Omnigraph Blueprint 05 · Multi-Agent Coordination",
"subtitle": "A Beads-style dependency DAG where Lion Datalog continuously derives which tasks are ready vs blocked. Complete tasks below to watch downstream work unlock immediately.",
"title": "Dependency-Aware Agent Work Queue"
}
],
[
"ui/grid",
{
"cols": 3,
"gap": "md"
},
[
"ui/metric",
{
"caption": "Completed milestones",
"label": "Done",
"tone": "ok",
"value": [
"array/length",
"done_list"
]
}
],
[
"ui/metric",
{
"caption": "All prerequisites satisfied — claimable now",
"label": "Ready to Run",
"tone": "accent",
"value": [
"array/length",
"ready_list"
]
}
],
[
"ui/metric",
{
"caption": "Waiting on upstream dependencies",
"label": "Blocked",
"value": [
"array/length",
"blocked_list"
]
}
]
],
[
"ui/section",
{
"badge": [
"string/join",
[
"array/make",
[
"number/toString",
[
"array/length",
"done_list"
]
],
"/ 5 done"
],
" "
],
"step": "01",
"subtitle": "Green nodes are done, amber nodes are ready for an agent to execute, and muted nodes are blocked. Click any node to select it, then complete it in Section 02.",
"title": "Live Task Dependency DAG",
"tone": "ok"
},
[
"ui/progress",
{
"label": "Pipeline Completion",
"max": 5,
"tone": "ok",
"value": [
"array/length",
"done_list"
]
}
],
[
"ui/graph",
{
"edges": "edges",
"height": 240,
"layout": "layered",
"nodes": "nodes",
"onSelect": [
"quote",
[
"fact",
[
"ui_state",
"selected",
"value"
]
]
],
"selected": "sel",
"title": "Task Graph (green = done · amber = ready · muted = blocked)"
}
]
],
[
"ui/section",
{
"step": "02",
"subtitle": "Click any row in the queue to focus that task, then complete or reopen it to see Datalog recompute ready and blocked states in real time.",
"title": "Claim & Execute Tasks"
},
[
"ui/split",
{
"gap": "md",
"ratio": "3:2"
},
[
"ui/table",
{
"columns": [
"quote",
[
{
"key": "task",
"label": "Task"
},
{
"key": "agent",
"label": "Assigned Agent"
},
{
"key": "status",
"label": "Derived Status"
}
]
],
"onSelect": [
"quote",
[
"fact",
[
"ui_state",
"selected",
"value"
]
]
],
"rowKey": "id",
"rows": "queue_rows",
"selected": "sel",
"title": "Agent Work Queue (click row to focus)"
}
],
[
"ui/card",
{
"subtitle": [
"object/get",
"sel_info",
"summary"
],
"title": [
"object/get",
"sel_info",
"title"
]
},
[
"ui/kv",
{
"columns": 2,
"items": [
"array/make",
{
"label": "Assigned Agent",
"mono": true,
"value": [
"object/get",
"sel_info",
"agent"
]
},
{
"label": "Derived Status",
"value": "sel_status"
}
]
}
],
[
"ui/row",
{
"gap": "sm"
},
[
"cond",
[
[
"=",
"sel_status",
"ready"
],
[
"ui/button",
{
"label": "Mark Task Done",
"onClick": [
"quote",
[
"fact",
[
"task_done",
[
"array/head",
[
"find",
"?v",
[
"ui_state",
"selected",
"?v"
]
]
],
true
]
]
],
"tone": "ok"
}
]
],
[
[
"=",
"sel_status",
"done"
],
[
"ui/button",
{
"label": "Reopen Task",
"onClick": [
"quote",
[
"fact",
[
"task_done",
[
"array/head",
[
"find",
"?v",
[
"ui_state",
"selected",
"?v"
]
]
],
false
]
]
]
}
]
],
[
"else",
[
"ui/badge",
{
"tone": "warn"
},
"Blocked: finish upstream tasks first"
]
]
],
[
"ui/button",
{
"label": "Reset Queue",
"onClick": [
"quote",
[
"fact",
[
"task_done",
"t_schema",
true
],
[
"task_done",
"t_smt",
false
],
[
"task_done",
"t_ui",
false
],
[
"task_done",
"t_e2e",
false
],
[
"task_done",
"t_ship",
false
]
]
]
}
]
]
]
]
]
]
]
],
{
"persist": true
}
],
[
"view"
]
]