[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M751D3906HQJNPMZ7MDQJ8S9":3,"skill-same:01M751D3906HQJNPMZ7MDQJ8S9":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":29,"commitSha":30,"skillDirectory":31,"forksCount":32,"repositoryHtmlUrl":33,"repositoryHomepageUrl":6,"ownerHtmlUrl":34,"ownerBlogUrl":35,"ownerDescription":36,"updatedAt":37,"install":38,"resources":50},"01M751D3906HQJNPMZ7MDQJ8S9","x-validate-dependency-policy",null,"Validates project dependencies against the declared dependency policy (denied CVEs, license whitelist, version constraints, freshness window, scope policy). Produces a structured validation report and exits with BLOCK or WARN based on D-R10\u002FD-R11 enforcement matrix.","review-bench\u002Federcnj_ia-dev-environment","review-bench","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F286778065?v=4","01M7517F9NTEPDZDAXJBR30FWT","ReviewBench","01M7517FAC9F4P7TGWCNJ8VYVW",0,"MIT","https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment\u002Fblob\u002Fmain\u002Fsrc\u002Fmain\u002Fresources\u002Ftargets\u002Fclaude\u002Fskills\u002Fconditional\u002Fsecurity\u002Fx-validate-dependency-policy\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: x-validate-dependency-policy\ndescription: \"Validates project dependencies against the declared dependency policy (denied CVEs, license whitelist, version constraints, freshness window, scope policy). Produces a structured validation report and exits with BLOCK or WARN based on D-R10\u002FD-R11 enforcement matrix.\"\nuser-invocable: true\nallowed-tools: Read, Write, Bash, Grep, Glob\nargument-hint: \"[--story-id STORY-XXXX-YYYY] [--report \u003Cpath>] [--dry-run]\"\nrequires-capabilities: [governance.dependency-policy]\n---\n\n## Global Output Policy\n\n- **Language**: English ONLY.\n- **Tone**: Technical, Direct, and Concise.\n- **Efficiency**: Remove all conversational fillers and greetings to save tokens.\n\n# Skill: Dependency Policy Validator\n\n## Purpose\n\nValidates all project dependencies against the `dependencies.policy` block declared in the project YAML (parsed into `DependencyPolicyConfig` — EPIC-0074, Rule 32). Applies the D-R10 enforcement matrix (block-on) and the D-R11 scope policy to each finding, emitting:\n\n- **Exit 0** — gate disabled or all findings are WARN\u002FIGNORE only; no BLOCK-level violations\n- **Exit 1** (`DEP_POLICY_BLOCK`) — at least one BLOCK-level violation (denied CVE, license, min-version, or scope escalation)\n- **Exit 2** (`DEP_POLICY_WARN`) — only WARN-level violations; no blocking failures\n\nProduces evidence artifact at `ai\u002Fepics\u002Fepic-XXXX\u002Freports\u002Fdep-policy-validation-report-STORY-ID.md` (required by Rule 27 Surface 13 — conditional on `quality.dependencyPolicy.enabled=true`).\n\n## Triggers\n\n- `\u002Fx-validate-dependency-policy` — validate all dependency dimensions\n- `\u002Fx-validate-dependency-policy --story-id story-0074-0001` — emit evidence artifact for the given story\n- `\u002Fx-validate-dependency-policy --dry-run` — enumerate violations without applying BLOCK\u002FWARN exits\n\n## Parameters\n\n| Parameter | Type | Default | Description |\n|-----------|------|---------|-------------|\n| `--story-id` | String | — | Story identifier for evidence artifact path resolution |\n| `--report` | Path | auto-resolved | Override artifact output path |\n| `--dry-run` | Boolean | `false` | Run validation without producing exit-code enforcement |\n\n## Activation Condition\n\nActivated when `dependencies.policy.enabled: true` in project YAML. When disabled (or field absent), skill emits `PERF_DISABLED`-style log and exits 0 immediately — no validation performed, no artifact produced.\n\n## YAML Schema (Reference)\n\n```yaml\ndependencies:\n  policy:\n    enabled: true\n    min-versions:\n      - groupId: com.fasterxml.jackson.core\n        artifactId: jackson-databind\n        version: \"2.15.0\"\n    max-versions: []\n    allowed-licenses: [Apache-2.0, MIT, BSD-2-Clause, BSD-3-Clause]\n    denied-cves: [CVE-2021-44228, CVE-2023-1234567]\n    freshness-window-days: 365\n    block-on:\n      severity-cve: BLOCK\n      license: BLOCK\n      min-version: BLOCK\n      max-version: WARN_ONLY\n      freshness: WARN_ONLY\n    scope-policy:\n      compile: BLOCK\n      runtime: BLOCK\n      test: WARN_ONLY\n      dev: WARN_ONLY\n      provided: WARN_ONLY\n      build: WARN_ONLY\n```\n\n## Workflow\n\n```\n1. LOAD     -> Read DependencyPolicyConfig from project YAML\n2. DETECT   -> Resolve manifest files (pom.xml, package.json, go.mod)\n3. RESOLVE  -> Parse dependency list with versions and scopes\n4. VALIDATE -> Apply 5 validation dimensions per dependency\n5. CLASSIFY -> Apply D-R10 block-on + D-R11 scope-policy per finding\n6. REPORT   -> Write structured report; exit with highest severity\n```\n\n### Step 1 — Load Policy\n\nRead project YAML (`project.yaml`, `.ia-dev-env.yaml`, or the root config file). Parse the `dependencies.policy` block. If `enabled: false` or block absent → log `DEP_POLICY_DISABLED` and exit 0.\n\nKey fields to extract:\n- `denied-cves` list (RULE-074-01: always BLOCK regardless of scope\u002Fseverity-threshold)\n- `allowed-licenses` list (empty = no restriction)\n- `min-versions` \u002F `max-versions` list of VersionConstraints (JVM: groupId+artifactId; NPM: name; Go: module)\n- `freshness-window-days` (default 365)\n- `block-on` map → BlockOnPolicy (D-R10 defaults)\n- `scope-policy` map → ScopePolicy (D-R11 defaults)\n\n### Step 2 — Detect Manifests\n\n| Build Tool | Manifest | Dependency Command |\n|------------|----------|--------------------|\n| Maven | `pom.xml` | `mvn dependency:list -DincludeScope=compile,runtime,test,provided` |\n| Gradle | `build.gradle` \u002F `build.gradle.kts` | `.\u002Fgradlew dependencies --configuration runtimeClasspath,testRuntimeClasspath` |\n| npm | `package.json` + `package-lock.json` | `npm list --json --all --depth 0` |\n| yarn | `yarn.lock` | `yarn list --json --depth 0` |\n| pnpm | `pnpm-lock.yaml` | `pnpm list --json --depth 0` |\n| Go modules | `go.mod` | `go list -m -json all` |\n\nMultiple manifests detected → validate each independently; merge findings; deduplicate by coordinate.\n\n### Step 3 — Resolve Dependencies\n\nParse each manifest to extract a flat list of:\n\n```\nDependency {\n  coordinate: String   \u002F\u002F \"groupId:artifactId\" | \"name@version\" | \"module@version\"\n  version: String\n  scope: String        \u002F\u002F compile | runtime | test | dev | provided | build\n  age_days: Integer    \u002F\u002F resolved via mvn versions:display-dependency-updates or npm outdated\n}\n```\n\nFor JVM: use `mvn dependency:list` output (format `[INFO]    {groupId}:{artifactId}:{type}:{version}:{scope}`).\nFor NPM\u002Fyarn\u002Fpnpm: parse JSON list output; map `devDependencies` to scope `dev`, `dependencies` to scope `compile`.\nFor Go: `go list -m -json all` → `Module.Path`, `Module.Version`; scope always `compile`.\n\n### Step 4 — Validate (5 Dimensions per Dependency)\n\nFor each resolved dependency, run the following checks in order:\n\n#### 4.1 Denied CVE Check (RULE-074-01 — Always BLOCK)\n\n```\nif any CVE in denied-cves matches this dependency's known CVEs:\n  VIOLATION(type=denied-cve, severity=BLOCK, cve=CVE-XXXX-XXXXXX)\n  # Hard-block: scope-policy does NOT apply; block-on.severity-cve does NOT apply\n  # The denied-cves list bypasses all override mechanisms\n```\n\nCVE lookup strategy: use output from `mvn dependency:resolve -Dsecurity=true` (OWASP plugin if available), `npm audit --json`, or `trivy image` JSON output. If no CVE scanner is available, skip 4.1 and log `CVE_SCAN_UNAVAILABLE`.\n\n#### 4.2 License Check\n\n```\nif allowed-licenses is not empty:\n  if dependency.license NOT IN allowed-licenses:\n    VIOLATION(type=license, severity=block-on.license, license=\u003Cactual>)\n```\n\nLicense resolution: Maven → read `pom.xml` `\u003Clicenses>` section or use `mvn license:aggregate-download-licenses --json`; NPM → `package.json` `license` field; Go → `go-licenses` tool.\nIf license cannot be resolved → log `LICENSE_UNRESOLVABLE` as WARN.\n\n#### 4.3 Min-Version Check\n\n```\nfor each constraint in min-versions:\n  if constraint matches dependency:\n    if dependency.version \u003C constraint.version:\n      VIOLATION(type=min-version, severity=block-on.min-version, required=constraint.version)\n```\n\nJvmConstraint: match on `groupId` exact + `artifactId` exact or `\"*\"` wildcard (matches all artifacts in group).\nNpmConstraint: match on `name` exact.\nGoConstraint: match on `module` prefix (e.g., `golang.org\u002Fx\u002Fnet` matches `golang.org\u002Fx\u002Fnet\u002Fhttp2`).\n\n#### 4.4 Max-Version Check\n\n```\nfor each constraint in max-versions:\n  if constraint matches dependency:\n    if dependency.version > constraint.version:\n      VIOLATION(type=max-version, severity=block-on.max-version, ceiling=constraint.version)\n```\n\nSame matching rules as 4.3.\n\n#### 4.5 Freshness Check\n\n```\nif freshness-window-days > 0:\n  if dependency.age_days > freshness-window-days:\n    VIOLATION(type=freshness, severity=block-on.freshness, age_days=dependency.age_days)\n```\n\nAge resolution: run `mvn versions:display-dependency-updates -DprocessDependencies=true` → parse `[INFO] ... -> X.Y.Z available` lines; compute age as `today - release_date(latest_version)`. If update unavailable, skip freshness check.\n\n### Step 5 — Classify Violations\n\nFor each `VIOLATION(type, severity_raw, ...)` from Step 4:\n\n1. **Denied-CVE**: final_action = BLOCK regardless of anything (RULE-074-01).\n2. **All other types**: `raw_action = severity_raw` (BlockOnPolicy field for the type).\n3. **Scope escalation (D-R11)**: `scope_action = ScopePolicy.actionFor(dependency.scope)`. If `scope_action.ordinal() \u003C raw_action.ordinal()` → demote to `scope_action`. If scope_action = IGNORE → suppress entirely.\n4. **Final action**: `min(raw_action, scope_action)` by severity (BLOCK > WARN_ONLY > IGNORE).\n\nClassification matrix example (D-R10 defaults + D-R11 test scope):\n\n| Type | Raw action | Scope (test) | Final action |\n|------|-----------|--------------|--------------|\n| denied-cve | BLOCK | — | **BLOCK** (RULE-074-01 override) |\n| license | BLOCK | WARN_ONLY | **WARN_ONLY** (scope demotes) |\n| min-version | BLOCK | WARN_ONLY | **WARN_ONLY** |\n| max-version | WARN_ONLY | WARN_ONLY | **WARN_ONLY** |\n| freshness | WARN_ONLY | WARN_ONLY | **WARN_ONLY** |\n\n### Step 6 — Report and Exit\n\nWrite report to `--report` path (or auto-resolve as `ai\u002Fepics\u002Fepic-XXXX\u002Freports\u002Fdep-policy-validation-report-STORY-ID.md`). Use template `_TEMPLATE-DEP-POLICY-REPORT.md`.\n\nReport sections:\n- **Header**: timestamp, story-id, policy enabled, dimensions checked\n- **Summary**: total dependencies scanned, violations by type and final-action\n- **Blocking Violations**: table of all BLOCK final-action findings\n- **Warning Violations**: table of all WARN_ONLY final-action findings\n- **Suppressed**: count of IGNORE-classified findings (no detail)\n- **Policy Snapshot**: rendered `DependencyPolicyConfig` as YAML for audit trail\n\nExit codes:\n- `0` — disabled, or zero violations, or all violations are IGNORE\n- `1` (`DEP_POLICY_BLOCK`) — ≥1 BLOCK final-action violation\n- `2` (`DEP_POLICY_WARN`) — zero BLOCK violations; ≥1 WARN_ONLY violation\n\n## Error Handling\n\n| Condition | Exit | Code | Action |\n|-----------|------|------|--------|\n| Policy disabled (`enabled=false`) | 0 | `DEP_POLICY_DISABLED` | Log + exit 0; no artifact |\n| Policy YAML parse error | 1 | `POLICY_PARSE_ERROR` | Log ConfigValidationException message |\n| No manifest found | 1 | `MANIFEST_NOT_FOUND` | Log which files were probed |\n| CVE scanner unavailable | 0 | `CVE_SCAN_UNAVAILABLE` | Skip CVE dimension; continue remaining checks |\n| License unresolvable | — | `LICENSE_UNRESOLVABLE` | Log as WARN; continue |\n| Freshness data unavailable | — | `FRESHNESS_UNAVAILABLE` | Skip freshness dimension; continue |\n\n## Integration Notes\n\n- Invoked as **MANDATORY TOOL CALL** by `x-implement-story` Phase 3 §3.Q.dep when `quality.dependencyPolicy.enabled=true` (EPIC-0074, Rule 27 Surface 13, Rule 24 §Mandatory Evidence Artifacts).\n- Integrates with `x-audit-dependencies` via shared `--policy` flag: `x-audit-dependencies --scope all --policy` delegates policy validation to this skill after completing the standard audit.\n- Evidence artifact path follows PathResolver v4: `ai\u002Fepics\u002Fepic-XXXX-\u003Cslug>\u002Freports\u002Fdep-policy-validation-report-STORY-ID.md`.\n- `audit-dep-policy.sh` (Camada 2 CI script, Rule 32) checks existence of this artifact for merged PRs when `DEPENDENCY_POLICY_ENABLED=true` in CI env.\n\n## RULE-074-01 (Denied CVEs — Hard-Block)\n\nDenied CVEs from `denied-cves` list are **unconditional BLOCK** regardless of:\n- Scope (even `test`, `dev`, `build`)\n- Severity threshold (even INFO)\n- `block-on.severity-cve` setting\n- Patch availability\n\nThis is the only violation type that bypasses D-R11 scope-policy demotion.\n","## Global Output Policy\n\n- **Language**: English ONLY.\n- **Tone**: Technical, Direct, and Concise.\n- **Efficiency**: Remove all conversational fillers and greetings to save tokens.\n\n# Skill: Dependency Policy Validator\n\n## Purpose\n\nValidates all project dependencies against the `dependencies.policy` block declared in the project YAML (parsed into `DependencyPolicyConfig` — EPIC-0074, Rule 32). Applies the D-R10 enforcement matrix (block-on) and the D-R11 scope policy to each finding, emitting:\n\n- **Exit 0** — gate disabled or all findings are WARN\u002FIGNORE only; no BLOCK-level violations\n- **Exit 1** (`DEP_POLICY_BLOCK`) — at least one BLOCK-level violation (denied CVE, license, min-version, or scope escalation)\n- **Exit 2** (`DEP_POLICY_WARN`) — only WARN-level violations; no blocking failures\n\nProduces evidence artifact at `ai\u002Fepics\u002Fepic-XXXX\u002Freports\u002Fdep-policy-validation-report-STORY-ID.md` (required by Rule 27 Surface 13 — conditional on `quality.dependencyPolicy.enabled=true`).\n\n## Triggers\n\n- `\u002Fx-validate-dependency-policy` — validate all dependency dimensions\n- `\u002Fx-validate-dependency-policy --story-id story-0074-0001` — emit evidence artifact for the given story\n- `\u002Fx-validate-dependency-policy --dry-run` — enumerate violations without applying BLOCK\u002FWARN exits\n\n## Parameters\n\n| Parameter | Type | Default | Description |\n|-----------|------|---------|-------------|\n| `--story-id` | String | — | Story identifier for evidence artifact path resolution |\n| `--report` | Path | auto-resolved | Override artifact output path |\n| `--dry-run` | Boolean | `false` | Run validation without producing exit-code enforcement |\n\n## Activation Condition\n\nActivated when `dependencies.policy.enabled: true` in project YAML. When disabled (or field absent), skill emits `PERF_DISABLED`-style log and exits 0 immediately — no validation performed, no artifact produced.\n\n## YAML Schema (Reference)\n\n```yaml\ndependencies:\n  policy:\n    enabled: true\n    min-versions:\n      - groupId: com.fasterxml.jackson.core\n        artifactId: jackson-databind\n        version: \"2.15.0\"\n    max-versions: []\n    allowed-licenses: [Apache-2.0, MIT, BSD-2-Clause, BSD-3-Clause]\n    denied-cves: [CVE-2021-44228, CVE-2023-1234567]\n    freshness-window-days: 365\n    block-on:\n      severity-cve: BLOCK\n      license: BLOCK\n      min-version: BLOCK\n      max-version: WARN_ONLY\n      freshness: WARN_ONLY\n    scope-policy:\n      compile: BLOCK\n      runtime: BLOCK\n      test: WARN_ONLY\n      dev: WARN_ONLY\n      provided: WARN_ONLY\n      build: WARN_ONLY\n```\n\n## Workflow\n\n```\n1. LOAD     -> Read DependencyPolicyConfig from project YAML\n2. DETECT   -> Resolve manifest files (pom.xml, package.json, go.mod)\n3. RESOLVE  -> Parse dependency list with versions and scopes\n4. VALIDATE -> Apply 5 validation dimensions per dependency\n5. CLASSIFY -> Apply D-R10 block-on + D-R11 scope-policy per finding\n6. REPORT   -> Write structured report; exit with highest severity\n```\n\n### Step 1 — Load Policy\n\nRead project YAML (`project.yaml`, `.ia-dev-env.yaml`, or the root config file). Parse the `dependencies.policy` block. If `enabled: false` or block absent → log `DEP_POLICY_DISABLED` and exit 0.\n\nKey fields to extract:\n- `denied-cves` list (RULE-074-01: always BLOCK regardless of scope\u002Fseverity-threshold)\n- `allowed-licenses` list (empty = no restriction)\n- `min-versions` \u002F `max-versions` list of VersionConstraints (JVM: groupId+artifactId; NPM: name; Go: module)\n- `freshness-window-days` (default 365)\n- `block-on` map → BlockOnPolicy (D-R10 defaults)\n- `scope-policy` map → ScopePolicy (D-R11 defaults)\n\n### Step 2 — Detect Manifests\n\n| Build Tool | Manifest | Dependency Command |\n|------------|----------|--------------------|\n| Maven | `pom.xml` | `mvn dependency:list -DincludeScope=compile,runtime,test,provided` |\n| Gradle | `build.gradle` \u002F `build.gradle.kts` | `.\u002Fgradlew dependencies --configuration runtimeClasspath,testRuntimeClasspath` |\n| npm | `package.json` + `package-lock.json` | `npm list --json --all --depth 0` |\n| yarn | `yarn.lock` | `yarn list --json --depth 0` |\n| pnpm | `pnpm-lock.yaml` | `pnpm list --json --depth 0` |\n| Go modules | `go.mod` | `go list -m -json all` |\n\nMultiple manifests detected → validate each independently; merge findings; deduplicate by coordinate.\n\n### Step 3 — Resolve Dependencies\n\nParse each manifest to extract a flat list of:\n\n```\nDependency {\n  coordinate: String   \u002F\u002F \"groupId:artifactId\" | \"name@version\" | \"module@version\"\n  version: String\n  scope: String        \u002F\u002F compile | runtime | test | dev | provided | build\n  age_days: Integer    \u002F\u002F resolved via mvn versions:display-dependency-updates or npm outdated\n}\n```\n\nFor JVM: use `mvn dependency:list` output (format `[INFO]    {groupId}:{artifactId}:{type}:{version}:{scope}`).\nFor NPM\u002Fyarn\u002Fpnpm: parse JSON list output; map `devDependencies` to scope `dev`, `dependencies` to scope `compile`.\nFor Go: `go list -m -json all` → `Module.Path`, `Module.Version`; scope always `compile`.\n\n### Step 4 — Validate (5 Dimensions per Dependency)\n\nFor each resolved dependency, run the following checks in order:\n\n#### 4.1 Denied CVE Check (RULE-074-01 — Always BLOCK)\n\n```\nif any CVE in denied-cves matches this dependency's known CVEs:\n  VIOLATION(type=denied-cve, severity=BLOCK, cve=CVE-XXXX-XXXXXX)\n  # Hard-block: scope-policy does NOT apply; block-on.severity-cve does NOT apply\n  # The denied-cves list bypasses all override mechanisms\n```\n\nCVE lookup strategy: use output from `mvn dependency:resolve -Dsecurity=true` (OWASP plugin if available), `npm audit --json`, or `trivy image` JSON output. If no CVE scanner is available, skip 4.1 and log `CVE_SCAN_UNAVAILABLE`.\n\n#### 4.2 License Check\n\n```\nif allowed-licenses is not empty:\n  if dependency.license NOT IN allowed-licenses:\n    VIOLATION(type=license, severity=block-on.license, license=\u003Cactual>)\n```\n\nLicense resolution: Maven → read `pom.xml` `\u003Clicenses>` section or use `mvn license:aggregate-download-licenses --json`; NPM → `package.json` `license` field; Go → `go-licenses` tool.\nIf license cannot be resolved → log `LICENSE_UNRESOLVABLE` as WARN.\n\n#### 4.3 Min-Version Check\n\n```\nfor each constraint in min-versions:\n  if constraint matches dependency:\n    if dependency.version \u003C constraint.version:\n      VIOLATION(type=min-version, severity=block-on.min-version, required=constraint.version)\n```\n\nJvmConstraint: match on `groupId` exact + `artifactId` exact or `\"*\"` wildcard (matches all artifacts in group).\nNpmConstraint: match on `name` exact.\nGoConstraint: match on `module` prefix (e.g., `golang.org\u002Fx\u002Fnet` matches `golang.org\u002Fx\u002Fnet\u002Fhttp2`).\n\n#### 4.4 Max-Version Check\n\n```\nfor each constraint in max-versions:\n  if constraint matches dependency:\n    if dependency.version > constraint.version:\n      VIOLATION(type=max-version, severity=block-on.max-version, ceiling=constraint.version)\n```\n\nSame matching rules as 4.3.\n\n#### 4.5 Freshness Check\n\n```\nif freshness-window-days > 0:\n  if dependency.age_days > freshness-window-days:\n    VIOLATION(type=freshness, severity=block-on.freshness, age_days=dependency.age_days)\n```\n\nAge resolution: run `mvn versions:display-dependency-updates -DprocessDependencies=true` → parse `[INFO] ... -> X.Y.Z available` lines; compute age as `today - release_date(latest_version)`. If update unavailable, skip freshness check.\n\n### Step 5 — Classify Violations\n\nFor each `VIOLATION(type, severity_raw, ...)` from Step 4:\n\n1. **Denied-CVE**: final_action = BLOCK regardless of anything (RULE-074-01).\n2. **All other types**: `raw_action = severity_raw` (BlockOnPolicy field for the type).\n3. **Scope escalation (D-R11)**: `scope_action = ScopePolicy.actionFor(dependency.scope)`. If `scope_action.ordinal() \u003C raw_action.ordinal()` → demote to `scope_action`. If scope_action = IGNORE → suppress entirely.\n4. **Final action**: `min(raw_action, scope_action)` by severity (BLOCK > WARN_ONLY > IGNORE).\n\nClassification matrix example (D-R10 defaults + D-R11 test scope):\n\n| Type | Raw action | Scope (test) | Final action |\n|------|-----------|--------------|--------------|\n| denied-cve | BLOCK | — | **BLOCK** (RULE-074-01 override) |\n| license | BLOCK | WARN_ONLY | **WARN_ONLY** (scope demotes) |\n| min-version | BLOCK | WARN_ONLY | **WARN_ONLY** |\n| max-version | WARN_ONLY | WARN_ONLY | **WARN_ONLY** |\n| freshness | WARN_ONLY | WARN_ONLY | **WARN_ONLY** |\n\n### Step 6 — Report and Exit\n\nWrite report to `--report` path (or auto-resolve as `ai\u002Fepics\u002Fepic-XXXX\u002Freports\u002Fdep-policy-validation-report-STORY-ID.md`). Use template `_TEMPLATE-DEP-POLICY-REPORT.md`.\n\nReport sections:\n- **Header**: timestamp, story-id, policy enabled, dimensions checked\n- **Summary**: total dependencies scanned, violations by type and final-action\n- **Blocking Violations**: table of all BLOCK final-action findings\n- **Warning Violations**: table of all WARN_ONLY final-action findings\n- **Suppressed**: count of IGNORE-classified findings (no detail)\n- **Policy Snapshot**: rendered `DependencyPolicyConfig` as YAML for audit trail\n\nExit codes:\n- `0` — disabled, or zero violations, or all violations are IGNORE\n- `1` (`DEP_POLICY_BLOCK`) — ≥1 BLOCK final-action violation\n- `2` (`DEP_POLICY_WARN`) — zero BLOCK violations; ≥1 WARN_ONLY violation\n\n## Error Handling\n\n| Condition | Exit | Code | Action |\n|-----------|------|------|--------|\n| Policy disabled (`enabled=false`) | 0 | `DEP_POLICY_DISABLED` | Log + exit 0; no artifact |\n| Policy YAML parse error | 1 | `POLICY_PARSE_ERROR` | Log ConfigValidationException message |\n| No manifest found | 1 | `MANIFEST_NOT_FOUND` | Log which files were probed |\n| CVE scanner unavailable | 0 | `CVE_SCAN_UNAVAILABLE` | Skip CVE dimension; continue remaining checks |\n| License unresolvable | — | `LICENSE_UNRESOLVABLE` | Log as WARN; continue |\n| Freshness data unavailable | — | `FRESHNESS_UNAVAILABLE` | Skip freshness dimension; continue |\n\n## Integration Notes\n\n- Invoked as **MANDATORY TOOL CALL** by `x-implement-story` Phase 3 §3.Q.dep when `quality.dependencyPolicy.enabled=true` (EPIC-0074, Rule 27 Surface 13, Rule 24 §Mandatory Evidence Artifacts).\n- Integrates with `x-audit-dependencies` via shared `--policy` flag: `x-audit-dependencies --scope all --policy` delegates policy validation to this skill after completing the standard audit.\n- Evidence artifact path follows PathResolver v4: `ai\u002Fepics\u002Fepic-XXXX-\u003Cslug>\u002Freports\u002Fdep-policy-validation-report-STORY-ID.md`.\n- `audit-dep-policy.sh` (Camada 2 CI script, Rule 32) checks existence of this artifact for merged PRs when `DEPENDENCY_POLICY_ENABLED=true` in CI env.\n\n## RULE-074-01 (Denied CVEs — Hard-Block)\n\nDenied CVEs from `denied-cves` list are **unconditional BLOCK** regardless of:\n- Scope (even `test`, `dev`, `build`)\n- Severity threshold (even INFO)\n- `block-on.severity-cve` setting\n- Patch availability\n\nThis is the only violation type that bypasses D-R11 scope-policy demotion.\n",{"name":5,"description":7,"allowed-tools":24,"argument-hint":25,"user-invocable":26,"requires-capabilities":27},"Read, Write, Bash, Grep, Glob","[--story-id STORY-XXXX-YYYY] [--report \u003Cpath>] [--dry-run]",true,[28],"governance.dependency-policy","main","952a630c6f38d193a349d86fa18db1de8843e837","src\u002Fmain\u002Fresources\u002Ftargets\u002Fclaude\u002Fskills\u002Fconditional\u002Fsecurity\u002Fx-validate-dependency-policy",1,"https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment","https:\u002F\u002Fgithub.com\u002Freview-bench","https:\u002F\u002Freview-bench.ai","An open benchmark for AI code review.","2026-10-27 06:56:37",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":26},[40,43,46],{"tool":41,"command":42},"npx","npx skills add review-bench\u002Federcnj_ia-dev-environment --skill x-validate-dependency-policy",{"tool":44,"command":45},"bunx","bunx skills add review-bench\u002Federcnj_ia-dev-environment --skill x-validate-dependency-policy",{"tool":47,"command":48},"pnpm","pnpm dlx skills add review-bench\u002Federcnj_ia-dev-environment --skill x-validate-dependency-policy","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment\u002Fblob\u002Fmain\u002Fsrc\u002Fmain\u002Fresources\u002Ftargets\u002Fclaude\u002Fskills\u002Fconditional\u002Fsecurity\u002Fx-validate-dependency-policy\u002FSKILL.md",[],[52,59,66,73,80,87],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M757M8J48TQ1Y3X25GSJBXAS","x-parallel-eval","Detects and classifies file-collision risks between work units (tasks, stories, or epic phases) before parallel execution. Reads ## File Footprint blocks produced by x-task-plan \u002F x-story-plan, applies the parallelism-heuristics knowledge pack (hard \u002F regen \u002F soft categories + hotspot overrides), and emits a collision matrix + serialization recommendation in Markdown (default) or JSON.","https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment\u002Fblob\u002Fmain\u002Fsrc\u002Ftest\u002Fresources\u002Fgolden\u002Fx-parallel-eval\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M757M57XMR9546S69466HDWT","parallelism-heuristics","Canonical catalog of file-collision heuristics for parallel task, story, and epic execution. Defines the File Footprint block format, the three Conflict Categories (hard \u002F regen \u002F soft), a hotspot list of high-contention paths, and the degrade-with-warning policy. Consumed by x-task-plan, x-story-plan, x-epic-map, x-parallel-eval, and x-dev-*-implement.","https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment\u002Fblob\u002Fmain\u002Fsrc\u002Ftest\u002Fresources\u002Fgolden\u002Fparallelism-heuristics\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M757M11SZ8P1VCQABT08QVYA","x-watch-pr-ci","Polls a PR's CI checks and Copilot review status, blocking until checks complete or timeout. Returns one of 8 stable exit codes (SUCCESS=0, CI_PENDING_PROCEED=10, CI_FAILED=20, TIMEOUT=30, PR_ALREADY_MERGED=40, NO_CI_CONFIGURED=50, PR_CLOSED=60, PR_NOT_FOUND=70). Writes a versioned state-file for session resume.","https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment\u002Fblob\u002Fmain\u002Fsrc\u002Ftest\u002Fresources\u002Fgolden\u002Fjava-spring\u002Fplatform-claude-code\u002F.claude\u002Fskills\u002Fx-watch-pr-ci\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M757KW53K8KFPGADFB4PH949","x-validate-docs","Documentation freshness gate: validates 6 dimensions (readme, api-specs, grpc-proto, adr, skill-docs, system-architecture) against code changes in a PR. Stack-aware — only validates targets declared\u002Fauto-detected from ProjectConfig.documentation.targets. Returns exit non-zero on staleness; produces structured report.","https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment\u002Fblob\u002Fmain\u002Fsrc\u002Ftest\u002Fresources\u002Fgolden\u002Fjava-spring\u002Fplatform-claude-code\u002F.claude\u002Fskills\u002Fx-validate-docs\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M757KQZHSA10MKC0CR571D60","x-update-system-architecture","Incrementally updates docs\u002Farchitecture\u002Fsystem.md after an epic completes. Appends new entries to the Decision Log (§11) using x-internal-write-report --append (dedup by ## ID: marker) and surgically inserts component\u002Fintegration changes into sections 1-10 via Edit. Idempotent: re-running with the same epic produces a byte-identical system.md.","https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment\u002Fblob\u002Fmain\u002Fsrc\u002Ftest\u002Fresources\u002Fgolden\u002Fjava-spring\u002Fplatform-claude-code\u002F.claude\u002Fskills\u002Fx-update-system-architecture\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M757KKBT5Q1SVF8DMJBVF46M","x-update-architecture","Incrementally updates the service architecture document with changes from architecture plans. Adds new components, integrations, flows, and ADR references without rewriting existing content. Use after implementation to keep architecture documentation current.","https:\u002F\u002Fgithub.com\u002Freview-bench\u002Federcnj_ia-dev-environment\u002Fblob\u002Fmain\u002Fsrc\u002Ftest\u002Fresources\u002Fgolden\u002Fjava-spring\u002Fplatform-claude-code\u002F.claude\u002Fskills\u002Fx-update-architecture\u002FSKILL.md",[],[]]