Upgrading garak from 0.13 to 0.14

garak 0.14 changes the eval and digest entry formats, redesigns the HTML report, updates JSON configs and removes the AutoDAN generation option. This page covers what breaks for report pipelines and how to upgrade without losing comparability.

On this page

Upgrading garak from 0.13 to 0.14: why report pipelines break first

The fastest way to break a garak 0.13 setup is to upgrade the scanner and leave the reports alone. If your team runs scheduled scans and feeds the JSONL and HTML output into dashboards or an evidence folder, most of the upgrade risk sits in the software that reads those files and compares one run with the next, while the scan command itself is the lower-risk part. Before you change anything, read the 0.14 release notes on the garak releases page and confirm the supported upgrade path from 0.13 for your installation method. garak is installed from PyPI with pip, and the PyPI package requires Python 3.11 or newer, so check the interpreter on every scan host and in every CI or build image before you upgrade.

The 0.14 changes that matter most to you are the ones that alter what the output looks like. The release reworks the eval and digest entry formats, redesigns the HTML reports, changes JSON configs, and removes the AutoDAN generation option. Parsers keyed to specific field names or entry shapes will fail loudly, and HTML scrapers may fail on layout changes. Comparisons fail more quietly: a 0.13 baseline and a 0.14 run can differ in structure, so a diff script may report no matches or flag changes that are only format changes. Scan configs that reference AutoDAN will stop working as expected, so search your repositories for it before the first scheduled run on the new version.

Plan the upgrade as a pipeline change, not only a tool change. Inventory every consumer of garak output and list the fields each one reads. Keep the 0.13 reports as a frozen baseline, run 0.14 against a copy of your schedule in a non-production environment, and record the garak version in every report so that trend charts can show where the format changed. Ask your team to confirm entry field definitions against the garak user guide before writing new parsers, and do not treat a single clean run as proof that every downstream report still reads correctly.

What changed in garak 0.14 and what each change means for your pipeline

This table maps each garak 0.14 change to what it can break in a report pipeline and the step to take before upgrading. It does not list exact field names or option syntax, so confirm those in the 0.14 release notes and against a sample report from each version. The main takeaway is that a pipeline fix is complete only when a 0.14 report passes through every downstream step.

ChangeImpactAction needed
New eval and digest entry formatsParsers that read eval or digest entries by field name or position may fail or silently skip recordsCompare a 0.13 and a 0.14 report line by line, then update parsers before the first 0.14 run
Redesigned HTML reportsScrapers, saved links and anything that depends on section order or markup may breakStop parsing HTML; read the structured output and keep HTML only for human review
JSON config changesExisting config files may be read differently, so scan settings may not apply as beforeCheck each config against the 0.14 release notes and confirm the effective settings in the run log
Removed AutoDAN generation optionConfigs or CI jobs that select AutoDAN generation will fail or fall back to other behaviorSearch configs and scripts for AutoDAN and replace it with a supported option documented in 0.14
Score comparability across versionsResults from the same probes may shift after the upgrade, which can break trend charts and alert thresholdsRun 0.13 and 0.14 on the same target, label the baseline, and note the version in every report

Which parsers break when eval and digest entries change

Any parser that reads garak output by field name or by record position is at risk when the 0.14 eval and digest entries change, and the failure is usually silent. A JSONL reader that indexes a fixed key, assumes a particular record order, or expects every line to be the same entry type may keep running and return empty, zero or shifted values. Treat the 0.14 change as a schema change until your own tests prove otherwise. Check how your pipeline selects entries, whether it counts lines, and whether a missing key falls back to a default that looks like a clean result.

HTML scrapers carry a different risk. A redesigned report layout moves the elements a scraper targets, so a selector can match nothing or match a different table. If your dashboards ingest the HTML digest rather than the JSONL report, plan to move that ingestion onto the machine-readable output, or confirm with the release notes and your own sample reports which elements are stable before you rely on them. Do not assume that a page that renders correctly in a browser can still be parsed by the same selectors.

A diff against a 0.13 baseline can also mislead. Differences in entry structure, ordering, or summary fields can appear as score changes even when the underlying probe results are identical, and the reverse can hide a real change. Before changing production code, build a schema check that runs against sample 0.13 and 0.14 output from the same target and probe set, and confirm that both versions parse to the same counts and fields. Keep those samples under version control so the check can be rerun during future upgrades.

