@davoodmehraban89 / Factor-easy-2 Mirror · read-only / commits / c003a1e
Fork 0

سامانه صدور فاکتور و حسابداری

Mirrored from https://github.com/davoodmehraban89/Factor-easy.git

Synced Dec 3, 17:00 UTC

Plan Office Slice C7 searchable archive

davoodmehraban89 committed Oct 1, 2026 at 00:22 UTC c003a1e88b08f73ddac0085ac48c903569a50641
1 file changed +30
docs/superpowers/plans/2026-10-01-office-slice-c7-searchable-archive.md new
+30
@@ -0,0 +1,30 @@
1 +# Office Slice C7 — Searchable Archive + OCR Provenance
2 +
3 +Date: 2026-10-01
4 +
5 +**Goal:** Mature the archive into a server-searchable, tenant-safe text index over correspondence metadata/body plus explicitly sourced OCR text. C7 records OCR provenance and human correction but does **not** claim real Persian OCR accuracy or perform OCR itself.
6 +
7 +## Scope
8 +- Server-maintained search document for correspondence using PostgreSQL full-text primitives.
9 +- Search covers register/external numbers, subject, counterparty, body, archive folder/classification/tags, and latest OCR text.
10 +- OCR evidence is append-only: raw text, source attachment/object reference, provider label, language, confidence (optional), captured time, actor.
11 +- Human OCR correction is a separate append-only event referencing the OCR evidence; latest correction is searchable while raw provider output remains preserved.
12 +- Tenant/RBAC/confidentiality filters are applied before rows are returned.
13 +- Search returns match source metadata (metadata/body/ocr) and OCR provenance/correction state.
14 +- No claim that C7 performs OCR, and no claim of Persian OCR accuracy until representative real scans/provider output are tested.
15 +
16 +## Security / integrity
17 +1. Only users with Office archive/configure capability and read access to the source correspondence may add OCR evidence/corrections.
18 +2. OCR source correspondence and attachment/object reference are tenant-bound.
19 +3. Raw OCR evidence cannot be overwritten; corrections never destroy provider output.
20 +4. Cross-tenant or unreadable correspondence never appears in search.
21 +5. Search uses bounded query length and bounded result count.
22 +6. C1-C6, ELI and accounting/Golden gates remain green.
23 +
24 +## Delivery
25 +- RED static + Real-DOM gates.
26 +- Production migration archived in Git.
27 +- Transactional adversarial verification with rollback.
28 +- Archive UI shows search source/provenance and OCR correction action.
29 +- Full Quality/Real-DOM/Security/Pages.
30 +- Verification doc + PROJECT_STATE handoff.