Humanbound website
Documentation
Local Engine

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 posture

Shows 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 20

Export 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.xml

The 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.json

The 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.json

The 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:promptfoo

See Firewall — Default Model: SetFit for where to get the detector script.

Log Schema

Each log entry contains 10 public fields:

FieldTypeDescription
thread_idstringSession identifier
conversationarrayTurns: [{"u": "...", "a": "..."}]
resultstringpass, fail, or error
gen_categorystringOWASP category tested
fail_categorystringEvaluation that triggered
explanationstringJudge's verdict explanation
severityfloat0-100
confidencefloat0-100
exec_tfloatAvg execution time per turn (seconds)
metadictTelemetry 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"
}