What to back up and inventory before changing garak

Before installing garak 0.14, capture everything the 0.13 pipeline depends on: past results, configuration, custom code and a working baseline. Each card below protects one part of that chain, so a failed upgrade can be rolled back and a before-and-after comparison stays meaningful.

Archive past reports and logs

Copy every JSONL report and the garak.log file into a dated archive before the first 0.14 run. The JSONL report records each attempt and its evaluation, and garak continues garak.log across runs, so a new install writing to the same directory can mix old and new entries. Confirm that the archive includes the report directory your parsers read and that checksums match after the copy.

garak README

Export HTML digests

Save the HTML digest for each reference run as a static file, since the 0.14 release redesigned the HTML report layout. Anyone who reviews past results in a browser or links to them from tickets will still be able to open the 0.13 view. Store the digests next to the JSONL archive so each summary can be traced to its raw data.

Inventory configs and generator YAML

List every garak config file, command-line invocation and REST generator YAML that your scans use, and record which ones set probes, generations, system prompts or buffs. The 0.14 release changed JSON config handling, so these files are the first place a parser or scan job can break. Keep a copy of each file in version control so the 0.13 settings can be reproduced exactly.

List custom code and AutoDAN references

Identify every custom probe, detector or generator your team wrote, and search pipelines, scripts and configs for references to the AutoDAN generation option, which 0.14 removed. Each hit needs a replacement or a documented reason to drop it from the scan plan. Ask the owners of custom plugins whether they depend on any undocumented 0.13 behavior before the upgrade window opens.

Pin the 0.13 install

Keep the working 0.13 install in its own virtual environment, and record its exact version and Python interpreter. Build the 0.14 install in a second environment, so either can be restored by switching the path that jobs call. Garak is installed from PyPI and the package requires Python 3.11 or newer, so confirm the interpreter in both environments before comparing results.

garak on PyPI

Set up a staging endpoint

Choose a staging copy of the target model or application and run a repeat scan with 0.13 there first. Comparing 0.13 and 0.14 against the same endpoint shows whether score changes come from the tool or from the target. Ask the endpoint owner to freeze the model version and system prompt for the test window, and note any rate limits that could change attempt counts.

Upgrade sequence for garak 0.13 to 0.14 with checks and rollback points

This sequence moves an existing garak 0.13 setup to 0.14 without changing production results first. Each step names a check that must pass and a rollback point, so report pipelines, scheduled jobs and score comparisons can be validated before the old environment is retired.

  1. Freeze the 0.13 baseline and archive outputs

    The platform or security engineer records the installed version with pip show garak and copies the config files, every JSONL report, the HTML digests, the garak.log file and the environment's package list into read-only storage. Confirm that the record count in each archived JSONL file matches the original. The archive becomes the rollback source, and nothing downstream changes at this stage.

  2. Install 0.14 in a separate environment

    Create a new virtual environment on Python 3.11 or newer, then install the 0.14 release from PyPI with pip. Keep the 0.13 environment untouched. The check is that garak --version reports 0.14 in the new environment and still reports 0.13 in the old one. If the install fails, delete the new environment and continue running 0.13 without any change.

  3. Find and replace the AutoDAN option

    Search every config file, wrapper script and CI definition for references to the AutoDAN generation option, which 0.14 removes. Replace each reference with the generator or probe your team chooses, based on the 0.14 user guide and your target's needs. The check is that the search returns no hits and that a dry run loads each updated config without error. Original files remain in the archive for reversion.

  4. Run a reference scan on both versions

    Point both the 0.13 and 0.14 environments at the same target, using the same small probe set, the same config and the same generation count. The default is 5 generations per prompt unless your config overrides it. The check is that both runs complete and that probe names, attempt counts and FAIL markers can be lined up. Record every difference. If 0.14 cannot complete the reference scan, stop here and keep production on 0.13.

  5. Diff record schemas and update parsers

    Compare the JSONL keys from the two reference runs field by field, including the evaluation and digest entries that changed in 0.14. Confirm whether each record or header carries the garak version. If not, tag runs in your pipeline with the installed version. Update the parser to accept new fields and tolerate removed ones. The check is that the parser handles the archived 0.13 files and the new 0.14 output with no errors.

  6. Check HTML digest output in the report consumer

    Open the redesigned 0.14 HTML digest in every tool or workflow that reads it, such as internal viewers, link checkers or scripts that extract values from page markup. Flag any extraction that depends on element structure or class names. The check is that each consumer displays the digest correctly and that extracted values match the JSONL totals for the same run. Keep the 0.13 digest path available until this passes.

  7. Cut over scheduled jobs to 0.14

    Update cron entries or CI jobs to call the 0.14 environment and write to a separate output path, so 0.13 results are never overwritten. Run the old and new jobs side by side for as many scheduled cycles as your comparison needs. The check is that each new run lands in the new path, the parser ingests it without error and alerts fire on the same conditions as before. To roll back, repoint the job to the 0.13 environment.

  8. Keep 0.13 until comparisons are validated

    Retain the 0.13 environment, the archive and the original job definitions until score movement across the overlap period is explained. Use the scoring guidance for separating tool changes from real model changes to review each difference. The check is a written sign-off from the named owner of the pipeline and the compliance reviewer, if your evidence depends on these scans. Only after that sign-off should the old environment be retired.

