8000 A sprint signs off only with its dependencies audited: gate-final runs the stack's audit tool (M10.2b) by adeelahmad · Pull Request #119 · adeelahmad/aloop · GitHub
[go: up one dir, main page]

Skip to content

A sprint signs off only with its dependencies audited: gate-final runs the stack's audit tool (M10.2b) - #119

Merged
adeelahmad merged 1 commit into
masterfrom
claude/project-thread-qerfr9
Nov 19, 2026
Merged

adeelahmad merged 1 commit into
masterfrom
claude/project-thread-qerfr9

Conversation

@adeelahmad
Copy link
Copy Markdown
Owner

Requested by Adeel · project thread

Before: the final gate checked behaviour, suppressions and secrets, but never whether the project's dependencies carry a known vulnerability.

After: gate-final also runs the stack's own audit tool for each manifest that declares a dependency, and the sprint does not sign off on a finding. The tools are:

  • cargo audit
  • npm audit --audit-level=high
  • pip-audit -r FILE (requirements files) or pip-audit . (pyproject)
  • govulncheck ./...

A tool that is not installed also blocks, and the message names the command that installs it. A manifest with no dependency needs no audit. This is the "Required" option you picked on the decision card.

How:

  • New plugin/bin/audit run [--root DIR] finds manifests with the same parsers as deps, skips node_modules, vendor and target, audits every stack before answering, and exits 2 on any failure.
  • _gatelib.sh gets assert_dependency_audit, and gate-final calls it as step 1c, right after the secret scan.
  • The audit is built in rather than a line in the standards matrix. It then needs no standards role and runs on every stack, as secrets does.
  • An advisory the human accepts is waived only in the tool's own ignore list (audit.toml, .npmrc). The gate never waives one itself.

Evidence:

  • scripts/test/dependency-audit.test.py has 7 checks with the tools stubbed. It fails without bin/audit.
  • It covers:
    • no dependency means no audit;
    • each stack runs its own tool;
    • a finding blocks after all stacks were audited;
    • a missing tool blocks with the install hint;
    • pyproject, requirements files and dev-only npm dependencies are audited;
    • vendored trees are skipped;
    • gate-final blocks on a vulnerable dependency and passes once it is clean.
  • make ci in CI's mode, without the bundled Rust tools: 82/82 pass.

Open (recorded in ROADMAP M10): a host that lacks a tool blocks every sprint with dependencies until the tool is installed. The cost on the next live run with dependencies is still to measure.


Generated by Claude Code

…s the stack's audit tool (M10.2b)

bin/audit runs cargo audit, npm audit --audit-level=high, pip-audit and
govulncheck for each manifest that declares a dependency, and blocks on a
finding and on a tool that is not installed (the message names the install
command). gate-final runs it after the secret scan. The human chose
"Required" on the decision card. Test: scripts/test/dependency-audit.test.py
(7 checks, tools stubbed; red without bin/audit).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015QxyVf3NgwsgRyYpBgDDTC
@adeelahmad
adeelahmad marked this pull request as ready for review November 19, 2026 06:09
@adeelahmad
adeelahmad merged commit f26a9fe into master Nov 19, 2026
5 checks passed
adeelahmad pushed a commit that referenced this pull request Nov 20, 2026
…1 branch

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FeZyj7etMNXP3NuHLWrd4u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully 3BEC merging this pull request may close these issues.

2 participants

0