# Sample Spectra Reports

These are real Spectra reports, generated by running `spectra analyze` on
public OSS repositories. They ship with the codebase as living examples
of what the tool produces — and they let new users browse a real report
before installing.

> **Why these "View rendered" links?** GitHub renders `.html` files as raw
> source code when you click them in the file browser. The links below
> wrap the raw URL through [htmlpreview.github.io](https://htmlpreview.github.io/)
> so the report displays as a real web page in your browser.

## Current panel — v0.7.0 (public mode)

Each scan is published in `public` mode per the dual-mode renderer
([`src/spectra/entities/models.py`](../../../src/spectra/entities/models.py)) —
overall grade, per-dimension scores, counts, cost, and the receipt are
preserved; individual findings are stripped. The full leaderboard with
methodology, per-dimension breakdown, and notable findings narrative lives
at [`../leaderboard.md`](../leaderboard.md).

| Repository | Public JSON |
|------------|-------------|
| `fastapi/fastapi` | [`v0.7.0/fastapi-fastapi-public.json`](v0.7.0/fastapi-fastapi-public.json) |
| `encode/httpx` | [`v0.7.0/encode-httpx-public.json`](v0.7.0/encode-httpx-public.json) |
| `Aider-AI/aider` | [`v0.7.0/aider-public.json`](v0.7.0/aider-public.json) |
| `simonw/llm` | [`v0.7.0/simonw-llm-public.json`](v0.7.0/simonw-llm-public.json) |
| Spectra self-scan (v0.7.0) | [`v0.6.0/spectra-self-scan-5-public.json`](v0.6.0/spectra-self-scan-5-public.json) |

## Historical reference — v0.6.0 baseline

| Repository | Raw HTML in repo | View rendered |
|------------|------------------|---------------|
| `anthropics/anthropic-sdk-python` | [`anthropic-sdk-python.html`](anthropic-sdk-python.html) | [▸ View rendered](https://htmlpreview.github.io/?https://github.com/leocder07/spectra/blob/main/docs/launch/reports/anthropic-sdk-python.html) |
| Spectra self-scan (v0.4.0 era) | [`spectra-self.html`](spectra-self.html) | [▸ View rendered](https://htmlpreview.github.io/?https://github.com/leocder07/spectra/blob/main/docs/launch/reports/spectra-self.html) |

## v0.6.0 self-scan

Generated by running v0.6.0 against the spectra repository itself, with
the new prompt-injection isolation, encrypted cache, signed receipts, and
audit log all active.

| Artifact | Raw | View rendered |
|----------|-----|---------------|
| HTML report | [`v0.6.0/spectra-self-confidential.html`](v0.6.0/spectra-self-confidential.html) | [▸ View rendered](https://htmlpreview.github.io/?https://github.com/leocder07/spectra/blob/main/docs/launch/reports/v0.6.0/spectra-self-confidential.html) |
| Audit log (JSONL) | [`v0.6.0/audit.jsonl`](v0.6.0/audit.jsonl) | (text — view raw) |

## How to regenerate

```bash
pip install spectra-ai
export ANTHROPIC_API_KEY=sk-ant-...
spectra analyze https://github.com/fastapi/fastapi \
  --output docs/launch/reports/v0.7.0/fastapi-fastapi.json \
  --format json \
  --max-cost-usd 15 \
  --no-cache
```

For the Spectra self-scan (because the regex fixtures in the test suite
trip the secret pre-flight by design), pass `--allow-secrets`:

```bash
spectra analyze . \
  --output docs/launch/reports/v0.6.0/spectra-self.html \
  --allow-secrets \
  --audit-sink "file:docs/launch/reports/v0.6.0/audit.jsonl" \
  --max-cost-usd 25
```
