feat(web): bind Clip acceptance receipts to a frozen candidate
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled

run-clip-headed.mjs --freeze hardlink-snapshots the served source tree into
web/.frozen/CLIP-<stamp>-<wasm8> with a sha256 manifest; --candidate refuses a
tree that does not verify, and the Playwright config serves the frozen root.
Receipts record servedBy, servedRoot, frozenAt and the manifest sha256, and
check-clip-headed.mjs re-verifies them against disk.

The full suite passes 28/28 on the frozen candidate
(tests/golden/CLIP-HEADED-20261204-155221, wasm 3c81eb06, manifest 695b50c0);
release acceptance stays NOT_CLAIMED.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
mes123456
2026-12-04 16:07:51 +08:00
parent b358b4bdeb
commit 11a69f6354
41 changed files with 3683 additions and 27 deletions

1
.gitignore vendored
View File

@@ -16,6 +16,7 @@ mylog.txt
/resource-library/
/web/node_modules/
/web/dist/
/web/.frozen/
/web/test-results/
/web/playwright-report/
/web/blob-report/

View File

@@ -111,9 +111,15 @@ boundary; the legacy `parity-ledger.json` is historical planning data.
`clip.track_copy_color` has its panel button with `CLIP_OT_track_copy_color` semantics (the
active track's colour copied onto the other view-selected tracks), and plane
`use_auto_keying` is exposed — with it off, a corner drag re-derives the plane through
`BKE_tracking_track_plane_from_existing_motion` instead of keying. The full suite passes 28/28
on the dev candidate (receipt `tests/golden/CLIP-HEADED-20261204-124651`); release acceptance
stays NOT_CLAIMED.
`BKE_tracking_track_plane_from_existing_motion` instead of keying. The full suite passes 28/28 on
the dev candidate (receipt `tests/golden/CLIP-HEADED-20261204-124651`) and 28/28 on a frozen
candidate: `run-clip-headed.mjs --freeze` hardlink-snapshots the served source tree (`web/app`,
`web/protocol`, `tools/web`, `docs/web/deployment-contract.json`) and binds every file by sha256
in `manifest.json`; `--candidate` refuses a tree that does not verify; the receipt records
`servedBy`, `servedRoot`, `frozenAt` and the manifest sha256, and `check-clip-headed.mjs`
re-verifies them against disk (receipt `tests/golden/CLIP-HEADED-20261204-155221`, manifest
`695b50c0…`, wasm `3c81eb06…`). Release acceptance stays NOT_CLAIMED until the user's hands-on
acceptance.
- The per-editor cross-walk of these gaps lives in [MODULE-COVERAGE.md](MODULE-COVERAGE.md), which
records one row per `EDITOR_TYPES` entry and the stable gap ids `MOD-<module>-NN`.

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,162 @@
{
"clipName": "tripod-motion.avi",
"trackId": "track:0:0",
"frame": 0,
"center": [
0.26773643493652344,
0.6192034482955933
],
"patternMin": [
0.22773643493652343,
0.5892034482955932
],
"patternMax": [
0.3077364349365234,
0.6492034482955933
],
"searchMin": [
0.18773643493652342,
0.5492034482955932
],
"searchMax": [
0.34773643493652345,
0.6892034482955933
],
"boxed": {
"patternMin": [
0.2277364432811737,
0.5892034769058228
],
"patternMax": [
0.30773642659187317,
0.6492034196853638
],
"searchMin": [
0.18773643672466278,
0.5492034554481506
],
"searchMax": [
0.3477364182472229,
0.6892034411430359
]
},
"writtenSettings": {
"algorithm": 9,
"color": [
0.25,
0.5,
0.75,
1
],
"framesLimit": 60,
"margin": 20,
"minimumCorrelation": 0.8500000238418579,
"motionModel": 3,
"patternMatch": 1,
"useAlphaPreview": true,
"useBlueChannel": true,
"useCustomColor": true,
"useGrayscalePreview": true,
"useGreenChannel": true,
"useRedChannel": false,
"weight": 0.5,
"weightStab": 0.8999999761581421
},
"appliedSettings": [
{
"algorithm": 9,
"color": [
0.25,
0.5,
0.75,
1
],
"framesLimit": 60,
"margin": 20,
"minimumCorrelation": 0.699999988079071,
"motionModel": 2,
"patternMatch": 1,
"useAlphaPreview": true,
"useBlueChannel": true,
"useCustomColor": true,
"useGrayscalePreview": true,
"useGreenChannel": true,
"useRedChannel": false,
"weight": 0.5,
"weightStab": 0.8999999761581421
},
{
"algorithm": 5,
"color": [
0,
0,
0,
1
],
"framesLimit": 0,
"margin": 0,
"minimumCorrelation": 0.699999988079071,
"motionModel": 2,
"patternMatch": 1,
"useAlphaPreview": false,
"useBlueChannel": true,
"useCustomColor": false,
"useGrayscalePreview": false,
"useGreenChannel": true,
"useRedChannel": true,
"weight": 1,
"weightStab": 1
}
],
"defaults": {
"brownK1": 0,
"brownK2": 0,
"brownK3": 0,
"brownK4": 0,
"defaultAlgorithm": 5,
"defaultFramesLimit": 30,
"defaultMargin": 12,
"defaultMinimumCorrelation": 0.800000011920929,
"defaultMotionModel": 2,
"defaultPatternMatch": 1,
"defaultPatternSize": 64,
"defaultSearchSize": 80,
"defaultWeight": 1,
"distortionModel": 0,
"divisionK1": 0,
"divisionK2": 0,
"focal": 1316.5714111328125,
"k1": -0.07100000232458115,
"k2": 0,
"k3": 0,
"motionFlag": 1,
"nukeK1": 0,
"nukeK2": 0,
"pixelAspect": 1,
"principal": [
0,
0
],
"refine": 5,
"sensorWidth": 35,
"units": 1
},
"states": [
"DONE",
"DONE",
"DONE",
"DONE"
],
"pythonErrors": [
null,
null,
null,
null
],
"pythonOutputs": [
"",
"",
"",
""
]
}

View File

@@ -0,0 +1,17 @@
{
"clipId": "movieclip:tripod-motion.avi",
"frame": 4,
"localFrame": 4,
"before": 7,
"after": 48,
"createdTracks": 41,
"selected": 41,
"withMarker": 47,
"locrot": {
"sourceStatus": "AVAILABLE",
"before": 1,
"after": 2,
"createdTracks": 1,
"selected": 1
}
}

View File

@@ -0,0 +1,6 @@
{
"title": "帧 1",
"rows": 7,
"keys": 283,
"current": "true"
}

View File

@@ -0,0 +1,133 @@
{
"clip": {
"clipId": "movieclip:tripod-motion.avi",
"name": "tripod-motion.avi",
"sourcePath": "//footage/tripod-motion.avi",
"sourceStatus": "AVAILABLE",
"sourceSha256": "bc29375f1744f3345fa7b40d568650a746567c83f97611628ad528e3293dc10a",
"width": 1920,
"height": 1080,
"frameStart": 1,
"frameEnd": 48,
"fpsNumerator": 2400,
"fpsDenominator": 1000,
"trackIds": [
"track:0:0",
"track:0:1",
"track:0:2",
"track:0:3",
"track:0:4",
"track:0:5",
"track:0:6"
],
"markerFrames": [
24,
50,
41,
38,
50,
30,
50
],
"planeTrackCount": 0,
"planeTrackIds": [],
"planePointTrackCounts": [],
"planeKeyframeCounts": [],
"cameraSolveStatus": "NONE",
"cameraSolveFrames": 0,
"bindingCount": 1
},
"result": {
"inserted": {
"frame": 148,
"keyframe": true,
"muted": false,
"patternCorners": [
[
0.24192708730697632,
0.7356481552124023
],
[
0.2580729126930237,
0.7356481552124023
],
[
0.2580729126930237,
0.7643518447875977
],
[
0.24192708730697632,
0.7643518447875977
]
],
"patternMax": [
0.2580729126930237,
0.7643518447875977
],
"patternMin": [
0.24192708730697632,
0.7356481552124023
],
"position": [
0.25,
0.75
],
"searchMax": [
0.25099998712539673,
0.7509999871253967
],
"searchMin": [
0.24899999797344208,
0.7490000128746033
],
"selected": false
},
"persisted": {
"frame": 148,
"keyframe": true,
"muted": false,
"patternCorners": [
[
0.24192708730697632,
0.7356481552124023
],
[
0.2580729126930237,
0.7356481552124023
],
[
0.2580729126930237,
0.7643518447875977
],
[
0.24192708730697632,
0.7643518447875977
]
],
"patternMax": [
0.2580729126930237,
0.7643518447875977
],
"patternMin": [
0.24192708730697632,
0.7356481552124023
],
"position": [
0.25,
0.75
],
"searchMax": [
0.25099998712539673,
0.7509999871253967
],
"searchMin": [
0.24899999797344208,
0.7490000128746033
],
"selected": false
},
"removed": null,
"pythonState": "DONE",
"pythonOutput": ""
}
}

View File

@@ -0,0 +1,48 @@
{
"mode": "frame",
"clip": {
"clipId": "movieclip:tripod-motion.avi",
"name": "tripod-motion.avi",
"sourcePath": "//footage/tripod-motion.avi",
"sourceStatus": "AVAILABLE",
"sourceSha256": "bc29375f1744f3345fa7b40d568650a746567c83f97611628ad528e3293dc10a",
"width": 1920,
"height": 1080,
"frameStart": 1,
"frameEnd": 48,
"fpsNumerator": 2400,
"fpsDenominator": 1000,
"trackIds": [
"track:0:0",
"track:0:1",
"track:0:2",
"track:0:3",
"track:0:4",
"track:0:5",
"track:0:6"
],
"markerFrames": [
24,
50,
41,
38,
50,
30,
50
],
"planeTrackCount": 0,
"planeTrackIds": [],
"planePointTrackCounts": [],
"planeKeyframeCounts": [],
"cameraSolveStatus": "NONE",
"cameraSolveFrames": 0,
"bindingCount": 1
},
"decoded": {
"width": 1920,
"height": 1080,
"byteLength": 8294400,
"minimum": 6,
"maximum": 255
}
}

View File

@@ -0,0 +1,8 @@
{
"points": 22,
"before": 1,
"after": 22,
"sampleTitle": "track:0:0 · 帧 22 · -1.498",
"frameStart": 1,
"sceneEnd": 48
}

View File

@@ -0,0 +1,26 @@
{
"fixture": {
"path": "/home/mes123456/workinf_Blender_Wasm/web/test-results/clip-headed-production--cl-28503-from-the-Clip-editor-canvas/clip-mask-fixture.blend",
"sha256": "a1e0e9ace513e958734b2f4f8306686a642897aa923a530f13109a28221f4263",
"masks": [
{
"id": "mask:E2E_Mask",
"name": "E2E_Mask",
"splines": 1,
"points": [
3
]
}
]
},
"ui": {
"maskValue": "mask:E2E_Mask",
"createdStatus": "已新建蒙版样条",
"toggledStatus": "已取消循环",
"deletedStatus": "已删除蒙版样条",
"points": [
0.3,
0.3
]
}
}

View File

@@ -0,0 +1,5 @@
{
"pythonState": "DONE",
"pythonError": null,
"pythonOutput": ""
}

View File

@@ -0,0 +1,38 @@
{
"mode": "missing",
"clip": {
"clipId": "movieclip:tripod-motion.avi",
"name": "tripod-motion.avi",
"sourcePath": "//footage/tripod-motion.avi",
"sourceStatus": "MISSING",
"width": 1920,
"height": 1080,
"frameStart": 1,
"frameEnd": 48,
"trackIds": [
"track:0:0",
"track:0:1",
"track:0:2",
"track:0:3",
"track:0:4",
"track:0:5",
"track:0:6"
],
"markerFrames": [
24,
50,
41,
38,
50,
30,
50
],
"planeTrackCount": 0,
"planeTrackIds": [],
"planePointTrackCounts": [],
"planeKeyframeCounts": [],
"cameraSolveStatus": "NONE",
"cameraSolveFrames": 0,
"bindingCount": 1
}
}

View File

@@ -0,0 +1,28 @@
{
"clipId": "movieclip:tripod-motion.avi",
"frame": 11,
"planeId": "plane-track:0:0",
"planeName": "Plane Track",
"beforeCount": 0,
"afterCreateCount": 1,
"beforeKeys": 1,
"keyedKeys": 2,
"insertedCorners": 4,
"retrackAffected": 1,
"imageAffected": 1,
"imagePlaneKeys": 23,
"deleteAffected": 1,
"afterDelete": 0,
"ops": [
"keyframe",
"retrack",
"createImage",
"deletePlane"
],
"autoKey": {
"onState": "DONE",
"offState": "DONE",
"on": true,
"off": true
}
}

View File

@@ -0,0 +1,61 @@
{
"before": [
[
0.25966352224349976,
0.22705364227294922
],
[
0.909848153591156,
0.22705364227294922
],
[
0.909848153591156,
0.9095340967178345
],
[
0.25966352224349976,
0.9095340967178345
]
],
"draft": [
[
0.15,
0.15000000000000002
],
[
0.909848153591156,
0.22705364227294922
],
[
0.909848153591156,
0.9095340967178345
],
[
0.25966352224349976,
0.9095340967178345
]
],
"afterUp": [
[
0.15000000596046448,
0.15000000596046448
],
[
0.909848153591156,
0.22705364227294922
],
[
0.909848153591156,
0.9095340967178345
],
[
0.25966352224349976,
0.9095340967178345
]
],
"editError": null,
"target": [
0.15,
0.15
]
}

View File

@@ -0,0 +1,42 @@
{
"before": [
[
0.25966352224349976,
0.22705364227294922
],
[
0.909848153591156,
0.22705364227294922
],
[
0.909848153591156,
0.9095340967178345
],
[
0.25966352224349976,
0.9095340967178345
]
],
"after": [
[
0.15000000596046448,
0.15000000596046448
],
[
0.909848153591156,
0.22705364227294922
],
[
0.909848153591156,
0.9095340967178345
],
[
0.25966352224349976,
0.9095340967178345
]
],
"target": [
0.15,
0.15
]
}

View File

@@ -0,0 +1,116 @@
{
"clipId": "movieclip:tripod-motion.avi",
"frame": 11,
"beforeCount": 0,
"createdName": "Plane Track",
"afterCount": 1,
"plane": {
"hidden": false,
"id": "plane-track:0:0",
"keyframes": [
{
"corners": [
[
0.23360511660575867,
0.2327895164489746
],
[
0.8826074600219727,
0.2327895164489746
],
[
0.8826074600219727,
0.910973072052002
],
[
0.23360511660575867,
0.910973072052002
]
],
"frame": 11
}
],
"name": "Plane Track",
"pointTrackIds": [
"track:0:0",
"track:0:1",
"track:0:2",
"track:0:3"
],
"selected": false,
"useAutoKeying": false
},
"edited": {
"hidden": false,
"id": "plane-track:0:0",
"keyframes": [
{
"corners": [
[
0.20000000298023224,
0.20000000298023224
],
[
0.800000011920929,
0.20000000298023224
],
[
0.800000011920929,
0.800000011920929
],
[
0.20000000298023224,
0.800000011920929
]
],
"frame": 11
}
],
"name": "Plane Track",
"pointTrackIds": [
"track:0:0",
"track:0:1",
"track:0:2",
"track:0:3"
],
"selected": false,
"useAutoKeying": false
},
"persisted": {
"hidden": false,
"id": "plane-track:0:0",
"keyframes": [
{
"corners": [
[
0.20000000298023224,
0.20000000298023224
],
[
0.800000011920929,
0.20000000298023224
],
[
0.800000011920929,
0.800000011920929
],
[
0.20000000298023224,
0.800000011920929
]
],
"frame": 11
}
],
"name": "Plane Track",
"pointTrackIds": [
"track:0:0",
"track:0:1",
"track:0:2",
"track:0:3"
],
"selected": false,
"useAutoKeying": false
},
"writeFrame": 11
}

View File

@@ -0,0 +1,60 @@
{
"clipId": "movieclip:01.png",
"name": "01.png",
"width": 51,
"height": 51,
"frameStart": 1,
"sourceStatus": "AVAILABLE",
"track": {
"name": "Track",
"markerCount": 7,
"markerFrames": [
0,
1,
2,
3,
4,
5,
6
],
"position": [
0.5,
0.5
],
"corners": [
[
0.3529411554336548,
0.3529411554336548
],
[
0.6470588445663452,
0.3529411554336548
],
[
0.6470588445663452,
0.6470588445663452
],
[
0.3529411554336548,
0.6470588445663452
]
],
"muted": true
},
"decoded": [
{
"sceneFrame": 1,
"width": 51,
"height": 51,
"byteLength": 10404,
"digest": "266b448fde7f423f5b8ad48c85da165614d175902d7d73cca46d5421f9a664e1"
},
{
"sceneFrame": 3,
"width": 51,
"height": 51,
"byteLength": 10404,
"digest": "89a686a4517f5393bc93fe1ae4f3de24979228fdc8fad73321779dba2059e6bd"
}
]
}

View File

@@ -0,0 +1,66 @@
{
"engine": {
"clipId": "movieclip:01.png",
"name": "01.png",
"width": 51,
"height": 51,
"frameStart": 1,
"sourceStatus": "AVAILABLE",
"track": {
"name": "Track",
"markerCount": 7,
"markerFrames": [
0,
1,
2,
3,
4,
5,
6
],
"position": [
0.5,
0.5
],
"corners": [
[
0.3529411554336548,
0.3529411554336548
],
[
0.6470588445663452,
0.3529411554336548
],
[
0.6470588445663452,
0.6470588445663452
],
[
0.3529411554336548,
0.6470588445663452
]
],
"muted": true
},
"decoded": [
{
"sceneFrame": 1,
"width": 51,
"height": 51,
"byteLength": 10404,
"digest": "266b448fde7f423f5b8ad48c85da165614d175902d7d73cca46d5421f9a664e1"
},
{
"sceneFrame": 3,
"width": 51,
"height": 51,
"byteLength": 10404,
"digest": "89a686a4517f5393bc93fe1ae4f3de24979228fdc8fad73321779dba2059e6bd"
}
]
},
"placeholder": {
"remaining": 0,
"message": ""
}
}

View File

@@ -0,0 +1,20 @@
{
"clipId": "movieclip:tripod-motion.avi",
"sourceWidth": 1920,
"frame": 11,
"sizes": [
25
],
"proxy": {
"buildSizes": 1,
"enabled": true,
"quality": 75
},
"decoded": {
"width": 480,
"height": 270,
"byteLength": 518400,
"minimum": 14,
"maximum": 255
}
}

View File

@@ -0,0 +1,41 @@
{
"mode": "read",
"clip": {
"clipId": "movieclip:tripod-motion.avi",
"name": "tripod-motion.avi",
"sourcePath": "//footage/tripod-motion.avi",
"sourceStatus": "AVAILABLE",
"sourceSha256": "bc29375f1744f3345fa7b40d568650a746567c83f97611628ad528e3293dc10a",
"width": 1920,
"height": 1080,
"frameStart": 1,
"frameEnd": 48,
"fpsNumerator": 2400,
"fpsDenominator": 1000,
"trackIds": [
"track:0:0",
"track:0:1",
"track:0:2",
"track:0:3",
"track:0:4",
"track:0:5",
"track:0:6"
],
"markerFrames": [
24,
50,
41,
38,
50,
30,
50
],
"planeTrackCount": 0,
"planeTrackIds": [],
"planePointTrackCounts": [],
"planeKeyframeCounts": [],
"cameraSolveStatus": "NONE",
"cameraSolveFrames": 0,
"bindingCount": 1
}
}

View File

@@ -0,0 +1,79 @@
{
"mode": "reopen",
"clip": {
"clipId": "movieclip:tripod-motion.avi",
"name": "tripod-motion.avi",
"sourcePath": "//footage/tripod-motion.avi",
"sourceStatus": "AVAILABLE",
"sourceSha256": "bc29375f1744f3345fa7b40d568650a746567c83f97611628ad528e3293dc10a",
"width": 1920,
"height": 1080,
"frameStart": 1,
"frameEnd": 48,
"fpsNumerator": 2400,
"fpsDenominator": 1000,
"trackIds": [
"track:0:0",
"track:0:1",
"track:0:2",
"track:0:3",
"track:0:4",
"track:0:5",
"track:0:6"
],
"markerFrames": [
24,
50,
41,
38,
50,
30,
50
],
"planeTrackCount": 0,
"planeTrackIds": [],
"planePointTrackCounts": [],
"planeKeyframeCounts": [],
"cameraSolveStatus": "NONE",
"cameraSolveFrames": 0,
"bindingCount": 1
},
"reopened": {
"clipId": "movieclip:tripod-motion.avi",
"name": "tripod-motion.avi",
"sourcePath": "//footage/tripod-motion.avi",
"sourceStatus": "AVAILABLE",
"sourceSha256": "bc29375f1744f3345fa7b40d568650a746567c83f97611628ad528e3293dc10a",
"width": 1920,
"height": 1080,
"frameStart": 1,
"frameEnd": 48,
"fpsNumerator": 2400,
"fpsDenominator": 1000,
"trackIds": [
"track:0:0",
"track:0:1",
"track:0:2",
"track:0:3",
"track:0:4",
"track:0:5",
"track:0:6"
],
"markerFrames": [
24,
50,
41,
38,
50,
30,
50
],
"planeTrackCount": 0,
"planeTrackIds": [],
"planePointTrackCounts": [],
"planeKeyframeCounts": [],
"cameraSolveStatus": "NONE",
"cameraSolveFrames": 0,
"bindingCount": 1
}
}

View File

@@ -0,0 +1,9 @@
{
"clipId": "movieclip:synthetic-tripod-motion.avi",
"beforeStatus": "SOLVED",
"reprojectionError": 0.08359552174806595,
"solvedFrames": 50,
"snapshotStatus": "SOLVED",
"snapshotFrames": 50,
"sourceStatus": "AVAILABLE"
}

View File

@@ -0,0 +1,25 @@
{
"clipId": "movieclip:synthetic-tripod-motion.avi",
"frameStart": 1,
"frameA": 3,
"frameB": 21,
"selectState": "DONE",
"expectedA": 3,
"expectedB": 21,
"keyframeA": 3,
"keyframeB": 21,
"beforeStatus": "SOLVED",
"scaleAffected": 1,
"applyAffected": 2,
"scaleValue": 3.005035400390625,
"clearAffected": 7,
"status": "NONE",
"solvedFrames": 0,
"ops": [
"setKeyframe",
"setKeyframe",
"setScale",
"applyScale",
"clearSolution"
]
}

View File

@@ -0,0 +1,71 @@
{
"clipId": "movieclip:synthetic-tripod-motion.avi",
"sourceStatus": "AVAILABLE",
"sourceSha256": "5c2db4935f28ade02d655e395a107ca995ebc84ff3ae242e3c762eb32abcc7ba",
"cameraSolve": {
"focalLength": 1050,
"keyframeA": 1,
"keyframeB": 30,
"principalPoint": [
0,
0
],
"reprojectionError": 0.08359552174806595,
"scale": 1,
"settingsHash": "9e6883db72700b629867c617f6e1853198d95c469d34ee8179adaef9ed09e8ae",
"solvedFrames": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
40,
41,
42,
43,
44,
45,
46,
47,
48,
49,
50
],
"sourceSha256": "5c2db4935f28ade02d655e395a107ca995ebc84ff3ae242e3c762eb32abcc7ba",
"status": "SOLVED"
}
}

