@davoodmehraban89 / Factor-easy-2 Mirror · read-only / commits / 3445a87
Fork 0

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

Mirrored from https://github.com/davoodmehraban89/Factor-easy.git

Synced Dec 3, 22:00 UTC

docs(state): close out reconciled PR #102 with verified test evidence (#103)

davoodmehraban89 committed Oct 12, 2026 at 18:08 UTC 3445a87592341512dea56745e291c10e5225d8b4
1 file changed +5
PROJECT_STATE.md
+5
@@ -22,6 +22,11 @@ The latest user message is the sole source of new instructions. Read AGENTS.md t
22 - **Direct PostgreSQL permission audit, read-only:** **18/18 `public` tables have RLS enabled**. In `private`, **3/10 RLS enabled**, **7/10 disabled**. Despite generic Supabase RLS-warning wording alleging client exposure, actual `has_table_privilege` checks show **zero direct SELECT/INSERT/UPDATE/DELETE grants for both `anon` and `authenticated` on all ten private tables**; anon also lacks private-schema USAGE. Treat seven disabled-RLS tables as a recorded defense-in-depth/security review item **not verified as publicly accessible**, not a reason to enable RLS or modify grants without approval. This does **not** prove every SECURITY DEFINER RPC authorization path safe. Security Advisor: three private RLS-no-policy INFO, 21 authenticated-callable SECURITY DEFINER WARN and one leaked-password-protection-disabled WARN; performance advisor identified two unindexed private scheduler FKs (review only). Public RLS predicate adversarial tests, authenticated production two-user isolation, and end-user browser tests remain NOT VERIFIED.
23 - **Reconciliation outcome:** updated the dated 2026-10-02 continuity snapshot with verified October 12 evidence while preserving historical entries, and distinguished current doc HEAD from released runtime. **Phase 0 remains OPEN, not owner accepted.** No product feature, finance data, accounts, Auth/RLS/role/schema, Supabase migration or deployment changed in this slice. Documentation branch only, rollback by reverting this entry. **Next safe step:** review/merge this documentation-only PR after exact-PR-head Quality/Security evidence; separately audit PR #58 archive parity read-only and obtain owner-session F0 acceptance evidence without credentials or financial writes.
24
25 +### 2026-10-12 live-state reconciliation — PR #102 merged, source and tests read back
26 +- The immediately preceding entry's `documentation branch only / pending merge` was the pre-merge checkpoint. Documentation-only PR [#102](https://github.com/davoodmehraban89/Factor-easy/pull/102), head `a053d2e3627105566c09d82475ff916fcd5e804e`, has now **MERGED** to protected `main` as `4be48f74a4add63d3f1dc8791ade6ce7c1e4c651`. Independent GitHub commit inspection confirms **only `PROJECT_STATE.md` changed**; main-branch content and new live-Supabase reconciliation entry read back intact.
27 +- **Exact PR-head verification:** Quality `38263379525` SUCCESS, static job `114859322898` logs **89/89 actual Chromium DOM PASS**, Accounting P0, double-entry, Golden and posted-history invariant PASS; disposable DB jobs `114859322415`, `114859323040`, `114859323233` SUCCESS. Security `38263379761` SUCCESS, CodeQL job `114859321621` and release safety job `114859321310` SUCCESS; Dependency Review `114859324783` SKIPPED. The post-merge main exact-SHA workflows for `4be48f74...` remain **NOT VERIFIED**, as do any owner-authenticated production F0-01/F0-02/F0-03/F0-04/F0-07, complete migration SQL parity and true adversarial RLS checks; these must not be inferred from CI or documented as COMPLETED.
28 +- **Outcome and rollback:** state reconciliation recorded and merged, **PHASE 0 STILL OPEN**; no application runtime, production ledger, Supabase schema/RLS/Auth/roles/migrations, or destructive data changed. Documentation-only rollback is a targeted revert; next independent safe task is read-only PR #58 archive-parity assessment, then owner-authorized browser acceptance against legitimate existing data with no confidential credentials in chat.
29 +
30 ## Current change ledger
31 | 2026-10-07 | Owner requested accounting/product usability refinement from live screenshots: automatic non-user-entered floating-detail codes, contextual in-product guides (especially accounting/chart/dimensions), remove duplicate product internal tax ID and use product code as internal item ID, strengthen in-control product/person search, introduce hierarchical product group/subgroup coding with deterministic 6-digit product codes, and keep sale/purchase commercial-document workspace layout stable while only semantic fields change. | **IMPLEMENTED / LOCAL VERIFICATION PASSED / CI PENDING** | Baseline main = `7e58c75f7d754f378d94ca3f356c1ae580aa7ee3`. Automatic dimension type/value codes, contextual guides, product-code-as-internal-ID, normalized multi-token search, and additive six-digit product coding implemented. Existing historical codes preserved. Commercial sale/purchase workspaces now share a stable `صدور سند تجاری` header/actions layout; duplicate purchase sidebar injection removed; the public selector is the single document-type selector and the legacy internal invoice-kind control is hidden. Local syntax/static/commerce/UX/accounting phases 2–6/Golden checks passed; protected-branch CI remains pending. |
32