Generated: 2026-05-24. Mode: Author. Caller: Phase 1 Agent B.
Freeze classifier behavior in analyze.py so downstream build_members.py cannot
silently regress KPI semantics. Compliance-required per PLAN.md §"analyze.py test suite".
In: _norm_vote, _majority_position, classify_vote, aggregate from analyze.py;
end-to-end parse→classify→aggregate via parse.py.
Out: parse.py exhaustive tests, render code, fetch code.
python3 -m pip install --user --break-system-packages pytest)./tests/ (in-tree, per the user-specified PLAN.md layout)tests/.| # | File | Covers | Test count (est.) |
|---|---|---|---|
| 1 | tests/test_analyze.py | normalization, classification, aggregation | ~12 |
Fixtures: 4 required + 1 optional (split-party tied).
This suite lives under ./tests/ (in-tree, NOT gitignored — per PLAN.md). It runs
when explicitly invoked via python3 -m pytest tests/.
APPROVED-TEST-PLAN was provided by Phase 1 Agent B caller.