fix(web): reject stale sequencer transition timelines

setSequencerTransitions parsed the submitted timeline without comparing
timeline.revision, so a stale submission replaced the sequencer timeline
instead of conflicting. It now compares timeline.revision against the
current SceneIR and reports REVISION_CONFLICT, which is the check
setSequencerStrips already makes. The revision contract moves the command
out of the unchecked set, and the authoring probe takes its timeline from
a snapshot read after its edits and records a stale submission next to an
accepted one.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
mes123456
2026-12-02 20:12:37 +08:00
parent d3260cb0cb
commit 192b13901d
7 changed files with 17 additions and 10 deletions

View File

@@ -206,7 +206,7 @@ export const WEB_ENGINE_REVISION_CONTRACTS = {
setNLAProperty: { policy: "OPTIONAL", field: "baseRevision", enforcement: "WORKER_PREFLIGHT", errorCode: "REVISION_CONFLICT" },
setSequencerStrips: { policy: "REQUIRED", field: "timeline.revision", enforcement: "WORKER_PREFLIGHT", errorCode: "REVISION_CONFLICT" },
setSequencerStripModifiers: NONE,
setSequencerTransitions: { policy: "REQUIRED", field: "timeline.revision", enforcement: "UNCHECKED", errorCode: "REVISION_CONFLICT", note: "The Worker parses the timeline without comparing its revision." },
setSequencerTransitions: { policy: "REQUIRED", field: "timeline.revision", enforcement: "WORKER_PREFLIGHT", errorCode: "REVISION_CONFLICT" },
setSequencerColorBalance: NONE,
setCompositorNodeGraph: NONE,
setTrackingMarkers: NONE,