← 返回研究手册

研究原始记录

此页按原样展示本研究 JSON 记录。观察确认包含已发现的限制,不代表所有上游能力测试通过。

capabilities.json

[
  {
    "id": "C01",
    "name": "14 讲课程",
    "category": "课程",
    "status": "阅读资料",
    "input": "理解可靠 AI 工作流程",
    "output": "从模型能力、上下文到循环和图编排的学习路径",
    "mechanism": "Markdown 教学,配有代码演示",
    "boundary": "不是可安装执行的 Agent 引擎",
    "source": "docs/en/lectures/lecture-02-what-a-harness-actually-is/index.md",
    "verification": "目录核对、核心章节阅读"
  },
  {
    "id": "C02",
    "name": "8 项练习说明与 6 套项目目录",
    "category": "课程",
    "status": "阅读资料",
    "input": "学习并对比不同工作流程",
    "output": "P01–P06 starter/solution;P07/P08 任务说明",
    "mechanism": "同一 Electron 示例逐步演进;P05 有三种角色配置",
    "boundary": "P07/P08 的 projects 工程目录实际缺失",
    "source": "docs/en/projects/index.md",
    "verification": "目录实测"
  },
  {
    "id": "C03",
    "name": "4 篇产品设计拆解",
    "category": "课程",
    "status": "阅读资料",
    "input": "借鉴外部 Agent 产品的工作环境设计",
    "output": "Pi、Claude Code、Codex、DeepSeek 的分析文章",
    "mechanism": "用课程框架解释外部实现",
    "boundary": "属于作者的二次分析,不是四款产品的代码、插件或官方接口保证",
    "source": "docs/en/harness-designs/index.md",
    "verification": "目录与正文结构核对"
  },
  {
    "id": "C04",
    "name": "基础模板与参考流程",
    "category": "模板",
    "status": "需配置",
    "input": "把项目规则和交接标准写下来",
    "output": "规则、功能、进度、初始化、交接、清理、评审和质量文档",
    "mechanism": "人工/Agent 按模板填写,再纳入项目版本管理",
    "boundary": "课程模板和 Skill 模板字段不同,不能盲目混用",
    "source": "docs/en/resources/templates/index.md",
    "verification": "模板源码核对"
  },
  {
    "id": "C05",
    "name": "进阶仓库模板和 4 份 SOP",
    "category": "模板",
    "status": "需配置",
    "input": "大型项目需要更多架构、计划和可靠性文档",
    "output": "repo-template 与知识沉淀、架构、可观测性、浏览器验证流程",
    "mechanism": "短入口链接分层文档和执行计划",
    "boundary": "只有目录与流程模板;不会自动安装监控或浏览器工具",
    "source": "docs/en/resources/openai-advanced/index.md",
    "verification": "源码核对"
  },
  {
    "id": "C06",
    "name": "harness-creator Skill",
    "category": "Skill",
    "status": "需宿主执行",
    "input": "让 AI 帮项目建立或审计工作规则",
    "output": "针对项目生成文件、解释评分、提出改进",
    "mechanism": "SKILL.md 指导宿主模型按需读取 references、调用脚本",
    "boundary": "Skill 自身没有模型、常驻进程或调度器;安装不等于自动运行",
    "source": "skills/harness-creator/SKILL.md",
    "verification": "全文阅读;本轮未安装 Skill"
  },
  {
    "id": "C07",
    "name": "一键生成最小 Harness",
    "category": "脚本",
    "status": "已实测",
    "input": "目标项目目录",
    "output": "AGENTS.md、feature_list.json、progress.md、session-handoff.md、init.sh",
    "mechanism": "检测项目、替换模板、写入文件",
    "boundary": "生成的是占位任务与规则,不自动推导业务需求,不执行生成的验证命令",
    "source": "skills/harness-creator/scripts/create-harness.mjs",
    "verification": "生成和幂等性实测"
  },
  {
    "id": "C08",
    "name": "技术栈和包管理器探测",
    "category": "脚本",
    "status": "已实测",
    "input": "项目清单、锁文件、显式选项",
    "output": "适用的安装/测试/构建命令",
    "mechanism": "根据 manifest 和文件名分支判断,Node 读取已有 scripts",
    "boundary": "仅基础识别;混合项目和大型 monorepo 需配置;扫描上限 800 文件",
    "source": "skills/harness-creator/scripts/lib/harness-utils.mjs",
    "verification": "9 种栈分支及 3 种非默认包管理器实测"
  },
  {
    "id": "C09",
    "name": "保留现有文件及入口选择",
    "category": "脚本",
    "status": "已实测",
    "input": "已有工作文件、--agent-file、--commands",
    "output": "默认跳过已有文件,可选 CLAUDE.md 和自定义命令",
    "mechanism": "存在性检测;--force 才覆盖",
    "boundary": "不是智能合并;不自动迁移旧字段;--force 会替换目标文件",
    "source": "skills/harness-creator/scripts/create-harness.mjs",
    "verification": "保留文件、入口、自定义命令实测;未对用户文件覆盖"
  },
  {
    "id": "C10",
    "name": "启动与工作规则",
    "category": "模板",
    "status": "需配置",
    "input": "项目约束、操作顺序和完成定义",
    "output": "简短操作说明与文档导航",
    "mechanism": "通过宿主阅读指令影响模型决策",
    "boundary": "文档要求不等于运行时强制;模板启动顺序未显式要求读 progress/handoff",
    "source": "skills/harness-creator/templates/agents.md",
    "verification": "全文核对"
  },
  {
    "id": "C11",
    "name": "任务清单与依赖",
    "category": "模板",
    "status": "需配置",
    "input": "真实功能与验收标准",
    "output": "id/name/description/dependencies/status/evidence",
    "mechanism": "JSON 状态记录,加一项任务原则",
    "boundary": "没有任务调度、依赖环检测、并发锁或证据真实性验证",
    "source": "skills/harness-creator/templates/feature-list.json",
    "verification": "生成实测与字段核对"
  },
  {
    "id": "C12",
    "name": "进度与会话交接",
    "category": "模板",
    "status": "需配置",
    "input": "做了什么、未完成什么、阻塞和下一步",
    "output": "progress.md 和 session-handoff.md",
    "mechanism": "外部文件持久化,下一轮主动读取",
    "boundary": "不会自动保存全部聊天;状态需要更新与检查",
    "source": "skills/harness-creator/templates/session-handoff.md",
    "verification": "模板核对与生成实测"
  },
  {
    "id": "C13",
    "name": "初始化与失败停止",
    "category": "脚本",
    "status": "已实测",
    "input": "项目验证命令",
    "output": "可运行的 init.sh 和命令输出",
    "mechanism": "顺序执行命令,set -e 遇到失败停止",
    "boundary": "需 Bash 和依赖环境;无测试时不创造测试;生成版依赖当前工作目录",
    "source": "skills/harness-creator/scripts/lib/harness-utils.mjs",
    "verification": "自定义三步命令在失败处停止实测"
  },
  {
    "id": "C14",
    "name": "五维结构评分",
    "category": "脚本",
    "status": "已实测",
    "input": "固定文件名的规则、任务、进度、交接与初始化文件",
    "output": "各维度 1–5 分、总分、候选薄弱环节、退出码",
    "mechanism": "25 条存在性/字符串/Markdown 结构/JSON 字段检查",
    "boundary": "不运行目标测试;不验证 evidence;空目录也是 20 分;模板可满分",
    "source": "skills/harness-creator/scripts/validate-harness.mjs",
    "verification": "空目录、模板、非法状态实测"
  },
  {
    "id": "C15",
    "name": "HTML 评分报告",
    "category": "脚本",
    "status": "已实测",
    "input": "同一套结构评分结果",
    "output": "可浏览的独立 HTML 报告",
    "mechanism": "把五维评分及检查项插入 HTML 模板",
    "boundary": "静态报告,无历史数据库或实时监控",
    "source": "skills/harness-creator/scripts/render-assessment-html.mjs",
    "verification": "HTML 文件生成实测"
  },
  {
    "id": "C16",
    "name": "结构 Benchmark",
    "category": "脚本",
    "status": "已实测",
    "input": "目标项目与 evals 定义",
    "output": "JSON/HTML 报告、自检与退出码",
    "mechanism": "临时生成模板并评分;检查 eval 条目覆盖;再评分目标项目",
    "boundary": "不调用模型;不执行 10 条任务;自检未运行虚构项目里的 tsc/vitest",
    "source": "skills/harness-creator/scripts/run-benchmark.mjs",
    "verification": "完整本地运行"
  },
  {
    "id": "C17",
    "name": "10 条 Skill 评估用例",
    "category": "资料",
    "status": "阅读资料",
    "input": "需要评价 Skill 输出的测试任务",
    "output": "prompt、expected_output、expectations",
    "mechanism": "预先定义创建、记忆、安全、上下文、协作等代表场景",
    "boundary": "是用例说明,缺少自动执行宿主、采集回复和逐条判分的运行器",
    "source": "skills/harness-creator/evals/evals.json",
    "verification": "JSON 与 benchmark 消费方式核对"
  },
  {
    "id": "C18",
    "name": "独立 Bash 仓库审计",
    "category": "脚本",
    "status": "已实测",
    "input": "已有代码仓库路径",
    "output": "CRITICAL/RECOMMENDED 检查结果与建议",
    "mechanism": "检查文档、环境、状态、反馈及课程 L03–L12 的文字/文件规则",
    "boundary": "依赖 Bash/常用命令;评分口径与 Node 工具不同;不会执行测试",
    "source": "tools/audit-harness.sh",
    "verification": "在生成样例上实测退出 1"
  },
  {
    "id": "C19",
    "name": "记忆与上下文管理方法",
    "category": "参考模式",
    "status": "方法参考",
    "input": "长会话、上下文预算与信息遗忘问题",
    "output": "分层记忆、索引/主题文件、按需加载、压缩和隔离方案",
    "mechanism": "指导设计持久化和上下文选择",
    "boundary": "没有附带自动摘要、向量检索或 Token 预算执行引擎",
    "source": "skills/harness-creator/references/context-engineering-pattern.md",
    "verification": "参考文档阅读"
  },
  {
    "id": "C20",
    "name": "可复用 Skill 组织方法",
    "category": "参考模式",
    "status": "方法参考",
    "input": "希望跨项目复用流程",
    "output": "简短入口、深层 references、templates、evals 的组织规则",
    "mechanism": "按需加载和职责拆分",
    "boundary": "不生成或运行新的 Skill 平台",
    "source": "skills/harness-creator/references/skill-runtime-pattern.md",
    "verification": "参考文档阅读"
  },
  {
    "id": "C21",
    "name": "工具权限与安全方法",
    "category": "参考模式",
    "status": "方法参考",
    "input": "自定义 Agent 的工具调用策略",
    "output": "权限、并发分类、拒绝处理、审计设计",
    "mechanism": "提出工具注册和调用策略,附示例代码",
    "boundary": "没有可直接启用的沙箱、权限代理或 MCP Server",
    "source": "skills/harness-creator/references/tool-registry-pattern.md",
    "verification": "参考文档核对"
  },
  {
    "id": "C22",
    "name": "多 Agent 协作方法",
    "category": "参考模式",
    "status": "方法参考",
    "input": "多角色分工与并行任务",
    "output": "协调者/工作者/评审者的职责、工具范围和交接格式",
    "mechanism": "独立上下文、任务边界和集成验收",
    "boundary": "不会创建实际 Agent、工作树或任务队列;示例协调器未实现",
    "source": "skills/harness-creator/references/multi-agent-pattern.md",
    "verification": "参考文档阅读"
  },
  {
    "id": "C23",
    "name": "生命周期与 Hook 设计",
    "category": "参考模式",
    "status": "方法参考",
    "input": "一致启动、后台任务、结束交接",
    "output": "启动阶段、Hook 信任边界和长任务状态设计",
    "mechanism": "按依赖初始化、状态机、清理和恢复指导",
    "boundary": "不是已经运行的 Hook 系统或后台服务",
    "source": "skills/harness-creator/references/lifecycle-bootstrap-pattern.md",
    "verification": "参考文档核对"
  },
  {
    "id": "C24",
    "name": "目标循环与定时循环",
    "category": "编排",
    "status": "方法参考",
    "input": "可重复任务和停止条件",
    "output": "goal、loop-state 等模板和实验步骤",
    "mechanism": "每轮读状态、执行、验证、继续或停止",
    "boundary": "循环驱动与调度来自外部宿主;仓库本身不提供可直接用的通用守护进程",
    "source": "docs/en/lectures/lecture-13-loop-engineering/code/goal-template.md",
    "verification": "模板、课程和目录核对"
  },
  {
    "id": "C25",
    "name": "实现者与检查者分离",
    "category": "编排",
    "status": "需接入",
    "input": "任务、实现结果和独立评价标准",
    "output": "maker/checker 提示模板;P05 三种对照角色配置",
    "mechanism": "减少实现者自评偏差,检查失败则返工",
    "boundary": "评价仍可能遗漏错误;预填评分不是本轮实测收益",
    "source": "docs/en/lectures/lecture-13-loop-engineering/code/checker-prompt.md",
    "verification": "模板与 P05 README 核对"
  },
  {
    "id": "C26",
    "name": "图编排示例",
    "category": "编排",
    "status": "教学骨架",
    "input": "requirements、code、review 等共享状态",
    "output": "LangGraph 节点、边、条件路由与检查点示例",
    "mechanism": "research→implement→verify,失败返回 implement",
    "boundary": "模型未实现;测试是字符串判断;merge 仅打印;内存检查点不支持进程退出后持久恢复",
    "source": "docs/en/lectures/lecture-14-graph-engineering/code/maker_checker_graph.py",
    "verification": "源码核对;未运行完整图"
  },
  {
    "id": "C27",
    "name": "示例应用:文档导入与管理",
    "category": "示例应用",
    "status": "教学实现",
    "input": "本地文本文件",
    "output": "本地文件副本、正文、文档元数据和列表界面",
    "mechanism": "Electron 主进程 + 服务层 + JSON 文件持久化",
    "boundary": "主要按 UTF-8 文本读取;没有 PDF/OCR/Office 解析能力;不是独立上架成品",
    "source": "projects/project-06/solution/src/services/document-service.ts",
    "verification": "源码核对;未启动 GUI"
  },
  {
    "id": "C28",
    "name": "示例应用:分块与增量索引",
    "category": "示例应用",
    "status": "教学实现",
    "input": "已导入文档正文",
    "output": "段落分块、chunks 与 index-meta JSON",
    "mechanism": "约 500 字符目标分块,批量跳过已索引文档",
    "boundary": "无 embedding、向量库或内容变更哈希;单文档与批量索引一致性存在缺口",
    "source": "projects/project-06/solution/src/services/indexing-service.ts",
    "verification": "源码核对"
  },
  {
    "id": "C29",
    "name": "示例应用:带引用问答",
    "category": "示例应用",
    "status": "教学模拟",
    "input": "问题和文档分块",
    "output": "预设答案或摘录、最多两条相关引用",
    "mechanism": "按空格分词与关键词重合排序,匹配预设 MOCK_PATTERNS",
    "boundary": "没有真实 LLM;固定置信度不是真实概率;中文检索与任意问答能力有限",
    "source": "projects/project-06/solution/src/services/qa-service.ts",
    "verification": "源码核对"
  },
  {
    "id": "C30",
    "name": "示例应用:历史、反馈和数据保存",
    "category": "示例应用",
    "status": "教学实现",
    "input": "问答与用户反馈",
    "output": "qa-history.json、feedback.json 和界面状态",
    "mechanism": "同步本地 JSON 读写",
    "boundary": "反馈不会自动训练模型;注释称原子写但实现为直接 writeFileSync;无并发事务",
    "source": "projects/project-06/solution/src/services/persistence-service.ts",
    "verification": "源码核对"
  },
  {
    "id": "C31",
    "name": "示例应用:结构化日志",
    "category": "示例应用",
    "status": "教学实现",
    "input": "服务名、级别、消息及数据",
    "output": "带时间戳的 JSON 控制台输出",
    "mechanism": "Logger/ServiceLogger 分层,按日志级别过滤",
    "boundary": "未包含完整指标、追踪、日志平台和告警服务",
    "source": "projects/project-06/solution/src/services/logger.ts",
    "verification": "源码核对"
  },
  {
    "id": "C32",
    "name": "示例应用:架构边界检查",
    "category": "脚本",
    "status": "已实测",
    "input": "renderer、services、main 中的 TS 源码",
    "output": "跨层导入违规清单与退出码",
    "mechanism": "find + grep 匹配 Node/Electron/React 导入",
    "boundary": "文本匹配不是 AST 分析;源码目录缺失也可能通过",
    "source": "projects/project-06/solution/scripts/check-architecture.sh",
    "verification": "正常、注入违规、空目录三种实测"
  },
  {
    "id": "C33",
    "name": "示例应用:数据清理扫描",
    "category": "脚本",
    "status": "已实测",
    "input": "示例应用数据目录",
    "output": "孤立正文、缺失分块、失效引用等诊断",
    "mechanism": "Bash 调用 Python 读取 JSON 并对照文件",
    "boundary": "只扫描不清理;问题不保证非零退出;缺失正文计数存在子 shell 丢失问题",
    "source": "projects/project-06/solution/scripts/cleanup-scanner.sh",
    "verification": "孤立文件、缺失正文两种样例实测"
  },
  {
    "id": "C34",
    "name": "示例应用:性能 Benchmark",
    "category": "脚本",
    "status": "教学模拟",
    "input": "三个样本文本文件",
    "output": "拷贝、估算分块、关键词查询和完整性统计",
    "mechanism": "Shell 模拟操作并计时",
    "boundary": "不是调用真实应用服务;浮点 time.time 与 Bash 整数运算有兼容风险;未实跑",
    "source": "projects/project-06/solution/scripts/benchmark.sh",
    "verification": "源码核对"
  },
  {
    "id": "C35",
    "name": "课程网站构建与部署",
    "category": "维护工具",
    "status": "需依赖环境",
    "input": "多语言 Markdown、VitePress 配置",
    "output": "本地课程网站与 GitHub Pages 构建结果",
    "mechanism": "VitePress + GitHub Actions",
    "boundary": "服务课程内容,不是你的业务应用生成器;本轮未构建完整上游站点",
    "source": "package.json",
    "verification": "配置与 workflow 核对"
  },
  {
    "id": "C36",
    "name": "课程 PDF 与截图导出",
    "category": "维护工具",
    "status": "需依赖环境",
    "input": "构建后的课程网页、语言参数",
    "output": "artifacts/pdfs 中的合并 PDF、清单与 README 截图",
    "mechanism": "Playwright 渲染页面,pdf-lib 合并;截图工具生成预览",
    "boundary": "PDF CLI 当前只接受 en/zh;不等于 15 种语言全部可导出;本轮未生成上游 PDF",
    "source": "scripts/build-course-pdfs.ts",
    "verification": "导出脚本、共享工具与 workflow 核对"
  },
  {
    "id": "C37",
    "name": "课程路径与项目产物校验",
    "category": "维护工具",
    "status": "需依赖环境",
    "input": "课程项目 Markdown 和 projects 目录",
    "output": "不存在的路径或缺少文件的报告",
    "mechanism": "遍历项目文档路径字面量,核对 P01–P06 约定",
    "boundary": "不是应用测试;P07/P08 目录引用不一定被该规则全面识别;未实跑该 TS 脚本",
    "source": "scripts/validate-project-docs.ts",
    "verification": "源码核对"
  },
  {
    "id": "C38",
    "name": "多语言与素材维护",
    "category": "维护工具",
    "status": "维护脚本",
    "input": "乌兹别克语课程文本和外部 logo URL",
    "output": "修正文案或获取 SVG 文本",
    "mechanism": "Python 文本替换;简单 HTTPS 获取脚本",
    "boundary": "不属于 Harness 运行能力;修正脚本会写文件,素材获取依赖网络",
    "source": "scripts/uz-orthography-fix.py",
    "verification": "目录和脚本入口核对"
  }
]

