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

Capture failing C3 event ordering regression

davoodmehraban89 committed Sep 30, 2026 at 19:17 UTC 4a591be83a3b2415efbe8591c700e82902875a8a
1 file changed +4
scripts/office-slice-c3-check.mjs
+4
@@ -13,6 +13,10 @@ need(m,/office_classify_correspondence/i,'classification RPC');
13 need(m,/archive_classified/i,'classification evidence');
14 need(m,/office_archive_search/i,'server archive search');
15 need(m,/private\.can_access_record/i,'record-level archive authorization');
16 +const timeFile=fs.readdirSync(dir).find(x=>/office_c3_event_time_ordering\.sql$/.test(x));
17 +if(!timeFile)throw new Error('Office C3 invariant missing: event time ordering hardening');
18 +const tm=fs.readFileSync(path.join(dir,timeFile),'utf8');
19 +need(tm,/clock_timestamp\(\)/i,'monotonic event timestamp source');
20 const ui=fs.readFileSync('js/office-mature.js','utf8');
21 need(ui,/officeLoadArchiveIndex/i,'archive index loader');
22 need(ui,/officeClassifyPrompt/i,'classification UI');