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

docs(finora): record Issue238 real-browser negative acceptance scope

davoodmehraban89 committed Nov 22, 2026 at 22:25 UTC 2cdddd5efa1d60a6b7cac466220f22b19c9755f0
1 file changed +6
PROJECT_STATE.md
+6
@@ -719,3 +719,9 @@ Next action: run and inspect Quality on the latest PR212 head. If any browser te
719 - Corrected the existing `findUnsafePublicJournalIdentityRpcs` in [Draft PR237](https://github.com/davoodmehraban89/Factor-easy/pull/237): PostgreSQL `CREATE FUNCTION` grants EXECUTE to `PUBLIC` by default; a dangerous new public SECURITY DEFINER identity RPC lacking explicit GRANT must still trigger review unless the source has explicit REVOKE from PUBLIC and no renewed authenticated/anon/PUBLIC GRANT. Distinct migration with standalone GRANT for an existing `public.finora_journal_*identity` now triggers manual review, even without CREATE. Existing 5 PR219-shape alerts and posted-history migration safeguards remain.
720 - Expanded existing Node suite by **four tests**: implicit PUBLIC exposure, explicit REVOKE/renewed GRANT, standalone later GRANT and actual temporary-Git base→head grant-only diff blocked by CLI. **Heuristic limitation:** cannot prove effective catalog ACLs across all historical grants, `ALTER DEFAULT PRIVILEGES`, dynamic SQL or actual JWT authorization; real database/JWT testing is still Codex-main's obligation.
721 - Do not claim a result for the new SHA until exact-head Quality/Security/WP1 finish. WP2 only if actually triggered. No financial app runtime, migration SQL, grants/RLS/Auth, posted history, `main`, merge or deployment touched. Issue216 and Issue229 remain product P0 OPEN and estimated phase progress unchanged.
722 +
723 +
724 +### 2026-11-22 — FIN-QA-ISSUE238-LIVE-SAVE / pre-code owner continuation
725 +- Owner requested another concrete continuation. Live GitHub protected `main` `dab1a45fcfc4f12e675cfe055e477138cd3e99fa`; no new owner financial-core implementation seen. [Issue238](https://github.com/davoodmehraban89/Factor-easy/issues/238) documents client Save→local posting for receipt/payment and expense/income plus other financial producers, but has not had independently executed browser RED proof. Existing [Draft PR237](https://github.com/davoodmehraban89/Factor-easy/pull/237) HEAD `b2a9a6238eae5618840a17137bef8f91fe80a910` passed all three triggered Quality/WP1/Security gates, WP2 skipped by paths.
726 +- **Narrow QA-only scope:** create separate Draft child branch `qa/finora-issue238-save-browser-red-20261122` from this exact PR237 head, target PR237, and extend existing `scripts/accounting-document-workflow.spec.js` using its authenticated synthetic server browser harness. Execute **four** real DOM Save scenarios: receipt, payment, expense, income (including runtime `operations.js` override of `expenses.js`). Assert source→balanced linked journal, count/status and no immediate post under ADR216; label current result as expected PRODUCT RED **without masking unexpected states**: call `test.fail(true)` only after a strict exact known-broken fingerprint. A future correct draft state must be ordinary PASS, not an xfail; unexpected partial/unbalanced/orphan states must FAIL. Preserve existing tests and QA status docs.
727 +- No SQL/DB schema, RLS/Auth/grants, financial runtime JS, workflow, posted history, protected main, merger, hosted database or release changes authorized. This browser mock exercises the loaded UI/client sync but **cannot** prove real SQL JWT permission. Run Quality, WP1, Security exact-head and WP2 only if path-filtered run triggered. Independent Codex-main server change remains prerequisite; estimates unchanged and #216/#229/#238 open.