AI evidence — how to instrument an AI / LLM / agentic system¶
The Secure SDLC Evidence Collector supports five evidence types specific to AI / LLM / agentic systems and ships an opt-in catalog that gates releases on them. This page explains what to produce and where to put it. The full mapping to NIST SP 800-218A (SSDF AI Profile), the OWASP Top 10 for LLM Applications (2025), and the OWASP Top 10 for Agentic Applications (2026) lives in ADR-0008.
Quick start¶
# 1. Drop AI artifacts next to your existing scanner output.
artifacts/
├── trivy.sarif # SCA (unchanged)
├── sbom.cdx.json # SBOM (unchanged)
├── run.garak.jsonl # prompt-injection probe results
├── model.lm-eval.json # lm-evaluation-harness output
├── model-card.json # HF or Google MCT model card
└── dataset.croissant.json # Croissant dataset metadata (training-data lineage)
# 2. Free-schema manifests go in as attestations.
attestations/
├── tool-inventory.yaml # evidence_type: mcp_tool_inventory
└── training-lineage.yaml # evidence_type: ai_training_data_lineage (if no Croissant file)
# 3. Run with the AI catalog.
sdlc-evidence run \
--application acme/llm-coach \
--repository acme/llm-coach \
--release-id 2026.05.19 \
--commit-sha "$(git rev-parse HEAD)" \
--artifacts-dir artifacts \
--attestations-dir attestations \
--catalog catalog-ai.yaml
The collector auto-detects each AI file in the artifacts directory via
filename + content sniff and routes it to the right parser. A
free-schema JSON file dropped there (a tool list, a hand-written
dataset manifest) matches no parser and is not collected, so those go
in as attestations instead. run and collect list every file no
parser claimed (an artifact_ignored event per file under
--json-logs), so a file that did not become evidence does not go
unnoticed.
An lm-eval file always becomes generated evidence, which satisfies
AI-SAFETY-EVAL on its own. A control is met when at least one record
of each required type satisfies it, so a failed promptfoo run in the
same directory does not block the control. The control's rationale
names the failed run, and the run keeps its failed status in the
bundle's evidence list.
Evidence types¶
model_card¶
Two shapes accepted:
- Hugging Face Hub — model card YAML frontmatter serialised to
JSON. The collector reads
model_id/model_name,license,datasets,intended_use, andmodel-index[*].results[*].metrics. - Google Model Card Toolkit — proto-shaped JSON. The collector
reads
model_details.name,model_details.licenses[*],quantitative_analysis.performance_metrics[*], andconsiderations.use_cases[*].description.
File names recognised: model-card.json, model_card.json,
*.modelcard.json. Content sniff also matches files that carry
model_details or model-index at the top level.
Mapped control: AI-MODEL-CARD (SP 800-218A PO.1.2 N1, partial documentation support).
prompt_injection_test_result¶
Output of garak (https://github.com/leondz/garak). The collector reads the JSON-Lines report with these entry kinds:
init— garak version, model under testdigest— per-probe attempts + hits (preferred when present)attempt— per-attempt verdict (fallback for partial runs)
Pass / fail is decided by the parser: any probe with hits > 0
fails the gate. The per-probe rollup travels in
evidence.metadata.probes so the consumer can decide whether a
single failing probe should block the release.
File names recognised: *.garak.json, *.garak.jsonl,
*.report.jsonl, garak.json, garak.jsonl.
Mapped control: AI-PROMPT-INJ (SP 800-218A PW.8.2, partial vulnerability-test support).
ai_safety_eval¶
Output of lm-evaluation-harness (https://github.com/EleutherAI/lm-evaluation-harness). The collector reads the top-level JSON object and extracts:
results[<task>][<metric>]— per-task numeric metrics. Non-numeric cells ("N/A", strings) are skipped.config.model_args(pretrained=<id>) orconfig.model— model identifier;config.model_argswins when both exist because it carries the more specific id.
Pass / fail is not decided anywhere. lm-eval surfaces raw metrics,
the evidence is always recorded as generated, and control catalogs have
no way to express a metric threshold. Any parseable lm-eval report
therefore satisfies AI-SAFETY-EVAL, whatever its scores: a model with
near-zero safety or bias accuracy meets the control exactly like a good
one. Review the metrics in evidence.metadata.tasks yourself before
treating the control as passed (see limitations §21).
File names recognised: *.lm-eval.json, *.lm_eval.json,
lm-eval.json. Content sniff also matches files that carry
results: {…} and versions: {…} together.
Inspect (UK AI Security Institute, https://inspect.aisi.org.uk) eval
logs are read too, in their JSON form: write them with
--log-format json or convert an .eval file with inspect log convert.
They are recognised by content, whatever the file name, and only log
format version 2 is accepted. Inspect's default binary .eval log is not
read and shows up among the files that matched no parser: rerun
inspect eval with --log-format json, or run
inspect log convert <log-dir> --to json --output-dir <dir>, and put the
JSON log in --artifacts-dir. The evidence records eval.task,
eval.model, the run status, every metric as scorer/metric from
results.scores, and the sample counts. When a task has several epoch
reducers, the headline reducer Inspect records in results.headline (normally the mean)
keeps scorer/metric and each other reducer is recorded as
scorer/reducer/metric. In the evidence's metadata these land as
inspect_task, ai_model_id, eval_status, metrics, total_samples and
completed_samples. Since 4.0.0, when the log declares results.headline,
its scorer, reducer and metric strings are also copied to
evidence[].metadata.inspect_headline, so a reader can tell which reducer the plain
scorer/metric key holds; without a declared headline the key is absent.
Only a run with
status: success counts; an errored, cancelled or unfinished run is
recorded as invalid, so it stays visible but does not satisfy the
control. A log that includes every sample can exceed the collector's
25 MB input limit, in which case it is refused like any other oversized
input.
promptfoo (https://www.promptfoo.dev) eval output, written with
promptfoo eval -o results.json, is read as well, recognised by its
envelope (results.version, results.stats, results.results). promptfoo
publishes no formal schema, so only output version 3 is accepted. The
evidence records the passed, failed and errored test counts from
results.stats, the assertion tally from each row's
gradingResult.componentResults (skipped on rows that have none; an
assert-set counts as its individual assertions, and a run that graded
no assertion at all is invalid, because promptfoo passes a test that
has none), and
which assertion types failed. Unlike lm-eval, promptfoo decides pass or
fail per test, so the evidence carries its verdict: passed when every
test passed, failed when any test failed or errored, and invalid
when no test produced a verdict. Only passed satisfies the control.
A control is met when at least one record of each required type
satisfies it, so a failed promptfoo run beside a passing run or an
lm-eval file does not block AI-SAFETY-EVAL; the rationale names the
failed run.
Mapped control: AI-SAFETY-EVAL (project policy; SP 800-218A PW.8.2 supports only model vulnerability testing).
mcp_tool_inventory¶
A free-schema JSON manifest declaring the MCP / tool surface an agentic system can reach. Recommended fields:
tools[*].name,tools[*].descriptiontools[*].scopes— what each tool is allowed to touchtools[*].network_egress— outbound destinations the tool may reachtools[*].risk_class— short label (e.g.read-only,write,external-network)
The collector does not parse a tool inventory, and a file dropped in
the artifacts directory is not collected. Supply it as an attestation
in the attestations directory, with the manifest under metadata, so
a reviewer can inspect blast radius from the bundle:
evidence_type: mcp_tool_inventory
producer: platform-team
subject_ref: acme/llm-coach
status: passed
metadata:
tools:
- name: search
scopes: [read]
risk_class: low
Mapped control: AI-MCP-INVENTORY (OWASP Top 10 for Agentic
Applications 2026 — tool misuse / excessive tool reach; OWASP
LLM06:2025 excessive agency).
ai_training_data_lineage¶
Two sources.
Croissant dataset metadata (MLCommons, spec 1.0 and 1.1). Any
.json file whose dataset-level conformsTo (or dct:conformsTo)
names http://mlcommons.org/croissant/1.0 or /1.1 is recognised by
content, whatever its file name; in 1.1 conformsTo may be a list. The
evidence records the Croissant version, dataset name, version, URL and
licenses, datePublished, which PROV-O terms are present
(wasDerivedFrom, wasGeneratedBy, wasAttributedTo), whether
usageInfo carries a usage policy, and how many record sets and
distribution files there are and how many of those carry a sha256.
A numeric version is recorded as text (1 becomes "1"). A name
given as a language map is read as the value of its en tag, else its
untagged (@none) value, else the value of the first language tag in
sorted order; an @value object gives its value, and a list gives its first
readable entry. Confidence is high when the file names the dataset and
a license, and medium otherwise. A placeholder license (unknown,
NOASSERTION or none, in any case) is still recorded but does not
count as naming one.
A free-schema manifest of the datasets used to train / fine-tune
the model, supplied as an attestation (evidence_type:
ai_training_data_lineage) in the attestations directory, with the
manifest under metadata, the same way as the tool inventory above. A
manifest file dropped in the artifacts directory is not collected.
Recommended fields:
datasets[*].name,datasets[*].versiondatasets[*].source— URL or repositorydatasets[*].licensedatasets[*].pii_review— boolean / link to a PII assessmentdatasets[*].fingerprint— content hash, when available
Mapped control: AI-TRAINING-LINEAGE (SP 800-218A PW.3.2, partial data-provenance support).
What the verdict looks like¶
With the AI catalog selected, the bundle's release_status reflects
both classical and AI controls:
release_status: conditional
controls_met: 7/10
controls_missing: 2/10 # AI-MCP-INVENTORY, AI-TRAINING-LINEAGE
controls_waived: 1/10 # AI-RELEASE-APPROVAL (waived under exception EX-7)
You can mix the AI catalog with the classical one by writing a merged
catalog YAML; the collector accepts any valid catalog under
--catalog.
What this is not¶
- Not an evaluator. The collector ingests garak / lm-eval output; it does not run probes or metrics against the model.
- Not a runtime guardrail. The MCP tool inventory is evidence of intent, not enforcement.
- Not a substitute for a real threat model.
AI-THREAT-MODELexpects a threat model document with explicit AI sections; the collector verifies presence and provenance, not quality. - Not a content-safety filter. Safety evaluation is delegated to lm-eval and equivalent tools; the collector records the result.
Fixture handling and CI safety¶
The fixtures used to validate the parsers are frozen JSON, not
live tool runs. CI does not download model weights, does not call
Hugging Face, and does not require any AI dependency at runtime.
Fixture refresh procedure lives in tests/fixtures/ai/README.md (to
be added when first refresh is needed). Every fixture carries the
tool version it was captured from so the parser stays pinned to a
specific schema.
References¶
- NIST SP 800-218A — https://csrc.nist.gov/publications/detail/sp/800-218A/final
- OWASP Top 10 for LLM Applications (2025) — https://genai.owasp.org/llm-top-10/
- OWASP Top 10 for Agentic Applications (2026) — https://genai.owasp.org/resource/owasp-top-10-for-agentic-applications-for-2026/
- garak — https://github.com/leondz/garak
- lm-evaluation-harness — https://github.com/EleutherAI/lm-evaluation-harness
- Hugging Face model cards — https://huggingface.co/docs/hub/model-cards
- Google Model Card Toolkit — https://github.com/tensorflow/model-card-toolkit
- ADR-0008 —
docs/adr/0008-ai-evidence-types-and-provenance.md