Awesome Reviewers

When writing tests, assert the real behavioral contract (the thing that could regress), not incidental formatting or brittle implementation details.

Practical rules:

Example (truncation-survival contract):

def kept_region(text: str) -> str:
    return text[: text.index("## Ranked Evidence Clusters")]

text = render.render_compact(sample_report())
head = kept_region(text)

assert "SYNTHESIS CONTRACT" in head
assert "<!-- END EVIDENCE FOR SYNTHESIS -->" not in head  # tail-only checks don’t help

Apply these principles so test failures pinpoint the true regression and don’t break due to incidental changes (ordering, redundant guards, or irrelevant text).