tidaldb/.sdlc/features/m9-leave-revocation/qa-plan.md

1.0 KiB

QA Plan: Leave & Stop-Forward (m9-leave-revocation)

Test Suite: tidal/tests/m9_leave_revocation.rs

8 integration tests covering:

  • TC-01: leave_stops_cohort_fanout — baseline count > 0, leave, post-leave count unchanged
  • TC-02: join_resumes_cohort_fanout — leave then rejoin, count increases after rejoin
  • TC-03: leave_is_idempotent — two leave calls return Ok, second left_at_ns >= first
  • TC-04: status_query_lifecycle — fresh=Active/None → leave=Left/Some → rejoin=Active/Some
  • TC-05: left_at_ns_preserved_on_rejoin — left_at_ns unchanged after rejoin
  • TC-06: durability_across_reopen — leave, close, reopen, status still Left with same left_at_ns
  • TC-07: unknown_user_defaults_to_active — unknown user returns Active/None
  • TC-08: leave_stops_community_forwarding — community:: key count unchanged after leave

Regression Suites

  • cargo test --lib: all 1299 passing
  • cargo test --test m6_cohort: all 9 passing

Clippy + Format

  • cargo fmt --check: exit 0
  • cargo clippy -- -D warnings: exit 0