From 2002ac470f50f6821fffd4db4aa9d30928435ea3 Mon Sep 17 00:00:00 2001 From: Yuimi_Chaya <124485273+Yuimi-chaya@users.noreply.github.com> Date: Mon, 10 Aug 2026 21:12:20 +0800 Subject: [PATCH] Sync repository with current AGENTS policy --- CHANGELOG.md | 8 ++ README.md | 6 +- reference/AGENTS.md | 54 +++++------ references/interview-schema.md | 69 ++++++++++++-- references/rule-catalog.md | 38 +++++--- scripts/validate-repository.ps1 | 90 ++++++++++++++++++- skills/maintain-development-notes/SKILL.md | 6 +- .../agents/openai.yaml | 4 +- workflows/ADOPT.md | 35 +++++--- workflows/UPDATE.md | 21 +++-- 10 files changed, 247 insertions(+), 84 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 65102d7..1fad5dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.2.0 - 2026-08-10 + +- Synchronize the reference policy with the current 15-rule `AGENTS.md`. +- Add per-turn preflight and note-reading decisions, Git recovery checkpoints and rollback safety, capability-aware subagent escalation/routing/retry policies, and visual review transfer budgets. +- Extend adoption and update workflows with Git state inspection, recovery-point planning, capability fallbacks, and media constraints. +- Strengthen cross-file validation so outdated catalogs, interviews, workflows, or reference blocks cannot silently pass. +- Require the development-note Skill to re-read current instructions and recovery notes at the start of every project-work turn. + ## 0.1.1 - 2026-08-01 - Split development-note behavior into independent read and write gates. diff --git a/README.md b/README.md index f7603a6..c825d2c 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ 一套供本地 Agent 与用户共同审阅、按需采用的开发规范参考,以及用于复杂项目上下文恢复的 `maintain-development-notes` Skill。 -本仓库不会把参考 `AGENTS.md` 直接覆盖到用户目录。终端偏好、资源并发、子代理策略等属于用户决策,即使 Agent 能检测当前环境,也必须逐项解释并询问。只有在全部必答项完成、语义冲突逐项处理、最终 diff 获得明确确认后,本地 Agent 才能修改文件。 +本仓库不会把参考 `AGENTS.md` 直接覆盖到用户目录。终端偏好、逐回合预检、Git 检查点、资源并发、子代理能力路由和媒体审查预算等属于用户决策,即使 Agent 能检测当前环境,也必须逐项解释并询问。只有在全部必答项完成、语义冲突逐项处理、恢复点确认、最终 diff 获得明确确认后,本地 Agent 才能修改文件。 ## 仓库内容 @@ -37,6 +37,10 @@ workflows/ADOPT.md 和 references/interview-schema.md 与我逐项讨论。 - **最小修改**:保留用户现有内容、编码、BOM、换行和文件结构。 - **能力诚实**:平台不支持指定子代理模型或推理档位时,必须说明,不能声称已经配置。 - **先读后做**:遇到问题、选方案或恢复工作时,先检索既有笔记中的相同场景、用户偏好、已否决方案、总体方向和权威状态,再调查和修改。 +- **每轮预检**:项目回合开始时确认 Shell、工作目录、任务范围和 Git 状态,并重新读取最新适用指令与恢复笔记。 +- **可恢复检查点**:多文件、已验收功能、状态/配置、媒体或返工前,使用任务级本地提交或仓库外二进制补丁保护现场;发布权限另行确认。 +- **能力路由而非模型幻觉**:`luna`、`terra`、`sol` 只是参考角色映射,安装时必须检测真实能力并由用户确认等效路由。 +- **媒体轻量审查**:保留原图,发送受尺寸、质量和批量体积约束的审查副本;透明或像素细节使用无损裁切,禁止把图片 base64 塞进线程。 ## Skill 安装 diff --git a/reference/AGENTS.md b/reference/AGENTS.md index 787351c..d64d2b2 100644 --- a/reference/AGENTS.md +++ b/reference/AGENTS.md @@ -1,43 +1,31 @@ -你是我的编程助手,必须遵守以下规则。 +你是我的编程助手。以下为硬规则;与更高优先级指令冲突时,以更高优先级指令为准。 -## 环境与终端 +## 开工与记录 -1. 默认环境:中国大陆网络 + Windows + PowerShell 或 Git Bash。 -2. 执行命令前必须判断当前 Shell;PowerShell 不准当 bash 用,Git Bash 不准当 PowerShell 用。 -3. 命令失败后禁止原样重复执行;必须分析原因,并换用当前 Shell 支持的等价命令。 -4. PowerShell 中禁止使用 bash 专属写法:`sed`、`awk`、`grep`、`rm -rf`、`touch`、`export`、`cat <