Clock photo metadata prefilters and original acquisition #10

Merged
xrisk merged 4 commits from feat/photo-prefilters into main 2026-10-16 12:05:06 +00:00
Owner

Related #5. Draft stage-1 metadata enrichment; not merge-ready.

Contract (operator confirmed)

Stage 1 enriches metadata with metrics, stage-local verdicts/reasons and provenance. It does not remove images or decide final use. Generated ignored sidecar .photo-curation/prefilter.json; committed structural schema; join by (set_id, file, sha256). Final pipeline combines later-stage evidence under explicit versioned policy. Attribution/source manifest remains unchanged.

Analysis v2 requires EXIF-oriented original width >=1920 and height >=1080 before thumbnailing, for no-upscale 16:9 cover. Prepared assets and original byte evidence are distinct.

Implemented

• Deterministic offline Pillow/numpy scorer: resolution, cover loss, blur, exposure, exact/near duplicates, EXIF; atomic versioned evidence with config/hash/provenance, summaries, error/review/reject/pass.
• Isolated optional prefilter environment, 15 synthetic tests, schema, docs/wiki.
• Separate original acquisition: scripts/fetch-clock-originals.py <set> downloads raw unresized bytes to ignored worktree .photo-curation/originals/<set>/, no build hook or app/shared-cache writes. HTTPS/curl, serial spacing/retry/limits, atomic hashed receipts, byte-verified resume; Commons File seed URLs resolved to original upload URLs. Download receipt schema (docs/photo-original-download.schema.json) and 4 downloader tests included.
• Committed and pushed to feat/photo-prefilters (commit 13865ae).

New York evidence

Prepared pool (518 assets)

All 518 prepared inputs and built resource copies scanned read-only; reports identical including hashes. 0 pass / 518 reject / 0 review / 0 errors, 5.483s and 5.511s (~94 images/s). Root cause: existing fetch reduces downloads to 1280px; all fail 1080p width. This does not establish original resolution.

Original pool (518 assets, 2.9 GiB)

All 518 manifest identities (505 download URLs + 13 seeds) acquired with 0 download errors. Analysis of original bytes: 31.461s (~16.5 images/s), 487/518 decoded, 279 pass (53.9%), 60 reject (11.6%), 148 review (28.6%), 31 error (6.0%). Evidence: .photo-curation/new-york-originals-v2.json.

In contrast to prepared assets where 100% failed resolution, only 58 original photos (11.2%) fail the 1080p requirement.

Overlapping reasons across all 518 entries:

  • resolution_too_small: 58
  • cover_crop_loss (>35%): 185
  • extreme_cover_crop (>75%): 1
  • dark_exposure: 6
  • crushed_shadows: 2
  • blown_highlights: 1
  • low_contrast: 1
  • near_duplicate: 6
  • exact_duplicate: 1

Input errors (31 total) represent honest bounds on original inputs:

  • input_byte_limit: 9 (raw files >32 MiB, e.g. large archival TIFF scans like Brooklyn Bridge at 213 MiB)
  • invalid_exif_orientation: 8
  • unsafe_or_undecodable_input: 14 (Pillow decompressed pixel limits or unhandled format)

Validation / remaining work

• All 15 synthetic tests pass (11 scorer + 4 downloader); py_compile and diff checks pass.
• Street-photography was not acquired or scanned.
• Inspect real flagged photos and review cutoffs with operator.
• Evidence merger/final eligibility policy and pre-Vision consumer are not implemented. Existing probe/bake/runtime selection and runtime 1600px/q0.7 encoding are unchanged.
• No build/test GUI, launch/quit, Vision, app photo changes or shared runtime-cache writes. make test and physical rendering remain unverified.

Operating instructions and full distributions are in docs/photo-prefilters.md; generated original bytes/reports are not committed. No merge or issue closure.

