Skip to content

fix(reporting): sanitize public benchmark metadata - #22

Merged
chrisknvidia merged 9 commits into
mainfrom
naren/benchmark-publication-sanitization
Jul 31, 2026
Merged

chrisknvidia merged 9 commits into
mainfrom
naren/benchmark-publication-sanitization

Conversation

@rng1995

@rng1995 rng1995 commented Jul 26, 2026

Copy link
Copy Markdown
Collaborator

Summary

Makes generated BENCHMARK.md cards publication-safe when they consume imported or historical evaluation metadata.

Source

  • Public adaptation of internal 0d25897 from the 0.8.3 line (ed7ae8e8396ec0788135741192e6d75e4ba23724).
  • Based directly on current public main (fb54805d8dd17bb5ad23c151b9ea40fd5922b994).

Changes

  • Omits validation-profile metadata from publication cards.
  • Redacts absolute POSIX and Windows host paths to basename plus line number.
  • Normalizes retired product-shaped labels to Skill Evaluator.
  • Preserves known public Tier 3 environment names and generalizes unknown imported environments to Isolated sandbox.
  • Keeps the report filename visible even when a long absolute artifact path wraps.

Public adaptations and exclusions

  • Uses the public environment allowlist; no private environment name appears in source or tests.
  • Adds no internal branding map, endpoint, upload, provider, credential, or service integration.
  • Does not affect JSON/HTML evidence or raw retained artifacts.

Validation

  • Complete exact-lockfile suite: 2915 passed, 8 skipped, 3 deselected.
  • Focused publication/golden/path tests: passed.
  • Ruff, git diff --check, packaging, and OSS-boundary checks: passed.

Risk

  • Sanitization is limited to publication output.
  • Relative paths and known public environment identifiers remain intact.

This PR is intentionally not merged.

@rng1995
rng1995 marked this pull request as ready for review July 27, 2026 21:28
@chrisknvidia
chrisknvidia force-pushed the naren/benchmark-publication-sanitization branch from 902ef2f to da1b683 Compare July 31, 2026 16:15
@chrisknvidia
chrisknvidia merged commit 06aef85 into main Jul 31, 2026
11 checks passed
chrisknvidia pushed a commit that referenced this pull request Aug 1, 2026
* fix(reporting): sanitize public benchmark metadata

Signed-off-by: Narendran Raghavan <[email protected]>

* fix(reporting): close publication sanitizer edge cases

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

* fix(reporting): sanitize untrusted benchmark fields

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

* fix(reporting): escape adversarial benchmark metadata

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

* fix(reporting): redact file URI authorities

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

* fix(reporting): neutralize block markdown labels

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

* fix(reporting): redact embedded private labels

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

* fix(reporting): sanitize block prefixes centrally

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

* fix(reporting): escape exact block markers

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

---------

Signed-off-by: Narendran Raghavan <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
chrisknvidia pushed a commit that referenced this pull request Aug 1, 2026
Includes the public benchmark metadata sanitization (#22), Tier 1 validation and CLI hardening (#18), and structured Tier 3 dataset generation outcomes (#21).

Signed-off-by: Narendran Raghavan <[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