Skip to content

feat(reporting): add per-case expectation diagnostics - #382

Merged
rng1995 merged 3 commits into
mainfrom
feat/christopherk/expectation-diagnostics
Nov 10, 2026
Merged

rng1995 merged 3 commits into
mainfrom
feat/christopherk/expectation-diagnostics

Conversation

@chrisknvidia

@chrisknvidia chrisknvidia commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Preserve every authored behavior in rich judge results, including explicit abstentions and missing judgments from truncated replies. Only explicit passes earn credit; the full expectation count remains the score denominator.
  • Add per-case, per-attempt expectation diagnostics to Tier 3 JSON and the HTML Dataset tab. Stable case IDs and numbered behaviors distinguish met, unmet, unchecked, unscored and inapplicable requirements across executed conditions, with recorded reasons, evidence excerpts and uncertainty-aware next diagnostic steps.
  • Keep routing separate from task outcome for negative controls and baselines. Bound and redact diagnostic inventories, record omissions, and document the report contract.

Verification

  • I am familiar with the Contributing Guidelines
  • Added or updated focused tests
  • Updated documentation for user-visible changes
  • Ran make lint
  • Ran make test
  • Ran make build
  • Did not add credentials, private datasets, or proprietary benchmark content

After integrating current main (1af2693d), focused grading, reporting and evaluation tests: 11,891 passed, 10 skipped, including regressions for budget ordering, diagnostic list layout, unexpected judge exceptions, intentionally skipped arms and report navigation. make lint, repository-wide Ruff, packaging build and OSS source/distribution boundary checks pass. fern check passes (the unauthenticated redirects check is skipped).

Full suite (make test with four workers): 26,246 passed, 22 failed, 82 skipped. All 22 exact failures reproduce on a clean origin/main (1af2693d) worktree with its own source imports. These concern Git-origin identity/dependency resolution and same-inode filesystem checks; the local full suite is not green.

A live behavior-judge smoke test on a small locally executed trace returned met/unmet/unchecked verdicts. Replaying a deliberately truncated prefix of that real response preserved missing expectations as unchecked through grading, JSON and rendered HTML. This was not a full Harbor agent run.

Read-only compatibility check: #383 currently classifies a passed: null behavior step as error. Distinguishing explicit insufficient-evidence abstentions and deciding per-step expected-abstention labels need a follow-up there; this PR does not change the other implementation.

Release Impact

  • No user-visible release note needed
  • Updated CHANGELOG.md

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review: 4 findings (0 P1, 3 P2, 1 P3); 4 posted inline.

Checked the per-case diagnostics builder, the canonical 2 MiB budget against the HTML preview's ordering, --skip-baseline runs loaded through load_agent_data, the Dataset tab markup rendered in headless Chrome, and the behavior judge's expectations on the error and exception paths, comparing with origin/main wherever behaviour changed.
Tests run at the head: two focused sets covering tier3_expectations, the tier3 judge contract, semantics and parse tests, failure reasons, dashboard data and report data bounds, with 897 passed and 1264 passed, 0 failed.
Merges cleanly onto main. Against the other open PRs the only file conflicts are in CHANGELOG.md.
Overlap with #383: this PR lets the behavior judge return passed: null, but #383's grader_validation.observations() maps any non-bool step verdict to 'error', so abstentions count toward the unjudgeable rate and the --max-unjudgeable-rate gate instead of insufficient evidence, and #383's suite loader requires boolean behavior labels, so an expected abstention cannot be labelled.

Restore failure reasons after bounding diagnostics, isolate diagnostic list layout, retain behavior inventories on unexpected judge exceptions, and omit deliberately skipped arms.

Signed-off-by: Christopher Kevin <[email protected]>
@chrisknvidia

Copy link
Copy Markdown
Collaborator Author

Checked the #383 overlap read-only at its current head (3905176). Replaying a behavior result with one true and one null verdict through its observations() confirms the null step is classified as error. This PR keeps explicit abstentions as not_checked and preserves conservative scoring; it does not modify the qualification implementation in the other PR. That integration needs a follow-up in #383 to distinguish explicit insufficient-evidence abstentions from malformed/missing verdicts, and to decide how per-step expected abstentions are labelled. Boolean independent truth labels remain valid for known pass/fail outcomes.

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review: 0 findings (0 P1, 0 P2, 0 P3); 0 posted inline.

We rechecked our 4 comments at head 31cb2c8 and reviewed that commit.
All 4 are fixed (budget order, skipped baselines, diagnostics layout, behavior_check exception paths). We found no new defects.
At 31cb2c8, 1,856 focused tests pass across 19 judge, expectation, failure-reason, report, dashboard and Harbor collector files. ruff check is clean, and the branch merges cleanly into origin/main c3b298c.

Preserve both independent release notes while integrating current main.

Signed-off-by: Christopher Kevin <[email protected]>
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

Evaluation run

SkillEvaluator CI results

Required gate: Skipped

Only Tier 1 blocks CI; Tier 2 and Tier 3 are advisory.

Skill Tier 1: Static and Security Validation Tier 2: Deduplication Tier 3: Live Agent Evaluation Report
No skills evaluated SKIPPED · issues unknown · No selected skills changed; Tier 1 evaluation did not run. SKIPPED · issues unknown · No selected skills changed; evaluation did not run. SKIPPED · issues unknown · No selected skills changed; evaluation did not run. Report

Commit: 5300d568799c24bcd4a255b46eb8a9783542dc40 · Environment: docker

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review: 0 findings (0 P1, 0 P2, 0 P3); 0 posted inline.

Re-checked at 5300d56. The PR's own changes are identical to 31cb2c8, where all 4 of our comments were confirmed fixed with no new issues; since then the branch has only merged main, and it merges cleanly.
Approved from our side.

@rng1995
rng1995 merged commit d7f8db1 into main Nov 10, 2026
27 checks passed
@rng1995
rng1995 deleted the feat/christopherk/expectation-diagnostics branch November 10, 2026 03:26

This branch was previously deployed

1 inactive deployment
skillevaluator — 5300d568 Deployed Nov 9, 2026 by chrisknvidia via skills / paid-tiers (2) #34
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.

2 participants