{
  "id": 22501178,
  "title": "Report Retention Ledger — Browser Storage Webhooks Before Thumbnails and Virus Scans",
  "url": "https://urgent.news/2026/11/29/report-retention-ledger-browser-storage-webhooks-before-thumbnails",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-29T02:46:02.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/arthurfinley2291/report-retention-ledger-browser-storage-webhooks-before-thumbnails-and-virus-scans-3f4p"
  },
  "original_language": null,
  "account": "A report retention ledger architecture is proposed for browser storage webhooks before thumbnails and virus scans in a B2B SaaS report service. The key principles are:\n\n1. Create the report record before issuing upload authority\n2. Bind the original, thumbnail, scan result and deletion deadline to one report ID\n3. Reconcile storage against that ledger\n4. The database record is the authority for lifecycle state\n5. Private object storage holds bytes addressed by opaque keys\n\nThe proposed critical path is:\n\nBrowser -> Storage upload -> Authenticated completion notification -> Idempotent work creation -> Scan -> Derivation -> Controlled publication -> Deletion reconciliation\n\nThe storage notification proves bytes landed, but not permission to serve them. Verification of the object identity against the report record is required before serving.\n\nImportant invariants include:\n\n- A storage object belongs to exactly one tenant and report ID\n- A notification can create processing work at most once\n- No original or derivative is customer-readable before scan passes\n- Derivatives carry lineage to original and inherit deletion deadline\n- Legal holds block physical deletion without changing deadline\n- Every state transition records audit trail\n\nExactly-once delivery is not required, instead the useful property is exactly-once effect: accept repeated input, lock or claim a stable idempotency key, and make the state transition once.\n\nProcessing time answers when scan and thumbnail should run, while retention time answers when report can be deleted. A retry may move the processing time but must not extend retention time.\n\nThe deletion worker marks report as deletion-pending, enumerates ledger-known objects, deletes them, verifies absence, and records completion. A separate reconciler detects drift between ledger and objects.\n\nThree signals each serve different purposes - browser callback for interface progress, storage webhook for prompt processing, and reconciliation for eventual repair. None should be overloaded.\n\nDeletion authority should be treated separately from delivery mechanism. Rules cannot express every report-level state or audit reason, but serve as a backstop. One deadline governs original, scan artifact and derivatives, requiring deletion workers and reconciliation.\n\nThis architecture aims to provide a clear boundary between browser storage and durable processing, while ensuring proper retention and cleanup of report artifacts.",
  "summary": "Short answer: let the browser upload a generated report into a private quarantine bucket, but let an authenticated storage event create the durable processing record; bind the original, its thumbnail, its scan result, and its deletion deadline to one report ID, then reconcile storage against that ledger. The decisive issue is retention, not upload speed. A browser success screen proves only that…",
  "summary_source": "publisher",
  "key_points": [
    "Browser storage webhooks trigger authenticated completion notification",
    "Report record created before upload authority issued",
    "Deletion worker reconciles ledger against stored objects"
  ],
  "editors_take": "This new architecture creates a strict boundary between storage and processing to ensure report artifacts are scanned and deleted according to set retention rules.",
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}