Skip to content

fix: schema stability, path normalization, CLI help tests, vulndb ref…#937

Merged
Gbangbolaoluwagbemiga merged 3 commits into
HyperSafeD:mainfrom
STX-Boot:fix/issues-509-515-516-520
Jun 26, 2026
Merged

fix: schema stability, path normalization, CLI help tests, vulndb ref…#937
Gbangbolaoluwagbemiga merged 3 commits into
HyperSafeD:mainfrom
STX-Boot:fix/issues-509-515-516-520

Conversation

@STX-Boot

Copy link
Copy Markdown
Contributor

…actor (#509 #515 #516 #520)

Summary

Describe the change, the motivation behind it, and any important implementation details.

Fixes #

Type of change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Maintenance or refactor

Testing

List the commands you ran and the scope of validation.

cargo fmt --all --check
cargo clippy --workspace --all-targets --all-features -- -D warnings
cargo test -p sanctifier-core --all-features
cargo test -p sanctifier-cli
cd frontend && npm test

Checklist

  • I ran the relevant tests locally, or explained why they were not needed.
  • I updated documentation for any user-facing behavior changes.
  • I added or updated tests for the change when appropriate.
  • I added a changelog or release-notes entry when needed, or confirmed none is required.
  • I verified this branch is up to date with main and merge conflicts are resolved.

…actor (HyperSafeD#509 HyperSafeD#515 HyperSafeD#516 HyperSafeD#520)

- HyperSafeD#509 (sanctifier-core/sanctifier-cli): Restructure `analyze --format json`
  output to conform to schemas/analysis-output.json (schema_version 1.1.0).
  Add `findings` object with code-tagged Finding* types; move duration_ms and
  profile out of metadata (additionalProperties:false); remove non-schema keys
  from summary.  Un-ignore `test_json_output_validates_against_schema`.
  Add threat-model and schema stability notes to sanctifier-core lib.rs.

- HyperSafeD#515 (sanctifier-cli): Refactor vulndb.rs into vulndb/mod.rs (database I/O +
  validation) + vulndb/matcher.rs (pure scan engine + VulnMatch type), making
  the module boundary between loading and matching explicit.

- HyperSafeD#516 (sanctifier-cli): Add 14 new CLI help/UX tests covering --version,
  unknown-subcommand error, per-subcommand --help output, shell completions,
  and top-level help listing all core commands.

- HyperSafeD#520 (sanctifier-cli): Extract normalize_cli_path() helper with doc comment
  describing cross-platform backslash conversion; add 3 unit tests.
@vercel

vercel Bot commented Jun 26, 2026

Copy link
Copy Markdown

@STX-Boot is attempting to deploy a commit to the gbangbolaoluwagbemiga's projects Team on Vercel.

A member of the Team first needs to authorize it.

…SafeD#515 HyperSafeD#516 HyperSafeD#520 into new arch

- analyze.rs: accept main's RuleRegistry-based run_analysis; add normalize_cli_path
  call for cross-platform path normalization (HyperSafeD#520); keep normalize_cli_path helper
  and unit tests; drop AnalysisCache (superseded by new approach)
- lib.rs: keep threat model + schema stability module doc (HyperSafeD#509); accept main's
  structural imports and module declarations
- vulndb/mod.rs: keep split module layout (HyperSafeD#515); accept main's dead_code allow
- cli_tests.rs: keep all 15 help/UX tests (HyperSafeD#516); accept main's telemetry test
@drips-wave

drips-wave Bot commented Jun 26, 2026

Copy link
Copy Markdown

@STX-Boot Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Gbangbolaoluwagbemiga Gbangbolaoluwagbemiga merged commit 603a07d into HyperSafeD:main Jun 26, 2026
11 of 23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment