سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 3, 22:00 UTC
docs: define FIN-B02 bounded CAS recovery and regressions
davoodmehraban89 committed
Nov 24, 2026 at 11:24 UTC
e9967dc0288c3d477040b5fcb8ebc2feccd51c6b
1 file changed
+5
PROJECT_STATE.md
+5
@@ -695,3 +695,8 @@ Next action: run and inspect Quality on the latest PR212 head. If any browser te
695
- Files: js/organization-rbac.js, js/bootstrap.js, scripts/pending-sync-preservation.test.mjs, cache assertion if present; docs. Targeted tests cover clean switch, four dirty/inflight states, edits during awaits, read/identity failure, concurrent switch and retained stale completion. Exact-head CI not yet observed; not accepted. No SQL or Production. B02 deliberate recovery from paused/ambiguous writes is open, separate; next inspect all A01/B01 gates and then B02. No new implementation of same engine.
696
697
- B01 gate follow-up: initial candidate 7f20ad848785da04a051bbaf3ce993444c6aa3fc on Draft PR252. Quality 45350300174, WP1 45350300134 and Security 45350300148 triggered; WP2 absent because prior path filter omitted organization/sync. Expand filter (no gate removed) and test actual membership-revalidation source for stale tenant response and authoritative current revocation purge. Exact final SHA and run evidence in PR252; not accepted until actual pass.
698
+
699
+
700
+### 2026-11-24 — FIN-B02 — bounded reconciliation decision before implementation
701
+- Parent PR252 exact 3fd33525ad83408e55a78842c7a8663d9a51b436; Security/WP2 PASS, Quality/WP1 in progress. PR251 99fb2d4 exact WP1/WP2/Security PASS; Quality 45349424243 failed browser with 258 passed/2 failed: operational settings mock bypasses initial pull and mutates datastore before read; invoice transient recovery no longer retries. Keep both acceptance contracts; fix fixture by seeding mock server and real pull; never disable hydration guard. Remove artificial settings-array deletion before read (would be a legitimate dirty-state conflict).
702
+- Scope: same CAS batch, no new intent/rebase; only ambiguous network failure on upsert-only batch. Scoped read-back of record IDs/version/content, classify entire batch against exact preimage or exact intended postimage; if all unchanged allow one bounded replay of identical request; if all match desired postimage record state equivalence (not proof of actor/audit/transaction receipt); otherwise pause with no mutation/retry. No automatic recovery of deletes or permission/conflict errors. Preserve newer local edits and tenant/snapshot guards. Tests for precommit, lost ACK, divergent and partial state, tenant change, delete and read failure; retain browser transient recovery. No SQL/Production/merge. B02 still candidate, not accepted. Deliberate resolution UX for divergent state remains separate.