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

ci(a02): verify full private ZIP/SQL helper orchestration with synthetic test and no owner data

davoodmehraban89 committed Oct 30, 2026 at 22:16 UTC 9b806ce9d1aba5a2c63f772cba436ea0428470b8
1 file changed +15
.github/workflows/pr-quality-gates.yml
+15
@@ -138,6 +138,21 @@ jobs:
138 $report.canImport -ne $false) {
139 throw 'A02 synthetic LocalDB restore did not satisfy safety/reconciliation contract'
140 }
141 + - name: Owner-local Holoo pipeline safety selftest (synthetic only)
142 + shell: pwsh
143 + run: |
144 + $output = & powershell.exe -NoProfile -NonInteractive -ExecutionPolicy Bypass -File './scripts/a02-private-owner-local-lab.ps1' -Mode Test
145 + if ($LASTEXITCODE -ne 0) { throw 'A02 private lab synthetic safety test failed' }
146 + $report = ($output | Out-String | ConvertFrom-Json)
147 + if ($report.status -ne 'private-lab-synthetic-orchestration-passed' -or
148 + $report.checks -ne 4 -or
149 + $report.ownerBackupUsed -ne $false -or
150 + $report.sqlServerInstalled -ne $false -or
151 + $report.restoreExecuted -ne $false -or
152 + $report.financialMigrationPerformed -ne $false -or
153 + $report.canImport -ne $false) {
154 + throw 'A02 private lab may have breached synthetic no-write contract'
155 + }
156 - name: Build Tauri installer
157 run: npm exec tauri build
158 - name: Inspect produced Windows x64 installer and checksum