Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,24 @@

English | [简体中文](https://github.com/LE0-Lin/AgentConfigScore/blob/main/README.simplified.md) | [繁體中文](https://github.com/LE0-Lin/AgentConfigScore/blob/main/README.traditional.md)

<!-- acs-safety-overview:start -->
## Safety review: start here

**AI Safety Challenge reviewers:** [watch the one-minute walkthrough](https://github.com/LE0-Lin/AgentConfigScore/blob/main/assets/agent-config-score-approval.mp4) · [inspect evidence and limitations](#safety-review-evidence) · [rerun the demo](https://github.com/LE0-Lin/AgentConfigScore/blob/main/docs/ai-safety-challenge.md#run-and-inspect).

The concrete scenario is an agent requesting deletion after a configuration
change has removed its approval protection. The project demonstrates two checks:

- **Before merging:** ACS compares instructions with a trusted baseline and can reject a recognized loss of protection, even when both scores remain 100.
- **Before deletion:** a separate example host checks operator-issued approval against the exact target and reviewed file state before allowing a one-file operation.

The released CLI performs static review; installing it does not intercept agent
actions. The executor prototype needs a controlled host and stable workspace.
The linked evidence separates scripted tests, caller-operated observations and
unverified real-world outcomes.

<!-- acs-safety-overview:end -->

<p align="center">
<img src="https://raw.githubusercontent.com/LE0-Lin/AgentConfigScore/main/assets/agent-config-score.svg?v=0.24.0" alt="AgentConfigScore compares baseline and candidate coding-agent instructions" width="100%" />
</p>
Expand Down Expand Up @@ -51,6 +69,24 @@ behavior is included in v0.26.2, with retained before/after evidence.
The [feedback-to-delivery map](https://github.com/LE0-Lin/AgentConfigScore/blob/main/docs/feedback-to-delivery.md)
connects a public maintainer request to implemented features and their limits.

<!-- acs-challenge-review:start -->
<a id="safety-review-evidence"></a>

## Safety evidence and reproduction

AgentConfigScore reviews changes to persistent agent instructions. The safety
demo pairs that static check with a **separate, host-controlled approval gate**
for deleting one disposable file.

| Review topic | Approach and evidence |
|---|---|
| Project and problem | Instruction changes can remove an approval requirement or stop it covering a target while both scores remain 100. The [configuration regression walkthrough](https://github.com/LE0-Lin/AgentConfigScore/blob/main/docs/ai-safety-challenge.md#1-catch-the-configuration-regression) shows the lost directive, a failing review and its repair. |
| Safety approach | Configured CI gates block recognized regressions using the reviewed baseline policy. Separately, the example host refuses `delete_file` without a matching, unexpired, single-use approval bound to the target and reviewed file state. The operator issues approval; an agent's `approved: true` cannot issue it. [Executor and trust boundary](https://github.com/LE0-Lin/AgentConfigScore/blob/main/examples/approval-gate/README.md). |
| Demo and supporting evidence | [One-minute rendered video](https://github.com/LE0-Lin/AgentConfigScore/blob/main/assets/agent-config-score-approval.mp4), [12 scripted host-operation cases and retained results](https://github.com/LE0-Lin/AgentConfigScore/blob/main/examples/approval-gate/recorded/result.md), and [rerun commands](https://github.com/LE0-Lin/AgentConfigScore/blob/main/docs/ai-safety-challenge.md#run-and-inspect). [Self-use checks](https://github.com/LE0-Lin/AgentConfigScore/blob/main/docs/self-use-check.md) separately retain concrete detections and high-score blind spots. Reports identify their tool versions and inputs; the video renders retained reports rather than recording a live agent session. |
| Limitations | Installing ACS does not intercept agent actions. The executor is a separate one-file prototype, requiring a stable workspace and a host that denies other execution channels; it is not an OS sandbox. Scripted cases and the separately labelled caller-operated smoke do not establish independent agent safety, general accuracy or sustained external use. [Full scope and limitations](https://github.com/LE0-Lin/AgentConfigScore/blob/main/docs/ai-safety-challenge.md#scope-of-the-prototype). |

<!-- acs-challenge-review:end -->

## What it helps you review

| Change | Review evidence |
Expand Down
30 changes: 30 additions & 0 deletions README.simplified.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@

[English](README.md) | 简体中文 | [繁體中文](README.traditional.md)

<!-- acs-safety-overview:start -->
## 安全方案与验证:从这里开始

**AI Safety Challenge 评委入口:**[观看一分钟演示](assets/agent-config-score-approval.mp4) · [查看证据与限制](#safety-review-evidence) · [复跑演示](docs/ai-safety-challenge.md#run-and-inspect)。

具体场景是:配置改动移除了删除授权保护,代理随后请求删除文件。项目演示两道检查:

- **合并前:**ACS 将指令与可信基线比较;即使前后分数都是 100,也能针对已识别的保护丢失拒绝改动。
- **删除前:**独立示例宿主在允许单文件操作前,核验操作员签发的授权是否与确切目标及已审核文件状态相符。

发布的 CLI 负责静态审核,安装后不会拦截代理行为。执行器原型依赖受控宿主和稳定工作区。证据分别标注脚本测试、调用方操作观察和仍未验证的真实使用效果。

<!-- acs-safety-overview:end -->

在合并前发现 AI 编程助手指令中的已知退化。

![远程脚本指令使样例分数从 100 降至 82,新增错误门禁返回 1](https://raw.githubusercontent.com/LE0-Lin/AgentConfigScore/main/assets/agent-config-score-demo.gif?v=terminal-024)
Expand All @@ -27,6 +41,22 @@ AgentConfigScore 检查 `AGENTS.md`、`CLAUDE.md`、Cursor、Copilot、Gemini

它是确定性检查器,不是 AI 评委。**A 100 只表示没有命中生效的规则,不表示指令有用、语义完美或安全无误。** 中文文档也不意味着检测器已经能够理解任意中文指令。

<!-- acs-challenge-review:start -->
<a id="safety-review-evidence"></a>

## 安全证据与复跑入口

AgentConfigScore 审核持久化代理指令的改动。安全演示把静态检查与一个**独立、由宿主控制的删除授权门禁**结合,实际操作仅涉及一个可丢弃的演示文件。

| 评审内容 | 方案与证据 |
|---|---|
| 项目与问题 | 指令改动可能移除授权要求,或让它不再覆盖目标,而前后分数仍是 100。[配置回归演示](docs/ai-safety-challenge.md#1-catch-the-configuration-regression)展示约束失去覆盖、审核失败和修复。 |
| 安全机制 | 配置好的 CI 使用已审核的基线策略阻止已识别的退化。独立示例宿主要求 `delete_file` 提供与目标及已审核文件状态相符、未过期且未使用的授权;授权由操作员签发,代理填写 `approved: true` 无法自行授权。[执行器与信任边界](examples/approval-gate/README.md)。 |
| 演示与支持证据 | [一分钟渲染视频](assets/agent-config-score-approval.mp4)、[12 个脚本化宿主操作案例及保留结果](examples/approval-gate/recorded/result.md)、[复跑命令](docs/ai-safety-challenge.md#run-and-inspect)。[仓库自测](docs/self-use-check.md)另行保留具体检出与高分盲区。报告记录工具版本和输入;视频由保留报告渲染,不是实时代理操作录屏。 |
| 局限 | 安装 ACS 不会拦截代理行为。执行器是独立的单文件原型,需要稳定工作区,以及禁止其他执行通道的宿主;它不是操作系统沙箱。脚本案例及另行标注的调用方操作记录,均不证明独立代理安全、通用准确率或外部持续使用效果。[完整范围与限制](docs/ai-safety-challenge.md#scope-of-the-prototype)。 |

<!-- acs-challenge-review:end -->

## 快速开始

需要 Python 3.10+。`diff` 还需要 Git;普通目录扫描和两个目录之间的 `compare` 不需要 Git。
Expand Down
30 changes: 30 additions & 0 deletions README.traditional.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@

[English](README.md) | [简体中文](README.simplified.md) | 繁體中文

<!-- acs-safety-overview:start -->
## 安全方案與驗證:從這裡開始

**AI Safety Challenge 評審入口:**[觀看一分鐘演示](assets/agent-config-score-approval.mp4) · [查看證據與限制](#safety-review-evidence) · [重跑演示](docs/ai-safety-challenge.md#run-and-inspect)。

具體場景是:設定變更移除了刪除授權保護,代理隨後請求刪除檔案。專案演示兩道檢查:

- **合併前:**ACS 將指令與可信基準比較;即使前後分數都是 100,也能針對已識別的保護遺失拒絕變更。
- **刪除前:**獨立範例宿主在允許單檔操作前,核驗操作員簽發的授權是否與確切目標及已審核檔案狀態相符。

發布的 CLI 負責靜態審查,安裝後不會攔截代理行為。執行器原型依賴受控宿主與穩定工作區。證據分別標註腳本測試、呼叫端操作觀察和仍未驗證的實際使用成效。

<!-- acs-safety-overview:end -->

在合併前發現 AI 程式開發助手指令中的已知退化。

![遠端指令碼指令使範例分數從 100 降至 82,新增錯誤閘門回傳 1](https://raw.githubusercontent.com/LE0-Lin/AgentConfigScore/main/assets/agent-config-score-demo.gif?v=terminal-024)
Expand All @@ -27,6 +41,22 @@ AgentConfigScore 檢查 `AGENTS.md`、`CLAUDE.md`、Cursor、Copilot、Gemini

它是確定性的檢查工具,不是 AI 評審。**A 100 只表示沒有命中生效的規則,不代表指令實用、語意完美或完全安全。** 提供中文文件也不表示檢查工具已經能理解任意中文指令。

<!-- acs-challenge-review:start -->
<a id="safety-review-evidence"></a>

## 安全證據與重跑入口

AgentConfigScore 審查持久化代理指令的變更。安全演示將靜態檢查與一個**獨立、由宿主控制的刪除授權門禁**結合,實際操作僅涉及一個可拋棄的示範檔案。

| 評審內容 | 方案與證據 |
|---|---|
| 專案與問題 | 指令變更可能移除授權要求,或使它不再涵蓋目標,而前後分數仍是 100。[設定回歸演示](docs/ai-safety-challenge.md#1-catch-the-configuration-regression)展示約束失去涵蓋、審查失敗與修復。 |
| 安全機制 | 設定好的 CI 使用已審核的基準策略阻止已識別的退化。獨立範例宿主要求 `delete_file` 提供與目標及已審核檔案狀態相符、未過期且未使用的授權;授權由操作員簽發,代理填寫 `approved: true` 無法自行授權。[執行器與信任邊界](examples/approval-gate/README.md)。 |
| 演示與支持證據 | [一分鐘渲染影片](assets/agent-config-score-approval.mp4)、[12 個腳本化宿主操作案例及保留結果](examples/approval-gate/recorded/result.md)、[重跑指令](docs/ai-safety-challenge.md#run-and-inspect)。[儲存庫自測](docs/self-use-check.md)另行保留具體檢出與高分盲區。報告記錄工具版本與輸入;影片由保留報告渲染,並非即時代理操作錄影。 |
| 限制 | 安裝 ACS 不會攔截代理行為。執行器是獨立的單檔原型,需要穩定工作區,以及禁止其他執行通道的宿主;它不是作業系統沙箱。腳本案例與另行標註的呼叫端操作紀錄,均不證明獨立代理安全、通用準確率或外部持續使用成效。[完整範圍與限制](docs/ai-safety-challenge.md#scope-of-the-prototype)。 |

<!-- acs-challenge-review:end -->

## 快速開始

需要 Python 3.10+。`diff` 另外需要 Git;一般目錄掃描和兩個目錄之間的 `compare` 不需要 Git。
Expand Down
Loading