View File

@@ -0,0 +1,26 @@
{
"clipId": "movieclip:tripod-motion.avi",
"initial": {
"sourceStatus": "AVAILABLE",
"frameStart": 1,
"frameEnd": 48
},
"reloadOp": "reload",
"reloadAffected": 1,
"setFramesOp": "setSceneFrames",
"sceneRange": {
"frameStart": 1,
"frameEnd": 48
},
"frameClipRange": {
"frameStart": 1,
"frameEnd": 48
},
"missingStatus": "MISSING",
"restoredStatus": "AVAILABLE",
"restoredSha": "bc29375f1744f3345fa7b40d568650a746567c83f97611628ad528e3293dc10a",
"bundle": {
"sourceStatus": "MISSING",
"trackCount": 71
}
}

View File

@@ -0,0 +1,144 @@
{
"frames": [
{
"stableMae": 0.22868786357893203,
"identityMae": 44.58087027914601,
"compared": 17052,
"skipped": 0,
"frame": 13,
"width": 1920,
"height": 1080,
"canvas": {
"width": 1920,
"height": 1080
},
"matrix": [
2.03348970413208,
-0.014949291944503784,
0,
0,
0.014949291944503784,
2.03348970413208,
0,
0,
0,
0,
1,
0,
-1621.7882080078125,
-509.13494873046875,
0,
1
],
"translation": [
-1621.7882080078125,
-509.13494873046875
]
},
{
"stableMae": 0.2270545010870637,
"identityMae": 45.94927281257322,
"compared": 17052,
"skipped": 0,
"frame": 25,
"width": 1920,
"height": 1080,
"canvas": {
"width": 1920,
"height": 1080
},
"matrix": [
2.0793862342834473,
-0.07884092628955841,
0,
0,
0.07884092628955841,
2.0793862342834473,
0,
0,
0,
0,
1,
0,
-659.7032470703125,
-454.44219970703125,
0,
1
],
"translation": [
-659.7032470703125,
-454.44219970703125
]
},
{
"stableMae": 0.2327601406075628,
"identityMae": 51.97448007291393,
"compared": 16092,
"skipped": 960,
"frame": 36,
"width": 1920,
"height": 1080,
"canvas": {
"width": 1920,
"height": 1080
},
"matrix": [
2.144941568374634,
-0.10405347496271133,
0,
0,
0.10405347496271133,
2.144941568374634,
0,
0,
0,
0,
1,
0,
53.514404296875,
-469.3504638671875,
0,
1
],
"translation": [
53.514404296875,
-469.3504638671875
]
},
{
"stableMae": 0.2287394747064246,
"identityMae": 47.20301282805668,
"compared": 16994,
"skipped": 58,
"frame": 46,
"width": 1920,
"height": 1080,
"canvas": {
"width": 1920,
"height": 1080
},
"matrix": [
2.013568162918091,
-0.11128196120262146,
0,
0,
0.11128196120262146,
2.013568162918091,
0,
0,
0,
0,
1,
0,
-57.4482421875,
-385.4058837890625,
0,
1
],
"translation": [
-57.4482421875,
-385.4058837890625
]
}
]
}

View File

@@ -0,0 +1,68 @@
{
"clipId": "movieclip:tripod-motion.avi",
"pythonState": "DONE",
"settings": {
"anchorFrame": 12,
"autoscale": true,
"enabled": true,
"filter": 1,
"locinf": 0.800000011920929,
"maxscale": 1.5,
"rotinf": 0.5,
"scale": 1,
"scaleinf": 0.5,
"showStabTracks": true,
"targetPos": [
0.5,
0.5
],
"targetRot": 0.10000000149011612,
"totalRotationTracks": 0,
"totalTracks": 0,
"useRotation": true,
"useScale": true
},
"flaggedTrack": {
"useStab": true,
"useStabRot": true
},
"counts": {
"totalTracks": 1,
"totalRotationTracks": 1
},
"stabilization": {
"translation": [
499.416015625,
561.0093994140625
],
"scale": 1.4904385805130005,
"angle": 0.10078686475753784,
"matrix": [
1.482875108718872,
0.1499624401330948,
0,
0,
-0.1499624401330948,
1.482875108718872,
0,
0,
0,
0,
1,
0,
116.835693359375,
156.29290771484375,
0,
1
]
},
"decodeError": null,
"rawStabilization": null,
"decodedWidth": 1920,
"fixture": {
"sourceStatus": "MISSING",
"width": 960,
"anchorFrame": 1,
"hasSettings": true
}
}

View File

@@ -0,0 +1,19 @@
{
"clipId": "movieclip:tripod-motion.avi",
"beforeCount": 7,
"frame": 6,
"createdTrackId": "track:0:7",
"afterAddCount": 8,
"addedMarkers": 1,
"addedSelected": true,
"keyedFlag": true,
"clearedMarkers": 3,
"hiddenFlag": true,
"shownFlag": false,
"opAdded": "addTrack",
"opDeleted": "deleteTrack",
"deletedAffected": 1,
"activeObject": "E2E_Object",
"objectRemoveOp": "objectRemove",
"afterDeleteCount": 7
}

View File

@@ -0,0 +1,34 @@
{
"trackId": "track:0:0",
"averageError": 0.08751886337995529,
"muted": false,
"frameStart": 1,
"sceneFrame": 1,
"markerFrame": 1,
"width": 960,
"height": 540,
"expected": [
0.8762741088867188,
0.8762741088867188,
0.8762741088867188
],
"copyColor": {
"paintState": "DONE",
"state": "DONE",
"otherIndex": 1,
"activeCustom": true,
"activeColor": [
0,
0,
1,
1
],
"otherCustom": true,
"otherColor": [
0,
0,
1,
1
]
}
}

View File

@@ -0,0 +1,32 @@
{
"reference": {
"trackId": "track:0:0",
"markerFrame": 1,
"sceneFrame": 1,
"averageError": 0.08751886337995529,
"muted": false
},
"painted": {
"width": 160,
"height": 80,
"opaque": true,
"distinct": 22,
"center": [
1,
1,
1
]
},
"tall": {
"width": 160,
"height": 160,
"opaque": true,
"distinct": 34,
"center": [
1,
1,
1
]
},
"presetColor": "#0000ff"
}

View File

@@ -0,0 +1,17 @@
{
"pythonState": "DONE",
"clipId": "movieclip:tripod-motion.avi",
"startFrame": 0,
"trackId": "track:0:0",
"beforeCount": 24,
"single": {
"lastFrame": 1,
"tracks": 7,
"afterCount": 25,
"hasNext": true
},
"sequence": {
"lastFrame": 1,
"tracks": 7
}
}

View File

@@ -0,0 +1,95 @@
{
"clip": {
"id": "movieclip:distorted-grid.png",
"name": "distorted-grid.png",
"width": 1920,
"height": 1080,
"frameStart": 1,
"sourceStatus": "AVAILABLE"
},
"settings": {
"brownK1": 0,
"brownK2": 0,
"brownK3": 0,
"brownK4": 0,
"defaultAlgorithm": 1,
"defaultFramesLimit": 0,
"defaultMargin": 0,
"defaultMinimumCorrelation": 0.75,
"defaultMotionModel": 0,
"defaultPatternMatch": 0,
"defaultPatternSize": 15,
"defaultSearchSize": 61,
"defaultWeight": 1,
"distortionModel": 0,
"divisionK1": 0,
"divisionK2": 0,
"focal": 1316.5714111328125,
"k1": -0.10000000149011612,
"k2": -0.05000000074505806,
"k3": -0.07999999821186066,
"motionFlag": 0,
"nukeK1": 0,
"nukeK2": 0,
"pixelAspect": 1,
"principal": [
0,
0
],
"refine": 0,
"sensorWidth": 35,
"units": 1
},
"zeroedSettings": {
"brownK1": 0,
"brownK2": 0,
"brownK3": 0,
"brownK4": 0,
"defaultAlgorithm": 1,
"defaultFramesLimit": 0,
"defaultMargin": 0,
"defaultMinimumCorrelation": 0.75,
"defaultMotionModel": 0,
"defaultPatternMatch": 0,
"defaultPatternSize": 15,
"defaultSearchSize": 61,
"defaultWeight": 1,
"distortionModel": 0,
"divisionK1": 0,
"divisionK2": 0,
"focal": 1316.5714111328125,
"k1": 0,
"k2": 0,
"k3": 0,
"motionFlag": 0,
"nukeK1": 0,
"nukeK2": 0,
"pixelAspect": 1,
"principal": [
0,
0
],
"refine": 0,
"sensorWidth": 35,
"units": 1
},
"pythonState": "DONE",
"raw": {
"width": 1920,
"height": 1080
},
"undistorted": {
"width": 1920,
"height": 1080
},
"distortion": {
"total": 34.36609326777127,
"centre": 1.3149654227023542,
"border": 44.85898505279479
},
"remainder": {
"total": 0,
"centre": 0,
"border": 0
}
}

View File

@@ -0,0 +1,99 @@
{
"engine": {
"clip": {
"id": "movieclip:distorted-grid.png",
"name": "distorted-grid.png",
"width": 1920,
"height": 1080,
"frameStart": 1,
"sourceStatus": "AVAILABLE"
},
"settings": {
"brownK1": 0,
"brownK2": 0,
"brownK3": 0,
"brownK4": 0,
"defaultAlgorithm": 1,
"defaultFramesLimit": 0,
"defaultMargin": 0,
"defaultMinimumCorrelation": 0.75,
"defaultMotionModel": 0,
"defaultPatternMatch": 0,
"defaultPatternSize": 15,
"defaultSearchSize": 61,
"defaultWeight": 1,
"distortionModel": 0,
"divisionK1": 0,
"divisionK2": 0,
"focal": 1316.5714111328125,
"k1": -0.10000000149011612,
"k2": -0.05000000074505806,
"k3": -0.07999999821186066,
"motionFlag": 0,
"nukeK1": 0,
"nukeK2": 0,
"pixelAspect": 1,
"principal": [
0,
0
],
"refine": 0,
"sensorWidth": 35,
"units": 1
},
"zeroedSettings": {
"brownK1": 0,
"brownK2": 0,
"brownK3": 0,
"brownK4": 0,
"defaultAlgorithm": 1,
"defaultFramesLimit": 0,
"defaultMargin": 0,
"defaultMinimumCorrelation": 0.75,
"defaultMotionModel": 0,
"defaultPatternMatch": 0,
"defaultPatternSize": 15,
"defaultSearchSize": 61,
"defaultWeight": 1,
"distortionModel": 0,
"divisionK1": 0,
"divisionK2": 0,
"focal": 1316.5714111328125,
"k1": 0,
"k2": 0,
"k3": 0,
"motionFlag": 0,
"nukeK1": 0,
"nukeK2": 0,
"pixelAspect": 1,
"principal": [
0,
0
],
"refine": 0,
"sensorWidth": 35,
"units": 1
},
"pythonState": "DONE",
"raw": {
"width": 1920,
"height": 1080
},
"undistorted": {
"width": 1920,
"height": 1080
},
"distortion": {
"total": 34.36609326777127,
"centre": 1.3149654227023542,
"border": 44.85898505279479
},
"remainder": {
"total": 0,
"centre": 0,
"border": 0
}
},
"baselineLength": 3630270,
"changed": true
}

