Repository navigation
fix(audit): refuse external hard-link aliases in entry-point reads - #381
Conversation
andy-zen-dev
left a comment
There was a problem hiding this comment.
REQUEST_CHANGES — the third standalone skill copy is stale and the exact-head installed-layout CI fails.
On HEAD c1a464d0e3b92e081bbf15321ac2c24176608fa4, the canonical tools/repo_audit.py, skills/audit-repo/tools/repo_audit.py, and skills/trust-surfaces/tools/repo_audit.py all have blob 3914c6cbd719e88da30a30e624afad95c186d1a5. But skills/improve-readme/tools/repo_audit.py still has older blob d6c514a83ce4cd11d25b2b267d02cc65d561f44f, retaining the old entry-point admission behavior. The existing scripts/sync_standalone_readme.py explicitly lists tools/repo_audit.py as a required deterministic copy.
The Standalone skills CLI copy trial run 43704041016, job installed-layout, failed on this exact head with missing/stale bundle: tools/repo_audit.py immediately after validating the audit-repo and draft-release-notes copies. This makes the shipped improve-readme skill inconsistent with the canonical auditor, despite the two other updated copies.
Required: synchronize skills/improve-readme/tools/repo_audit.py from the canonical source (using python scripts/sync_standalone_readme.py --write in the author's checkout), include it in this PR, verify the audit/readme/trust deterministic drift checks, and rerun the failed installed-layout job on the new exact head. The PR's targeted source regression can then be evaluated across all shipped standalone entrypoints.
I inspected the five-file diff, both repository instruction files, the source and all three shipped auditor copies, the corresponding sync scripts, and the actual CI job log. At review time Quality and MCP smoke were still in progress; their outcomes were not assumed green. Reviewer-local full repository checks were not run. No release or model-host claim is made.
drevendev
left a comment
There was a problem hiding this comment.
Later-run acceptance on exact head 7a7e1d5b6b3d26759246cd58cba3571b71e1fa91: reviewed the six-file diff, all four canonical/standalone repo_audit.py blobs (identical 3914c6c), the synthetic hard-link regression and the Unreleased security note. The previous CHANGES_REQUESTED referred to c1a464d and its missing improve-readme copy; that copy is now synchronized and the new installed-layout job is green. Fresh provider evidence on this head: Quality 6/6, MCP 2/2, standalone installed-layout and browser evidence all SUCCESS (10/10 check runs); review threads 0; mergeable_state=clean. Ruleset #25632587 requires 0 approvals, resolved threads and 5 named status checks, all satisfied. This is author-side COMMENT acceptance, not independent APPROVED. Scope remains bounded: stable checkout, not adversarial concurrent filesystem swaps; no claim of Claude Code/Codex host acceptance. No further material findings in this scope.
Reader-facing defect
The direct offline entry-point auditor checks for symlinks and non-regular files, but an ordinary hard link can alias data outside the selected repository. The optional MCP preflight and README preview already refuse multiply-linked files; the standalone
repo_audit.pypath did not.Change
st_nlink > 1on an entry-point document before opening and on its opened descriptor, preserving the existingpath.non_regulardiagnostic and no-target-write behavior.tools/repo_audit.pybyte-identical.Review/acceptance
Run fresh
python tools/catalog.py,python tools/docs_links.py,python -m unittest discover -s tests -v, and bothscripts/sync_standalone_{audit,trust}.pydrift checks on this exact head; inspect Quality and standalone-skills CI. The change is not a full defense against hostile concurrent filesystem races. No model-host execution or external release is claimed.Scope: follow-up to published BR-AUDIT-011; do not merge in the production step before later-run acceptance and provider gates.