سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 3, 22:00 UTC
docs: define safe tenant-switch B01 scope and acceptance
davoodmehraban89 committed
Nov 24, 2026 at 11:13 UTC
c9437d786d38662d0f86702f752e98546820a789
1 file changed
+6
PROJECT_STATE.md
+6
@@ -682,3 +682,9 @@ Next action: run and inspect Quality on the latest PR212 head. If any browser te
682
- Draft PR251 https://github.com/davoodmehraban89/Factor-easy/pull/251, branch `integration/finora-execution-20261124`. Preimplementation decision be363b1; transfer commit 40226be28dece88b27103fdefa0dd673bac21c1b. Compare against parent verified exactly 14 paths, no SQL/migration changes; ancestry preserves PR234 UI and JWT QA. Exact CI was not yet returned at observation. PR250 historical failure: Quality 45348728186 (old Phase5 reload assertion).
683
- Preserve old phase5 restore/immutable-history tests; reconcile only the final two conflict assertions to the owner's new policy: no automatic reload, retained full datastore/snap/version state, pending pause, no automatic RPC retry for both 23505 and P0001. This is a stronger safety assertion but not evidence of successful user-controlled conflict resolution. Explicit recovery/reconciliation UX and safe tenant switch of pending work still need acceptance, including network/ambiguous write recovery; do not mark B complete.
684
- Retain original PR250 charter and updated audit as new files, append canonical status, keep prior history. No test run locally (git DNS unavailable), no production access, no merge. Next: verify actual exact-head Quality/WP1/WP2/Security including Phase5 and source/generated Pages pending-form tests; if failure inspect job steps/logs without weakening expectations. PR249 remains excluded from code; preserve its useful adapter/delete proof for later selective review. Independently reviewed PR242 #223 QA has four strict browser expected-RED scenarios; reuse existing QA, no duplicate implementation. Check PR242 exact-head CI and lineage before importing its tests. All six issues remain open.
685
+
686
+
687
+### 2026-11-24 — FIN-B01 — safe voluntary organization switch (decision before implementation)
688
+- Owner continues FIN-INTEGRATION-A01. Base PR251 99fb2d47d24f8066262b8b43dba0c8ad0082c848; exact WP2 45349424265 and Security 45349424198 SUCCESS, Quality 45349424243 passed static steps and browser stage pending, WP1 45349424333 in progress. A01 not accepted. Use stacked disposable candidate `fix/finora-b01-safe-org-switch-20261124` so A01 CI can finish without cancellation.
689
+- Source-proven B01 gap: switchFinoraOrganization invalidates context before auth/read, changes selected organization before success, then pullAll overwrites previous dirty graph. Stage target identity and data separately; reject voluntary switch if paused/dirty/in-flight or if old state changes during async reads; only publish verified target snapshot after all checks. Reject stale membership read from old tenant. Preserve forced membership revocation purge and stale-ACK tests. No change to server/RLS or historical records.
690
+- Acceptance: targeted Node VM positive clean switch, pending/paused/running rejection, edit during identity and data reads, rejected read, wrong target, and forced round-trip stale ACK; verify browser/static/full exact SHA CI. Recovery from ambiguous writes remains separate B02. No production work, no merge.