anvil-engineering-workbench 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # ANVIL Changelog
2
2
 
3
+ ## 1.1.1 — Governance Hardening: Disallowed Tools Matcher, SARIF inSource Suppressions & Suppression Reason Enforcement
4
+
5
+ ANVIL 1.1.1 introduces strict governance hardening, accurate disallowed tool evaluation, full SARIF in-source suppression metadata, and release consistency checks:
6
+
7
+ ### Features & Governance Hardening
8
+ - **Exact Command & Script Matching for `sandbox.disallowedTools`:**
9
+ - Evaluates `package.json` scripts directly for prohibited command invocations (e.g. `rm`, `curl`, `wget`, `nc`) using exact command boundary patterns.
10
+ - Matches active finding code execution snippets using word boundary regexes instead of substring searches on human-readable diagnostic messages, eliminating false positives on words such as "format" or "information".
11
+ - **SARIF v2.1.0 In-Source Suppressions (`suppressions: [{ kind: "inSource" }]`):**
12
+ - Exported SARIF reports now include all inline-suppressed findings (`// anvil-disable-line`, etc.) tagged with standard OASIS SARIF `inSource` suppression metadata, preserving visibility in GitHub Code Scanning instead of vanishing silently.
13
+ - Justification reasons documented via `-- reason` or `: reason` are captured and attached as `suppressions[].justification`.
14
+ - **Mandatory Justification Reasons (`quality.requireSuppressionReason`):**
15
+ - New policy rule `quality.requireSuppressionReason: true` enforces that every inline suppression comment provides an explicit justification reason (e.g., `// anvil-disable-line ANVIL-R001 -- safe regex description`), failing the gate if justifications are omitted.
16
+ - **Sandbox Limits Advisory Notices & Schema Clarification:**
17
+ - Dynamic container resource limits (`profile`, `requireRootless`, `maxMemory`, `maxCpus`, `maxProcesses`) generate clear advisory warnings in `anvil gate` output explaining that they govern containerized verification runs (`container-sandbox`) rather than static code review gates.
18
+ - **Triage Documentation Precision:**
19
+ - Updated all reproduction commands in `docs/false-positive-analysis.md` to reference the canonical package name `npx anvil-engineering-workbench gate .`.
20
+ - **Automated Action & Package Version Synchronization:**
21
+ - Added release workflow and CI assertions verifying `action.yml` default version remains in 100% sync with `package.json` and git tags.
22
+
3
23
  ## 1.1.0 — Enterprise Adoption Readiness: Policy-as-Code, Fail-Closed CI Gate & Content-Hashed Baseline Engine
4
24
 
5
25
  ANVIL 1.1.0 delivers enterprise-grade CI/CD adoption readiness, policy-as-code enforcement, deterministic baseline suppression, and verified supply-chain hygiene:
@@ -32,6 +52,8 @@ ANVIL 1.1.0 delivers enterprise-grade CI/CD adoption readiness, policy-as-code e
32
52
  - Added `.git-blame-ignore-revs` ignoring repository-wide formatting commits.
33
53
  - Linked `lint` script to run both typechecking and Prettier verification.
34
54
 
55
+ ## 1.0.9 — Release Pipeline Resilience & Idempotent npm Publishing
56
+
35
57
  ANVIL 1.0.9 brings release pipeline resilience and fixes CI action resolution:
36
58
  - **Idempotent npm Publishing:** Added automated verification check in `.github/workflows/release.yml` preventing duplicate publish failures if an existing version is already present on the npm registry.
37
59
  - **Workflow Action Pinning Fix:** Resolved exact immutable commit SHAs for CodeQL Analysis and GitHub Pages deployment actions.
package/README.md CHANGED
@@ -49,7 +49,7 @@
49
49
  ---
50
50
 
51
51
  > [!NOTE]
