{
  "version": "0.20.0",
  "recorded_at": "2026-10-30T10:10:03.534707+00:00",
  "status": "Verified local implementation and recovery checkpoint; browser and phone proof pending",
  "source_evidence": "enquiry-format-source-map.json",
  "original_modules_or_tests_executed": false,
  "supported_content": [
    "PNG still",
    "JPEG still",
    "WebP still",
    "HEVC-coded HEIC/HEIF still"
  ],
  "limits": {
    "files": 5,
    "original_bytes_per_file": 10485760,
    "original_bytes_total": 52428800,
    "encoded_request_bytes": 73400320,
    "pixels": 12000000,
    "max_side": 12000,
    "normalized_edge": 1800,
    "normalized_bytes_per_file": 13631488,
    "normalized_bytes_total": 68157440,
    "business_photo_bytes": 134217728,
    "public_requests_per_process": 2,
    "decoder_children_per_process": 2,
    "seconds_per_file": 20,
    "cpu_seconds_per_file": 10,
    "sampled_child_rss_bytes": 805306368
  },
  "automated": {
    "backend_passed": 694,
    "backend_failed": 0,
    "backend_skipped": 0,
    "backend_warnings": 2,
    "backend_report_seconds": 194.87,
    "client_passed": 156,
    "client_failed": 0,
    "structural_render_passed": 88,
    "structural_render_is_browser_proof": false,
    "build_passed": true,
    "build_modules": 56,
    "build_main_js_kb": 597.86,
    "build_existing_500_kb_advisory": true,
    "pip_check_passed": true
  },
  "tested_cases": [
    "Genuinely encoded still HEIF, mif1 brand, tiled content, 10-bit, 12-bit and container rotation",
    "Filename and claimed MIME cannot substitute for content validation",
    "Fictitious EXIF/GPS/XMP removed; orientation applied; original names/hashes/order/byte counts retained privately",
    "Multiple main images, sequence brands, AVIF, malformed/truncated data rejected before writes",
    "Readable PNG and HEIF at 10 MiB minus one byte, exact allowance and one byte above",
    "Five full-allowance files fit total and encoded request; real encoded pixels resize and exceed old normalized total",
    "Worker wall/RSS/output/exit failures leave no enquiry and permit correction/retry",
    "Two admitted requests; third busy response; capacity released for retry",
    "Handled file and operation-record failure removes only this operation files and rolls back rows",
    "Concurrent exact retry, changed-content conflict, cache-pruned replay and restored replay preserve original identity",
    "Exact enquiry/job/customer binding, private anonymous/foreign denial, owner review and separate staff/customer/gallery gates",
    "Client HEIF selection avoids native bitmap decoding; rejection retains body/files and preserves retry semantics",
    "Authenticated photo/asset format and size contracts unchanged"
  ],
  "recovery": {
    "format": 12,
    "schema_changed": false,
    "implementation_metadata": "0.20.0",
    "accepts_older_format12_metadata": "0.19.0",
    "pinned_older_formats": [
      1,
      2,
      3,
      4,
      5,
      6,
      7,
      8,
      9,
      10,
      11
    ],
    "older_code_accepts_new_backups": false,
    "drill_reports": [
      "recovery-v0.20/customer-recovery-drill.json",
      "recovery-v0.20/document-lifecycle-drill.json",
      "recovery-v0.20/enquiry-formats-recovery-drill.json",
      "recovery-v0.20/enquiry-recovery-drill.json",
      "recovery-v0.20/feedback-recovery-drill.json",
      "recovery-v0.20/field-recovery-drill.json",
      "recovery-v0.20/portal-recovery-drill.json",
      "recovery-v0.20/recovery-drill.json",
      "recovery-v0.20/recurrence-recovery-drill.json",
      "recovery-v0.20/workflow-recovery-drill.json"
    ],
    "new_format_drill": "recovery-v0.20/enquiry-formats-recovery-drill.json",
    "new_format_source_deleted_before_restore": true,
    "permissions_suspended_and_publication_withdrawn": true,
    "second_generation_verified": true,
    "restored_browser_or_second_machine_verified": false
  },
  "initial_run_resolution": {
    "first_full_run": "688 passed, 3 failed; retained in work/v0.20-photo-formats/backend-full.txt and backend-first-run.xml",
    "test_expectation_corrected": "Recovery intentionally increments portal_version and clears portal credentials; contact facts still match",
    "other_two_failures": "Existing recovery time-budget/CLI timeout failures did not recur in the final full run",
    "interrupted_retest": "A later retest stalled on an existing cloud-only identity_schema.pyc. Only the identified test process was terminated.",
    "final_environment": "Separate /private/tmp/shs-v20-pycache with fresh /private/tmp/shs-v20-venv; all 694 passed",
    "production_performance_claim": false
  },
  "browser": {
    "v020_operated": false,
    "v020_server_started": false,
    "real_phone_verified": false,
    "new_picker_preview_removal_submit_reopen_verified": false,
    "prior_v0191_additional_workflow_groups_passed": 11,
    "prior_selected_file_retention_clear_discard_verified": false,
    "prior_old_qa_tab_cleanup_verified": false,
    "prior_qa_server_stopped": true,
    "further_permission_question_pending": false,
    "reason": "Upload tool still rejected the enabled file-URL setting; fresh-tab retry and native control failed. No repeated probe or seeded UI replacement."
  },
  "outstanding": [
    "Browser picker and real-phone proof",
    "Images above 12 megapixels",
    "Sequences, multiple main images, AVIF and other codecs/phone/HDR variants",
    "Commercial native dependency distribution and licence obligations",
    "Production memory/load/storage policy and crash-orphan cleanup",
    "Gallery permission browser journey, wider staff/PWA/device/integration parity",
    "Complete original source/configuration evidence and live approval"
  ],
  "original_findings_open": 14,
  "capabilities_tracked": 45,
  "production_approved": false,
  "full_parity_approved": false,
  "preservation": "enquiry-format-preservation-check.json",
  "evidence_sha256": {
    "test-results-v0.20.xml": "22a957f324b96ed24599eb07e307155008e3fac6609ba771610124db2907c69c",
    "enquiry-format-backend-tests.txt": "1caffafe29e97fd7627a5df2a84cc58c99f1b23fdff838f6c58292d099e28ef9",
    "enquiry-format-client-tests.txt": "55a72548999eba6073b84863ea93988c5a1c681c18a015986e396fbf7de1e77b",
    "enquiry-format-client-render.json": "3f4824d62933b016c692d420cbc1076ed4455a23f01cbe1dac35836e23a59b9d",
    "enquiry-format-reporting-render.json": "0dcfb67a6ec17962dd4b887355b008985176491fb00c8bd46b50a3faaaf5a79e",
    "enquiry-format-build.txt": "cec9dcca302a1631b02d34bce85de1d7be57a375502fd0af3369ad6671ca10e7",
    "enquiry-format-source-map.json": "560dd7fe6e6747525d70f284f4252ca9bebcf7d56c6534c0fa8c0c445ae928b1",
    "enquiry-format-dependencies.json": "7ebdf3bb3507b7ebc0e6df37037d7becb1ef28c2cefb82ccb52c6194eb74d4a8",
    "enquiry-format-preservation-check.json": "d49445dfbb1460cc3a39766eb32a6b1490b70a79cb43150ff3ddc215bbc61f33",
    "recovery-v0.20/customer-recovery-drill.json": "39593a9383723e962e06edd8ffc0214e09e139065c6e4f6aa410ce891407c688",
    "recovery-v0.20/document-lifecycle-drill.json": "7639a8bd399f39564b9a1a7eae93a39887743bfc54823b8e4977844a7c639e63",
    "recovery-v0.20/enquiry-formats-recovery-drill.json": "58d55bbf228b17195a4575f88b17d65ebb1edd5abbf769c777dc73cc6c6782be",
    "recovery-v0.20/enquiry-recovery-drill.json": "6890dbb5074f73b3be8bd520c0b4d1d856ff40f026e15ba8281423b8a60357c7",
    "recovery-v0.20/feedback-recovery-drill.json": "86c7db500d1aafbad13b2cce6fba201dab0cef55b9470f4990105957c3f2dd8b",
    "recovery-v0.20/field-recovery-drill.json": "6769cdd7c7961685f18faca43e4c905df0b8198fdb67b902f214705ec3d312bc",
    "recovery-v0.20/portal-recovery-drill.json": "bcfa1d3f247d53ffbbb2fa6e12e15d15178f239027907fcc980b3d2623226b03",
    "recovery-v0.20/recovery-drill.json": "6e4c47b0e90b5aa6a5115c79f2b5c74d1c1d71cbc7ff2b318c03efe127d29c42",
    "recovery-v0.20/recurrence-recovery-drill.json": "6b2b55ccd17721c12aa68f34813f94eddd9fb931253f512818b85f10118d052c",
    "recovery-v0.20/workflow-recovery-drill.json": "75652188393ed9a0bb0276379125884bd771885834e6e49de9b1d172b5ae034b",
    "licenses/v0.20/pillow-heif-LICENSE.txt": "9e2635f155b00af5a46cb2f2c9b052072ec546d59837ee74efc9cba2cbb83f3d",
    "licenses/v0.20/pillow-heif-LICENSES_bundled.txt": "7c5eab5b0bc4ed21688891149081b38432b2bbe8e8b49c12708a8ddcf7d700d8",
    "licenses/v0.20/psutil-LICENSE": "b89c063b3786e28e0c0a38f1931db61fed35e69dd2a2966fbecffee0f46c8d10"
  }
}
