﻿# garak buffs: preserve transformed-attempt lineage and an explicit baseline

Interpret garak transformed prompts through source-attempt metadata, copied sequence values and baseline selection, separating expanded coverage from independent user-query evidence.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-garak-buff-derived-attempt-lineage-baseline-coverage/
Language: en

## Define what the transformation tests

Generating several forms of an input can reveal sensitivity to presentation, but it does not create an independent sample of user demand. The inspected garak [buff implementation](https://github.com/NVIDIA/garak/blob/main/garak/buffs/base.py) derives attempts and allows transformations to produce multiple results. State the intended variation before comparing scores. A benign change in capitalization can preserve a task, while another transformation may alter meaning or expected output, requiring a different interpretation of the resulting detector verdict.

## Retain the recorded source relationship

The base implementation records transformation creator and source-attempt information in notes. Preserve these fields when exporting or summarizing results. Inspect the actual chain for composed transformations rather than assuming one field always points directly to the original seed. Source sequence values can be copied into derived attempts, so they are not a universal unique key. Use the appropriate attempt identity and retained provenance when grouping variants or reconciling the expanded test population.

## Keep generated histories aligned

The [Attempt contract](https://github.com/NVIDIA/garak/blob/main/garak/attempt.py) associates a prompt with outputs and detector results. Preserve that relationship for every derived input. Combining all variants under a source label can be useful, but the aggregation must say whether it measures average performance, any observed failure or another declared criterion. These summaries answer different questions. Additional closely related variants increase exploration of one case without automatically increasing the number of independent semantic tasks.

## Verify that the baseline was included

The inspected buff pipeline does not automatically include the untransformed input as one of its emitted variants. Confirm the actual run selection before claiming a before-and-after comparison. The [probe implementation](https://github.com/NVIDIA/garak/blob/main/garak/probes/base.py) also contains post-transformation handling for integrations that require it. Inspect which representation reaches the detector when an output transformation is involved, instead of assuming the displayed input and judged text always use the same representation or language.

## Review a small derived family

Use a harmless seed with a simple presentation variation, retaining the baseline and each derived attempt. Inspect identities, source notes, output alignment and the selected aggregation rule. The guides to [JSONL counting units](/journal/fg2-garak-jsonl-attempt-status-generation-denominators/) and [synthetic test selection](/journal/fg2-ragas-testset-graph-transform-scenario-distribution/) provide related controls. Accept the report when a reader can trace every variant to its intended source and understand which claim the family supports, preserving the difference between broader test exploration and a representative estimate of unrelated real-world requests.
