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
Expand Up @@ -5,3 +5,4 @@ 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
benchmarks/link-existence-v1/** -text
39 changes: 39 additions & 0 deletions .github/workflows/link-study.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: frozen-link-study

on:
push:
paths:
- 'scripts/*link*study*'
- 'benchmarks/link-existence-v1/**'
- '.github/workflows/link-study.yml'
pull_request:
paths:
- 'scripts/*link*study*'
- 'benchmarks/link-existence-v1/**'
- '.github/workflows/link-study.yml'

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 only the hash-pinned published study packages
run: |
python -m pip install --require-hashes --only-binary=:all: -r scripts/requirements-link-study.txt
- name: Verify the independent reference method
run: python -m unittest discover -s scripts -p test_link_study.py -v
- name: Replay retained sources without network access or upstream execution
run: python scripts/run_link_study.py replay --output "$RUNNER_TEMP/link-study.json"
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: frozen-link-study
path: ${{ runner.temp }}/link-study.json
if-no-files-found: error
retention-days: 30
8 changes: 8 additions & 0 deletions benchmarks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ no fresh correctness estimate or external-user feedback is claimed.

## AI comparison status

A separate [local-link target-existence pilot](link-existence-v1/README.md)
uses an independent CommonMark parser and verified Git trees with the frozen
published v0.26.2 wheel. Its fixed eight-repository registry yielded only two
eligible natural links (neither falsely flagged) and two separate target-removal
controls (both detected). All exclusions and the control shortfall are retained.
This small objective component check does not complete the human accuracy study
or establish external adoption.

**No independent AI comparison has been completed.** A repository script now
exports label-blinded packets and scores imported AI reviews, the local tool,
and a three-valued OR combination. It reports coverage, false positives, misses,
Expand Down
98 changes: 98 additions & 0 deletions benchmarks/link-existence-v1/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# Local-link target-existence pilot

**Completed, with insufficient natural coverage for an accuracy estimate.**
The frozen published ACS **0.26.2** wheel checked two selected links from
previously unused evaluation repositories. Both targets exist and neither
produces a matching warning. Removing each target separately produces a warning
in both cases. These are two natural negative cases and two synthetic positive
controls, not four independent real-world cases.

| Track | Cases | TP | FP | TN | FN |
|---|---:|---:|---:|---:|---:|
| Unmodified selected local links | 2 | 0 | 0 | 2 | 0 |
| Separately removed targets | 2 | 2 | 0 | 0 | 0 |

Natural missing-target recall and warning precision are **unavailable**, because
there are no natural missing targets and no natural warnings. Do not present
the controls' success as general accuracy or combine the tracks into a headline
percentage. Four of the registered maximum six controls could not be acquired;
there was no replacement or outcome balancing.

## What was measured

The question is deliberately mechanical: does a repository-local Markdown link
resolve to a tracked target relative to its document in a pinned, unbuilt Git
snapshot? An absent snapshot target is not proof of an upstream defect: it may
be generated, an example, or intentionally unavailable. No semantic safety,
usefulness, author intent, or comparison with AI is measured.

The [protocol](protocol.json) was committed as
`9fa95f2927048b78d885e76320152f787c82605b` before source acquisition.
The [collection record](collected/collection.json) retains every exclusion,
revision, source URL, byte hash, license notice, and reference fact before ACS
predictions. The independent [markdown-it-py CommonMark parser](https://markdown-it-py.readthedocs.io/en/latest/using.html)
extracts link tokens; the reference resolver uses Git names, not ACS's path
extractor or its warning output. Git tree objects and source blobs are verified.
The parser and ACS package wheels are separately version/hash pinned in the
[study requirements](../../scripts/requirements-link-study.txt).

Eight repositories were registered without replacement:

| Repository | Collection outcome |
|---|---|
| microsoft/TypeScript | Recursive tree truncated; excluded |
| eslint/eslint | Root AGENTS.md, one selected link |
| rust-lang/cargo | No regular instruction file with a registered name |
| psf/requests | No regular instruction file with a registered name |
| cli/cli | Root AGENTS.md, one selected link; 17 multiline-block link occurrences excluded |
| golang/go | GitHub license identifier NOASSERTION, outside registered allowlist |
| neovim/neovim | GitHub license identifier NOASSERTION, outside registered allowlist |
| rails/rails | Root AGENTS.md retained, no eligible link |

This reveals a limitation in the sampling method: requiring one-line inline
blocks excluded many ordinary wrapped links, and the repository/license rules
also reduced coverage. A broader future study needs a new declared selection
rule. Changing these exclusions after seeing results would not improve this
study's evidence. No new source or rule was substituted to make it look larger.

## Inspect or reproduce

The retained [raw result](result.json) comes from the
[successful Linux execution](https://github.com/LE0-Lin/AgentConfigScore/actions/runs/43824776986)
at runner checkout `7c227f07f673d92bdefbc3a47c3a70a352764b78`.
Its installed source fingerprint is
`5cd84e53c40b581b70edbbee36f868f23b32a25bb40b7186a8841ddca8267cc9`.

On Linux with a case-sensitive temporary filesystem, from the repository root:

```bash
python3 -m venv /tmp/acs-link-study
/tmp/acs-link-study/bin/python -m pip install --require-hashes --only-binary=:all: -r scripts/requirements-link-study.txt
/tmp/acs-link-study/bin/python -m unittest discover -s scripts -p test_link_study.py -v
/tmp/acs-link-study/bin/python scripts/run_link_study.py replay --output /tmp/acs-link-study-new-result.json
```

Package installation needs network access; replay uses retained local evidence
and makes no network requests. Do not install the checkout into this environment:
the subject is the frozen public wheel. Six method checks exercise code/fence
exclusions, reference links, URL decoding, alias abstention, relative resolution,
and deterministic document selection. They check the measurement method, not
independent correctness of ACS.

The runner creates a complete names-only tree projection with exact selected
instruction bytes and empty other regular files. It omits symlinks/gitlinks and
excludes candidate resolutions that depend on them. Discovery is explicitly
scoped to that single document; no native whole-repository equivalence is
claimed. Prediction is a matching destination warning in the document; precise
source-line localization is not scored. Full findings are retained, including
findings outside the selected cases, which remain unlabelled.

The optional `collect` command requires authenticated `gh`, downloads public
source data, and writes a **new** directory. Running it now acquires different
default-branch revisions; it cannot reproduce this snapshot's collection.

This is a maintainer-run component pilot with an independent reference parser,
**not independent human evaluation or external user adoption**. No maintainer
was contacted for these samples and no upstream command was executed. The
earlier human review study remains uncompleted. Future changes informed by this
corpus make it development data and require fresh data for validation.
Loading
Loading