Skip to content

Upstream intake 2026-11-15: 5 PRs, 0 commits - #1216

Merged
emmertex merged 6 commits into
mainfrom
upstream-intake-2026-11-15
Nov 15, 2026
Merged

emmertex merged 6 commits into
mainfrom
upstream-intake-2026-11-15

Conversation

@emmertex

Copy link
Copy Markdown
Owner

Round 8 of the upstream intake (runbook), upstream main at 80de5f8fae. 86 items: 49 new upstream PRs plus 37 ledger rows whose head moved. Every row is in docs/upstream-pr-reviews/ledger.md.

Adopted

Upstream Fork commit What Checked
#4221 efc54ecdc SAM 3 clicks whose reply races the poll aren't dropped (delivery lock; Recompute batch kept too); HDR LUT tests get a 1e-6 tolerance clippy -p lcc-engine --features sam --tests
#4260 7a118296b Untouched raws with an unknown or relative-scale as-shot white keep their camera preview (develop_matches) clippy catalog+engine
#3956 17d9ecf3a A damaged catalog log is kept under a free name and never overwrites an earlier kept copy (Store::write_new). Catalog part only clippy catalog
#3567 5211afe91 Tests only: late symlinked originals, dangling links, hard links clippy engine
#1692 35684a0fc Shutter speeds keep their precision: one formatter (1/n only when exact, otherwise 4 significant digits), exact time kept in Meta, Reload from Disk repairs old text clippy meta/catalog/layout/engine, brand check

No tests were run locally (maintainer's instruction); cloud CI runs them. The #4221 tests need --features sam.

Watch-outs

  • RAW + JPEG pairs: treat the JPEG as a companion of the raw #1692: 0.5 s now shows as 1/2. It adds an optional exposure_time field to the catalog Meta with no version bump, so older builds drop the field when they save. lcc-layout now depends on lcc-meta (L3→L1, allowed).
  • #4260: this changes Reset defaults for raws whose white balance is still unknown (they get raw defaults at 6500 K). Not a process-version change.
  • #3567: the fork has no identity check for a hard link to an original under another name. That is harmless with atomic-rename exports. Noted as a possible follow-up.
  • Shared numbers taken: none (no process version, no catalog version).

Not adopted

  • SKIP: craft-libs cut-overs and their CI fixes (#4222 #4229 #4231 #4233 #4234 #4236–#4239 #4241 #4244 #4245 #4270 #4274 #4278); dependency bumps (#4232 #4261); upstream release, docs, contributors and tests (#4224 #4230 #4263 #4265 #4269 #4277 #4282); duplicates or superseded (High-ISO shadows render magenta: white balance floors each channel at zero, per pixel #1718 Nightly full run failing #1856 #1961 #2449 #2777 #4248); closed (#1891 #2351); #3982 (the fork keeps the Upright naming).
  • PENDING/WATCH: #2645 #2896 #4215 #4216 #4225 #4243 #4246 #4249 #4251 #4257 #4271 #4279. LEARN: #4223 #4272.
  • The 37 moved rows: mostly main merges; decisions kept, refs re-stamped.

Manual: none (whats-new files added for #1692 and #4260).

🤖 Generated with Claude Code

emmertex and others added 6 commits November 15, 2026 23:28
Adapted from upstream #4221 (head 40616e78da): the worker sends each reply
under a delivery lock, and the session observes idleness and drains replies
under the same lock (try_lock, so the UI never blocks). Pending clicks are
cleared as lost only when the worker is idle and no unsuperseded reply to
them came in that poll; a Recompute batch is likewise kept when one of its
replies arrived. HDR LUT tests compare with a 1e-6 tolerance.

Sources: upstream storytold/lightcraft #4221 (40616e78da).
Manual: none, no user-visible change beyond the bug fix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… white is unknown or relative

Adapted from upstream #4260 (d2b8ce4831).

A raw edited in Kelvin whose as-shot white isn't read yet now gets a raw's
defaults (for_raw(6500, 0), Kelvin scale) instead of DevelopSettings::default().
New Photo::develop_matches holds the As Shot normalisation; is_edited keeps
the fork's lens_profile tolerance, and has_import_look uses develop_matches
so As Shot numbers on the old relative scale no longer defeat the camera
thumbnail.

Sources: storytold/lightcraft PR #4260 (crates/catalog/src/model.rs, crates/engine/src/import/defaults.rs, thumbnail_hash_tests.rs)
Manual: none, no user-visible change to documented behaviour (Reset wording in develop/history.mdx stays true)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 1dd736fe419eee329e7a58a676371d71c8ab76ee)
…r over an earlier copy

Adapted from upstream #3956 (61ccd80cde), catalog part only.

New Store::write_new (default check-then-write_atomic; FsStore uses
safe_file::write_new, MemStore inserts under its lock) and
keep_damaged_log: tries catalog.log.damaged-<seq>, -2, ... up to 100
names, reuses a copy with identical bytes, never replaces a copy that
appears between the read and the write, and fails the open without any
change when every name is taken. Replaces the fork's read-then-
write_atomic loop (which used -1, -2, ... and could race). The web
start-up part (apps/lightcraft-web) is not ported.

Sources: storytold/lightcraft PR #3956 (crates/catalog/src/journal.rs, store.rs, tests_journal.rs)
Manual: none, no user-visible change

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 02e9f234209ccfe886fa5ade37f0ad08ad0a4dad)
…d hard links

Adapted from upstream #3567 (c01ed2fa87), tests only.

A symlinked original added after a first check is found by the next one
(add drops the links index); a dangling symlinked original refuses
nothing and resolves to no entry; a hard link under another name passes
the write check (which looks up only the target's own names) while the
original is refused. The fork has no separate identity check
(upstream's check_identity), so the third test asserts the write check
half only and is renamed accordingly. Unix-gated like the existing
symlink test.

Sources: storytold/lightcraft PR #3567 commit c01ed2fa87 (crates/engine/src/originals.rs)
Manual: none, no user-visible change

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 5fe049b4272638ebaafd04dcd7bad5b1823d3eb4)
…d export

Adapted from upstream #1692 (a9ea230). One shutter formatter
(lcc_meta::format_exposure_time): a near-exact 1/n second shows as 1/n
(tolerance 1e-3, so 3333/10000 reads 1/3), anything else keeps four
significant digits (0.3571, 0.625) - never a raw f64. The catalog shutter
text keeps the fork's ″ from one second up. Meta gains an optional
exposure_time (serde default, skipped when None: no catalog version change)
holding the file's exact time; Meta::shutter_seconds prefers it while the
text still shows it, so export, Match Total Exposures and stacking use the
exact duration. Shutter-speed rules keep matching the shown text. Metadata
column labels (facets), print/web caption tokens (layout) and All Metadata
rows use the same formatter. Reload from Disk repairs shutter texts older
imports wrote (upstream's integer-reciprocal wording and the fork's
tenth-of-a-second wording) on the photo and its virtual copies, keeping
hand-set values and copies' other edits.

Sources: storytold/lightcraft PR #1692 (a9ea230)
Manual: none, no manual sentence describes shutter formatting (What's New entry added)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit f742693e9003e6e4575927e2d55cdbe5ad124a68)
Manual: none, no user-visible change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@emmertex
emmertex merged commit 674cad7 into main Nov 15, 2026
8 of 9 checks passed
@emmertex
emmertex deleted the upstream-intake-2026-11-15 branch November 15, 2026 13:35
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.

1 participant