feat(project): settle phase 4 contracts: conditional settings format, transforms, look, output size

Groundwork for owner review 1, phase 4, so the parallel packages build on
fixed contracts and strings.

- Settings: camera rotate/mirror/flip/straighten and a look, declared after
  the existing members and omitted at default. ToJson writes the lowest
  format that renders the same (2 only while a transform or look is used),
  so projects without them keep byte-identical text and hash; an old-build
  simulation test proves the order survives an older build's round trip.
- RenderSize and RenderRules: proportions win over a fixed preset box, and
  the routing format a job needs.
- FrameOrientation, CropFrame, OrientationEdit, LookFilter (identity) and
  FrameFinish (look, then knee) wired into the render pipeline and preview;
  RenderGeometry gains view-frame members equivalent to today.
- Protocol trailing members for node, job and server formats; SyncText keys;
  EditPath counts transforms and the look as hand values.
- New en/it strings and tooltips, five icons, test fixtures moved to v3 as
  the first unread format, and the 18 DECISIONS rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-11-04 19:10:12 +01:00
1 parent 4ad29977b9
commit e4364c4f25
43 files changed
+1544 -178

No files matched your search

+18
View File
@@ -701,3 +701,21 @@ One line per decision: date · decision · alternative · reason.
| 2026-11-04 | A move's failure and cancel: before the switch, renamed entries go back (if that fails the journal stays and the workspace stays held until Resume) and copies at the target are removed, the journal deleted; a user cancel (running, paused or failed) undoes it the same way. After the switch nothing is undone: a source entry goes only while each file still matches its verified copy (name, size, time), one changed since is kept and logged, one held open keeps the journal, and the job ends Done with `Archive.Log.WorkspaceMoveLeft`; the next run clears the rest. A pause, a yield or closing the program keep the journal. A resumed move does not check for other jobs again. (Owner review 2, R8, phase 5c; review safety-3, tests-3.) | Fail the job after the switch | The target is the workspace by then; refusing to resume would strand a half-done move. |
| 2026-11-04 | Jobs and the move: `WorkspaceJobRoots.Resolve` (Data) makes a copy, render or send work in the folder that holds its project now (the one named, a switched move's target, or the folder in use through `CurrentRoot`), and refuses it (`Errors.Workspace.Moving`) while a move of either folder has not switched; a retry after the move then works. The desktop's gate (`WorkspaceHost.IsMoving`: a move job queued, running or paused, followed through `JobChanged` and adopted at start, or a journal in the folder in use) holds checkout, copies, Proxies only, save, sync, conflicts, restore, the picker's lists, rename, delete, Remove local copy, Change, Empty… and the clean-up. A journal at start, also one left in the old folder of a switched move into the folder in use, raises a notice and Settings shows *Resume*; Change… and Move… stay disabled meanwhile, their tooltips saying why. (Owner review 2, R8, phase 5c; review jobs-6, integration-2, integration-3, integration-6, ui-3; final check.) | Gate only the desktop's commands | Engine retries bypassed the gate and wrote into the old folder; choosing another folder before Resume would lose the old copy for good. |
| 2026-11-04 | Phase 5c strings: every new key in en and it with final text; 19 unused keys removed from en and it and `i18n prune` removed 144 orphans from the other cultures; `Errors.Workspace.DiskFull` kept (the copy's space check). The Italian move plan, trash and job kind wordings were revised. (Owner review 2, R8, phase 5c; review ui-8, ui-9.) | Keep unused keys for later | Unused keys cost every translation. |
| 2026-11-04 | Conditional settings format: `ProjectSettings.CurrentVersion = 2` is the highest format this build reads; `ToJson` writes the lowest format that renders the same (`RequiredFormat`: 2 only when a turn, mirror, flip, straighten or non-identity look is set, otherwise `BaseVersion` 1; a newer project read-only keeps its own number through `WrittenFormat`); `ProjectContent.FormatOf` falls back to 1. (Owner review 1, R5/R6, phase 4.) | Always write 2 | Every project that does not use the new features keeps byte-identical canonical text and hash, so no External versions appear and older builds treat it as before. |
| 2026-11-04 | Rule for future settings members: a member that changes pixels and that the previous format would ignore raises the written format only when it is used; it is declared after the existing members, before `Extra`, and omitted at its default; lists that grow are strings, not enums. (Owner review 1, phase 4.) | Bump the format per release | Keeps old text stable and lets an older build carry the member through `Extra` in the same place. |
| 2026-11-04 | Orientation members and order: `camera.rotate` 0/90/180/270 clockwise after Exif orientation, then `mirror` (left↔right) and `flip` (top↔bottom) in screen axes after the turn, then `straighten` ±15° positive clockwise; all inside the single warp between stabilisation and the virtual camera. Pixels are never rotated after decode. (Owner review 1, R5, phase 4.) | Rotate the decoded pixels | Stabiliser paths, the sky mask and the horizon stay in raw-frame space and one resample is kept. |
| 2026-11-04 | Straighten cover zoom is automatic and never stored: c = cos\|θ\| + max(W'/H', H'/W')·sin\|θ\| (`FrameOrientation.CoverZoomOf`). (Owner review 1, R5, phase 4.) | A user zoom or a clamped border | No smeared border can ever show and any crop in [0,1]² stays valid. |
| 2026-11-04 | Crop coordinates: `camera.crop` and the keyframe centres are normalised in the view frame T (oriented, straightened, cover-zoomed), which is today's meaning for the identity transform; the crop stays one atomic array in `ProjectMerge`, so a concurrent move and resize give one `camera.crop` conflict. (Owner review 1, R5, phase 4.) | Raw-frame coordinates; per-edge merge | The mask maps 1:1 to the stored crop and a merge never yields a rectangle of the wrong ratio. |
| 2026-11-04 | Locked crop: editor edits write the aspect-locked box itself with `offsetX`/`offsetY` 0, so `FitCrop` returns it unchanged; the first edit of a legacy free crop with offsets bakes them in (`FitCrop(crop, ratio, offsets)`); the renderer keeps `FitCrop` as the safety net; an aspect change refits the box (same centre, new ratio, inside the frame). (Owner review 1, R5, phase 4.) | Keep free crops plus offsets | What the user drags is what renders. |
| 2026-11-04 | A quarter turn keeps the content: rotate left/right remaps the crop and keyframe centres exactly and transposes a non-square aspect (manual or the Auto's advised value: 16:9 → 9:16); mirror and flip remap crop and centres and negate the keyframe roll; each press is one undo step (`OrientationEdit`). (Owner review 1, R5, phase 4.) | Reset the framing on a turn | The framed subject stays framed. |
| 2026-11-04 | Proportions win: when the resolved aspect is not "source", a fixed-size preset is a size box and the aspect is fitted inside it, the box turned to portrait for a ratio below 1 (4K at 9:16 = 2160×3840, 1:1 = 2160×2160, 4:5 = 2160×2700, 21:9 = 3840×1646; 1080p at 9:16 = 1080×1920); "source" keeps the preset's size; sizes stay even for non-managed codecs; `AspectFromPreset` is removed and the preset name does not flip to Custom (`RenderSize`). (Owner review 1, R6, phase 4.) | The preset ratio wins (crop in the preset frame) | The chosen proportions are what the user asked for; default projects do not change. |
| 2026-11-04 | Proportions win is not format-gated in storage: raising the format for it would drift the canonical text of stored projects and spawn External versions; it is gated only in routing and in the desktop's server gating, and the output change is a CHANGELOG upgrade note. (Owner review 1, R6, phase 4.) | Write format 2 for it | Stored projects keep their hash. |
| 2026-11-04 | Routing format: `RenderRules.RequiredFormat(settings, export, srcW, srcH)` = max(written format, 2 when the adapted size differs from the preset's fixed size), never written; nodes announce `RegisterNodeRequest.SettingsFormat` (older node = 1); jobs carry `RenderJobParameters.RequiredSettingsFormat`; a claim and the "awaits a node" check skip incompatible nodes. (Owner review 1, phase 4.) | Send every job to every node | An older node never renders a job it would get wrong. |
| 2026-11-04 | Server format announcement: `ServerInfo.SettingsFormat` is new (null from an older server = 1); the desktop disables Push and Send-and-render when the required format exceeds the server's, with a tooltip giving the reason (`Tooltips.Server.NeedsNewerServer`). (Owner review 1, phase 4.) | Let the server refuse | The user sees why before acting. |
| 2026-11-04 | Colour look: parametric and built in (no LUT files a server or Docker image would lack): a linear-light 3×3 matrix, a contrast power about 0.18 and a lift, blended by strength; applied once per output frame after stacking, interpolation and blur and before the knee (`FrameFinish`), never seen by measuring, flow or stacking; `look.filter` is a string and an unknown name renders as identity with `Export.Render.LookIgnored`. (Owner review 1, R6, phase 4.) | LUT files; look before stacking | Same pixels everywhere, the knee compresses any overshoot, analysis stays on real data. |
| 2026-11-04 | No ninth step: the transforms join the Camera step and the look joins the Exposure step (BRIEF §12.3); Alt+1…8, "n / 8" and the 82-px step cells are unchanged. (Owner review 1, phase 4.) | A Transform or Look step | Keeps the eight-step model. |
| 2026-11-04 | Raw thumbnails: library, filmstrip, hero and admin-panel covers stay raw photos, without transforms or look. (Owner review 1, phase 4.) | Oriented covers | Thumbnails are frame identity, not output previews, and need no render. |
| 2026-11-04 | Preview Source framing: with a non-identity transform the whole T frame is shown without stabilisation or camera pose, so the Camera-step mask is static and maps 1:1 to `camera.crop`; the Export step shows the per-frame output footprint mapped into T (`RenderGeometry.FootprintInView`). (Owner review 1, R5, phase 4.) | Show the raw frame | The mask the user drags is the stored crop. |
| 2026-11-04 | Global only: the new settings are not per-frame and not frame-keyed, so there are no new parked positions; the keyframe `Rotation` roll is unchanged. (Owner review 1, phase 4.) | Keyframed straighten or look | Simple, and roll already covers per-frame tilt. |
| 2026-11-04 | Phase 4 compatibility: new server + old node: v1 rendered by the node, v2 and proportions-win jobs never sent to it; old server + new desktop: v1 works, v2 push and render disabled with a reason, proportions-win render disabled (push works); new server + old desktop: v1 works, v2 listed and opened read-only, never mirrored or merged, the old desktop's own render uses the preset ratio (known limitation); old desktop local: v2 read-only, a format-1 `.chronos` refuses it, proportions-win renders at the preset ratio (CHANGELOG note). (Owner review 1, phase 4.) | — | Records the matrix the format, routing and gating rows give. |
| 2026-11-04 | Phase 4 groundwork details: `ProjectSettings.WrittenFormat` (the format `ToJson` stamps, a newer project's own number); `EditPath.HasHandValues` counts a crop only when not whole (`CropFrame.IsWhole`), which matches today; FrameFinish clamps the look strength to 0..1 (missing = 1) and an unknown look still writes format 2 (it is a newer Chronos's); look names are ordinal and case-sensitive; `OrientationEdit` also remaps offsets and pending keyframes, negates straighten on mirror/flip, normalises rotate to 0..270 and rounds remapped coordinates to 12 decimals so four turns give the original text; the SelfTest geometry and colour checks sit before the robustness checks. (Owner review 1, phase 4.) | — | Simplest safe choices where the plan was silent. |