Skip to content

Update autoharness_analyzer for current AutoHarnessSkipReason variants - #680

Open
srivatsansamraj wants to merge 1 commit into
model-checking:mainfrom
srivatsansamraj:analyzer-kani-metadata-skip-reasons
Open

Update autoharness_analyzer for current AutoHarnessSkipReason variants#680
srivatsansamraj wants to merge 1 commit into
model-checking:mainfrom
srivatsansamraj:analyzer-kani-metadata-skip-reasons

Conversation

@srivatsansamraj

Copy link
Copy Markdown

The analyzer keeps its own copy of AutoHarnessSkipReason and fails to deserialize metadata from current Kani, which changed GenericFn to GenericFn(String) (model-checking/kani#4679) and added RequiresBoundedArguments (model-checking/kani#4691).

  • Bring the enum in line with kani_metadata, keeping the strum strings identical so table text matches kani autoharness --list.
  • Normalize a bare "GenericFn" to {"GenericFn": ""} before from_value, since CI builds the pinned Kani, which still writes the old form.
  • Report RequiresBoundedArguments in its own type-category table instead of folding it into the missing-implementation one; the two need different remediation.
  • Note --bounded-arguments in the README.

Verified with three hand-built kani-metadata.json fixtures (old format, GenericFn with payload, RequiresBoundedArguments): before the change they behave as described in #679, after it all three pass. cargo test covers the same three cases inline. Not run against a full std sweep.

Resolves #679

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

Kani changed GenericFn to carry a String (model-checking/kani#4679) and
added RequiresBoundedArguments (model-checking/kani#4691). The analyzer
keeps its own copy of the enum, which did not follow, so it fails to
deserialize metadata from current Kani.

Match the enum, normalize the old bare "GenericFn" form so CI on the
pinned Kani keeps working, and report RequiresBoundedArguments in its
own table.

Resolves model-checking#679
@srivatsansamraj

Copy link
Copy Markdown
Author

@Tianshu-Huang @acearyanarun @CYJ904 @wodex1nhaoIeng

Opened #679 for this; this PR is the fix. Feel free to take a look and verify when you get a chance.

@srivatsansamraj
srivatsansamraj marked this pull request as ready for review September 8, 2026 06:54
@srivatsansamraj
srivatsansamraj requested a review from a team as a code owner September 8, 2026 06:54
@acearyanarun

Copy link
Copy Markdown

Looks good to me

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.

autoharness_analyzer fails on metadata from current Kani

2 participants