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

2.5 KiB

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

Test Run

Date: 2026-03-03

Integration Tests: tidal/tests/m9_leave_revocation.rs

cargo test --manifest-path tidal/Cargo.toml --test m9_leave_revocation --features test-utils

running 8 tests
test status_query_lifecycle ... ok
test leave_is_idempotent ... ok
test unknown_user_defaults_to_active ... ok
test left_at_ns_preserved_on_rejoin ... ok
test join_resumes_cohort_fanout ... ok
test leave_stops_cohort_fanout ... ok
test leave_stops_community_forwarding ... ok
test durability_across_reopen ... ok

test result: ok. 8 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 5.38s

All 8 integration tests pass including the durability-across-reopen test (TC-06).

Unit Tests: entities::community (membership serde)

Covered within lib test suite. All 6 serde unit tests pass:

  • serde_active_roundtrip
  • serde_left_with_timestamp_roundtrip
  • deserialize_rejects_short_slice
  • deserialize_rejects_invalid_status_byte
  • active_has_zero_left_at_ns_in_wire
  • default_active_is_active

Full Lib Test Suite

cargo test --manifest-path tidal/Cargo.toml --lib --quiet

test result: ok. 1299 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 12.02s

No regressions. Count is at or above pre-feature baseline.

Regression: m6_cohort Integration Suite

cargo test --manifest-path tidal/Cargo.toml --test m6_cohort

test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s

All cohort tests pass. The leave gate does not affect users without a leave record (the default Active path).

Clippy

cargo clippy --manifest-path tidal/Cargo.toml -- -D warnings

Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.11s

Exit 0. No warnings.

Format

cargo fmt --manifest-path tidal/Cargo.toml --check

(no output)

Exit 0. No formatting diffs.

Pass Criteria Checklist

Check Result
TC-01 leave_stops_cohort_fanout PASS
TC-02 join_resumes_cohort_fanout PASS
TC-03 leave_is_idempotent PASS
TC-04 status_query_lifecycle PASS
TC-05 left_at_ns_preserved_on_rejoin PASS
TC-06 durability_across_reopen PASS
TC-07 unknown_user_defaults_to_active PASS
TC-08 leave_stops_community_forwarding PASS
entities::community unit tests (6) PASS
storage::keys tests PASS
Full lib suite (1299) PASS
m6_cohort regression (9) PASS
cargo clippy -D warnings PASS
cargo fmt --check PASS

Result: PASSED