source-structure.json

{
  "revision": "77e7a3e21469dcbece2558086c8d91657abeaa40",
  "file_count": 2478,
  "bytes": 13433691,
  "top_level": {
    ".github": 2,
    ".gitignore": 1,
    "CLAUDE.md": 1,
    "LICENSE": 1,
    "README.md": 1,
    "docs-readme": 15,
    "docs": 1913,
    "get_anthropic_logo.js": 1,
    "package-lock.json": 1,
    "package.json": 1,
    "projects": 495,
    "scripts": 6,
    "skills": 39,
    "tools": 1
  },
  "locales": [
    "ar",
    "de",
    "en",
    "es",
    "fr",
    "ja",
    "ko",
    "pt-BR",
    "ru",
    "tr",
    "uk",
    "uz",
    "vi",
    "zh",
    "zh-TW"
  ],
  "lectures": [
    {
      "number": 1,
      "title": "强模型为什么仍会失败",
      "purpose": "区分能力与执行可靠性;观察漏步骤、范围漂移、错误完成",
      "path": "docs/en/lectures/lecture-01-why-capable-agents-still-fail/index.md",
      "zh_path": "docs/zh/lectures/lecture-01-why-capable-agents-still-fail/index.md"
    },
    {
      "number": 2,
      "title": "Harness 到底是什么",
      "purpose": "识别工作环境、状态与反馈;理解模型之外的执行条件",
      "path": "docs/en/lectures/lecture-02-what-a-harness-actually-is/index.md",
      "zh_path": "docs/zh/lectures/lecture-02-what-a-harness-actually-is/index.md"
    },
    {
      "number": 3,
      "title": "仓库作为事实记录",
      "purpose": "把需求、决策和约束写进可读文件;减少会话外隐含知识",
      "path": "docs/en/lectures/lecture-03-why-the-repository-must-become-the-system-of-record/index.md",
      "zh_path": "docs/zh/lectures/lecture-03-why-the-repository-must-become-the-system-of-record/index.md"
    },
    {
      "number": 4,
      "title": "指令拆分与按需读取",
      "purpose": "短入口指向专题文档,避免把所有内容塞进一个文件",
      "path": "docs/en/lectures/lecture-04-why-one-giant-instruction-file-fails/index.md",
      "zh_path": "docs/zh/lectures/lecture-04-why-one-giant-instruction-file-fails/index.md"
    },
    {
      "number": 5,
      "title": "跨会话连续性",
      "purpose": "保存进度、未完成项和下一步,下一轮主动恢复",
      "path": "docs/en/lectures/lecture-05-why-long-running-tasks-lose-continuity/index.md",
      "zh_path": "docs/zh/lectures/lecture-05-why-long-running-tasks-lose-continuity/index.md"
    },
    {
      "number": 6,
      "title": "独立初始化阶段",
      "purpose": "修改前确认环境和基线健康,明确启动与验证入口",
      "path": "docs/en/lectures/lecture-06-why-initialization-needs-its-own-phase/index.md",
      "zh_path": "docs/zh/lectures/lecture-06-why-initialization-needs-its-own-phase/index.md"
    },
    {
      "number": 7,
      "title": "控制任务范围",
      "purpose": "一个明确任务、完成定义、影响范围与后续任务",
      "path": "docs/en/lectures/lecture-07-why-agents-overreach-and-under-finish/index.md",
      "zh_path": "docs/zh/lectures/lecture-07-why-agents-overreach-and-under-finish/index.md"
    },
    {
      "number": 8,
      "title": "功能清单与完成证据",
      "purpose": "把验收要求结构化,避免只凭叙述修改完成状态",
      "path": "docs/en/lectures/lecture-08-why-feature-lists-are-harness-primitives/index.md",
      "zh_path": "docs/zh/lectures/lecture-08-why-feature-lists-are-harness-primitives/index.md"
    },
    {
      "number": 9,
      "title": "避免过早宣布完成",
      "purpose": "核对可运行证据与清理状态,不以自信代替结果",
      "path": "docs/en/lectures/lecture-09-why-agents-declare-victory-too-early/index.md",
      "zh_path": "docs/zh/lectures/lecture-09-why-agents-declare-victory-too-early/index.md"
    },
    {
      "number": 10,
      "title": "完整链路与架构边界",
      "purpose": "贯穿真实用户路径验证,避免只测局部成功",
      "path": "docs/en/lectures/lecture-10-why-end-to-end-testing-changes-results/index.md",
      "zh_path": "docs/zh/lectures/lecture-10-why-end-to-end-testing-changes-results/index.md"
    },
    {
      "number": 11,
      "title": "可观测性与评审反馈",
      "purpose": "结构化日志、可重放场景、评审标准和任务契约",
      "path": "docs/en/lectures/lecture-11-why-observability-belongs-inside-the-harness/index.md",
      "zh_path": "docs/zh/lectures/lecture-11-why-observability-belongs-inside-the-harness/index.md"
    },
    {
      "number": 12,
      "title": "干净状态与持续维护",
      "purpose": "结束检查、可恢复交接、清理和对照评估",
      "path": "docs/en/lectures/lecture-12-why-every-session-must-leave-a-clean-state/index.md",
      "zh_path": "docs/zh/lectures/lecture-12-why-every-session-must-leave-a-clean-state/index.md"
    },
    {
      "number": 13,
      "title": "目标循环、定时循环和独立检查",
      "purpose": "把驱动步骤显式化,加入状态、停止条件和预算",
      "path": "docs/en/lectures/lecture-13-loop-engineering/index.md",
      "zh_path": "docs/zh/lectures/lecture-13-loop-engineering/index.md"
    },
    {
      "number": 14,
      "title": "从循环到图编排",
      "purpose": "节点、边、共享状态、条件路由、并行与恢复设计",
      "path": "docs/en/lectures/lecture-14-graph-engineering/index.md",
      "zh_path": "docs/zh/lectures/lecture-14-graph-engineering/index.md"
    }
  ],
  "projects": [
    {
      "number": 1,
      "title": "提示驱动与最小规则对照",
      "purpose": "对同一任务比较纯提示和规则环境",
      "delivery": "starter / solution 完整目录",
      "path": "docs/en/projects/project-01-baseline-vs-minimal-harness/index.md"
    },
    {
      "number": 2,
      "title": "Agent 可读工作区",
      "purpose": "整理入口、架构/产品文档与状态文件",
      "delivery": "starter / solution 完整目录",
      "path": "docs/en/projects/project-02-agent-readable-workspace/index.md"
    },
    {
      "number": 3,
      "title": "多会话接续",
      "purpose": "通过进度和交接恢复未完成任务",
      "delivery": "starter / solution 完整目录",
      "path": "docs/en/projects/project-03-multi-session-continuity/index.md"
    },
    {
      "number": 4,
      "title": "增量索引与范围反馈",
      "purpose": "实现增量索引并检查架构边界",
      "delivery": "starter / solution 完整目录",
      "path": "docs/en/projects/project-04-incremental-indexing/index.md"
    },
    {
      "number": 5,
      "title": "评审角色对照",
      "purpose": "同一 ConversationHistory 功能的单角色、生成+评审、规划+生成+评审对照",
      "delivery": "starter + 三个独立 solution 变体",
      "path": "docs/en/projects/project-05-grounded-qa-verification/index.md"
    },
    {
      "number": 6,
      "title": "完整 Harness 综合练习",
      "purpose": "已有产品上对比弱/完整规则,观察日志和维护能力",
      "delivery": "starter / solution 完整目录",
      "path": "docs/en/projects/project-06-runtime-observability-and-debugging/index.md"
    },
    {
      "number": 7,
      "title": "自动循环练习",
      "purpose": "目标循环、定时检查、实现者与检查者分离",
      "delivery": "只有课程说明;projects/project-07 不存在",
      "path": "docs/en/projects/project-07-loop-engineering-first-loop/index.md"
    },
    {
      "number": 8,
      "title": "工作流程图练习",
      "purpose": "显式图、并行汇合、回退与人工节点",
      "delivery": "只有课程说明与 L14 骨架;projects/project-08 不存在",
      "path": "docs/en/projects/project-08-graph-engineering-first-graph/index.md"
    }
  ],
  "lecture_code": [
    "docs/en/lectures/lecture-01-why-capable-agents-still-fail/code/failure-pattern-demo.ts",
    "docs/en/lectures/lecture-02-what-a-harness-actually-is/code/harness-vs-no-harness.ts",
    "docs/en/lectures/lecture-02-what-a-harness-actually-is/code/minimal-harness-loop.ts",
    "docs/en/lectures/lecture-03-why-the-repository-must-become-the-system-of-record/code/repo-reader.ts",
    "docs/en/lectures/lecture-04-why-one-giant-instruction-file-fails/code/split-vs-monolithic.ts",
    "docs/en/lectures/lecture-05-why-long-running-tasks-lose-continuity/code/session-simulator.ts",
    "docs/en/lectures/lecture-06-why-initialization-needs-its-own-phase/code/init-check.ts",
    "docs/en/lectures/lecture-06-why-initialization-needs-its-own-phase/code/init.sh",
    "docs/en/lectures/lecture-07-why-agents-overreach-and-under-finish/code/scope-tracker.ts",
    "docs/en/lectures/lecture-08-why-feature-lists-are-harness-primitives/code/feature-list-validator.ts",
    "docs/en/lectures/lecture-09-why-agents-declare-victory-too-early/code/victory-detector.ts",
    "docs/en/lectures/lecture-10-why-end-to-end-testing-changes-results/code/e2e-runner.ts",
    "docs/en/lectures/lecture-11-why-observability-belongs-inside-the-harness/code/runtime-logger.ts",
    "docs/en/lectures/lecture-12-why-every-session-must-leave-a-clean-state/code/benchmark-runner.ts",
    "docs/en/lectures/lecture-12-why-every-session-must-leave-a-clean-state/code/cleanup-scanner.ts",
    "docs/en/lectures/lecture-14-graph-engineering/code/maker_checker_graph.py"
  ],
  "capability_count": 38,
  "reading_scope": "全部路径/字节/Git blob SHA 核对;独立功能分类、核心代码和中英文内容核对;非所有翻译逐句审校。"
}

