Repository navigation
Adversarial harness: record runtime provenance in every live record - #155
Conversation
…--summary Live API records against Ollama now carry runtime version, full model digest, model default options and loaded context length (probed before and after each case, loopback only). API records also store the provider-returned model id and the request option names. --combine concatenates trial artifacts byte-for-byte in order and --summary writes the replay summary to a new file, so the published artifact and summary can be rebuilt from documented steps. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
- Probe loopback directly: ignore proxy settings from the environment and refuse redirects, so no other host sees or answers the probe. - Match untagged model names against Ollama's ':latest' listing. - Record (not raise) truncated or non-object responses, and record a failed post-run probe as probe_error_after. - Keep repeated Modelfile parameters (stop) as a list; never write NaN/Infinity into the JSONL. - Skip a missing provider model id instead of recording the string 'None'. - --summary refuses an existing file with a usage error, not a traceback. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Thanks @RiccardoBifulco, and welcome! This is a well-built first contribution. Every item in #154 is covered. The fake loopback Ollama server is the right way to test this, and the test that rebuilds the published In review I found a few robustness gaps in the probe. Rather than send you round another iteration, I pushed fixes to your branch, each with a regression test that fails without the fix:
Docs updated to match. Full suite passes locally (1821 passed). Merging once CI is green. Thanks again! |
Leaderboard update
RiccardoBifulco now has 3 points (rank #9). 22 more to reach Bronze. |
Fixes #154
Why
The #152 evaluation's runtime (Ollama version, model digest, context, sampling) lived only in a hand-written
setup.json; nothing tied it to the 32 runs, and the steps from trial files toapi.jsonl/summary.mdwere not reproducible via the tool.What
--live: each record getsruntime_provenancefor Ollama (/api/version, model digest from/api/showwith/api/tagsfallback, Modelfile default options, loaded context length from/api/ps), probed before and after each case so a mid-run change shows as a mismatch. API records also carryresponse_models(model id the provider returned) andrequest_options. Only loopback is probed and recorded asloopback;scrub_evidencestill applies; probe failures are recorded asprobe_error.--combine a.jsonl b.jsonl -o out.jsonl: order-preserving byte-for-byte concatenation (no overwrite).--records X --summary summary.mdwrites the summary to a new file.ADVERSARIAL_EVAL.md, 2026-11-19 README). The published records are untouched; they predate this.Tests
Fake loopback Ollama server (version/digest/context end up in the record, including through
live_records), non-loopback refusal, order-stable combine, and a CLI test rebuilding the publishedapi.jsonlandsummary.mdbyte-for-byte from split trials.pyteston the adversarial/evidence tests: 102 passed. Full suite: failures intests/test_sensor(also failing on main) and a fewtests/test_webdiagram tests unrelated to this change. Ruff reports no new findings in touched files.