سامانه صدور فاکتور و حسابداری
fix/wave2-request-input-integrity
ELI-4 Enterprise Organization UX Verification
Date: 2026-09-30
Project: hcsixhqbyuhpshfwqpjx
Delivered
organization_units.unit_kindwith neutral defaultunitand vocabularyregion,branch,department,unit,subunit.- Server-side same-tenant parent enforcement and cycle prevention for organization hierarchy.
- Organization-unit mutation audit.
- Authorization-gated
organization_capacity_summaryfor user/company/module/license dashboard data. - Consolidated organization administration dashboard showing active named-user usage, legal-company usage, plan/status/modules and typed hierarchy.
- Typed unit creation UI and nested organization-tree rendering.
- Organization shell access button corrected to owner or explicit
core/configure; arbitrary moduleconfigureno longer exposes tenant administration UI.
Production migration
20260930053652 enterprise_organization_ux
TDD evidence
Failing Real-DOM coverage was committed first at ee091bd73f47c963b8299c432314fcf700fe290d. Quality run 36673893320 failed at Real DOM because ELI-4 tree/dashboard runtime functions did not exist. Implementation then made the same coverage pass.
Transactional adversarial verification
All test hierarchy/member changes were rolled back.
PASS:
1. Ordinary organization member cannot call commercial capacity summary.
2. Owner can create typed region/branch hierarchy.
3. Parent from another tenant is rejected server-side.
4. Parent/descendant cycle is rejected server-side.
5. Unsupported company unit kind is rejected; legal companies remain separate from operational units.
6. Delegated core/configure admin can create typed units.
7. Delegated core/configure admin can read organization capacity summary.
8. Capacity summary reports named-user usage/limit correctly in the transaction.
9. Unit mutations emit organization audit evidence.
10. Transaction rollback leaves no persistent hierarchy or test membership residue.
GitHub evidence
Verified product head before this evidence commit: e88fab7470bb0697652d347d23ca48332a94c6e4.
- Quality 36674128792: PASS including accounting/Golden, ELI-1/2/3/4 static gates and Real-DOM.
- Security 36674128874: PASS.
- Pages 36674128102: PASS.
Supabase advisor status
Performance advisor after ELI-4 reports only unused-index informational notices and no unindexed-foreign-key findings. The new organization-unit kind index is intentionally retained pending representative production workload.
NOT VERIFIED
Authenticated production browser E2E with a deliberately persistent second non-owner organization member. Production still has zero persistent non-owner members, so no principal was fabricated or permanently cross-added to satisfy this test.