View File

@@ -0,0 +1,12 @@
{
"bounds": {
"min": 1,
"max": 48,
"value": 1
},
"target": 3,
"beforeStep": 3,
"beforeJump": 4,
"afterJump": 5,
"value": "4"
}

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,661 @@
{
"schemaVersion": 1,
"status": "PASS",
"generatedAt": "2026-12-04T07:56:32.126Z",
"mode": "full",
"candidate": "/home/mes123456/workinf_Blender_Wasm/web/.frozen/CLIP-20261204-154337-3c81eb06/web",
"release": {
"servedBy": "vite-dev-frozen",
"servedRoot": "/home/mes123456/workinf_Blender_Wasm/web/.frozen/CLIP-20261204-154337-3c81eb06/web",
"frozenAt": "/home/mes123456/workinf_Blender_Wasm/web/.frozen/CLIP-20261204-154337-3c81eb06",
"candidateManifestSha256": "695b50c0faaf2bb27bafe0c5a4fe8a44583db3c58dac03728bf2311b0630d8ac",
"candidateFiles": 3997,
"moduleManifestSha256": "8103c1cf13e15d76b81299ae820547ea1117255f16327237e5c8ad70b57b96be",
"wasmSha256": "3c81eb064d8e6a9b59fb1e84aa1ea2faa2d6059ea0f50f4be808bc6399f36598",
"wasmBytes": 325169211,
"engineHasClipFrame": true,
"bundleHasClipEditor": true
},
"fixtures": {
"blend": {
"path": "/home/mes123456/workinf_Blender_Wasm/blender-5.2.0/tests/files/tracking/tripod-motion.blend",
"sha256": "4000c9b7b0e2fa2677cdcefaeb8051ad45fa482e005f18c33b8a93bb195fd96c"
},
"footage": {
"path": "/home/mes123456/workinf_Blender_Wasm/blender-5.2.0/tests/files/tracking/footage/tripod-motion.avi",
"sha256": "bc29375f1744f3345fa7b40d568650a746567c83f97611628ad528e3293dc10a"
}
},
"environment": {
"display": ":1",
"gpuMode": "hardware",
"browser": "chromium-headed",
"chrome": "Google Chrome 151.0.7922.137",
"chromePath": "/usr/bin/google-chrome",
"node": "v24.19.0",
"port": 5314,
"workers": 1
},
"preflight": [
{
"name": "display",
"ok": true,
"detail": ":1",
"hard": true
},
{
"name": "chrome",
"ok": true,
"detail": {
"chromePath": "/usr/bin/google-chrome",
"version": "Google Chrome 151.0.7922.137"
},
"hard": true
},
{
"name": "playwright",
"ok": true,
"detail": "/home/mes123456/workinf_Blender_Wasm/web/node_modules/@playwright/test/package.json",
"hard": true
},
{
"name": "candidate manifest",
"ok": true,
"detail": {
"files": 3997,
"manifestSha256": "695b50c0faaf2bb27bafe0c5a4fe8a44583db3c58dac03728bf2311b0630d8ac"
},
"hard": true
},
{
"name": "served engine",
"ok": true,
"detail": "/home/mes123456/workinf_Blender_Wasm/web/.frozen/CLIP-20261204-154337-3c81eb06/web/app/public/vendor/blender/web_engine.wasm",
"hard": true
},
{
"name": "served module manifest",
"ok": true,
"detail": "/home/mes123456/workinf_Blender_Wasm/web/.frozen/CLIP-20261204-154337-3c81eb06/web/app/public/wasm-module-manifest.json",
"hard": true
},
{
"name": "engine has clipFrame",
"ok": true,
"detail": true,
"hard": true
},
{
"name": "Clip editor source present",
"ok": true,
"detail": "/home/mes123456/workinf_Blender_Wasm/web/.frozen/CLIP-20261204-154337-3c81eb06/web/app/src/app/ClipEditorSurface.tsx",
"hard": true
},
{
"name": "tripod-motion blend fixture",
"ok": true,
"detail": {
"path": "/home/mes123456/workinf_Blender_Wasm/blender-5.2.0/tests/files/tracking/tripod-motion.blend",
"sha256": "4000c9b7b0e2fa2677cdcefaeb8051ad45fa482e005f18c33b8a93bb195fd96c"
},
"hard": true
},
{
"name": "tripod-motion footage fixture",
"ok": true,
"detail": {
"path": "/home/mes123456/workinf_Blender_Wasm/blender-5.2.0/tests/files/tracking/footage/tripod-motion.avi",
"sha256": "bc29375f1744f3345fa7b40d568650a746567c83f97611628ad528e3293dc10a"
},
"hard": true
},
{
"name": "port free",
"ok": true,
"detail": 5314,
"hard": true
},
{
"name": "workers",
"ok": true,
"detail": 1,
"hard": false
}
],
"cases": [
{
"caseId": "mod-clip-01-reads-movieclip-tracking-data-and-decodes-footag",
"title": "MOD-CLIP-01 reads MovieClip tracking data and decodes footage in Chromium",
"file": "clip-engine-read-production.spec.ts",
"status": "PASS",
"durationMs": 8649,
"error": null,
"artifacts": []
},
{
"caseId": "clip-read-web",
"title": "[clip-read-web] reads the tripod MovieClip from the WASM engine",
"file": "clip-headed-production.spec.ts",
"status": "PASS",
"durationMs": 4475,
"error": null,
"artifacts": [
{
"name": "clip-read",
"kind": "json",
"path": "artifacts/clip-read-web/clip-read.json",
"sha256": "e6f75ce19dc40907e0a9eaddf51759e8b56f7833a5b4ca4632ad3b846583f8ce",
"bytes": 873
}
]
},
{
"caseId": "clip-frame-web",
"title": "[clip-frame-web] decodes the clip frame to RGBA pixels",
"file": "clip-headed-production.spec.ts",
"status": "PASS",
"durationMs": 5417,
"error": null,
"artifacts": [
{
"name": "clip-frame",
"kind": "json",
"path": "artifacts/clip-frame-web/clip-frame.json",
"sha256": "0c831990b8c799206ef7e3f6d5914860abd49b044fc2deafa6894c27d9ba838b",
"bytes": 997
}
]
},
{
"caseId": "clip-missing-web",
"title": "[clip-missing-web] keeps the clip while the footage is absent",
"file": "clip-headed-production.spec.ts",
"status": "PASS",
"durationMs": 4018,
"error": null,
"artifacts": [
{
"name": "clip-missing",
"kind": "json",
"path": "artifacts/clip-missing-web/clip-missing.json",
"sha256": "b38d8e3e05f27f0648dfc515f4e0d814cde6be8da71f388fc10c349ecbca6a65",
"bytes": 732
}
]
},
{
"caseId": "clip-reopen-web",
"title": "[clip-reopen-web] keeps clip identity and tracking data through save and reopen",
"file": "clip-headed-production.spec.ts",
"status": "PASS",
"durationMs": 5891,
"error": null,
"artifacts": [
{
"name": "clip-reopen",
"kind": "json",
"path": "artifacts/clip-reopen-web/clip-reopen.json",
"sha256": "e915914097eaf56655dec66d266422f2370c44ff580c9012eab7b15516e00f2f",
"bytes": 1731
}
]
},
{
"caseId": "clip-edit-web",
"title": "[clip-edit-web] writes a tracking marker through the embedded bpy channel",
"file": "clip-headed-production.spec.ts",
"status": "PASS",
"durationMs": 11037,
"error": null,
"artifacts": [
{
"name": "clip-edit",
"kind": "json",
"path": "artifacts/clip-edit-web/clip-edit.json",
"sha256": "80b3a63e31e30ef052cb7471e0f69b93025781b352a20fcd6793043798da35f3",
"bytes": 2690
}
]
},
{
"caseId": "clip-solve-web",
"title": "[clip-solve-web] imports the reconstruction as a camera solve",
"file": "clip-headed-production.spec.ts",
"status": "PASS",
"durationMs": 4126,
"error": null,
"artifacts": [
{
"name": "clip-solve",
"kind": "json",
"path": "artifacts/clip-solve-web/clip-solve.json",
"sha256": "b398bc4bb45b9f41e98f2034089a6b16c6c48f4c48da2e7d4f701e889342dcc8",
"bytes": 1091
}
]
},
{
"caseId": "clip-track-web",
"title": "[clip-track-web] tracks selected markers through the libmv engine",
"file": "clip-headed-production.spec.ts",
"status": "PASS",
"durationMs": 6338,
"error": null,
"artifacts": [
{
"name": "clip-track",
"kind": "json",
"path": "artifacts/clip-track-web/clip-track.json",
"sha256": "cd968f0c9ffc7c871332459dfafa1caf3f0f5dedd5d9aa3a52bbee5798015c59",
"bytes": 292
}
]
},
{
"caseId": "clip-solve-command-web",
"title": "[clip-solve-command-web] solves the camera through the engine",
"file": "clip-headed-production.spec.ts",
"status": "PASS",
"durationMs": 4309,
"error": null,
"artifacts": [
{
"name": "clip-solve-command",
"kind": "json",
"path": "artifacts/clip-solve-command-web/clip-solve-command.json",
"sha256": "f68ec7b1f0f607a8ca2b36fcc4ed2ba90ffef3df29df2f32239f2d7ef890c667",
"bytes": 235
}
]
},
{
"caseId": "clip-proxy-web",
"title": "[clip-proxy-web] builds a proxy and decodes a proxy-sized frame",
"file": "clip-headed-production.spec.ts",
"status": "PASS",
"durationMs": 5874,
"error": null,
"artifacts": [
{
"name": "clip-proxy",
"kind": "json",
"path": "artifacts/clip-proxy-web/clip-proxy.json",
"sha256": "a8412ace2dff8610f2a9f47237da293b8aff8cdcca52f092a2ff366e7a311e28",
"bytes": 308
}
]
},
{
"caseId": "clip-plane-web",
"title": "[clip-plane-web] creates and edits a plane track through the engine",
"file": "clip-headed-production.spec.ts",
"status": "PASS",
"durationMs": 10142,
"error": null,
"artifacts": [
{
"name": "clip-plane",
"kind": "json",
"path": "artifacts/clip-plane-web/clip-plane.json",
"sha256": "a2b2cfd7ad159819b10689c99503ded69ecdc83394387d1addb19dd9d75eeafb",
"bytes": 2242
}
]
},
{
"caseId": "clip-plane-drag-web",
"title": "[clip-plane-drag-web] drags a plane corner in the Clip editor and writes it",
"file": "clip-headed-production.spec.ts",
"status": "PASS",
"durationMs": 10223,
"error": null,
"artifacts": [
{
"name": "clip-plane-drag-draft",
"kind": "json",
"path": "artifacts/clip-plane-drag-web/clip-plane-drag-draft.json",
"sha256": "a4ff689a566cada44f56118a64eeab62a90eb8ba9da0b0dc442d850aa480bcff",
"bytes": 875
},
{
"name": "clip-plane-drag",
"kind": "json",
"path": "artifacts/clip-plane-drag-web/clip-plane-drag.json",
"sha256": "5b622d76483edaacaa2c706aaf16a85a7a4015c2855c69f42901d595a8ee6b1f",
"bytes": 592
}
]
},
{
"caseId": "clip-wiring",
"title": "[clip-wiring] steps, jumps and tracks from the Clip editor controls",
"file": "clip-headed-production.spec.ts",
"status": "PASS",
"durationMs": 9634,
"error": null,
"artifacts": [
{
"name": "clip-wiring",
"kind": "json",
"path": "artifacts/clip-wiring/clip-wiring.json",
"sha256": "21dfb946e164c89ba9f3d3d62606a92ecb1ab96d61914f4cc8810c8c76ce3ce4",
"bytes": 153
}
]
},
{
"caseId": "clip-track-lifecycle",
"title": "[clip-track-lifecycle] adds, keys, clears, flags and deletes a track through the engine",
"file": "clip-headed-production.spec.ts",
"status": "PASS",
"durationMs": 7231,
"error": null,
"artifacts": [
{
"name": "clip-track-lifecycle",
"kind": "json",
"path": "artifacts/clip-track-lifecycle/clip-track-lifecycle.json",
"sha256": "d4dcfa7f8a14d9c7cc2ca1b1686ece4680580879272b84ed1e2b4a50601a5aac",
"bytes": 441
}
]
},
{
"caseId": "clip-boxes-settings",
"title": "[clip-boxes-settings] writes pattern/search boxes and tracker settings through bpy",
"file": "clip-headed-production.spec.ts",
"status": "PASS",
"durationMs": 6663,
"error": null,
"artifacts": [
{
"name": "clip-boxes-settings",
"kind": "json",
"path": "artifacts/clip-boxes-settings/clip-boxes-settings.json",
"sha256": "19efa5ab38b7e7dc08aa7af8a8dcaa65b40c29ac04b4cf6184e717c5b8d7c779",
"bytes": 3121
}
]
},
{
"caseId": "clip-track-panel",
"title": "[clip-track-panel] previews the pattern, applies color presets and shows the average error",
"file": "clip-headed-production.spec.ts",
"status": "PASS",
"durationMs": 14794,
"error": null,
"artifacts": [
{
"name": "clip-track-panel-reference",
"kind": "json",
"path": "artifacts/clip-track-panel/clip-track-panel-reference.json",
"sha256": "fd2962b4606a9d655a5a3fda35304808fa53b946590ac5845e85ae3fe0225f16",
"bytes": 534
},
{
"name": "clip-track-panel",
"kind": "json",
"path": "artifacts/clip-track-panel/clip-track-panel.json",
"sha256": "0e78cccf9c9f88e674893bf38ded6b8790e48aa0adf69b1ccf328ce4b993527d",
"bytes": 470
}
]
},
{
"caseId": "clip-point-motion",
"title": "[clip-point-motion] opens the synthetic point-motion clip and decodes its PNG sequence",
"file": "clip-headed-production.spec.ts",
"status": "PASS",
"durationMs": 9806,
"error": null,
"artifacts": [
{
"name": "clip-point-motion-engine",
"kind": "json",
"path": "artifacts/clip-point-motion/clip-point-motion-engine.json",
"sha256": "c91c59b18ff9e4dad49c196b823498299ab3434cebd25085311a65e47ad17887",
"bytes": 1052
},
{
"name": "clip-point-motion",
"kind": "json",
"path": "artifacts/clip-point-motion/clip-point-motion.json",
"sha256": "db3bc28681ef0a72d12180677f9d3a469a9a1c65a53a207fe7e2835b33277482",
"bytes": 1248
}
]
},
{
"caseId": "clip-undistort",
"title": "[clip-undistort] renders the undistorted frame and exposes the camera data",
"file": "clip-headed-production.spec.ts",
"status": "PASS",
"durationMs": 15950,
"error": null,
"artifacts": [
{
"name": "clip-undistort-engine",
"kind": "json",
"path": "artifacts/clip-undistort/clip-undistort-engine.json",
"sha256": "a305780a4a1301461f9df3ef85a82f297a794d90de498aeef1ece3e1985ce8c6",
"bytes": 1922
},
{
"name": "clip-undistort",
"kind": "json",
"path": "artifacts/clip-undistort/clip-undistort.json",
"sha256": "e3392058899afda477e7ddb61f71bacc5622fd341c1fcf78212ca4e4d1e80a46",
"bytes": 2174
}
]
},
{
"caseId": "clip-detect",
"title": "[clip-detect] detects Harris features on the current frame",
"file": "clip-headed-production.spec.ts",
"status": "PASS",
"durationMs": 7484,
"error": null,
"artifacts": [
{
"name": "clip-detect",
"kind": "json",
"path": "artifacts/clip-detect/clip-detect.json",
"sha256": "548a2e0d2886f282a8bc59b2ec4e5dee9fe4b9349f617ddd4d65bd593c915347",
"bytes": 297
}
]
},
{
"caseId": "clip-solve-settings",
"title": "[clip-solve-settings] edits solve keyframes, scale and clears the solution",
"file": "clip-headed-production.spec.ts",
"status": "PASS",
"durationMs": 6407,
"error": null,
"artifacts": [
{
"name": "clip-solve-settings",
"kind": "json",
"path": "artifacts/clip-solve-settings/clip-solve-settings.json",
"sha256": "a25dad79dc9c14f99e73b08f0cb43aafc32e92d79657b352fd617b79c2728cc2",
"bytes": 483
}
]
},
{
"caseId": "clip-plane-complete",
"title": "[clip-plane-complete] keys, retracks, images and deletes a plane track",
"file": "clip-headed-production.spec.ts",
"status": "PASS",
"durationMs": 7872,
"error": null,
"artifacts": [
{
"name": "clip-plane-complete",
"kind": "json",
"path": "artifacts/clip-plane-complete/clip-plane-complete.json",
"sha256": "24000cd49b7b2642aec9839e4579f512102b3617767016c84e50b1052053dedb",
"bytes": 525
}
]
},
{
"caseId": "clip-stab",
"title": "[clip-stab] writes 2D stabilization settings and returns a stabilization matrix",
"file": "clip-headed-production.spec.ts",
"status": "PASS",
"durationMs": 9233,
"error": null,
"artifacts": [
{
"name": "clip-stab",
"kind": "json",
"path": "artifacts/clip-stab/clip-stab.json",
"sha256": "ac7f4d7adbdd7c182556af3558a53012bdc6b98355cb12bb5db2601b7f46bca8",
"bytes": 1256
}
]
},
{
"caseId": "clip-stab-composite",
"title": "[clip-stab-composite] composites the canvas through the stabilization matrix",
"file": "clip-headed-production.spec.ts",
"status": "PASS",
"durationMs": 26451,
"error": null,
"artifacts": [
{
"name": "clip-stab-composite",
"kind": "json",
"path": "artifacts/clip-stab-composite/clip-stab-composite.json",
"sha256": "0e4cb61bfd81e0f2ef28376f5ab6fb24cd84b753476a4493c8c42371b9facad1",
"bytes": 2671
}
]
},
{
"caseId": "clip-source",
"title": "[clip-source] reloads, sets the scene range and relinks the clip source",
"file": "clip-headed-production.spec.ts",
"status": "PASS",
"durationMs": 18366,
"error": null,
"artifacts": [
{
"name": "clip-source",
"kind": "json",
"path": "artifacts/clip-source/clip-source.json",
"sha256": "1ee8967e527178ecc5fca2587e5e77703eadc5aaf83187f12cc96d5dfbe54839",
"bytes": 570
}
]
},
{
"caseId": "clip-dopesheet",
"title": "[clip-dopesheet] selects a track and jumps to a keyframe cell",
"file": "clip-headed-production.spec.ts",
"status": "PASS",
"durationMs": 5363,
"error": null,
"artifacts": [
{
"name": "clip-dopesheet",
"kind": "json",
"path": "artifacts/clip-dopesheet/clip-dopesheet.json",
"sha256": "02f2161d4d0f2cef1f694ebad4ac32b29248dfbfbc7f21b853c0aaabac7b8431",
"bytes": 72
}
]
},
{
"caseId": "clip-graph",
"title": "[clip-graph] draws the desktop graph view and jumps from a knot",
"file": "clip-headed-production.spec.ts",
"status": "PASS",
"durationMs": 8170,
"error": null,
"artifacts": [
{
"name": "clip-graph",
"kind": "json",
"path": "artifacts/clip-graph/clip-graph.json",
"sha256": "0c25d37172b1ba8921c23b62b3c83121e857ea3b623c6b3657cfac9b3b2f5216",
"bytes": 136
}
]
},
{
"caseId": "clip-mask-edit",
"title": "[clip-mask-edit] edits mask splines from the Clip editor canvas",
"file": "clip-headed-production.spec.ts",
"status": "PASS",
"durationMs": 12586,
"error": null,
"artifacts": [
{
"name": "clip-mask-fixture",
"kind": "json",
"path": "artifacts/clip-mask-edit/clip-mask-fixture.json",
"sha256": "280ac6003d962ea11771b8ebae397ae87acd3811619d5326bd4e5691ead43ecd",
"bytes": 73
},
{
"name": "clip-mask-edit",
"kind": "json",
"path": "artifacts/clip-mask-edit/clip-mask-edit.json",
"sha256": "659dc988756f7f96ce25591b9b63edb04f9ed5109654aa27390283473cca6530",
"bytes": 643
}
]
},
{
"caseId": "fixture-digests-are-bound",
"title": "fixture digests are bound",
"file": "clip-headed-production.spec.ts",
"status": "PASS",
"durationMs": 829,
"error": null,
"artifacts": []
}
],
"summary": {
"pass": 28,
"fail": 0,
"skip": 0,
"blocked": 0,
"total": 28,
"wallMs": 248931,
"expectedCaseIds": [
"clip-read-web",
"clip-frame-web",
"clip-missing-web",
"clip-reopen-web",
"clip-edit-web",
"clip-solve-web",
"clip-track-web",
"clip-solve-command-web",
"clip-proxy-web",
"clip-plane-web",
"clip-plane-drag-web",
"clip-wiring",
"clip-track-lifecycle",
"clip-boxes-settings",
"clip-track-panel",
"clip-point-motion",
"clip-detect",
"clip-undistort",
"clip-solve-settings",
"clip-plane-complete",
"clip-stab",
"clip-stab-composite",
"clip-source",
"clip-dopesheet",
"clip-graph",
"clip-mask-edit"
],
"missingCaseIds": []
},
"errors": [],
"acceptance": "NOT_CLAIMED"
}

