Skip to content

Share trace evidence, applicable scores and security checks - #258

Merged
rng1995 merged 25 commits into
mainfrom
naren/shared-runtime-evidence
Oct 30, 2026
Merged

rng1995 merged 25 commits into
mainfrom
naren/shared-runtime-evidence

Conversation

@rng1995

@rng1995 rng1995 commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

Share host/staged trace evidence and make applicability, scoring and report status consistent. Reference-free judges and arms without a skill record N/A; comparisons use matching scored cases, declared score policies and compatible judges. Covers split-plan items 12–14 and stacks on #257. Expanded security/canary helpers remain private, with planting restricted to explicit preparation paths.

  • Preserve child observations, normalization, redaction, authoritative logical scores, advisory skips and distinctions between missing and inapplicable evidence.
  • Round-trip confirmed failure plus incomplete scanning through JSON, retained reports, CI and publication validation while retaining contradictory-evidence checks and scanner diagnostics.
  • Rebuild saved overall lift from evidence, reject tampered cached overall values, retain explicit unavailability markers, and preserve legacy and mixed-contract comparisons where evidence supports them.
  • Keep evidence redaction bounded while omitting credential spans cut at the input boundary.
  • Remove repeated scoring of logical attempts, eager reclassification of cached statuses and a duplicate findings scan. Regression tests verify the reduced call counts.

All ten inline review threads are addressed and resolved. Both merge conflicts and concurrent contributor changes were reconciled while preserving current main's report and chunking behavior. Native loading, lifecycle changes, new public options and later comparison features remain in their planned batches.

Validation:

  • Complete local suite: 18,059 passed, 29 skipped, one timeout-fixture failure under host load. Both descendant-containment cases passed on retry; the entire runner-status module then passed 100 tests with two Windows-only skips. The complete run itself was not entirely green.
  • Focused review coverage: 600 retained/publication checks, 462 status/advisory checks, 437 security/evidence checks, 38 producer/saved-run/legacy-lift checks, and 68 final merge checks passed.
  • Latest main integration: 194 judge, character-facts and applicability checks passed, including collector sidecar round-tripping for numeric dataset answers. Staging/runtime isolation checks passed in the broader integration run.
  • Full-repository Ruff, wheel/sdist build, installed base-only skill/basic-bundle validation and JSON output, deferred-option checks, and a 77-file secret scan passed. Actual Python 3.9 staged-verifier compatibility is covered by the full local suite.

Current-head CI results remain available in the checks tab.

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Independent review identified four evidence/status consistency gaps. I will address each with a focused regression before marking this draft ready.

@rng1995
rng1995 marked this pull request as ready for review October 29, 2026 22:18
@rng1995 rng1995 changed the title Share trace evidence, applicable scores and security checks (items 12–14) Share trace evidence, applicable scores and security checks Oct 30, 2026

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Re-review reproduced CI failures and found additional comparison, redaction and retained-report consistency issues. Each is being fixed with focused regressions while preserving the updated base.

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

The new cached-overall fallback needs one further correction; the integrated fix retains explicit unavailability markers while rebuilding scores from complete evidence.

Base automatically changed from naren/private-static-composition to main October 30, 2026 07:02
@rng1995
rng1995 merged commit b47d16c into main Oct 30, 2026
24 of 38 checks passed
@rng1995
rng1995 deleted the naren/shared-runtime-evidence branch October 30, 2026 07:48
chrisknvidia pushed a commit that referenced this pull request Oct 30, 2026
* Share runtime evidence and applicable-score semantics
* Format applicability producer regression fixtures
* Preserve failure and incomplete evidence across score reports
* Compose private inventory, audits and catalog checks
* Preserve scans for explicitly loaded skills and bytecode
* Preserve per-skill checks and complete private catalogs
* Preserve source file modes in private scanner views
* Distinguish unavailable scores from explicit applicability skips
* fix(audit): keep most severe vulnerability findings across aggregate cap
* fix(runtime): preserve report evidence and remove duplicate scoring work
* fix(audit): retain Python advisories and declared skill sources

Signed-off-by: Narendran Raghavan <[email protected]>
chrisknvidia added a commit that referenced this pull request Oct 30, 2026
* fix: keep JSON completeness contract, collector lift and null-safe status checks

Signed-off-by: Christopher Kevin <[email protected]>
Saibernard added a commit to Saibernard/SkillEvaluator that referenced this pull request Nov 4, 2026
Since NVIDIA#258 the no-skill baseline records skill_execution and
skill_efficiency as not applicable, so it has no Discoverability or
Efficiency baseline and the agent lift only covers the other three
dimensions. The publication check still wanted a baseline for all five
dimensions and compared the lift with the five-dimension score, so a
default run with a baseline that should have been PASS or NEUTRAL came
out INCOMPLETE in BENCHMARK.md.

A dimension can now go without a baseline only when the baseline recorded
all of its metrics as not applicable and the dimension carries no lift,
and the agent lift is checked over the dimensions both arms scored.
Anything else that's missing or doesn't add up still fails closed.

Signed-off-by: Saibernard Yogendran <[email protected]>
rng1995 added a commit that referenced this pull request Nov 5, 2026
…ction limit (#259)

* fix(tier3): report behavior evidence truncation against the complete rendering

Signed-off-by: xh123637 <[email protected]>

* fix(tier3): resolve #259 review comments and main conflicts

Rebuild the change on current main: since #258 the Harbor template
aliases build_metric_evidence_bundles to the shared atif_helpers
module, so the template copy of the fix is dropped and the verifier
gets it through the shared module. The CHANGELOG entry is kept
alongside main's entries and narrowed to the final-response cap.

Review follow-ups:
- A final answer cut by the final-response section limit is no longer
  flagged truncated when the complete answer still reaches the judge
  through the compact history repeat; when it is flagged for that
  reason alone, the reason names SKILL_EVAL_BEHAVIOR_FINAL_RESPONSE_LIMIT.
- Docs: the evidence-budget guidance in tier3-live-evaluation.mdx and
  the omitted-record description in reports.mdx now name both causes
  of a behavior_check truncation and which setting raises each.
- Two regression tests for the history-repeat cases.

Signed-off-by: xh123637 <[email protected]>

* fix(tier3): name each behavior evidence cut and accept split final answers

- The behavior_check omitted reason now names each setting that cut
  evidence. When the budget and the final-response limit both apply, it
  names SKILL_EVAL_BEHAVIOR_CHECK_BUDGET and
  SKILL_EVAL_BEHAVIOR_FINAL_RESPONSE_LIMIT instead of a generic reason.
- A final answer split between the compact history (its first 1,500
  characters) and the end kept by the final-response section counts as
  complete. Answers of 1,501 to 1,755 characters are no longer flagged
  at the default limit.
- Tests cover the 1,755-character boundary and every budget and limit
  combination. Docs and the CHANGELOG describe the new reason.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>

* fix(tier3): ignore whitespace at the split when checking final answers

The compact history drops trailing whitespace, so an answer whose 1,500th
character is whitespace reached the judge in full but was still flagged
at 1,755 characters. The split check now skips whitespace at the join,
and the split test covers a cut on a space and a cut on text.

Also scope the reports.mdx reason note to behavior_check, update a stale
code comment, and rewrap the edited CHANGELOG and docs lines.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>

---------

Signed-off-by: xh123637 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
Co-authored-by: Christopher Kevin <[email protected]>
Co-authored-by: Narendran Raghavan <[email protected]>
Co-authored-by: Narendran Raghavan <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
chrisknvidia added a commit that referenced this pull request Nov 11, 2026
…ion (#332)

* fix(reporting): let default Tier 3 runs with a baseline pass publication

Since #258 the no-skill baseline records skill_execution and
skill_efficiency as not applicable, so it has no Discoverability or
Efficiency baseline and the agent lift only covers the other three
dimensions. The publication check still wanted a baseline for all five
dimensions and compared the lift with the five-dimension score, so a
default run with a baseline that should have been PASS or NEUTRAL came
out INCOMPLETE in BENCHMARK.md.

A dimension can now go without a baseline only when the baseline recorded
all of its metrics as not applicable and the dimension carries no lift,
and the agent lift is checked over the dimensions both arms scored.
Anything else that's missing or doesn't add up still fails closed.

Signed-off-by: Saibernard Yogendran <[email protected]>

* fix(reporting): limit the baseline exemption to the two skill metrics

The publication check let a dimension go without a baseline whenever the
baseline recorded all of its metrics as not applicable. That list also has
accuracy, goal_accuracy and behavior_check, which are only not applicable
when a case has no reference to judge against, and that holds for both
arms. So a payload with accuracy marked that way in the baseline alone
passed, with Correctness left out of the lift.

Only skill_execution and skill_efficiency qualify now, the two a baseline
without the skill can't score. The check moves into a helper so the card
renderer can use the same rule.

Signed-off-by: Saibernard Yogendran <[email protected]>

* fix(reporting): say baseline N/A on dimensions a no-skill baseline can't score

A baseline that ran has no Discoverability or Efficiency score, because it
has no skill to discover or route to. The card printed those rows as
"baseline not run; uplift unavailable", which was only ever seen on cards
that could not pass. Now that such a card can pass, that text tells a
reader the comparison was skipped when it wasn't.

Those rows say "baseline N/A (no skill in the baseline arm)", from the
same rule the publication check uses. A baseline that really did not run
keeps the old text.

Signed-off-by: Saibernard Yogendran <[email protected]>

* fix(reporting): show the Overall row over the dimensions the baseline scored

The publication check accepts the lift as the with-skill score over the
dimensions the baseline scored, minus the baseline. The card's Overall row
still used the five-dimension with-skill score, so a card that now passes
printed 65.0% → 93.0% (+28.0 points) while the recorded lift was +26.7.

When the baseline recorded dimensions as not applicable and the lift is
that comparison, the Overall row shows the same two scores, 65.0% → 91.7%
(+26.7 points), and a note under the table says what it covers. In every
other case the row is unchanged.

Signed-off-by: Saibernard Yogendran <[email protected]>

---------

Signed-off-by: Saibernard Yogendran <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Co-authored-by: Christopher Kevin <[email protected]>
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