9 Recipe: scaffold your first assessment report
| Field | Value |
|---|---|
| Tools | quarto (+ kailash report new, roadmap) |
| Section | Getting started |
| Level | medium |
| Time | ~30 min (+ whatever the scan legs took) |
| Layer/Category | OPS / o-06 |
| Tags | getting-started, reporting, quarto, evidence, authorisation |
9.1 Problem
Scan and pair runs produce JSONL reports and probe transcripts. Machine evidence is not a deliverable. The reader (a client, an IR team, a later auditor) needs the assessment written up. The write-up keeps the evidence intact through the hand-off. It states the run conditions that make the run reproducible. It carries verbatim outputs instead of paraphrases. It carries the mapping ids a reviewer checks against the catalogue. The scaffold below carries all of that — from the distribution’s own reporting plan, not an ad-hoc folder of loose files.
9.2 Solution
kailash report new is roadmap-stage. The CLI ships it in the spec’s command surface, yet it lands per the roadmap (spec §6.2’s remaining KA-14 children). The report templates themselves are a landed-report lane item. At the current tree report-templates/ in the OS repo is a stub. The grounded alternative TODAY: scaffold the same structure directly with quarto. Kailash ships quarto at o-06 for exactly this job. Quarto is also what the roadmap command wraps, per the spec’s report-template design. Pin the manifest hash the report speaks against. The roadmap command’s repro/ dir encodes the same pin discipline:
# 1. The direct scaffold (the landed path today):
mkdir -p my-assessment/findings my-assessment/evidence
cd my-assessment
# _quarto.yml + index.qmd as below; findings are hand-written
# pages under findings/<id>.qmd (the scaffold has no tool steps)
# 2. Pin the manifest the report speaks against (the repro contract):
kailash manifest check # -> {"categories": <n>, "tools": <n>}
cp "$(dirname "$(readlink -f "$(command -v kailash)")")/../manifest/tools.yaml" \
evidence/tools-pinned.yaml 2>/dev/null \
|| kailash info garak > evidence/garak-row-pinned.json
sha256sum evidence/*.yaml evidence/*.json > evidence/REPRO.sha256
# 3. Render to every delivery format (HTML for reading, PDF for hand-off):
quarto render index.qmd --to html
quarto render index.qmd --to pdfThe minimal _quarto.yml + index.qmd skeleton (the fields the roadmap templates pre-structure):
project:
type: default
output-dir: _render
format:
html: {theme: cosmo, toc: true}
pdf: {documentclass: article}---
title: "LLM red-team assessment — <target system>"
author: "<operator>"
date: <YYYY-MM-DD>
---
## Scope + authorisation
<what was tested, on whose written authorisation — cite the
responsible-use statement's operator-responsibility clause>
## Method (reproducible conditions)
- tool + pin: garak <pin version> (kailash manifest hash <hash>)
- OWASP scope: LLM01 (both epochs per the manifest row)
- generations per probe: <g> · seed: <s> ← the exact -g / -s values
## Findings
### <F-01> <one-line title>
- Class: OWASP LLM01 · ATLAS: AML.T0051
- Evidence: `findings/F-01.qmd` — the probe's VERBATIM exchange
(prompt + response as captured), never a paraphrase
- Repro: the exact command line, the tool's own report file attached
(e.g. garak_<ts>.jsonl, the probe-pair JSONL from the pair recipe)What success looks like:
quarto renderexits 0._render/holds the HTML (and PDF)- the repro dir carries the pinned manifest row(s) + the checksum of the pin. Anyone can re-run the scan against the same pin and compare reports seed-for-seed
- every finding has an id, a class with its ATLAS/OWASP ids, and a verbatim evidence block — no finding relies on a paraphrase
Expected output shape (abridged):
pandoc
to: html
output-file: index.html
<render-time messages — shapes, not transcripts>
Output created: _render/index.html
9.3 Discussion
- Why the roadmap command still matters:
kailash report new <type> <name>scaffolds from the three declared engagement types —llm-redteam,adversarial-ml,supply-chain-audit. Each type carries its own_quarto.yml, a pre-structuredindex.qmd,findings/stubs, and arepro/manifest-hash pin (spec §5.4). When it lands, it replaces steps 1–2 with one command against a kept-in-sync template. Verify the landed template’s shape at that point, not this recipe’s hand scaffold. Check the CLI inventory recipe for what is landed when. - What the report MUST carry (and why): the verbatim outputs carry the evidence discipline. The book’s no-invented-evidence rule applies to reports too. The pair recipe’s ATTEMPTED/ok/FAIL + record-verbatim contract states the same principle. The ATLAS ids (
AML.T####from the manifest row) keep a finding checkable against the catalogue. The seed + generation values make the post-config-change diff meaningful. Without them, the “did it move” question is unanswerable. - The responsible-use clause inside the report: the OS’s responsible-use statement makes the operator’s authorisation a named responsibility. An assessment report that omits who authorised the work against what target leaves the legal frame off the record. The statement itself ships in the distribution (MOTD,
kailash doctoroutput, Layer-ATTACK pages). Cite it, and link the written authorisation in the scope section. - Seed the report from the machine, not the memory: the Method section’s values come from the run’s own artefacts. The sources: the tool’s banner line (version), the JSONL report (probe set, generations),
kailash info <tool>(the mapping ids, the licence). Never retype values from recollection. This mirrors the probe-pair recipe’s record discipline on the report side. - Format choice: the a-02 scan recipes produce JSONL. If the deliverable must chain into a ticket or a review workflow, attach BOTH the JSONL and the rendered HTML — the first is the evidence, the second is the reading surface.
- texlive is opt-in: the PDF leg needs a LaTeX toolchain. On a default image, texlive rides the opt-in
kailash-data.*lane (see data packs). The alternative: the HTML leg renders alone.
9.4 See also
- Serve a tiny local model and run your first scan — the run this report documents
- Attack the platform, then verify — the probe-pair evidence contract the findings cite
- Refresh wordlists and data packs — the opt-in lane the PDF leg’s texlive rides
- Inventory the catalogue with the kailash CLI — where the ATLAS/OWASP ids come from
- quarto reference page: https://docs.kailash.tools/reference/quarto.html
- quarto upstream docs: https://quarto.org/docs/get-started/
- The report-template design (spec §5.4) + CLI surface (
report new): https://github.com/kailash-os/kailash-os/blob/master/docs/spec.md - Responsible use (the authorisation clause): https://github.com/kailash-os/kailash-os/blob/master/docs/responsible-use.md
Recipe provenance. The roadmap status of kailash report new (spec §6.2’s remaining slice; §5.4’s three template types + repro/ pin design) is from the OS spec, verified 2026-10-14 at master — and the OS repo’s report-templates/ is a .gitkeep stub at that rev (checked via the repository listing), which is exactly why this recipe hands over the manual quarto scaffold. quarto’s CLI surface (quarto render --to) is the upstream contract at the locked pin; manifest facts (quarto native/safe/o-06, MIT) from the packages manifest. The rendered-output shape above is a shape with placeholders, not a transcript. A worked scaffold-and-render against a real pin: PENDING — upkeep lane.