Skip to content

Adversarial harness: record runtime provenance in every live record #154

Closed

Description

@vsn411

Problem: The fresh evaluation in #152 states its runtime (Ollama 0.40.16, model digest, 16,384-token context, sampling settings, cloud disabled) only in a hand-written docs/evaluations/2026-11-19/setup.json. No record carries those values and the harness doesn't capture them, so nothing ties them to the 32 runs. If a different quantisation or the excluded 4K-context setup had been used for some runs, the artifact, its hash and the tests would all still pass. The reproduction steps also stop short of how the two trial files became api.jsonl and how summary.md was produced.

Build:

  1. In scripts/adversarial_eval.py --live, record per run: the runtime name and version (for Ollama, GET /api/version), the model's full digest (/api/show), and the effective context length and sampling options the request used. For hosted APIs, record the model id the provider returned. Never record keys, hostnames other than loopback, or user paths (scrub_evidence applies).
  2. Add --combine trial-1.jsonl trial-2.jsonl -o api.jsonl and --summary options (or document the exact cat order and the --records ... > summary.md step), so setup.json's artifact_sha256 can be reproduced.
  3. Tests: a fake Ollama endpoint (local HTTP server) whose version and digest end up in the record; combining is order-stable.

Where to look: scripts/adversarial_eval.py, src/secfoo/report/evidence.py, tests/test_adversarial_eval.py, docs/ADVERSARIAL_EVAL.md.

Done when: a live record carries runtime version, model digest and request options; the published artifact can be rebuilt byte-for-byte from the documented steps.

Activity

  1. added
    enhancement
    good first issue
    help wanted
    hackathon
    difficulty: low
    on Nov 20, 2026
  2. added a commit that references this issue on Nov 20, 2026
    0b151aa
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

    difficulty: lowenhancementgood first issuehackathonhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions