Skip to content

assay baseline status | update [--add]

Shows and maintains the baseline, the record in assay_baseline.json of the violations the project already had. Baseline says what it is for, how it shrinks and how it grows.

assay baseline status [--color auto|always|never]
assay baseline update [--add] [--color auto|always|never]
Subcommand What it does
status Prints the baseline’s size, its growth records and how many entries no longer match. Changes nothing.
update Removes the entries that no longer match. With --add, also records every violation that is not in the baseline, under a new growth record, and creates the baseline where there is none.

Both judge the whole project as the gate does, with both engines and with the cross-file and project-file checks, so that they speak for every entry the baseline holds: those of assay’s rules, of the SDK lints and the analyzer’s warnings, and of the checks.

Option Effect
--add update only. Also add every violation that is not in the baseline, under a new growth record. Creates the baseline when there is none. It is the one way to grow the baseline.
--color auto|always|never The form of the output, as for every command.

Neither subcommand takes an argument.

Terminal window
assay baseline status # the size, the growth records, the entries that no longer match
assay baseline update # remove the entries that no longer match
assay baseline update --add # also record every violation that is not in it; creates the baseline

Both print the head box of the result report, with the preset, the rules and the files, then their own boxes.

baseline status prints a box Growth records, each record with its number, its time and the entries it added, and a last box Baseline with the size and how many entries no longer match. Where some do, the box says to run assay baseline update to remove them. With every entry matching:

╭─ assay baseline status ──────────────────────────────────────────────────────╮
│ Preset recommended │
│ Rules 109 │
│ Files 2 │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ Growth records ───────────────────────────────────────────────────────── 1 ─╮
│ # When Added │
│ ────────────────────────────── │
│ 1 2026-11-23T21:44:29Z 4 │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ ✓ Baseline ─────────────────────────────────────────────────────────────────╮
│ 4 entries · 0 no longer match │
╰──────────────────────────────────────────────────────────────────────────────╯

baseline update prints a last box titled Baseline created, Baseline updated or Baseline unchanged, with the size, how many entries were removed and added, and the growth record. Where it wrote the file, the box says to commit it. assay baseline update --add in a project with no baseline:

╭─ assay baseline update --add ────────────────────────────────────────────────╮
│ Preset recommended │
│ Rules 109 │
│ Files 2 │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─ ✓ Baseline created ─────────────────────────────────────────────────────────╮
│ 4 entries · growth record 1 │
│ → Next: commit `assay_baseline.json`. │
╰──────────────────────────────────────────────────────────────────────────────╯

In a project with no baseline, status, and update without --add, print a box No baseline that says to run assay baseline update --add to create one.

Code When
0 It ran, also in a project with no baseline.
2 A configuration error: nothing is judged, the report names each error, and the baseline is left as it is. Or a usage error: an argument.
3 assay could not run: the standard analysis command could not be run or did not end within its time limit, and nothing is changed. Or the baseline file could not be written; or it was written while standard output was closed, so nobody was told, and standard error names it.