Skip to content

feat: parse component scope + --runtime-only filter for gates - #72

Merged
dmchaledev merged 1 commit into
mainfrom
feat/runtime-only-scope
Aug 7, 2026
Merged

feat: parse component scope + --runtime-only filter for gates#72
dmchaledev merged 1 commit into
mainfrom
feat/runtime-only-scope

Conversation

@dmchaledev

Copy link
Copy Markdown
Contributor

Closes #56

Problem

Dev/test dependencies inflated diffs and tripped --fail-on gates, and the CycloneDX scope field was silently dropped — there was no way to gate on runtime risk only.

Fix

  • Parser: extract CycloneDX component scope (required/optional/excluded)
  • CLI: new --runtime-only flag filters dev/test (scope=optional/excluded) components out of the diff and the gate; unset scope = runtime (CDX default) and is kept
  • Help text documents the flag

Verification

  • 3 new tests: scope parsing, flag parsing, default false
  • 115 tests pass, tsc clean

Closes #56

Dev/test dependencies inflated diffs and tripped --fail-on gates, and the
CycloneDX scope field was silently dropped — there was no way to gate on
runtime risk only.

- Parser: extract CycloneDX component scope (required/optional/excluded)
- CLI: new --runtime-only flag filters dev/test (scope=optional/excluded)
  components out of the diff and the gate; unset scope = runtime (CDX
  default) and is kept
- Help text documents the flag
- 3 new tests: scope parsing, flag parsing, default false

115 tests pass, tsc clean.
@dmchaledev
dmchaledev force-pushed the feat/runtime-only-scope branch from fad7984 to 9973cfe Compare August 7, 2026 19:48
@dmchaledev
dmchaledev merged commit ad00aab into main Aug 7, 2026
@dmchaledev
dmchaledev deleted the feat/runtime-only-scope branch August 7, 2026 19:48
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 merging this pull request may close these issues.

Dev/test dependencies inflate the diff and can trip --fail-on gates: component scope is discarded, so there is no way to diff runtime-only components

1 participant