feat: land S1–S6 executable-knowledge slices (NarrativeRef through CI)

Add comment-line NarrativeRef steps, generation CURRENT snapshots, frontmatter
sources/applicability, digest-guarded artifact.patch, lock change classes, and
an offline CI gate so the documented S0–S6 path has reviewable evidence.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
cflmyandCursor committed 2026-10-23 23:24:18 +08:00
1 parent 0e1bfb3359
commit dcd3d329d4
18 files changed
+1314 -77

No files matched your search

+9 -1
View File
@@ -18,6 +18,8 @@
| 06a | `baseline/06-reject/missing-import.mq.md` | expected_failure | 双后端均非 0 | 0(正确拒绝) |
| 06b | `baseline/06-reject/ambiguous.mq.md` | expected_failure | **双后端均拒绝**裸名同名(G02) | — |
| 10 | `baseline/10-boundcall/` | implemented | BoundCall 路径 SymbolId + DynamicCall(`call_fn`);双后端 `hi`/`60` | import 一行 |
| 11 | `baseline/11-narrative-ref/` | implemented | `narrate`/`navigation` 步骤;围栏不计;run 不拉 URL | 0 |
| 12 | `baseline/12-tax-source/` | implemented | `sources:` → evidence=sourced;过期 → expired;可试跑 `113` | sources + valid_until |
### 同名裸调用(G02)
@@ -43,7 +45,13 @@
| S2/G07 子集 | **done** | MLSP bind 含 `symbol_id`;execute 按源行绑定;pure 拒非纯 |
| S2/G02 BoundCall | **done** | 共享 `resolve_for_exec`;Tree/Bytecode 静态路径绑定;`bound_calls.json` / `dynamic_calls.json`;`10-boundcall` + `06b` |
| S2/G07 eng_reuse | **done(子集)** | `reuse_json` / `agent_eng_reuse`:`discovery_only` + `bind_required` + `bind_targets`;执行仍须 MLSP bind |
| S1/G03 NarrativeRef | **done(子集)** | 注释行 `[]()` → narrate/navigation;`11-narrative-ref` |
| S4/G05 来源 | **done(子集)** | frontmatter `sources`/`valid_until`;`12-tax-source`;business bind |
| S3 patch | **done(子集)** | MLSP `artifact.patch` + wording 回滚 |
| S5/G04 整代 | **done(子集)** | `generations/<id>/` + `CURRENT` 指针 |
| S5/G08 锁分类 | **done(子集)** | `LockReport.classes`;impact 含 narrates |
| S6 CI | **done(子集)** | `.github/workflows/executable-knowledge.yml` |
## 与后续切片的关系
- S3+:局部编辑、来源适用性、整代快照 — 见缺口路线图
- 完整订单示例、100 单元语料、远程授权与规模 SLO — 见缺口路线图;未完成项不得笼统宣称「可执行知识已交付」
@@ -0,0 +1,25 @@
---
markup: occlusion
title: S1 G03 正文 NarrativeRef
status: implemented
---
## 总额
订单含税合计。
*100*
# main
正文引用同一目标;URL 只作导航,围栏内链接不计步骤。
这张订单的含税总额是[含税总价](总额)。详见[政策原文](https://example.com/tax-policy)。
```
[围栏内](https://example.com/ignored)
```
行内代码 `[skip](总额)` 不计。
> print text=ok
@@ -0,0 +1,3 @@
# 2026 年标准增值税率
演示用政策原文。标准税率为 13%。
@@ -0,0 +1,20 @@
---
markup: occlusion
title: S4 G05 来源与适用期
status: implemented
sources:
- corpus.md#标准税率
applicability:
region: CN
valid_until: 2099-12-31
---
## 标准税率
*[当前标准税率](0.13)*
# main
**税率 = [读取标准税率](标准税率())**
**含税 = [演示含税价](100 * (1 + 税率))**
> print text=`含税`
@@ -0,0 +1,3 @@
# 2026 年标准增值税率
演示用政策原文。标准税率为 13%。
@@ -0,0 +1,18 @@
---
markup: occlusion
title: S4 G05 过期来源
status: implemented
sources:
- corpus.md#标准税率
applicability:
region: CN
valid_until: 2020-01-01
---
## 标准税率
*[过期政策下的税率演示](0.13)*
# main
> print text=ok