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
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# Preserve third-party license notices byte-for-byte on every checkout.
benchmarks/prospective-review-v1/*/licenses/* -text
benchmarks/path-audit-v1/** -text
50 changes: 50 additions & 0 deletions .github/workflows/path-audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Frozen path audit

on:
workflow_dispatch:
push:
paths:
- 'benchmarks/path-audit-v1/**'
- 'scripts/*path_audit.py'
- '.github/workflows/path-audit.yml'
- '.gitattributes'
pull_request:
paths:
- 'benchmarks/path-audit-v1/**'
- 'scripts/*path_audit.py'
- '.github/workflows/path-audit.yml'
- '.gitattributes'

permissions:
contents: read

jobs:
replay:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: '3.12'
- name: Install the frozen published wheel
shell: bash
run: |
set -euo pipefail
python -m venv "$RUNNER_TEMP/path-audit-env"
python -m pip download --no-deps --only-binary=:all: agent-config-score==0.26.1 --dest "$RUNNER_TEMP/path-audit-wheel"
echo "b9be0dfd43e6a0827797cb4bbddbc7d002b590e9fbcfe6973438cdc74e00e84c $RUNNER_TEMP/path-audit-wheel/agent_config_score-0.26.1-py3-none-any.whl" | sha256sum --check
"$RUNNER_TEMP/path-audit-env/bin/python" -I -m pip install --no-deps "$RUNNER_TEMP/path-audit-wheel/agent_config_score-0.26.1-py3-none-any.whl"
- name: Replay retained source facts offline
shell: bash
env:
PYTHONPATH: src
run: |
python scripts/run_path_audit.py --python "$RUNNER_TEMP/path-audit-env/bin/python" --output "$RUNNER_TEMP/path-audit-result.json"
- name: Retain the completed audit
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: path-audit-result
path: ${{ runner.temp }}/path-audit-result.json
if-no-files-found: error
retention-days: 14
6 changes: 6 additions & 0 deletions benchmarks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ AgentConfigScore keeps deliberately different forms of evidence:
- a pinned public-repository smoke suite for checking scanner noise on real inputs;
- a separate review-comparison workflow for importing blinded AI decisions against declared reference labels.

A [bounded path-reference maintainer audit](path-audit-v1/README.md) additionally
retains 16 unmodified candidate occurrences and eight separate removal controls
with the published v0.26.1 wheel. It records five directory-reference misses and
a separate post-hoc generated-output false positive. Its provisional observations
are not independent human labels or a general accuracy estimate.

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

## AI comparison status
Expand Down
127 changes: 127 additions & 0 deletions benchmarks/path-audit-v1/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
# Bounded path-reference maintainer audit

Completed on **2026-11-12 (Asia/Shanghai)** using the published **v0.26.1**
wheel. This is a provisional, AI-authored maintainer audit with retained source
facts and unfavorable results. It has no independent human labels, native Cursor
observations, AI comparison or user-adoption claim.

## Observed results

| Group | Occurrences | Flagged correctly | False positives | Missed review signals | Clean controls |
| --- | ---: | ---: | ---: | ---: | ---: |
| Unmodified public documents, selected candidates | 16 | 0 | 0 | 0 | 16 |
| Separate target-removal controls | 8 | 3 | 0 | 5 | 0 |

The natural sample contains **no reference-positive cases**. Its recall and
precision are unavailable. Four occurrences are display labels for links already
represented by their destinations. The 16 rows are correlated components from
five repositories, not 16 independent projects. Do not turn this table into a
general accuracy percentage or combine the two groups into one headline metric.

The controls remove three regular files and five directories, one target at a
time, without changing the source instruction. All three broken file links are
reported. All five literal directory references are missed under this audit's
broader review task. Current `dead-path` prose heuristics deliberately exclude
directory-style and ambiguous extensionless tokens. These misses expose that
coverage limit; they do not show that upstream projects contain broken paths.
Other findings caused by a directory removal are retained but cannot substitute
for detection at the selected literal and original source line.

The [raw report](result.json) retains every selected result, mutation and all
whole-document path findings, including unselected occurrences. A successful
replay means the experiment completed, not that every reference was detected.

## A separate post-hoc warning review

The unmodified Vitest document produced one additional, **unselected** warning
at line 201 for `docs/.vitepress/contributor-names.json`. The source explicitly
describes it as generated by `pnpm docs:contributors`.

After seeing the warning, four files were fetched at the same pinned revision.
The [retained context](posthoc-context.json) includes exact contents, SHA-256 and
Git blob IDs, verified against the already retained complete tree. `package.json`
maps that command to `scripts/update-contributors.ts`, whose lines 29–31 write
the exact named JSON file. Nothing was installed, built or executed.

The maintainer assessment is a **generated-output false positive**: absence of
the unbuilt output in Git does not establish a broken instruction. This is a
post-hoc judgement, not an independently adjudicated label. It is deliberately
outside the preselected 16-case counts. The frozen v0.26.1 report and rules are
unchanged. Any ensuing fix must use this as development evidence, not claim an
accuracy improvement on an untouched holdout.

## Sampling and evidence order

1. The [protocol](protocol.json) fixed ten repositories, root-file precedence,
selection order and limits before fetching instruction contents or predictions.
2. Six root documents had eligible license metadata and complete verified trees.
Four repositories were excluded: one license response was outside the
allowlist, and three had no registered root file. `NOASSERTION` from GitHub is
not a finding that a project has no license.
3. The independent sampler retained all candidate tokens, then selected the first
four distinct tokens per document. Nuxt had no eligible tokens. The fixed
registry yielded 16 selected occurrences rather than the target 24. No
replacement project was selected to change that result.
4. [Provisional observations](observations.json), all collected facts and a
disclosed [eight-control addendum](control-protocol.json) were committed
[before tool predictions](https://github.com/LE0-Lin/AgentConfigScore/commit/aa5e4c75e2257513601626e891aa217044e771d7).
The addendum was written after source inspection, not before acquisition.
5. The [completed Linux run](https://github.com/LE0-Lin/AgentConfigScore/actions/runs/43055669698)
installed the published wheel, checked its SHA-256 and replayed the frozen
facts. An [earlier harness failure](https://github.com/LE0-Lin/AgentConfigScore/actions/runs/43055443122)
collapsed a venv interpreter symlink to the base Python. It produced no
completed report or prediction, and remains visible.

The [collection manifest](collected/collection.json) retains every repository
decision, pinned commit, source URL, complete Git tree, source/blob fingerprints,
candidate selection and [third-party license notice](collected/licenses).
Instruction and license bytes are retained verbatim. Recursive trees are
verified against canonical Git tree object hashes, not merely a JSON checksum.
These sources remain governed by their respective licenses, not this project's
MIT license.

## Exact experiment scope

This is an **isolated document path check**, not a native whole-repository scan.
The runner materializes the complete tracked name inventory as directories and
empty regular files, then places the exact selected root document at its original
path. Aliases/gitlinks are omitted and listed. Empty placeholders do not supply
source content, builds, delegated instructions, dependencies or generated output.

The installed library's discovery boundary is explicitly restricted to the
selected root document. Default path extraction, path existence rules and
finding generation are unchanged; no policy or suppression hides findings.
Only `dead-path` findings are retained. Other rule scores on these placeholders
would be meaningless and are not reported. This scope cannot establish native
instruction discovery, command correctness, security, runtime loading or complete
instruction quality.

## Reproduce

Use a Linux, case-sensitive filesystem. From a checkout, with the project source
available to the research harness and a separate frozen-package environment:

```bash
python -m venv /tmp/acs-path-audit-env
/tmp/acs-path-audit-env/bin/python -m pip install --no-deps --only-binary=:all: agent-config-score==0.26.1
PYTHONPATH=src python scripts/run_path_audit.py --python /tmp/acs-path-audit-env/bin/python --output /tmp/new-path-audit-result.json
```

The output path must be new. Replay itself uses only retained data and a local
installed library. Package installation needs network access. The
[workflow](../../.github/workflows/path-audit.yml) also verifies the wheel's
SHA-256 against the published artifact before installation. The runner checks
version and runtime source identity, launches the child with isolated Python,
and refuses incomplete/failing scans as completed evidence. It preserves the
venv invocation path rather than resolving it to a different interpreter.

Recollection is a separate, explicit network action:

```bash
PYTHONPATH=src python scripts/collect_path_audit.py --output-dir /tmp/new-path-audit-collection
```

That fetches current heads and produces a **new collection**, not a reproduction
of these pinned inputs. It never labels cases or runs the scanner, upstream
commands, model calls or maintainer messages. Keep the original collection,
observations, unfavorable results and attribution when extending this audit.
Loading
Loading