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
4 changes: 1 addition & 3 deletions README.simplified.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# AgentConfigScore

[真实文档案例](docs/path-case-study.md):生成文件误报的修复、目录检查的新增覆盖,以及真实文档复跑如何拦住一次新误报。新路径逻辑已纳入 v0.26.2,报告保留修复前后的证据。

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

<!-- acs-safety-overview:start -->
Expand Down Expand Up @@ -39,7 +37,7 @@ AgentConfigScore 检查 `AGENTS.md`、`CLAUDE.md`、Cursor、Copilot、Gemini

![工作流程图,展示仓库初始化、基线回归检查与报告留存](https://raw.githubusercontent.com/LE0-Lin/AgentConfigScore/main/assets/agent-config-score-workflow.svg?v=0.24.0)

它是确定性检查器,不是 AI 评委。**A 100 只表示没有命中生效的规则,不表示指令有用、语义完美或安全无误。** 中文文档也不意味着检测器已经能够理解任意中文指令。
它是确定性静态检查器,不是 AI 评委。**A 100 只表示没有命中生效规则,不代表指令有用或绝对安全**(中文文档也不代表规则能理解任意中文语义)。另见[真实文档路径案例(英文)](docs/path-case-study.md)。

<!-- acs-challenge-review:start -->
<a id="safety-review-evidence"></a>
Expand Down
4 changes: 1 addition & 3 deletions README.traditional.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# AgentConfigScore

[真實文件案例](docs/path-case-study.md):產生檔案誤報的修復、目錄檢查的新增涵蓋,以及真實文件重跑如何攔下一次新誤報。新路徑邏輯已納入 v0.26.2,報告保留修復前後的證據。

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

<!-- acs-safety-overview:start -->
Expand Down Expand Up @@ -39,7 +37,7 @@ AgentConfigScore 檢查 `AGENTS.md`、`CLAUDE.md`、Cursor、Copilot、Gemini

![工作流程圖,展示儲存庫初始化、基準回歸檢查與報告保存](https://raw.githubusercontent.com/LE0-Lin/AgentConfigScore/main/assets/agent-config-score-workflow.svg?v=0.24.0)

它是確定性的檢查工具,不是 AI 評審。**A 100 只表示沒有命中生效的規則,不代表指令實用、語意完美或完全安全。** 提供中文文件也不表示檢查工具已經能理解任意中文指令。
它是確定性靜態檢查器,不是 AI 評審。**A 100 只表示沒有命中生效規則,不代表指令有用或絕對安全**(中文文件也不代表規則能理解任意中文語意)。另見[真實文件路徑案例(英文)](docs/path-case-study.md)。

<!-- acs-challenge-review:start -->
<a id="safety-review-evidence"></a>
Expand Down
90 changes: 42 additions & 48 deletions docs/architecture.md
Original file line number Diff line number Diff line change
@@ -1,60 +1,54 @@
# Design and shipped product boundary
# Architecture and scope

AgentConfigScore ships a dependency-free Python CLI and GitHub Action for local
instruction lint and deterministic change review. A complete supported journey
is installation, safe setup, a baseline comparison, source-located findings,
reviewed correction or audited exception, rerun and retained CI evidence.
AgentConfigScore is a dependency-free Python CLI and GitHub Action for local
instruction linting and deterministic PR regression checks.

```mermaid
flowchart LR
A[Selected repository trees] --> B[Discovery and source validation]
B --> C[Captured instruction text]
C --> D[Rule findings and baseline-governed score gate]
C --> E[Optional bounded Cursor attachment model]
E --> F[Same-task or independent-file comparisons]
C --> E[Optional Cursor attachment model]
E --> F[Declared-context or per-file comparisons]
D --> G[CLI decision and review evidence]
F --> G
G --> H[JSON / Markdown / CI summary / artifacts]
```

## Decisions that matter

- **Baseline ownership.** Normal score comparisons apply the reviewed baseline
policy and suppression set to both trees. A candidate cannot use its own
weaker threshold or new exception to authorize that same change. Explicit
CLI/Action overrides and workflow/tool revisions remain caller trust boundaries.
- **Captured source.** Instruction text that produced a scan is reused for its
regression checks. Cursor sources are captured once per side and evaluated
repeatedly without reopening each rule for each target. Filesystem checks
reduce accidental boundary violations while requiring stable trees.
- **Two context questions.** A declared multi-file task can retain a rule through
any matching file. Per-file coverage independently evaluates each selected
existing name and can reveal an API-only loss. This does not infer a user's
real task or establish native attachment.
- **Explicit uncertainty.** Manual/model loading, unsupported metadata and
opaque potentially active bodies stay unknown. Unknowns have a separate review
flag. An empty recognized baseline protects zero identities and stays visible.
- **Reproducible decisions.** Stable rule IDs, input/source identities, original
line evidence and typed exit behavior make specified decisions reviewable.
Scores describe active rule matches. Tool fingerprints identify covered
source bytes and do not authenticate a whole execution environment.

## Product acceptance

| Surface | Shipped behavior | Acceptance evidence |
| --- | --- | --- |
| Installation | Wheel, source distribution, two aliases and module entrypoint | Isolated installed acceptance on three operating systems |
| Setup | Dry run, conflict refusal, idempotence, explicit overwrite and workflow-only scope | Disposable repositories and input-byte preservation checks |
| Review | Scored regressions plus opt-in unscored coverage, with source locations | Positive, repair, rename, unchanged and unknown controls |
| CI | Ordinary gate plus optional strict coverage, summaries and retained reports | Actual composite Action on disposable Git fixtures |
| Failure handling | Operational failures use exit `2`, without successful coverage evidence | Empty/invalid/unreadable inputs and report-write failures |
| Recovery | Documented policy migration, history recovery and audited exceptions | Core guides, installed checks and explicit compatibility notes |

Native Cursor attachment fidelity, arbitrary-prose semantics, agent execution
enforcement and independent real-world accuracy are outside the shipped static
contract. They remain separate validation or product directions. Maintained
acceptance cases demonstrate engineering behavior and do not establish adoption.

A [separate native Cursor smoke report](../benchmarks/cursor-native-v1/README.md)
now retains versioned behavioral observations with screenshot and hook evidence.
It does not expand the static product's guarantees or establish complete loading.
## Core design decisions

- **Baseline ownership:** `diff` and `compare` apply the baseline repository's
policy and suppressions to both trees. A candidate PR cannot lower its own
threshold or suppress its own new errors. Explicit CLI/Action overrides remain
caller-owned.
- **Captured source:** instruction text read during a scan is reused for
regression checks (`instruction-file-removed`, `directive-polarity-flip`), and
Cursor rules are parsed once per tree rather than reopened per target file.
- **Two Cursor context views:** `scope compare`/`diff` evaluates a declared
multi-file task context; `scope coverage` evaluates each inventoried regular
file independently so an API-only rule loss is not masked by a matching
frontend file.
- **Explicit uncertainty:** manual/model-selected rules, unsupported metadata,
and uninterpreted rule bodies stay `unknown` rather than being treated as
clean.
- **Reproducible decisions:** stable rule IDs, source-line locations, typed exit
codes (`0` pass, `1` gate failed, `2` operational failure), and tool source
fingerprints make CI decisions auditable.

## Shipped surfaces and verification

| Surface | Shipped behavior | Verification |
|---|---|---|
| Packaging | Wheel, sdist, `agent-config-score`, `acs`, and `python -m agent_config_score` | Installed-package acceptance on Linux, Windows, and macOS |
| Setup | `init` with dry-run, conflict refusal, idempotence, `--force`, and `--workflow-only` | Disposable repo tests and input-byte preservation checks |
| Review | Scored regressions plus opt-in unscored Cursor coverage with source lines | Positive, repair, rename, unchanged, and unknown controls |
| CI | Read-only Action gate, optional PR comment recipe, summaries, and artifacts | Composite Action tests on disposable Git fixtures |
| Failure handling | Operational errors exit `2` without emitting a success report | Invalid/unreadable inputs and report-write failure tests |

## Out of scope

Runtime agent enforcement, native Cursor attachment observation, arbitrary-prose
semantics, and independent real-world accuracy benchmarks are outside the
shipped static CLI contract. See the separate
[native Cursor smoke report](../benchmarks/cursor-native-v1/README.md) and
[limitations](limitations.md) for details.
49 changes: 14 additions & 35 deletions docs/feedback-to-delivery.md
Original file line number Diff line number Diff line change
@@ -1,40 +1,19 @@
# Public maintainer feedback and delivered behavior
# Maintainer feedback to delivered features

In [issue #46](https://github.com/LE0-Lin/AgentConfigScore/issues/46),
JasonLandbridge described four capabilities he would find useful. This is
public, externally authored **requirements feedback**. It establishes the
origin of a request. External installation, sustained use, measured time saved
and maintainer-confirmed effectiveness remain unverified.
JasonLandbridge listed four capabilities he wanted from an instruction linter.
The table below maps those requests to what is currently shipped and where the
boundaries remain. (This tracks requirements feedback—not external adoption or
measured time saved.)

| Requested capability, paraphrased | Delivered surface | Verification and boundary |
| Requested capability | Shipped surface | Scope and limits |
|---|---|---|
| Check whether instruction-file references remain valid | `dead-path`, Markdown link resolution, repository/scope path checks | Released checks have deterministic tests. The [new path case study](path-case-study.md) adds a generated-output correction and explicit relative-directory handling in v0.26.2. Generated and package-relative ambiguity remain bounded. |
| Give practical instruction-file guidance | [Advisory checklist](best-practices.md), [maintainer workflow](maintainer-workflow.md), opt-in [safeguard review](guardrail-suggestions.md) | Documentation and narrowly recognized review suggestions are available. They do not constitute a general semantic reviewer or a scored best-practice certification. |
| Surface prompt-injection concerns | The released `prompt-injection-override` warning and its conservative context handling | The rule targets explicit prior-instruction override phrases. It does not detect arbitrary injection attacks or enforce agent behavior. |
| Make review results visible on PRs | [Opt-in single-comment workflow](pr-comments.md), including generated setup via `init --pr-comment` | The repository's CI and integration tests validate the maintained recipe. A caller explicitly grants comment permission. Adoption by the requester's repository is not established. |
| Check whether referenced paths stay valid | `dead-path`, local Markdown inline/reference links, explicit relative directory checks, generated-output and inline-code example handling | Deterministic rules with regression tests and a [public-source case study](path-case-study.md). Unprefixed directories and arbitrary build outputs stay conservative. |
| Give practical instruction-file guidance | `--explain` next steps, [best-practice checklist](best-practices.md), [maintainer workflow](maintainer-workflow.md), opt-in `guardrails` | Static review advice and narrow deletion-safeguard checks—not a general semantic reviewer or keyword-scored quality grade. |
| Surface prompt-injection concerns | `prompt-injection-override` with conservative prohibition/example context handling | Targets explicit override phrases; does not detect arbitrary paraphrases or runtime tool-output injections. |
| Make results visible on PRs | Opt-in single PR comment workflow (`init --pr-comment` / `examples/pr-comment.yml`) with per-rule breakdown and recheck commands | Tested in CI against a fake GitHub client; caller explicitly grants comment permissions and forks remain read-only ([PR comments](pr-comments.md)). |

## How to use this evidence

v0.27.0 strengthens two of these interfaces: Markdown link syntax
inside matched inline code is no longer treated as a live reference, and the
optional PR comment adds a validated per-rule breakdown plus recheck commands.
The [comment preview and compatibility guide](pr-comments.md) distinguish these
changes from the older v0.26.2 behavior. Neither change establishes
adoption by Jason or expands prompt-injection detection into a general defense.

The defensible project story is a concrete feedback loop: a public maintainer
requested review features; corresponding interfaces were implemented; the
project retained acceptance tests, versioned releases and limits; real source
inputs then exposed scanner errors that required further maintenance.

The [path replay](../benchmarks/path-check-v2/README.md) makes one of those
maintenance changes inspectable without executing upstream commands or asking
another maintainer to confirm an obvious sentence. It preserves failed attempts
and the final conservative scope. It remains project-authored development
evidence.

Independent reference labels, a matched AI comparison and externally observed
workflow outcomes are separate open evidence gaps. This document does not turn
a feature request, a GitHub star or a project-maintained test suite into a user
success metric. It makes the existing request and implemented response easy to
verify directly.
Open evidence gaps—independent human reference labels, a matched AI comparison,
and observed external adoption—remain tracked separately in
[review-comparison.md](review-comparison.md) and
[benchmarks/path-check-v2/README.md](../benchmarks/path-check-v2/README.md).
Loading
Loading