from pathlib import Path


def test_contributing_sets_workspace_proof_rule() -> None:
    doc = Path("CONTRIBUTING.md").read_text()

    assert "visual changes require screenshot proof" in doc
    assert "keep screenshots and binary media out of Gitea backup" in doc
    assert "CLI/verifiable changes must reference the exact command output, log path, or observable state" in doc
    assert "no proof, no merge" in doc


def test_operations_mentions_proof_standard() -> None:
    ops = Path("OPERATIONS.md").read_text()

    assert "Proof Standard" in ops
    assert "CONTRIBUTING.md" in ops
