Skip to content

Feat/verify and decontaminate - #2

Merged
A1VARA5 merged 1 commit into
mainfrom
feat/verify-and-decontaminate
Jul 17, 2026
Merged

Feat/verify and decontaminate#2
A1VARA5 merged 1 commit into
mainfrom
feat/verify-and-decontaminate

Conversation

@A1VARA5

@A1VARA5 A1VARA5 commented Jul 17, 2026

Copy link
Copy Markdown
Owner

Pull request

What this changes
A short summary of the change and why.

Type

  • New tool or feature
  • Guide, template, or docs
  • Bug fix
  • Cleanup or refactor

Checklist

  • I tested this, or explained why I could not.
  • Only verified, correct information. Anything illustrative is marked as such.
  • No secrets or API keys committed.
  • Writing reads like a person wrote it. No em dashes, no hyphens joining words in prose.
  • I kept the change focused.

Anything reviewers should know
Context, open questions, or follow ups.

Fix correctness bugs found while auditing the SDK-facing commands:

- decontaminate: a benchmark prompt shorter than the n-gram size that
  appeared verbatim inside a longer training row was silently not
  flagged. Index short benchmark texts at their own length and match
  same-size windows so embedded contamination is caught.
- verify --kind math: whole-number answers now require exact equality;
  the relative tolerance accepted off-by-one errors once the answer
  magnitude reached ~1e6.
- verify --kind code: read the pass tally from a unique sentinel and the
  last match so a candidate can't spoof its own result; drop empty test
  entries instead of counting them as passes.
- decontaminate: an n-gram size below 1 now fails instead of flagging and
  deleting every row.

Security: verify --kind code runs dataset code in a subprocess, which is
not a sandbox. Correct the misleading docstring and print a warning
before running so it is not treated as safe on untrusted data.

Tests: add coverage for run.py, cli.py, and publish.py via the client=
injection hooks (no network or real SDK), plus a regression test for each
fix above. Suite goes from 35 to 80 passing, ruff clean.

Cut v0.2.0: move doctor/suggest out of "in progress" (both are shipped
and tested), bump the package version, fix the [notebooks] -> [all]
extra, refresh the MAP command table, and correct the quickstart Python
version and pip name.

Remove the no-op _tri() wrapper.
@A1VARA5
A1VARA5 force-pushed the feat/verify-and-decontaminate branch from a480f18 to afb472b Compare July 17, 2026 18:12
@A1VARA5
A1VARA5 merged commit 878748d into main Jul 17, 2026
3 checks passed
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.

1 participant