Skip to content

[BUG]: Generated BENCHMARK.md does not faithfully explain a passing gate and splits canonical case IDs #192

Closed

Description

@holgerroth

What happened?

SkillEvaluator 1.5.6 generated a signed BENCHMARK.md for
nvflare-convert-huggingface after the authoritative NVSkills content gate
passed the unchanged skill. The report declares an overall PASS, but it does not
display evidence or methodology that explains that successful decision. It also
splits two canonical evaluation IDs into phantom coverage rows.

Public evidence:

The rendered evidence does not explain the passing gate

The generated report says Overall verdict: PASS — Recommended for publication. However:

  • Claude Code has no available dimension scores.
  • Codex Security is displayed as 23.8%, below the report's 40% FAIL boundary.
  • The methodology says PASS requires every configured dimension to pass for at
    least one supported agent.
  • The methodology also says overall lift is diagnostic and does not override
    that gate.

Relevant sections:

This report should faithfully represent the authoritative gate decision and its
supporting evidence. This issue does not assume that the skill should fail.

Long evaluation IDs are split into phantom coverage rows

The dataset contains 21 canonical evaluation cases, but the Claude Code token
table renders 23 case rows because two IDs are split:

  • huggingface-factory-peft-sft-loc
  • huggingface-factory-peft-sft-local-return
  • huggingface-global-negative-serv
  • huggingface-global-negative-serving

The two shortened IDs do not exist in evals/evals.json. The truncated rows
report base 0/1, while the corresponding canonical rows report base 0/0.
Missing baseline telemetry is therefore attributed to nonexistent cases rather
than to the canonical cases.

Relevant table:

https://github.com/NVIDIA/NVFlare/blob/75ef8570b0c70681793eaf69ead869fec95fb205/skills/nvflare-convert-huggingface/BENCHMARK.md#L53-L101

Expected behavior

For the same source skill and evaluation bytes:

  • If PASS is the correct gate result, the report should display the evidence
    and actual policy that support PASS.
  • If agent scores are missing because of report parsing or aggregation, those
    scores should be restored in the generated report.
  • Stale or inaccurate methodology text should not contradict the implemented
    gate.
  • Coverage rows should use each canonical dataset ID exactly once.
  • Missing telemetry should remain associated with its canonical case.
  • Regression tests should cover long case IDs and partial or unavailable agent
    scores.

Impact

BENCHMARK.md and skill.oms.sig are generated and signed artifacts. The
downstream repository cannot correct the report manually without invalidating
its provenance. The inconsistencies are blocking NVIDIA/NVFlare#5303 until a
self-consistent report can be regenerated.

Non-goals

  • Do not special-case NVFlare.
  • Do not require changes to the source SKILL.md, evaluation dataset, scripts,
    or references as a reporting workaround.
  • Do not manually modify the signed generated artifacts.

Reproduction steps

  1. Check out the public generated commit:

    git clone https://github.com/NVIDIA/NVFlare.git
    cd NVFlare
    git checkout 75ef8570b0c70681793eaf69ead869fec95fb205
  2. Confirm the dataset contains 21 canonical cases:

    jq '.evals | length' skills/nvflare-convert-huggingface/evals/evals.json
    jq -r '.evals[].id' skills/nvflare-convert-huggingface/evals/evals.json
  3. Inspect the verdict, dimension scores, and documented gate:

    rg -n 'Overall verdict|Security|Overall verdict: PASS only' \
      skills/nvflare-convert-huggingface/BENCHMARK.md
  4. Inspect the split token-coverage rows:

    rg -n 'huggingface-factory-peft-sft-loc|huggingface-global-negative-serv' \
      skills/nvflare-convert-huggingface/BENCHMARK.md
  5. Observe that the visible evidence and methodology do not explain the passing
    gate, and that two canonical case IDs are each split into a truncated and a
    full row.

SkillEvaluator version or commit

1.5.6

Environment

  • Reported execution environment: k8s-sandbox
  • Claude Code: aws/anthropic/bedrock-claude-opus-4-8
  • Codex: openai/openai/gpt-5.5
  • Attempts per task: 1
  • Python and operating-system versions are not recorded in the published
    benchmark.

Before submitting

  • I agree to follow this project's Code of Conduct.
  • I searched the open issues and found no apparent duplicate of this report.

