سامانه صدور فاکتور و حسابداری

docs: record Phase A exact-SHA QA and release boundaries

davoodmehraban89 committed Oct 23, 2026 at 22:15 UTC 0789bf0b09b0c9e6b67bb3f7170910f5d765fb77
2 files changed +12 -3
PROJECT_STATE.md
+3 -1
@@ -39,7 +39,7 @@
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-23 — Owner-authorized Phase A: navigation and commands only (in progress)
42 +### 2026-10-23 — Owner-authorized Phase A: navigation and commands only (PR ready; unmerged)
43 - New owner execution prompt uses phases **A–H**. This turn authorizes **A only**, superseding the earlier turn's Phase 0 restriction; no approval for B–H, merging, deployment, SQL, schema/RLS/Auth/roles/grants or any Supabase production access/write is inferred.
44 - Verified remote baseline: `main` = `bccd474433b4188e43aae345773498ea6fc65209` (PR #161); clean clone, branch `feat/finora-phase-a-navigation-20261023`. Mandatory reference documents and six listed JS sources read before implementation; canonical UI image inspected.
45 - Owner contract: retain two-tier shell; default rail order/labels **داشبورد، حسابداری، بازرگانی، خزانه‌داری، انبار، پیمان‌ها، گزارش‌ها، تنظیمات**. Explicit sales/purchase tasks reuse current views and command search. Assets/enterprise/office/requests remain licensed-launcher workspaces; their business behavior and code remain. Hide tasks whose implementation does not exist; no new accounting/reporting engine or promised workflows.
@@ -47,3 +47,5 @@
47 - Execution/verification plan: [Phase A navigation report](docs/PHASE_A_NAVIGATION_2026-10-23.md). Pre-change syntax (55 JS + 54 MJS) and Golden accounting core PASS locally. QA/security/release results and PR-head SHA to be recorded after actual execution. NOT VERIFIED: owner-ISP login, real printing, production two-user behavior/customer acceptance. No Supabase connection is needed for A.
48 - Local implementation checkpoint: exact eight-module rail, explicit sale/purchase panel/search routes, no advanced-module runtime rail injection; existing licensed launcher exposed by «ماژول‌ها» footer control; organization utility handlers/permissions preserved outside the rail. Existing lazy enterprise view is ensured before entry; bootstrap/changed extension cache URLs bumped. No financial, SQL, frozen workflow or print implementation file changed.
49 - Actually executed: 3 new DOM assertions observed RED before application edits then **3/3 PASS**; all **50** existing static/behavioral/backup/release-safety commands PASS; full existing CI browser command **126/126 Chromium PASS** (2.9m; existing 123 + 3 new), Golden and generated Pages/A4/A5 print tests PASS. Independent whole-diff review has no remaining findings. Cloud WOFF2 font configuration required a temporary process-only FONTCONFIG_FILE override; original print assertion passed without print-code edits. Remote PR-head CI and three disposable DB jobs remain pending at this checkpoint; no merge/deploy/next-phase action is authorized.
50 +- **Verified remote outcome:** [PR #174](https://github.com/davoodmehraban89/Factor-easy/pull/174), base `main` / `bccd474433b4188e43aae345773498ea6fc65209`, application/test commit `c60f1735be8d108650381953443bfbb174464961`. [Quality 40005084702](https://github.com/davoodmehraban89/Factor-easy/actions/runs/40005084702) **SUCCESS**, log **126/126 PASS (2.8m)** plus Golden PASS; all three disposable Postgres jobs SUCCESS. [Security 40005084751](https://github.com/davoodmehraban89/Factor-easy/actions/runs/40005084751) **SUCCESS** (CodeQL + release safety; conditional Dependency Review SKIPPED). Tested local tree equals published tree `65e6d62586e2742073dcd6067aaa3433b02bc034`; terminal credentials expired, so connected GitHub API publication and credential-free fetch were used without changing file content. Final follow-up is evidence-only documentation; latest exact-head CI is linked in the PR description.
51 +- **Stop / exact next work:** Phase A implementation is reviewed/tested and the PR remains open, **not merged/deployed**. No Supabase production access/write, migration, financial-history change or server flag change occurred. Rollback is reverting this navigation PR. Owner-ISP login, physical printing, production two-user behavior and customer acceptance remain **NOT VERIFIED**. **Do not start Phase B** (grid on the current engine), or merge/deploy, without a new owner instruction; phases C–H retain their separate authorization/environment requirements.
docs/PHASE_A_NAVIGATION_2026-10-23.md
+9 -2
@@ -13,7 +13,7 @@ The direct registry/HTML adjustment is the implementation approach: a second nav
13 - [x] Remove assets/enterprise static rail buttons and enterprise/office/requests runtime rail injection. Preserve licensed launcher entries, navigation guards and command search. Provide a visible launcher button and relocate organization/access utilities outside the module rail with their existing permissions and handlers.
14 - [x] Check command availability against implemented views/renderers; omit unavailable actions without placeholder labels. Do not create new financial workflows for missing menu items.
15 - [x] Add real-DOM regression assertions, observe failure on baseline, implement, and run existing affected checks plus CI's static/behavioral and Chromium suite. Preserve existing print tests and Golden accounting expectations. Review the complete diff independently.
16 -- [ ] Commit/push this branch, open one scoped PR, inspect exact-head Quality/Security including disposable DB jobs, and record actual PASS / NOT VERIFIED evidence. Stop before Phase B and merging.
16 +- [x] Commit/push this branch, open one scoped PR, inspect exact-head Quality/Security including disposable DB jobs, and record actual PASS / NOT VERIFIED evidence. Stop before Phase B and merging.
17
18 ## Review focus
19
@@ -52,7 +52,14 @@ Environment note: initial existing PDF test failed before application edits beca
52
53 Two issues found during test/review were fixed and verified: enterprise uses its existing lazy view factory before first launcher navigation; bootstrap and changed extension URLs use `20261023-phase-a-navigation-v1` so a cached previous manifest cannot restore removed rail items. Bootstrap cache assertion was observed RED then GREEN. Existing mixed accounting/treasury enterprise tasks remain available through their guarded command-search routes as on baseline; no duplicate launcher catalog or permission-refresh behavior was invented.
54
55 -Exact PR-head CI (including three disposable PostgreSQL jobs) is pending remote execution; local Chromium/fixture success does not establish production accounting or customer acceptance.
55 +Remote verification for application/test commit **`c60f1735be8d108650381953443bfbb174464961`** in [PR #174](https://github.com/davoodmehraban89/Factor-easy/pull/174):
56 +
57 +- [Quality 40005084702](https://github.com/davoodmehraban89/Factor-easy/actions/runs/40005084702) **SUCCESS**. Job `120590839795` log explicitly reports **126 passed (2.8m)** and Golden Accounting PASS. All static/behavioral steps passed.
58 +- Disposable PostgreSQL jobs **SUCCESS**: `identity-wave5a-database` (`120590840268`), `c8-policy-database` (`120590840463`), `d1-request-database` (`120590839848`). These are the existing CI regression jobs, not the future Phase C ledger RPC tests.
59 +- [Security 40005084751](https://github.com/davoodmehraban89/Factor-easy/actions/runs/40005084751) **SUCCESS**: CodeQL and release/QA safety passed. Optional Dependency Review was **SKIPPED** under the existing workflow condition; it was not executed.
60 +- Remote tree `65e6d62586e2742073dcd6067aaa3433b02bc034` exactly matches the locally tested tree. Terminal Git credentials expired during publication; the connected GitHub API published the identical tree, then a credential-free public fetch verified it locally. No credential was added to repository content.
61 +
62 +This final documentation update records those observed results; it changes no application/test file. The latest PR-head checks and their exact SHA are also maintained in the PR description. PR remains open and unmerged; no Pages release or next-phase work was performed. Green fixtures/CI do not establish production accounting or customer acceptance.
63
64 ## Changed files
65