سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 3, 17:00 UTC
docs(state): record verified offline-only OTP preparation and zero live SMS (#111)
davoodmehraban89 committed
Oct 12, 2026 at 22:59 UTC
2a3ff41a19f622abb788afd98ff51276011ef03a
1 file changed
+7
PROJECT_STATE.md
+7
@@ -75,6 +75,13 @@ The latest user message is the sole source of new instructions. Read AGENTS.md t
75
- **Observed Quality head `b6e72973a45bd48f3b2ad28f31a4da54c8094633`:** GitHub [Quality run `38296251394`](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38296251394), **attempt 2 SUCCESS**, 96/96 Chromium PASS, Golden accounting PASS, OTP synthetic signed-hook/provider regression PASS, three isolated PostgreSQL suites PASS; [Security `38296251305`](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38296251305) SUCCESS. First attempt had 95/96 Chromium with old F0-06 light-theme luminance assertion failing (reported 0.456 < 0.5), but no OTP regression; reran exact code job without weakening or changing the visual assertion and passed 96/96. This *documentation follow-up* commit still requires a new exact-head validation before merge.
76
- **Acceptance still OPEN:** Kavenegar template approval/real delivery/cost, staging Edge deploy with signature verification and `verify_jwt=false`, protected server secrets, Supabase Auth phone provider & SMS hook configuration and real-account mobile binding must receive separate explicit owner approval and testing. NO automatic signup or newly created unrelated Auth user is allowed during legacy identity migration. Phase 0 F0-01 owner-real-ISP sign-in and Phase 0 as a whole remain OPEN.
77
78
+### 2026-10-12 Kavenegar OTP Stage 0 — SERVER SOURCE + OFFLINE QA MERGED / SMS NOT ENABLED
79
+- Owner confirmed **approve preparation, not Kavenegar template approval**. Kavenegar `FinoraLogin` approval, live credit, delivery and message cost remain **NOT VERIFIED**. Do not silently progress to live SMS.
80
+- [PR #110](https://github.com/davoodmehraban89/Factor-easy/pull/110) squash-merged to `main` commit **`6d0882810ca66e105f2c80c745daf6bc4dcfb88b`**. Committed a **disabled** server-only Supabase Auth Send SMS Hook and Kavenegar sender, signed/raw-body/expiry/phone/token guards, 3.5s external provider deadline, synthetic offline tests under Quality, and staged operational instructions. `FINORA_KAVENEGAR_OTP_ENABLED` is deliberately unset; no key in repo.
81
+- **Exact runtime main CI:** [Quality `38297230687`](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38297230687) SUCCESS, `96/96` actual Chromium, Golden accounting PASS, synthetic Kavenegar OTP PASS, disposable C8/D1/identity PostgreSQL jobs PASS. [Security `38297230690`](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38297230690) SUCCESS; [Release Gate `38297468930`](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38297468930) SUCCESS; [gated Pages `38297514635`](https://github.com/davoodmehraban89/Factor-easy/actions/runs/38297514635) SUCCESS. Duplicate Release `38297363249` CANCELLED and Pages `38297498599` SKIPPED are not successes.
82
+- **Independent Supabase deployment inspection:** `list_edge_functions` still returned only `admin-user-management` and `finora-stripe-qa-read`, neither the new SMS hook nor phone Auth settings activated or modified. No SMS sent, no new Auth users created, no financial DB writes/RLS/schema changes. Existing email/password/Google login remains untouched. User's Desktop Commander device available; checkout `C:\Temp\Factor-easy` is stale with 2189 untracked files and was not edited.
83
+- **Remaining independent activation authorization:** vendor approval, secure server secrets, hook deployment + verify_jwt=false, enabling Supabase phone Auth and signed Send SMS hook, validated existing-user phone linking (never duplicate `auth.users.id`), SMS delivery costs/test number, CAPTCHA/rate limiting/replay dedupe plan, staged mobile UI and affected owner ISP acceptance. **No next step may infer any of these authorized. F0-01 and Phase 0 OPEN.**
84
+
85
## Current change ledger
86
| 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. |
87