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

docs(finora): log scoped PR219 WP1 disposable DB URL CI diagnosis before edits

davoodmehraban89 committed Nov 23, 2026 at 22:49 UTC 64e1589a6c96d94abd19cf920aebb8df6b5f48a9
1 file changed +7
PROJECT_STATE.md
+7
@@ -438,3 +438,10 @@ Candidate snapshot `3d71b40a36d075ebf8e1826bc73cb87440b9af53` (the application a
438 The application/migration candidate has passed WP1, WP2, and Security on the validated snapshot. PR212 is **not complete or merge-ready yet** because Quality must be rerun against the latest head after the browser-mock correction, including the operational-settings persistence test.
439
440 Next action: run and inspect Quality on the latest PR212 head. If any browser test remains red, diagnose and fix the actual failure without deleting tests or weakening assertions. Then re-check all required CI gates on the final candidate commit. Keep PR212 Draft and do not merge or deploy without the owner's explicit approval.
441 +
442 +
443 +### 2026-11-23 — FIN-QA-219-WP1-DBURL / scoped CI investigation decision BEFORE edits
444 +- Owner says continue execution. Main remains `dab1a45fcfc4f12e675cfe055e477138cd3e99fa`. PR219 Draft head `ab14e46abec4b8ef1f36c4f219d9a9ba6d99bc6d` still has 4 failing workflows: Quality source `js/journal-rpc.js:265` literal backslash-n SyntaxError, Security same generated JS SyntaxError, WP2 synthetic direct-SQL journal seeding `FINORA_ORG_FORBIDDEN`, and WP1 new local lifecycle SQL step invokes `psql "$DB_URL"` without restoring step-local `DB_URL` so psql defaults to nonexistent socket. The last defect is test/CI plumbing, not yet SQL lifecycle proof.
445 +- Create *child QA-only branch* `qa/pr219-wp1-disposable-dburl-proof-20261123` strictly on PR219 exact SHA to isolate one reproducible WP1 CI gate. No product JS, migrations, journal core, grants/RLS/Auth, protected main, production, data history or release edits. First change only the WP1 `.github/workflows/wp1-ledger.yml` lifecycle step to source fresh `supabase status -o env`, export `DB_URL` in the SAME step, reject nonlocal DB addresses, execute the existing SQL fixture. Do NOT treat a `psql` connection fix as a lifecycle PASS; run actual GitHub WP1 exact-head and inspect log before any further change. Keep branch Draft and stacked; WP2 Quality Security may remain parent-broken. Existing QA PR244 remains separate and untouched.
446 +- **Preliminary unexecuted SQL fixture hazards:** `supabase/tests/wp4_journal_document_lifecycle.sql` ends last anonymous block with `DO $` / `END $;` rather than `DO $$` / `END $$;`; test file creates `auth.users` but doesn't itself insert an owner organization/company/FY/posting accounts for synthetic UUID `b900...`, and no repo `supabase/seed.sql` was found. Only after real test log verify syntax/bootstrap root and consider narrowly scoped *test fixture* repairs on the same QA child; never change application migration to silence failures.
447 +- Expected acceptance: actual WP1 local stack moves past disconnected `psql` into SQL and reports either verified lifecycle test PASS or precise SQL fixture/product failure; other jobs must not be falsely declared clean. Precommit/write decision now; result follow-up append with tested SHA and CI. Product six-stage A90/B50/C20/D55/E53/F10 unchanged.