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
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
benchmarks/prospective-review-v1/*/licenses/* -text
benchmarks/path-audit-v1/** -text
benchmarks/cursor-native-v1/** -text
benchmarks/path-check-v2/** -text
benchmarks/path-check-v2/*.json whitespace=cr-at-eol
benchmarks/path-check-v2/collected/*.json whitespace=cr-at-eol
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,31 @@ jobs:
if-no-files-found: error
retention-days: 7

path_development:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.12"
- run: python -m pip install .
- name: Replay verified public source facts with the installed current build
shell: bash
run: |
python scripts/run_path_regression_check.py --python "$(which python)" \
--output "$RUNNER_TEMP/path-regression.json" --markdown "$RUNNER_TEMP/path-regression.md"
- name: Retain completed path observations even when a contract fails
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: path-development-replay
path: |
${{ runner.temp }}/path-regression.json
${{ runner.temp }}/path-regression.md
if-no-files-found: warn
retention-days: 14

score_history:
if: github.event_name == 'pull_request'
uses: ./.github/workflows/score-history.yml
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

## Unreleased

- Avoid missing-path warnings for narrowly declared generated outputs while
retaining checks on generator paths, Markdown links, commands and credentials.
- Check single-backtick directory references with `./` or `../` and a trailing `/` against concrete
repository/scope bases. Require a directory; retain the extensionless-name
and package-suffix boundaries.
- Add an offline installed-build replay of the known Vitest generated-output
case and directory-removal controls, separate from new-source smoke and
external user feedback. The published v0.26.1 results remain unchanged.

## v0.26.1

- Use public absolute URLs for the packaged overview's coverage and design links.
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ merged PR, where both scores stay 100.
instruction usefulness, semantic correctness or safety.
[Read the score contract and limitations.](https://github.com/LE0-Lin/AgentConfigScore/blob/main/docs/limitations.md)

[Read a public-source case study](https://github.com/LE0-Lin/AgentConfigScore/blob/main/docs/path-case-study.md):
a generated-file false positive, explicit directory checks, and a failing
development replay that caught a new warning before merge. The new path
behavior is currently unreleased source, 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.

## What it helps you review

| Change | Review evidence |
Expand Down
2 changes: 2 additions & 0 deletions README.simplified.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# AgentConfigScore

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

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

在合并前发现 AI 编程助手指令中的已知退化。
Expand Down
2 changes: 2 additions & 0 deletions README.traditional.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# AgentConfigScore

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

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

在合併前發現 AI 程式開發助手指令中的已知退化。
Expand Down
7 changes: 7 additions & 0 deletions benchmarks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ not a complete attachment trace or independent accuracy estimate.

None of these workflows claims that A 100 means semantic prompt quality.

The [path-fix development replay](path-check-v2/README.md) separately compares
the unchanged published v0.26.1 observations with the corrected source build.
It retains the generated-output fix, eight removal controls, an introduced
directory false positive caught before merge, and the subsequent passing run.
A separate fixed new-source registry produced zero eligible path candidates;
no fresh correctness estimate or external-user feedback is claimed.

## AI comparison status

**No independent AI comparison has been completed.** A repository script now
Expand Down
114 changes: 114 additions & 0 deletions benchmarks/path-check-v2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
# Path checks: bounded fixes and reproducible evidence

This is **development evidence**, separate from external user feedback or
independent accuracy. The changed runtime is an unreleased source build. The
published v0.26.1 reports and its 474-case benchmark remain unchanged.

## Actual problems addressed

Vitest's pinned `AGENTS.md:201` explicitly says that
`docs/.vitepress/contributor-names.json` is generated by `pnpm docs:contributors`.
The [retained producer context](../path-audit-v1/posthoc-context.json) links that
command to `scripts/update-contributors.ts`, whose write target matches the
declared file. The original published scanner nevertheless warned about its
absence from the unbuilt Git checkout.

The fix recognizes a complete, immediate generated-output declaration. It
still checks the generator's own path, actual Markdown links, dangerous commands
and credential shapes. It trusts the declared output role, not its truthfulness;
it does not build the project or interpret arbitrary prose.

The earlier audit also exposed five misses when existing directory targets were
independently removed from verified path projections. Four use a quoted literal
with a trailing slash. The final rule requires an explicit `./` or `../` prefix
as well, so unprefixed spellings stay unresolved. Separate synthetic variants
add `./` before removing the target to test the explicit spelling. `test/unit`, which has no trailing slash, remains a
documented heuristic boundary. The [full grammar and scope](../../docs/limitations.md#plain-prose-path-references)
includes package ambiguity, aliases, examples and filesystem limits.

The first installed Linux replay failed its acceptance gate: the new directory
check incorrectly treated Vitest's bare `dist/` package-export/build-output
reference at line 67 as a required root directory. A diagnostic rerun of that
failing implementation is retained in [first-attempt.json](first-attempt.json),
not recounted as a passing run. A
follow-up narrows the rule so bare build-output names remain unasserted, while
explicit root/package paths still receive checks. This parser change occurred
after the fresh collection, so later reports correctly show a source-freeze
mismatch; the collection is now development replay material. That intermediate
version detected 7/8 unchanged-text controls, but its whole-document observations
also added warnings for package `lib/` outputs and Husky's install-time directory.
The intermediate [broad-directory attempt](broad-directory-attempt.json) is
retained. The final rule uses explicit relative spellings instead of a growing
list of guessed output-directory exemptions.

## Completed result

The final installed Linux CI replay is identified in [artifact/source identities](evidence.json).
[Readable results](result.md), [full JSON](result.json)
and [artifact/source identities](evidence.json) are retained here.

| Development observation | Published v0.26.1 | Changed source |
|---|---|---|
| Vitest's declared generated contributor file | Warning | No warning |
| Eight separately removed tracked targets, original wording | 3 detected | 3 detected |
| Original 16 selected natural occurrences | 0 flagged | 0 flagged |

Four separate explicit-directory variants add `./` to the selected literal,
then remove the target. They are reported separately from unchanged-source
controls. The five original ambiguous directory spellings remain outside the
default rule. These are development fixtures and correlated occurrences, not a
real-world accuracy percentage or upstream defects. Whole-document observations
are retained so selected-case counts cannot hide new unselected warnings.

## Replay, retain and inspect

The runner preserves the original source text, Git identities, old findings and
unfavorable controls. It compares current installed-source observations with
the frozen v0.26.1 results, without rewriting the original audit.

On Linux with a case-sensitive filesystem, from this checkout:

```bash
python -m pip install .
python scripts/run_path_regression_check.py --python /absolute/path/to/python \
--output path-regression.json --markdown path-regression.md
```

Both outputs must be new. The current installed build is identified by a complete
source fingerprint, because the unchanged version string does not distinguish
unreleased code from PyPI v0.26.1. Git-verified path names are materialized as
empty regular files, plus exact selected instruction bytes; this is not a full
checkout, native discovery or evidence about upstream program behavior. Nothing
from the upstream project is installed, built or executed.

Exit 0 means known development contracts passed; 1 means the replay completed
but a contract failed; 2 means an operational failure. The fresh, unlabeled
source observations are excluded from this gate. Partial outputs after a write
failure do not constitute completed evidence. CI retains both files as the
`path-development-replay` artifact.

## Separate new-source collection: no eligible path sample

The parser was frozen in commit `4b8ebc0` before the fixed three-repository
[protocol](protocol.json) was used for read-only acquisition. The
[collection](collected/collection.json) retains all outcomes:

- `astral-sh/uv`: reported license identifier fell outside the fixed allowlist;
excluded without concluding that it lacks an open-source license.
- `pydantic/pydantic`: a regular instruction document and verified tree were
collected, but the registered candidate grammar selected zero paths.
- `fastapi/fastapi`: neither registered root instruction filename was present.

There are **zero eligible new path cases**. The exclusions were not replaced,
and no fresh correctness or accuracy result is claimed. Collected instruction
and license bytes remain unchanged. Later parser revisions may replay this
collection as development material; the report explicitly records whether the
parser still matches the original source freeze.

## Evidence still missing

No external maintainer has been asked to validate these interpretations. This
work establishes a reproducible fix to our scanner on public inputs, with
separate removal controls. Independent reference annotation, a matched AI
comparison and sustained use by external users remain unavailable. No amount
of replaying these known cases substitutes for those forms of evidence.
Loading
Loading