Commit Graph

2 Commits

Author SHA1 Message Date
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