سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 3, 14:30 UTC
State: verify Wave 5a production rollout
davoodmehraban89 committed
Oct 2, 2026 at 11:22 UTC
e1da1378ef34c2a6d200636bdc4aba2e2dc24512
1 file changed
+8
-8
PROJECT_STATE.md
+8
-8
@@ -15,12 +15,12 @@ This is high-assurance accounting/ERP software. Posted financial history, tenant
15
| Date | Request / decision | Status | Evidence / next action |
16
|---|---|---|---|
17
| 2026-10-02 | Permanent project constraint: user operates from Iran and cannot use paid infrastructure, paid APIs, international-card billing, or services that require a later paid upgrade for essential operation. Railway is excluded from Finora runtime/deployment. | **ACTIVE ARCHITECTURE CONSTRAINT** | Use only genuinely no-cost capabilities for required operation; do not create paid resources or make Finora depend on a service whose essential path later requires billing. GitHub + Supabase remain current sources of truth; any future infrastructure choice must pass this zero-cost/no-billing constraint first. |
18
-| 2026-10-02 | Gmail/GitHub failure review: latest Wave 5a Quality run failed only because the disposable PostgreSQL harness lacked Supabase roles `anon`/`authenticated`; Security latest run is green. | **TEST HARNESS FIXED / RETEST PENDING** | Added the two no-login Supabase compatibility roles to the disposable identity DB bootstrap. Failure occurred before behavior assertions and did not indicate a production migration failure. |
19
-| 2026-10-02 | Second CI retest showed the safety-check regex itself was over-escaped. | **REGEX FIXED / RETEST PENDING** | Normalized regex literals to match the workflow labels/variable gate exactly; no runtime/product behavior changed. |
20
-| 2026-10-02 | CI retest exposed a literal `\\n` introduced while editing the release-safety checker. | **TEST SYNTAX FIXED / RETEST PENDING** | Replaced the escaped text with a real newline; product/runtime code was unaffected. |
21
-| 2026-10-02 | Release-safety invariant initially rejected the explicit Dependency Graph availability gate. | **TEST CONTRACT FIXED / RETEST PENDING** | Safety checker now requires both properties: Dependency Review is conditional on `DEPENDENCY_GRAPH_ENABLED=true`, and remains fail-closed whenever enabled. |
22
-| 2026-10-02 | Wave 5a identity/signup/invitation bootstrap remediation (WS-01, F-121/F-122 and OTP bootstrap boundary). | **IMPLEMENTED ON BRANCH / CI PENDING** | New Auth user bootstrap is transactional profile → personal org → owner membership → org-bound trial license; base client identity no longer requires personal license; OTP login cannot create users; signup is explicit; invitation acceptance occurs before org-context load. Added disposable-DB, static and Real-DOM gates. Production migration and persistent two-user E2E remain NOT VERIFIED. |
23
-| 2026-10-02 | PR #29 exposed that Dependency Review now fails hard when GitHub Dependency Graph is disabled. | **CI BOUNDARY FIXED / RETEST PENDING** | Security workflow now runs Dependency Review only when repository variable `DEPENDENCY_GRAPH_ENABLED=true`; when enabled the action remains fail-closed. Release/QA safety and CodeQL remain mandatory. This prevents an unavailable GitHub feature from falsely blocking unrelated PRs while preserving the explicit external-boundary status. |
18
+| 2026-10-02 | Gmail/GitHub failure review: latest Wave 5a Quality run failed only because the disposable PostgreSQL harness lacked Supabase roles `anon`/`authenticated`; Security latest run is green. | **TEST HARNESS VERIFIED** | Added the two no-login Supabase compatibility roles to the disposable identity DB bootstrap. Wave 5a identity DB gate passed on PR head and main Quality `36980655736`; the earlier failure was harness-only. |
19
+| 2026-10-02 | Second CI retest showed the safety-check regex itself was over-escaped. | **REGEX FIX VERIFIED** | Normalized regex literals to match the workflow labels/variable gate exactly; main Security `36980655725` passed Release/QA safety + CodeQL. |
20
+| 2026-10-02 | CI retest exposed a literal `\\n` introduced while editing the release-safety checker. | **TEST SYNTAX FIX VERIFIED** | Replaced the escaped text with a real newline; subsequent PR and main security checks passed. |
21
+| 2026-10-02 | Release-safety invariant initially rejected the explicit Dependency Graph availability gate. | **TEST CONTRACT VERIFIED** | Safety checker requires both properties: Dependency Review is conditional on `DEPENDENCY_GRAPH_ENABLED=true`, and remains fail-closed whenever enabled; main Security `36980655725` succeeded. |
22
+| 2026-10-02 | Wave 5a identity/signup/invitation bootstrap remediation (WS-01, F-121/F-122 and OTP bootstrap boundary). | **MERGED / PRODUCTION + CI VERIFIED** | PR #30 merged as `cfd15dcf51cf8b9085a5512ded497fe0363ae322`. Main Quality `36980655736` SUCCESS including identity disposable-DB + static/Real-DOM gates; Security `36980655725` SUCCESS. Production migration `20261002075156 identity_wave5a_bootstrap` applied to `hcsixhqbyuhpshfwqpjx`; live reconciliation confirms `search_path=''`, organization-bound trial creation, trigger present, `licenses_without_org=0`, duplicate organization licenses=0 and orphan memberships=0. Persistent two-real-user production E2E and offboarding cache/session purge remain NOT VERIFIED. |
23
+| 2026-10-02 | PR #29 exposed that Dependency Review now fails hard when GitHub Dependency Graph is disabled. | **CI BOUNDARY VERIFIED** | Security workflow runs Dependency Review only when repository variable `DEPENDENCY_GRAPH_ENABLED=true`; when enabled the action remains fail-closed. Main Security `36980655725` passed Release/QA safety + CodeQL; Dependency Review was skipped because the graph remains unavailable. |
24
| 2026-10-02 | Owner granted standing approval to continue in-scope project work without repeated confirmation. | **WAVE 4B PRODUCTION APPLIED + VERIFIED** | Supabase production `hcsixhqbyuhpshfwqpjx` recorded `request_wave4b_scheduler_outbox_delivery` as migration version `20261002072526`. Read-only reconciliation confirmed scheduler tables, outbox delivery columns, and all five Wave 4b RPC contracts exist. GitHub main `41aff95d11a66c67e2c64df3eac11a122f94dfd7`: Quality `36975968198`, Security `36975968108`, Release Gate `36976087514`, Deploy `36976115600` succeeded. Automatic external scheduling and D4c destination consumers remain NOT VERIFIED. |
25
| 2026-10-02 | Wave 4b first disposable-DB run exposed an ambiguous PL/pgSQL test variable in the final replay assertion. | **TEST FIX APPLIED / RETEST PENDING** | Product migration executed through all scheduler/outbox assertions; failure was confined to the final test query where local variable `k` shadowed temp-table column `k`. Renamed/qualified the assertion; no production permission or state-machine rollback. |
26
| 2026-10-02 | Owner said «ادامه بده» after Wave 4 F-420/F-421/F-422 merge. | **IMPLEMENTED ON BRANCH / CI PENDING** | Added server-clock five-minute scheduler slots, durable run/claim evidence, replay binding, skip-locked overdue claims, stable outbox destination command identity, lease claims, retry/backoff, dead-letter and idempotent authorized replay. D4c destination consumers remain disabled. Production migration is NOT APPLIED pending the schema-change gate. |
@@ -72,10 +72,10 @@ Posted accounting history is immutable and balanced; tenant isolation is enforce
72
## NOT VERIFIED / external boundary
73
Automatic background scheduling for SLA scans; delivery/dispatch consumers for D3c outbox intents; authenticated two-real-user production browser E2E with a persistent legitimate non-owner member; automatic external invitation email delivery; owner-approved accounting cutover; real Persian OCR accuracy/provider; qualified digital signature; physical printer; live external adapters; GitHub Dependency graph/enforceable dependency review; leaked-password protection; PostgreSQL upgrade; CodeQL v4 migration; external BPM/provider integration remain outside verified scope.
74
75
-The connected Supabase production target is `hcsixhqbyuhpshfwqpjx` (`Finora`). Live migration history now includes C8, D1–D4a, request security Waves 1–4, and `request_wave4b_scheduler_outbox_delivery` recorded as version `20261002072526`. Read-only production reconciliation after Wave 4b confirmed both scheduler evidence tables, stable destination-command/dead-letter outbox columns, and scheduler/claim/complete/fail/replay RPC contracts exist. Security advisor still reports 3 private C8 tables with RLS but no policies, 20 authenticated-callable SECURITY DEFINER functions requiring intent-by-intent review, and leaked-password protection disabled.
75
+The connected Supabase production target is `hcsixhqbyuhpshfwqpjx` (`Finora`). Live migration history now includes C8, D1–D4a, request security Waves 1–4, `request_wave4b_scheduler_outbox_delivery` version `20261002072526`, and `identity_wave5a_bootstrap` version `20261002075156`. Read-only production reconciliation after Wave 4b confirmed both scheduler evidence tables, stable destination-command/dead-letter outbox columns, and scheduler/claim/complete/fail/replay RPC contracts exist. Security advisor still reports 3 private C8 tables with RLS but no policies, 20 authenticated-callable SECURITY DEFINER functions requiring intent-by-intent review, and leaked-password protection disabled.
76
77
## Exact next executable work
78
-1. Continue Wave 5 identity/bootstrap/offboarding remediation and close the remaining authenticated SECURITY DEFINER intent review without weakening required tenant/capability checks.
78
+1. Continue Wave 5 offboarding/session-revocation remediation plus persistent legitimate non-owner E2E, and close the remaining authenticated SECURITY DEFINER intent review without weakening required tenant/capability checks.
79
2. Keep D4c destination consumers disabled until a real destination adapter enforces `destination_command_key` idempotency and its authorization/audit behavior is adversarially verified; automatic scheduler invocation remains a separate operational verification.
80
3. Resolve remaining platform-security gaps: formalize the three private C8 no-policy contracts, enable leaked-password protection when supported by the connected Auth control surface, and keep Dependency Review marked unavailable until Dependency Graph is enabled.
81