How to split the upgrade across staging, CI and production scans

A workstation is where most people first run garak, so the goal here is to learn what the 0.14 output looks like before anything depends on it. Install 0.14 into a separate virtual environment so the 0.13 install stays available for side-by-side comparison. Confirm your interpreter is Python 3.11 or newer, the minimum the PyPI package requires.

  • Test first: run one small probe set against a model you already scanned on 0.13, then compare the JSONL entries field by field with the parser you use today.
  • Freeze: record the exact garak version, the generator YAML and the probe selection in a file committed next to your notes.
  • Check the HTML digest: open the redesigned report and confirm that any screenshot or link you share still makes sense to readers.
  • Read garak.log: the log continues across runs, so review the entries for the new run before you delete or rotate anything.
  • Roll back: keep the 0.13 environment in place and point your shell alias back to it if the parser fails.

Check that your parser reads one complete 0.14 report from start to finish before you move the same configs to the other environments.

What makes a garak 0.14 upgrade take longer

This table lists the factors that expand or shrink the work of moving from garak 0.13 to 0.14, and how to measure each one in your own environment. Read each row against your current pipeline: the more rows that apply to you, the more time the upgrade should be scoped for.

DriverEffect on effortHow to check
Number of downstream report consumersEach consumer that reads JSONL or HTML output needs its own test and sign-off, so effort grows with the countList every dashboard, ticket hook, GRC tool and script that reads garak output
Custom parsers keyed to 0.13 fieldsParsers that match old field names or entry shapes must be rewritten and rechecked against 0.14 outputSearch your parser code for the field names used in 0.13 reports and diff a sample from each version
Use of AutoDAN in configsConfigs that call the removed AutoDAN generation option fail or need a replacement choice before any scan runsGrep your config files and scheduled job definitions for AutoDAN references
Custom probes and generatorsPlugins written against 0.13 interfaces may need changes and retesting before they produce comparable resultsRun each custom plugin against a stub target on a 0.14 test install and review errors
Volume of archived reports needing reprocessingHistorical reports that must be re-parsed or converted to the new layout add batch work and storage checksCount archived run directories by version and decide which ones must stay queryable
HTML report use in stakeholder evidenceRedesigned HTML pages may change what reviewers see, so the evidence pack needs regenerating and re-approvalIdentify which HTML digests were attached to past reviews or audit files and who relies on them

Questions teams ask before upgrading garak to 0.14

How much effort does upgrading garak from 0.13 to 0.14 take?

The effort depends mostly on what reads garak's output, not on garak itself. A team that runs scans from a terminal and reads the JSONL file by hand has little to update. Effort grows with the number of consumers that parse the output. The main drivers are:

  • Parsers and scripts that read eval or digest entries and expect the 0.13 field layout
  • Dashboards and report templates built on the HTML digest, which 0.14 redesigns
  • Stored JSON configs and CI jobs that call garak with options that may have changed or been removed
  • The number of environments, such as laptops, CI runners and shared hosts, that must run the same version

Start by inventorying these consumers. Then check the changes listed in the garak releases on GitHub against each one.

Can our own team upgrade garak without outside help?

Yes, if the team has people comfortable with Python, YAML and their own report pipeline. Installing the new package is a routine pip upgrade, and the PyPI package requires Python 3.11 or newer. The harder part is verification: confirming that parsers still read every field, that dashboards still render, and that a rerun on a known target produces expected output. Teams without a clear owner for those pipelines often stall at that step. DeployOpen can also plan and deliver the upgrade as fixed-scope work, with scope, deliverables and timing agreed in writing before work starts. Either way, decide who signs off on the new outputs before the upgrade begins.

