Skip to content

Commit e45047d

Browse files
authored
Merge pull request #1695 from emmertex/staging
Nightly: staging → main 2026-11-30
2 parents 16e69e2 + 756e57c commit e45047d

441 files changed

Lines changed: 111761 additions & 1814 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/workflows/ci.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ jobs:
151151
runs-on: ${{ fromJSON(matrix.runner) }}
152152
timeout-minutes: 240
153153
steps:
154+
# the tree under test (the runners keep their workspace between jobs, so without this they build an old one)
155+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
154156
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
155157
with:
156158
repository: storytold/craft-fonts
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# `release` takes only what `main` has tested (docs/ci.md). A PR to `release` is the merge of `main` into
2+
# `release`; when nothing else rode along, the tree of that merge is the tree of `main`'s tip. Anything
3+
# else — a fix made on the way, or a `main` that moved since — fails here, before the release is built.
4+
name: Release source
5+
6+
on:
7+
pull_request:
8+
branches: [release]
9+
10+
concurrency:
11+
group: release-source-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
source:
19+
name: Release source (tree equals main)
20+
runs-on: [self-hosted, Linux, X64, lcc]
21+
timeout-minutes: 10
22+
steps:
23+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
24+
with:
25+
sparse-checkout: .github/scripts
26+
- run: bash .github/scripts/install-gh.sh
27+
- env:
28+
GH_TOKEN: ${{ github.token }}
29+
run: |
30+
# the checkout is GitHub's merge of the PR into `release`
31+
merged=$(git rev-parse 'HEAD^{tree}')
32+
main=$(gh api "repos/$GITHUB_REPOSITORY/commits/main" --jq '.commit.tree.sha')
33+
if [ -z "$main" ]; then
34+
echo "::error::could not read the tree of main"
35+
exit 1
36+
fi
37+
if [ "$merged" != "$main" ]; then
38+
echo "::error::this PR would put tree $merged on release, but main's tip has tree $main. release takes only what main has tested: land the change on main (or merge the newest main into this branch) and try again."
39+
exit 1
40+
fi
41+
echo "::notice::the merged tree $merged is main's tip tree"

‎.github/workflows/release.yml‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,12 @@ jobs:
217217
repository: storytold/craft-fonts
218218
ref: b4ce3ee090ea4b06791e9501ea2f8e6f746d5cd3 # bump deliberately
219219
path: craft-fonts
220+
# LibRaw (opt-in raw decoder, compiled in statically): crates/libraw/build.rs.
221+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
222+
with:
223+
repository: LibRaw/LibRaw
224+
ref: cf02d66eb5c19d4e46df7aee0582e47a4918509a # 0.22.3, bump deliberately
225+
path: libraw-src
220226
- uses: dtolnay/rust-toolchain@686976e191b89faba57d3206551f0f330d8cb249 # stable
221227
with:
222228
targets: aarch64-apple-darwin, x86_64-apple-darwin
@@ -238,6 +244,8 @@ jobs:
238244
env:
239245
CRAFT_FONTS_DIR: ${{ github.workspace }}/craft-fonts
240246
CRAFT_FONTS_REQUIRED: "1"
247+
LIBRAW_DIR: ${{ github.workspace }}/libraw-src
248+
LIBRAW_REQUIRED: "1"
241249
APPLE_ID: ${{ secrets.APPLE_ID }}
242250
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
243251
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
@@ -310,6 +318,12 @@ jobs:
310318
repository: storytold/craft-fonts
311319
ref: b4ce3ee090ea4b06791e9501ea2f8e6f746d5cd3 # bump deliberately
312320
path: craft-fonts
321+
# LibRaw (opt-in raw decoder, compiled in statically): crates/libraw/build.rs.
322+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
323+
with:
324+
repository: LibRaw/LibRaw
325+
ref: cf02d66eb5c19d4e46df7aee0582e47a4918509a # 0.22.3, bump deliberately
326+
path: libraw-src
313327
- name: Low priority, release build cache
314328
shell: pwsh
315329
run: |
@@ -375,6 +389,8 @@ jobs:
375389
env:
376390
CRAFT_FONTS_DIR: ${{ github.workspace }}/craft-fonts
377391
CRAFT_FONTS_REQUIRED: "1"
392+
LIBRAW_DIR: ${{ github.workspace }}/libraw-src
393+
LIBRAW_REQUIRED: "1"
378394
WINDOWS_CERTIFICATE: ${{ secrets.WINDOWS_CERTIFICATE }}
379395
WINDOWS_CERTIFICATE_PASSWORD: ${{ secrets.WINDOWS_CERTIFICATE_PASSWORD }}
380396
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
@@ -461,6 +477,12 @@ jobs:
461477
repository: storytold/craft-fonts
462478
ref: b4ce3ee090ea4b06791e9501ea2f8e6f746d5cd3 # bump deliberately
463479
path: craft-fonts
480+
# LibRaw (opt-in raw decoder, compiled in statically): crates/libraw/build.rs.
481+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
482+
with:
483+
repository: LibRaw/LibRaw
484+
ref: cf02d66eb5c19d4e46df7aee0582e47a4918509a # 0.22.3, bump deliberately
485+
path: libraw-src
464486
- name: Install build and packaging tools
465487
run: |
466488
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
@@ -485,6 +507,8 @@ jobs:
485507
env:
486508
CRAFT_FONTS_DIR: ${{ github.workspace }}/craft-fonts
487509
CRAFT_FONTS_REQUIRED: "1"
510+
LIBRAW_DIR: ${{ github.workspace }}/libraw-src
511+
LIBRAW_REQUIRED: "1"
488512
# appimagetool is an AppImage; no FUSE in the container
489513
APPIMAGE_EXTRACT_AND_RUN: "1"
490514
run: packaging/linux/package.sh