verification-results.json

{
  "research_date": "2026-09-30",
  "generated_at": "2026-09-29T16:30:45.877565+00:00",
  "revision": "77e7a3e21469dcbece2558086c8d91657abeaa40",
  "environment": {
    "platform": "Windows-10-10.0.26200-SP0",
    "python": "3.10.11",
    "node": "v22.15.0",
    "bash": "D:\\tool\\Git\\bin\\bash.exe"
  },
  "scope": "固定源码哈希、脚手架、结构评分、报告、命令探测和部分 Bash 检查;不包含真实 Agent 效果、Electron GUI、课程网站/PDF 构建。",
  "observations": [
    {
      "name": "固定版本全部文件的 Git blob SHA 校验",
      "confirmed": true,
      "evidence": {
        "files": 2478,
        "mismatches": []
      }
    },
    {
      "name": "空目录评分为 20/100,退出码 1",
      "confirmed": true,
      "evidence": {
        "exit_code": 1,
        "stdout": "{\n  \"overall\": 20,\n  \"bottleneck\": \"instructions\",\n  \"subsystems\": {\n    \"instructions\": {\n      \"score\": 1,\n      \"passed\": 0,\n      \"total\": 5,\n      \"checks\": [\n        {\n          \"pass\": false,\n          \"message\": \"Agent instruction file exists\"\n        },\n        {\n          \"pass\": false,\n          \"message\": \"Startup workflow documented\"\n        },\n        {\n          \"pass\": false,\n          \"message\": \"Definition of done documented\"\n        },\n        {\n          \"pass\": false,\n          \"message\": \"Verification commands discoverable\"\n        },\n        {\n          \"pass\": false,\n          \"message\": \"State artifacts routed from instructions\"\n        }\n      ]\n    },\n    \"state\": {\n      \"score\": 1,\n      \"passed\": 0,\n      \"total\": 5,\n      \"checks\": [\n        {\n          \"pass\": false,\n          \"message\": \"Feature tracker exists\"\n        },\n        {\n          \"pass\": false,\n          \"message\": \"Feature tracker is valid and has feature fields\"\n        },\n        {\n          \"pass\": false,\n          \"message\": \"Progress log exists\"\n        },\n        {\n          \"pass\": false,\n          \"message\": \"Progress log supports restart\"\n        },\n        {\n          \"pass\": false,\n          \"message\": \"Handoff captures blockers/files/next step\"\n        }\n      ]\n    },\n    \"verification\": {\n      \"score\": 1,\n      \"passed\": 0,\n      \"total\": 5,\n      \"checks\": [\n        {\n          \"pass\": false,\n          \"message\": \"Verification entrypoint exists\"\n        },\n        {\n          \"pass\": false,\n          \"message\": \"Verification fails fast\"\n        },\n        {\n          \"pass\": false,\n          \"message\": \"Test command documented\"\n        },\n        {\n          \"pass\": false,\n          \"message\": \"Static/build check documented\"\n        },\n        {\n          \"pass\": false,\n          \"message\": \"Verification evidence is recorded\"\n        }\n      ]\n    },\n    \"scope\": {\n      \"score\": 1,\n      \"passed\": 0,\n      \"total\": 5,\n      \"checks\": [\n        {\n          \"pass\": false,\n          \"message\": \"One-feature-at-a-time rule exists\"\n        },\n        {\n          \"pass\": false,\n          \"message\": \"Feature dependencies are tracked\"\n        },\n        {\n          \"pass\": false,\n          \"message\": \"Feature status is explicit\"\n        },\n        {\n          \"pass\": false,\n          \"message\": \"Scope boundary documented\"\n        },\n        {\n          \"pass\": false,\n          \"message\": \"Completion gate limits scope closure\"\n        }\n      ]\n    },\n    \"lifecycle\": {\n      \"score\": 1,\n      \"passed\": 0,\n      \"total\": 5,\n      \"checks\": [\n        {\n          \"pass\": false,\n          \"message\": \"Startup script exists\"\n        },\n        {\n          \"pass\": false,\n          \"message\": \"End-of-session procedure exists\"\n        },\n        {\n          \"pass\": false,\n          \"message\": \"Session handoff template exists\"\n        },\n        {\n          \"pass\": false,\n          \"message\": \"Session restart markers exist\"\n        },\n        {\n          \"pass\": false,\n          \"message\": \"Clean restart path documented\"\n        }\n      ]\n    }\n  }\n}",
        "stderr": ""
      }
    },
    {
      "name": "Node 项目生成五个工作文件",
      "confirmed": true,
      "evidence": {
        "exit_code": 0,
        "stdout": "Created harness for <FIXTURES>\\node-project\nDetected stack: node\nVerification commands:\n  - npm install\n  - npm run check\n  - npm test\n  - npm run build\n\nWRITTEN AGENTS.md\nWRITTEN feature_list.json\nWRITTEN progress.md\nWRITTEN session-handoff.md\nWRITTEN init.sh",
        "stderr": ""
      }
    },
    {
      "name": "从 package.json 选择安装、检查、测试和构建命令",
      "confirmed": true,
      "evidence": "#!/bin/bash\nset -e\n\necho \"=== Harness Initialization ===\"\n\necho \"=== npm install ===\"\nnpm install\n\necho \"=== npm run check ===\"\nnpm run check\n\necho \"=== npm test ===\"\nnpm test\n\necho \"=== npm run build ===\"\nnpm run build\n\necho \"=== Verification Complete ===\"\necho \"\"\necho \"Next steps:\"\necho \"1. Read feature_list.json to see current feature state\"\necho \"2. Pick ONE unfinished feature to work on\"\necho \"3. Implement only that feature\"\necho \"4. Re-run verification before claiming done\"\n"
    },
    {
      "name": "再次运行默认保留原文件",
      "confirmed": true,
      "evidence": {
        "exit_code": 0,
        "stdout": "Created harness for <FIXTURES>\\node-project\nDetected stack: node\nVerification commands:\n  - npm install\n  - npm run check\n  - npm test\n  - npm run build\n\nSKIPPED AGENTS.md (exists)\nSKIPPED feature_list.json (exists)\nSKIPPED progress.md (exists)\nSKIPPED session-handoff.md (exists)\nSKIPPED init.sh (exists)",
        "stderr": ""
      }
    },
    {
      "name": "没有业务代码和实际测试的模板项目仍为 100/100",
      "confirmed": true,
      "evidence": {
        "exit_code": 0,
        "stdout": "{\n  \"overall\": 100,\n  \"bottleneck\": null,\n  \"subsystems\": {\n    \"instructions\": {\n      \"score\": 5,\n      \"passed\": 5,\n      \"total\": 5,\n      \"checks\": [\n        {\n          \"pass\": true,\n          \"message\": \"Agent instruction file exists\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Startup workflow documented\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Definition of done documented\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Verification commands discoverable\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"State artifacts routed from instructions\"\n        }\n      ]\n    },\n    \"state\": {\n      \"score\": 5,\n      \"passed\": 5,\n      \"total\": 5,\n      \"checks\": [\n        {\n          \"pass\": true,\n          \"message\": \"Feature tracker exists\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Feature tracker is valid and has feature fields\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Progress log exists\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Progress log supports restart\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Handoff captures blockers/files/next step\"\n        }\n      ]\n    },\n    \"verification\": {\n      \"score\": 5,\n      \"passed\": 5,\n      \"total\": 5,\n      \"checks\": [\n        {\n          \"pass\": true,\n          \"message\": \"Verification entrypoint exists\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Verification fails fast\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Test command documented\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Static/build check documented\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Verification evidence is recorded\"\n        }\n      ]\n    },\n    \"scope\": {\n      \"score\": 5,\n      \"passed\": 5,\n      \"total\": 5,\n      \"checks\": [\n        {\n          \"pass\": true,\n          \"message\": \"One-feature-at-a-time rule exists\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Feature dependencies are tracked\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Feature status is explicit\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Scope boundary documented\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Completion gate limits scope closure\"\n        }\n      ]\n    },\n    \"lifecycle\": {\n      \"score\": 5,\n      \"passed\": 5,\n      \"total\": 5,\n      \"checks\": [\n        {\n          \"pass\": true,\n          \"message\": \"Startup script exists\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"End-of-session procedure exists\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Session handoff template exists\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Session restart markers exist\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Clean restart path documented\"\n        }\n      ]\n    }\n  }\n}",
        "stderr": ""
      }
    },
    {
      "name": "非法状态字符串不被 Node 评分器拒绝",
      "confirmed": true,
      "evidence": {
        "exit_code": 0,
        "stdout": "{\n  \"overall\": 100,\n  \"bottleneck\": null,\n  \"subsystems\": {\n    \"instructions\": {\n      \"score\": 5,\n      \"passed\": 5,\n      \"total\": 5,\n      \"checks\": [\n        {\n          \"pass\": true,\n          \"message\": \"Agent instruction file exists\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Startup workflow documented\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Definition of done documented\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Verification commands discoverable\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"State artifacts routed from instructions\"\n        }\n      ]\n    },\n    \"state\": {\n      \"score\": 5,\n      \"passed\": 5,\n      \"total\": 5,\n      \"checks\": [\n        {\n          \"pass\": true,\n          \"message\": \"Feature tracker exists\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Feature tracker is valid and has feature fields\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Progress log exists\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Progress log supports restart\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Handoff captures blockers/files/next step\"\n        }\n      ]\n    },\n    \"verification\": {\n      \"score\": 5,\n      \"passed\": 5,\n      \"total\": 5,\n      \"checks\": [\n        {\n          \"pass\": true,\n          \"message\": \"Verification entrypoint exists\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Verification fails fast\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Test command documented\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Static/build check documented\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Verification evidence is recorded\"\n        }\n      ]\n    },\n    \"scope\": {\n      \"score\": 5,\n      \"passed\": 5,\n      \"total\": 5,\n      \"checks\": [\n        {\n          \"pass\": true,\n          \"message\": \"One-feature-at-a-time rule exists\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Feature dependencies are tracked\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Feature status is explicit\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Scope boundary documented\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Completion gate limits scope closure\"\n        }\n      ]\n    },\n    \"lifecycle\": {\n      \"score\": 5,\n      \"passed\": 5,\n      \"total\": 5,\n      \"checks\": [\n        {\n          \"pass\": true,\n          \"message\": \"Startup script exists\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"End-of-session procedure exists\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Session handoff template exists\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Session restart markers exist\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Clean restart path documented\"\n        }\n      ]\n    }\n  }\n}",
        "stderr": ""
      }
    },
    {
      "name": "可生成独立 HTML 结构评分报告",
      "confirmed": true,
      "evidence": {
        "exit_code": 0,
        "stdout": "HTML report written to <FIXTURES>\\assessment.html\nOverall: 100/100",
        "stderr": ""
      }
    },
    {
      "name": "同时传 --json 与 --html 时 stdout 包含提示行",
      "confirmed": true,
      "evidence": {
        "exit_code": 0,
        "stdout": "HTML report written to <FIXTURES>\\combined.html\n{\n  \"overall\": 100,\n  \"bottleneck\": null,\n  \"subsystems\": {\n    \"instructions\": {\n      \"score\": 5,\n      \"passed\": 5,\n      \"total\": 5,\n      \"checks\": [\n        {\n          \"pass\": true,\n          \"message\": \"Agent instruction file exists\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Startup workflow documented\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Definition of done documented\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Verification commands discoverable\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"State artifacts routed from instructions\"\n        }\n      ]\n    },\n    \"state\": {\n      \"score\": 5,\n      \"passed\": 5,\n      \"total\": 5,\n      \"checks\": [\n        {\n          \"pass\": true,\n          \"message\": \"Feature tracker exists\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Feature tracker is valid and has feature fields\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Progress log exists\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Progress log supports restart\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Handoff captures blockers/files/next step\"\n        }\n      ]\n    },\n    \"verification\": {\n      \"score\": 5,\n      \"passed\": 5,\n      \"total\": 5,\n      \"checks\": [\n        {\n          \"pass\": true,\n          \"message\": \"Verification entrypoint exists\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Verification fails fast\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Test command documented\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Static/build check documented\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Verification evidence is recorded\"\n        }\n      ]\n    },\n    \"scope\": {\n      \"score\": 5,\n      \"passed\": 5,\n      \"total\": 5,\n      \"checks\": [\n        {\n          \"pass\": true,\n          \"message\": \"One-feature-at-a-time rule exists\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Feature dependencies are tracked\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Feature status is explicit\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Scope boundary documented\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Completion gate limits scope closure\"\n        }\n      ]\n    },\n    \"lifecycle\": {\n      \"score\": 5,\n      \"passed\": 5,\n      \"total\": 5,\n      \"checks\": [\n        {\n          \"pass\": true,\n          \"message\": \"Startup script exists\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"End-of-session procedure exists\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Session handoff template exists\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Session restart markers exist\"\n        },\n        {\n          \"pass\": true,\n          \"message\": \"Clean restart path documented\"\n        }\n      ]\n    }\n  }\n}",
        "stderr": ""
      }
    },
    {
      "name": "结构 benchmark 自检与 10 条 eval 结构检查可运行",
      "confirmed": true,
      "evidence": {
        "generatedAt": "2026-09-29T16:30:41.470Z",
        "target": "<FIXTURES>\\node-project",
        "selfCheck": {
          "pass": true,
          "score": 100,
          "bottleneck": null
        },
        "harness": {
          "overall": 100,
          "bottleneck": null,
          "subsystems": {
            "instructions": {
              "score": 5,
              "passed": 5,
              "total": 5,
              "checks": [
                {
                  "pass": true,
                  "message": "Agent instruction file exists"
                },
                {
                  "pass": true,
                  "message": "Startup workflow documented"
                },
                {
                  "pass": true,
                  "message": "Definition of done documented"
                },
                {
                  "pass": true,
                  "message": "Verification commands discoverable"
                },
                {
                  "pass": true,
                  "message": "State artifacts routed from instructions"
                }
              ]
            },
            "state": {
              "score": 5,
              "passed": 5,
              "total": 5,
              "checks": [
                {
                  "pass": true,
                  "message": "Feature tracker exists"
                },
                {
                  "pass": true,
                  "message": "Feature tracker is valid and has feature fields"
                },
                {
                  "pass": true,
                  "message": "Progress log exists"
                },
                {
                  "pass": true,
                  "message": "Progress log supports restart"
                },
                {
                  "pass": true,
                  "message": "Handoff captures blockers/files/next step"
                }
              ]
            },
            "verification": {
              "score": 5,
              "passed": 5,
              "total": 5,
              "checks": [
                {
                  "pass": true,
                  "message": "Verification entrypoint exists"
                },
                {
                  "pass": true,
                  "message": "Verification fails fast"
                },
                {
                  "pass": true,
                  "message": "Test command documented"
                },
                {
                  "pass": true,
                  "message": "Static/build check documented"
                },
                {
                  "pass": true,
                  "message": "Verification evidence is recorded"
                }
              ]
            },
            "scope": {
              "score": 5,
              "passed": 5,
              "total": 5,
              "checks": [
                {
                  "pass": true,
                  "message": "One-feature-at-a-time rule exists"
                },
                {
                  "pass": true,
                  "message": "Feature dependencies are tracked"
                },
                {
                  "pass": true,
                  "message": "Feature status is explicit"
                },
                {
                  "pass": true,
                  "message": "Scope boundary documented"
                },
                {
                  "pass": true,
                  "message": "Completion gate limits scope closure"
                }
              ]
            },
            "lifecycle": {
              "score": 5,
              "passed": 5,
              "total": 5,
              "checks": [
                {
                  "pass": true,
                  "message": "Startup script exists"
                },
                {
                  "pass": true,
                  "message": "End-of-session procedure exists"
                },
                {
                  "pass": true,
                  "message": "Session handoff template exists"
                },
                {
                  "pass": true,
                  "message": "Session restart markers exist"
                },
                {
                  "pass": true,
                  "message": "Clean restart path documented"
                }
              ]
            }
          }
        },
        "evals": {
          "score": 100,
          "passed": 10,
          "total": 10,
          "cases": 10,
          "checks": [
            {
              "pass": true,
              "message": "At least 10 eval cases"
            },
            {
              "pass": true,
              "message": "Covers minimal harness creation"
            },
            {
              "pass": true,
              "message": "Covers session continuity"
            },
            {
              "pass": true,
              "message": "Covers harness assessment"
            },
            {
              "pass": true,
              "message": "Covers verification workflow"
            },
            {
              "pass": true,
              "message": "Covers memory taxonomy"
            },
            {
              "pass": true,
              "message": "Covers tool safety"
            },
            {
              "pass": true,
              "message": "Covers multi-agent coordination"
            },
            {
              "pass": true,
              "message": "Each eval has prompt, expected output, expectations"
            },
            {
              "pass": true,
              "message": "Each eval has at least three expectation checks"
            }
          ]
        },
        "recommendation": "Ready for realistic before/after agent-session benchmarking."
      }
    },
    {
      "name": "技术栈命令生成:typescript-react",
      "confirmed": true,
      "evidence": {
        "expected_command": "npm install",
        "exit_code": 0,
        "stdout": "Created harness for <FIXTURES>\\typescript-react\nDetected stack: typescript-react\nVerification commands:\n  - npm install\n\nWRITTEN AGENTS.md\nWRITTEN feature_list.json\nWRITTEN progress.md\nWRITTEN session-handoff.md\nWRITTEN init.sh",
        "stderr": ""
      }
    },
    {
      "name": "技术栈命令生成:typescript",
      "confirmed": true,
      "evidence": {
        "expected_command": "npm install",
        "exit_code": 0,
        "stdout": "Created harness for <FIXTURES>\\typescript\nDetected stack: typescript\nVerification commands:\n  - npm install\n\nWRITTEN AGENTS.md\nWRITTEN feature_list.json\nWRITTEN progress.md\nWRITTEN session-handoff.md\nWRITTEN init.sh",
        "stderr": ""
      }
    },
    {
      "name": "技术栈命令生成:python",
      "confirmed": true,
      "evidence": {
        "expected_command": "python3 -m pytest || [ $? -eq 5 ]",
        "exit_code": 0,
        "stdout": "Created harness for <FIXTURES>\\python\nDetected stack: python\nVerification commands:\n  - python3 -m pytest || [ $? -eq 5 ]\n  - python3 -m compileall -q -x '(^|/)(\\.?venv|env|node_modules|build|dist|__pycache__)(/|$)' .\n\nWRITTEN AGENTS.md\nWRITTEN feature_list.json\nWRITTEN progress.md\nWRITTEN session-handoff.md\nWRITTEN init.sh",
        "stderr": ""
      }
    },
    {
      "name": "技术栈命令生成:go",
      "confirmed": true,
      "evidence": {
        "expected_command": "go test ./...",
        "exit_code": 0,
        "stdout": "Created harness for <FIXTURES>\\go\nDetected stack: go\nVerification commands:\n  - go test ./...\n\nWRITTEN AGENTS.md\nWRITTEN feature_list.json\nWRITTEN progress.md\nWRITTEN session-handoff.md\nWRITTEN init.sh",
        "stderr": ""
      }
    },
    {
      "name": "技术栈命令生成:rust",
      "confirmed": true,
      "evidence": {
        "expected_command": "cargo test",
        "exit_code": 0,
        "stdout": "Created harness for <FIXTURES>\\rust\nDetected stack: rust\nVerification commands:\n  - cargo test\n\nWRITTEN AGENTS.md\nWRITTEN feature_list.json\nWRITTEN progress.md\nWRITTEN session-handoff.md\nWRITTEN init.sh",
        "stderr": ""
      }
    },
    {
      "name": "技术栈命令生成:java-maven",
      "confirmed": true,
      "evidence": {
        "expected_command": "mvn test",
        "exit_code": 0,
        "stdout": "Created harness for <FIXTURES>\\java-maven\nDetected stack: java-maven\nVerification commands:\n  - mvn test\n\nWRITTEN AGENTS.md\nWRITTEN feature_list.json\nWRITTEN progress.md\nWRITTEN session-handoff.md\nWRITTEN init.sh",
        "stderr": ""
      }
    },
    {
      "name": "技术栈命令生成:java-gradle",
      "confirmed": true,
      "evidence": {
        "expected_command": "./gradlew test",
        "exit_code": 0,
        "stdout": "Created harness for <FIXTURES>\\java-gradle\nDetected stack: java-gradle\nVerification commands:\n  - ./gradlew test\n\nWRITTEN AGENTS.md\nWRITTEN feature_list.json\nWRITTEN progress.md\nWRITTEN session-handoff.md\nWRITTEN init.sh",
        "stderr": ""
      }
    },
    {
      "name": "技术栈命令生成:dotnet",
      "confirmed": true,
      "evidence": {
        "expected_command": "dotnet test",
        "exit_code": 0,
        "stdout": "Created harness for <FIXTURES>\\dotnet\nDetected stack: dotnet\nVerification commands:\n  - dotnet test\n\nWRITTEN AGENTS.md\nWRITTEN feature_list.json\nWRITTEN progress.md\nWRITTEN session-handoff.md\nWRITTEN init.sh",
        "stderr": ""
      }
    },
    {
      "name": "技术栈命令生成:generic",
      "confirmed": true,
      "evidence": {
        "expected_command": "No package manifest detected",
        "exit_code": 0,
        "stdout": "Created harness for <FIXTURES>\\generic\nDetected stack: generic\nVerification commands:\n  - echo \"No package manifest detected; replace this line with your project verification command.\"\n\nWRITTEN AGENTS.md\nWRITTEN feature_list.json\nWRITTEN progress.md\nWRITTEN session-handoff.md\nWRITTEN init.sh",
        "stderr": ""
      }
    },
    {
      "name": "锁文件识别:pnpm",
      "confirmed": true,
      "evidence": {
        "exit_code": 0,
        "stdout": "Created harness for <FIXTURES>\\pnpm\nDetected stack: node\nVerification commands:\n  - pnpm install\n  - pnpm test\n\nWRITTEN AGENTS.md\nWRITTEN feature_list.json\nWRITTEN progress.md\nWRITTEN session-handoff.md\nWRITTEN init.sh",
        "stderr": ""
      }
    },
    {
      "name": "锁文件识别:yarn",
      "confirmed": true,
      "evidence": {
        "exit_code": 0,
        "stdout": "Created harness for <FIXTURES>\\yarn\nDetected stack: node\nVerification commands:\n  - yarn install\n  - yarn test\n\nWRITTEN AGENTS.md\nWRITTEN feature_list.json\nWRITTEN progress.md\nWRITTEN session-handoff.md\nWRITTEN init.sh",
        "stderr": ""
      }
    },
    {
      "name": "锁文件识别:bun",
      "confirmed": true,
      "evidence": {
        "exit_code": 0,
        "stdout": "Created harness for <FIXTURES>\\bun\nDetected stack: node\nVerification commands:\n  - bun install\n  - bun test\n\nWRITTEN AGENTS.md\nWRITTEN feature_list.json\nWRITTEN progress.md\nWRITTEN session-handoff.md\nWRITTEN init.sh",
        "stderr": ""
      }
    },
    {
      "name": "可指定 CLAUDE.md 作为入口文件",
      "confirmed": true,
      "evidence": {
        "exit_code": 0,
        "stdout": "Created harness for <FIXTURES>\\claude-file\nDetected stack: generic\nVerification commands:\n  - echo \"No package manifest detected; replace this line with your project verification command.\"\n\nWRITTEN CLAUDE.md\nWRITTEN feature_list.json\nWRITTEN progress.md\nWRITTEN session-handoff.md\nWRITTEN init.sh",
        "stderr": ""
      }
    },
    {
      "name": "可使用自定义验证命令替换探测结果",
      "confirmed": true,
      "evidence": {
        "exit_code": 0,
        "stdout": "Created harness for <FIXTURES>\\failure-gate\nDetected stack: generic\nVerification commands:\n  - node pass.cjs\n  - node fail.cjs\n  - node later.cjs\n\nWRITTEN AGENTS.md\nWRITTEN feature_list.json\nWRITTEN progress.md\nWRITTEN session-handoff.md\nWRITTEN init.sh",
        "stderr": ""
      }
    },
    {
      "name": "生成的 init.sh 遇到失败停止且不执行后续命令",
      "confirmed": true,
      "evidence": {
        "exit_code": 7,
        "stdout": "=== Harness Initialization ===\n=== node pass.cjs ===\nfirst-step-ok\n=== node fail.cjs ===",
        "stderr": ""
      }
    },
    {
      "name": "Bash 审计采用不同清单,Node 满分项目仍可能失败",
      "confirmed": true,
      "evidence": {
        "exit_code": 1,
        "stdout": "\u001b[1mHarness Engineering Audit\u001b[0m\nRepo: F:Ref:  https://walkinglabs.github.io/learn-harness-engineering/en/\n\n\u001b[0;36m\u001b[1mSubsystem 1: Instructions\u001b[0m\n  \u001b[0;32m[PASS]\u001b[0m [CRITICAL] AGENTS.md or CLAUDE.md exists at repo root\n  \u001b[0;32m[PASS]\u001b[0m [CRITICAL] Instructions file answers 'what is this system?' in first 10 lines\n  \u001b[0;32m[PASS]\u001b[0m [CRITICAL] Verification commands are listed in instructions file\n  \u001b[0;32m[PASS]\u001b[0m [RECOMMENDED] Hard constraints (MUST / MUST NOT) are stated\n  \u001b[0;32m[PASS]\u001b[0m [RECOMMENDED] State files are enumerated (PROGRESS.md, feature_list)\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] Documentation staleness rule present (update docs with code, no stale docs)\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] Commit atomicity rule present (one logical op per commit)\n  \u001b[0;32m[PASS]\u001b[0m [RECOMMENDED] Entry file is 50–200 lines (router, not encyclopedia) [L04]\n  \u001b[0;32m[PASS]\u001b[0m [RECOMMENDED] Entry file links to topic documents in docs/ [L04]\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] Hard constraints section has source/why annotations per rule [L04]\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] Module-level doc (ARCHITECTURE.md or CONSTRAINTS.md) co-located with code\n\n\u001b[0;36m\u001b[1mSubsystem 2: Tools\u001b[0m\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] Tool access is scoped (settings.json, .claude/, or MCP config present)\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] MCP or tool integrations documented in instructions file\n\n\u001b[0;36m\u001b[1mSubsystem 3: Environment\u001b[0m\n  \u001b[0;31m[FAIL]\u001b[0m [CRITICAL] Dependency lockfile present\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] Runtime version pinned (.tool-versions, .nvmrc, .python-version, etc.)\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] Makefile (or equivalent task runner) present\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] Single-command setup target exists (make setup / npm install)\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] Single-command dev server target exists (make dev)\n\n\u001b[0;36m\u001b[1mSubsystem 4: State\u001b[0m\n  \u001b[0;32m[PASS]\u001b[0m [CRITICAL] PROGRESS.md exists at repo root\n  \u001b[0;32m[PASS]\u001b[0m [RECOMMENDED] PROGRESS.md references current task / in-progress work\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] DECISIONS.md or docs/decisions/ exists\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] feature_list.json (or equivalent) exists\n\n\u001b[0;36m\u001b[1mSubsystem 5: Feedback\u001b[0m\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] Makefile has a 'check' target (runs full verification pipeline)\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] Makefile has a 'test' target\n  \u001b[0;32m[PASS]\u001b[0m [CRITICAL] Verification command documented in AGENTS.md or CLAUDE.md\n\n\u001b[0;36m\u001b[1mL05: Cross-Session Continuity\u001b[0m\n  \u001b[0;32m[PASS]\u001b[0m [CRITICAL] PROGRESS.md has a Current State block (commit hash + test status)\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] Clock-in routine documented in instructions (read PROGRESS.md then run check)\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] Clock-out routine documented in instructions (update PROGRESS.md then commit)\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] Context anxiety / rushed-finish warning present in instructions\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] Commit message guidance (explain why, not just what) present\n  \u001b[0;32m[PASS]\u001b[0m [RECOMMENDED] PROGRESS.md Next Steps section exists with specific actions\n\n\u001b[0;36m\u001b[1mL03: Repository as System of Record\u001b[0m\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] ACID – Durability: cross-session knowledge written to tracked files (PROGRESS + DECISIONS present)\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] ACID – Consistency: verifiable consistent-state predicate documented (make check / equivalent)\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] ACID – Atomicity: commit atomicity rule stated in instructions\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] Knowledge proximity: at least one module-level doc exists alongside code (not only root-level docs)\n\n\u001b[0;36m\u001b[1mL07: WIP=1 and VCR Enforcement\u001b[0m\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] WIP=1 rule present in instructions (one active feature at a time) [L07]\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] make vcr target exists in Makefile [L07]\n\n\u001b[0;36m\u001b[1mL08: Feature List as Harness Primitive\u001b[0m\n  \u001b[0;32m[PASS]\u001b[0m [RECOMMENDED] feature_list.json entries have an 'evidence' field [L08]\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] verify-feature script present (scripts/verify-feature.sh) [L08]\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] make verify-feature target exists in Makefile [L08]\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] Feature List Rules documented in instructions (pass-state gating) [L08]\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] Feature granularity rule documented (one session per feature) [L08]\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] State machine documented (not_started → active → passing) [L08]\n\n\u001b[0;36m\u001b[1mL09: Premature Completion Prevention\u001b[0m\n  \u001b[0;32m[PASS]\u001b[0m [RECOMMENDED] Definition of Done section present in instructions [L09]\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] Three-layer verification model documented [L09]\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] Layer ordering rule documented (do not skip layers) [L09]\n  \u001b[0;32m[PASS]\u001b[0m [RECOMMENDED] Runtime signals documented (app startup, side effects) [L09]\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] feature_list.json uses layers with repair instructions [L09]\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] verify-feature.sh handles multi-layer validation with repair output [L09]\n\n\u001b[0;36m\u001b[1mL10: E2E Testing and Architectural Boundaries\u001b[0m\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] make e2e target exists in Makefile [L10]\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] make check-arch target exists in Makefile [L10]\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] scripts/check-arch.sh present [L10]\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] .harness/arch-rules.json present (architectural rule registry) [L10]\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] Arch rules use WHAT/WHY/FIX error format [L10]\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] Architecture Boundaries section present in instructions [L10]\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] E2E requirement for cross-component changes documented [L10]\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] Review-to-automation promotion principle documented [L10]\n\n\u001b[0;36m\u001b[1mL11: Observability\u001b[0m\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] templates/sprint-contract.md present [L11]\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] templates/evaluator-rubric.md present [L11]\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] scripts/session-trace.sh present (runtime signal collector) [L11]\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] .harness/traces/ directory present [L11]\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] Observability / sprint contract protocol documented in instructions [L11]\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] Evaluator rubric referenced in instructions [L11]\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] make session-start and session-end targets present [L11]\n\n\u001b[0;36m\u001b[1mL12: Clean State Protocol\u001b[0m\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] templates/clean-state-checklist.md present [L12]\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] scripts/clean-state-check.sh present (idempotent verifier) [L12]\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] make clean-check target present [L12]\n  \u001b[0;32m[PASS]\u001b[0m [RECOMMENDED] Session exit checklist / clean-state referenced in instructions [L12]\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] Quality document present (module health scores) [L12]\n  \u001b[0;32m[PASS]\u001b[0m [RECOMMENDED] Quality document referenced in instructions [L12]\n  \u001b[1;33m[WARN]\u001b[0m [RECOMMENDED] Dual-mode cleanup documented (immediate + periodic/weekly) [L12]\n\n\u001b[1m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m\n\u001b[1mSummary\u001b[0m\n  Total:       17 / 71 harness components present\n  Critical:    6 / 7 (must-have for basic function)\n  Recommended: 11 / 64 (best practice)\n\u001b[1m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m\n\n\u001b[1m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m\n\u001b[1mWhat to fix\u001b[0m\n\u001b[1m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Add a rule to AGENTS.md: 'Update docs in the same commit as the code change — no stale documentation.'\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Add a rule to AGENTS.md: 'One logical operation per commit; the repo must be in a consistent state after every commit.'\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Annotate each constraint in AGENTS.md with a 'source:' or 'why:' comment so agents know the reason (e.g. '# source: outage-2024-03').\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Create ARCHITECTURE.md or CONSTRAINTS.md inside a code directory (e.g. src/ARCHITECTURE.md) describing that module's design.\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Create .claude/settings.json to scope which tools the agent is allowed to use.\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Add a Tools/MCP section to your instructions file listing available integrations and their permitted capabilities.\n  • \u001b[0;31m[CRITICAL]\u001b[0m Commit a dependency lockfile (package-lock.json, yarn.lock, requirements.txt, go.sum, etc.) so installs are reproducible.\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Create a .nvmrc (Node) or .python-version (Python) or .tool-versions (asdf) file pinning the exact runtime version.\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Create a Makefile with at least setup, check, and test targets so all repo operations are one command.\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Add a 'setup:' target to your Makefile that installs all dependencies from scratch (e.g. 'setup: npm install').\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Add a 'dev:' target to your Makefile that starts the local dev server (e.g. 'dev: npm run dev').\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Create DECISIONS.md at the repo root to log architectural decisions and their rationale.\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Create feature_list.json — an array of objects each with fields: id, behavior, verification, state (values: planned/active/passing).\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Add a 'check:' target to Makefile that runs the full pipeline (lint + tests). This is the single command agents use to verify the repo is green.\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Add a 'test:' target to Makefile (e.g. 'test: npm test' or 'test: pytest').\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Add a Clock-in section to AGENTS.md: 'Before touching code: read PROGRESS.md, then run make check to confirm green baseline.'\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Add a Clock-out section to AGENTS.md: 'Before closing: update PROGRESS.md current state + next steps, run make check, commit.'\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Add a warning to AGENTS.md: 'If running low on context, do NOT rush to finish — stop, update PROGRESS.md, and commit a clean checkpoint.'\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Add commit guidance to AGENTS.md: 'Write commit messages that explain WHY the change was made, not just what changed.'\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Both PROGRESS.md and DECISIONS.md (or docs/decisions/) must exist so cross-session knowledge is never lost in an agent's context window.\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Document the consistent-state predicate in AGENTS.md (e.g. 'The repo is consistent when `make check` exits 0').\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m State commit atomicity in AGENTS.md: 'Each commit must represent one complete logical change; no partial work.'\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Create ARCHITECTURE.md or CONSTRAINTS.md inside a code directory (e.g. src/ARCHITECTURE.md) to document that module's design decisions.\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Add a WIP=1 rule to AGENTS.md: 'Only one feature may have state=active at a time. Complete and move to passing before activating the next.'\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Add a 'vcr:' target to Makefile that prints the VCR ratio: passing features / activated features (e.g. uses jq on feature_list.json).\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Create scripts/verify-feature.sh — the harness gate that runs a feature's verification command and transitions state to passing. Get the template from: https://github.com/Stephen-Kimoi/harness-engineering-template/blob/main/scripts/verify-feature.sh\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Add a 'verify-feature:' target to Makefile: 'bash scripts/verify-feature.sh $(F)'. Usage: make verify-feature F=F02\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Add a Feature List Rules section to AGENTS.md stating: 'Never set state to passing directly — run make verify-feature F=<id>.'\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Add a granularity rule to AGENTS.md: 'Each feature must be completable in one session. If it spans sessions, split it.'\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Document the state machine in AGENTS.md: not_started → active → passing. Note that skipping states is not allowed.\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Document the three-layer model in AGENTS.md: Layer 1 (syntax/static), Layer 2 (runtime behavior), Layer 3 (system confirmation / e2e).\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Add the ordering rule to AGENTS.md: 'Do not proceed to Layer N+1 if Layer N fails.'\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Add a 'layers' array to feature_list.json entries. Each layer needs: label, cmd, repair. The repair field gives the agent actionable fix instructions on failure.\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Update scripts/verify-feature.sh to run layers in sequence and print the repair instruction when a layer fails. Get the updated template from the harness-engineering-template repo.\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Add an 'e2e:' target to Makefile running your end-to-end suite (e.g. 'npx playwright test', 'pytest tests/e2e/', 'mix test --only e2e'). Required when changes cross component boundaries.\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Add a 'check-arch:' target to Makefile: 'bash scripts/check-arch.sh'. This runs architectural constraint rules and outputs WHAT/WHY/FIX on violations.\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Create scripts/check-arch.sh — the architectural constraint runner. Get the template from: https://github.com/Stephen-Kimoi/harness-engineering-template/blob/main/scripts/check-arch.sh\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Create .harness/arch-rules.json with at least one rule. Each rule needs: id, description, check, expect, what, why, fix. Promote every code-review finding into a rule here.\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Ensure each rule in .harness/arch-rules.json has 'what', 'why', and 'fix' fields with agent-actionable text (name the specific file, function, or env var to change).\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Add an Architecture Boundaries section to AGENTS.md describing your layer model and stating that 'make check-arch' enforces the constraints.\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Add a rule to AGENTS.md: 'Layer 3 (e2e) is required when changes cross component or domain boundaries.'\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Add the promotion principle to AGENTS.md: 'Every new error category caught in code review becomes a rule in .harness/arch-rules.json.'\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Create templates/sprint-contract.md — the pre-feature negotiation template defining scope, DoD, and exclusions. Get it from: https://github.com/Stephen-Kimoi/harness-engineering-template/blob/main/templates/sprint-contract.md\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Create templates/evaluator-rubric.md — the scoring rubric with A/B/C/D thresholds per dimension (correctness, arch compliance, test coverage, verification evidence).\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Create scripts/session-trace.sh to record structured JSONL events per session. Get the template from: https://github.com/Stephen-Kimoi/harness-engineering-template/blob/main/scripts/session-trace.sh\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Create .harness/traces/ directory (add a .gitkeep so it's tracked). Add .harness/traces/traces.jsonl to .gitignore — it's a runtime artifact, not source.\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Add an Observability section to AGENTS.md: sprint contract before each feature, session-trace events during verification, evaluator rubric scoring after completion.\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Reference the evaluator rubric in AGENTS.md: 'Score each completed sprint against templates/evaluator-rubric.md — every dimension must reach B or above.'\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Add session-start and session-end targets to Makefile wrapping scripts/session-trace.sh.\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Create templates/clean-state-checklist.md with the 5 dimensions: build passes, tests pass, feature list updated, no debug artifacts, startup path works. A session is not complete until all five pass.\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Create scripts/clean-state-check.sh — an idempotent script that checks the 5 clean-state dimensions and exits 0 only when all pass. Safe to run repeatedly.\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Add a 'clean-check:' target to Makefile: 'bash scripts/clean-state-check.sh .'  Agents run this at clock-out before committing.\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Create docs/quality-document.md (or use templates/quality-document.md) scoring each module A/B/C/D across 5 dimensions. New sessions read this to know where to prioritize.\n  • \u001b[1;33m[RECOMMENDED]\u001b[0m Document the dual-mode cleanup strategy in AGENTS.md: immediate cleanup at every session end + periodic (weekly/monthly) full-system sweep for structural drift.\n\u001b[1m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m\n\n\u001b[0;31m\u001b[1mCRITICAL items are missing. Address these before running long agent sessions.\u001b[0m",
        "stderr": ""
      }
    },
    {
      "name": "P06 架构边界检查脚本可运行",
      "confirmed": true,
      "evidence": {
        "exit_code": 0,
        "stdout": "=== Architecture Boundary Checks ===\n\nChecking renderer for Node.js core module imports...\n  PASS: No Node.js core imports in renderer\n\nChecking services for Electron IPC imports...\n  PASS: No Electron IPC in services\n\nChecking services and main for React imports...\n  PASS: No React imports in services/main\n\n=== Summary ===\nPASS: All architecture boundary checks passed",
        "stderr": ""
      }
    },
    {
      "name": "架构检查能捕获示例 renderer 的 fs 导入",
      "confirmed": true,
      "evidence": {
        "exit_code": 1,
        "stdout": "=== Architecture Boundary Checks ===\n\nChecking renderer for Node.js core module imports...\n  VIOLATION: src/renderer/bad.ts imports Node.js core module\n\nChecking services for Electron IPC imports...\n  PASS: No Electron IPC in services\n\nChecking services and main for React imports...\n  PASS: No React imports in services/main\n\n=== Summary ===\nFAIL: 1 violation(s) found",
        "stderr": ""
      }
    },
    {
      "name": "缺少源码目录也可通过架构检查,不能代替覆盖验证",
      "confirmed": true,
      "evidence": {
        "exit_code": 0,
        "stdout": "=== Architecture Boundary Checks ===\n\nChecking renderer for Node.js core module imports...\n  PASS: No Node.js core imports in renderer\n\nChecking services for Electron IPC imports...\n  PASS: No Electron IPC in services\n\nChecking services and main for React imports...\n  PASS: No React imports in services/main\n\n=== Summary ===\nPASS: All architecture boundary checks passed",
        "stderr": ""
      }
    },
    {
      "name": "清理扫描器缺失正文时报告 MISSING 却仍汇总 CLEAN",
      "confirmed": true,
      "evidence": {
        "exit_code": 0,
        "stdout": "=== Cleanup Scanner ===\nData directory: <FIXTURES>/missing-content\n\n[Check 1] Orphaned content files (content without metadata)\n  OK: No orphaned content files\n\n[Check 2] Dangling chunk files (chunks without index entries)\n  SKIP: No index data found\n\n[Check 3] Missing content files (metadata without content)\n  MISSING: content/doc-1\n.txt (document exists in metadata)\n\n[Check 4] Inconsistent metadata (indexed docs without chunk files)\n  OK: All indexed documents have chunk files\n\n[Check 5] Stale Q&A references (history referencing deleted docs)\n  SKIP: No Q&A history or documents metadata found\n\n=== Scan Complete ===\nResult: CLEAN (0 issues found)\n\nThe data directory is consistent. No cleanup needed.",
        "stderr": ""
      }
    },
    {
      "name": "清理扫描器发现孤立文件仍以 0 退出,不能直接作为 CI 关卡",
      "confirmed": true,
      "evidence": {
        "exit_code": 0,
        "stdout": "=== Cleanup Scanner ===\nData directory: <FIXTURES>/orphan-content\n\n[Check 1] Orphaned content files (content without metadata)\n  ORPHANED: content/orphan.txt (no matching document metadata)\n\n[Check 2] Dangling chunk files (chunks without index entries)\n  SKIP: No index data found\n\n[Check 3] Missing content files (metadata without content)\n  OK: No missing content files\n\n[Check 4] Inconsistent metadata (indexed docs without chunk files)\n  OK: All indexed documents have chunk files\n\n[Check 5] Stale Q&A references (history referencing deleted docs)\n  SKIP: No Q&A history or documents metadata found\n\n=== Scan Complete ===\nResult: ISSUES FOUND (1)\n\nRecommended actions:\n  1. Use the in-app Reset button to clear all data\n  2. Re-import documents from data/sample-documents/\n  3. Re-run this scanner to verify cleanup",
        "stderr": ""
      }
    },
    {
      "name": "P07/P08 有课程任务文档但没有对应 projects 工程目录",
      "confirmed": true,
      "evidence": {
        "actual_project_directories": [
          "project-01",
          "project-02",
          "project-03",
          "project-04",
          "project-05",
          "project-06",
          "shared"
        ]
      }
    },
    {
      "name": "图编排包含未实现模型调用与占位测试",
      "confirmed": true,
      "evidence": "静态源码核对;未连接模型,未安装 LangGraph。"
    },
    {
      "name": "P06 问答为预设模式和关键词检索",
      "confirmed": true,
      "evidence": "静态源码核对;未启动 Electron GUI。"
    }
  ],
  "confirmed": 34,
  "total": 34
}

