Skip to content

LR-IMP-FORMATS: folder import finds Sony SR2 and SRF files - #1165

Merged
aiongg merged 1 commit into
storytold:mainfrom
AlexChambers:sr2-srf-folder-discovery
Oct 22, 2026
Merged

aiongg merged 1 commit into
storytold:mainfrom
AlexChambers:sr2-srf-folder-discovery

Conversation

@AlexChambers

@AlexChambers AlexChambers commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Folder import skipped Sony .SR2 and .SRF files, though opening one of those files directly worked. Found while triaging the open Sony issues: direct catalog queries opened a DSC-R1 SR2 from sensor data and a DSC-F828 SRF as preview-only, but importing the folder holding them found neither. So the problem was discovery, not decoding. Follows up #702: since #774 the F828 SRF opens again when chosen directly, but coverage.tsv still recorded it as "SRF not in the import list".

Rebased onto main 0da998f2 after integration batch 40. This branch inherits main's LOOK_VERSION 9 and RENDER_CACHE_VERSION 64.

Overlap: the MCP change (reusing the engine's list) also fixes #1080, as #1119 and #1175 do. If either lands first I'll drop that hunk; what only this PR adds is sr2/srf in the engine list, its tests, and the coverage corrections.

What was wrong

lightcraft_engine::import::EXTENSIONS (used by folder import, the file pickers, Local browsing, folder sync and the CLI's import) had no sr2 or srf. The MCP server kept its own PHOTO_EXTENSIONS, which also lacked them and had drifted further: it had no nrw, heic or heif either.

Fix

  • sr2 and srf are added to EXTENSIONS. Its doc comment now says the list includes preview-only raws, since the probe decides whether sensor decoding is available.
  • mcp::headless::PHOTO_EXTENSIONS now re-exports the engine list, and expand_paths uses lightcraft_engine::import::is_supported, so the two can't drift again. MCP folder expansion therefore also picks up NRW, HEIC and HEIF. A HEIC in a build without the heif feature is reported as failed with its reason, as in the app.
  • No decoder changes. The F828 SRF still opens preview-only. The CLI's separate calibration filter (ARW/NEF/NRW/RAF) is unchanged.
  • Docs:
    • raw-parity.md: a note that an extension is not a promise of sensor decoding.
    • raw/evidence.tsv: DSC-F828 is now recorded as preview-only, measured with the release CLI on raw.pixls.us DSC06227.SRF.
    • raw/coverage.py gets an explicit SRF rule, so SRF bodies without evidence (DSC-V3) stay unsupported, with a reason that no longer says "not in the import list".
    • coverage.tsv and the counts are regenerated: preview-only 233 → 234, unsupported 36 → 35.
    • gaps.md gap 10 and the LR-IMP-FORMATS row are updated. Statuses and readiness scores are unchanged.

Verification

  • Engine test recursive_discovery_includes_sony_sr2_and_srf_case_insensitively: nested folders, mixed-case extensions (.SR2, .Sr2, .SrF), a JPEG control and a .txt that must be skipped. Folder and direct discovery must agree. It fails on main.
  • MCP test folder_discovery_matches_engine_extensions: every engine extension, in lower and upper case and in a nested folder, is found by expand_paths, and the .txt is not.
  • Release CLI with the public raw.pixls.us samples: recursive import, direct import and CLI/MCP folder expansion agree.
    • DSC-R1 SR2: 3888 × 2592, from sensor data.
    • DSC-F828 SRF: 640 × 480, preview-only, with the decoder's reason kept.
  • cargo xtask ci: fmt, clippy and the HEIC checks pass. Test results are the same as main 76b5377: the 11 known engine failures plus the known UI dialog failure, and nothing new. Parity, layers, assets, WASM and the coverage --check pass.

DSC-V3 (also SRF) was not checked; no sample was at hand.

🤖 Generated with Claude Code

@AlexChambers

Copy link
Copy Markdown
Contributor Author

Rebased onto batch 32. The only conflict was #1254's change to the extension list in crates/mcp/src/headless.rs. This PR replaces that list with the engine's import list, which already includes HEIC, HEIF and NRW, so I kept the engine list and #1254's a_folder_import_includes_heic_heif_and_nrw test. The MCP headless tests and the engine import tests pass.

@AlexChambers

Copy link
Copy Markdown
Contributor Author

Rebased onto main a4b53b2 (batch 35). The only conflicts were in docs/gaps.md, docs/parity-checklist.md and docs/raw-parity.md; this branch now adds just its own rows there, and coverage.py --check and cargo xtask parity pass. Code is unchanged. Engine and MCP tests, fmt and Clippy pass.

Reuse the engine's import extensions in MCP and CLI discovery. Add
recursive, case-insensitive discovery tests and record that DSC-F828
SRF import remains preview-only.

Co-Authored-By: Codex <noreply@openai.com>
@AlexChambers
AlexChambers force-pushed the sr2-srf-folder-discovery branch from 4c9b818 to 484215f Compare October 15, 2026 08:42
@AlexChambers

Copy link
Copy Markdown
Contributor Author

The coverage and tracker conflicts now keep main's camera evidence and add only the SR2/SRF discovery changes. Both copies of main's F828 evidence row now classify it as preview-only, and the coverage generator check passes. Rebased onto main 0da998f2. On that base, scoped build and complete touched-crate tests, formatting, Clippy with warnings denied, parity, layers and assets pass, as does the scoped WebAssembly check.

deunderscorepaul pushed a commit to deunderscorepaul/lightcraft-classic that referenced this pull request Oct 17, 2026
…files

Thanks @AlexChambers

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
deunderscorepaul pushed a commit to deunderscorepaul/lightcraft-classic that referenced this pull request Oct 17, 2026
…th one separator, so the SR2/SRF discovery test passes on Windows

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
elrumo pushed a commit to elrumo/lightcraft that referenced this pull request Oct 19, 2026
# Conflicts:
#	crates/mcp/src/headless.rs
#	docs/gaps.md
#	docs/parity-checklist.md
#	docs/raw-parity.md
elrumo pushed a commit to elrumo/lightcraft that referenced this pull request Oct 19, 2026
aiongg added a commit to aiongg/lightcraft that referenced this pull request Oct 22, 2026
@aiongg
aiongg merged commit 91c465a into storytold:main Oct 22, 2026
bogusyogi pushed a commit to Orthic-Labs/ember that referenced this pull request Oct 25, 2026
… today

docs/rightkit-port/cut-list.md: every crate, app and support tree with a verdict
(keep, replace, drop, later), line counts that partition the Rust tree exactly
(331,735 src / 20,679 other), the reason and the evidence. The twelve drop rows are
#259-#270 for Adrian's call; nothing is deleted for them.
docs/rightkit-port/new-packages.md: N1-N11 with surface, consumers, class and sync
path; D1, N7, N10 and A14 are bogusyogi/rightkit#1158-storytold#1161.

Ported (owner API read first, copy deleted):
- open_url: apps/lightcraft-desktop/src/services.rs calls
  rightkit_child_process::open_url (launch.rs:15, 0.5.6); the https-only rule
  stays at the call site; the opener helper and constants are gone (-23 lines).
- crates/mcp: base64 encode/decode and ct_eq come from rightkit-crypto 0.1.0
  (lib.rs:107,218,223); base64.rs (60 lines) and the local ct_eq are deleted and
  the crate re-exports the owner's names. Adds blake3 and constant_time_eq to the
  lock (blake3 builds C and assembly by default; `ring` is already in the lock).

Read and not ported, with a ledger entry, an issue and an expiry each:
- rightkit-sidecar length_prefixed (A5): refuses a zero-length frame, which the
  remote SAM protocol sends for a click-only request (storytold#1163).
- rightkit-mcp ServerHost (X115): synchronous Server API driven by the crate's
  tests and e2e; needs a host run (storytold#283).
- rightkit-models (A6): bearer token scope and cross-file progress (storytold#1164).
- rightkit-job-queue (A2) storytold#1162, rk_logs (A20) storytold#1027, video sidecar (A9) storytold#1015,
  ONNX bind (A10) storytold#1165, static-check CSP (A21) storytold#1136, egui i18n/theme (A22) storytold#960,
  fetch http adapter #256, segmask base64 #257, photo-ai #258.
The ledger now has 30 entries, each with `issue` and `expires` 2026-11-30.

Claude-Session: https://claude.ai/code/session_01K2MsXFDhGU3dPG949WGWAa
emmertex added a commit to endthestart/lightcraft that referenced this pull request Nov 14, 2026
…ver-width

UI-1146: compact Color Overlay Settings popover
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0.6.0: run --import <folder> skips HEIC/HEIF (the CLI's PHOTO_EXTENSIONS lags the engine's EXTENSIONS)

2 participants