Features
Baselines
Turn the CI gate on for an existing codebase. Accept the findings you have today, then fail the build only on what is new.
# once: accept today's findings
npx deployready@latest analyze . --no-ai --no-dynamic --write-baseline .deployready-baseline.json
# in CI: gate only on what is not accepted
npx deployready@latest analyze . --no-ai --no-dynamic --baseline .deployready-baseline.json --fail-on warningFile format (version 2)#
{
"version": 2,
"format": "deployready-baseline/2",
"entries": [
{
"fingerprint": "3f9c...20 hex chars.0",
"rule": "hardcoded-secret",
"file": "src/config.js",
"severity": "critical",
"acceptedAt": "2026-06-01",
"reason": null,
"owner": null,
"expiresAt": "2026-09-01"
}
]
}Entries are sorted by file, rule, and fingerprint with a fixed key order, so a baseline change shows up as a small, reviewable diff. reason, owner, and expiresAt are yours to edit. Running --write-baseline on an existing file keeps them, and acceptedAt, for entries that still match.
How a finding is identified#
A finding's identity is the rule, the normalized path, the endpoint, the enclosing function or route, the normalized line context, and an occurrence index. The line context is the finding line with whitespace collapsed and every string literal replaced by a length class, so no secret, and no hash of a secret, is stored in the baseline. Line numbers are not part of the identity, so moving code does not re-fail the build. Severity is not part of the identity either. It is stored separately, so an escalation is visible.
What the gate reports#
- new: not in the baseline, including a second issue of the same rule in the same file. Gates.
- escalated: accepted at a lower severity and now worse. Gates at the new severity.
- reopened: recorded as resolved by a later
--write-baselineand now back. Gates until re-accepted. - expired: the entry's
expiresAtdate has passed. Gates. - stale: an entry with no matching finding. Reported, and it fails the run with
--strict-baseline.
When --write-baseline finds an accepted issue gone, it keeps the entry with a resolvedAtdate, so a recurrence is "reopened" rather than silently suppressed. Delete such entries by hand if you want them forgotten.
Findings accepted in a baseline are not counted toward the release state's blocking findings. If everything else is clean the state reads ready-with-accepted-risks. See release state.
Compatibility#
Version 1 files ({"fingerprints": [...]}) still load, matching by rule, file, and endpoint only and without severity checks, with a migration warning. Re-run --write-baseline to upgrade. The Finding.id used by the checklist and the MCP tools is unchanged.