Commit Graph
212 Commits
Author SHA1 Message Date
Claude ccb7e03fee test(processing): render node loop, batch note, complete partial downloads
A light analysis that overlaps a deep one of the same sequence re-reads the
report before recording its status, so it neither drops the deep status nor
undercounts warnings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 17:07:54 +00:00
Claude db98385eb0 feat(app): render node follows the opt-in and the server session
RenderNodeHost starts, restarts or stops this PC's render node in order and
off the UI thread whenever the opt-in, the session or the index changes;
a node that cannot start is retried by the next change and exit stops it.
The server test covers managed renders on the server and MP4 jobs left
queued for render nodes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 17:05:43 +00:00
Claude 14cdbf1f7d feat(processing): selective render claims, analysis follow-ups, per-sequence failures
- JobEngine: ISelectiveJobHandler lets a host decline jobs of a kind it runs;
  declined jobs stay queued for other claimers without holding up the rest.
  JobContext.EnqueueFollowUpAsync queues follow-up work on the same engine.
- Server renders the jobs whose every output a managed encoder produces
  (ManagedRenderJobHandler); MP4 jobs stay for render nodes. Program.cs
  registers ProcessingModule next to ArchiveModule. Server renders ignore a
  client's export folder.
- Light analysis is queued after imports and after scans that indexed new
  sequences, so the advisor's Auto values exist without user action.
- Analysis jobs log a failing sequence and go on; the job then fails and a
  retry analyses only the failed ones. The advised frame rate follows the
  user's fit-to duration.
- ProcessingJobs.RenderEach splits a batch into one job per preset for
  servers; render nodes say which batch presets they did not render, fetch
  each content once and stop on a changed certificate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 17:01:50 +00:00
