# Reports

> Every field of a report, how the verdict and confidence are decided, and what B55 can and cannot prove.

Source: https://docs.b55.online/reports

`GET /v0/reports/{report_id}` returns the report once the candidate is `ready` or `insufficient_evidence`. The candidate's `report_id` tells you the id, and the candidate already carries `verdict`, `relevance` and `confidence` for lists.

## What B55 can prove, in plain words

A report is evidence, not a judgement. Read it with these limits in mind:

- **Checked:** the GitHub account exists and how old it is; that a random sample of the candidate's public commits really exist on GitHub under that account; how many of them are cryptographically signed.
- **Self-reported:** everything about skill (languages, years, test share, AI tool use). It is computed on the candidate's own laptop. A signature makes it tamper-evident after the scan, not true.
- **Not checkable:** work in private repos. Most employed developers do most of their work there, so many honest candidates land on `self-reported`.
- **Not checked at all:** that the person in your interview is the person who ran the scan. Identity means "controls this GitHub account", nothing more.

So:

- Thin or unverifiable evidence gives `insufficient-evidence`. **It is never a low score.**
- There is **no overall score**, and you should never rank candidates against each other on self-reported numbers. B55's own ranking (`GET /v0/jobs/{job_id}/candidates`) orders by verdict first, then role fit, then confidence; see [Candidates](/candidates#ranking).
- B55 never auto-rejects anyone. A human decides; the interview questions are there to test the evidence.

## Example

```json
{
  "object": "report",
  "id": "rpt_000002",
  "role": "frontend",
  "seniority": "mid",
  "verdict": "verified",
  "reason": "12 of 12 sampled public commits matched on GitHub.",
  "confidence": "high",
  "identity": { "github": "maya-frontend", "account_age_days": 3554, "signed_share": 0.83, "provenance": "checked" },
  "attribution": { "sampled": 12, "matched": 12, "evidence_coverage": 0.9, "flags": [], "provenance": "checked" },
  "assessment": {
    "provenance": "self-reported",
    "languages": [
      { "language": "TypeScript", "framework": "React", "share": 68, "years": 8.6 },
      { "language": "CSS", "share": 14, "years": 8.6 },
      { "language": "HTML", "share": 6, "years": 8.4 },
      { "language": "Python", "share": 4, "years": 3.4 }
    ],
    "test_share": 21,
    "ai_survival": 88,
    "ai_sessions": 142,
    "ai_tools": ["Claude Code", "Cursor"]
  },
  "role_fit": { "relevance": "strong", "relevant_share": 88, "matched_must": [], "missing_must": [], "matched_nice": [] },
  "working_with_ai": {
    "provenance": "self-reported",
    "status": "analysed",
    "summary": "Across 142 AI sessions they usually let the agent read the code before it edits, run tests or builds in most sessions and often step in to correct or stop the agent.",
    "sessions": 142,
    "agents": [{ "agent": "Claude Code", "sessions": 92 }, { "agent": "Cursor", "sessions": 50 }],
    "model_families": ["claude-opus", "claude-sonnet", "cursor"],
    "mcp_categories": [{ "category": "browser", "calls": 120 }, { "category": "docs", "calls": 45 }],
    "metrics": [
      {
        "id": "checks_after_editing",
        "group": "verification",
        "label": "Runs tests or builds",
        "kind": "fraction",
        "value": 0.81,
        "numerator": 104,
        "denominator": 128,
        "sample": 128,
        "confidence": "enough",
        "definition": "Share of sessions with agent edits in which a test, build or lint command ran after the first edit. Commands are classified on the laptop and never sent.",
        "sentence": "Ran tests, a build or a linter after editing in 104 of 128 sessions."
      },
      {
        "id": "session_minutes",
        "group": "depth",
        "label": "Session length",
        "kind": "median",
        "value": 14,
        "numerator": null,
        "denominator": null,
        "sample": 142,
        "confidence": "enough",
        "definition": "Median active minutes per session: time between logged events, each gap capped at 15 minutes.",
        "sentence": "A typical session is 14 minutes of active work; long ones run 41 minutes."
      }
    ]
  },
  "gaps": [],
  "interview_questions": [
    "Walk me through a recent TypeScript change you shipped: what broke, and how did you test it?",
    "You ran 142 AI coding sessions. Tell me about a time you rejected or rewrote what the agent produced.",
    "What part of your recent work would you redo, and why?"
  ],
  "generated_at": "2026-11-24T12:47:36.645Z"
}
```

