V26 · Firebase emulator thật hơn

Rules test được nâng thành ma trận allow/deny rõ hơn.

V26 bổ sung facilitator, audit delete và khung node --test để chạy thật khi emulator sẵn sàng.

Tóm tắt

8 case · allow 3 · deny 5

participant · get · allow

p-own-profile-read

participants/p-demo-001

participant chỉ đọc subtree của chính mình

participant · get · deny

p-other-submission-read

participants/p-demo-002/r4Submissions/sub-demo-002

participant không đọc dữ liệu người khác

organization_observer · get · allow

org-aggregate-read

cohorts/cohort-demo-001/aggregateSnapshots/snapshot-demo-001

tổ chức chỉ đọc aggregate snapshot

organization_observer · get · deny

org-raw-submission-read

participants/p-demo-001/r4Submissions/sub-demo-001

tổ chức không đọc raw answers

admin · update · deny

admin-audit-update

auditEvents/audit-demo-001

audit event append-only

anonymous · get · deny

anonymous-private-read

participants/p-demo-001

anonymous không đọc private data

facilitator · get · allow

facilitator-review-read

participants/p-demo-001/reports/report-demo-001

facilitator được đọc đủ để review/debrief

participant · delete · deny

participant-audit-delete

auditEvents/audit-demo-001

không role nào delete audit