What does the upgrade need from our team?

Mostly access and people who know the outputs. Expect to provide:

  • Access to the hosts or CI runners where garak runs, with permission to install a new version while keeping 0.13 available for side-by-side runs
  • Sample reports from 0.13, including JSONL files, digests and the scripts that consume them, so the work can be tested against the actual structure
  • A named owner for each dashboard or report consumer who can confirm the output still carries the same meaning
  • Access to the target endpoints or models used in scans, so a baseline rerun is possible

Ask any implementation partner for this same list in writing, and confirm your target environment before scope is agreed.

How long does the upgrade take and what sets the duration?

The duration is set by your environment and your review process, so confirm it against your own consumer inventory rather than a generic estimate. The main factors are the number of parsers and dashboards to update, how quickly each owner can review sample output, and how long baseline reruns take. Rerun time depends on the configuration. By default garak makes 5 generations per prompt, so a larger probe selection or a slow endpoint lengthens each run. Ask for a schedule that lists each consumer, its owner and the date that owner signs off, along with the time planned for reruns on the target.

Can scores from garak 0.13 and 0.14 be compared directly?

Not directly, at least not without a controlled rerun. Score movement between versions can come from several sources, including new or changed probes, detector fixes and updates to calibration data. A higher or lower failure rate on 0.14 may therefore reflect the tool rather than the model. garak marks a probe as FAIL when any attempt produces undesirable output, so small detector changes can flip results. The practical approach is to run the same target and config on 0.13 and 0.14 in the same window, keep both JSONL reports, and compare results per probe. Record the garak version in every report so later comparisons remain traceable. The garak user guide describes the report fields.

What changes if we use AutoDAN with garak 0.13?

Any script or config that selects the AutoDAN generation option will need to change, because 0.14 removed that option. Start by searching your repositories, CI definitions and saved configs for references to it, then list which scans depend on it. Decide what each scan was measuring before choosing a replacement, since a different attack path can produce different results and different scores. Historical AutoDAN results cannot be reproduced on 0.14 with the same method, so archive the 0.13 reports with their configs. Confirm whether your pipeline fails loudly or skips the step silently, because a silent skip would corrupt trend data.

How garak 0.14 output flows into your report pipeline

The flow starts with your config files and generator settings feeding a garak run. The run writes a JSONL report of every attempt and its evaluation, and continues the garak.log debugging file across runs. The HTML digest is generated from that output, and the JSONL report and HTML digest are the two hand-offs where 0.14 changed what downstream code receives. Your schema check and parser sit next, and they are the first place to confirm that field names, eval entries and digest entries still match what your dashboards and archive expect.

Change points are the report parser and any HTML consumer after the digest.

How DeployOpen scopes and delivers a garak upgrade

DeployOpen approaches the move from garak 0.13 to 0.14 as a bounded piece of work on your own scan pipeline: we inventory what parses garak output today, agree the changes in writing, and test the new formats before anything reaches production reports. Engagements are fixed-scope, so the deliverables and timeline are settled before work starts.

How we scope

  • Inventory every script, dashboard and job that reads garak JSONL, digest or HTML output from 0.13 runs.
  • Confirm which config files, JSON configs and AutoDAN generation settings your scans currently use.
  • Agree in writing which parsers, templates and scheduled jobs are in the 0.14 upgrade and which stay out.

How we build

  • Install garak 0.14 in a pinned environment that matches your Python 3.11 or newer runtime requirement.
  • Update parsers for the new eval and digest entry formats, then run them against saved 0.13 reports for comparison.
  • Migrate scan configs off the removed AutoDAN generation option and record each change in version control.

How we hand over

  • Deliver a change log mapping each old report field to its 0.14 equivalent, with example input and output files.
  • Provide updated pipeline code, configs and a runbook your team can rerun without DeployOpen involved.
  • Walk your engineers through the retest run and the checks that confirm report pipelines still load correctly.

How we support

  • Offer ongoing support for upgrades to later garak releases as a retainer, scoped separately from the upgrade.
  • Re-run the report pipeline tests when garak or your parsers change, so format drift is caught early.
  • Confirm with your team the support window, response expectations and access model before the engagement begins.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.