سامانه صدور فاکتور و حسابداری
docs: persist phase 1A preflight stop and continuity state
davoodmehraban89 committed
Oct 16, 2026 at 12:53 UTC
2a5902110a9ab2ca63968e627053f855e4289cbf
1 file changed
+7
PROJECT_STATE.md
+7
@@ -38,3 +38,10 @@
38
### 2026-10-16 Phase 0 post-merge Chromium intermittent fixture (QA-only follow-up; NOT application defect proven)
39
- **Original Phase 0 PR:** #160 merged exact-main `67be4fbfa6161156b10ce6279445266c989e97d3`. PR-head Quality `38867730181` 123/123 Chromium PASS, isolated DB and Security PASS. Protected main Quality `38868319174` attempt 1 **FAIL 122/123** at `scripts/phase0-invoice-persistence.spec.js:52`, `#auth-screen` remained visible for 5 seconds; all three DB jobs and Security `38868319200` succeeded. Same-SHA failed-job rerun attempt 2 was requested; result must be verified separately. Neither result proves actual production financial persistence or login failure.
40
- **Source-reproduced test harness race:** `authenticatedMockBrowser` waits only for `enterApp`, `commitSaveInvoice`, `pullAll` functions before installing a fake authenticated identity; asynchronously loaded `organization-rbac` wrapper can supersede the fake identity. Prior `scripts/accounting-document-workflow.spec.js:36–43` already fixes the identical fixture ordering issue by waiting for `FinoraStartupStatus.extensionsReady`, zero failed extensions, and `authChecked`. Apply the same pre-mock readiness condition **only in this synthetic invoice test**; preserve all UI, Supabase/Auth/RLS, financial accounting and live record behavior. Require Quality 123/123, Security and all three disposable DB on exact repair SHA; then controlled protected merge and same-main checks. Rollback is a test-only revert. All owner-ISP and real invoice E2E remain NOT VERIFIED.
41
+
42
+### 2026-10-16 — Master Phase 1A preflight, owner conditional approval (STOP)
43
+- Owner authorizes **only phase 1A preflight / later test-branch & isolated Supabase CLI work**; Phase 1B waits for a separate approval; NO Production DDL/DML (`hcsixhqbyuhpshfwqpjx`).
44
+- Main baseline `bccd474433b4188e43aae345773498ea6fc65209`. Read-only catalog vs repo migration manifest: 82 live versions vs 81 tracked; **25 live-only and 24 repo-only exact identifiers**; `phone_identity_profile` is production-only, and `profiles.phone` exists live. Full Supabase CLI rebuild/schema equality NOT VERIFIED.
45
+- Source + live `finora_sync_records` expose full JSONB writes for eligible users; journal `status/number/postedAt` originate in browser, triggers only guard UPDATE/DELETE of already posted records. Runtime bypass test NOT RUN in production.
46
+- Preflight evidence: `docs/FINORA_PHASE1A_READONLY_PREFLIGHT_2026-10-16.md` + complete `docs/FINORA_PHASE1A_MIGRATION_VERSION_DIFF_2026-10-16.md` on isolated branch `plan/financial-core-phase1-approval-20261016`.
47
+- **GATE:** material schema-history drift; stop before migration or code/test rollout; report conditions 3/4 to owner and await explicit authorization to reconcile/test. No Phase 1A/1B completion claimed.