Activity

  1. rng1995 commented on Oct 16, 2026

    @rng1995
    Collaborator

    Thanks for the detailed report. I traced it through the CI evidence for 75ef8570. All three issues are real, and none comes from the skill or its dataset. This report was produced by SkillEvaluator 1.5.6, a different release line from this repo's main, which is why #204 couldn't reproduce it.

    • PASS: 1.5.6 gated Tier 3 on overall lift only. Codex had a +18.7-point lift, above the +5 bar, so dimension scores were never checked. The report then printed the per-dimension rule instead. Under that intended rule this run fails on Codex Security. The gate is fixed in 1.6.0. The report still needs to show the evidence that actually decided the verdict.
    • Claude Code "Not available": this isn't a parsing bug. Claude's baseline arm was killed by the evaluator's 3600 s deadline, so Claude was excluded as an optional agent and its scores were blanked without a reason. 1.7.1 now shows "Excluded — ". For reference, Claude's with-skill scores pass every dimension.
    • Phantom rows: the two killed trials took their case IDs from Harbor's 32-character trial names. Fixed in 1.6.0. Validating token rows against dataset IDs is still open.
    • Security 23.8%: mostly scanner false positives. Cleanup like rm -rf output/.../sim_workspace is scored as destructive, and license headers containing http:// are scored as exfiltration. No secrets, sensitive paths or uploads were found. No skill change is needed.

    Plan: fix the Security false positives, move NVSkills CI to a current release, then re-run and regenerate BENCHMARK.md and skill.oms.sig.

  2. rng1995 commented on Nov 14, 2026

    @rng1995
    Collaborator

    Status update: the code side of this report is now complete on main. Keeping the issue open for the one remaining item, which is operational.

    All four items from the triage above are now addressed in code:

    Item Where
    Tier 3 gated on overall lift only fixed in 1.6.0
    Claude Code blanked with no reason Excluded — <reason>, 1.7.1
    Phantom coverage rows from truncated case IDs #507
    Security 23.8% from scanner false positives #507
    The report did not show the evidence that decided the verdict #524

    On the last one. BENCHMARK.md now renders a ### Why This Verdict block directly beneath the banner. For the shape you reported — one agent with no dimension scores, another below the FAIL boundary, verdict still PASS — it reads:

    ### Why This Verdict
    
    - Decision: **PASS** — every publication-required tier passed and the Tier 3 dimension gate passed.
    - Tier 3 evidence: **PASS** (publication-complete; required for publication). Dimension gate: an agent
      passes when every dimension is at or above 50% and fails when any dimension is below 40%.
    
    | Agent | Dimension gate | Evidence the gate read |
    |---|---|---|
    | Claude Code | not counted | no complete dimension set was recorded, so the gate read nothing from this agent |
    | Codex | fail | Security 23.8% below the 40% FAIL boundary |
    | Gemini Cli | pass | every dimension at or above the 50% PASS boundary (lowest: Security 90.0%) |
    
    A failing agent does not overturn this gate: it asks whether any one supported agent passed every
    dimension, and one did.
    

    An agent held out for a reason now renders that reason inline, e.g. … (baseline unavailable (0 of 24 attempts scored)) — which is the information whose absence made the original report unreadable.

    The explanation is derived from the same computation that produces the verdict rather than a parallel one, so it cannot drift: the per-agent table comes from a breakdown that the verdict function is now a pure fold of, and the refactor was checked differentially against the previous implementation over 40,000 randomized payloads with zero mismatches. No verdict changes.

    What this issue still needs, and why it stays open: re-running NVSkills CI on a current release and regenerating BENCHMARK.md and skill.oms.sig for nvflare-convert-huggingface. Since those are signed generated artifacts, the fixes above only reach the published report once it is regenerated — which is also what unblocks NVIDIA/NVFlare#5303.

    One detail worth recording: the two-agent run exactly as published cannot be a PASS under the current gate. With Codex at Security 23.8% the gate returns fail, and an agent whose arm died carries an execution error that makes the evidence not publication-complete, giving INCOMPLETE. The PASS shape needs a third agent passing every dimension, because the rule really is "any one supported agent passes every dimension". The regenerated report should therefore be expected to look different from the one above, not merely better explained.

  3. rng1995 commented on Nov 14, 2026

    @rng1995
    Collaborator

    Correction to my previous comment: it says the issue is being kept open, which was written before I saw that it had already been closed on the merge of #524. Closed is the right state — every code item in this repository is done, and the remaining work is NVSkills CI regenerating BENCHMARK.md and skill.oms.sig, which does not live here.

    One expectation worth setting for that regeneration, since it is easy to misread: the run as originally published cannot come back as a better-explained PASS. Under the gate as it now stands, Codex at Security 23.8% makes the dimension gate return fail, and an agent whose arm hit the execution deadline carries an error that makes the evidence not publication-complete. The regenerated report should be expected to read INCOMPLETE or FAIL rather than PASS — the original PASS was itself the defect, not the explanation of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions