@davoodmehraban89 / Aram-1 / commits / 1505380
Fork 0

docs(desktop): document native five-statement Windows preview and unsigned EXE limitations

davoodmehraban89 committed Oct 31, 2026 at 18:33 UTC 15053809a10e13359a40022e01b1b4812e41aca5
1 file changed +52
backend/desktop/FIVE_STATEMENT_WINDOWS_README.md new
+52
@@ -0,0 +1,52 @@
1 +# ARAM native Windows five-statement pilot — UNSIGNED AND UNRELEASED
2 +
3 +This is a **nonofficial, local-only Tkinter/ttk Windows inspection UI** for the five-statement pipeline. It is separate from the older PR #59 preflight-only shell. It runs on the newer backend stack with the same XLSX+JSON validator as the CLI; it does not merge or reuse the unreviewed older desktop controller.
4 +
5 +## What works
6 +
7 +- Choose a local Pilot `.xlsx` and a policy/journal `.json` manifest.
8 +- Run the actual shared-snapshot five-statement pipeline in a worker thread so the native window remains responsive.
9 +- Display five candidate statuses and blocked reconciliation finding codes, in Persian.
10 +- Show the workbook source digest prefix for inspection.
11 +- Invalidate old results every time the selected file changes or is cleared.
12 +- All enabled menu and button controls have real callbacks; shortcuts: Ctrl+O/M/R/L/Q and F1.
13 +- A limited and explicitly visible findings list (at most 2,000 rows with an overflow count).
14 +
15 +Selection checks file extensions, regular-file status, symlinks and size. Execution delegates to `safe_read_workbook` and `safe_read_cash_manifest` through the existing CLI function, which reopens local files with bounded reads and checks inode, modification and replacement. A failed input cannot leave a previous eligible result in view.
16 +
17 +## Development mode
18 +
19 +Install backend project dependencies and run:
20 +
21 +```powershell
22 +cd backend
23 +python -m pip install -e ".[test]"
24 +python -m aram_backend.desktop_five_statement
25 +```
26 +
27 +For offline diagnostics without opening a Tk window:
28 +
29 +```powershell
30 +python -m aram_backend.desktop_five_statement --self-test
31 +python -m aram_backend.desktop_five_statement --ui-smoke
32 +```
33 +
34 +The UI smoke opens native widgets, exercises buttons/menu/shortcuts and runs an intentionally malformed synthetic manifest to verify blocked handling. It is **not** a human usability acceptance test.
35 +
36 +## Unsigned EXE candidate
37 +
38 +On Windows, with Python 3.12 and PyInstaller installed:
39 +
40 +```powershell
41 +cd backend
42 +python -m pip install -e ".[test]" "pyinstaller>=6.10,<7"
43 +.\desktop\build_five_statement_windows.ps1
44 +```
45 +
46 +The result is `backend/dist/AramFivePilot-UNRELEASED.exe`. GitHub's dedicated Windows workflow additionally runs the controller/integration tests, Tk native widget smoke, builds the unsigned one-file EXE, and runs both `--self-test` and `--ui-smoke` against the frozen executable before uploading the **7-day, unreleased inspection artifact**. No signed installer or official release/tag is created.
47 +
48 +## Non-approval and privacy
49 +
50 +The same manifest contract as `docs/FIVE_STATEMENT_PIPELINE_CLI.md` applies. It includes potentially confidential account and journal data; **do not commit real corporate manifest files to public GitHub**. The app does not upload files, write to a database, mutate XLSX/JSON, post accounting entries, save report files or generate an official PDF/Excel document.
51 +
52 +Even a green result is only eligible for analyst review. There is no proof of source-ledger completeness, no authenticated accounting-policy or finance-owner signoff, no independent C1/C2/C3 approval, no signed Windows installer, no clean-machine deployment validation and no legally releasable financial statement. Review the actual security and accounting constraints before any production use.