You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4de578a
Browse filesBrowse the repository at this point in the historyBrowse files
Kevin Arthur
committed
fix(editor): preserve unreadable settings instead of discarding them
An unparsable settings blob fell back to defaults and was overwritten by the
next save, so a user's theme, panel layout and custom shortcuts disappeared
with no trace and nothing to recover from.
The load path now quarantines the verbatim payload, its source key and a
timestamp under `varve-editor-settings.corrupt` before returning defaults.
`readQuarantinedSettings()` exposes it for a future recovery surface; one
slot is kept and an identical payload is not rewritten. A user-visible
notice is still missing, which is recorded in the audit rather than
presented as a complete recovery flow.
Evidence: storytold/lightcraft#103, whose thread records the upstream
`.corrupt-<time>` remedy.
Copy file name to clipboardExpand all lines: docs/audits/lightcraft/findings.md
+60-1Lines changed: 60 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,6 +95,35 @@ verifying file is the evidence.
95
95
| Slider values cannot be typed, and sliders have no reset |#1435, #1436, #532| Handled. `RangeValueControl` pairs the range with a `NumberField` that edits the same value, and the shared `Slider` renders a reset button when `onReset` is provided. |
96
96
| Library/catalog lock, catalog format versioning, journal recovery |#99–#102, #2124, #2130| Out of scope: Varve has no photo catalog. The equivalent *document* concerns are owned by the lifecycle and history systems (`docs/architecture/lifecycle-system.md`, `docs/architecture/…` history docs) and were not changed from this evidence. |
97
97
98
+
## 3a. Unreadable settings were discarded — preservation implemented
**Not done.** There is no user-visible notice yet; Varve has no global notice
124
+
surface, and inventing one is a design decision larger than this batch. The
125
+
class stays in §4 for that half.
126
+
98
127
## 4. Screened, not claimed
99
128
100
129
These reach a Varve subsystem but need a reproduction before a defect can be
@@ -105,7 +134,7 @@ claimed. They stay on the queue; they are not reported as fixed.
105
134
| Preview/export divergence |#605, #787, #709, #960| Varve exports through the same engine and settles fonts and image resources before replay (`SpecPanel/export.ts`), but no test compares a zoomed preview against the exported raster for the same camera. Needs a pixel comparison. |
106
135
| Deterministic export bytes |#180, #1373| Varve injects `pHYs` into PNG without a timestamp; PDF metadata dates were not audited. Needs a byte-diff of two exports. |
107
136
| Mask overlay obscures the adjustment being made |#519, #1800, #1712, #1214| Varve has a show-all-masks overlay; whether it hides while a slider is dragged was not verified. |
108
-
| Settings reset silently when the stored blob is unreadable |#103|Varve's `loadSettings` returns defaults on parse failure and does not preserve the corrupt payload. Preference loss only; the fix needs a user-visible notice surface, which does not exist yet. |
137
+
| Settings reset silently when the stored blob is unreadable |#103|Preservation is implemented (§3a); a user-visible recovery notice is still missing, so the class is not closed. |
109
138
| Export overwrites an existing file without a decision |#93, #1405, #1944| Varve's destination adapters were not audited for collision handling. Data-integrity concern; needs a test against the real write path. |
110
139
| GPU path renders wrong pixels after device loss |#78, #230, #1948, #1764| Varve's WebGPU/WebGL2 paths fall back to Canvas2D, but no evidence was gathered for device-loss recovery. Needs a forced-loss run. |
111
140
@@ -166,3 +195,33 @@ that exists.
166
195
no page asserted byte-identical or lossless text preservation.
167
196
- The gradient/pattern and PDF pages were reviewed and left unchanged — their
168
197
stated limitations still match the code.
198
+
199
+
## 9. Reconciliation with the independent classification pass
200
+
201
+
A second, independent pass classified all 981 records from their bodies. It
202
+
proposed 366 records as "applicable work"; this ledger keeps 90 in that queue.
203
+
The difference is deliberate, not an oversight:
204
+
205
+
- That pass counted capability requests as applicable work. A request is not a
206
+
failure, and Varve does not adopt a feature because another product has it.
207
+
The ledger files those under `feature-request` with an explicit reason.
208
+
- It counted photo-catalog behaviour (culling, stacks, virtual copies, missing
209
+
file relinking, sidecar ownership) as applicable because the *mechanism*
210
+
reads as generic. Varve has no catalog, so there is no code path to fix.
211
+
- It proposed `already-handled` for lightcraft-side fixes (for example #93,
212
+
#98, #103, #180). Those say what upstream shipped, not what Varve does; this
213
+
ledger verified Varve source separately and only then used that verdict.
214
+
215
+
What was adopted from the pass:
216
+
217
+
-**The duplicate map** (58 records) is now `duplicate_of` in the ledger, so
218
+
repeated reports cannot inflate the evidence for a finding.
219
+
-**Two corrections** to the screened queue: #2462 records that the planar-TIFF
220
+
fix in #1983 was incomplete (so the resource-bound class stays open), and
221
+
#674 records that its submitted fix was reverted by its author (a closed
222
+
issue is not a landed fix).
223
+
-**Title/body contradictions** worth remembering before citing an issue as
224
+
proof: #1952 (the alpha direction is the opposite of its summary), #342
225
+
(a file-dialog extension filter, not a decoder defect), #1093 (collapse, not
226
+
close), #465 (verified working in a later comment), #2166 (a migration gap
0 commit comments