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
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
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
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
b752cd49b7
fix(web): keep admin and RBAC desk quiet until opted in
...
Skip auto-gating admin_prefix when admin=false, and mount /_rbac/* only
when enable_rbac sets desk/管理台 so custom desks are not interfered with.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-18 16:01:40 +08:00
cflmy and Cursor
584cb9ac9d
feat(web): request-context field sources and page list binds
...
Replace domain comment hacks with generic session/route/now stamps,
server-only form fields, compose_list for detail+child lists, and a live gold.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-18 10:17:39 +08:00
cflmy
428ee141e1
fix(ppa): keep vendor checksums and reuse published orig on debian bumps
...
dh_clean was stripping Cargo.toml.orig and breaking Launchpad offline
builds; debian-only uploads now reuse the PPA orig with debuild -sd.
2026-09-18 09:02:53 +08:00
cflmy and Cursor
c5bb08022a
feat(web): collaborative notepad MVP over WS rooms
...
Add LWW text sync demo (DOC\\t protocol + presence) on route_ws rooms,
with design note and bag smoke.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-17 21:00:10 +08:00
cflmy and Cursor
b710745e88
feat(web): native SPA helpers, memory store, and demo
...
Add bridge scope=memory, lib/browser store_set/spa_goto, web-spa-app
list/detail/edit client routes demo, and helper smoke.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-17 20:58:21 +08:00
cflmy and Cursor
5cf84fe9b7
feat(web): RBAC, tenant scope, and WS room hooks
...
Add configurable role⊥permission (five tables, gate permissions, register,
/_rbac desk), multi-tenant path/header resolution with JSON tenant_scope,
and route_ws on_message/presence/dynamic room_key — with author surfaces,
demos, and smokes.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-17 20:54:02 +08:00
cflmy and Cursor
d1e2f0ced0
fix(parse): allow unbound GFM tables as discarded values
...
Bare tables in a function body evaluate as collections without requiring
a name bind; restores welcome-page install tables.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-17 10:29:13 +08:00
cflmy and Cursor
e31585842d
fix(ppa): bundle Rust toolchain for noble Cargo.lock v4 builds
...
Document install channels (PPA/GitHub/CDN); release skill supports
full/cli/ext modes with R2+GitHub ext uploads and manual PPA commands.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-17 10:18:50 +08:00
cflmy and Cursor
4923129d10
feat(packaging): add ppa-ship.sh one-shot build and dput
...
Installs apt deps with sudo, then builds/signs/uploads as the real user.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-17 10:01:22 +08:00
cflmy and Cursor
9bc7ef3b5a
feat(packaging): scaffold Ubuntu PPA debian/ for marqdo CLI
...
Add control/rules/changelog and ppa-build-source.sh (cargo vendor + debuild -S).
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-17 09:57:11 +08:00
cflmy and Cursor
9431ad835c
docs: link ext-cdn in doc/README
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-17 09:31:06 +08:00
cflmy and Cursor
2984d7d4f8
feat(ext): prefer Cloudflare R2 CDN and allow separate ext pack versions
...
Download order is CDN (ext.marqdo.com) → GitHub → proxy; pack SemVer from
ext/VERSION / CDN latest; add upload-ext-r2.py and release-skill notes.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-17 09:28:28 +08:00
cflmy and Cursor
6324036e41
fix(ext): mirror fallback for Release downloads and default ~/.marqdo/ext
...
Try proxy.cflmy.top when github.com fails; honor MARQDO_EXT_DOWNLOAD_BASE;
resolve ext imports from the ext-add install root without exporting MARQDO_EXT.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-17 08:57:24 +08:00
cflmy and Cursor
b5f43ee993
release: v1.0.0 — markup v0.3 as the 1.0 language surface
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-14 16:05:29 +08:00
cflmy and Cursor
76da97f090
ci(release): require Linux native+CLI zips; document proxy.cflmy.top
...
Pages was failing on leading-backtick narrative (already fixed on main).
Linux job now waits for the Windows release, then uploads .so plugins and a
Linux CLI bundle. Release skill treats those assets as mandatory.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-14 16:03:02 +08:00
cflmy and Cursor
7554e45f60
feat(debug): dump v0.3 prose bits, inferred params, and dead binds
...
--dump-lines tags [decl]/[bold]/[italic]; --dump-ast prints `inferred` params
and `dead=[…]`. Migrate leftover italic-assign unit fixtures to bold/return.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-14 15:33:45 +08:00
cflmy and Cursor
6994acb91d
fix(prose): mid-line italic emphasis is not a return
...
Skip *very important* / *foo.bar* / *code-as-docs* so narrative emphasis cannot end a function; keep whole-line *n* and 返回*n*.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-14 15:25:26 +08:00
cflmy and Cursor
bccfec86ba
feat(parse): bold infix expressions are ExprStmt, not calls
...
`` **n + 1** `` evaluates and discards (design §6.2); keep assign-first and
bare-call fallback. Explicit `` **> …** `` uses standalone bare=text rules.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-14 15:12:00 +08:00
cflmy and Cursor
114fd53cd1
fix(prose): Decl names are identifiers; skip non-decl tick spans
...
Reject `` `n+1` `` as Decl, and when skipping non-decl `` `…` `` advance past the closing tick so inner `*` cannot open italic (fixes `` `OPENAI_*` `` in ext/ai/llm).
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-14 14:50:01 +08:00
cflmy and Cursor
c8f41164c5
fix(parse): keep GAP recovery for unclosed bold
...
Hard-erroring code-shaped `` **… `` broke tests/structure/gap-star-json-body.mq.md; unclosed bold stays Comment so later statements still run.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-14 14:41:51 +08:00
cflmy and Cursor
6f303ff957
fix(parse): diagnose unclosed code-shaped bold
...
Treat `` **x = 1 `` as Code and error with a clear unclosed-`**` diagnostic instead of silently skipping it as a comment.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-14 14:39:58 +08:00
cflmy and Cursor
4f09e515ee
feat(view): mark prose-inferred params in Structure
...
Show inferred function parameters with a dashed chip and outline annotation so view surfaces v0.3 param elevation without changing the redundant call surfaces.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-14 14:04:45 +08:00
cflmy and Cursor
551f4ff322
feat(view): preserve bracket-marked calls without modifiers
...
Track CallExpr.bracket_marked from `[callee]` parse so Structure display keeps `[fn] …` instead of falling back to `> fn …` when there are no pre-modifiers.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-14 13:39:12 +08:00
cflmy and Cursor
d5a9301c7f
docs(public): finish stdlib bracket-call demos and fix import returns
...
Prefer [lib.fn] in remaining public/stdlib samples, correct italic returns in structure import modules, and keep lib/系统 narration from starting with backticks.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-14 13:32:17 +08:00
cflmy and Cursor
34915e3b16
docs: align remaining tutorial chapters with markup v0.3
...
Teach bold-as-code, italic-as-return, link-index, and bracket-marked calls across chapters 1–8/10–14 and Skill reference so teaching matches the runtime.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-14 13:18:28 +08:00
cflmy and Cursor
c55aad775e
docs: teach link-index and v0.3 markers in tutorial and Skill
...
Rewrite chapter 9 and Skill examples around [key](coll), bracket-marked
calls, and ** code / * return; keep footnote get as a transitional note.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-14 13:08:53 +08:00
cflmy and Cursor
ac3f0633cd
refactor(tests): prefer link-index in structure collection golds
...
Move collection-* structure fixtures to [key](base), and modernize
public/stdlib table/fs/time demos with bracket-marked library calls.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-14 13:03:03 +08:00
cflmy and Cursor
abcb141737
refactor: prefer link-index get across examples and tests
...
Migrate remaining footnote-style collection access in examples,
public/structure, and ext/lib smokes to [key](base); teach link-index in
structure pages and use bracket calls in the cafe journal example.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-14 12:54:38 +08:00
cflmy and Cursor
8d97adc1dc
docs(ext): narrate quantum/linalg and link-index public features
...
Add module intros and missing purpose lines for EN/ZH quantum and linalg
extensions; migrate remaining public/features footnote gets to [key](base).
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-14 12:45:57 +08:00
cflmy and Cursor
5c37d54070
refactor(ext): prefer link-index get in web and ai modules
...
Migrate footnote-style collection access to [key](base) (including nested
chains) in ext/web and ext/ai EN/ZH sources.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-14 11:55:09 +08:00
cflmy and Cursor
fecaacd5be
docs(lib): narrate remaining stdlib modules (M2)
...
Add module intros and per-function purpose lines across EN/ZH libs, with
callable examples on the smaller modules; keep + params and host bodies intact.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-14 11:47:35 +08:00
cflmy and Cursor
53bc3538da
docs(lib): narrate table/text/json as code-as-docs pilot
...
Add purpose lines and bracket-call examples in EN/ZH libs and public/stdlib
demos; keep explicit + params so function-body prose cannot be mistaken for
link-index or bold code.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-14 11:38:24 +08:00
cflmy and Cursor
0e0655b316
feat(markup): bracket-marked calls with pre_modifiers
...
Stabilize `mod… [callee] args` (modifiers → name=True) alongside link-index
disambiguation; expand in interp/bytecode, show in view, and document lib/view
code-as-docs waves before stdlib rewrite.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-14 11:33:11 +08:00