codex/windows-native-pilot-shell-20261030
add-index-html-10623938925177053894 arena/094f314c-aram chatgpt-phase1b2-autopilot codex/adr-future-connectors-pi-v1 codex/aram-account-note-source-trace-20261031 codex/aram-actions-node24-maintenance-20261031 codex/aram-analyst-review-workbook-20261031 codex/aram-bs-candidate-statement-20261031 codex/aram-cash-flow-direct-candidate-20261031 codex/aram-clean-reference-year-integrity-20261030 codex/aram-cross-statement-controls-20261031 codex/aram-equity-changes-candidate-20261031 codex/aram-five-statement-cli-20261031 codex/aram-five-statement-integration-20261031 codex/aram-five-statement-orchestrator-20261031 codex/aram-gate3-coverage-target-guard-20261030 codex/aram-gate3-hidden-xlsx-guard-20261030 codex/aram-gate3-integration-validation-20261030 codex/aram-gate3-mapping-change-preview-20261030 codex/aram-gate3-stale-note-guard-20261030 codex/aram-income-statement-candidate-20261031 codex/aram-manifest-referential-integrity-20261031 codex/aram-mapping-source-parser-20261101 codex/aram-multidimensional-mapping-20261101 codex/aram-multistatement-mapping-20261031 codex/aram-pipeline-manifest-schema-20261031 codex/aram-readonly-mapping-coverage-20261031 codex/aram-reconciliation-review-gate-20261031 codex/aram-same-flush-fiscal-lock-20261030 codex/aram-synthetic-windows-demo-20261031 codex/aram-trial-balance-diagnostic-20261031 codex/aram-windows-background-detail-search-20261031 codex/aram-windows-detail-review-20261031 codex/aram-windows-five-statement-pilot-20261031 codex/aram-windows-statement-figures-20261031 codex/gate-2a-pilot-workbook codex/gate-2a-pilot-workbook-6864754244772568979 codex/gate3-authenticated-principal-boundary-20261030 codex/gate3-authored-draft-staging-20261030 codex/gate3-carry-forward-preview-20261023 codex/gate3-draft-staging-audit-20261030 codex/gate3-mapping-batch-freshness-20261030 codex/gate3-mapping-batch-review-20261030 codex/gate3-mapping-core codex/gate3-mapping-coverage-20261023 codex/gate3-mapping-excel-20261023 codex/gate3-note-mapping-review-20261023 codex/gate3-signed-year-scope-20261030 codex/gate3-unapproved-proposal-storage-20261030 codex/payvast-mapping-discovery-20261023 codex/phase-2a-backend-foundation codex/phase-2b-post-merge-record codex/phase-2b-source-registration codex/phase-2b-source-registration-12955190277775369594 codex/post-gate2a-control-reconciliation codex/post-pr18-acceptance-record codex/project-control-foundation codex/t1-repo-hygiene-20261023 codex/t2-ci-hardening-20261023 codex/t3-explicit-migrations-20261023 codex/t6a-readonly-diagnostics-20261023 codex/v1-01-safety-gate-hardening codex/v1-year-isolation-followup-20261023 codex/windows-native-pilot-shell-20261030 docs/aram-master-control-plan-20261111 docs/aram-roadmap-dashboard-20261030 docs/financial-statement-reconciliation-1402-1404-20261110 feat/gate3-governed-mapping-20261101 feat/gate3-package9-1-security-20261103 feat/gate3-package9-isolated-20261103 fix/password-unicode-validation-20261111 governance/aram-5-1-3-controls-20261030 governance/role-based-operating-model jules-1168663913887856558-73b8a885 jules-gate-2b-mapping-workflow-foundation-4137724387867065330 phase-1b1-audit-report-7365389436990903239 phase-2a-backend-foundation-10237597358138521261 phase1b2-postmerge-metadata-fix refactor/drg-parent-year-id-15088443704684163304 source-data-cleanup
md 5.07 KB

ARAM Native Windows Desktop Pilot — UNRELEASED

This is an early, native Windows desktop window, not the finished financial-statement application, not a website in a webview and not a released or approved accounting tool.

Actual supported features (all read-only)

  • Native Python Tkinter/ttk Persian desktop window. Three functional notebook tabs: validation, financial-workflow limitations and help.
  • Five implemented native menu actions: File → Choose XLSX (Ctrl+O); Run preflight (Ctrl+R); Clear selection (Ctrl+L); Exit (Ctrl+Q); Help → About (F1).
  • Three native buttons are alternate handles for Choose XLSX, Run preflight and Clear selection. Run preflight is disabled before choosing an eligible file. Canceling the picker does not discard an existing selection.
  • Uses the existing authoritative aram_backend.pilot_workbook.preflight_pilot_workbook in memory to display all reported issue counts and the first 3,000 issue details with sheet, row, field and error code. Warns if more than 3,000, rather than silently hiding them.
  • Accepts a local existing regular .xlsx file up to 20 MiB, rejects symlinks and malformed/nonexistent paths; bounds XLSX ZIP metadata to 500 entries and 128 MiB uncompressed before openpyxl processing. Does not import workbook rows, connect to SQL, post ledger entries, alter files, upload data, sign decisions, or generate financial statements.
  • A passing format preflight is NOT proof of accounting truth, completed mapping, approved notes/subnotes, approval, reconciliation, statement correctness or authorization to export/print. All those workflows are explicitly marked not implemented, without dead buttons.

Run from source on Windows 10/11 (Python 3.12 x64)

Install a trusted 64-bit Python 3.12 distribution with Tcl/Tk. In PowerShell from the repository root:

cd backend
py -3.12 -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install -e ".[test]"
python -m pytest tests/test_desktop_pilot.py
python -m aram_backend.desktop_pilot

No SQL Server or FastAPI HTTP server needs to run for this isolated preflight pilot. That does not mean the eventual full financial application will not require a secure database or service architecture.

Build the unsigned Windows EXE

cd backend
python -m pip install "pyinstaller>=6.10,<7"
.\desktop\build_windows_exe.ps1
.\dist\AramPilot-UNRELEASED.exe

The script uses native Windows PyInstaller to create backend/dist/AramPilot-UNRELEASED.exe as a one-file, windowed application. It does not build an MSI, add an installer wizard, sign the binary, create a production release or modify the accepted Git branch. You must build on Windows for a Windows EXE; compiling on Linux is not equivalent.

The dedicated .github/workflows/desktop-windows-ci.yml builds this same unsigned file on GitHub's Windows x64 runner for Draft PRs, runs Python tests, verifies --self-test and programmatic Tk native menu/button/tab invocation --ui-smoke, then attaches a short-retention UNRELEASED Actions artifact for inspection. An artifact is not an approved release. Windows SmartScreen warnings may appear for unsigned builds; do not bypass organizational security controls to execute it.

Automation boundaries and what has NOT been tested

  • python -m aram_backend.desktop_pilot --self-test is a headless smoke of the imported app/controller and rejection of invalid XLSX.
  • python -m aram_backend.desktop_pilot --ui-smoke invokes real Tk menu/button callbacks and traverses all existing tabs on a synthetic workbook. It does not click physical pixels, test real financial user data, or attest to desktop accessibility or layout across machines.
  • Full mouse and keyboard GUI E2E (Windows clean VM, 100% physical hit-target traversal, Microsoft UI Automation, accessibility, scaling 100/150/200%, focus order, error messages, I/O race and protected financial workflows) is not yet verified. User's original all-buttons request cannot be called complete merely because this small shell passes its current smoke.
  • One-file PyInstaller dependencies are not signed, pinned to exact hashes or audited for enterprise deployment. An external security and license compliance review is required.
  • Source data is never copied into the repository, GitHub artifacts or test fixtures. The synthetic XLSX generated by the smoke test is disposed of after the run.

Mandatory next product stages

Native UI modules for real company/year selection, authorized login, ledger import, variance mapping and notes/subnotes; explicit review/approve with a real IdP and segregation-of-duties, atomic DB version/CAS apply and audited irreversible history; traceable primary statements, reconciliation and controlled XLSX/PDF export; then an independently signed Windows installer, clean-environment tests, backup and restore, software updates and three genuine C1/C2/C3 independent reviews.

Keep Draft PR #59 unmerged and the protected accepted branch unchanged. See Issue #58 for the full UI test coverage acceptance gate.