@davoodmehraban89 / Aram-2 Mirror · read-only / commits / 1a14efc
Fork 0

Mirrored from https://github.com/davoodmehraban89/Aram.git

Synced Dec 3, 18:15 UTC

docs(coverage): document read-only local CLI and rejection behavior

davoodmehraban89 committed Oct 31, 2026 at 00:19 UTC 1a14efcd21da2e194305855511aacccbc2e1e1f3
1 file changed +13
docs/READONLY_MAPPING_COVERAGE.md
+13
@@ -31,3 +31,16 @@ Run `cd backend && python -m pytest tests/test_coverage_preview.py -q` and then
31 - Real GUI, clean Windows installation, end-to-end testing and independent C1/C2/C3 review.
32
33 These are not implemented by this preview.
34 +
35 +## Read-only local CLI
36 +
37 +An optional CLI analyzes a local XLSX without changing it:
38 +
39 +```bash
40 +cd backend
41 +python -m aram_backend.coverage_preview_cli --file ./pilot.xlsx --company-code 001 --fiscal-year 1404
42 +```
43 +
44 +Only JSON diagnostic data is printed on stdout; errors return status 2 and print a safe error code on stderr. Nothing is automatically saved, uploaded, approved, or printed as an official financial statement. The CLI rejects symbolic links, oversized/nonregular files and file replacement/modification during a bounded read. On systems lacking `O_NOFOLLOW`, inode and post-read file checks remain mandatory. Keep original source workbooks private. Use this only with authorized test data.
45 +
46 +Run focused regression tests: `pytest tests/test_coverage_preview.py tests/test_coverage_preview_cli.py`.
\ No newline at end of file