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

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

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

Synced Dec 4, 14:15 UTC

docs(finora): close exact-head four-gate QA and clarify WP1 full rollback scope

davoodmehraban89 committed Nov 23, 2026 at 16:21 UTC ffabb98821166392504939f1a59f104066bf99e3
1 file changed +11
PROJECT_STATE.md
+11
@@ -838,3 +838,14 @@ Next action: run and inspect Quality on the latest PR212 head. If any browser te
838 - **Still actual P0 at exact WP2 SHA:** restricted commerce:create non-owner can still POST sale and purchase with no accounting:approve; log includes `FINORA_ISSUE229_APPROVAL_EXPECTED_RED` and `FINORA_ISSUE229_PURCHASE_APPROVAL_EXPECTED_RED`. Issue223 PR242 four browser known-product-REDs likewise remain. None was converted to product PASS; no production or per-company RLS claim.
839 - On tested code SHA `b309e240...` Security [#45149625790](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45149625790) SUCCESS. Quality [#45149625327](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45149625327) and WP1 [#45149625302](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45149625302) were IN PROGRESS at this record; verify independently. **After this append, final branch SHA necessarily changes**; prior per-SHA CI is not a substitute for new final SHA CI. Real browser/owner-ISP and actual production tenant isolation remain NOT VERIFIED. PR243 Draft, code owner Codex-main review pending, A90/B50/C20/D55/E53/F10 unchanged.
840 - Next owner: combine PR242 active-company/warehouse/draft/sign/transfer read-model correction with PR240 stock lifecycle under ONE inventory policy, and separately close Issue229 independent approval bypass via real JWT restricted permission gate; rerun browser expected REDs to ordinary PASS, real JWT rollback/concurrency/fiscal lock, and protected review before integration. No financial core rewrite in this QA child.
841 +
842 +
843 +### 2026-11-23 — FIN-QA-223-JWT / exact-final-SHA four-gate closeout and WP1 rollback clarification
844 +- **Final QA head at this checkpoint:** `e4168eb2765e355fda4ffbd28eca2e69de946165`, Draft [PR243](https://github.com/davoodmehraban89/Factor-easy/pull/243), base PR242 branch `qa/finora-issue223-manual-kardex-browser-red-20261123` @ `af07e7d7888dbb25db257f255579c04aa8c1f189`; parent QA stack PR240 remains separate. Main was independently read from `refs/heads/main`: `dab1a45fcfc4f12e675cfe055e477138cd3e99fa`; no main update/merge. Latest GitHub Release API returned 404 (no GitHub Release object); Pages publication is a separate gate and must not be inferred from this QA branch.
845 +- **All four final-head workflows COMPLETED SUCCESS:** Quality [45150129568](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45150129568): 272/272 Chromium and 4/4 generated Pages, zero test failures/cancellations/skips; Security [45150129711](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45150129711): SUCCESS (CodeQL + release/safety invariants; optional Dependency Review SKIPPED, not PASS); WP2 [45150129656](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45150129656): SUCCESS with actual `WP2_PHASE5_STOCK_JWT_ISOLATION_PASS`, `WP2_PHASE5_POSTED_IMMUTABILITY_PASS`, and explicit `WP2_PHASE5_ACTIVE_COMPANY_NOT_RLS_SCOPE`; WP1 [45150129613](https://github.com/davoodmehraban89/Factor-easy/actions/runs/45150129613): SUCCESS, both local stack and ledger-negative/behavior jobs.
846 +- **WP1 rollback interpretation corrected after inspecting the executed source/test log:** `wp1-correction-cycle.mjs`'s narrow first correction-only cycle emits `eleven prerequisite DOWN scripts NOT VERIFIED`; this statement is specifically about that narrow cycle. The later `wp1-prerequisite-rollback.mjs` in the SAME successful WP1 job explicitly reapplies all **11 prerequisite migrations and 11 correction migrations**, rolls all 22 back in reverse order, checks unchanged posted voucher/line/audit/counter/record fingerprints, restores every baseline function definition + EXECUTE ACL and every baseline trigger, verifies new privileged functions remain inaccessible, reapplies all 22 UP and confirms D1/D2 direct-write guards again. It prints `PASS full candidate DOWN/UP: eleven prerequisites and 11 corrections; baseline functions/ACLs/triggers restored, retained rows unchanged, D1/D2 enforced again.`
847 +- **Remaining limitation of that rollback proof:** the rollback script itself labels scope `conservative rollback preserves inert structures/indexes; NOT pristine schema or production parity`. Therefore the earlier blanket phrase "eleven prerequisite DOWN scripts NOT VERIFIED" is superseded for function/ACL/trigger restoration and retained data by this later full candidate DOWN/UP test; do **not** upgrade it into proof of a byte-for-byte pristine schema rollback or Production schema parity. WP1 green SQL/concurrency is source-derived disposable Postgres, not a production Auth gateway/production parity test.
848 +- **Quality diagnostic note:** one console diagnostic reported `QA_NETWORK` / isolated network unavailable during a synthetic negative-path case; all 272 Chromium and 4 Pages assertions still completed PASS. It is not a live production outage or a failed test. No tests skipped/cancelled.
849 +- **Product boundaries unchanged:** real JWT proves organization-level isolation and existing posted stock/count mutation guards only. Same-org A1/A2 visibility is expected under organization RLS; active-company Phase5/Kardex read model remains PRODUCT P0. Issue229 sale/purchase non-owner `commerce:create` without `accounting:approve` still emits both expected-RED markers in final WP2. PR240/242 browser expected-RED inventory failures remain unresolved. No application JS, SQL, migration, RLS/Auth/grant, financial history, Production, main, merge or release change.
850 +- **Exact diff:** 4 files, 230 insertions, zero deletions against PR242 base; test script and WP2 workflow blobs identical between tested code SHA `b309e240be66137ccf042aa728935eaf31130662` and docs-inclusive head `e4168eb...`. No independent Codex-main review submitted; PR remains Draft. The append below/after this note creates a new SHA and must trigger/verify new exact-head gates before any acceptance.
851 +- **Six-stage estimate remains unchanged:** A90/B50/C20/D55/E53/F10. This is QA proof and continuity work, not product phase completion.