Skip to content

test(protocol): add PROTOCOL contract fixture suite (CV-170) - #18

Merged
Leo-Galli merged 1 commit into
mainfrom
feat/cv-170-protocol-contract-fixtures
Nov 24, 2026
Merged

Leo-Galli merged 1 commit into
mainfrom
feat/cv-170-protocol-contract-fixtures

Conversation

@Leo-Galli

Copy link
Copy Markdown
Contributor

Summary

  • Add golden PROTOCOL v1 fixtures under tests/fixtures/protocol/ with a manifest covering built message shapes and the full error-code set.
  • Add always-on tests/protocol_contract.rs that loads fixtures, checks required keys, and compares public JSON builders to fixture shapes (handshake wire stays in ws_hello).
  • Wire an explicit CI Protocol contract step and mark README STATUS Protocol contract fixtures Built.

Test plan

  • cargo fmt --check / cargo clippy --locked --all-targets -- -D warnings
  • cargo test --locked --test protocol_contract (5/5)
  • node scripts/verify-readme.mjs
  • CI verify green on this PR

Lock built play-protocol message shapes and error codes behind always-on golden fixtures so CI catches wire-format drift without Redis or Postgres.
@Leo-Galli
Leo-Galli merged commit 4ca9b93 into main Nov 24, 2026
1 check passed
@Leo-Galli
Leo-Galli deleted the feat/cv-170-protocol-contract-fixtures branch November 24, 2026 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant