Repository navigation
[bugfix] storage: preserve saved canvas fingerprints - #601
wangtiance wants to merge 1 commit into
Conversation
## summary - Preserve missing codec fields when serializing historical metadata. - Keep explicit nulls and verified codec values in saved fingerprints. - Regress old job inputs and checkpoint receipts without rewriting existing projects. ## validation - Passed 111 Python tests, eight frontend tests, TypeScript checking, and generated contract verification. - Validated 1,146 local commit records and opened three affected project copies through the canvas API. Refs: ThinkFlowLab#563
david6666666
left a comment
There was a problem hiding this comment.
REQUEST CHANGES be0b14d No linked issue (related #563)
Dot,代表 @david6666666。
当前证据 60/100。 范围 3/3,正确性 3/3,验证 3/3,主张证据 0/3,简洁性 0/3。
保留「字段缺失、显式 null、有实际值」三种状态,比重写旧工程稳妥。当前提交的 Release checks 已过;回归覆盖旧快照、checkpoint 回执和篡改仍被拒绝。现在差的是用户侧证据:API 的 HTTP 200 说明后端接受了,但还没看到旧项目在画布中真正打开。能否用隔离旧项目补一张从恢复提示进入正常画布的截图,附上复现步骤?新增解释性代码注释按量表也记零。我没有自行打开那几个项目或重跑测试。
English summary: 60/100. The fingerprint compatibility tests and Release checks are green. Please attach a screenshot from the actual old-project canvas opening path.
|
@david6666666 已补上 Chrome 中实际打开旧画布的前后对照。两次使用同一份合成工程副本和同一份前端构建。工程由 #563 合并前的 复现步骤
注释里记录的约束是,显式 English summary: The same synthetic pre-#563 project showed the recovery error on |
david6666666
left a comment
There was a problem hiding this comment.
PASS be0b14d No linked issue (related #563)
Dot,代表 @david6666666。
复审 90/100(非批准)。 范围、正确性、验证、证据、简洁性依次为 3/3、3/3、3/3、3/3、0/3。
补图看过了:同一个合成旧工程,修复前落到恢复提示,修复后能看到两节点、引用连线和已保存生成文本。这次画布路径的证据齐了,现有回归和 Release checks 也都过了。我核对了截图,没有重跑 Chrome。解释性注释还在,简洁性按量表记零。这里是非表决复审,没有提交 Approve。
English summary: 90/100. The before/after screenshots close the canvas-evidence gap; exact-tip Release checks are green. Non-voting review.


Summary
Restore access to projects saved before codec metadata was added. Preserve whether
videoCodecandaudioCodecswere absent, explicitly null, or populated when serializing stored metadata. This keeps the original job and command fingerprints valid without rewriting project files or weakening integrity checks.Background
PR #563, merged as
b36a4eb9, added codec metadata for MKV compatibility. Older generation records did not contain those keys. Loading an old record and serializing its frozen reference metadata inserted nulls, so the recomputed job fingerprint differed from the saved fingerprint. Storage then reported the project as requiring recovery and rejected the canvas open. Existing records and media remained on disk.The PR’s Release checks passed. The MKV coverage created projects with the new schema, and the shared fixture was updated to contain the new null fields. Neither exercised an old job and checkpoint receipt with the original fingerprint. The regression cases in this PR run in the existing Python gate.
Linked issue
Labels
type:bug,area:assets,area:canvas.Test plan
4b518031, 111 Python tests passed across creation contracts, video compatibility, and generation service. Eight frontend contract and playback tests, TypeScript checking, and generated contract verification also passed.be0b14d0, all three fingerprint regression cases passed under the PR’scpuselector. Generated contract verification andgit diff --checkpassed. The six touched files match the tested pre-rebase commit.Evidence that it works
POST /api/creation/projects/{id}/open-canvasrequests each returned HTTP 200, with 29, 46, and 29 nodes respectively. No screenshot is attached. The evidence records the API outcome that controls whether the canvas can open.Provider verification
Bilingual UI
中文摘要
null,导致历史任务指纹校验失败,画布无法打开。