diff --git a/docs/SDLC.md b/docs/SDLC.md index ea12e49ea8..4465c96ddb 100644 --- a/docs/SDLC.md +++ b/docs/SDLC.md @@ -209,7 +209,7 @@ CI is the authoritative gate ([ADR 0004](adr/0004-ci-is-the-authoritative-gate.m 4. `lint`: Executes `ruff check` across the entire codebase. 5. `format`: Verifies formatting compliance with `ruff format --check`. 6. `typecheck`: Enforces strict static type analysis with `mypy --strict`. -7. `audit`: Validates dependencies against known vulnerabilities via `uv audit`, and the root `package-lock.json` of the Node tools via `npm audit --package-lock-only --json`, which needs no install. The devtools repository audits the locks of the tools that its image installs (#4363). Both commands run on every `devops ci audit`, and a vulnerable pin fails the row. Each is read by its own signal, so a finding is told from an audit that could not run, such as an unreachable registry: uv exits 1 for a finding and 2 for a failure to run, while npm exits 1 for both and its JSON report tells them apart, `metadata.vulnerabilities` counts against an `error` object. +7. `audit`: Validates dependencies against known vulnerabilities via `uv audit`, and the root `package-lock.json` of the Node tools via `npm audit --package-lock-only --json`, which needs no install. The devtools repository audits the locks of the tools that its image installs (#4363). The Semgrep requirement file and the advisories of those tools belong to that repository, which audits and bumps them. This repository holds no Semgrep requirement file and no osv-scanner ignore entry, so GHSA-qx49-fqc8-xw99 needs no entry here. Both commands run on every `devops ci audit`, and a vulnerable pin fails the row. Each is read by its own signal, so a finding is told from an audit that could not run, such as an unreachable registry: uv exits 1 for a finding and 2 for a failure to run, while npm exits 1 for both and its JSON report tells them apart, `metadata.vulnerabilities` counts against an `error` object. 8. `security`: Scans `src/` at low severity and above and `tests/` at medium and above, the targets `.bandit` names, for security antipatterns using `bandit`. `.bandit` skips four low rules with their reasons, and a `# nosec` in `src/` names its rules and the reason. Bandit starts under `nice` (`DEFAULT_CI_BANDIT_NICENESS`), so in the full gate it takes the CPU the test row, the gate's critical path, leaves idle. 9. `actionlint`: Validates `.github/workflows/` against GitHub Actions schema. 10. `docs`: Regenerates docs (`devops docs generate`) by default; `devops ci --check` verifies freshness with `devops docs check` without changing files. diff --git a/openspec/changes/6480-bump-mcp-in-the-semgrep-lock/.openspec.yaml b/openspec/changes/archive/2026-11-21-6480-bump-mcp-in-the-semgrep-lock/.openspec.yaml similarity index 100% rename from openspec/changes/6480-bump-mcp-in-the-semgrep-lock/.openspec.yaml rename to openspec/changes/archive/2026-11-21-6480-bump-mcp-in-the-semgrep-lock/.openspec.yaml diff --git a/openspec/changes/6480-bump-mcp-in-the-semgrep-lock/design.md b/openspec/changes/archive/2026-11-21-6480-bump-mcp-in-the-semgrep-lock/design.md similarity index 100% rename from openspec/changes/6480-bump-mcp-in-the-semgrep-lock/design.md rename to openspec/changes/archive/2026-11-21-6480-bump-mcp-in-the-semgrep-lock/design.md diff --git a/openspec/changes/6480-bump-mcp-in-the-semgrep-lock/proposal.md b/openspec/changes/archive/2026-11-21-6480-bump-mcp-in-the-semgrep-lock/proposal.md similarity index 100% rename from openspec/changes/6480-bump-mcp-in-the-semgrep-lock/proposal.md rename to openspec/changes/archive/2026-11-21-6480-bump-mcp-in-the-semgrep-lock/proposal.md diff --git a/openspec/changes/6480-bump-mcp-in-the-semgrep-lock/tasks.md b/openspec/changes/archive/2026-11-21-6480-bump-mcp-in-the-semgrep-lock/tasks.md similarity index 93% rename from openspec/changes/6480-bump-mcp-in-the-semgrep-lock/tasks.md rename to openspec/changes/archive/2026-11-21-6480-bump-mcp-in-the-semgrep-lock/tasks.md index e7982beff4..c1449d0818 100644 --- a/openspec/changes/6480-bump-mcp-in-the-semgrep-lock/tasks.md +++ b/openspec/changes/archive/2026-11-21-6480-bump-mcp-in-the-semgrep-lock/tasks.md @@ -4,9 +4,9 @@ Kind: other. Reads: `docs/SDLC.md`, `CHANGELOG.md`. Changes: `docs/SDLC.md`. -- [ ] 1.1 Extend the `audit` row of `docs/SDLC.md` with one sentence: the Semgrep requirement file and the advisories of the tools that the devtools image installs belong to the devtools repository, which audits and bumps them. Keep the sentence of that row that names the devtools repository and issue #4363, and add that this repository therefore holds no Semgrep requirement file and no osv-scanner ignore entry, so GHSA-qx49-fqc8-xw99 needs no entry here +- [x] 1.1 Extend the `audit` row of `docs/SDLC.md` with one sentence: the Semgrep requirement file and the advisories of the tools that the devtools image installs belong to the devtools repository, which audits and bumps them. Keep the sentence of that row that names the devtools repository and issue #4363, and add that this repository therefore holds no Semgrep requirement file and no osv-scanner ignore entry, so GHSA-qx49-fqc8-xw99 needs no entry here - Verification: `$ uv run devops ci --check --only docs` passes -- [ ] 1.2 Edit `docs/SDLC.md` +- [x] 1.2 Edit `docs/SDLC.md` - Verification: `$ uv run devops ci docs` passes ## Criteria