facts
facts

Get aggregated statistics for a POT

Get aggregated statistics for a POT.

Computes per-level fact counts in one pass over the POT's facts (only the score is returned per fact). Used by KB2B's dashboard to render the score distribution chart and total fact count without sampling.

get/pots/{pot_id}/stats

Request

Path parameters

pot_idstring uuid required

Response

Stats retrieved successfully

total_factsinteger

Total facts in the POT (uncapped)

constitution_countinteger

Number of constitution axioms

average_scorenumber

Approximate average POT score, computed from level midpoints. Exact within ~0.1 for typical distributions; this avoids loading all fact rows.

Changes

No recorded changes to this operation across all 41 revisions of this API.