سامانه صدور فاکتور و حسابداری
Document Phase 5 verified security boundaries [skip ci]
davoodmehraban89 committed
Sep 29, 2026 at 20:57 UTC
b5708e7870a2f0bf97218a95e842515975f15888
1 file changed
+7
-1
docs/PHASE_5_VERIFICATION.md
+7
-1
@@ -15,7 +15,13 @@ Accounting boundaries:
15
- posted stock/count/depreciation records are immutable at the database boundary
16
- stock transfers do not create value-changing journal entries
17
- depreciation posts debit 6201 / credit 1502 after required accounts are created
18
-- purchase/sale quantities feed operational stock only for the configured default warehouse; explicit warehouse selection on source documents is a future enhancement
18
+- purchase/sale source documents carry an explicit warehouse; legacy documents without one fall back to the configured/default warehouse
19
- external webhook delivery is intentionally server-side architecture only; browser outbox export is available, but live third-party delivery is NOT VERIFIED
20
21
Verification requires syntax/static checks, Phase 5 behavioral scenarios, real-DOM smoke, Supabase migration/RLS/advisors, and final-head CI.
22
+
23
+
24
+Security/permissions boundary:
25
+- production record RLS remains owner-scoped and unchanged; Phase 5 does not pretend to provide cross-owner shared-company access
26
+- existing server-verified admin/license permissions remain authoritative
27
+- integration endpoints require HTTPS and browser records never store API secrets; secret-bearing delivery belongs to a server-side connector