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

test: align connectivity checks with conflict-review cache contract

davoodmehraban89 committed Nov 24, 2026 at 11:40 UTC 99dae75b4b4f7a85ecbccacb5cafc4c2f7aac230
3 files changed +9 -1
PROJECT_STATE.md
+2
@@ -727,3 +727,5 @@ Next action: run and inspect Quality on the latest PR212 head. If any browser te
727
728 ### 2026-11-24 — FIN-B03-R1 — cache contract regression decision
729 - Exact PR254 8d05ff6 Quality 45353129104: targeted 90/90 PASS and ACK atomicity PASS; Login connectivity diagnostics failed at the literal previous bootstrap version. WP2 45353129119 and Security 45353129204 PASS; WP1 pending. Update cache contract to the actual new version and explicitly assert sync.js and organization-rbac.js share it; preserve every other diagnostic assertion. No product permission or accounting change. Reverify full CI, then prepare C01 design without accepting B prematurely.
730 +
731 +- B03-R1 candidate: exact current bootstrap, sync and organization adapter version assertions, with all other connectivity diagnostic checks preserved. No runtime or SQL change; exact new CI pending.
docs/EXECUTION_STATUS.md
+2
@@ -206,3 +206,5 @@
206
207 ### 2026-11-24 — FIN-B03 candidate
208 - Staged deliberate conflict review/discard, guarded fresh identity/membership, strict scoped snapshot, explicit consent, no server mutation. Cancel/failure preserves pending graph; ordinary reads remain blocked during pause. VM and browser regression cases added; CI pending, no acceptance or release.
209 +
210 +- B03-R1: 90/90 targeted and ACK atomicity PASS; original Quality blocked by stale bootstrap version assertion. Updated three exact version contracts, no runtime change. Recheck final SHA before acceptance.
scripts/login-connectivity-check.mjs
+5 -1
@@ -9,7 +9,11 @@ assert(html.includes('id="auth-connectivity-result" aria-live="polite"'),'Diagno
9 assert(html.includes('js/login-connectivity.js?v=20261110-login-bootstrap-v6'),'Missing versioned script');
10 assert(html.includes('js/core.js?v=20261110-account-read-v3'),'Production login controls must use new cache version');
11 assert(html.indexOf('<script src="js/login-connectivity.js?v=20261110-login-bootstrap-v6"')<html.indexOf('<script src="js/core.js?v=20261110-account-read-v3"'),'Connectivity handler script must execute before core (not just preload)');
12 -assert(html.includes('js/bootstrap.js?v=20261124-pending-context-v1'),'Parallel bootstrap must also be cache-busted');
12 +const bootstrap=fs.readFileSync('js/bootstrap.js','utf8');
13 +const conflictVersion='20261124-conflict-review-v1';
14 +assert(html.includes('<script src="js/bootstrap.js?v='+conflictVersion+'"'),'Parallel bootstrap must use the current conflict-review cache version');
15 +assert(html.includes('<script src="js/sync.js?v='+conflictVersion+'"'),'Sync runtime must use the current conflict-review cache version');
16 +assert(bootstrap.includes('"js/organization-rbac.js?v='+conflictVersion+'"'),'Organization adapter must use the same conflict-review cache version');
17 assert(html.includes('id="auth-login-button"')&&html.includes('id="auth-login-status"'),'Login control requires real readiness/progress feedback');
18 assert(core.includes('window.FinoraAppAssetsReady'),'Authenticated workspace must remain gated until all module scripts settle');
19 assert(core.includes('window.FinoraOrganizationContextReady')&&core.includes('organizationAccount'),'Profile and license lookup must wait for the organization account adapter');