View File

@@ -3,9 +3,10 @@
"task": "MOD-CLIP-01",
"status": "in_progress",
"acceptance": "NOT_CLAIMED",
"focus": "Clip subsystem complete in the WASM path: reader, frame decode, proxies, on-the-fly undistortion with a pixel-level case, marker tracking, camera solve, plane tracks with use_auto_keying, stabilization with a pixel-level composite assertion, source management, dopesheet/graph with desktop View2D knot coordinates plus wheel zoom, mask editing, the desktop Track-panel widgets (pattern scopes preview, color presets, average error, track colour copy) and a headed case that opens synthetic-point-motion: the 26-case headed acceptance suite ran 28/28 PASS against the dev candidate and the four previously annotated Clip limits are closed in code and asserted; only the user's hands-on use-stage acceptance remains, so acceptance stays NOT_CLAIMED.",
"breakpoint": "Batches 0-10 and the undistortion pass are implemented and the headed acceptance suite keeps running with the user's explicit authorization. Latest receipt: tests/golden/CLIP-HEADED-20261204-124651/report.json (candidate /home/mes123456/workinf_Blender_Wasm/web/dist, 28/28 PASS, 4.1m); node tools/web/check-clip-headed.mjs --dir tests/golden/CLIP-HEADED-20261204-124651 returns status PASS with acceptance NOT_CLAIMED, all 26 expected case ids present and 31 artifacts; engine wasm sha256 3c81eb064d8e6a9b59fb1e84aa1ea2faa2d6059ea0f50f4be808bc6399f36598. History kept, not overwritten: CLIP-HEADED-20261204-082003 and -084242 (27/27, wasm 3dfc96fe…). The two intermediate reruns after the case extension (CLIP-HEADED-20261204-120539, 26/28; -122146, 0/2) were failures of the new test assumptions, not of the product; their failure trace bundles (18 MB and 24 MB) are left uncommitted on disk like every other trace bundle in this repository, and only the passing focused rerun tests/golden/CLIP-HEADED-20261204-124303 (2/2) is archived. Defects found by this pass and fixed: (1) the clip-undistort assertion assumed millimetres, but RNA Camera.focal is stored in pixels, so the fixture's 24 mm on a 35 mm sensor over 1920 px reads 1316.57 px — assertion corrected; (2) the Camera Data number fields rendered raw DNA float32 noise (−0.10000000149…); ClipEditorSurface now formats those floats to 6 decimal places (cleanFloat); (3) the clip-track-panel flow checked a track (which the panel makes the active edit target) and then clicked the same row, toggling the selection back off, and the average-error readout then followed the copied track; the flow re-selects the painted track as the copy source and restores the reference selection before the readout. No production defect was found in the engine undistortion path itself: with the frame flag set the decoded pixels change with a border/centre ratio above 4, and with k1..k3 zeroed the mapping returns to identity.",
"focus": "Clip subsystem complete in the WASM path: reader, frame decode, proxies, on-the-fly undistortion with a pixel-level case, marker tracking, camera solve, plane tracks with use_auto_keying, stabilization with a pixel-level composite assertion, source management, dopesheet/graph with desktop View2D knot coordinates plus wheel zoom, mask editing, the desktop Track-panel widgets (pattern scopes preview, color presets, average error, track colour copy) and a headed case that opens synthetic-point-motion: the 26-case headed acceptance suite ran 28/28 PASS on the dev candidate and 28/28 on a sha256-manifest-bound frozen candidate, and the four previously annotated Clip limits are closed in code and asserted; only the user's hands-on use-stage acceptance remains, so acceptance stays NOT_CLAIMED.",
"breakpoint": "Batches 0-10 and the undistortion pass are implemented and the headed acceptance suite keeps running with the user's explicit authorization. Latest receipt: tests/golden/CLIP-HEADED-20261204-155221/report.json — the 28-test suite ran 28/28 PASS in 4.1m against a frozen candidate served from /home/mes123456/workinf_Blender_Wasm/web/.frozen/CLIP-20261204-154337-3c81eb06/web (release.servedBy vite-dev-frozen, frozenAt /home/mes123456/workinf_Blender_Wasm/web/.frozen/CLIP-20261204-154337-3c81eb06, candidateManifestSha256 695b50c0faaf2bb27bafe0c5a4fe8a44583db3c58dac03728bf2311b0630d8ac over 3997 files); node tools/web/check-clip-headed.mjs --dir tests/golden/CLIP-HEADED-20261204-155221 returns status PASS with acceptance NOT_CLAIMED, all 26 expected case ids present and 31 artifacts, and re-verifies the frozen manifest against disk; engine wasm sha256 3c81eb064d8e6a9b59fb1e84aa1ea2faa2d6059ea0f50f4be808bc6399f36598. The dev-candidate receipt is kept as history: tests/golden/CLIP-HEADED-20261204-124651 (28/28 PASS, served web/app through the dev server). History kept, not overwritten: CLIP-HEADED-20261204-082003 and -084242 (27/27, wasm 3dfc96fe…). The two intermediate reruns after the case extension (CLIP-HEADED-20261204-120539, 26/28; -122146, 0/2) were failures of the new test assumptions, not of the product; their failure trace bundles (18 MB and 24 MB) are left uncommitted on disk like every other trace bundle in this repository, and only the passing focused rerun tests/golden/CLIP-HEADED-20261204-124303 (2/2) is archived. Defects found by this pass and fixed: (1) the clip-undistort assertion assumed millimetres, but RNA Camera.focal is stored in pixels, so the fixture's 24 mm on a 35 mm sensor over 1920 px reads 1316.57 px — assertion corrected; (2) the Camera Data number fields rendered raw DNA float32 noise (−0.10000000149…); ClipEditorSurface now formats those floats to 6 decimal places (cleanFloat); (3) the clip-track-panel flow checked a track (which the panel makes the active edit target) and then clicked the same row, toggling the selection back off, and the average-error readout then followed the copied track; the flow re-selects the painted track as the copy source and restores the reference selection before the readout. No production defect was found in the engine undistortion path itself: with the frame flag set the decoded pixels change with a border/centre ratio above 4, and with k1..k3 zeroed the mapping returns to identity. Receipts left uncommitted rather than archived with a wrong identity: the first frozen full run CLIP-HEADED-20261204-154504 passed 28/28 but recorded release.servedBy as vite-dev-source while serving the frozen tree (the field now keys off the frozen root and the suite was rerun as -155221), and the freeze smoke/blocked runs CLIP-HEADED-20261204-151252, -152620 and -154336 never reached the full suite.",
"implemented": [
"Frozen-candidate acceptance mode [this pass, verified by tests/golden/CLIP-HEADED-20261204-155221]: tools/web/run-clip-headed.mjs --freeze hardlink-copies (cp -al) the served source tree into web/.frozen/CLIP-<date>-<time>-<wasm8> preserving repository depth (web/app, web/protocol, tools/web, docs/web/deployment-contract.json, so app/vite.config.ts keeps resolving ../../tools/web and ../../docs/web) and writes manifest.json with every file's bytes and sha256 plus sourceCommit and wasmSha256; --candidate <snapshot> refuses anything that is not such a snapshot or whose files no longer match the manifest (unlisted, missing, resized or rehashed files all fail before a server starts); web/playwright.clip.config.ts serves the frozen root when CLIP_SERVED_ROOT is set (the repository's own vite binary with --config app/vite.config.ts, cwd web/.frozen/CLIP-*/web) and keeps npm run dev for live runs; receipts record servedBy (vite-dev-frozen / vite-dev-source), servedRoot, frozenAt, candidateFiles and candidateManifestSha256, and check-clip-headed.mjs re-hashes manifest.json and checks its file count and wasmSha256 against the receipt; web/.frozen/ is gitignored. Gaps found and fixed while building it: the first snapshot flattened app/ to the snapshot root so Vite could not resolve the operator-job provider import (layout now keeps web/app); verifyCandidate skipped the manifest through a wrong relative-path test; freezing failed when a target's parent directory did not exist (destination parent is created first); and an explicit --candidate run still labelled itself vite-dev-source until servedBy keyed off the frozen root.",
"Marker tracking [this batch, implemented but NOT verified — no headed or e2e case has run]: web_engine_blend_main_track_movie_clip_markers mirrors CLIP_OT_track_markers. It counts selected/unlocked/enabled tracks, ensures markers, honours frames_limit, remaps the scene frame range with BKE_movieclip_remap_scene_to_clip_frame, then runs BKE_autotrack_context_new/start/step/sync/finish/free for a single frame or the full sequence in either direction. Errors CLIP_TRACK_NO_SELECTED / CLIP_TRACK_RANGE_EMPTY; result {dataId, frame, lastFrame, tracks, revision}, undo label 'Track Clip Markers'.",
"Camera solve [this batch, implemented but NOT verified]: web_engine_blend_main_solve_movie_clip_camera mirrors CLIP_OT_solve_camera: BKE_tracking_reconstruction_check precondition, MovieClipUser at clip->start_frame, clip size, BKE_tracking_reconstruction_context_new/solve/finish, error text from BKE_tracking_reconstruction_error_message_get, reprojectionError = object->reconstruction.error, solvedFrames = object->reconstruction.camnr (cameras is MovieReconstructedCamera*, not a ListBase). On success it binds scene->clip (id_us_min/id_us_plus) and runs BKE_tracking_camera_to_blender + DEG_id_tag_update for an ID_CA camera, matching desktop finish. Undo label 'Solve Clip Camera'.",
"The N-022-C gate is closed for the WASM engine: WITH_LIBMV ON, WITH_LIBMV_SCHUR_SPECIALIZATIONS OFF. Ceres is imported as Ceres::ceres STATIC IMPORTED instead of find_package(Ceres) so CeresConfig's find_dependency(Threads) cannot pull pthread into the single-threaded engine. gflags, glog and Eigen come from the bundled extern/ sources; Eigen is extern/eigen3 3.4.0.",
@@ -33,17 +34,18 @@
"Undistortion, track colour copy and plane auto-keying [this pass, verified by clip-undistort, clip-track-panel and clip-plane-complete in tests/golden/CLIP-HEADED-20261204-124651]: clipFrame takes an undistort flag and sets MCLIP_PROXY_RENDER_UNDISTORT only when the read is full-frame, mirroring need_undistortion_postprocess, so BKE_movieclip_get_ibuf applies get_undistorted_ibuf -> BKE_tracking_distortion_exec on the fly; proxy reads keep the prebuilt proxy images. The reader exports every distortion model's coefficients (k1..k3, division_k1/2, nuke_k1/2, brown_k1..k4) and the protocol validates them; the Camera Data panel edits focal, sensor width, model and the active model's coefficients and forces a re-decode after a write. clip.track_copy_color has its panel button with CLIP_OT_track_copy_color semantics (the active track's custom colour copied onto every other view-selected track, cleared first). Plane PLANE_TRACK_AUTOKEY is exported as useAutoKeying, editable in the plane panel, and with auto-keying off a corner drag re-derives the plane through BKE_tracking_track_plane_from_existing_motion instead of keying. The headed case renders distorted-grid.png through undistortion-test.blend and asserts a border-concentrated pixel difference (border > 4x centre) plus an identity check with zeroed coefficients; clip-track-panel asserts the copy button propagates #0000ff to the second track; clip-plane-complete asserts use_auto_keying round-trips true then false. Build and runtime sync were incremental (cmake --build build_web_blender6 --target web_engine -j8, node tools/web/sync-web-engine-runtime.mjs)."
],
"remaining": [
"User hands-on acceptance of the Clip workflow is still NOT_CLAIMED. The automated headed suite passes 28/28 against the dev candidate, but per the iron rules a dev-server result does not replace release acceptance on a frozen candidate.",
"The acceptance candidate was /home/mes123456/workinf_Blender_Wasm/web/dist served by the harness, not a frozen release candidate; a frozen-candidate rerun with --candidate remains the release-grade step.",
"User hands-on acceptance of the Clip workflow is still NOT_CLAIMED. The automated headed suite passes 28/28 on both the dev candidate and a sha256-manifest-bound frozen candidate; per the iron rules only the user's own use-stage acceptance can close this.",
"Fixture coverage limits: clip-mask-edit synthesizes its mask fixture through embedded bpy because no shipped blend carries a mask.",
"Stabilization pixel coverage is bounded to the tripod-motion fixture at one frame (24) with unmuted markers; rotation/autoscale combinations are asserted only through the returned matrix in clip-stab, not against pixels.",
"Graph is coordinate-faithful but not drawing-identical: knots are SVG circles r=3 rather than desktop's 8-segment wire circles, the ERROR curve has no knots (as on desktop), and the middle-drag pan is implemented but not asserted; clip-graph asserts the data-space mapping to 0.6 px, the wheel zoom and the 全部 reset, not a pixel diff.",
"Stabilization is hardened where desktop is degenerate: a single configured track yields NaN in desktop BKE_tracking_stabilization_data_get while the web engine returns CLIP_STABILIZATION_NONFINITE (INVALID_ARGUMENT) so a misconfigured clip fails recoverably; clip-stab-composite therefore configures two translation tracks and three rotation tracks.",
"These remaining limits are annotated in docs/web/KNOWN_LIMITATIONS.md; the CLIP row and MOD-CLIP-01 in MODULE-COVERAGE.md point at the 26-case suite and the latest receipt."
"These remaining limits are annotated in docs/web/KNOWN_LIMITATIONS.md; the CLIP row and MOD-CLIP-01 in MODULE-COVERAGE.md point at the 26-case suite and the frozen-candidate receipt."
],
"nextAction": "User use-stage verification: open real clips in the browser product entry, exercise undistortion (Render Undistorted), camera data editing, tracking/solve/plane/stabilization/source/dopesheet/graph/mask flows hands-on, and report any visible gap. For a release-grade rerun on a frozen candidate: DISPLAY=:1 node tools/web/run-clip-headed.mjs --candidate <frozen candidate>, then node tools/web/check-clip-headed.mjs --dir <new receipt dir>; archive under tests/golden/CLIP-HEADED-* without overwriting earlier receipts and keep acceptance NOT_CLAIMED until the user signs off.",
"nextAction": "User use-stage verification: open real clips in the browser product entry, exercise undistortion (Render Undistorted), camera data editing, tracking/solve/plane/stabilization/source/dopesheet/graph/mask flows hands-on, and report any visible gap. For a fresh release-grade run: DISPLAY=:1 node tools/web/run-clip-headed.mjs --freeze (new snapshot) or --candidate /home/mes123456/workinf_Blender_Wasm/web/.frozen/CLIP-<stamp>-<wasm8> (existing, manifest-verified), then node tools/web/check-clip-headed.mjs --dir <new receipt dir>; archive under tests/golden/CLIP-HEADED-* without overwriting earlier receipts and keep acceptance NOT_CLAIMED until the user signs off. Merging web/mesh-decimate into main remains unexecuted and waits for the user's explicit go.",
"evidence": [
"tests/golden/CLIP-HEADED-20261204-124651/report.json (26-case suite, 28/28 PASS, candidate web/dist, wasm sha256 3c81eb064d8e6a9b59fb1e84aa1ea2faa2d6059ea0f50f4be808bc6399f36598)",
"node tools/web/check-clip-headed.mjs --dir tests/golden/CLIP-HEADED-20261204-155221 output: status PASS, acceptance NOT_CLAIMED, 26 expected case ids all present, 31 artifacts, frozen manifest re-verified against disk",
"tests/golden/CLIP-HEADED-20261204-155221/report.json (full suite on the frozen candidate /home/mes123456/workinf_Blender_Wasm/web/.frozen/CLIP-20261204-154337-3c81eb06/web: 28/28 PASS, 4.1m, servedBy vite-dev-frozen, candidate manifest sha256 695b50c0faaf2bb27bafe0c5a4fe8a44583db3c58dac03728bf2311b0630d8ac over 3997 files, wasm sha256 3c81eb064d8e6a9b59fb1e84aa1ea2faa2d6059ea0f50f4be808bc6399f36598)",
"tests/golden/CLIP-HEADED-20261204-124651/report.json (26-case dev-candidate suite, 28/28 PASS; its recorded candidate field said web/dist although the run served web/app through the dev server — the mislabel this pass closed; wasm sha256 3c81eb064d8e6a9b59fb1e84aa1ea2faa2d6059ea0f50f4be808bc6399f36598)",
"node tools/web/check-clip-headed.mjs --dir tests/golden/CLIP-HEADED-20261204-124651 output: status PASS, acceptance NOT_CLAIMED, 26 expected case ids all present, 31 artifacts",
"tests/golden/CLIP-HEADED-20261204-124303/report.json (focused rerun of clip-track-panel and clip-undistort after the test fixes: 2/2 PASS)",
"tests/golden/CLIP-HEADED-20261204-084242/report.json (merge-gate rerun, 27/27 PASS, candidate web/dist, same wasm sha256 3dfc96fe56df6a65a766820e3896204dce0f5d42c84526d319471a4426aae385)",

View File

@@ -57,6 +57,20 @@ const release = report.release ?? {};
if (typeof release.wasmSha256 !== "string" || !/^[0-9a-f]{64}$/.test(release.wasmSha256)) errors.push("release.wasmSha256 is missing or not a sha256");
if (release.engineHasClipFrame !== true) errors.push("release.engineHasClipFrame is not true");
if (release.bundleHasClipEditor !== true) errors.push("release.bundleHasClipEditor is not true");
/* A frozen run binds the served tree by manifest; re-check that binding. */
if (typeof release.candidateManifestSha256 === "string") {
const manifestFile = path.join(String(release.frozenAt ?? ""), "manifest.json");
if (!fs.existsSync(manifestFile)) errors.push(`frozen candidate manifest is missing on disk: ${manifestFile}`);
else if (sha256(manifestFile) !== release.candidateManifestSha256) errors.push("frozen candidate manifest sha256 does not match the receipt");
else {
try {
const frozen = JSON.parse(fs.readFileSync(manifestFile, "utf8"));
if (!Array.isArray(frozen.files) || frozen.files.length !== release.candidateFiles) errors.push(`frozen candidate file count ${Array.isArray(frozen.files) ? frozen.files.length : "?"} does not match release.candidateFiles ${release.candidateFiles}`);
if (frozen.wasmSha256 !== release.wasmSha256) errors.push("frozen candidate wasm sha256 does not match release.wasmSha256");
}
catch (error) { errors.push(`frozen candidate manifest is not valid JSON: ${error.message}`); }
}
}
const fixtures = report.fixtures ?? {};
const blend = fixtures.blend ?? {};

View File

@@ -56,7 +56,10 @@ const KNOWN_CASES = [
function usage() {
return `usage: node tools/web/run-clip-headed.mjs [options]
--candidate DIR app directory to serve (default: web/dist; env WBV2_PRODUCTION_CANDIDATE)
--candidate DIR frozen snapshot created by --freeze; verified against its manifest.json
before the run (env WBV2_PRODUCTION_CANDIDATE)
--freeze snapshot the served sources, dev config and engine into
web/.frozen/CLIP-<YYYYMMDD>-<HHMMSS>-<wasm8> and run against that snapshot
--port N HTTP port (default: env WEB_TEST_PORT or 5314)
--grep PATTERN Playwright title filter (e.g. "clip-")
--workers N Playwright workers (default 1; >1 warns for headed focus/GPU)
@@ -79,19 +82,23 @@ function parseArgs(argv) {
out: process.env.CLIP_REPORT_DIR ?? "",
jsonOnly: false,
allowStale: false,
freeze: false,
candidateExplicit: Boolean(process.env.WBV2_PRODUCTION_CANDIDATE),
help: false,
};
const take = (name) => { const index = argv.indexOf(`--${name}`); return index >= 0 && argv[index + 1] ? argv[index + 1] : null; };
const known = new Set(["--candidate", "--port", "--grep", "--workers", "--headed", "--headless", "--out", "--json-only", "--allow-stale-candidate", "--help", "-h"]);
const known = new Set(["--candidate", "--freeze", "--port", "--grep", "--workers", "--headed", "--headless", "--out", "--json-only", "--allow-stale-candidate", "--help", "-h"]);
for (let index = 0; index < argv.length; index++) {
const token = argv[index];
if (!known.has(token)) return { error: `unknown argument: ${token}` };
if (token.startsWith("--") && !["--headed", "--headless", "--json-only", "--allow-stale-candidate", "--help", "-h"].includes(token)) {
if (token.startsWith("--") && !["--freeze", "--headed", "--headless", "--json-only", "--allow-stale-candidate", "--help", "-h"].includes(token)) {
if (argv[index + 1] === undefined) return { error: `${token} requires a value` };
index++;
}
}
if (take("candidate")) options.candidate = path.resolve(take("candidate"));
if (take("candidate")) { options.candidate = path.resolve(take("candidate")); options.candidateExplicit = true; }
options.freeze = argv.includes("--freeze");
if (options.freeze && options.candidateExplicit) return { error: "--freeze and --candidate are mutually exclusive: freeze, then rerun with --candidate <that snapshot>" };
if (take("port")) options.port = Number(take("port"));
if (take("grep")) options.grep = take("grep");
if (take("workers")) options.workers = Number(take("workers"));
@@ -125,6 +132,80 @@ const hasHardFailure = () => preflight.some((item) => item.ok === false && item.
const sha256File = (file) => crypto.createHash("sha256").update(fs.readFileSync(file)).digest("hex");
const readHash = (file) => (file && fs.existsSync(file) ? sha256File(file) : null);
/* The Clip specs import `/src/...` modules from the dev server, so the served
* candidate is the source tree, not a dist bundle. A frozen snapshot copies the
* exact tree the run serves and binds every file by sha256; --candidate only
* accepts such a snapshot. */
const FROZEN_ROOT = path.join(WEB_DIR, ".frozen");
/* The snapshot keeps the repository depth: web/app/vite.config.ts imports
* ../../tools/web and reads ../../docs/web, so app/ must stay two levels down. */
const FREEZE_SOURCES = [
["web/app", "web/app"],
["web/protocol", "web/protocol"],
["tools/web", "tools/web"],
["docs/web/deployment-contract.json", "docs/web/deployment-contract.json"],
];
function listFiles(root) {
const files = [];
const walk = (dir) => {
for (const entry of fs.readdirSync(dir, { withFileTypes: true }).sort((a, b) => a.name.localeCompare(b.name))) {
const full = path.join(dir, entry.name);
if (entry.isDirectory()) walk(full);
else if (entry.isFile()) files.push(full);
}
};
walk(root);
return files;
}
function freezeCandidate() {
const wasm8 = (readHash(path.join(REPO_ROOT, "web/app/public/vendor/blender/web_engine.wasm")) ?? "").slice(0, 8) || "nowasm";
const root = path.join(FROZEN_ROOT, `CLIP-${stamp()}-${clock()}-${wasm8}`);
fs.mkdirSync(root, { recursive: true });
for (const [source, target] of FREEZE_SOURCES) {
const destination = path.join(root, target);
fs.mkdirSync(path.dirname(destination), { recursive: true });
const result = spawnSync("cp", ["-al", path.join(REPO_ROOT, source), destination], { encoding: "utf8" });
if (result.error || result.status !== 0) throw new Error(`cp -al ${source}: ${result.error?.message ?? result.stderr}`);
}
/* Hardlinks keep the snapshot cheap; verification below turns any later
* in-place change of a source file into a refusal instead of silent drift. */
const files = listFiles(root).map((file) => ({ path: path.relative(root, file), bytes: fs.statSync(file).size, sha256: sha256File(file) }));
const head = spawnSync("git", ["rev-parse", "HEAD"], { cwd: REPO_ROOT, encoding: "utf8" });
const manifest = {
schemaVersion: 1,
createdAt: new Date().toISOString(),
sourceCommit: head.status === 0 ? head.stdout.trim() : null,
wasmSha256: readHash(path.join(root, "web/app/public/vendor/blender/web_engine.wasm")),
files,
};
fs.writeFileSync(path.join(root, "manifest.json"), JSON.stringify(manifest, null, 2));
return { root, files: files.length, manifestSha256: sha256File(path.join(root, "manifest.json")) };
}
function verifyCandidate(root) {
const manifestFile = path.join(root, "manifest.json");
if (!manifestFile || !fs.existsSync(path.join(root, "web/app/vite.config.ts"))) return { ok: false, detail: `${root} is not a frozen candidate (expected manifest.json and web/app/vite.config.ts)` };
let manifest;
try { manifest = JSON.parse(fs.readFileSync(manifestFile, "utf8")); }
catch (error) { return { ok: false, detail: `manifest.json is not valid JSON: ${error.message}` }; }
if (!Array.isArray(manifest.files)) return { ok: false, detail: "manifest.json has no files list" };
const expected = new Map(manifest.files.map((file) => [file.path, file]));
const present = new Set();
for (const file of listFiles(root)) {
const relative = path.relative(root, file);
if (relative === "manifest.json") continue;
present.add(relative);
const entry = expected.get(relative);
if (!entry) return { ok: false, detail: `unlisted file ${relative}` };
if (fs.statSync(file).size !== entry.bytes) return { ok: false, detail: `${relative} size changed` };
if (sha256File(file) !== entry.sha256) return { ok: false, detail: `${relative} sha256 changed` };
}
for (const relative of expected.keys()) if (!present.has(relative)) return { ok: false, detail: `missing ${relative}` };
return { ok: true, files: manifest.files.length, manifestSha256: sha256File(manifestFile) };
}
function which(command) {
const result = spawnSync("which", [command], { encoding: "utf8" });
return result.status === 0 ? result.stdout.trim() : null;
@@ -240,17 +321,43 @@ function writeBlocked(detail, extra = {}) {
record("chrome", Boolean(chromePath && chromeVersion), { chromePath: chromePath ?? null, version: chromeVersion });
record("playwright", fs.existsSync(path.join(WEB_DIR, "node_modules/@playwright/test/package.json")), path.join(WEB_DIR, "node_modules/@playwright/test/package.json"));
/* Freeze or verify the candidate before anything is served. Without either
* flag the run serves the live source tree, and the receipt says so. */
let frozen = null;
if (options.freeze) {
try { frozen = freezeCandidate(); }
catch (error) { writeBlocked(`freeze failed: ${error.message}`); process.exit(2); }
options.candidate = frozen.root;
options.candidateExplicit = true;
record("candidate frozen", true, { root: frozen.root, files: frozen.files, manifestSha256: frozen.manifestSha256 });
}
let candidateManifestSha256 = null;
let candidateFiles = null;
if (options.candidateExplicit) {
const verified = verifyCandidate(options.candidate);
record("candidate manifest", verified.ok, verified.ok ? { files: verified.files, manifestSha256: verified.manifestSha256 } : verified.detail);
if (!verified.ok) {
writeBlocked(`candidate verification failed: ${verified.detail}`, { release: { servedRoot: options.candidate } });
process.exit(2);
}
candidateManifestSha256 = verified.manifestSha256;
candidateFiles = verified.files;
}
const frozenRoot = options.candidateExplicit ? options.candidate : null;
const servedRoot = frozenRoot ? path.join(frozenRoot, "web") : WEB_DIR;
options.candidate = servedRoot;
/* The Clip specs instantiate WebEngineClient directly, so the suite runs
* against the Vite dev server (like tracking-mask-production) and binds the
* synced native runtime plus the editor source instead of a built bundle. */
const syncedWasm = path.join(REPO_ROOT, "web/app/public/vendor/blender/web_engine.wasm");
const manifest = path.join(REPO_ROOT, "web/app/public/wasm-module-manifest.json");
const wasm = syncedWasm;
* served source tree plus the synced native runtime instead of a built
* bundle; a frozen snapshot is what makes that tree replayable. */
const wasm = path.join(servedRoot, "app/public/vendor/blender/web_engine.wasm");
const manifest = path.join(servedRoot, "app/public/wasm-module-manifest.json");
const wasmSha = readHash(fs.existsSync(wasm) ? wasm : null);
record("synced engine", Boolean(wasmSha), wasm);
record("synced module manifest", fs.existsSync(manifest), manifest);
record("served engine", Boolean(wasmSha), wasm);
record("served module manifest", fs.existsSync(manifest), manifest);
const engineFresh = fs.existsSync(wasm) ? await fileContains(wasm, "clipFrame") : false;
const clipSource = path.join(REPO_ROOT, "web/app/src/app/ClipEditorSurface.tsx");
const clipSource = path.join(servedRoot, "app/src/app/ClipEditorSurface.tsx");
const uiFresh = fs.existsSync(clipSource) && fs.readFileSync(clipSource, "utf8").includes("影片剪辑");
record("engine has clipFrame", engineFresh, engineFresh ? true : "rebuild: cmake --build build_web_blender6 --target web_engine", !options.allowStale);
record("Clip editor source present", uiFresh, clipSource, !options.allowStale);
@@ -267,7 +374,18 @@ function writeBlocked(detail, extra = {}) {
record("workers", options.workers === 1, options.workers === 1 ? 1 : "headed runs default to 1 worker; more steal focus and GPU memory", false);
const fixtures = { blend: { path: blend, sha256: blendSha }, footage: { path: footage, sha256: footageSha } };
const release = { servedBy: "vite-dev", moduleManifestSha256: readHash(fs.existsSync(manifest) ? manifest : null), wasmSha256: wasmSha, wasmBytes: fs.existsSync(wasm) ? fs.statSync(wasm).size : null, engineHasClipFrame: engineFresh, bundleHasClipEditor: uiFresh };
const release = {
servedBy: frozenRoot ? "vite-dev-frozen" : "vite-dev-source",
servedRoot,
frozenAt: frozenRoot,
candidateManifestSha256,
candidateFiles,
moduleManifestSha256: readHash(fs.existsSync(manifest) ? manifest : null),
wasmSha256: wasmSha,
wasmBytes: fs.existsSync(wasm) ? fs.statSync(wasm).size : null,
engineHasClipFrame: engineFresh,
bundleHasClipEditor: uiFresh,
};
if (hasHardFailure()) {
const failed = preflight.filter((item) => item.ok === false && item.hard).map((item) => item.name).join(", ");
@@ -276,7 +394,7 @@ function writeBlocked(detail, extra = {}) {
}
const jsonPath = path.join(reportDir, ".playwright-results.json");
const env = { ...process.env, GPU_MODE: options.headed ? "hardware" : "swiftshader", WEB_TEST_PORT: String(options.port), PLAYWRIGHT_JSON_OUTPUT_FILE: jsonPath, CLIP_BLEND_FIXTURE: blend, CLIP_FOOTAGE_FIXTURE: footage };
const env = { ...process.env, GPU_MODE: options.headed ? "hardware" : "swiftshader", WEB_TEST_PORT: String(options.port), PLAYWRIGHT_JSON_OUTPUT_FILE: jsonPath, CLIP_BLEND_FIXTURE: blend, CLIP_FOOTAGE_FIXTURE: footage, ...(frozenRoot ? { CLIP_SERVED_ROOT: servedRoot } : {}) };
if (options.headed) delete env.WEB_TEST_HEADLESS; else env.WEB_TEST_HEADLESS = "1";
console.log(`有头运行中(${options.headed ? "chromium-headed" : "headless-swiftshader"})· candidate ${options.candidate} · 请勿操作桌面`);
const args = ["playwright", "test", "--config", CONFIG, `--workers=${options.workers}`, ...(options.grep ? ["-g", options.grep] : [])];

View File

@@ -1,14 +1,22 @@
import path from "node:path";
import { fileURLToPath } from "node:url";
import base from './playwright.config';
/* Clip suite: MovieClip engine read, frame decode, missing source and
* save/reopen, demonstrated on the upstream tripod-motion tracking fixture.
* The specs instantiate WebEngineClient directly, so they run against the Vite
* dev server (same convention as tracking-mask-production) rather than a built
* bundle where `/src/...` module URLs do not exist. */
* bundle where `/src/...` module URLs do not exist. CLIP_SERVED_ROOT points the
* server at a frozen snapshot (run-clip-headed.mjs --freeze); without it the
* live web/app tree is served. */
const port = Number(process.env.WEB_TEST_PORT ?? 5314);
const jsonOutput = process.env.PLAYWRIGHT_JSON_OUTPUT_FILE;
const servedRoot = process.env.CLIP_SERVED_ROOT;
const viteBin = path.join(path.dirname(fileURLToPath(import.meta.url)), "node_modules/vite/bin/vite.js");
export default { ...base, testMatch: ['clip-*-production.spec.ts'], timeout: 420_000,
...(jsonOutput ? { reporter: [...(Array.isArray(base.reporter) ? base.reporter : []), ['json', { outputFile: jsonOutput }] as const] } : {}),
use: { ...base.use, baseURL: `http://127.0.0.1:${port}`, viewport: { width: 1440, height: 900 },
headless: process.env.WEB_TEST_HEADLESS === '1' ? true : base.use?.headless },
webServer: { command: `npm run dev -- --host 127.0.0.1 --port ${port} --strictPort`, url: `http://127.0.0.1:${port}`, reuseExistingServer: false, timeout: 30_000 },
webServer: servedRoot
? { command: `node "${viteBin}" --config app/vite.config.ts --host 127.0.0.1 --port ${port} --strictPort`, cwd: servedRoot, url: `http://127.0.0.1:${port}`, reuseExistingServer: false, timeout: 30_000 }
: { command: `npm run dev -- --host 127.0.0.1 --port ${port} --strictPort`, url: `http://127.0.0.1:${port}`, reuseExistingServer: false, timeout: 30_000 },
};