فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
docs/a01-refund-auth-status-20261020
a02/strict-export-preflight-20261018
audit/a01-readonly-invoice-metadata-20261101
ci/a06-require-trusted-issuer-for-release
ci/main-postmerge-phase-a-validation-20261020
ci/phase-a-controlled-public-release
design/issue-5-commercial-corrections-adr
docs/a01-a02-a05-oct23-verified-evidence
docs/a01-cheque-endorsement-evidence-20261022
docs/a01-cheque-event-date-evidence-20261021
docs/a01-explicit-refund-reason-evidence-20261021
docs/a01-refund-auth-status-20261020
docs/a01-refund-trace-evidence-20261020
docs/a02-102-evidence-20261018
docs/a02-pr104-evidence-20261018
docs/a02-pr106-evidence-20261019
docs/a02-pr108-ten-tests-20261019
docs/a02-private-sql-backup-evidence-20261111
docs/a03-merge-status-sync-20261020
docs/a04-software-gate-acceptance-20261020
docs/feature-matrix-20261014
docs/finora-master-execution-playbook
docs/four-phase-execution-20261014
docs/four-phase-roadmap-20261014
docs/holoo-lab-stabilization-phase1-20261111
docs/holoo-runtime-schema-audit-20261111
docs/ops-142-governance-5-1-3-20261030
docs/phase-a-a01-a02-a06-a08-verified-evidence-20261023
docs/phase-a-a01-a05-a06-evidence-20261023
docs/phase-a-independent-acceptance-evidence
docs/phase-a-pr110-evidence-20261019
docs/project-status-phase-a-20261014
feat/a01-referenced-return-corrections
feat/a01-referenced-returns-on-main
feat/a02-atomic-opening-ledger-preflight
feat/a02-holoo-compatibility-preflight
feat/a02-holoo-declared-control-totals
feat/a02-holoo-explicit-csv-gate
feat/a02-holoo-safe-zip-intake-offline-webview2-20261030
feat/a02-offline-sql-server-provisioning-20261030
feat/a02-opening-balance-dry-run
feat/a02-opening-ledger-admin-ui
feat/a02-opt-in-isolated-sql-restore-executor-20261030
feat/a02-private-holoo-zip-staging-20261030
feat/a02-safe-isolated-restore-plan-20261030
feat/a02-sql-backup-header-verifyonly-20261030
feat/a03-audit-schema-atomic-events
feat/a03-complete-manual-journal-audit
feat/a05-cheque-treasury-reconciliation
feat/a06-signed-offline-license-activation
feat/a08-synthetic-performance-baseline
feat/phase-a-accounting-benchmark-return-preview
feat/phase-a-ledger-settlement-diagnostics
feature/v2-reconciliation-20261013
fix/a01-atomic-confirm-ui-one-shot-20261031
fix/a01-cheque-clearance-explicit-account-20261023
fix/a01-cheque-contractual-due-date-validity-20261023
fix/a01-cheque-endorsement-counterparty-20261022
fix/a01-cheque-event-date-open-period-20261021
fix/a01-cumulative-return-amount-cap
fix/a01-explicit-refund-reason-approval-20261021
fix/a01-manager-authorized-customer-refunds-20261020
fix/a01-no-implicit-refund
fix/a01-one-shot-confirm-on-atomic-import-20261031
fix/a01-refund-and-overcollection-net-cash
fix/a01-refund-correction-trace-20261020
fix/a02-atomic-excel-master-merge-20261031
fix/a02-canonical-mapping-contract-20261018
fix/a02-disable-destructive-excel-replace-20261031
fix/a02-holoo-invoice-line-coverage-20261023
fix/a02-holoo-preflight-required-invoice-lines-20261023
fix/a02-mapping-contract-20261018
fix/a02-opening-preflight-unbalanced-report
fix/a02-orphan-mapping-20261018
fix/a02-private-excel-import-session-20261031
fix/a02-strict-export-input-20261019
fix/a03-append-only-full-backup-import
fix/a03-append-only-write-guard
fix/a03-block-transaction-clear-append-only-20261016
fix/a03-chain-validation-20261020
fix/a03-company-scoped-audit-data-access
fix/a03-deny-direct-audit-write-20261019
fix/a03-escaped-expense-list-20261031
fix/a03-escaped-financial-record-ids-20261031
fix/a03-financial-ledger-actions-and-print-20261031
fix/a04-backup-checksum-preflight
fix/a04-company-audit-replay-stable-compare
fix/a04-company-backup-source-isolation-20261020
fix/a04-full-restore-posted-financial-integrity
fix/a04-reject-mixed-company-backup-20261019
fix/a04-replace-immutable-posted-ledger
fix/a04-restore-financial-journal-references
fix/a04-service-source-company-boundary-20261020
fix/a05-block-inactive-treasury-settlements
fix/a05-cheque-cash-evidence-reconciliation-20261023
fix/a05-cheque-ledger-and-bank-reconciliation-20261023
fix/a05-fiscal-close-invariant-gates
fix/a06-backup-restore-user-privileges
fix/a06-license-user-company-quota-20261023
fix/a06-malformed-trial-state-fail-closed
fix/a06-offline-clock-fail-closed-20261019
fix/a07-indexeddb-blocked-startup
fix/a07-offline-bundled-assets
fix/a07-version-and-startup-banner
fix/issue-7-company-backup-isolation
fix/p0-deterministic-fractional-invoice-money-20261031
fix/p0-fractional-quantity-input-20261031
fix/p0-fractional-quantity-integrated-20261031
fix/p0-invoice-posting-invariants-20261031
fix/p0-legacy-stock-and-product-inputs-20261031
fix/p0-reports-immutable-cogs-20261101
fix/p0-verified-financial-percent-20261031
fix/p0-zero-discount-report-revenue-20261101
fix/phase-a-backup-app-version
fix/phase-a-backup-integrity-checksum
fix/phase-a-backup-record-id-validation-20261014
fix/phase-a-backup-version-validation-20261014
fix/phase-a-closure-pack3-20261101
fix/phase-a-entitlement-payload-validation
fix/phase-a-gate-exact-evidence-20261019
fix/phase-a-pack4-stock-scope-20261101
fix/phase-a-pack5-integrated-evidence-20261101
fix/phase-a-pack6-atomic-legacy-20261101
fix/phase-a-restore-envelope-and-rollback
fix/phase-a-settings-admin-gate
fix/print-browser-header-footer-20261014
fix/q01-expense-security-probe-exact-option-20261031
fix/q01-financial-grid-labels-20261031
fix/q01-form-label-association-20261031
fix/q01-native-evidence-integrity-20261030
fix/q01-number-input-persian-decimal-20261031
fix/q01-responsive-dashboard-and-cheque-table-20261031
fix/q01-safe-ui-action-audit-coverage-20261031
fix/q01-visible-desktop-sidebar-and-safe-confirm-20261030
fix/roadmap-metadata-sync-20261014
gate/a03-audit-metadata-validation-20261019
integration/a02-windows-holoo-setup-candidate-20261030
license-server
main
perf/a07-lazy-load-excel
perf/a08-cheque-reconciliation-account-index-20261023
perf/a08-paginated-reports-20261101
phase1-restore-hardening
planning/holoo-execution-20261013
planning/roadmap-project-management-20261014
qa/native-click-coverage-audit-20261030
release/v2.0.0
test/a01-native-endorsement-mandatory-20261023
test/a01-native-purchase-return-guardrails
test/a01-native-sale-return-financial-guardrails
test/a01-safe-integer-boundary-20261019
test/a02-native-opening-dry-run-rejections
test/a02-native-positive-opening-ledger
test/a04-native-corrupt-fbackup-20261016
test/a04-native-encrypted-company-backup
test/a04-native-encrypted-company-backup-main
test/a04-native-late-transaction-rollback
test/a04-native-windows-backup-recovery
test/a04-real-edge-v6-v7-migration
test/a04-real-native-interrupted-restore
test/a05-native-draft-ledger-and-repeat-close-20261016
test/a05-native-fiscal-close-guardrails
test/a07-native-multipage-print-engine
test/a07-native-origin-provenance
test/a07-native-webview2-offline-routes
test/a07-windows-offline-startup-smoke
test/a08-installed-webview2-60k-baseline
test/a08-native-webview2-heap-metrics
test/a08-windows-synthetic-performance-baseline
test/github-write-access-20261009
test/native-win-ui-routes-after-finance-backup
test/phase-a-combined-a01-a05-a08-final-evidence
test/phase-a-combined-native-acceptance-matrix
test/phase-a-ledger-invariants-20261014
test/phase-a-native-all-routes-on-merged-lab
test/phase-a-native-encrypted-backup
test/phase-a-native-finance-backup-matrix
test/phase-a-native-ui-and-backup-smoke
test/phase-a-windows-native-installer-lab
work/a08-dispatch-activation-20261123
work/a08-memory-stability-20261123
work/finance-curated-20261123
| 1 | # Phase A acceptance status |
| 2 | |
| 3 | Updated: 2026-10-19 |
| 4 | |
| 5 | ## Execution order |
| 6 | A03 → A04 → A01 → A05 → A06 → A07 → A08. |
| 7 | |
| 8 | ## Closed gates |
| 9 | None. The authoritative acceptance manifest `docs/PHASE_A_RELEASE_ACCEPTANCE.json` has all gates unaccepted. |
| 10 | |
| 11 | ## A03 — in progress (direct-write bypass hardening) |
| 12 | - Current implementation: AuditService brands authorized audit records; StorageService.transaction rejects unbranded audit rows through add/put/putRaw; raw helpers _exec/_tx and bulkPut reject direct audit writes. |
| 13 | - Restores: CompanyBackupService and StorageService.importAll route audit history through AuditService.restoreHistorical; fixture tests updated. |
| 14 | - Added protection tests before guard, plus negative direct add/put/putRaw rollback test. |
| 15 | - Security limitation: AuditService.restoreHistorical is exported for validated restore flows and is not yet restricted to a restore-only capability; direct IndexedDB access via StorageService.init() or browser developer tools remains outside service-layer protection. |
| 16 | - Latest CI must be checked before merge. No acceptance claim. |
| 17 | - Previous audited immutable-store hardening merged: PR #114, merge commit `3077d42d0061b05f8bf623f77ca18869a1581d1c`. |
| 18 | - Current branch: `gate/a03-audit-metadata-validation-20261019`. |
| 19 | - Current changes: reject invalid audit business dates and overlong metadata identifiers; add positive/negative atomic rollback tests. |
| 20 | - Acceptance criteria outstanding: full audit metadata and company/actor integrity; service-layer mutation bypass assessment; atomic failure cases; complete passing CI with evidence; independent gate review. |
| 21 | - CI status: original PR checks ran; a subsequent attempted history-only restriction was reverted because it would break legitimate transactional test/seed paths. Latest head requires fresh CI; do not mark accepted before successful checks. |
| 22 | |
| 23 | ## A04 — queued, not accepted |
| 24 | - Existing unmerged branch: `fix/a04-reject-mixed-company-backup-20261019`, commit `3a059b98c31a032a6725e07cb15999dce6461c2d`. |
| 25 | - Outstanding: positive/negative restore tests, corrupt/interrupted restore, two-version compatibility, company isolation, CI. |
| 26 | |
| 27 | ## Remaining gates |
| 28 | A01, A05, A06, A07, A08: not accepted; proceed in specified order after A03/A04. |
| 29 | |
| 30 | ## External verification, not simulated |
| 31 | - A02: independent accountant sign-off. |
| 32 | - DATA_BACKUP: restore of actual backup on actual target system. |
| 33 | |
| 34 | ## Next action |
| 35 | Review CI on latest A03 PR head, fix failing fixtures and ensure restore authorization cannot be invoked outside validated restore. Do not merge red CI. Once all A03 acceptance criteria have evidence, update manifest and this file, then proceed to A04. |
| 36 | |
| 37 | ## A03 continuation — restore authorization and hash chain |
| 38 | - Added transaction/company-scoped restore authorization in AuditService and negative direct-call regression test. |
| 39 | - Full restore now registers company-scoped grants before historical inserts. |
| 40 | - BLOCKER: CompanyBackupService has not yet been updated to register grants; company restore currently risks rejection. Attempts to update the file were blocked by tool safety checks. Do not merge or mark gate accepted. |
| 41 | - Existing legacy fixture rows lack some new metadata fields and must be updated with complete valid audit records. |
| 42 | - Hash chain (prevHash, eventHash, verifyChain) has NOT been implemented. Tamper, deletion and reordering tests are outstanding. A local unanchored hash chain cannot prove deletion of the final event; trusted head checkpoint required. |
| 43 | - CI on current head is not yet verified. Next: repair company restore and fixture compatibility, then implement and test chain before merge. |
| 44 | |
| 45 | ## A03 2026-10-19 continuation |
| 46 | - CompanyBackupService restore authorization was added at commit 9c0d438e21c11ba6c47561b80e3de7e270defcce. |
| 47 | - Fixed a WeakSet access defect in AuditService at commit 0056fd1748e9222603c7cd8ada89f41ba8ca6c2e. |
| 48 | - Added src/core/AuditChain.js at commit 567b9af1759df9448e01b9982bfe6208bcff545f (SHA-256 and a standalone chain verifier). This is NOT yet integrated into audit event writes or backup metadata; no end-to-end chain claims. |
| 49 | - Attempts to integrate hash code into AuditService and add chain regression tests were blocked by tool safety checks. No tests were run locally. |
| 50 | - Legacy audit migration, full company restore compatibility and trusted backup anchor remain unfinished. |
| 51 | - Client-side security boundary: the StorageService/AuditService checks defend normal application code paths, not a malicious user with IndexedDB/devtools or local file access. A backup-contained hash anchor is not independently trusted: an attacker who can rewrite the backup can rewrite its anchor. Signed or externally anchored checkpoints are needed for adversarial tamper evidence. A bare hash chain cannot detect tail deletion without an independently retained head. |
| 52 | |
| 53 | ## Independent A03 validation branch (2026-10-20) |
| 54 | - Branch: fix/a03-chain-validation-20261020; draft PR #116; not accepted or merged. |
| 55 | - Actual GitHub Actions npm test run 39373562237, commit 1d986c1b23f01eff562c2819a7f34153e7fc1fe6: 253 tests, 248 passed, 5 failed, exit code 1. Failures: A02 audit rollback, A03 company scope, A03 append-only protection (2), accounting backup round trip. This run predates current branch and does not verify current changes. |
| 56 | - No local npm test was executed: local repository absent in this runtime, GitHub DNS unavailable, remote desktop offline/quota exhausted. Later PR runs have been cancelled by subsequent pushes or are pending. |
| 57 | - Fixed missing Auth import in tests/a03-company-scope-immutable-stores.test.mjs on this branch; no passing run verified yet. |
| 58 | - No independent reviewer agents were launched; no three-agent approval claimed. |
| 59 | |
| 60 | ## A03 CI request 2026-10-20 |
| 61 | - Implementation commit 293239951b6c15df766e891fd386b54c6f99ec51 adds anchored full backups, strict company backup order verification, deterministic v6 replay compatibility, and end-to-end tampering tests. No pass claim before CI. |
| 62 | - PR #116 temporarily targets main to activate the existing pull_request quality workflow; remains draft and unmerged. Remote Desktop excluded. |
| 63 | |
| 64 | ## A03 CI evidence: 2026-10-20, run 39374384074 |
| 65 | - SHA 46f5dd613b543778e27c498a54c664f9edf01845; completed failure, npm test: 257 tests, 251 passed, 6 failed, exit 1. |
| 66 | - Failures: A02 audit rollback; A03 full restore rejects modified event (error message mismatch, integrity rejection correctly occurs); A03 v6 migration; A03 company scope; A03 append-only direct protection; A03 clear rollback. |
| 67 | - Root cause of five fixture failures: restoreHistorical validated legacy actorId/sourceId/commandKey before deterministic migration defaults were applied. Fix permits missing legacy metadata but rejects present invalid values. Sixth test now accepts earlier chain integrity rejection rather than requiring a later immutable-overwrite error. The rejection and rollback assertion remain mandatory. |
| 68 | |
| 69 | ## A03 completed CI evidence 2026-10-20 (pre-STATUS commit) |
| 70 | - PR quality workflow run 39374506277, SHA 9563296884b7131a97a265a296d99977d7522fce: completed SUCCESS. Linux npm test 257 passed / 0 failed; Windows npm test 257 passed / 0 failed. Frontend build, production npm audit, and Windows Tauri installer build all succeeded. |
| 71 | - This evidence verifies the application code at the stated SHA. A STATUS-only documentation commit will require its own final-head CI run before completion. |
| 72 | - Independent three-agent review remains NOT VERIFIED: this execution environment does not expose a multi-agent reviewer launch capability. No approval or merge is claimed. |
| 73 | - Local clone/npm test remains unavailable because container DNS cannot resolve github.com; GitHub Actions is the actual test runner. |
| 74 | |
| 75 | ## A03 three-pass review initiated (2026-10-20) |
| 76 | - Three sequential code-review passes were performed against PR #116 because no callable subagent/Task tool is exposed. These are NOT independent agents. |
| 77 | - Functional pass: previous completed CI run 39374969382, SHA 95f6c976a04a72e2ddaf27f20773994e871e0250, Linux 257/257, Windows 257/257. Edge coverage gaps found; new tests added, pending new CI. |
| 78 | - Security/quality pass: found malformed non-array input could throw from verifyChain; addressed with invalid result. Public authorizeRestore remains a client trust-boundary limitation, not a cryptographic authorization mechanism. O(n) audit-history read per append remains a scalability concern; no unverified performance claim. |
| 79 | - Edge-case pass: missing explicit tests for empty/single chains, mixed legacy+hashed history, corrupted JSON, wrong anchors and concurrent writes. Added regression tests; results pending CI. |
| 80 | - Final approval and merge remain withheld until CI and repeat review. |
| 81 | |
| 82 | - GitHub Actions run 39376283188 on SHA 894e1f54409a7f12455ee27b6e3d8b80f4899a55: completed FAILURE, npm test 262 total / 260 passed / 2 failed. Failures A02 rollback and A03 direct append-only protection; root cause: eager genesis-based normalization of a legacy-only snapshot intended to append after existing audit history. Changed legacy-only imports to defer chain index/hash to the active restore transaction. Mixed legacy+hashed chains remain prevalidated. Await rerun. |
| 83 | |
| 84 | - Security review found public AuditService.authorizeRestore permission mint. Replaced with scoped restoreFromBackup workflow, removed public mint and added negative regression test. CI pending; no pass claim for new code. |
| 85 | |
| 86 | - Completed PR quality CI 39376822354, SHA f83b8e6c9dd55cd62ecf4a2441463af0e6048956: SUCCESS, Linux npm test 263/263, Windows npm test 263/263, frontend and Windows installer succeeded. |
| 87 | - Native installed-WebView2 lab 39376822375 on same SHA: FAILED, smoke fixture tests/windows-vm-installed-tauri-cdp.cjs:276 used prohibited tx.put('audit_events'). Root cause is outdated test fixture, not product restore. Updated fixture to seed through version-6 backup import, preserving the immutable restore rollback assertion; rerun pending. |
| 88 | |
| 89 | ## A03 final three-pass sequential review and green CI (2026-10-20) |
| 90 | - Tool limitation: no callable independent subagent/Task launcher. Three distinct sequential re-reads were completed and documented in reviews/A03-agent1.md, A03-agent2.md, A03-agent3.md. They are NOT independent agents; each approves the defined A03 scope with zero remaining findings after fixes. |
| 91 | - PR quality CI 39377639299, commit 59dbc4beba2172cafdfd6c380adfa6c0aba6b445: completed SUCCESS. Linux npm test 263 passed / 0 failed; Windows npm test 263 passed / 0 failed; frontend build, dependency audit and Windows installer build succeeded. |
| 92 | - Installed native Windows VM lab 39377639277, same SHA: completed SUCCESS after replacing a test-only direct audit tx.put fixture with the validated legacy backup import. A08 baseline CI 39377639263: completed SUCCESS on same SHA. |
| 93 | - Client security boundary: audit chain checks detect accidental or untrusted backup modifications only when the head anchor is retained and trusted. The same-file anchor is not independent authentication; malicious local IndexedDB modification is outside service-layer guarantees. Hash comparison is not secret-bearing. Large-history append read complexity remains for A08 performance work. |
| 94 | - A03 code and tests are accepted on the evidence above. PR #116 remains draft until a completed quality run on the final documentation commit, then may be marked ready and merged. Main CI must be checked after merge. |
| 95 | |
| 96 | ## CURRENT VERIFIED SNAPSHOT — 2026-10-20 (supersedes stale historical headings above) |
| 97 | |
| 98 | - Canonical branch: `main`, verified head at recovery: `784f0205b5f98b834e2f96c881767a1f1888e528`. |
| 99 | - A03 PR #116 is **merged**, not draft or pending: merge time `2026-10-20T06:14:01Z`, merge commit `784f0205b5f98b834e2f96c881767a1f1888e528`; final PR head `c59cf2a85686be016ce0526afc48227eecf79736`. |
| 100 | - Authoritative manifest `docs/PHASE_A_RELEASE_ACCEPTANCE.json` on main currently says **A03 accepted: true**, all other A01/A02/A04/A05/A06/A07/A08/INDEPENDENT_QA/DATA_BACKUP are **false**. Older references above saying no gates closed or PR #116 awaiting merge are historical and must not be interpreted as present status. |
| 101 | - Final-head PR quality run [39378563767](https://github.com/davoodmehraban89/Factor-easyPro/actions/runs/39378563767): **completed SUCCESS**, Linux `npm test` **263/263**, Windows `npm test` **263/263**, frontend build, production dependency audit and Tauri Windows installer build successful; SHA `c59cf2a85686be016ce0526afc48227eecf79736`. Counts extracted from the respective job logs. |
| 102 | - Native installed Windows VM lab [39378563787](https://github.com/davoodmehraban89/Factor-easyPro/actions/runs/39378563787): **completed SUCCESS** on the same PR SHA; NSIS-installed Tauri/WebView2, v6→v7 and upgrade/reinstall checks. Synthetic-data VM evidence does not constitute a physical customer-device restoration. |
| 103 | - A08 baseline run [39378563726](https://github.com/davoodmehraban89/Factor-easyPro/actions/runs/39378563726): **completed SUCCESS** on the PR SHA, but A08 **not accepted**. |
| 104 | - **Post-merge main-SHA CI is not verified:** the available PR quality workflow is configured for `pull_request` and `workflow_dispatch`, not `push` to main. GitHub Actions list for branch main and commit-associated PR runs did not show a run on merge commit `784f0205...`. Do not treat green PR CI as a distinct run on the merge SHA. CI must be verified if policy or workflow is changed to test main. |
| 105 | - Reviews `reviews/A03-agent1.md`, `reviews/A03-agent2.md`, `reviews/A03-agent3.md` end in `Final sequential re-review — APPROVED`. They were **three sequential assistant passes**, not independent review agents. Independent financial signoff remains open. |
| 106 | - Threat model: hash-chain + backup-contained audit anchor does not authenticate a fully compromised client, local IndexedDB, or self-rewritten backup anchor. Appends can entail O(n) history scanning; measure under A08. |
| 107 | - **Next gate A04**: main-manifest accepted=false. Historical branch `fix/a04-reject-mixed-company-backup-20261019` remains at `3a059b98c31a032a6725e07cb15999dce6461c2d`, diverged from main (1 ahead / 59 behind as of this check). Compare and port only justified changes with tests; do not merge that stale branch directly. |
| 108 | - External acceptance `INDEPENDENT_QA` and `DATA_BACKUP` remains unaccepted until actual human/device evidence. Remote Desktop is out of scope. |
| 109 | |
| 110 | ## A04 software gate verification — 2026-10-20 (current status; earlier A04 entries are historical) |
| 111 | |
| 112 | - **A04 accepted: true in the updated Phase A manifest (software gate only)**. Current implementation is merged into `main`: PR #118 (`223c0a526b7d9b61b6536e1bcf6580fa5c9dabf2`) adds source-company preflight and negative tests; PR #119 (`120523bb053a81fe892a8af1879c94ba8bfd1d7a`) enforces source ownership at the `CompanyBackupService` boundary with direct-call regression. Previous stale A04 branch was compared (1 ahead/59 behind), not merged. PR #120 (`2c88c4b35017a2cd0ff1d6181bba0311fbd299d4`) adds post-merge `main` CI for quality and native Windows workflows. |
| 113 | - **Verified green post-merge main CI on SHA `2c88c4b35017a2cd0ff1d6181bba0311fbd299d4`**: [quality run 39383484055](https://github.com/davoodmehraban89/Factor-easyPro/actions/runs/39383484055) completed SUCCESS, Linux 266/266 and Windows 266/266 npm tests, frontend build, production dependency audit and installer build; [native VM 39383483978](https://github.com/davoodmehraban89/Factor-easyPro/actions/runs/39383483978) completed SUCCESS, real NSIS-installed Windows Tauri/WebView2 and synthetic backup/restore, v6→v7 migration, UI checksum/encrypted restore, wrong password, corrupted ciphertext, late-validation transaction rollback and mid-import process termination/reopen tests. |
| 114 | - Same-sha earlier green PR evidence: PR #118 quality [39380965617](https://github.com/davoodmehraban89/Factor-easyPro/actions/runs/39380965617) (265/265 each Linux/Windows) and native [39380965551](https://github.com/davoodmehraban89/Factor-easyPro/actions/runs/39380965551); PR #119 quality [39381883748](https://github.com/davoodmehraban89/Factor-easyPro/actions/runs/39381883748) (266/266 each) and native [39381883781](https://github.com/davoodmehraban89/Factor-easyPro/actions/runs/39381883781). |
| 115 | - Formal review record: `reviews/A04-sequential-review-20261020.md` (three sequential assistant review passes, **not** independent agents). No artificial client data were used and no public installer release was created. |
| 116 | - **Acceptance boundary**: A04 verification uses synthetic data through an actually installed Windows application. It does **not** approve genuine customer backup recovery on the target device, physical power-loss testing, or independent financial/accountant approval. `DATA_BACKUP` and `INDEPENDENT_QA` remain **false** in the manifest; A01/A02/A05/A06/A07/A08 remain false. SHA-256/backup-internal anchors cannot authenticate an attacker-controlled whole backup; AES-GCM integrity is conditional on password secrecy. |
| 117 | - **Next ordered gate: A01** commercial corrections/reversals/refunds. Extract criteria from `docs/PHASE_A_BACKLOG_FA.md` and `docs/PHASE_A_EXIT_RUNBOOK_FA.md`, inspect existing `RetailPostingService` and tests, create a separate tested PR. Do not release publicly or claim Phase A complete. |
| 118 | |
| 119 | ## A01 2026-10-20 continuation — scope incomplete / NOT ACCEPTED |
| 120 | |
| 121 | - PR #122 (https://github.com/davoodmehraban89/Factor-easyPro/pull/122) merged in main at caa5995d5b71f1a8c89b07941bcd7f8870a723d8. The RetailPostingService.recordCash transaction now requires Auth.isAdmin() before paying a customer refund linked to an already posted sale_return. The restriction is enforced in the service layer, not only UI. |
| 122 | - A new regression in tests/retail-phase2.test.mjs checks that a clerk refund attempt leaves treasury, invoice paidAmount, journal and audit unchanged, while the manager-authorized refund succeeds and keeps the trial balance balanced. |
| 123 | - Final PR SHA 90558e5247b41c7adf40aeac65b6bdd3470db165: quality run 39385076660 successful with 267/267 Linux and 267/267 Windows tests, frontend/npm audit/Windows build; native installed Windows lab 39385076705 successful. |
| 124 | - Post-merge main SHA caa5995d5b71f1a8c89b07941bcd7f8870a723d8: quality run 39385956523 successful with 267/267 Linux and 267/267 Windows tests, frontend/audit/installer; native Windows VM run 39385956551 successful. |
| 125 | - Three sequential assistant review passes are recorded in reviews/A01-refund-auth-sequential-20261020.md; they are NOT independent agents and do not approve the entire gate. |
| 126 | - A01 remains accepted=false. Open acceptance scope includes representative sales/purchases/corrections, cheque reversals, explicit refund reasons/approval, fiscal-period edge cases, idempotency, reconciliation and independent financial signoff. Client-side IndexedDB controls do not authenticate hostile local storage. INDEPENDENT_QA and DATA_BACKUP remain false. No public release. |
| 127 | - Next actionable work: select and implement the next unverified A01 scenario from docs/PHASE_A_BACKLOG_FA.md and docs/PHASE_A_EXIT_RUNBOOK_FA.md in a separate tested PR. |