سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 3, 18:15 UTC
Record C7 attachment-bound OCR provenance evidence
davoodmehraban89 committed
Oct 1, 2026 at 00:36 UTC
3d2938eded49a48aa90f5edb8f1252ff6ee3dc4b
1 file changed
+8
-5
docs/OFFICE_SLICE_C7_VERIFICATION.md
+8
-5
@@ -11,6 +11,7 @@ Project: `hcsixhqbyuhpshfwqpjx`
11
- Search results expose `match_source` plus OCR provenance/correction state.
12
- Query length is capped at 200 characters and result count at 200.
13
- UI exposes OCR evidence/correction controls and clearly labels the OCR boundary.
14
+- OCR provenance is now bound to a real `correspondenceAttachments` record in the same organization and correspondence; arbitrary/nonexistent or cross-letter source references are rejected server-side.
15
16
## Production verification
17
Transactional adversarial verification: PASS.
@@ -20,18 +21,20 @@ Transactional adversarial verification: PASS.
21
- Oversized query was rejected after the C7 search-input guard.
22
- Cross-tenant search returned no rows and cross-tenant OCR evidence write was rejected.
23
- Rollback residue: zero.
24
+- Follow-up adversarial binding test rejected a nonexistent attachment ID and an attachment belonging to another correspondence, accepted the correct attachment, persisted its server-derived storage path in evidence, preserved OCR search, and rolled back with zero residue.
25
26
## Migrations
27
- `20260930205325 office_slice_c7_searchable_archive_ocr_provenance`
28
- `20260930205347 office_c7_search_input_guard`
29
- `20260930205309 office_slice_c7_fulltext_ocr_provenance` is an abandoned concurrent API surface retained only for exact migration-history continuity.
28
-- `20260930205753 office_c7_remove_abandoned_duplicate_api` removes that duplicate experimental API. All four C7 production migration entries are archived in Git; production history was not rewritten.
30
+- `20260930205753 office_c7_remove_abandoned_duplicate_api` removes that duplicate experimental API.
31
+- `20260930205919 office_c7_bind_ocr_source_attachment` binds OCR provenance to a real same-letter attachment and stores the server-derived storage path. All five C7 production migration entries are archived in Git; production history was not rewritten.
32
33
## CI
31
-Verified head: `c307422eae508b57e448a3c9b4b3e3506836f3e2`.
32
-- Quality `36776208848`: PASS including C7 invariant and Real-DOM.
33
-- Security `36776208767`: CodeQL JavaScript PASS; Dependency Review skipped because repository Dependency Graph is not enabled.
34
-- Pages `36776208873`: PASS.
34
+Base C7 head `c307422eae508b57e448a3c9b4b3e3506836f3e2` passed Quality/Real-DOM, CodeQL and Pages. Attachment-binding follow-up merged as `b1c800c540e1181ffbe3efc32998c77e0c8f9fd1`.
35
+- Quality `36776969154`: PASS including C7 invariant and Real-DOM.
36
+- Security `36776969247`: CodeQL JavaScript PASS. Push dependency review is skipped by design; PR #10 executed the dependency-review action but the workflow's unavailable-graph warning also ran, so Dependency Graph is still not treated as verified.
37
+- Pages `36776967625`: PASS.
38
39
## Advisor status
40
C7 uses public SECURITY INVOKER wrappers over private authorization-checked implementations; authenticated-callable public SECURITY DEFINER warning count remains 20. Leaked-password protection remains disabled. Performance advisor remains informational unused-index notices.