tests/infra.py names the box's states as profiles (bare, fresh, index_only, index_graph,
full, graph_partial, vectors_partial, rebuild_pending, upstream_down, upstream_timeout),
built once per session from the search fixture and the fakes, in tmp dirs; the `infra`
fixture runs a test per profile (@pytest.mark.infra, --infra=, INSIDER_INFRA), and
INSIDER_INFRA_DB=1 puts a profile's state in a throwaway Postgres.
tests/test_infra_matrix.py: one response shape, the Civil Code's t.j. first for
"Kodeks cywilny"/"k.c.", rank_prior honesty, vectors only when complete, index notices
exactly when a local source cannot serve, nothing built/downloaded/loaded in a request,
every CELEX opens, charset=utf-8, a per-request memory ceiling.
search_eval --profile prints a table per profile; the regression set is asserted in
bare and full. CI: an infra-matrix job (bare/full, DB-free and on Postgres). Docs in
README and CLAUDE.md. test_indexed_db no longer leaves legal_graph/legal_rank states.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>