Skip to content

Conversation

@yimingyinqwqq
Copy link

Add opt-in JSON export (--export-json ) to emit structured verification results (metadata, per-harness outcomes, CBMC stats).
Improves Kani by enabling reliable machine-readable output for external tools and applications.

Context: Current output is human-readable only, which blocks robust automation and integrations.

Manual tests:
• Run cargo kani --export-json out.json
• With multiple harnesses: counts in summary match executed harnesses.

Resolves #2572
Resolves #2636
Resolves #2574
Resolves #2562
Resolves #1194
Resolves #1219
Resolves #1045
Resolves #598
Resolves #3357

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.

ConnorJKY and others added 30 commits September 10, 2025 20:09
…n-handler

# Conflicts:
#	kani-driver/src/main.rs
…schedule the schema for harness metadada util func.
@yimingyinqwqq yimingyinqwqq requested a review from a team as a code owner November 13, 2025 06:30
@github-actions github-actions bot added the Z-EndToEndBenchCI Tag a PR to run benchmark CI label Nov 13, 2025
@tautschnig
Copy link
Member

Thank you for your contribution! I notice that you include an RFC document in your pull request, but I think the expectation is that an RFC (a request-for-comment!) is submitted as a PR of its own to solicit discussion before coming up with a major new feature or change. You don't need to close this PR, but I think it would be useful to separately have a discussion on this topic as the specific JSON structure is a one-way-door for future changes to it would risk breaking other tools.

@yimingyinqwqq
Copy link
Author

Thank you for your suggestion! We discussed with Rajath about this and user can opt in using the flag so hopefully nothing will be broken.

@github-actions github-actions bot added the Z-CompilerBenchCI Tag a PR to run benchmark CI label Nov 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Z-CompilerBenchCI Tag a PR to run benchmark CI Z-EndToEndBenchCI Tag a PR to run benchmark CI

Projects

None yet

5 participants