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

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

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

Synced Dec 4, 01:45 UTC

docs: record WP1-WP3 proof and next journal adapter scope

davoodmehraban89 committed Nov 17, 2026 at 13:49 UTC dec9515bcd0f25d09e87a64f15ce46d3b450110f
1 file changed +7 -1
PROJECT_STATE.md
+7 -1
@@ -351,4 +351,10 @@ Owner requests layer-by-layer click/functional testing of all controls and compa
351 - WP1 job completed all stages: expected RED baseline; isolated financial contract; correction UP/DOWN/UP and retained history; reversal dimensions; manual update guards; NULL revision; complete graph read; concurrent graph snapshot; full candidate conservative DOWN/UP; synthetic evidence upload.
352 - The full candidate DOWN/UP step reports 11 prerequisite and 8 correction migrations, baseline functions/ACLs/triggers restored, retained rows unchanged, and D1/D2 enforced again in the disposable DB. This is not a Production rollback rehearsal.
353 - Post-CI review found the live UI is not yet using the dedicated journal RPC surface: `journal-engine.js` mutates local datastore and calls `saveDatastore`; `journal-ui.js` invokes synchronous legacy methods; `sync.js` sends generic diffs via `finora_sync_records`. Browser workflow tests mock this generic sync path and do not establish dedicated RPC integration.
354 -- PR206 remains Draft/unmerged. Next package: async journal repository adapter for create/update/post/delete/reverse/read-graph, server response reconciliation, version/idempotency/permission/network tests, then source workflow adapters. Independent SQL/ACL/RLS and live Auth/JWT/PostgREST/schema parity remain mandatory gates.
\ No newline at end of file
354 +- PR206 remains Draft/unmerged. Next package: async journal repository adapter for create/update/post/delete/reverse/read-graph, server response reconciliation, version/idempotency/permission/network tests, then source workflow adapters. Independent SQL/ACL/RLS and live Auth/JWT/PostgREST/schema parity remain mandatory gates.
355 +
356 +### 2026-11-17 — WP1/WP2/WP3 disposable proof completed; next work is client repository integration
357 +- Exact candidate SHA `b37ec408290aeb07fa20e1b362ec87cb524e4a2f` completed GitHub WP1 run `44057197824` SUCCESS, Quality `44057197817` SUCCESS, Security `44057197758` SUCCESS, and Free Supabase Local WP2/WP3 `44057197793` SUCCESS. WP1 both jobs passed: source-derived disposable ledger suite, all selected negative/behavioral SQL tests, two-session concurrency, correction UP/DOWN/UP, reversal-dimension RED/GREEN and rollback, 17 manual-guard negatives, 16 NULL-revision mutation rejections, 1003-row graph/RLS/security audit, concurrent graph snapshot, and full candidate conservative DOWN/UP (11 prerequisites + 8 corrections). 80 synthetic evidence files uploaded as artifact `14317213365`, SHA256 `8a1cc03f0675cf24c9095cb46850b6ec80c925bfa21816fc5ada336d65e5d52a`.
358 +- WP3 strict tenant-isolation E2E exact SHA passed after tightening denial assertions to HTTP 401/403; WP2 Auth/JWT organization membership isolation also passed. Quality static/browser and independent C8, D1/D2 and identity database jobs all passed. PR #211 remains Draft; PR #206 (WP1 DB candidate) remains Draft. Neither has been merged. No Production Supabase access/write, migration, deployment, or posted financial record mutation occurred.
359 +- Explicit limits: WP1 harness is source-derived disposable PostgreSQL and is not production schema parity or hosted Auth/JWT/PostgREST acceptance. Full candidate DOWN/UP was disposable only. Eleven prerequisite DOWN scripts are not each independently rehearsed by the correction-cycle test (the separate full candidate conservative DOWN/UP is a distinct test). Browser UI still does not use the dedicated journal RPC surface: `journal-engine.js` and `journal-ui.js` retain synchronous local datastore operations and `sync.js` generic `finora_sync_records`. Therefore do not claim the ledger is fully server-authoritative or merge/release this candidate.
360 +- Next authorized work after owner continuation: a separate feature branch for the async journal repository adapter and UI integration, scoped first to manual journal lifecycle (create/update/post/delete/reverse/read graph). Add tests for server reconciliation, exact version/CAS, idempotent ambiguous retries, duplicate submissions, membership revocation, organization switching, pending generic sync, offline/timeout/committed-but-refresh-failed states, and no generic sync writes for journal collections. Preserve all legacy source workflows; do not migrate sales/purchases until adapter integration and manual lifecycle are proven. No new schema migration or Production operation in this package. Follow with sales/purchase source RPC adapter only after a separately reviewed test-backed package.