The example shows two of the 13 entries in `working_with_ai.metrics`; a real report lists every metric (see [How they work with AI](#how-they-work-with-ai)).

## Fields

| Field | Type | Meaning |
|---|---|---|
| `id` | string | `rpt_…` |
| `role`, `seniority` | string | The role id and seniority of the job. |
| `verdict` | enum | How much of the evidence could be checked. See below. |
| `reason` | string | One plain-English sentence explaining the verdict. Show it next to the verdict. |
| `confidence` | `high`, `medium`, `low` | How far to trust the report as a whole. See below. |
| `identity.github` | string | The GitHub account the candidate signed in with. |
| `identity.account_age_days` | integer | Age of that account. |
| `identity.signed_share` | 0–1 | Share of matched commits that are cryptographically signed. |
| `identity.provenance` | `checked` | Always checked. |
| `attribution.sampled` / `matched` | integer | Public commits sampled (up to 12) and how many matched on GitHub. |
| `attribution.evidence_coverage` | 0–1 | Share of the claimed history backed by public evidence. |
| `attribution.flags` | string[] | Warnings, e.g. `low-evidence-coverage`, `new-github-account`, `commit-mismatch`, `evidence-inconsistent`. |
| `attribution.provenance` | `checked` or `self-reported` | `checked` when at least one sampled commit matched. |
| `assessment.provenance` | `self-reported` | Always self-reported. Label every number below that way in your UI. |
| `assessment.languages[]` | objects | `language`, optional `framework`, `share` (0–100 of added lines) and `years` of history. |
| `assessment.test_share` | 0–100 | Share of added lines that are tests. |
| `assessment.ai_survival` | 0–100 | How much AI-written code survived later edits. |
| `assessment.ai_sessions`, `ai_tools` | integer, string[] | Claude Code, Cursor and Codex sessions counted locally. Message text is never read or sent. |
| `role_fit.relevance` | `strong`, `partial`, `weak`, `not-assessed` | How well the evidence matches the role. |
| `role_fit.relevant_share` | 0–100 | Share of lines in the role's languages and frameworks. |
| `role_fit.matched_must`, `missing_must`, `matched_nice` | string[] | Your `must` and `nice` terms, found or not. |
| `working_with_ai.provenance` | `self-reported` | Always self-reported: counted on the candidate's laptop. |
| `working_with_ai.status` | `analysed`, `not-enough-sessions`, `not-collected` | `not-enough-sessions` under 5 sessions (including none); `not-collected` when the scan came from a CLI without the session analyser. Neither is a bad result. |
| `working_with_ai.summary` | string | One plain sentence about their habits. |
| `working_with_ai.sessions`, `agents[]` | integer, objects | Sessions analysed (the newest, with at least one agent tool call; up to 300 per agent), and per agent (`Claude Code`, `Cursor`, `Codex`). |
| `working_with_ai.model_families` | string[] | Families only (`claude-opus`, `gpt-5`, …), never an exact model id. |
| `working_with_ai.mcp_categories[]` | objects | MCP tool calls by kind (`browser`, `code-host`, `docs`, …). Server names are never sent. |
| `working_with_ai.metrics[]` | objects | One habit each: `id`, `kind` (`fraction`, `median`, `count`), `value`, `numerator`/`denominator` for fractions, `sample` (sessions behind it), `confidence`, `definition` and a plain `sentence`. `value` is `null` when the sample is too small. |
| `gaps` | string[] | What the evidence does not show, in plain words. |
| `interview_questions` | string[] | Up to 5 questions aimed at the gaps. Usually 3 to 5; thin reports have fewer. |
| `generated_at` | date-time | When the report was built. |

A report never contains source code, file paths, commit messages, prompt text or private repo names.

## How they work with AI

The CLI reads the candidate's local Claude Code, Cursor and Codex session logs and keeps only their structure: event types, tool names, timestamps, counts, exit codes and error flags. Shell commands are classified on the laptop (test, build, lint, read-only, undo) and thrown away; file paths become per-session numbers and are thrown away. What is uploaded is the scan's `sessionAnalysis` block: a strict allowlist of integers, medians and fixed category names. B55 rejects a scan that carries anything else in it (`422 invalid_scan`), and the integrity hash covers it.

| Metric | Kind | Definition |
|---|---|---|
| `explores_before_editing` | fraction | Sessions with agent edits in which the agent made at least 3 read, search or planning moves (or used a plan tool) before its first edit. |
| `edits_before_first_check` | median | Agent edits before the first test, build or lint run that follows an edit. |
| `checks_after_editing` | fraction | Sessions with agent edits in which a test, build or lint command ran after the first edit. |
| `fixes_after_failures` | fraction | Sessions with a failing run in which code was edited and the check was run again. |
| `recovers_from_failures` | fraction | Sessions with a failing run whose last run passed. |
| `red_to_green_minutes` | median | Minutes from the first failing run in a session to the next passing one. |
| `edits_kept` | fraction | Agent edits not undone in the same session (an exact reversal, or `git restore` / `checkout` / `reset --hard` / `stash` before a commit). |
| `steers_the_agent` | fraction | Sessions in which the developer corrected the agent (a new prompt after edits, then the same file re-edited or undone), stopped it, or refused a tool call. |
| `session_minutes` | median | Active minutes per session: time between logged events, each gap capped at 15 minutes. |
| `tool_calls_per_session`, `prompts_per_session` | median | Agent tool calls and developer prompts per session. |
| `uses_subagents` | fraction | Sessions that started helper agents. |
| `active_days` | count | Days on which an analysed session started. |

Rules:

- **Outcomes only where the log has them.** A run counts as passed or failed only when its exit code or error flag is logged and belongs to the check itself: `pnpm test | tail` or `pytest; echo done` hide the real exit code, so those runs have no outcome.
- **Sample sizes travel with every number.** Under 5 sessions the section says "not enough sessions to say". A metric with fewer than 5 sessions behind it has `value: null` and `confidence: "not-enough"`; 5 to 9 is `thin`; 10 or more is `enough`.
- **No single score**, and no ranking on these numbers. They are habits to ask about, not a grade.
- **Gaps** come only from firm samples: tests or builds in under 30% of sessions with edits, or most sessions with a failing run ending still failing. The interview questions then ask about that habit (how they check an agent's work, how they get a broken build passing, how they get an agent to understand a codebase first).

## Verdicts

The first rule that applies wins:

| # | Verdict | When |
|---|---|---|
| 1 | `insufficient-evidence` | Fewer than 20 commits, or no languages at all. Nothing to assess; `role_fit.relevance` is `not-assessed`. |
| 2 | `self-reported` | A sampled commit did not match GitHub (`commit-mismatch` or `evidence-inconsistent`). Treat every number as a claim. |
| 3 | `verified` | The account's public commits check out: trust tier `github-verified` or `signed`. |
| 4 | `partially-verified` | Some sampled commits matched, but public evidence covers only part of the claimed history. |
| 5 | `self-reported` | No public commit could be checked. |

## Confidence

| Confidence | When |
|---|---|
| `high` | `verified`, at least half the claimed history has public evidence, and commits in the last 6 months. |
| `medium` | Any other `verified` or `partially-verified` report. |
| `low` | `self-reported` or `insufficient-evidence`. |

Confidence never comes from how well the candidate fits the role.

## Role fit

- Only languages with at least 3% of added lines count.
- `relevant_share` of 50 or more is `strong`, 20 or more is `partial`, below that `weak`.
- A missing `must` term caps relevance at `partial`; matching none of the `must` terms makes it `weak`.
- `insufficient-evidence` reports are `not-assessed`, with every `must` term listed as missing.

## Gaps

Each gap is a sentence. They come from:

- a `must` term with no evidence: "No evidence of Rust."
- a `senior` or `staff` role with under 4 years in any language (marked self-reported)
- `ai_usage: "expected"` with no AI coding sessions
- a test-focused role (`qa-sdet`) with under 10% test lines
- no commits in the last 6 months
- too little history to assess at all
- AI sessions that rarely ran tests or builds, or rarely got failing runs passing (from `working_with_ai`, only on firm samples)

## Coming later

**Production plan:** `GET /v0/reports/{id}.pdf` for a PDF (today: **Download PDF** on the console's candidate page), an embed token for showing the report in your product ([Embed](/embed)), and an optional link to the candidate's public Perfstaq profile if they choose to share it.
