Skip to content

feat: allow suppressing sample ID previews - #12

Merged
seva9523 merged 1 commit into
seva9523:mainfrom
uuzzrm:codex/no-id-preview
Aug 10, 2026
Merged

seva9523 merged 1 commit into
seva9523:mainfrom
uuzzrm:codex/no-id-preview

Conversation

@uuzzrm

@uuzzrm uuzzrm commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Problem

Manifests include compact previews from the configured sample ID field. Those values can expose customer, document, case, or benchmark identifiers even though the manifest otherwise avoids raw sample records.

Change

Add --no-id-preview to both built-in snapshot commands:

  • evalrepro snapshot jsonl ... --no-id-preview
  • evalrepro snapshot inspect ... --no-id-preview

The option emits an empty preview while leaving IDs in the normalised samples, ordered/unordered sample digests, and field digests. The default remains unchanged.

Evidence

  • Added manifest-level coverage proving preview suppression does not alter sample or field digests.
  • Added JSONL CLI coverage for the opt-out and default behaviour.
  • Updated README and docs/privacy.md.
  • ruff format --check .
  • ruff check .
  • mypy src/evalrepro
  • pytest --cov=evalrepro — 54 passed, 96.22% total coverage
  • No confidential or raw evaluation data included.

AI-assisted development

I used a coding agent to help implement and test this change. I reviewed the diff and ran the full project formatting, lint, type-check, and offline test suite locally.

@uuzzrm
uuzzrm requested a review from seva9523 as a code owner August 10, 2026 01:32

Copy link
Copy Markdown
Owner

Thanks @uuzzrm — this is well aligned with #5, and the first static review confirms the change keeps ID-preview suppression presentation-only while retaining IDs in the semantic sample hashes. I’m holding the final review until the repository’s hosted Python 3.11–3.13 CI is approved and runs for this first-time contributor branch. After that, I’ll verify the matrix and complete the maintainer review.

@seva9523 seva9523 added the enhancement New feature or request label Aug 10, 2026 — with ChatGPT Codex Connector

@seva9523 seva9523 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Reviewed the implementation and hosted CI evidence. The privacy opt-out changes presentation only, preserves semantic digests and default behaviour, includes focused tests and documentation, and passes the Python 3.11–3.13 quality matrix.

@seva9523
seva9523 merged commit 9107c10 into seva9523:main Aug 10, 2026
3 checks passed

Copy link
Copy Markdown
Owner

Thanks @uuzzrm — this has been reviewed and squash-merged as 9107c104. The hosted Python 3.11–3.13 matrix passed, including Ruff, strict mypy, 54 tests, 96.22% coverage, and the package build. This is EvalRepro’s first accepted external code contribution.

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants