TECHNOLOGY

garak JSONL reports: count completed attempts, responses and detector observations separately

In this article
THE QUICK TAKE

A report row, an attempt, a generated response and a detector observation are different counting units.

Classify entries before counting them

A growing JSONL file can contain setup information, attempts and aggregate evaluations. The reporting reference explains that entry types have different fields and roles. Counting lines does not establish how many model requests completed or how many responses were judged. First classify the records, then choose the unit matching the reported claim: scheduled inputs, completed attempts, target responses or detector decisions.

Follow attempt identity through its lifecycle

The Attempt implementation records identity, status, prompt, outputs and detector results. A lifecycle update is not automatically a new experimental input. Preserve attempt identity and inspect terminal state when reconciling a run. An interrupted process can leave started work without completed evaluation. Treat those cases as incomplete coverage rather than silently including them among fully assessed outcomes or discarding them without disclosing that the run did not finish.

Distinguish attempts from generated responses

An attempt can track multiple generation histories for a source prompt. That means counting unique attempts and counting outputs answer different questions. Preserve response alignment when joining detector results. A missing target response should not shift every later judgment onto the wrong generation. Inspect the installed data contract and retain unavailable entries where needed for alignment, instead of compacting arrays independently in ways that manufacture correspondence between unrelated observations.

Read aggregate rows in their own scope

The evaluator implementation produces summaries for probe and detector results. These are derived measurements, not additional target executions. A report can therefore contain several meaningful summaries over shared outputs. Keep the detector-specific population explicit when computing a pass rate. Combining summaries as though every row represented another independent response can inflate sample counts and make uncertainty or workload claims appear stronger than the actual executed evidence supports.

Reconcile an interrupted diagnostic run

Inspect a small benign report with multiple outputs and an intentionally incomplete attempt. Verify the expected counts at each level and the treatment of repeated lifecycle entries. The guides to detector score direction and missing measurement coverage provide related controls. Publish the counting rule with coverage results, preserving the distinction between work planned by the scanner, responses received from the target and judgments that actually contributed to the final reported metric.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles