سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 3, 20:45 UTC
Record Slice B tenant RBAC execution start
davoodmehraban89 committed
Sep 30, 2026 at 06:41 UTC
cba507186ac50f1c2771f720bc651eb8d99d490e
1 file changed
+5
-5
PROJECT_STATE.md
+5
-5
@@ -12,11 +12,12 @@ Verify live GitHub+Supabase before acting; record material requests before imple
12
## Current change ledger
13
| Date | Request / decision | Status | Evidence / next action |
14
|---|---|---|---|
15
+| 2026-09-30 | Continue from verified Slice A into Slice B: organization tenant, multi-user memberships, module roles/capabilities, row scopes, confidentiality, shared office access/referral foundation and immutable permission/referral audit. | **AUTHORIZED / IN PROGRESS** | Live baseline rechecked before implementation: main `df0eaeaaaae883806f98cd6f29275dd367595317`; Supabase `hcsixhqbyuhpshfwqpjx` `ACTIVE_HEALTHY`, PostgreSQL `17.6.1.166`, 24 applied migrations through `20260930030314`; latest baseline CI is green. Implement Slice B without weakening posted-accounting immutability, module licensing, expired-license read-only behavior or tenant isolation. |
16
| 2026-09-30 | Modular organization-wide ERP: office automation/scanned correspondence/secretariat, configurable requests, module managers/permissions, module-select entry, module-by-module/full-suite licensing, future transport/operations; research Barid/ParGar, Chargoon/Didgah, Faragostar. | **SLICE A IMPLEMENTED / VERIFIED** | Request `0b622439`; implementation `d3934690`; read-only expiry hardening `906d78d7`; browser integration hardening `df82067ecb1fda9007eb11a30d0a9d7cc1b113cd`. Production migrations `20260930025546`, `20260930025647`, `20260930030314` applied+archived. Final product-head Quality `36662911587` PASS including syntax, accounting/Phase2–6/Golden, new modular-office invariants and Chromium Real-DOM tests; Security `36662911572` PASS; Pages `36662911432` PASS. Production DB negative checks: non-admin module-license RPC denied and unlicensed office write denied; positive atomic-registration transaction advanced counter 7→8 then rolled back. Multi-login tenant/RBAC remains Slice B and is not claimed. |
17
| 2026-09-30 | Iran-first high-assurance ERP expansion. | IN PROGRESS — broader roadmap | `docs/IRAN_COMPLIANCE_MATRIX_V1.md`; do not claim statutory consolidation/full tax submission/full HR/CRM until complete lifecycle/accounting/permissions/tests exist. |
18
19
## Current production state — 2026-09-30
19
-- Verified product head: `df82067ecb1fda9007eb11a30d0a9d7cc1b113cd`. This state-only commit follows it and does not change product behavior.
20
+- Verified product head: `df82067ecb1fda9007eb11a30d0a9d7cc1b113cd`. State-only continuity commits may follow it without changing product behavior.
21
- Supabase `hcsixhqbyuhpshfwqpjx`: `ACTIVE_HEALTHY`, PostgreSQL `17.6.1.166`, 24 migrations through `20260930030314`.
22
- Existing 4 licenses grandfathered to `full_suite`; `admin_set_license_modules` validates explicit module keys.
23
- 4/4 records policies include module entitlement; writes and atomic sync additionally require active license. Expired/cancelled users retain read-only access to entitled historical data.
@@ -40,7 +41,6 @@ Posted accounting history is immutable and balanced; tenant isolation is data-bo
41
Multi-login organization membership/module-manager RBAC/shared inbox/referral; real Persian OCR accuracy; authenticated production-user browser E2E; physical printer; third-party webhook/ECE/email gateways; Supabase leaked-password setting; PostgreSQL 17.11 platform upgrade.
42
43
## Exact next executable work
43
-1. Do not redo Slice A without a verified regression.
44
-2. Slice B: organization tenant + memberships + module roles/capabilities + row scopes + confidentiality + immutable permission/referral audit, with positive/negative RLS tests.
45
-3. Slice C: mature office lifecycle (templates/editor/signature/approval/referral/read receipts/SLA/reply graph/archive/OCR/full-text/integration adapters).
46
-4. Slice D/E: versioned workflow engine then transport/procurement/service/CRM/manufacturing/maintenance as complete tested vertical modules.
44
+1. Slice B in progress: organization tenant + memberships + module roles/capabilities + row scopes + confidentiality + immutable permission/referral audit, with positive/negative RLS tests.
45
+2. Slice C: mature office lifecycle (templates/editor/signature/approval/referral/read receipts/SLA/reply graph/archive/OCR/full-text/integration adapters).
46
+3. Slice D/E: versioned workflow engine then transport/procurement/service/CRM/manufacturing/maintenance as complete tested vertical modules.