Related #5. Draft stage-1 metadata enrichment; not merge-ready. ## Contract (operator confirmed) Stage 1 enriches metadata with metrics, stage-local verdicts/reasons and provenance. It does not remove images or decide final use. Generated ignored sidecar `.photo-curation/prefilter.json`; committed structural schema; join by `(set_id, file, sha256)`. Final pipeline combines later-stage evidence under explicit versioned policy. Attribution/source manifest remains unchanged. Analysis v2 requires EXIF-oriented original width >=1920 and height >=1080 before thumbnailing, for no-upscale 16:9 cover. Prepared assets and original byte evidence are distinct. ## Implemented • Deterministic offline Pillow/numpy scorer: resolution, cover loss, blur, exposure, exact/near duplicates, EXIF; atomic versioned evidence with config/hash/provenance, summaries, error/review/reject/pass. • Isolated optional prefilter environment, 15 synthetic tests, schema, docs/wiki. • Separate original acquisition: `scripts/fetch-clock-originals.py <set>` downloads raw unresized bytes to ignored worktree `.photo-curation/originals/<set>/`, no build hook or app/shared-cache writes. HTTPS/curl, serial spacing/retry/limits, atomic hashed receipts, byte-verified resume; Commons File seed URLs resolved to original upload URLs. Download receipt schema (`docs/photo-original-download.schema.json`) and 4 downloader tests included. • Committed and pushed to `feat/photo-prefilters` (commit 13865ae). ## New York evidence ### Prepared pool (518 assets) All 518 prepared inputs and built resource copies scanned read-only; reports identical including hashes. 0 pass / 518 reject / 0 review / 0 errors, 5.483s and 5.511s (~94 images/s). Root cause: existing fetch reduces downloads to 1280px; all fail 1080p width. This does not establish original resolution. ### Original pool (518 assets, 2.9 GiB) All 518 manifest identities (505 download URLs + 13 seeds) acquired with 0 download errors. Analysis of original bytes: 31.461s (~16.5 images/s), **487/518 decoded, 279 pass (53.9%), 60 reject (11.6%), 148 review (28.6%), 31 error (6.0%)**. Evidence: `.photo-curation/new-york-originals-v2.json`. In contrast to prepared assets where 100% failed resolution, only **58 original photos (11.2%)** fail the 1080p requirement. Overlapping reasons across all 518 entries: - `resolution_too_small`: 58 - `cover_crop_loss` (>35%): 185 - `extreme_cover_crop` (>75%): 1 - `dark_exposure`: 6 - `crushed_shadows`: 2 - `blown_highlights`: 1 - `low_contrast`: 1 - `near_duplicate`: 6 - `exact_duplicate`: 1 Input errors (31 total) represent honest bounds on original inputs: - `input_byte_limit`: 9 (raw files >32 MiB, e.g. large archival TIFF scans like Brooklyn Bridge at 213 MiB) - `invalid_exif_orientation`: 8 - `unsafe_or_undecodable_input`: 14 (Pillow decompressed pixel limits or unhandled format) ## Validation / remaining work • All 15 synthetic tests pass (11 scorer + 4 downloader); py_compile and diff checks pass. • Street-photography was not acquired or scanned. • Inspect real flagged photos and review cutoffs with operator. • Evidence merger/final eligibility policy and pre-Vision consumer are not implemented. Existing probe/bake/runtime selection and runtime 1600px/q0.7 encoding are unchanged. • No build/test GUI, launch/quit, Vision, app photo changes or shared runtime-cache writes. make test and physical rendering remain unverified. Operating instructions and full distributions are in `docs/photo-prefilters.md`; generated original bytes/reports are not committed. No merge or issue closure.
Author
Owner

Updated for operator request in #5: analysis v2 rejects sources below EXIF-oriented 1920x1080, checking both axes for no-upscale 16:9 cover instead of discovery long/short-edge floors. Added exact-boundary, panorama, portrait, 4K and EXIF tests; schema/docs/wiki updated. All 11 isolated synthetic tests and git diff --check pass. Historical seed calibration is explicitly v1. No build, launch, Vision, runtime caches or live bundle changes. Still report-only: fresh-pass ingest enforcement is pending; runtime 1600px JPEG encoding is unchanged. Not merge-ready.

Updated for operator request in #5: analysis v2 rejects sources below EXIF-oriented 1920x1080, checking both axes for no-upscale 16:9 cover instead of discovery long/short-edge floors. Added exact-boundary, panorama, portrait, 4K and EXIF tests; schema/docs/wiki updated. All 11 isolated synthetic tests and git diff --check pass. Historical seed calibration is explicitly v1. No build, launch, Vision, runtime caches or live bundle changes. Still report-only: fresh-pass ingest enforcement is pending; runtime 1600px JPEG encoding is unchanged. Not merge-ready.
xrisk changed title from WIP: Report-only model-free clock photo prefilters to WIP: Clock photo metadata prefilters and original acquisition 2026-10-15 13:03:04 +00:00
xrisk changed title from WIP: Clock photo metadata prefilters and original acquisition to Clock photo metadata prefilters and original acquisition 2026-10-16 12:05:00 +00:00
xrisk merged commit 7eb9a9a8b8 into main 2026-10-16 12:05:06 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
xrisk/tvd!10
No description provided.