فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
test(phaseA): fail closed unless combined native Windows financial, PDF, crash and benchmark evidence exists
Require all ten installed NSIS/Tauri/WebView2 financial/opening/return/backup cases, ten offline routes, 110-row RTL PDF (2+ pages), real native 10k products/50k invoices benchmark and force-killed importAll with zero restored rows before marking disposable Windows Lab successful. Both quality #38957782443 and integrated native Windows VM #38957782413 passed. Explicitly label physical printers, customer backups and independent financial QA untested. No release acceptance or public release.
davoodmehraban89 committed
Oct 16, 2026 at 23:26 UTC
d609413f4671e8531eeafae04d5c05e62cc0fb96
1 file changed
+52
scripts/windows-vm-native-lab.ps1
+52
@@ -162,6 +162,58 @@ try {
162
$crashVerified = Run-Native $freshExe $crashData 'crash-verify' $CandidateVersion
163
$summary.crashRestoreRollback = $crashVerified.crashRollback
164
165
+ # Full Phase A integration contract: a green partial job is not enough.
166
+ # Validate all essential paths on the SAME installed candidate before
167
+ # declaring the disposable VM laboratory successful.
168
+ $mandatory = @(
169
+ 'activate-accounting-and-inventory',
170
+ 'positive-opening-ledger-and-idempotency',
171
+ 'purchase-and-post-ledger',
172
+ 'partial-sale-and-inventory',
173
+ 'sale-return-immutable-stock-and-ledger',
174
+ 'purchase-return-and-stock-guardrails',
175
+ 'backup-and-atomic-rejection',
176
+ 'rtl-invoice-print-settings',
177
+ 'fiscal-close-atomic-guardrails',
178
+ 'opening-dry-run-rejects-existing-postings'
179
+ )
180
+ if (!$freshResult.nativeFunctional) {
181
+ throw 'Native installed financial matrix was not reported'
182
+ }
183
+ foreach ($scenario in $mandatory) {
184
+ if (!$freshResult.nativeFunctional.PSObject.Properties[$scenario]) {
185
+ throw "Required installed native scenario missing: $scenario"
186
+ }
187
+ }
188
+ if (!$freshResult.nativeOffline.simulatedOffline -or
189
+ $freshResult.nativeOffline.routesChecked -ne 10) {
190
+ throw 'All ten native offline routes were not verified'
191
+ }
192
+ if ($freshResult.nativePrint.pages -lt 2 -or
193
+ $freshResult.nativePrint.itemRows -ne 110 -or
194
+ $freshResult.nativePrint.physicalPrinter -ne 'not-tested') {
195
+ throw 'WebView2 multi-page RTL PDF evidence is missing or misrepresented'
196
+ }
197
+ if ($nativePerformance.nativePerformance.products -ne 10000 -or
198
+ $nativePerformance.nativePerformance.invoices -ne 50000 -or
199
+ $nativePerformance.nativePerformance.companyInvoices -ne 50000) {
200
+ throw 'Native 10k/50k actual IndexedDB performance coverage is incomplete'
201
+ }
202
+ if ($crashVerified.crashRollback -ne
203
+ 'killed-real-installed-Windows-WebView2-during-importAll-no-partial-rows-on-restart') {
204
+ throw 'A04 actual process-crash restore rollback evidence is missing'
205
+ }
206
+ $summary.integratedCoverage = [ordered]@{
207
+ installedFinancialScenarios = $mandatory.Count
208
+ offlineRoutes = 10
209
+ printPdfPages = [int]$freshResult.nativePrint.pages
210
+ benchmarkProducts = 10000
211
+ benchmarkInvoices = 50000
212
+ crashRestoreRowsRemaining = 0
213
+ independentHumanQA = 'not-covered'
214
+ customerBackup = 'not-covered'
215
+ physicalPrinter = 'not-covered'
216
+ }
217
$summary.status = 'PASSED'
218
Write-Output 'Verified fresh installation, NSIS in-place upgrade, retained v6 records, native login and Windows DPAPI'
219
Cleanup-Installed $freshDir