From 94b13cc064b8ac55d92a9af1a771ff6c3f07017d Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 12 Oct 2026 09:40:27 +0000 Subject: [PATCH] fix(ingest): file uploads into API-made sequences and repair damaged frames A sequence created with POST /api/v1/sequences had no folder, and the ingest looked for its sidecar at the archive root: every upload into it failed with 503 commit_failed, so the Uploader's "New sequence" target never worked. Its first frame now claims a folder by the rules of a sequence created by an upload (folder template with its title, unique variant, sidecar with the row's id, title, tags, rating, notes and project), and the row takes the folder in one transaction (DOCKER-1). A frame flagged missing or corrupt, or whose file is gone or has another size, no longer stands for an upload: the start short-circuit and crash recovery match only intact frames still on disk, and the ingest repairs such a frame with the verified copy (same id and position, flags cleared, a damaged file kept beside it as name.damaged-