‎AGENTS.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,15 @@ fuzzing guard it afterwards; [docs/ci.md](docs/ci.md)). Merge agent branches one
4747
`cargo xtask ci --fast` + targeted tests between (two green branches can still conflict). Resuming after a crash:
4848
check `git status` on staging, `git worktree list`, `staging..HEAD` per worktree; commit small and often.
4949

50+
**Permanent branches:** `staging`, `main` and `release` are never deleted, renamed or force-pushed, and none of
51+
them is ever the head of a PR except `staging` in the batch PR `staging` → `main` (the repository deletes a merged
52+
PR's head branch: a PR with head `main` deleted `main` on 2026-11-28). Flow, one direction only:
53+
PR → `staging` (fast gate, no tests) → batch PR → `main` (full tests) → `release` (packaging only). A fix the full
54+
gate asks for is a PR to `main`; afterwards bring it back with a throwaway branch
55+
(`git switch -c sync/main-to-staging-<date> origin/main`, PR to `staging`). Nothing is ever fixed on `release`:
56+
it takes only what `main` already tested (the "Release source" check compares the trees). Never pass
57+
`--delete-branch` on a PR whose head is one of the three. [`docs/ci.md`](docs/ci.md).
58+
5059
## Never crash (outranks features)
5160
Malformed raw/JPEG/XMP, bad command/control/MCP argument, corrupt catalog/settings, full disk → actionable error,
5261
never a panic. Never ship a panic path; fix crashes before building on them. This section is the full standard.

‎CONTRIBUTING.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ issue. A checklist row with no issue is named in the PR title instead.
2020
## Open a pull request
2121

2222
- **From a fork**, branched from latest `staging`, targeted at `staging` (the default branch; PRs never
23-
target `main` directly — batches of `staging` land there together, see [`docs/ci.md`](docs/ci.md)). GitHub merges
23+
target `main` directly — batches of `staging` land there together, see [`docs/ci.md`](docs/ci.md); `staging`,
24+
`main` and `release` are permanent and never a PR's head). GitHub merges
2425
only up-to-date branches: when `staging` moves, merge it in, re-run the checks, push.
2526
- **Template** ([`.github/PULL_REQUEST_TEMPLATE.md`](.github/PULL_REQUEST_TEMPLATE.md)); one change per PR.
2627
- **Title:** task/checklist id first, as commits do (`LR-IMP-FORMATS: …`), or `Issue #123: …`.

‎Cargo.lock‎

Lines changed: 3 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ version = "26.48.2"
1010
edition = "2024"
1111
license = "MIT OR GPL-3.0-or-later"
1212
rust-version = "1.95"
13-
repository = "https://example.invalid/repo"
1413

1514
[workspace.dependencies]
1615
craft-ui = { git = "https://github.com/storytold/craft-libs", rev = "4dc543cb449cc232e4c3d58f78a05c1ab169db9e", features = ["serde"] }
@@ -162,7 +161,6 @@ pollster = "1"
162161
egui = "0.36"
163162
# control-surface icons in Settings > Controls and the readout (pure Rust; no text, no raster images)
164163
resvg = { version = "0.45", default-features = false }
165-
egui_extras = { version = "0.36", default-features = false }
166164
eframe = { version = "0.36", default-features = false }
167165
egui_kittest = "0.36"
168166
rfd = "0.17"

‎NOTICE‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,14 @@ University of Illinois/NCSA Open Source Licence). Their licences and third-party
255255
beside them as LICENSE-onnxruntime.txt and ThirdPartyNotices-onnxruntime.txt. The app loads the
256256
library at run time through the ort crate (https://github.com/pykeio/ort, MIT OR Apache-2.0)
257257
in crates/onnxrt; the AI features run on our own Rust runners when it is absent. Microsoft's
258-
closed-source DirectML.dll is not shipped.
258+
closed-source DirectML.dll is not shipped. CLIP's vision tower is written as an ONNX model by our
259+
own protobuf writer (crates/onnxrt/src/graph.rs), whose message and field numbers follow ONNX's
260+
onnx.proto (https://github.com/onnx/onnx, Apache-2.0; read as a reference, nothing copied).
261+
262+
AI orientation detection (issue #490) runs the CLIP ViT-B/32 model that AI search downloads on
263+
request (LAION OpenCLIP, MIT; not shipped), plus a 4-way linear classifier fitted by our own code
264+
(crates/ml/src/orient.rs).
265+
No classifier is shipped yet: users fit one on their own photos, and only its numbers are kept.
259266

260267
Linux Wayland window decorations
261268
-------------------------------

‎ROADMAP.md‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Roadmap
22

3-
*Last updated 2026-11-27 (version 0.8.2). Revision history: [Log](#log).*
3+
*Last updated 2026-11-28 (version 0.8.2). Revision history: [Log](#log).*
44

55
Milestones toward full Adobe Lightroom Classic parity, with the Classic shell and output modules (Map, Book, Slideshow,
66
Print, Web, publish) and Immich integration as Chromaforge's own focus on top of the upstream engine. Estimates are for
@@ -13,7 +13,7 @@ continuous agent-driven development with 4–6 parallel agents and are revised a
1313
**switch** from Lightroom. Update it when a gap below closes. The full measured assessment is
1414
[`docs/target-app-parity.md`](docs/target-app-parity.md); the ranked work list is [`docs/gaps.md`](docs/gaps.md).*
1515

16-
**In one line:** the checklist says **91.9%** of 637 rows (P0 98.0%, P1 95.6%, P2 84.1%; Classic extras 91% of P1,
16+
**In one line:** the checklist says **91.8%** of 638 rows (P0 98.0%, P1 95.6%, P2 84.0%; Classic extras 91% of P1,
1717
Immich 11/11), but measured by whether a working photographer could replace Lightroom without noticing, we are at
1818
roughly **60–65%** and at **alpha**. Every Classic module now exists; the remaining gap is mostly **quality of
1919
results and camera coverage** (colour calibration, CR3 variants, render fidelity, lens profiles, AI masks), not
@@ -27,7 +27,7 @@ duplicate Local entries #22, black GPU exports on an Intel iGPU #78).
2727

2828
| Dimension | Estimate | What's true today | Biggest gaps |
2929
|---|---:|---|---|
30-
| **Feature checklist** | 91.9% | P0 core and P1 nearly complete: import (Add / Copy / Move, templates, devices), library, grid/loupe/compare/survey, every Edit slider, curves, colour grading, masking tools, crop/Upright, heal/clone, content-aware Remove (PatchMatch Fill spots), presets/profiles, versions/history, sync, export, Edit In round trips, plug-in host with SDK examples, menus, shortcuts | P1: lens-profile database (import / lensfun download in review), catalog settings, `.lrcat` import depth; video playback/trim |
30+
| **Feature checklist** | 91.8% | P0 core and P1 nearly complete: import (Add / Copy / Move, templates, devices), library, grid/loupe/compare/survey, every Edit slider, curves, colour grading, masking tools, crop/Upright, heal/clone, content-aware Remove (PatchMatch Fill spots), presets/profiles, versions/history, sync, export, Edit In round trips, plug-in host with SDK examples, menus, shortcuts | P1: lens-profile database (import / lensfun download in review), catalog settings, `.lrcat` import depth; video playback/trim |
3131
| **RAW coverage** (formats people shoot) | ~55% | DNG (all kinds), CR2, CR3 lossless Bayer and version 0x100/0x200 C-RAW (M50/R100/R8 pixel-exact corpus), ARW, NEF (uncompressed + Huffman lossless/lossy), RAF (uncompressed, lossless/lossy compressed Bayer and X-Trans), ORF (uncompressed and compressed, E-M1 / E-M10 III verified), Samsung SRW (uncompressed and compressed 32770 / 32772 / 32773), Minolta MRW, Sony ARW v1, packed NEF, SuperCCD RAF, Canon CRW, Epson ERF, Mamiya MEF, RW2 / RWL / Panasonic RAW (every raw format, checked on 178 files from 118 Panasonic and Leica bodies), PEF; every container's embedded preview (incl. CR3) | Unverified **CR3** CRX variants, Nikon lossy-after-split, Canon sRAW, HEIC/AVIF. NEFs labelled compressed but stored uncompressed (Z 6 packed 14-bit, D850 12-bit uncompressed). Nikon High Efficiency NEF (HE / HE★: Z 8, Z 9, Z 6III, Z f; JPEG XS-based, preview only, #193). Per-model verification is thin (~55 corpus files vs >1,000 models) |
3232
| **Colour & image quality** | ~55–65% | Pipeline is complete and fast; GPU path CPU-exact within 1/255 | **No measured camera calibration database**: ARW, NEF, RW2, RAF, CR3, CR2 and PEF have guarded camera-JPEG colour estimates, with bundled ILCE-7CR, ILCE-7M4, X-H2S and X-T4 profiles (docs/camera-preview-colour.md); 52 models whose JPEG fit is rejected start from matrices fitted to measured spectral sensitivities; other non-DNG raws and rejected estimates use a neutral matrix. Colour fidelity remains incomplete. No lens-profile database. No measured fidelity against Lightroom (tone, highlights, texture/clarity, NR, sharpening are tuned by eye) |
3333
| **AI & computational** | ~15–20% | Assisted culling (focus, bursts), auto tone, HDR/panorama merge; subject/sky/background masks as classical heuristics, or the photo's own segmentation mattes when it ships them (DNG semantic masks, e.g. iPhone ProRAW's sky matte); non-destructive Bayer RAW denoise with opt-in weights on pure-Rust CPU/GPU; Lens Blur from the depth model (or the subject) with a focus picker and bokeh shapes; **faces (MVP, [docs/faces.md](docs/faces.md))**: a pure-Rust detector (a 232 KB opt-in download), opt-in recognition models (one-click download or add a file; they run on the shared pure-Rust CPU interpreter; pinned SFace/AuraFace embeddings agree with an independent reference runtime on 40 public crops; one-thread medians 34–36 / 233–252 ms (AuraFace remains expensive)), a background scan that finds and embeds faces, name suggestions, a person's page with look-alike faces to confirm, an Unnamed faces section (look-alikes together, select a group and name it at once) | Real segmentation masks (subject, sky, people, objects, landscape, depth), denoise model policy / linear RGB / quality verification, super resolution, lens blur depth refinement, generative remove, natural-language search; for faces: clusters with separators between groups, small faces in large photos (the detector looks at 640 px), thresholds calibrated on live faces, writing face regions back to XMP. **Blocked on a model strategy** (licensable weights or our own training; pure-Rust inference is feasible) |
@@ -344,6 +344,7 @@ database is read-only; the app owns subsequent edits. See `docs/lightroom-catalo
344344
- 2026-11-23: Getting Started guide row (Help ▸ Getting Started…): 630 rows, P2 80.3%.
345345
- 2026-11-25: process recipes row (CF-PROCESS-RECIPES, `export.runPresets`, plan 7.4): 631 rows, P2 80.4%.
346346
- 2026-11-27: Generative expand (LR-CROP-GENEXPAND) out of OOS as P2 🟡: Crop ▸ Extend Past the Edge and Fill Edges (#861): 91.9% of 637 rows, P2 84.1%.
347+
- 2026-11-28: Auto orient row (CF-AUTO-ORIENT, `photo.autoOrient`, #490) as P2 🟡 (no built-in classifier yet): 91.8% of 638 rows, P2 84.0%.
347348
- 2026-11-27: feature-freeze parity pass: CF-PROCESS-RECIPES row restored (lost in a merge); MENU-APP-UPDATES, KEY-VIDEO-PLAY, MENU-PHOTO-UPDATEAI, LR-REM-DETECT ✅ and LR-AI-UPDATE-INDICATOR 🟡 (they existed); P3 tiers made P2: 92.0% of 636 rows, P2 84.2%.
348349
- 2026-11-23: checklist numbers refreshed (90.3% of 629 rows, matching docs/target-app-parity.md); decoder-source policy brought in line with the 2026-11-10 licence policy; status moved to the tracked docs/status.md.
349350
- 2026-10-12: 0.6.3 numbers: 87.9% of 581 rows after the upstream merge (381 commits) and the fork gap batches.

‎apps/android/src/app.rs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ fn services(cc: &eframe::CreationContext<'_>, host: Option<Arc<Host>>) -> Servic
202202
// atomic (temp file + sync + rename): a failed write never leaves a truncated file
203203
write_shared: Some(Arc::new(lcc_engine::export::write_file)),
204204
write: Some(Box::new(lcc_engine::export::write_file)),
205+
write_new: Some(lcc_engine::export::write_file_new),
205206
png: Some(Box::new(|img: &lcc_raster::Rgba8| {
206207
lcc_codecs::encode_png(&lcc_codecs::EncodeImage::rgba8(img), &lcc_codecs::EncodeMeta::default()).unwrap_or_default()
207208
})),

0 commit comments

Comments
 (0)