feat(parse): use nested YAML import: maps instead of one-liner binds
Frontmatter imports are now valid YAML (`import:` / `导入:` with bind→target entries), removing spaced keys. Add `marqdo migrate imports`, hard-error the old one-liner form, and migrate lib/ext/examples/tests/docs accordingly. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
8bbe017a5e
commit
687c168014
364 files changed
+1870
-1004
No files matched your search
@@ -1,11 +1,12 @@
|
||||
---
|
||||
title: agent constitution markers (Wave B1 offline)
|
||||
description: Assert call_site / source / protocol order in build_step_context.
|
||||
import llm:ext/ai/llm.mq.md
|
||||
import agent:ext/ai/agent.mq.md
|
||||
import json:lib/json.mq.md
|
||||
import plugin:lib/plugin.mq.md
|
||||
import sys:lib/sys.mq.md
|
||||
import:
|
||||
llm: ext/ai/llm.mq.md
|
||||
agent: ext/ai/agent.mq.md
|
||||
json: lib/json.mq.md
|
||||
plugin: lib/plugin.mq.md
|
||||
sys: lib/sys.mq.md
|
||||
---
|
||||
|
||||
## probe_tool
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
---
|
||||
title: agent context budget + progressive disclose (A3 offline)
|
||||
description: source/skill briefs truncate with markers; READ:skill deepen; step protocol mentions READ.
|
||||
import llm:ext/ai/llm.mq.md
|
||||
import agent:ext/ai/agent.mq.md
|
||||
import json:lib/json.mq.md
|
||||
import plugin:lib/plugin.mq.md
|
||||
import sys:lib/sys.mq.md
|
||||
import:
|
||||
llm: ext/ai/llm.mq.md
|
||||
agent: ext/ai/agent.mq.md
|
||||
json: lib/json.mq.md
|
||||
plugin: lib/plugin.mq.md
|
||||
sys: lib/sys.mq.md
|
||||
---
|
||||
|
||||
A3 padding block so this module source exceeds the default 4KiB budget when injected into step context. Keep as plain prose (not HTML comments) so strip_html_comments leaves it in place.
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
---
|
||||
title: dump_step_context (Wave B1 offline)
|
||||
description: Assert dump_step_context exposes call_site + prompt without LLM.
|
||||
import llm:ext/ai/llm.mq.md
|
||||
import agent:ext/ai/agent.mq.md
|
||||
import json:lib/json.mq.md
|
||||
import plugin:lib/plugin.mq.md
|
||||
import sys:lib/sys.mq.md
|
||||
import:
|
||||
llm: ext/ai/llm.mq.md
|
||||
agent: ext/ai/agent.mq.md
|
||||
json: lib/json.mq.md
|
||||
plugin: lib/plugin.mq.md
|
||||
sys: lib/sys.mq.md
|
||||
---
|
||||
|
||||
## probe_tool
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
---
|
||||
title: agent inspect_workbook (offline)
|
||||
description: Parse named writeback slots from a fixture workbook path.
|
||||
import agent:ext/ai/agent.mq.md
|
||||
import json:lib/json.mq.md
|
||||
import fs:lib/fs.mq.md
|
||||
import:
|
||||
agent: ext/ai/agent.mq.md
|
||||
json: lib/json.mq.md
|
||||
fs: lib/fs.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
---
|
||||
title: OKF agent-kb alias lookup (offline)
|
||||
description: Promote resource; patch Task aliases; variant goal hits same resource.
|
||||
import agent:ext/ai/agent.mq.md
|
||||
import fs:lib/fs.mq.md
|
||||
import json:lib/json.mq.md
|
||||
import plugin:lib/plugin.mq.md
|
||||
import sys:lib/sys.mq.md
|
||||
import:
|
||||
agent: ext/ai/agent.mq.md
|
||||
fs: lib/fs.mq.md
|
||||
json: lib/json.mq.md
|
||||
plugin: lib/plugin.mq.md
|
||||
sys: lib/sys.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
---
|
||||
title: OKF agent-kb near_match (offline)
|
||||
description: Promote trip resource; near-dupe goals hit match=near; unrelated misses.
|
||||
import agent:ext/ai/agent.mq.md
|
||||
import fs:lib/fs.mq.md
|
||||
import json:lib/json.mq.md
|
||||
import plugin:lib/plugin.mq.md
|
||||
import sys:lib/sys.mq.md
|
||||
import:
|
||||
agent: ext/ai/agent.mq.md
|
||||
fs: lib/fs.mq.md
|
||||
json: lib/json.mq.md
|
||||
plugin: lib/plugin.mq.md
|
||||
sys: lib/sys.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
---
|
||||
title: OKF plan llm_free hit + list_tasks curation (A1 offline)
|
||||
description: Promote solidified workbook; plan same goal takes cache=hit; near→soft-hit; list_tasks exposes status/llm_free.
|
||||
import llm:ext/ai/llm.mq.md
|
||||
import agent:ext/ai/agent.mq.md
|
||||
import fs:lib/fs.mq.md
|
||||
import json:lib/json.mq.md
|
||||
import plugin:lib/plugin.mq.md
|
||||
import sys:lib/sys.mq.md
|
||||
import:
|
||||
llm: ext/ai/llm.mq.md
|
||||
agent: ext/ai/agent.mq.md
|
||||
fs: lib/fs.mq.md
|
||||
json: lib/json.mq.md
|
||||
plugin: lib/plugin.mq.md
|
||||
sys: lib/sys.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
---
|
||||
title: OKF agent-kb promote + lookup + spawn (offline)
|
||||
description: Promote a solidified workbook, lookup by goal, spawn without parent LLM.
|
||||
import agent:ext/ai/agent.mq.md
|
||||
import fs:lib/fs.mq.md
|
||||
import json:lib/json.mq.md
|
||||
import subtask:lib/subtask.mq.md
|
||||
import plugin:lib/plugin.mq.md
|
||||
import sys:lib/sys.mq.md
|
||||
import:
|
||||
agent: ext/ai/agent.mq.md
|
||||
fs: lib/fs.mq.md
|
||||
json: lib/json.mq.md
|
||||
subtask: lib/subtask.mq.md
|
||||
plugin: lib/plugin.mq.md
|
||||
sys: lib/sys.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
---
|
||||
title: Parent CALL:lib whitelist (offline)
|
||||
description: lib.fs.exists + ARGS; reject lib.net; catalog callable.
|
||||
import agent:ext/ai/agent.mq.md
|
||||
import json:lib/json.mq.md
|
||||
import fs:lib/fs.mq.md
|
||||
import sys:lib/sys.mq.md
|
||||
import:
|
||||
agent: ext/ai/agent.mq.md
|
||||
json: lib/json.mq.md
|
||||
fs: lib/fs.mq.md
|
||||
sys: lib/sys.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -3,11 +3,12 @@ title: agent / llm soft transport errors
|
||||
description: >-
|
||||
Regression (2026-10): unreachable OpenAI upstream must not abort the VM.
|
||||
`llm.ask` / `agent.step` / `agent.run` return structured status=error.
|
||||
import agent:ext/ai/agent.mq.md
|
||||
import json:lib/json.mq.md
|
||||
import llm:ext/ai/llm.mq.md
|
||||
import plugin:lib/plugin.mq.md
|
||||
import sys:lib/sys.mq.md
|
||||
import:
|
||||
agent: ext/ai/agent.mq.md
|
||||
json: lib/json.mq.md
|
||||
llm: ext/ai/llm.mq.md
|
||||
plugin: lib/plugin.mq.md
|
||||
sys: lib/sys.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
---
|
||||
title: agent MCP stdio client (offline)
|
||||
description: Oneshoot list+call against python mock MCP server.
|
||||
import agent:ext/ai/agent.mq.md
|
||||
import plugin:lib/plugin.mq.md
|
||||
import sys:lib/sys.mq.md
|
||||
import json:lib/json.mq.md
|
||||
import:
|
||||
agent: ext/ai/agent.mq.md
|
||||
plugin: lib/plugin.mq.md
|
||||
sys: lib/sys.mq.md
|
||||
json: lib/json.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
---
|
||||
title: agent mcp server smoke
|
||||
description: Offline assemble mcp_server + one tool (no serve).
|
||||
import agent:ext/ai/agent.mq.md
|
||||
import plugin:lib/plugin.mq.md
|
||||
import sys:lib/sys.mq.md
|
||||
import demo:agent-mcp-server-helpers.mq.md
|
||||
import:
|
||||
agent: ext/ai/agent.mq.md
|
||||
plugin: lib/plugin.mq.md
|
||||
sys: lib/sys.mq.md
|
||||
demo: agent-mcp-server-helpers.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
---
|
||||
title: Agent Framework P4 — Adaptive Routing + Policy Compilation (offline)
|
||||
description: Learn skill, compile policy from skill-tagged episodes, route via marqdo backend without Jev/LLM.
|
||||
import fs:lib/fs.mq.md
|
||||
import json:lib/json.mq.md
|
||||
import plugin:lib/plugin.mq.md
|
||||
import sys:lib/sys.mq.md
|
||||
import:
|
||||
fs: lib/fs.mq.md
|
||||
json: lib/json.mq.md
|
||||
plugin: lib/plugin.mq.md
|
||||
sys: lib/sys.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
---
|
||||
title: agent plan confirm (offline)
|
||||
description: Create workbook skeleton with confirm=True; no LLM spawn loop.
|
||||
import llm:ext/ai/llm.mq.md
|
||||
import agent:ext/ai/agent.mq.md
|
||||
import json:lib/json.mq.md
|
||||
import fs:lib/fs.mq.md
|
||||
import:
|
||||
llm: ext/ai/llm.mq.md
|
||||
agent: ext/ai/agent.mq.md
|
||||
json: lib/json.mq.md
|
||||
fs: lib/fs.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
---
|
||||
title: agent plan decision + dual skeleton (offline)
|
||||
description: extract_plan_decision/summary; dual skeleton contains research+writer; patch apply on fixture.
|
||||
import agent:ext/ai/agent.mq.md
|
||||
import json:lib/json.mq.md
|
||||
import fs:lib/fs.mq.md
|
||||
import:
|
||||
agent: ext/ai/agent.mq.md
|
||||
json: lib/json.mq.md
|
||||
fs: lib/fs.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
@@ -77,7 +78,7 @@ import fs:lib/fs.mq.md
|
||||
2. *
|
||||
> print text=solidify-missing
|
||||
|
||||
**has_imp = > split value=`dual` sep="import llm:ext/ai/llm.mq.md"**
|
||||
**has_imp = > split value=`dual` sep="llm: ext/ai/llm.mq.md"**
|
||||
**n_imp = > len value=`has_imp`**
|
||||
1. `n_imp` > 1
|
||||
> print text=import-ok
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
---
|
||||
title: ext/agent plan live (DeepSeek)
|
||||
description: Full plan loop — spawn workbook, inspect, secondary plan; simple pong goal.
|
||||
import llm:ext/ai/llm.mq.md
|
||||
import agent:ext/ai/agent.mq.md
|
||||
import json:lib/json.mq.md
|
||||
import fs:lib/fs.mq.md
|
||||
import:
|
||||
llm: ext/ai/llm.mq.md
|
||||
agent: ext/ai/agent.mq.md
|
||||
json: lib/json.mq.md
|
||||
fs: lib/fs.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
---
|
||||
title: parent observation excerpt + deepen (offline)
|
||||
import agent:ext/ai/agent.mq.md
|
||||
import json:lib/json.mq.md
|
||||
import fs:lib/fs.mq.md
|
||||
import:
|
||||
agent: ext/ai/agent.mq.md
|
||||
json: lib/json.mq.md
|
||||
fs: lib/fs.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
---
|
||||
title: plan must not overwrite existing llm_free resources
|
||||
description: force+confirm plan keeps a pre-seeded compiled skill workbook intact (offline).
|
||||
import agent:ext/ai/agent.mq.md
|
||||
import fs:lib/fs.mq.md
|
||||
import json:lib/json.mq.md
|
||||
import llm:ext/ai/llm.mq.md
|
||||
import plugin:lib/plugin.mq.md
|
||||
import sys:lib/sys.mq.md
|
||||
import text:lib/text.mq.md
|
||||
import:
|
||||
agent: ext/ai/agent.mq.md
|
||||
fs: lib/fs.mq.md
|
||||
json: lib/json.mq.md
|
||||
llm: ext/ai/llm.mq.md
|
||||
plugin: lib/plugin.mq.md
|
||||
sys: lib/sys.mq.md
|
||||
text: lib/text.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
---
|
||||
title: agent plan stream helpers + confirm (offline)
|
||||
description: plan_append_*/plan_finish_stream; confirm=True with stream attaches done event.
|
||||
import llm:ext/ai/llm.mq.md
|
||||
import agent:ext/ai/agent.mq.md
|
||||
import json:lib/json.mq.md
|
||||
import fs:lib/fs.mq.md
|
||||
import:
|
||||
llm: ext/ai/llm.mq.md
|
||||
agent: ext/ai/agent.mq.md
|
||||
json: lib/json.mq.md
|
||||
fs: lib/fs.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
---
|
||||
title: agent resume checkpoint (offline)
|
||||
description: save / load / list / clear under .marqdo/agent-resume-test
|
||||
import agent:ext/ai/agent.mq.md
|
||||
import plugin:lib/plugin.mq.md
|
||||
import sys:lib/sys.mq.md
|
||||
import json:lib/json.mq.md
|
||||
import fs:lib/fs.mq.md
|
||||
import:
|
||||
agent: ext/ai/agent.mq.md
|
||||
plugin: lib/plugin.mq.md
|
||||
sys: lib/sys.mq.md
|
||||
json: lib/json.mq.md
|
||||
fs: lib/fs.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -5,12 +5,13 @@ description: >-
|
||||
(A) miss resolve must expose llm_free=false;
|
||||
(B) `self`.preflight must resolve when agent is imported by a consumer.
|
||||
Offline — dummy API key; no live network required for assertions A/B.
|
||||
import agent:ext/ai/agent.mq.md
|
||||
import fs:lib/fs.mq.md
|
||||
import json:lib/json.mq.md
|
||||
import llm:ext/ai/llm.mq.md
|
||||
import plugin:lib/plugin.mq.md
|
||||
import sys:lib/sys.mq.md
|
||||
import:
|
||||
agent: ext/ai/agent.mq.md
|
||||
fs: lib/fs.mq.md
|
||||
json: lib/json.mq.md
|
||||
llm: ext/ai/llm.mq.md
|
||||
plugin: lib/plugin.mq.md
|
||||
sys: lib/sys.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
---
|
||||
title: ext/agent step (DeepSeek)
|
||||
description: Real agent.step with tool via lib/subtask; default writeback to ok/error slots.
|
||||
import time:lib/time.mq.md
|
||||
import writeback:lib/writeback.mq.md
|
||||
import json:lib/json.mq.md
|
||||
import llm:ext/ai/llm.mq.md
|
||||
import agent:ext/ai/agent.mq.md
|
||||
import:
|
||||
time: lib/time.mq.md
|
||||
writeback: lib/writeback.mq.md
|
||||
json: lib/json.mq.md
|
||||
llm: ext/ai/llm.mq.md
|
||||
agent: ext/ai/agent.mq.md
|
||||
---
|
||||
|
||||
## 获取时间
|
||||
|
||||
@@ -3,9 +3,10 @@ title: agent trial sandbox opt-in — host unchanged until commit
|
||||
description: >
|
||||
O1: agent.trial write stays upper until commit=True.
|
||||
Prefer link index over json.get.
|
||||
import agent:ext/ai/agent.mq.md
|
||||
import sandbox:ext/ai/sandbox.mq.md
|
||||
import fs:lib/fs.mq.md
|
||||
import:
|
||||
agent: ext/ai/agent.mq.md
|
||||
sandbox: ext/ai/sandbox.mq.md
|
||||
fs: lib/fs.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -4,9 +4,10 @@ title: promote requires sandbox proof (O2)
|
||||
description: >
|
||||
Good workbook promotes; broken workbook is rejected (sandbox_proof_failed).
|
||||
Link-index reads; no json glue.
|
||||
import plugin:lib/plugin.mq.md
|
||||
import fs:lib/fs.mq.md
|
||||
import sys:lib/sys.mq.md
|
||||
import:
|
||||
plugin: lib/plugin.mq.md
|
||||
fs: lib/fs.mq.md
|
||||
sys: lib/sys.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -2,9 +2,10 @@
|
||||
markup: occlusion
|
||||
title: O5 quarantine skill status
|
||||
description: Promote good skill then quarantine — status becomes quarantine.
|
||||
import plugin:lib/plugin.mq.md
|
||||
import fs:lib/fs.mq.md
|
||||
import sys:lib/sys.mq.md
|
||||
import:
|
||||
plugin: lib/plugin.mq.md
|
||||
fs: lib/fs.mq.md
|
||||
sys: lib/sys.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
---
|
||||
title: agent small-llm route request (offline)
|
||||
description: router=small-llm returns needs_llm + prompt; jev alias same shape.
|
||||
import plugin:lib/plugin.mq.md
|
||||
import sys:lib/sys.mq.md
|
||||
import json:lib/json.mq.md
|
||||
import:
|
||||
plugin: lib/plugin.mq.md
|
||||
sys: lib/sys.mq.md
|
||||
json: lib/json.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
---
|
||||
title: ext/agent framework smoke
|
||||
description: Real llm handle from tests/ext/.env; context, extract_tool_name, run_tool via subtask.
|
||||
import llm:ext/ai/llm.mq.md
|
||||
import json:lib/json.mq.md
|
||||
import agent:ext/ai/agent.mq.md
|
||||
import:
|
||||
llm: ext/ai/llm.mq.md
|
||||
json: lib/json.mq.md
|
||||
agent: ext/ai/agent.mq.md
|
||||
---
|
||||
|
||||
## 获取时间
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
---
|
||||
title: OKF soft_match protocol parse (offline)
|
||||
description: REUSE/NEW + SLUG extractors; no network.
|
||||
import agent:ext/ai/agent.mq.md
|
||||
import json:lib/json.mq.md
|
||||
import:
|
||||
agent: ext/ai/agent.mq.md
|
||||
json: lib/json.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
---
|
||||
title: O3 step_route table backends
|
||||
description: lookup → marqdo; net → llm; default → auto.
|
||||
import agent:ext/ai/agent.mq.md
|
||||
import:
|
||||
agent: ext/ai/agent.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
---
|
||||
title: agent corpus_search + mcp fixture tools (A4 offline)
|
||||
description: Local RAG-lite corpus search and MCP fixture call; authority stays workbook.
|
||||
import agent:ext/ai/agent.mq.md
|
||||
import fs:lib/fs.mq.md
|
||||
import json:lib/json.mq.md
|
||||
import plugin:lib/plugin.mq.md
|
||||
import sys:lib/sys.mq.md
|
||||
import:
|
||||
agent: ext/ai/agent.mq.md
|
||||
fs: lib/fs.mq.md
|
||||
json: lib/json.mq.md
|
||||
plugin: lib/plugin.mq.md
|
||||
sys: lib/sys.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
---
|
||||
title: Agent Framework v2 — episode → learn → compile (offline)
|
||||
description: Record three identical successes, maybe_learn compiles llm_free skill, resolve hits compiled path.
|
||||
import agent:ext/ai/agent.mq.md
|
||||
import fs:lib/fs.mq.md
|
||||
import json:lib/json.mq.md
|
||||
import plugin:lib/plugin.mq.md
|
||||
import sys:lib/sys.mq.md
|
||||
import:
|
||||
agent: ext/ai/agent.mq.md
|
||||
fs: lib/fs.mq.md
|
||||
json: lib/json.mq.md
|
||||
plugin: lib/plugin.mq.md
|
||||
sys: lib/sys.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
---
|
||||
title: agent workbook multi-CONTINUE patch + solidify (A0 offline)
|
||||
description: Two precise CONTINUE patches then agent_workbook_solidify freezes step workbook.
|
||||
import agent:ext/ai/agent.mq.md
|
||||
import json:lib/json.mq.md
|
||||
import fs:lib/fs.mq.md
|
||||
import plugin:lib/plugin.mq.md
|
||||
import sys:lib/sys.mq.md
|
||||
import:
|
||||
agent: ext/ai/agent.mq.md
|
||||
json: lib/json.mq.md
|
||||
fs: lib/fs.mq.md
|
||||
plugin: lib/plugin.mq.md
|
||||
sys: lib/sys.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
---
|
||||
title: writeback param must not shadow writeback module
|
||||
description: Regression — step/plan param writeback=True used to break > writeback.record (bool is not a map). Use a non-colliding import alias.
|
||||
import wb:lib/writeback.mq.md
|
||||
import writeback:lib/writeback.mq.md
|
||||
import json:lib/json.mq.md
|
||||
import sys:lib/sys.mq.md
|
||||
import:
|
||||
wb: lib/writeback.mq.md
|
||||
writeback: lib/writeback.mq.md
|
||||
json: lib/json.mq.md
|
||||
sys: lib/sys.mq.md
|
||||
---
|
||||
|
||||
# box
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
---
|
||||
title: Agent zero-LLM execution after policy/skill compile
|
||||
description: After Skill+Policy compilation, run with router=marqdo records llm_calls=0.
|
||||
import agent:ext/ai/agent.mq.md
|
||||
import fs:lib/fs.mq.md
|
||||
import json:lib/json.mq.md
|
||||
import llm:ext/ai/llm.mq.md
|
||||
import plugin:lib/plugin.mq.md
|
||||
import sys:lib/sys.mq.md
|
||||
import:
|
||||
agent: ext/ai/agent.mq.md
|
||||
fs: lib/fs.mq.md
|
||||
json: lib/json.mq.md
|
||||
llm: ext/ai/llm.mq.md
|
||||
plugin: lib/plugin.mq.md
|
||||
sys: lib/sys.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
---
|
||||
title: eng preflight offline
|
||||
import plugin:lib/plugin.mq.md
|
||||
import agent:ext/ai/agent.mq.md
|
||||
import json:lib/json.mq.md
|
||||
import:
|
||||
plugin: lib/plugin.mq.md
|
||||
agent: ext/ai/agent.mq.md
|
||||
json: lib/json.mq.md
|
||||
---
|
||||
|
||||
Offline Engineering Knowledge gate against `tests/engineering/.marqdo`
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
---
|
||||
title: fs text_patch / apply_patch_blocks (offline)
|
||||
import fs:lib/fs.mq.md
|
||||
import json:lib/json.mq.md
|
||||
import:
|
||||
fs: lib/fs.mq.md
|
||||
json: lib/json.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
---
|
||||
title: linalg basic smoke (L2)
|
||||
description: from_formula, det, solve 2×2, explicit mul.
|
||||
import la:ext/linalg/linalg.mq.md
|
||||
import math:lib/math.mq.md
|
||||
import:
|
||||
la: ext/linalg/linalg.mq.md
|
||||
math: lib/math.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
---
|
||||
title: linalg block/kron smoke (L3)
|
||||
description: Lazy kron ascii; block*block collapse.
|
||||
import la:ext/linalg/linalg.mq.md
|
||||
import:
|
||||
la: ext/linalg/linalg.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
---
|
||||
title: linalg formula-doc smoke (F1)
|
||||
description: Run-implies-correct — (AB)^T ascii without explicit simplify.
|
||||
import la:ext/linalg/linalg.mq.md
|
||||
import:
|
||||
la: ext/linalg/linalg.mq.md
|
||||
---
|
||||
|
||||
# Transpose reverses products
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
---
|
||||
title: linalg factor smoke (L4)
|
||||
description: eig factorize, structure SVG, LU reuse solve.
|
||||
import la:ext/linalg/linalg.mq.md
|
||||
import math:lib/math.mq.md
|
||||
import:
|
||||
la: ext/linalg/linalg.mq.md
|
||||
math: lib/math.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
---
|
||||
title: linalg formula smoke
|
||||
description: (AB)^T simplifies to B^T*A^T; ping ok.
|
||||
import la:ext/linalg/linalg.mq.md
|
||||
import:
|
||||
la: ext/linalg/linalg.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
---
|
||||
title: linalg infix and matrix methods
|
||||
description: A+B / A*B dispatch; `A`.T method chain; display auto-simplify.
|
||||
import la:ext/linalg/linalg.mq.md
|
||||
import:
|
||||
la: ext/linalg/linalg.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
---
|
||||
title: linalg metrics smoke (L6)
|
||||
description: lstsq, norm, cond, rank, complex fro, themed draw.
|
||||
import la:ext/linalg/linalg.mq.md
|
||||
import math:lib/math.mq.md
|
||||
import json:lib/json.mq.md
|
||||
import:
|
||||
la: ext/linalg/linalg.mq.md
|
||||
math: lib/math.mq.md
|
||||
json: lib/json.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
---
|
||||
title: 线性代数公式冒烟
|
||||
description: (AB)^T 化简为 B^T*A^T;探测 ok。
|
||||
import la:ext/linalg/线性代数.mq.md
|
||||
import:
|
||||
la: ext/linalg/线性代数.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
---
|
||||
title: llm create + collect offline
|
||||
description: Factory create + collect alias; no network.
|
||||
import llm:ext/ai/llm.mq.md
|
||||
import net:lib/net.mq.md
|
||||
import:
|
||||
llm: ext/ai/llm.mq.md
|
||||
net: lib/net.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
---
|
||||
title: ext llm DeepSeek complete
|
||||
description: OpenAI-compatible chat via DeepSeek. Credentials from tests/ext/.env.
|
||||
import llm:ext/ai/llm.mq.md
|
||||
import:
|
||||
llm: ext/ai/llm.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
---
|
||||
title: llm constructor offline
|
||||
description: Build llm handle from env + defaults; no network.
|
||||
import llm:ext/ai/llm.mq.md
|
||||
import:
|
||||
llm: ext/ai/llm.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
---
|
||||
type: prompt
|
||||
title: entry prompt offline
|
||||
import llm:ext/ai/llm.mq.md
|
||||
import sys:lib/sys.mq.md
|
||||
import:
|
||||
llm: ext/ai/llm.mq.md
|
||||
sys: lib/sys.mq.md
|
||||
---
|
||||
|
||||
Say hello to Marqdo.
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: ext llm import
|
||||
import llm:ext/ai/llm.mq.md
|
||||
import:
|
||||
llm: ext/ai/llm.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -4,7 +4,8 @@ description: Create handle from Artifact Metadata (model / api_key); no network.
|
||||
type: llm
|
||||
model: ${env.MARQDO_LLM_META_MODEL ?? "meta-model"}
|
||||
api_key: ${secret.OPENAI_API_KEY ?? "sk-test"}
|
||||
import llm:ext/ai/llm.mq.md
|
||||
import:
|
||||
llm: ext/ai/llm.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
---
|
||||
title: llm named handles + prompt_load offline
|
||||
description: fast/reasoning names, ollama backend tag, and type:prompt body load; no network.
|
||||
import llm:ext/ai/llm.mq.md
|
||||
import text:lib/text.mq.md
|
||||
import:
|
||||
llm: ext/ai/llm.mq.md
|
||||
text: lib/text.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
---
|
||||
title: ext llm DeepSeek stream live
|
||||
description: Live SSE complete with echo; credentials from tests/ext/.env.
|
||||
import llm:ext/ai/llm.mq.md
|
||||
import json:lib/json.mq.md
|
||||
import:
|
||||
llm: ext/ai/llm.mq.md
|
||||
json: lib/json.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
---
|
||||
title: llm stream_result offline
|
||||
description: No network — SSE fixture via net.openai_sse_parse + llm.stream_result
|
||||
import llm:ext/ai/llm.mq.md
|
||||
import net:lib/net.mq.md
|
||||
import:
|
||||
llm: ext/ai/llm.mq.md
|
||||
net: lib/net.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
---
|
||||
title: llm tool_calls offline
|
||||
description: Parse OpenAI-shaped tool_calls into a list; no network.
|
||||
import openai:ext/ai/llm/openai.mq.md
|
||||
import json:lib/json.mq.md
|
||||
import:
|
||||
openai: ext/ai/llm/openai.mq.md
|
||||
json: lib/json.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
---
|
||||
title: quantum amplitude damping smoke
|
||||
description: X then amplitude_damping p=1 returns all shots to |0>.
|
||||
import quantum:ext/quantum/quantum.mq.md
|
||||
import:
|
||||
quantum: ext/quantum/quantum.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
---
|
||||
title: quantum amplitude damping zh smoke
|
||||
description: 泡利X 后 振幅阻尼 p=1 全部落回 |0⟩.
|
||||
导入 量子:ext/quantum/量子.mq.md
|
||||
导入:
|
||||
量子: ext/quantum/量子.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
---
|
||||
title: quantum author API smoke
|
||||
description: barrier, measure, append, state, draw meters.
|
||||
import quantum:ext/quantum/quantum.mq.md
|
||||
import:
|
||||
quantum: ext/quantum/quantum.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
---
|
||||
title: quantum author API zh smoke
|
||||
description: 屏障 / 测量 / 追加 / 态 / 绘图.
|
||||
导入 量子:ext/quantum/量子.mq.md
|
||||
导入:
|
||||
量子: ext/quantum/量子.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
---
|
||||
title: quantum bell smoke
|
||||
description: H+CX Bell state probabilities ≈ 1/2 each.
|
||||
import quantum:ext/quantum/quantum.mq.md
|
||||
import math:lib/math.mq.md
|
||||
import:
|
||||
quantum: ext/quantum/quantum.mq.md
|
||||
math: lib/math.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
---
|
||||
title: quantum custom gate from formula matrix
|
||||
description: $$ H matrix $$ → gate matrix= → apply → probs match built-in H.
|
||||
import quantum:ext/quantum/quantum.mq.md
|
||||
import math:lib/math.mq.md
|
||||
import:
|
||||
quantum: ext/quantum/quantum.mq.md
|
||||
math: lib/math.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
---
|
||||
title: quantum custom gate zh from formula
|
||||
description: $$ 矩阵 $$ → 门 矩阵= → 施加.
|
||||
导入 量子:ext/quantum/量子.mq.md
|
||||
import math:lib/math.mq.md
|
||||
导入:
|
||||
量子: ext/quantum/量子.mq.md
|
||||
math: lib/math.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
---
|
||||
title: quantum draw probs/bloch smoke
|
||||
description: draw kind=probs and kind=bloch return matching kind tags.
|
||||
import quantum:ext/quantum/quantum.mq.md
|
||||
import:
|
||||
quantum: ext/quantum/quantum.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
---
|
||||
title: quantum gate matrix heatmap smoke
|
||||
description: gate.draw kind=matrix writes SVG heatmap.
|
||||
import quantum:ext/quantum/quantum.mq.md
|
||||
import:
|
||||
quantum: ext/quantum/quantum.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
---
|
||||
title: quantum gate matches_matrix smoke
|
||||
description: Named H matches an explicit 2x2 nested list.
|
||||
import quantum:ext/quantum/quantum.mq.md
|
||||
import json:lib/json.mq.md
|
||||
import:
|
||||
quantum: ext/quantum/quantum.mq.md
|
||||
json: lib/json.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
---
|
||||
title: quantum gates + run smoke
|
||||
description: Z sandwich, Ry(pi), seeded Bell run counts.
|
||||
import quantum:ext/quantum/quantum.mq.md
|
||||
import math:lib/math.mq.md
|
||||
import:
|
||||
quantum: ext/quantum/quantum.mq.md
|
||||
math: lib/math.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
---
|
||||
title: quantum linalg smoke
|
||||
description: Q7a density / partial_trace / expect / schmidt / purity
|
||||
import quantum:ext/quantum/quantum.mq.md
|
||||
import math:lib/math.mq.md
|
||||
import:
|
||||
quantum: ext/quantum/quantum.mq.md
|
||||
math: lib/math.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
---
|
||||
title: quantum noise smoke
|
||||
description: bitflip p=1 after I flips |0> to |1| for all shots.
|
||||
import quantum:ext/quantum/quantum.mq.md
|
||||
import:
|
||||
quantum: ext/quantum/quantum.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
---
|
||||
title: quantum noise zh smoke
|
||||
description: 噪声 bitflip p=1 后 I 使全部射中 |1⟩.
|
||||
导入 量子:ext/quantum/量子.mq.md
|
||||
导入:
|
||||
量子: ext/quantum/量子.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
---
|
||||
title: quantum steps + draw smoke
|
||||
description: steps= Bell table + draw SVG via record_plot.
|
||||
import quantum:ext/quantum/quantum.mq.md
|
||||
import math:lib/math.mq.md
|
||||
import:
|
||||
quantum: ext/quantum/quantum.mq.md
|
||||
math: lib/math.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
---
|
||||
title: quantum viz advanced smoke
|
||||
description: Q7b hinton / qsphere / multibloch SVG markers
|
||||
import quantum:ext/quantum/quantum.mq.md
|
||||
import:
|
||||
quantum: ext/quantum/quantum.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
---
|
||||
title: quantum zh API smoke
|
||||
description: Chinese 量子.电路 泡利Z sandwich.
|
||||
导入 量子:ext/quantum/量子.mq.md
|
||||
import math:lib/math.mq.md
|
||||
导入:
|
||||
量子: ext/quantum/量子.mq.md
|
||||
math: lib/math.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -3,8 +3,9 @@ title: sandbox CoW — write stays upper until commit
|
||||
description: >
|
||||
Readable trial: seed on disk, mutate in session, host tree unchanged,
|
||||
then commit / discard. Prefer link index over json.get.
|
||||
import sandbox:ext/ai/sandbox.mq.md
|
||||
import fs:lib/fs.mq.md
|
||||
import:
|
||||
sandbox: ext/ai/sandbox.mq.md
|
||||
fs: lib/fs.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -3,7 +3,8 @@ title: sandbox.run — plugin.load denied; inspect lists notes
|
||||
description: >
|
||||
Guest that loads a native plugin must fail with unavailable in sandbox.
|
||||
No json.get chains — link index + a small expect table.
|
||||
import sandbox:ext/ai/sandbox.mq.md
|
||||
import:
|
||||
sandbox: ext/ai/sandbox.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
---
|
||||
import json:lib/json.mq.md
|
||||
import:
|
||||
json: lib/json.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
---
|
||||
import plugin:lib/plugin.mq.md
|
||||
import:
|
||||
plugin: lib/plugin.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
---
|
||||
title: sandbox.run — core lib/json inside the trial
|
||||
description: Guest fixture imports lib/json; print ok and guest stdout via link index.
|
||||
import sandbox:ext/ai/sandbox.mq.md
|
||||
import:
|
||||
sandbox: ext/ai/sandbox.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
---
|
||||
title: web artifact render smoke
|
||||
description: Unified View nodes + document render (ADR 0007); offline, no listen.
|
||||
import web:ext/web/web.mq.md
|
||||
import text:lib/text.mq.md
|
||||
import:
|
||||
web: ext/web/web.mq.md
|
||||
text: lib/text.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: artifact site serve
|
||||
import web:ext/web/web.mq.md
|
||||
import:
|
||||
web: ext/web/web.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: ext/data cache smoke
|
||||
import cache:ext/data/cache.mq.md
|
||||
import:
|
||||
cache: ext/data/cache.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
---
|
||||
title: ext/data db smoke
|
||||
description: DB Resource lives in ext/data (ADR 0007).
|
||||
import data:ext/data/db.mq.md
|
||||
import fs:lib/fs.mq.md
|
||||
import:
|
||||
data: ext/data/db.mq.md
|
||||
fs: lib/fs.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: ext/security rbac smoke
|
||||
import rbac:ext/security/rbac.mq.md
|
||||
import:
|
||||
rbac: ext/security/rbac.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
---
|
||||
title: web static artifact smoke
|
||||
import web:ext/web/web.mq.md
|
||||
import:
|
||||
web: ext/web/web.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
---
|
||||
title: web.use middleware smoke
|
||||
description: First-class middleware via web.use (replaces configure junk drawer).
|
||||
import web:ext/web/web.mq.md
|
||||
import:
|
||||
web: ext/web/web.mq.md
|
||||
---
|
||||
|
||||
# main
|
||||
|
||||
Reference in new issue
Block a user