فینورا پرو - سامانه جامع حسابداری و صدور فاکتور

test(holoo): gate live LAB signals behind explicit integration opt-in

Davood Mehraban committed Nov 23, 2026 at 08:44 UTC 2dab2a7e74280f67901e275b603c61ed5e8c89ef
2 files changed +36 -1
PROJECT_STATUS.md
+33
@@ -1,5 +1,38 @@
1 # PROJECT_STATUS — Factor-easyPro
2
3 +## RESUME_PACKET — 2026-11-23 / CI recovery
4 +
5 +- schema_version: 1
6 +- updated_at_utc: 2026-11-23T05:12:22.783Z
7 +- run_id: finora-20261123-pr198-ci-recovery-01
8 +- repository: davoodmehraban89/Factor-easyPro
9 +- active_goal: Repair PR #198 Windows CI without granting LAB access or weakening the production NO-GO
10 +- accepted_scope: Test harness isolation, accurate PR metadata and evidence; no real SQL data or production changes
11 +- current_phase: F0 verification / P0 CI regression; mapping_to_A_B_C: A — Reliable Core
12 +- worktree_path: C:\Users\Davood\Documents\Factor-easyPro-QA\.worktrees\factor-easypro-holoo-lab-phase1-20261111
13 +- branch: docs/holoo-lab-stabilization-phase1-20261111
14 +- baseline_commit: 32222c47a8010555f8e320ed4736e05fd7575000
15 +- implementation_commit: not yet committed
16 +- active_pr: #198 (open; actual diff 45 files at baseline, not docs-only)
17 +- dependent_prs: none for #198; separately unmerged finance stack #183 → #190 → #191 → #192 → #193 must be evaluated independently
18 +- local_changes: LAB worktree initially clean; parity worktree has tracked and untracked unpublished changes; root main behind origin/main
19 +- unpublished_work: parity worktree remains untouched; do not overwrite or commit its contents as part of #198
20 +- verification: baseline 32222c Windows runs 45115679473 and 45115679483 failed due to unintended live-LAB test on public runners; on Aram Windows, Node 24.21.0, npm ci --ignore-scripts succeeded; npm test 336 pass / 0 fail / 15 skip out of 351; npm run build success; npm audit --omit=dev --audit-level=high found 0 vulnerabilities; Windows CI for corrected code not yet run
21 +- delivery_state: local_verified / not yet committed or pushed; no merge or release
22 +- active_task_id: FINORA-CI-PR198-LAB-GATE
23 +- task_state: Implemented — Not Verified (CI outstanding)
24 +- last_completed_action: Added explicit HOLOO_SQL_INTEGRATION=1 test opt-in and verified local regression, build and audit; did not run live SQL
25 +- interrupted_action: none
26 +- next_action: Review git diff and commit only PROJECT_STATUS.md plus tests/holoo-financial-procedure-signals.test.mjs; push existing #198 branch, verify exact-head Windows CI and revise inaccurate PR description
27 +- blockers: SQL LIVE readiness unverified for public runners (expected: remain fail closed; requires restricted approved LAB to clear); finance PR chain not merged (requires review/approval)
28 +- approvals: permission for isolated development, tests, branch push and draft PR updates; no merge/main push/release/database write permission
29 +- security_gates: synthetic unit tests allowed; private LAB SQL opt-in and preflight required; operational DB writes NO-GO
30 +- do_not_repeat: do not run live LAB integration during generic Windows CI; do not reimplement parity financial fixes already in dirty worktree or PR #193
31 +- known_limitations: current CI failure; A03/A04 accepted in phase A manifest, eight remaining gates not accepted; no independent financial sign-off or physical print verification
32 +
33 +---
34 +
35 +
36 > **نقطه ورود ثابت به پروژه** برای هر چت، توسعه‌دهنده یا اجرای جدید. ابتدا این فایل و سپس اسناد لینک‌شده را بخوانید. این فایل «وضعیت» است، نه سند قابلیت‌های اثبات‌نشده.
37
38 **تاریخ بازبینی سند مرجع:** 2026-11-11
tests/holoo-financial-procedure-signals.test.mjs
+3 -1
@@ -18,7 +18,9 @@ test('procedure signals are catalog-only and preflight-gated', () => {
18 assert.doesNotMatch(source, /\bEXEC(?:UTE)?\s+dbo\./i);
19 });
20
21 -test('live lab signal output is explicitly non-authoritative', { skip: process.platform !== 'win32' }, () => {
21 +// The Windows CI runner has no approved private SQL LAB. Only explicit LAB integration
22 +// runs may execute the read-only metadata collector; its own preflight still fails closed.
23 +test('live lab signal output is explicitly non-authoritative', { skip: process.platform !== 'win32' || process.env.HOLOO_SQL_INTEGRATION !== '1' }, () => {
24 const run = spawnSync('powershell.exe', ['-NoProfile','-NonInteractive','-ExecutionPolicy','Bypass','-File',script,'-Json'], { encoding:'utf8', timeout:60000 });
25 assert.equal(run.status, 0, run.stderr);
26 const report = JSON.parse(run.stdout);