Claude d729d2d09c test(core): project settings keep defaults for members missing from partial JSON
The source-generated deserialiser sets every init-only member it does not
find to null/false/0, so a partial project (API edit, older file) lost its
sections and defaults. FromJson lays the JSON over the default project.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 16:45:37 +00:00
Claude 7d95536096 merge: processing work in progress (analysis/render handlers, render node client) 2026-10-02 16:34:02 +00:00
Claude fee198f627 wip(processing): analysis and render job handlers, render node client (interrupted)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 16:33:27 +00:00
Alby96 77a546624c Merge pull request #1 from Alby96/claude/keen-knuth-uhxv8w
Titano: time-lapse ecosystem (client, server, uploader) — in progress
2026-10-02 16:29:52 +02:00
Claude 21aed70b8d fix(ui): show the rail badge count; keep job row actions inside the table
The rail badge bound an int through TemplateBinding, which does not
convert to text, so the pill was empty. The jobs table's fixed progress
column pushed the row actions past the right edge at 1200 px; progress
now shares the free width with the target column.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 13:50:05 +00:00
Claude 3cb94612c0 fix(server): service command line works in a single-file publish
Assembly.Location is empty in a single-file app (IL3000 failed the
Windows publish step); the entry assembly path now comes from the base
directory, which is where it lives when the server runs under dotnet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 13:35:28 +00:00
Claude f4e2f285a9 fix(server): Windows startup test asks for PostgreSQL; TITANO_LOG_LEVEL
The connection-string test built options with the platform default,
which is SQLite on Windows, so it parsed a file path as a PostgreSQL
connection string. The server gains a log level setting
(TITANO_LOG_LEVEL, also in compose and the Unraid template); the test
servers log warnings only, which cuts the suite's output from 511 to 80
lines so failures stay findable in CI logs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 13:20:03 +00:00
Claude 34505dfe79 fix(app): settings list column width is a GridLength; lint resource value types
The Settings screen sized its section column from a Double resource;
ColumnDefinition.Width needs a GridLength, so the template failed to
load on Windows. xaml-lint now compares keyed Double, GridLength,
Thickness and CornerRadius resources with the property they are used
for, so this fails on Linux too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 13:05:24 +00:00
Claude b6c6aa67ee fix(core): uploaders cannot open sequences; a sequence title is never empty
The uploader role carried Read, letting upload-only accounts browse
thumbnails and proxies although the users page promises they cannot
open sequences (listing targets needs only Upload). DisplayTitle falls
back to the folder name when there is no title, date or camera.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 13:03:03 +00:00
Claude ac9a150027 feat(server): run on the real archive engine
ArchiveModule registers the archive engine as the server's ingest, its
proxy/thumbnail locator and its job handlers (through the new
IJobHandlerProvider); Program.cs passes it to ServerHost.Build. The
server opens its archive through ArchiveService so archive.json always
exists. The server's path-safety helper is renamed ArchivePathGuard to
stop clashing with the archive layout's ArchivePaths, and the server
migration is renumbered 0003. An end-to-end test uploads a photo, finds
it in the layout and fetches the thumbnail built by the queued job.
CI's PostgreSQL jobs now run the server tests too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 13:00:38 +00:00
Claude 8f54bd8804 merge: full Titano Server (auth, users, uploads, sync, jobs, render nodes, events, admin panel, Windows service)
# Conflicts:
#	i18n/en/Server.resx
#	i18n/it/Server.it.resx
#	src/Titano.Data/Repositories/FrameRepository.cs
2026-10-02 12:54:14 +00:00
Claude dce475aaa7 docs: record desktop and job engine decisions
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 12:49:15 +00:00
Claude 9fd7ac0d36 feat(app): connect the archive engine to the desktop client
The client builds the archive service on its index (WIC, then managed
decoders), registers its scan, rebuild, verify, import, thumbnail, proxy
and maintenance handlers, reopens the last archive at start and rescans
it every 10 minutes. Welcome and Library create or adopt archives
through it and queue a full scan; a failure shows a toast.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 12:49:15 +00:00
Claude 6ac27413a7 fix(jobs): claim only handled kinds and requeue numbered workers after a crash
An engine with no handlers (or a filter it could not serve) claimed every
job, so a host without a render handler would fail render-node work.
With several workers, jobs carry node ids such as pc#1, but crash
recovery only matched the bare node id and left them running forever.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 12:49:15 +00:00
Claude 4e9d7f2caa docs(deploy): TITANO_DB also takes a full connection string
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 12:46:47 +00:00
Claude bbbea4b838 fix(server): admin tables keep their columns aligned and fit beside the user panel
Fixed action columns, a separate class for table avatars, the archive tile
label, a wrapping fingerprint and footers only when there is a next page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 12:46:47 +00:00
Claude b4f61e29b9 merge: desktop library, jobs, settings, server, welcome and about screens 2026-10-02 12:42:39 +00:00
Claude 08810a92dd fix(archive): lease reads never block the holder and survive a renewal in progress
A renewal rewrites the lease in place. On Windows a concurrent read hit
a sharing violation and reported the lease as unreadable; anywhere, a
read could meet a torn record, and a reader without delete sharing could
stop the holder from releasing or a writer from breaking a stale lease.
Readers now share read, write and delete and retry briefly.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 12:42:39 +00:00
Claude 26016f1621 feat(server): admin panel pages for dashboard, users, archive, jobs, settings and logs
Vanilla ES modules under a strict CSP (bars and charts are SVG, no inline
styles), cookie session with CSRF header, first sign-in password change,
live updates over the events WebSocket, language menu fed by
/api/v1/i18n. Every label and tooltip is an Admin.* resource (en, it).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 12:41:42 +00:00
Claude 145ecf33d2 fix(server): refuse to start before touching the database when the archive module is missing
The services callback now runs before the server's registrations, so the
check needs no database and integrations can override the clock.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 12:41:42 +00:00
Claude 8d4b00aceb test(app): screen smoke tests and thumbnail decoding on Windows
Every screen is rendered from the --capture sample data in an off-screen
main window in both themes; thumbnails are decoded from embedded previews
with orientation. The sign-in flow now stores the login token on every
IServerApi, and thumbnail pending loads include index lookups so capture
waits for them. A cancelled-load test no longer depends on scheduling.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 12:40:57 +00:00
Claude 3ffc75f314 docs: record archive, import and RAW decoding decisions
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 12:35:22 +00:00
Claude 5a325ece60 refactor(core): keep a single thumbs.pack format
The decode workstream added a second pack writer and proxy builder that
wrote TTPK files with a different layout to the same path as the
archive's ThumbPack. The archive implementation is the one wired into
ingest, maintenance and the thumbnail jobs; the unused duplicates are
removed. The LRU ThumbnailCache stays for the UI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 12:35:22 +00:00
Claude 9ee2d482b6 merge: RAW/DNG decoding, managed decoder provider, frame window and thumbnails
# Conflicts:
#	src/Titano.Tools/Program.cs
2026-10-02 12:32:14 +00:00
Claude e92568a7bb merge: archive layout, sidecars, scan/rebuild/verify, card import and ingest 2026-10-02 12:30:53 +00:00
Claude 1c19b00a00 feat(data): archive services, ingest and job handlers
ArchiveService facade over indexer (scan, adopt, rebuild), ArchiveIngest
(IArchiveIngest with per-sequence group commit, leases and a write-ahead
journal), verifier, maintenance (duplicates, orphans, cleanup), mass rename
with resumable journal, thumbnails/proxies and card import; job handlers for
scan, rebuild, verify, import, thumbs, proxies and maintenance with checkpoints.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 12:30:15 +00:00
Claude 33582a3617 feat(data): session keys, scan stamps and archive queries
Migration 0002 adds sequence_sessions and archive_folders. New repository
methods: folder scan state, session-key mapping, sequence locations and
relocation, frame sync from sidecars, duplicate and candidate lookups, folder
rebase, integrity updates and verifiable card import history.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 12:30:15 +00:00
Claude 8cb9672520 feat(core): card import planning and verified copy engine
Card scanning (DCIM and flat), session splitting with test-shot merging and
user splits/merges, per-body import plans named by templates with archive
duplicate detection, hash-verified resumable copy with per-file errors, a
plain-folder destination and a verified card erase with dry run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 12:30:14 +00:00
Claude 55895e8474 feat(core): archive layout, sidecars, leases and thumbnail packs
archive.json and sequence.json with source-generated JSON, forward-compatible
reading (unknown fields kept, unknown enum names tolerated) and atomic writes;
lease files with expiry and stale takeover; thumbs.pack with index, crash-safe
append and random access; folder scanning, in-place adoption, reconcile,
verify, index snapshot, rename planning and thumbnail/proxy rendering.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 12:30:14 +00:00
Claude 80b91d0585 test(server): auth, uploads, ranges, sync, jobs, render nodes, events
Covers bootstrap admin, sign-in failure, lockout and rate limit, token
revocation and expiry, 401 versus 403, CSRF on cookie sessions, the error
shape and API header, chunked upload happy path, resume, hash
short-circuit, damaged chunk, quota, Range on originals, thumbnails and
exports, path traversal, settings_version conflicts, job state
transitions with a fake handler, render node claim, heartbeat timeout and
reassignment, output upload, WebSocket progress events, the discovery
beacon, the Windows service command line and status rules, and a
PostgreSQL run (TITANO_TEST_PG).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 12:28:47 +00:00
Claude 248439956f test(raw): lossy-JPEG and floating-point DNGs, calibration and list-3 maps
Covers compression 34892 with a linearisation table (42.8 dB), Deflate
with the floating-point predictor for CFA and LinearRaw data,
CameraCalibration1 with AnalogBalance in the colour transform, and a
value-mapping opcode in OpcodeList3 applied to unbalanced values.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 12:28:41 +00:00
Claude ffbea7cb74 feat(app): library, jobs, settings, server, welcome and about screens
Local-mode composition root (SQLite index, one JobEngine fed by a single
handler registration list), keyset-paged library with thumbnail cache and
hover scrub, live job list with throttled updates and the shell job bar,
settings with live template validation and encoder self-test, server
connection with trust-on-first-use and DPAPI token, first-run welcome,
About with update check, and --capture screenshots with synthetic data.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 12:26:58 +00:00
Claude fc8c2aa3f8 docs: record render pipeline and i18n decisions
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 12:26:18 +00:00
Claude 87c70eef4e feat(i18n): export, render and encoder messages; check keys passed as data
Adds the Export catalog (en, it) for preset names, plan and render
warnings and encoder notices. i18n check now treats C# string literals
shaped Area.Group.Name with an existing area as used keys, which is how
these 53 keys had gone unnoticed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 12:26:18 +00:00
Claude f78a76513c fix(core): tell value-type Auto settings without advice from an advised default
Auto<T>.Resolve returned default instead of the fallback for value types
because AutoValue cannot be null there. Auto<T> now records HasAdvice;
the render pipeline's ProjectValues workaround and the advisor's
ReasonKey heuristic are removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 12:26:17 +00:00
Claude bcf0510a8e fix(raw): match LibRaw on RAF and unpacked NEF layouts; drop frame copies
Cross-checking synthetic files with LibRaw's dcraw_emu showed it reads
uncompressed RAF samples as little-endian words and unpacked data under
the Nikon compression tag as big-endian words shifted left by four; the
readers and test writers now do the same (CR2, lossless NEF, ARW2 and
PEF already decoded identically, ~86 dB). The default crop and the
final orientation step no longer copy a full frame when they change
nothing, lowering the 24 MP peak by two frame copies.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 11:43:45 +00:00
Claude 5774592c44 merge: render plan, pipeline, managed encoders and self-test
# Conflicts:
#	src/Titano.Tools/Program.cs
2026-10-02 11:36:35 +00:00
Claude a0c2b1b28c fix(render): report an unreadable playback rate instead of ignoring it
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 11:33:43 +00:00
Claude 0f3fbfdad4 feat(tools): diagnose and fixtures commands with the CC0 RAW manifest
diagnose prints per file the format, managed decode tier (and why it is
not native), delivered size, camera and capture time with its source,
then a per-format summary; --formats prints the tier table. fixtures
downloads tests/fixtures/manifest.json into tests/fixtures/external with
HTTP range resume and SHA-256 verification, skipping verified files and
recording the hash of first downloads whose manifest hash is null.
External fixture tests (skipped when absent) check native decoding,
size and agreement with the embedded preview.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 11:32:59 +00:00
Claude 93be5853dc test(render): cover the target luminance curve and the decode-size cap
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 11:32:58 +00:00
Claude c78747053e feat(server): API v1 with auth, uploads, sync, jobs, render nodes and events
- Security: PBKDF2-SHA512 (210,000 iterations) hashes, opaque bearer tokens
  stored as SHA-256 with sliding expiry and revocation, HttpOnly/Secure/
  SameSite=Strict admin cookie with a session-bound CSRF token, sign-in rate
  limit and lockout, role/permission metadata on every endpoint, audit log,
  first-run administrator bootstrap.
