Commit Graph

4 Commits

Author SHA1 Message Date
mes123456
a42073c09e fix(web): compare the NLA stack base revision
setNLAStack declared an optional baseRevision that the Worker never
compared, so a stale tab replaced the whole NLA stack without a
conflict. It now compares a supplied baseRevision against the current
SceneIR and reports REVISION_CONFLICT when it is stale or not a safe
integer; an absent revision stays allowed under the declared optional
policy. This leaves no command in the contract's unchecked set.

The Chromium probe confirms a stale submission is rejected, an absent one
and a fresh one are accepted, and the track count survives.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-02 21:17:21 +08:00
mes123456
192b13901d 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>
2026-12-02 20:12:37 +08:00
mes123456
09f23163c7 fix(web): reject stale AOV and lightgroup revision submissions
setSceneViewLayerAOVs and setSceneViewLayerLightgroups declared an
optional baseRevision that the Worker never compared, so a stale tab
overwrote AOV and lightgroup edits without a conflict. Both now compare
a supplied baseRevision against the current SceneIR and report
REVISION_CONFLICT when it is stale or not a safe integer; an absent
revision stays allowed, which matches the optional policy they declare.

The revision contract moves the pair out of the unchecked set, and the
Chromium probe confirms a stale submission leaves the rows untouched.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-02 19:01:17 +08:00
mes123456
7bc7076c96 feat(web): declare the engine command revision contract
Add an exhaustive protocol-level revision contract for all 174 engine edit
commands, with the policy, revision field, enforcement point and error code
per command. It makes the three inline Worker semantics (required, optional,
folded) explicit, and discloses the four commands that carry a revision field
without rejecting a stale value.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-02 13:31:58 +08:00