reading-page-checks.json

{
  "generated_at": "2026-10-01T02:42:10.432407+00:00",
  "scope": "原创本地研究文档和阅读网页;非上游应用测试",
  "browser": "154.0.8037.58",
  "checks": [
    {
      "name": "38 项能力且 ID 唯一",
      "passed": true
    },
    {
      "name": "全部能力来源存在于固定源码树",
      "passed": true
    },
    {
      "name": "全量源码 2478 文件且 revision 一致",
      "passed": true
    },
    {
      "name": "上游行为 34 项观察均有证据",
      "passed": true
    },
    {
      "name": "总览能读取核心定位",
      "passed": true
    },
    {
      "name": "map 章节导航",
      "passed": true
    },
    {
      "name": "map 桌面没有页面横向溢出",
      "passed": true
    },
    {
      "name": "overview 章节导航",
      "passed": true
    },
    {
      "name": "overview 桌面没有页面横向溢出",
      "passed": true
    },
    {
      "name": "capabilities 章节导航",
      "passed": true
    },
    {
      "name": "capabilities 桌面没有页面横向溢出",
      "passed": true
    },
    {
      "name": "learning 章节导航",
      "passed": true
    },
    {
      "name": "learning 桌面没有页面横向溢出",
      "passed": true
    },
    {
      "name": "mechanism 章节导航",
      "passed": true
    },
    {
      "name": "mechanism 桌面没有页面横向溢出",
      "passed": true
    },
    {
      "name": "usage 章节导航",
      "passed": true
    },
    {
      "name": "usage 桌面没有页面横向溢出",
      "passed": true
    },
    {
      "name": "limits 章节导航",
      "passed": true
    },
    {
      "name": "limits 桌面没有页面横向溢出",
      "passed": true
    },
    {
      "name": "extensions 章节导航",
      "passed": true
    },
    {
      "name": "extensions 桌面没有页面横向溢出",
      "passed": true
    },
    {
      "name": "verification 章节导航",
      "passed": true
    },
    {
      "name": "verification 桌面没有页面横向溢出",
      "passed": true
    },
    {
      "name": "sources 章节导航",
      "passed": true
    },
    {
      "name": "sources 桌面没有页面横向溢出",
      "passed": true
    },
    {
      "name": "能力全景图已加载且 PNG/SVG 均可下载",
      "passed": true
    },
    {
      "name": "显示 38 个能力卡片",
      "passed": true
    },
    {
      "name": "能力关键词搜索",
      "passed": true
    },
    {
      "name": "展开能力可看到输入产物与边界",
      "passed": true
    },
    {
      "name": "搜索空态",
      "passed": true
    },
    {
      "name": "类别筛选",
      "passed": true
    },
    {
      "name": "类别和程度交叉筛选",
      "passed": true
    },
    {
      "name": "筛选重置恢复全部能力",
      "passed": true
    },
    {
      "name": "键盘可以展开能力",
      "passed": true
    },
    {
      "name": "刷新保留章节深链接",
      "passed": true
    },
    {
      "name": "打印模式包含全部章节及展开内容",
      "passed": true
    },
    {
      "name": "map 手机宽度没有页面横向溢出",
      "passed": true
    },
    {
      "name": "overview 手机宽度没有页面横向溢出",
      "passed": true
    },
    {
      "name": "capabilities 手机宽度没有页面横向溢出",
      "passed": true
    },
    {
      "name": "learning 手机宽度没有页面横向溢出",
      "passed": true
    },
    {
      "name": "mechanism 手机宽度没有页面横向溢出",
      "passed": true
    },
    {
      "name": "usage 手机宽度没有页面横向溢出",
      "passed": true
    },
    {
      "name": "limits 手机宽度没有页面横向溢出",
      "passed": true
    },
    {
      "name": "extensions 手机宽度没有页面横向溢出",
      "passed": true
    },
    {
      "name": "verification 手机宽度没有页面横向溢出",
      "passed": true
    },
    {
      "name": "sources 手机宽度没有页面横向溢出",
      "passed": true
    },
    {
      "name": "完整源码表含 2478 行",
      "passed": true
    },
    {
      "name": "源码路径搜索命中 5 个文件",
      "passed": true
    },
    {
      "name": "源码搜索空结果计数",
      "passed": true
    },
    {
      "name": "浏览器无 JavaScript 异常",
      "passed": true
    },
    {
      "name": "文档与网页的本地链接/HTML 锚点存在",
      "passed": true
    },
    {
      "name": "Markdown 固定版本来源路径存在",
      "passed": true
    }
  ],
  "errors": [],
  "passed": 52,
  "total": 52
}