Repository navigation
Diligent 0.2.1: developer integration
Developer integration lands: SARIF output for code scanning, a reusable GitHub Action, baseline and diff for backlog management, and Storybook component mode. The native gate and rules validator run through the companion binary when it is present, source-pass template support covers JSX, Vue, Svelte, Astro, Twig and Liquid, and 45 engine-informed rules were reviewed against primary sources and promoted to draft.
Added
diligent audit --storybook <url>audits the stories of a built Storybook (7 or 8) as components: each sampled story is captured and assessed with the element-level checks, whole-page obligations are recorded as not tested, a component gate sets the exit code, andCOMPONENT-BASELINE.jsonrecords each story. A component audit is not a site claim.diligent-rs assess --componentandchecks list --json(scope) support it. Seedocs/storybook-mode.md.diligent sarif --run <id> | --dir <run-dir> [--out <file>] [--baseline <file>]emits SARIF 2.1.0 from a run so results can be uploaded to GitHub code scanning. Everyfailandneeds_reviewcheck result becomes a SARIF result with a stable fingerprint, the rule's obligation text as its description, and the lifecycle note carried into the result. Hand-authoredFINDINGS.jsonentries are emitted alongside when present. Seedocs/sarif.md.diligent baseline write --run <id> --out <file>records the fingerprints of a run, anddiligent diff --run <id> --baseline <file> [--fail-on new|any|none]partitions a later run into new, known, resolved and unverified. A team can accept a backlog and block only new problems. With--baseline,diligent sarifmarks each resultneworunchanged. Seedocs/baseline-diff.md.diligent-rs infra --preload-lookupasks hstspreload.org whether the registrable domain is on the Chromium HSTS preload list and records the answer as inference evidence on theINFRA-02-hsts-preloadrow. Off by default; the Node orchestrator does not pass it in this release.- A reusable GitHub Action (
uses: Simple-Cortex/diligent@<tag>,action.ymlat the repository root) audits one URL on a Linux x86-64 runner, downloads the companion binary from the release and verifies it againstSHA256SUMS, uploads the SARIF file to code scanning and the audit directory as an artifact, and fails the job only on the condition you choose (fail-on: gate | new | any | none).baseline-outwrites a baseline for a write-on-main, diff-on-pull-request pair. Seedocs/github-action.md. diligent-rs source scanreads.jsx,.tsx,.vue,.svelte,.astro,.twigand.liquidfiles as well as HTML, and every finding now carries a source line, a column and a byte offset when the file contains the element. Expressions, components and attribute spreads are opaque and turn a result intoneeds_review; a template with nohtmlorbodytag is treated as a fragment and skips document-level checks. SARIF results for these findings point at the file and line. Seedocs/source-pass.md.plugins/vite-plugin-diligent-srcis a Vite plugin that addsdata-diligent-src="<file>:<line>"to native elements in JSX, Vue, Svelte and Astro files during development, anddiligent-rs assessrecords the attribute as asource_refon the finding it belongs to. The plugin lives in the repository and is not part of the npm package.npm run shadow:rulescomparesdiligent rules validatein Node against the companion binary over 25 mutation cases and fails on any difference. CI runs it on every push.diligent-rs gateports the regulatory gate to the companion binary.npm run shadow:gateruns the Node gate and the binary over every gate fixture, including a real audit directory from a GitHub runner, with and without--json, and fails on any difference in exit code, output,ASSESSMENT.json,EVENTS.jsonlorRUN.json. The Node gate stays authoritative. Seedocs/rust-shadow-notes.md.
Changed
- 45 engine-informed rules were reviewed against their primary sources (clause locator, modality word, baseline id) and promoted from
researchtodraft; FED-12 and INFRA-12 stay atresearch. Four modality words changed (FED-05shall, FED-08must, FED-18must, FED-29should).review-packet.mjsgainedapply, andpromotenow refuses a rule whose clause locator is stillunatomized. Seedocs/review/2026-10-20-source-review-packet.md. - Authority A43 (OMB M-15-13) now points at the archived memo;
https.cio.govno longer resolves. - The gate's limitation sentence and the claim boundary no longer say Diligent runs no automated website checks; they say automated checks run only through the separately installed
diligent-rsbinary, in both the Node and native gates. diligent gateanddiligent rules validaterun thediligent-rsbinary when one reporting protocol 1 is present and fall back to the Node scripts otherwise;DILIGENT_ENGINE=nodeforces Node, anddiligent --version --jsonlists the delegated commands. Argument errors fromdiligent-rs gatenow carry thediligent:prefix to match Node.- Artifact and rules-data JSON parse errors no longer quote the JavaScript engine's message; they read
<file>: not valid JSONso the Node and native outputs match.