Browse Source

docs: fix imprecise eval data citation — show full pipeline 2225→881→835→786

Old: "835 GitHub configs, 94.1% defect rate" (misleading — implies 835 is total)
New: "2,225 YAML → 881 valid configs → 835 linted, 786 (94.1%) had ≥1 ERROR"

Fixed 6 occurrences across 2 files:
- RESEARCH_GAP_ANALYSIS.md (zh + en tables)
- docs/research/THEORY.md (§abstract, §7.0 intro, §outline)

The 94.1% figure itself is correct (786/835), but the denominator context
(835 is linted subset, not total searched) was consistently missing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
kenny67nju 7 months ago
parent
commit
32035e063d
2 changed files with 6 additions and 6 deletions
  1. 2 2
      RESEARCH_GAP_ANALYSIS.md
  2. 4 4
      docs/research/THEORY.md

+ 2 - 2
RESEARCH_GAP_ANALYSIS.md

@@ -33,7 +33,7 @@
 | 类型系统 `Γ; Σ ⊢ e : τ` | ✅ 静态 T-Compose 检查 + Json(S) 子类型 + 运行时 isinstance | `types.py` (44 tests) |
 | `from_config` 编译器(YAML → λA) | 5 类型分派 + T-Compose 编译时检查 | `fromconfig/compiler.py` |
 | Lint 工具(16 规则,L001–L025) | 框架感知 lint v3,含 L004a/b/c/d | `fromconfig/lint.py` |
-| 835 GitHub 配置评估 | 已完成,94.1% 缺陷率 | `docs/`,评估脚本 |
+| GitHub 大规模 lint 验证 | 2,225 YAML → 881 有效配置 → 835 成功 lint,其中 786 (94.1%) 含至少一条 ERROR | `docs/research/THEORY.md` §7.0 |
 | 终止定理 5.4 | `maxSteps` 运行时强制执行 | `primitives.py`(Loop) |
 | 语义忠实性测试 | 125/125 + 175 新测试通过 | `lambdagent/tests/` |
 | **语义保持变换** | ✅ 6 条代数定律作为 AST 重写规则 | `rewrite.py` (14 tests) |
@@ -356,7 +356,7 @@ P1: CEK 机器
 | Type system `Γ; Σ ⊢ e : τ` | ✅ Static T-Compose checking + Json(S) subtyping + runtime isinstance | `types.py` (44 tests) |
 | `from_config` compiler (YAML → λA) | 5-type dispatch + T-Compose compile-time checking | `fromconfig/compiler.py` |
 | Lint tool (16 rules, L001–L025) | Framework-aware lint v3 with L004a/b/c/d | `fromconfig/lint.py` |
-| 835 GitHub config evaluation | Completed, 94.1% defect rate | `docs/`, evaluation scripts |
+| GitHub large-scale lint validation | 2,225 YAML → 881 valid configs → 835 linted, 786 (94.1%) had ≥1 ERROR | `docs/research/THEORY.md` §7.0 |
 | Termination theorem 5.4 | `maxSteps` enforced at runtime | `primitives.py` (Loop) |
 | Semantic faithfulness tests | 125/125 + 175 new tests passing | `lambdagent/tests/` |
 | **Semantic-preserving transforms** | ✅ 6 algebraic laws as AST rewrite rules | `rewrite.py` (14 tests) |

+ 4 - 4
docs/research/THEORY.md

@@ -8,7 +8,7 @@
 1. **结构对应**:Lambda 演算的每个操作都有 LDS 中的精确对应物
 2. **可执行 DSL**:`lambdagent`——10,000+ 行 Python 代码,11 核心构造 + 5 多智能体构造 + 4 Skill 构造 + MCP/A2A/RAG/Checkpoint 集成,62 个导出符号
 3. **π-演算扩展**:多智能体通信(Channel/Send/Receive)、共享记忆(SharedMemory)、群组对话(GroupChat)
-4. **工业实证**:835 个 GitHub 真实配置的 lint 分析 + 9 个示例文件 + 4 项专利
+4. **工业实证**:2,225 YAML 中筛选 881 有效配置、835 成功 lint 的大规模分析 + 9 个示例文件 + 4 项专利
 5. **关键发现**:ReAct 的 `terminate` 工具 = Y 组合子的 base case `λx.x`
 6. **生态集成**:MCP 协议(工具互操作)、A2A 协议(Agent 互操作)、RAG(知识增强)
 
@@ -503,7 +503,7 @@ mgr = CheckpointManager("./checkpoints/")  # 多版本管理 + 回退
 - **Context**:求值环境 Γ + β-规约追踪记录(求值器的簿记系统)
 - **Dataset.to_lam()**:Lam 的便利构造器,`D.to_lam(n)` = `Lam(n, prompt=encode(D))`
 - **from_config()**:YAML → Lambda 编译器
-- **lint**:基于 Lambda 语义的静态分析(835 个 GitHub 配置,94.1% 含缺陷)
+- **lint**:基于 Lambda 语义的静态分析(2,225 YAML → 881 有效配置 → 835 成功 lint,其中 786 即 94.1% 含至少一条 ERROR)
 
 ### 6.3 指称语义:DSL → Lambda
 
@@ -584,7 +584,7 @@ Tool 的修改是局部的(只影响当前输入),Memory 的修改是全
 
 ### 7.0 GitHub 大规模 lint 验证
 
-使用 lambdagent lint 对 GitHub 上 835 个真实智能体配置进行静态分析:
+使用 lambdagent lint 对 GitHub 上真实智能体配置进行大规模静态分析(搜索 2,225 个 YAML,筛选出 881 个有效 Agent 配置,其中 835 个成功完成 lint):
 
 | 指标 | 数值 |
 |---|---|
@@ -871,7 +871,7 @@ Skill:      SUMMARIZE : Str → Str            — 有名字、有类型、可
 
 7. Industrial Evidence
    - agent-config.yml 的 Lambda 解读
-   - 835 个 GitHub 配置的 lint 分析
+   - GitHub 大规模 lint 验证(2,225 YAML → 881 有效 → 835 lint → 786 ERROR)
    - from_config() 编译器
    - 4 项发明专利