- Sequences with keyset paging, ETags and settings_version conflicts; sync
  manifest; frames, proxies, thumbnails and exports streamed with Range.
- Chunked resumable uploads with hash short-circuit, quota and disk checks,
  staging on the archive volume, SHA-256 verification and IArchiveIngest.
- Job engine host, jobs API, render nodes with heartbeat timeout and
  reassignment, WebSocket events, LAN discovery beacon, upload cleanup.
- Windows service host over advapi32 (--service, --install-service,
  --uninstall-service); fails fast without the archive module services.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 11:32:19 +00:00
Claude 7353c17d7b feat(protocol): admin, render-node and sync contracts with client calls
Adds DTOs for users summary, audit, sequence stats and delete plan, archive
and server settings, dashboard, logs, render job parameters and render
results, plus client calls for job pause/resume/priority, node failure and
chunked render-result upload (sharing the frame upload chunk loop).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 11:31:07 +00:00
Claude 9a38057169 feat(data): server queries for uploads, jobs, render nodes and sequence edits
Additive repository methods the server needs: upload state transitions,
pending bytes, per-day and per-user upload counts, render-result uploads;
job claim by id, node progress and completion, priority, queue counts and
requeue of numbered workers; sequence edits with settings_version
optimistic concurrency; audit filter by action; latest token per user.
Migration 0005 adds session_key, job_id and render_json to uploads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 11:31:07 +00:00
Claude e5026ca72e refactor(render): keep render remarks in the Export localisation area
Plan, render and encoder remarks now share the Export area with the
preset names; setups reject metadata that does not match the source.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 11:30:10 +00:00
Claude 82f10a053e test(render): cover value-type Auto settings without advice
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 11:28:19 +00:00
Claude 0bd19ebeb1 perf(video): encode image-sequence frames concurrently
Frames are independent, so up to one per core is encoded at once with
single-threaded codecs; PNG sequences no longer run Deflate on one core
(1080p PNG export 1.0 to 2.5 fps on 4 cores). Failures surface on a later
frame or on Complete, and discarding waits for every write first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 11:27:36 +00:00
Claude 555d17742c feat(imaging): frame window with read-ahead, budget and float32 spill
FrameWindow keeps frames from position-Behind to position+Ahead,
decodes ahead on background tasks within the memory budget, drops
frames that leave the window and spills in-window frames farthest from
the position to a delete-on-close temp file of float32 planes (renders
stay bit-identical under memory pressure). The budget check and load
start share one lock; leases pin frames; disposal waits for decodes,
releases every buffer and deletes the spill file even after
cancellation. Tests assert a hard three-frame bound for 40 and 400
frames and an identical spill-file size.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
2026-10-02 11:27:16 +00:00