Context
neomjs/neo-agent-skills#91, via skills PR #92 (merged at ab37528), published the engine's credential guard as the bin neo-agent-skills-secrets. It also added a Secrets job to the shared reusable-pr-baseline.yml, and both ship in neo-agent-skills@0.1.11 (published 2026-09-18). The engine still runs its own copy: buildScripts/util/check-secrets.mjs from lint-staged, and secrets-lint.yml in CI.
The Problem
Two implementations of one guard drift, and #18809 measured the result for the archaeology guard: the engine's mirror and the published guard disagreed, and the hook, which runs first, was the permissive side. The credential guard has already diverged once. The engine's copy compares process.argv[1] with fileURLToPath(import.meta.url) without resolving symlinks, so run through a symlinked checkout path it exits 0 without checking anything (measured 2026-09-18). The published bin resolves both sides and is tested through its installed bin symlink.
The Architectural Reality
package.json pins neo-agent-skills at 0.1.10. The lint-staged * block runs node ./buildScripts/util/check-secrets.mjs.
.github/workflows/pr-baseline.yml:71 calls reusable-pr-baseline.yml@48e3d72…, a revision without the Secrets job.
.github/workflows/secrets-lint.yml runs --all on pull requests and on pushes to dev.
- The baseline job covers pull requests only.
- A push to
dev needs its own scan, because the data-sync pipeline commits synced ticket and pull-request bodies to dev without a pull request. An issue body carrying a key reaches resources/content/** that way.
- The precedent is #18809 / PR #18905:
lint-staged runs the bin, the baseline job runs in CI, and the local copy and its spec retire, with a spec-retired: line for check-spec-retirement.
The Fix
- Bump
neo-agent-skills to 0.1.11, and the baseline pin to the skills revision that carries the Secrets job (ab37528 or later).
- In
lint-staged's * block, node ./buildScripts/util/check-secrets.mjs becomes neo-agent-skills-secrets.
- Delete
buildScripts/util/check-secrets.mjs and test/playwright/unit/buildScripts/util/check-secrets.spec.mjs.
secrets-lint.yml keeps its push-to-dev trigger only and runs the published bin. It installs the version package.json pins, so the engine names that version once.
Acceptance Criteria
Out of Scope
- The other local guards' symlinked-path defect: its own ticket.
Related
neomjs/neo-agent-skills#91 · neomjs/neo-agent-skills PR #92 · #18832 · #18913 · #18809 / PR #18905 (the precedent)
Live latest-open sweep: latest 20 open issues at 2026-09-18T16:55Z, plus an all-state search for symlink / argv realpath / secrets convergence: no equivalent. A2A sweep: only my own announcement of this follow-up. Own open assignments: none on this guard.
Origin Session ID: 6ed6621f-e2e4-4b9d-9a95-744679cb3c59
Retrieval Hint: "credential guard convergence neo-agent-skills-secrets lint-staged secrets-lint dev push data-sync"
Context
neomjs/neo-agent-skills#91, via skills PR #92 (merged at
ab37528), published the engine's credential guard as the binneo-agent-skills-secrets. It also added aSecretsjob to the sharedreusable-pr-baseline.yml, and both ship inneo-agent-skills@0.1.11(published 2026-09-18). The engine still runs its own copy:buildScripts/util/check-secrets.mjsfromlint-staged, andsecrets-lint.ymlin CI.The Problem
Two implementations of one guard drift, and #18809 measured the result for the archaeology guard: the engine's mirror and the published guard disagreed, and the hook, which runs first, was the permissive side. The credential guard has already diverged once. The engine's copy compares
process.argv[1]withfileURLToPath(import.meta.url)without resolving symlinks, so run through a symlinked checkout path it exits 0 without checking anything (measured 2026-09-18). The published bin resolves both sides and is tested through its installedbinsymlink.The Architectural Reality
package.jsonpinsneo-agent-skillsat0.1.10. Thelint-staged*block runsnode ./buildScripts/util/check-secrets.mjs..github/workflows/pr-baseline.yml:71callsreusable-pr-baseline.yml@48e3d72…, a revision without theSecretsjob..github/workflows/secrets-lint.ymlruns--allon pull requests and on pushes todev.devneeds its own scan, because the data-sync pipeline commits synced ticket and pull-request bodies todevwithout a pull request. An issue body carrying a key reachesresources/content/**that way.lint-stagedruns the bin, the baseline job runs in CI, and the local copy and its spec retire, with aspec-retired:line forcheck-spec-retirement.The Fix
neo-agent-skillsto0.1.11, and the baseline pin to the skills revision that carries theSecretsjob (ab37528or later).lint-staged's*block,node ./buildScripts/util/check-secrets.mjsbecomesneo-agent-skills-secrets.buildScripts/util/check-secrets.mjsandtest/playwright/unit/buildScripts/util/check-secrets.spec.mjs.secrets-lint.ymlkeeps its push-to-devtrigger only and runs the published bin. It installs the versionpackage.jsonpins, so the engine names that version once.Acceptance Criteria
npx lint-stagedexit 1, withneo-agent-skills-secretsnaming the file.Secretsjob, green.check-guard-ci-parityand the scan-surface spec pass without the local copy.devrunssecrets-lint.ymlthrough the published bin, green.Out of Scope
Related
neomjs/neo-agent-skills#91 · neomjs/neo-agent-skills PR #92 · #18832 · #18913 · #18809 / PR #18905 (the precedent)
Live latest-open sweep: latest 20 open issues at 2026-09-18T16:55Z, plus an all-state search for symlink / argv realpath / secrets convergence: no equivalent. A2A sweep: only my own announcement of this follow-up. Own open assignments: none on this guard.
Origin Session ID: 6ed6621f-e2e4-4b9d-9a95-744679cb3c59
Retrieval Hint: "credential guard convergence neo-agent-skills-secrets lint-staged secrets-lint dev push data-sync"