TECHNOLOGY

garak configuration: preserve resolved plugin settings, not just the run file

In this article
THE QUICK TAKE

The run file is one input to configuration resolution, not a complete record of the instantiated scanner.

Identify every configuration input

The same run file can behave differently on machines with different site settings or installed plugin defaults. The inspected garak configuration loader assembles core, site and run inputs. Preserve that environment when comparing scans. A copied command and a matching configuration filename do not establish that the instantiated generator, probes and detectors received the same effective parameters or even selected the same set of checks.

Inspect namespace and class settings

The plugin configuration implementation applies namespaced settings and more specific class configuration, then fills missing values from relevant defaults. It also accounts for constructor-provided values rather than treating every file entry as an unconditional override. Inspect the installed plugin’s realized settings. A parameter placed under the wrong namespace can leave the intended behavior unchanged while the scan still starts and produces a plausible report.

Preserve command-line realization

The CLI implementation adds another layer of supplied options and selection handling. Record the effective selected plugin identities and options instead of assuming the file alone describes the experiment. Pay attention to skipped or unknown selections and configuration warnings. If a scan silently excludes a plugin the author expected, its pass rate describes a different test population, not simply a different execution of the original intended workload.

Version defaults with the software

A plugin can change its default generation length, decoding behavior, detector rule or supported parameter set between releases. Preserve package revision and nonsecret realized values with the result. This matters even when the application under test is unchanged. A different truncation setting can alter the text available to the detector, while a changed threshold alters classification of the same text. Keep both kinds of change distinguishable from a genuine improvement in the evaluated model.

Compare configurations before comparing outcomes

Use a benign diagnostic setup with a deliberately overridden value and inspect where the effective value came from. Repeat with a class-specific setting to verify the expected scope. The guides to detector threshold meaning and test artifact replay provide related controls. Accept a comparison when target identity, selected checks and realized settings are reviewable together, preserving the distinction between repeating a configuration artifact and reproducing the actual measurement it was intended to describe.

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