Output & Export
After a local test, results are saved on disk and can be viewed or exported as HTML reports, JSON, or CSV.
After hb test finishes locally, results are written to .humanbound/results/exp-{timestamp}-{uuid8}/ as meta.json (experiment metadata + posture + insights) and logs.jsonl (one conversation per line). The hb posture, hb logs, and hb report commands read this data — viewing the posture score, filtering conversations by verdict, or producing branded HTML reports. Findings can also be exported as guardrail rules (hb guardrails) and used to train a Tier 2 firewall classifier.
Results Location
Results are saved to .humanbound/results/exp-{timestamp}-{uuid8}/ in your working directory (the random suffix keeps concurrent runs from colliding):
.humanbound/results/exp-20260419-135646-3f9c2a1b/
meta.json # experiment metadata + posture + insights
logs.jsonl # conversation logs (one per line)Viewing Results
Posture Score
hb postureShows the overall security posture score (0-100, grade A-F), defense rate, and breached categories.
Conversation Logs
# Table view (terminal)
hb logs
# Filter by verdict
hb logs --verdict fail
# Pagination
hb logs --page 2 --size 20Export Logs
# JSON
hb logs --format json -o logs.json
# Interactive HTML
hb logs -f html -o logs.html
# JUnit XML, for CI test reports
hb logs --format junit -o humanbound-junit.xmlThe JUnit report covers one experiment and always includes every log. Each
conversation is a <testcase>, grouped into one <testsuite> per attack
category. A fail verdict becomes a <failure> whose message carries the
severity and the judge's explanation; an error verdict (the conversation
could not be run or judged) becomes an <error>, so it never reads as a pass.
The transcript goes in <system-out>. --verdict fail keeps only the
failures.
Reports
# HTML report (branded, self-contained)
hb report -o report.html
# JSON export
hb report --json -o results.jsonThe HTML report includes:
- Cover page with test metadata
- Posture score with donut chart
- Stats cards (total/pass/fail/defense rate)
- Severity distribution bar
- Findings table with severity badges
- Category coverage (breached vs defended)
- Failed conversation appendix (up to 20)
- Methodology description
- Technology disclaimer
Guardrails Export
Export guardrail rules from test findings:
# JSON format
hb guardrails -o rules.json
# humanbound-firewall policy file (agent.yaml), from the latest run's scope
hb guardrails --format yaml -o agent.yaml
# OpenAI moderation format
hb guardrails --vendor openai -o openai_rules.jsonThe firewall does not read the rule lists; it enforces the scope in agent.yaml, which --format yaml writes. See Guardrails for what the file contains.
Firewall Training
Train a Tier 2 classifier from test results:
# From local test data
hb firewall train --model detectors/setfit_classifier.py
# From external results (vendor-agnostic)
hb firewall train --model detectors/setfit_classifier.py --import pyrit_results.json
hb firewall train --model detectors/setfit_classifier.py --import results.json:promptfooSee Firewall — Default Model: SetFit for where to get the detector script.
Log Schema
Each log entry contains 10 public fields:
| Field | Type | Description |
|---|---|---|
thread_id | string | Session identifier |
conversation | array | Turns: [{"u": "...", "a": "..."}] |
result | string | pass, fail, or error |
gen_category | string | OWASP category tested |
fail_category | string | Evaluation that triggered |
explanation | string | Judge's verdict explanation |
severity | float | 0-100 |
confidence | float | 0-100 |
exec_t | float | Avg execution time per turn (seconds) |
meta | dict | Telemetry data (tools called, resource usage) |
Experiment Metadata
meta.json contains the experiment summary:
{
"id": "exp-20260419-135646-3f9c2a1b",
"name": "cli-owasp_agentic-20260419",
"status": "Finished",
"test_category": "humanbound/adversarial/owasp_agentic",
"testing_level": "unit",
"lang": "english",
"results": {
"stats": {"pass": 79, "fail": 18, "total": 97},
"insights": [...],
"posture": {"posture": 63.82, "grade": "C", ...},
"exec_t": {"avg_t": 1.7, ...}
},
"created_at": "2026-04-19T13:56:46",
"completed_at": "2026-04-19T14:15:22"
}Orchestrators
Orchestrators generate attacks, run conversations, and evaluate responses — Humanbound ships three built-in engines and lets you author your own.
Adversarial Testing Engine
Humanbound's adversarial engine generates multi-turn attacks in real time, adapting strategy and escalating pressure as the agent responds.