File Upload & Scanning Pipeline · View 10 of 21 · Data
Decisions
- The declared content type is recorded as a claim and the determined type is established by inspecting the bytes; policy is applied to the determined type when they disagree
- Content identity is a cryptographic hash, independent of filename, path and owning tenant — the filename is metadata and never influences storage layout or a scan decision
- A hash hit short-circuits to an existing verdict within the tenant's declared reuse isolation level, and every reuse is recorded against the originating verdict
The backwards arrow
- Scan saturation sheds admission at the gate, which is the only way to refuse work without lying about an object's state
- The alternative — accept everything and let the backlog grow — leaves attachments sitting in scanning with no published bound, which is worse than a typed rejection with a retry hint
- Which lane is shed first is published in advance; see the back-pressure view
Stated assumptions
- 35% of objects deduplicate to an existing verdict
- 4,000 objects/second enter the scan queue at peak
- Read credential 5 minutes, re-checked against state on every issuance