cflmy and Cursor
f47a1e143a
feat(writeback): image form  with view parity
...
Auto-persist image paths/URLs as Markdown images (validated extension);
keep HTML comment for text. View and static export share styled source
markers and output-card <img> rendering.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-15 15:45:52 +08:00
cflmy and Cursor
9cf98a98b5
feat: block formula meta bind and control-flow prose
...
Support $$ % marqdo: var= binding, arm/loop narrative (fix comment-paragraph
swallow of branch arms), foreach ZH/EN sugar, and condition-line narrative.
Welcome pages and gold samples updated; view skips meta formula fence bodies.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-15 15:28:46 +08:00
cflmy and Cursor
f99d552d87
feat(view): show inferred param values; migrate welcome to v0.3 prose
...
Param chips carry call-frame values (and refresh with the call picker).
Welcome pages and the marqdo skill prefer body-inferred, conversational markup.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-15 14:32:50 +08:00
cflmy and Cursor
7d49c358c1
fix(view): nested-call welcome + clean formula/code cards
...
Welcome pages put greet calls in # main so CallFrames/pickers appear;
document surface skips fence body lines and Bind chips under formula/code cards.
Adds view-static-interactive design and entry-vs-method regression tests.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-15 14:13:42 +08:00
cflmy and Cursor
a32c0cd78f
fix(ppa): skip cp when local orig already sits in build-area
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-15 13:42:37 +08:00
cflmy and Cursor
0a8f76d9b4
release: v1.3.3 — view document-surface Structure
...
Co-authored-by: Cursor <cursoragent@cursor.com >
v1.3.3
2026-10-15 13:18:51 +08:00
cflmy and Cursor
4e2419b598
feat(view): document-surface Structure with frame-aware annotations
...
Browse Structure keeps narration and surfaces post-stmt values, branch
arms, and call/loop pickers; static `view output` shares the same render
path so exported HTML matches live view.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-15 13:12:53 +08:00
cflmy
f6374d1593
release: ext pack v1.3.2 trailing slash route fix
ext-v1.3.2
2026-10-13 15:37:42 +08:00
cflmy
9ede4bc63d
fix(web): strip trailing slash so /post/foo/ matches /post/foo
...
Go ServeMux does exact-match routing; a trailing slash caused dynamic
routes like /post/{slug} to fall through to the 404 catch-all. Add
withStripTrailingSlash middleware as the outermost handler wrapper so
all downstream middleware (RBAC, tenant, mux) see the normalized path.
Tested: static routes, dynamic routes, root path, query-string preservation.
2026-10-13 15:24:26 +08:00
cflmy and Cursor
3ae8f2c843
release: ext pack v1.3.1 OIDC path redirect_uri
...
Bump ext/VERSION only; CLI remains 1.3.0.
Co-authored-by: Cursor <cursoragent@cursor.com >
ext-v1.3.1
2026-10-08 11:42:08 +08:00
cflmy and Cursor
e9c1a8a730
feat(web): resolve OIDC redirect_uri from request Host
...
Allow path-style redirect_uri (/oidc/callback) so apex/www and
proxied HTTPS share one config; persist the absolute URI for token exchange.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-10-08 11:35:12 +08:00
cflmy and Cursor
5554b1642c
feat(run): add --fs-root / MARQDO_FS_ROOT for subdirectory entries
...
marqdo run cli/… sandboxes to the entry directory by default; repo-root
sandbox+cwd lets qdagent keep thin CLI wrappers under cli/ without
escaping .marqdo or polluting cli/.marqdo.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-28 22:17:24 +08:00
cflmy and Cursor
fe15603a91
fix(llm): hoist ask result fields out of the return table
...
Table cells shadowed self/column names (model, usage), so [model](self)
and [total_tokens](usage) raised "footnote index needs list or map" and
blocked live agent.step / qdagent BUILD.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-28 22:08:48 +08:00
cflmy and Cursor
1418742655
Skip docker/data/.cursor when compiling engineering knowledge.
...
Packaging trees and runtime vaults were inflating EKC with duplicate noise; dogfood agents should index product sources only.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-28 21:50:58 +08:00
cflmy and Cursor
ed31a2b31d
release: v1.3.0 Engineering Knowledge Compiler (EKC)
...
Bump CLI/ext/wasm to 1.3.0; document L0–L4 catalog, reuse preflight, and
agent eng_* surfaces for AI-native engineering.
Co-authored-by: Cursor <cursoragent@cursor.com >
v1.3.0
2026-09-28 16:46:30 +08:00
cflmy and Cursor
56ab52356f
feat(knowledge): land Engineering Knowledge Compiler (EKC) from 008
...
Give agents Engineering First Information before codegen: L0–L4 catalog,
reuse/preflight (REUSE→ADAPT→CREATE), graph, and CLI surfaces so large
repos stop reinventing existing capabilities.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-28 16:44:39 +08:00
cflmy and Cursor
2e425c3010
chore: sync Cargo.lock to 1.2.0 for PPA vendor
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-28 11:59:48 +08:00
cflmy and Cursor
46a0263d7f
release: v1.2.0 Web Artifact (ADR 0007) Document/Endpoint/Resource
...
Co-authored-by: Cursor <cursoragent@cursor.com >
v1.2.0
2026-09-28 11:39:25 +08:00
cflmy and Cursor
ff252fd469
feat(web): land Artifact serve/endpoint path and retire compose golds
...
Wire data_source into Document render, register Endpoint handlers via
run_artifact, restore marqdo-blog as an Artifact site, and replace old
compose_* web golds with ADR 0007 fixtures and docs.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-28 11:36:45 +08:00
cflmy and Cursor
67bac1bf02
feat(web): Document/Endpoint/Resource artifact rewrite (ADR 0007)
...
Replace the monolithic compose_*/configure author surface with file-level
web|endpoint artifacts, split ext/{web,data,security,net}, and lock
no-degrade rules so the model cannot regress to God-object APIs.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-28 11:06:38 +08:00
cflmy and Cursor
33f8b94bb0
release: v1.1.1 AI stack (llm/agent/metadata) + ship plugins/llm
...
Co-authored-by: Cursor <cursoragent@cursor.com >
v1.1.1
2026-09-24 20:34:08 +08:00
cflmy and Cursor
0ed57b6d54
feat(agent): ext APIs, goldens, and docs for MCP/resume/small-llm routing
...
Wire mcp_connect/list/call, resume_*, and demote Jev in author docs.
Offline goldens cover MCP client, resume, and small-llm/jev-alias route.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-24 20:26:55 +08:00
cflmy and Cursor
c29d48f38c
feat(agent): MCP stdio client, resume checkpoints, small-llm router alias
...
Add agent_mcp_client and agent_resume_* plugin APIs. Treat jev as a
compat alias of small-llm; auto cascade no longer probes MARQDO_JEV.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-24 20:26:55 +08:00
cflmy and Cursor
f1e82ce4e5
feat(llm): optional plugins/llm Transport ABI for chat completions
...
OpenAI transport prefers llm_chat_completions when the native plugin is
resolvable, and falls back to lib/net HTTP/SSE so CI stays green without the .so.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-24 20:26:55 +08:00
cflmy and Cursor
2d412e3bba
feat(llm): LLMResult.tool_calls from OpenAI-shaped responses
...
Parse choices[0].message.tool_calls into the ask Result; empty list when
absent. Offline gold covers tool_calls_from.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-24 20:07:59 +08:00
cflmy and Cursor
46d78c6e15
feat(core): Phase 2 Metadata scope lift (no body ${})
...
Inject bound frontmatter keys into the entry env as ordinary variables.
Reject body ${env…}; bytecode entry prologue seeds the same locals.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-24 20:05:25 +08:00
cflmy and Cursor
81a14f9b38
feat(llm): sys.module_source + entry prompt / meta offline paths
...
Expose entry source via sys.module_source; ask/stream fall back to
prompt_body of the entry document. Add meta-binding and entry-prompt golds.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-24 19:52:57 +08:00
cflmy and Cursor
88dc6d5a54
feat(core): Artifact Metadata Binding (${env|arg|sys|secret})
...
Load-time resolve of frontmatter bindings into Module.metadata; Secret
masking; sys.meta / --bind; llm ctor prefers meta over env_get.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-24 19:51:24 +08:00
cflmy and Cursor
4a2d89406b
fix(agent): preserve llm_free resources under plan force
...
Stop plan from clobbering an existing resources workbook with an explore
skeleton. Add llm.prompt helpers and agent-plan-preserve gold.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-24 19:34:05 +08:00
cflmy and Cursor
d8d435fead
feat(ai-stack): metrics, named handles, prompt docs, backends, zero-LLM
...
Finish ai-stack steps 1–5: model_turn usage, fast/reasoning, type:prompt
load, openai/ollama split, and agent-zero-llm gold. Fix compiled-skill
Marqdo syntax so llm_free await no longer falls through to plan+HTTP.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-24 19:30:25 +08:00
cflmy and Cursor
1f8e61f3bf
feat(llm): semantic ask/stream/collect surface (005)
...
Lift ext/ai/llm from OpenAI HTTP client to an intelligence primitive;
keep complete as compat. Add unified ai-stack roadmap linking agent + llm.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-24 13:35:38 +08:00
cflmy and Cursor
a9ee858f53
feat(agent): Skill Compilation + Adaptive Routing (v2/P4)
...
Episode → maybe_learn → llm_free skills, plus abstract router backends
(marqdo/small-llm/jev?/llm/auto) via plugins/agent; no core host changes.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-24 13:28:50 +08:00
cflmy and Cursor
8489d90926
docs(public): 新增 feature 18 —— AI 原生闭环(契约 + MLSP)中英各一篇
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-23 13:46:03 +08:00
cflmy and Cursor
5272acaea0
release: v1.1.0 —— 核心表面守卫 + 渐进式契约 + MLSP for AI
...
- Cargo.toml / marqdo-wasm / ext/VERSION → 1.1.0(CLI 与扩展同步)
- CHANGELOG v1.1.0(含核心表面 Δ = 无增删;诚实标注 P4(b) 盲测未达标)
- README 现状/安装/示例更新(新命令 check / --json / mlsp)
- debian/changelog 1.1.0-1ppa1;release.yml Highlights stub 更新
- 核心表面 Δ:无增删(19 构造不变;本版为 Runtime/Document 层变更)
Co-authored-by: Cursor <cursoragent@cursor.com >
v1.1.0
2026-09-23 13:31:27 +08:00
cflmy and Cursor
cba51238b6
doc/next/002: 智能体框架「认知编译」构想(Learning → Compilation)
...
用户维护文档归档:每次执行沉淀 mq.md;>3 次调用自动总结优化出记忆文档;
完全学会后降能耗运行(少 LLM 思考 / Jev 决策模型 / 纯分支控制)。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-23 13:19:56 +08:00
cflmy and Cursor
5fffb800f9
P4(b) 收口:mimo-v2.6-pro 两跑均端点 infra 不可评估,判据以 deepseek-flash 为准
...
- perf-validation-report §3 记录重跑终局(12/12→11/12 infra),(b) 判据判定不改
- three-problems-plan Phase 4 落地记录同步
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-23 13:10:28 +08:00
cflmy and Cursor
1a729eb9ec
P4 验证执行:(a)锚点消融✅ /(c)契约消融✅ /(d)防漂移✅ /(e)守卫演练✅ ;(b)盲测 deepseek-flash 完成未达标、mimo-v2.6-pro 重跑中
...
- perf-validation.md:五实验协议/判据/材料(2026-09-23 自设计)
- perf-validation-report-2026-09-23.md:汇总报告(判据逐项对照 + 诚实结论)
- tests/blind_experiment.rs + tests/blind/:盲测 harness(查询通道/修复回路/usage 计量)+ 冻结材料(6 任务书 + docs-bundle)
- tests/contract_ablation.rs:四边界×三情形消融(拦截 100%/误报 0%/零回归)
- tests/drift_drill.rs:9 漂移必报 + 2 负对照
- src/mlsp.rs:syntax 卡片自持化(semantics/rule/sample/doc_quote)
- three-problems.md §5.1 判据矩阵逐行判定(问题 1✅ 2✅ 3❌ );three-problems-plan.md Phase 4 落地记录
- 全量干净回归零失败
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-23 05:06:30 +08:00
cflmy and Cursor
00c763300e
test(repair): mimo-v2.6-flash cross-check + measurement-side hardening
...
mimo-v2.6-flash 终测:anchor 臂一轮 20/20=100%、plain 90%(最终 95%);
三轮双臂一轮修复率全部 >=85%(目标 >=80%),护栏 0 越界。
'测试不稳定'定性为三类测量端问题并全部加固(与 Marqdo 语义无关):
- 网关空体抖动 -> curl --retry + 5s 退避(加固后 0 次失败)
- 推理模型 reasoning_content 吃光 token 预算 -> max_tokens 2000->8000
- 模型输出格式畸形 -> parse_edits 容错(数组/单对象/NDJSON 多对象流/
字符串化元素/字符串型行号/围栏/数字后多余引号的确定性修补 unquote_line_nums)
报告按模型分文件(repair-experiment-<date>-<model>.md),cflmy/mimo 双报告并存;
计划记录更新为三轮对照表。干净环境 cargo test 444/444 全绿(零回归);
ext_llm_*/ext_agent_*_live 为环境开关型实况测试,与本期无关。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-23 01:27:01 +08:00
cflmy and Cursor
224b3d4a66
test(repair): §5.2(a) 模型在环修复实验 —— 锚点消融:anchor 100%(20/20) vs plain 85%,≥80% 目标达成
...
- tests/repair_experiment.rs:真实消费 validate → repair_targets → 模型行编辑 → repair_apply(越界必拒)
→ 复验 的完整闭环(≤2 轮;容错重试;cflmy @ llm.cflmy.cn,.env 读取,#[ignore] 不进常规回归)
- 双臂消融:anchor(诊断带 doc_anchor/doc_quote/suggestion)vs plain(剥掉)——
anchor 一轮修复 20/20=100%;plain 17/20=85%(3 例失败均为网络空体抖动)
- tests/common/mod.rs:golden 20 例与诊断/应用共享件抽出(repair_loop + experiment 同源)
- parse_edits 容错(数组/单对象/字符串化元素/围栏);越界必拒/abstain 由 repair_loop 硬断言覆盖
- 报告:doc/roadmap/repair-experiment-2026-09-22.md;.gitignore 补 .env(密钥不入库)
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-22 21:10:03 +08:00
cflmy and Cursor
81d26a265a
docs(roadmap): 落地记录 —— T3.4 修复回路工程项完成(护栏 + golden 20 例);T3.3 编号归位
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-22 20:14:32 +08:00
cflmy and Cursor
5b599125d1
feat(repair): T3.3 修复护栏 + golden 20 例 —— 机械护栏(有界行编辑·越界必拒·abstain)+ mlsp repair_apply
...
- src/repair.rs:行编辑有界应用(replace/delete/insert;触碰行必须落在靶点范围内,
越界 ⇒ 整体拒绝 + 越界清单,源零字节不改 = abstain;表尾追加允许 end+1)
- mlsp repair_apply:护栏的 MLSP 出口(ranges + edits → 新源;越界报 mlsp.repair_out_of_scope)
- tests/repair_loop.rs:golden 20 例(10 骨架 × 2)走完整修复循环
(诊断 → 靶点 → 金修复行编辑自动推导 → 范围自检 = 「易锚定」机器验证 → 应用 → 复验)
+ 护栏负例(越界必拒 + 源零字节不改 + 部分越界全拒)
- 待做:模型修复实验(把金修复换成模型编辑,测 ≥80% 修复率)
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-22 20:13:41 +08:00
cflmy and Cursor
18d89d6cf2
docs(roadmap): 落地记录更新 —— T3.4 完成;T3.3 golden 实验待做
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-22 19:47:19 +08:00
cflmy and Cursor
199b5c532f
docs(skill): T3.4 AI Skill 换骨 —— 背语法 → 查 MLSP;渐进式契约入语法面
...
- marqdo/SKILL.md: 置顶「查 MLSP」查询式工作流(五方法 + 行分隔 JSON 协议 + 修复护栏);
渐进式契约三种表格形状/位置/四边界;工作流与 checklist 增加 validate/check 环节
- marqdo-dev/SKILL.md: 契约/MLSP/三层准入/错误出口唯一的开发戒律
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-22 19:46:25 +08:00
cflmy and Cursor
db5f0e830b
feat(mlsp): Phase 3 MLSP for AI —— locate/syntax/validate/repair_targets/schema(T3.1/T3.2 + T2.6)
...
- src/mlsp.rs: 行分隔 JSON 协议 + 五 handler;语法唯一事实来源 = CORE_CONSTRUCTS(只加检索别名)
- repair_targets 带有界护栏策略(anchored-local / 越界必拒 abstain / max_attempts=2)
- schema 契约导出(T2.6):形参/返回/字段契约 + 升参清单 + 锚点
- marqdo mlsp 子命令:stdio 行分隔 JSON 服务
- tests/mlsp.rs 7 例全绿;全量回归零失败(含 262 gold)
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-22 19:44:35 +08:00
cflmy and Cursor
7a449c40b1
feat(contract): Phase 2 渐进式契约层 —— 契约表提取 + 四边界校验 + marqdo check 防漂移(T2.1–T2.5)
...
- src/contract.rs: 类型词汇(渐进标注)、参数/返回/字段三形状契约表解析、合并、四边界校验诊断
- src/parse/mod.rs: extract_function_contract —— 位置+形状双重判定,在升参推断之前提取;
绑定表/普通文档表绝不吃(P1 零回归),契约表从 body 移除(元数据永不执行)
- src/interp.rs: 四边界校验 —— 调用实参(3 条调用路径)/返回/表绑定/字段访问
- src/check.rs + marqdo check [--json]: 漂移双向互查、未知类型名(附建议)、错位契约
- src/load.rs: label_error 保留结构化诊断(错误出口唯一,不拍平成字符串)
- T2.4: 全部契约诊断带 doc_anchor/doc_quote/contract_ref
- tests/contracts.rs 12 例全绿;全量回归零失败(含 262 gold)
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-22 19:40:08 +08:00
cflmy and Cursor
97fda7aa10
feat(core): Phase 1 —— 核心收口 + 诊断地基(core-surface 守卫 · 三层准入 · Diagnostic JSON)
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-22 19:03:03 +08:00
cflmy and Cursor
a49592a3ba
docs: 三大问题设计移出 doc/next/ → roadmap/three-problems.md;新增落地计划 three-problems-plan.md
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-22 17:46:09 +08:00
cflmy and Cursor
ed9ac03c0c
docs: README 前置核心优势与愿景(Executable Knowledge 定位);doc/next 交流笔记入库
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-22 17:07:33 +08:00
cflmy and Cursor
cb46ad7abe
fix(ppa): trim bundled Rust to build essentials; clean extract on failure
...
Launchpad builds only need rustc + cargo + rust-std (debian/rules PATH),
but install.sh was still shipping rust-docs-json-preview / rustfmt /
rls (~1G). Also drop the 1.5G extract dir via EXIT trap when install
fails — the leftover is what filled /tmp last run.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-22 16:40:39 +08:00
cflmy and Cursor
586975090b
release: v1.0.7 — WS/网络边界加固
...
Co-authored-by: Cursor <cursoragent@cursor.com >
v1.0.7
2026-09-22 15:40:48 +08:00