سامانه صدور فاکتور و حسابداری
docs: record live license/form findings and gated follow-up
davoodmehraban89 committed
Oct 14, 2026 at 20:37 UTC
8060e68dbe6cdbf9965ab9e3dd717c5246fd0847
1 file changed
+5
PROJECT_STATE.md
+5
@@ -668,3 +668,8 @@ Owner reports login blocked with generic 'check internet/VPN' network error on l
668
- **Exact protected-main SHA gate verified:** Quality **`38230349289` SUCCESS**, Security **`38230349290` SUCCESS**, Release Gate **`38230688599` SUCCESS**, gated Pages deployment **`38230726054` SUCCESS**. Earlier duplicate Release `38230517388` was CANCELLED, duplicate Pages `38230704316` SKIPPED; excluded from successes.
669
- **Honest external check:** The authorized remote Windows machine `DESKTOP-71SJ63M` was **offline** when post-publish HTTP parity check was attempted; alternate public fetch was inaccessible. Therefore GitHub proves SHA-gated Pages deploy but **direct domain HTTP parity and owner's actual observed latency not independently verified in this last check**. Owner should hard-refresh once at `factoreasy.ir`, record approximate time to see login and time after sign-in; no password/session/network token disclosure. A remaining possible factor is `enterApp()` awaiting `fetchCurrentUser()` and serial tenant `pullAll()` after authentication, not changed without data-consistency tests.
670
- **Acceptance:** Focused Phase-0 startup/performance **FIX_IMPLEMENTED / CONTROLLED_QA_PASSED / PAGES_DEPLOYED**; **OWNER_REAL_ISP_BENCHMARK_OPEN**. F0-01/02/03/04/07 remain unaccepted; Phase 0 **OPEN**. No Auth/RLS/roles, server schema, Supabase data, financial posting or account credentials changed. Rollback: revert PR #100 and rerun guarded Pages; no data rollback.
671
+
672
+### 2026-10-14 Owner-directed company form/license interaction follow-up — IN PROGRESS
673
+- Owner authorized autonomous non-destructive fixes and asked to continue execution in this chat without routine narration. Read-only live TinyFish confirmed dashboard expired subscription and successful initial authentication; second navigation run timed out before reaching company editor, so real form write behavior remains UNVERIFIED.
674
+- Code evidence: `js/core.js` `canWrite()` blocks expired subscription; `js/companies.js` `commitSaveCompany()` calls `requireWrite()`; `js/organization-rbac.js` selects organization license and overwrites `user.subscription`, which can explain a mismatch with an account-level lifetime license. No database license mutation authorized or performed; do not bypass server licensing/RLS.
675
+- PR #140 company-form action-state tests Quality and Security passed at original head `999e4324ac81d88ab0a220c3639f09fae553de94`, but protected-main merge rejected by 3 required status checks. Next: align company-form button affordance with actual write permission; retest; check required status contexts, then merge only if gates pass. Live organization license and financial records remain unchanged.