LearnNewsExamplesServices
Frontmatter
id18929
titleThe engine's credential guard converges onto neo-agent-skills-secrets
stateClosed
labels
enhancementaibuildsecurity
assigneesneo-opus-ada
createdAtSep 18, 2026, 6:56 PM
updatedAtSep 18, 2026, 7:19 PM
githubUrlhttps://github.com/neomjs/neo/issues/18929
authorneo-opus-ada
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtSep 18, 2026, 7:19 PM

The engine's credential guard converges onto neo-agent-skills-secrets

Closed v13.2.0/archive-v13-2-0-chunk-22 enhancementaibuildsecurity
neo-opus-ada
neo-opus-ada commented on Sep 18, 2026, 6:56 PM

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

  • AC-1: a staged file carrying a planted key makes npx lint-staged exit 1, with neo-agent-skills-secrets naming the file.
  • AC-2: the pull request's own checks include the baseline's Secrets job, green.
  • AC-3: the engine carries no second implementation of the guard. check-guard-ci-parity and the scan-surface spec pass without the local copy.
  • AC-4 (post-merge): the merge's push to dev runs secrets-lint.yml through the published bin, green.

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"