Skip to content

feat(xtask): add direct JSON compare mode#806

Merged
mstykow merged 2 commits intomainfrom
feat/direct-json-compare-mode
Apr 28, 2026
Merged

feat(xtask): add direct JSON compare mode#806
mstykow merged 2 commits intomainfrom
feat/direct-json-compare-mode

Conversation

@mstykow
Copy link
Copy Markdown
Owner

@mstykow mstykow commented Apr 28, 2026

Summary

  • add a direct raw-JSON mode to xtask compare-outputs so saved ScanCode and Provenant outputs can be compared without rerunning either scanner
  • infer info/classify/summary-style comparison sections from the provided JSON contents and cover the new mode with focused unit tests
  • document the raw-JSON workflow in the xtask maintainer docs and update the CLI verification scorecard to reflect the new compare lane

Scope and exclusions

  • Included:
    • xtask/src/bin/compare_outputs.rs
    • xtask/README.md
    • docs/implementation-plans/infrastructure/CLI_VERIFICATION_SCORECARD.md
  • Explicit exclusions:
    • no public CLI/distribution changes yet; this keeps the capability in the maintainer harness for now
    • no scan-target packaging refactor beyond the new direct JSON mode

Follow-up work

  • Created or intentionally deferred:
    • investigate exposing JSON-only compare publicly via the existing provenant CLI or a dedicated shipped binary
    • evaluate a longer-term conversion of standalone top-level modes into true subcommands instead of adding more flag-driven special cases

mstykow and others added 2 commits April 28, 2026 13:35
Allow compare-outputs to compare saved ScanCode and Provenant raw JSON inputs without rerunning either scanner.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Signed-off-by: Maxim Stykow <maxim.stykow@gmail.com>
Describe the raw-JSON compare workflow and clarify manifest/reporting semantics for direct comparison runs.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Signed-off-by: Maxim Stykow <maxim.stykow@gmail.com>
@mstykow mstykow enabled auto-merge (rebase) April 28, 2026 11:48
@mstykow mstykow merged commit 13e08c1 into main Apr 28, 2026
15 checks passed
@mstykow mstykow deleted the feat/direct-json-compare-mode branch April 28, 2026 11:50
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.

1 participant