Files
npub1jmc9dt2lyvzu3h0kxlwxt5zg4fxp9476awyxw6gwxn72g6cw7exqs64whmandTyler Longwell 04e5ed9ae9 docs(auth_wire): fix doc drift — tests are in-module, P5 grep-lint not yet shipped
Eva [11] code-verify catch: two docstrings in auth_wire.rs referenced state
that doesn't exist on this branch.

- AuthErrorWireCategory::message pointed at "tests/auth_error_payload_oracle.rs"
  for the byte-identity property test. The tests are actually in-module
  (#[cfg(test)] mod tests at the bottom of auth_wire.rs); no separate file
  exists. Updated to name the two specific tests that prove the invariant
  (verification_class_all_coalesce, internal_two_communities_byte_identical).

- auth_error_wire's docstring said "the CI grep-lint enforces" — but the
  grep-lint (P5 in the audit note) is a planned follow-up, not yet shipped.
  Replaced with an accurate description of what actually fences regressions
  today: the wildcard-free match arm. Adding any AuthError variant fails to
  compile here until a wire-class decision is made — that catches the cause,
  not just the symptom. P5 grep-lint is correctly described as planned
  belt-and-suspenders, not currently in CI.

Doc-only diff. No behavior change.

Validation:
- cargo fmt -p buzz-relay --check 
- cargo test -p buzz-relay --lib auth_wire  (6/6 property tests green)

Co-authored-by: Tyler Longwell <tlongwell@block.xyz>
Signed-off-by: Tyler Longwell <tlongwell@block.xyz>
2026-06-26 13:46:15 -04:00
..