52
- > **ANVIL v1.1.0 — AI harness foundation.** The local CLI, local dashboard, agent orchestration, MCP server, provider adapters, GitHub Action, automated self-healing cleaner, byte-accurate rollback (`anvil undo`), pre-commit hooks (`anvil hook install`), AI harness wizard (`anvil mcp setup`), Architecture Decision Records (`anvil adr`), Security & Secret Scanner (`anvil security --fix`), deterministic CI quality & security gate (`anvil gate` with SARIF v2.1.0 and policy-as-code), and live interactive workflow DAG runner are available. See [Current capabilities and boundaries](#current-capabilities-and-boundaries).
52
+ > **ANVIL v1.1.1 — AI harness foundation.** The local CLI, local dashboard, agent orchestration, MCP server, provider adapters, GitHub Action, automated self-healing cleaner, byte-accurate rollback (`anvil undo`), pre-commit hooks (`anvil hook install`), AI harness wizard (`anvil mcp setup`), Architecture Decision Records (`anvil adr`), Security & Secret Scanner (`anvil security --fix`), deterministic CI quality & security gate (`anvil gate` with SARIF v2.1.0 and policy-as-code), and live interactive workflow DAG runner are available. See [Current capabilities and boundaries](#current-capabilities-and-boundaries).
53
53
 
54
54
  ## What is ANVIL?
55
55
 
@@ -104,7 +104,7 @@ npm install --global anvil-engineering-workbench
104
104
  Or install directly from the GitHub repository:
105
105
 
106
106
  ```bash
107
- npm install --global git+https://github.com/anvil-workbench/ANVIL.git#v1.1.0
107
+ npm install --global git+https://github.com/anvil-workbench/ANVIL.git#v1.1.1
108
108
  ```
109
109
 
110
110
  Verify the installation:
@@ -150,7 +150,7 @@ npm --version
150
150
  git --version
151
151
 
152
152
  # Install ANVIL
153
- npm install --global git+https://github.com/anvil-workbench/ANVIL.git#v1.1.0
153
+ npm install --global git+https://github.com/anvil-workbench/ANVIL.git#v1.1.1
154
154
 
155
155
  # Move into your project
156
156
  cd C:\Users\YourName\Projects\my-project
@@ -540,9 +540,9 @@ jobs:
540
540
  runs-on: ubuntu-latest
541
541
  steps:
542
542
  - uses: actions/checkout@v4
543
- - uses: anvil-workbench/ANVIL@v1.1.0
543
+ - uses: anvil-workbench/ANVIL@v1.1.1
544
544
  with:
545
- version: v1.1.0
545
+ version: v1.1.1
546
546
  project-path: .
547
547
  operation: gate
548
548
  ```
package/dist/cli.js CHANGED
@@ -1437,6 +1437,7 @@ Exit codes:
1437
1437
  const sarifOutput = generateSarif({
1438
1438
  activeFindings: evaluation.activeFindings,
1439
1439
  suppressedFindings: evaluation.suppressedFindings,
1440
+ inlineSuppressions: evaluation.inlineSuppressions,
1440
1441
  filterSuppressed: true,
1441
1442
  targetRoot: target,
1442
1443
  });
@@ -1454,9 +1455,11 @@ Exit codes:
1454
1455
  policySource: evaluation.policySource,
1455
1456
  baselineSource: evaluation.baselineSource,
1456
1457
  violations: evaluation.violations,
1458
+ warnings: evaluation.warnings,
1457
1459
  summary: evaluation.summary,
1458
1460
  activeFindings: evaluation.activeFindings,
1459
1461
  suppressedFindings: evaluation.suppressedFindings,
1462
+ inlineSuppressions: evaluation.inlineSuppressions,
1460
1463
  }, null, 2) + "\n");
1461
1464
  }
1462
1465
  else {
@@ -1473,7 +1476,17 @@ Exit codes:
1473
1476
  if (evaluation.summary.suppressedByBaseline > 0) {
1474
1477
  lines.push(` Suppressed by baseline: ${evaluation.summary.suppressedByBaseline}`);
1475
1478
  }
1479
+ if (evaluation.summary.inlineSuppressions > 0) {
1480
+ lines.push(` Inline suppressions: ${evaluation.summary.inlineSuppressions}`);
1481
+ }
1476
1482
  lines.push(``);
1483
+ if (evaluation.warnings && evaluation.warnings.length > 0) {
1484
+ lines.push(`Advisory Notices:`);
1485
+ for (const w of evaluation.warnings) {
1486
+ lines.push(` ⚠ ${w}`);
1487
+ }
1488
+ lines.push(``);
1489
+ }
1477
1490
  if (evaluation.violations.length > 0) {
1478
1491
  lines.push(`Policy Violations:`);
1479
1492
  for (const v of evaluation.violations) {