Skip to content

fix(tools): fail closed on missing managed report for accepted programs (fixes #3251) - #4321

Open
gorky117-cell wants to merge 2 commits into
limitlessprojects:mainfrom
gorky117-cell:fix/issue-3251-corpus-harness-missing-managed-report
Open

gorky117-cell wants to merge 2 commits into
limitlessprojects:mainfrom
gorky117-cell:fix/issue-3251-corpus-harness-missing-managed-report

Conversation

@gorky117-cell

Copy link
Copy Markdown
Contributor

Summary

Resolves #3251 by ensuring that tools/corpus_harness.py fails closed when an accepted program omits a requested summary.managed report:

  • Previously, when --report-managed was passed, run_checker() only validated summary.managed if the field was present (if managed is not None:).
  • For an accept verdict lacking that field, the aggregation loop treated the missing report as empty ({}) and counted zero blocks/sites, conflating a missing audit report with a measured zero.
  • The fix requires that whenever --report-managed is active, an accepted program must emit a non-null summary.managed object.
  • Parse failure exemptions are strictly preserved (as parser errors legitimately terminate before typechecking/managed analysis).

Verification & Tests

  • Added test_missing_or_null_report_on_accept_fails_closed to ManagedReportCliTests in tools/test_corpus_harness.py:
    • Verifies that both missing and explicit null reports on ACCEPT verdicts fail closed with a harness error (returncode == 1).
    • Verifies that REJECT parser error fixtures without a managed report continue to pass without error.
  • Verified cleanly against harness test runner.

Signed-off-by: Gaurav Kumar Singh gauravatwork117@gmail.com

…ms (fixes limitlessprojects#3251)

- In tools/corpus_harness.py run_checker(), when --report-managed is
  requested, require that accepted programs carry a non-null
  summary.managed report.
- Previously, missing reports on otherwise accepted verdicts were
  treated as empty and aggregated as zero counters, conflating missing
  audit measurement with measured zero managed blocks.
- Preserves parse failure exemptions where no managed report is
  expected.
- Add test coverage in test_corpus_harness.py verifying absent and null
  managed reports on accepted programs fail closed with harness error.

Signed-off-by: Gaurav Kumar Singh <gauravatwork117@gmail.com>
@gorky117-cell
gorky117-cell force-pushed the fix/issue-3251-corpus-harness-missing-managed-report branch from 0dddc43 to 4f47332 Compare November 10, 2026 23:17
…into fix/issue-3251-corpus-harness-missing-managed-report

Signed-off-by: gauravatwork117 <gauravatwork117@gmail.com>
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.

[tooling] Missing requested managed report is aggregated as zero on accepted output

2 participants