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>
This commit is contained in:
@@ -85,14 +85,11 @@ boundary; the legacy `parity-ledger.json` is historical planning data.
|
||||
- Revision-conflict handling is per command in the engine Worker, not one shared protocol contract:
|
||||
`moveNLAStrip`, `editEditorContext`, `editShaderNode`, `setSequencerStrips`,
|
||||
`setSculptMeshAttributes` and the requested `baseRevision` of the modifier, constraint,
|
||||
curve-topology, Grease Pencil and NLA property commands are compared against `currentSnapshot`
|
||||
inline, and so are `setSceneViewLayerAOVs` and `setSceneViewLayerLightgroups` when they carry one.
|
||||
`setSequencerTransitions` compares `timeline.revision` against `currentSnapshot` the way
|
||||
`setSequencerStrips` does. `setNLAStack` still carries a revision field but does not reject a stale
|
||||
value, and `editShaderNode` reports staleness as `INVALID_ARGUMENT`. The shared contract and its
|
||||
tests live in `web/protocol/web-engine-revisions.ts` and
|
||||
`web/tests/unit/web-engine-revisions.test.mjs`; Worker adoption for the remaining command is a
|
||||
separate infrastructure batch.
|
||||
curve-topology, Grease Pencil, NLA property, AOV, lightgroup, NLA stack and sequencer transition
|
||||
commands are compared against `currentSnapshot` inline. `editShaderNode` reports staleness as
|
||||
`INVALID_ARGUMENT`; every other checked command reports `REVISION_CONFLICT`. The shared contract and
|
||||
its tests live in `web/protocol/web-engine-revisions.ts` and
|
||||
`web/tests/unit/web-engine-revisions.test.mjs`.
|
||||
- Keyframe evidence stays PARTIAL: the Outliner keyframe case `outliner-keyframe-keys-web` proves the
|
||||
native keyframing operators ran and an action datablock appeared. The Outliner tree does not expose
|
||||
fcurve or keyframe counts, so no count assertion is made. No new engine evidence is claimed.
|
||||
|
||||
@@ -64,7 +64,7 @@ Rules:
|
||||
| MOD-OUTLINER-02 | The Rendering workspace appeared to render an empty Outliner. It has no native Outliner area to fill: desktop's Rendering screen holds Properties, Dope Sheet and Image Editor, the engine exports Outliner rows only for the active workspace, and the web layout drew the panel unconditionally. The panel now follows the native workspace areas, so Rendering draws no Outliner and other workspaces keep theirs. | None; object picking for a render starts from a workspace that has an Outliner, as on desktop. | `docs/web/KNOWN_LIMITATIONS.md` Rendering workspace bullet; `web/app/src/app/App.tsx` outliner area; probe snapshot of all eleven workspaces before and after switching to Rendering (panel count 1 → 0) | RESIDUAL | P2 | `RESOLVED` |
|
||||
| MOD-PROPERTIES-01 | The armature panel case could not run because its first step selects the armature row. Same cause as MOD-OUTLINER-01. | None after the fix. | `web/tests/e2e/armature-editor-coverage-ui-production.spec.ts` | RESIDUAL | P1 | `RESOLVED` |
|
||||
| MOD-PROPERTIES-02 | `setSceneViewLayerAOVs` and `setSceneViewLayerLightgroups` carried a revision field that the Worker never compared, so a stale submission was accepted and two tabs could overwrite each other's AOV and lightgroup edits. Both now compare a supplied `baseRevision` against the current SceneIR revision and reject staleness with `REVISION_CONFLICT`; an absent revision stays allowed, matching the declared `OPTIONAL` policy. | None after the fix; a stale tab now gets `REVISION_CONFLICT` instead of silently winning. | `web/protocol/web-engine-revisions.ts`; `web/tests/unit/web-engine-revisions.test.mjs`; Chromium probe: fresh revision applied, stale and non-integer rejected without changing the AOV or lightgroup rows | RESIDUAL | P2 | `RESOLVED` |
|
||||
| MOD-NLA-01 | `setNLAStack` carries a revision field that the Worker never compares. | A stale NLA stack submission is accepted instead of rejected. | `web/protocol/web-engine-revisions.ts` | RESIDUAL | P3 | `OPEN` |
|
||||
| MOD-NLA-01 | `setNLAStack` carried a revision field that the Worker never compared, so a stale submission was accepted. It now compares a supplied `baseRevision` against the current SceneIR and reports `REVISION_CONFLICT`; an absent revision stays allowed under the declared `OPTIONAL` policy. | None after the fix; a stale submission now conflicts instead of replacing the NLA stack. | `web/protocol/web-engine-revisions.ts`; `web/tests/unit/web-engine-revisions.test.mjs`; `web/tests/e2e/wbv2-nla-stack-production.spec.ts`; Chromium probe: stale revision rejected, absent and fresh accepted, track count intact | RESIDUAL | P3 | `RESOLVED` |
|
||||
| MOD-SEQUENCER-01 | `setSequencerTransitions` parsed the timeline without comparing `timeline.revision`, so a stale transition edit was accepted. It now compares `timeline.revision` against the current SceneIR and rejects staleness with `REVISION_CONFLICT`, the same check `setSequencerStrips` makes. | None after the fix; a stale submission now fails instead of overwriting the sequencer timeline. | `web/protocol/web-engine-revisions.ts`; `web/tests/unit/web-engine-revisions.test.mjs`; Chromium probe on `sequencer_scene.blend`: stale timeline rejected, current snapshot's timeline applied | RESIDUAL | P2 | `RESOLVED` |
|
||||
| MOD-SPREADSHEET-01 | The Spreadsheet browses, filters and exports but offers no edit path. | Dataset editing stays in the desktop editor. | `web/tests/e2e/web-spreadsheet-readonly.spec.ts` | RESIDUAL | P3 | `PARTIAL` |
|
||||
| MOD-ANIM-01 | Keyframe evidence stops at "an action datablock appeared": the Outliner tree exposes no fcurve or keyframe counts, so no count assertion is made. | Reviewers cannot confirm key counts from the tree. | `docs/web/KNOWN_LIMITATIONS.md` keyframe bullet; `outliner-keyframe-keys-web` | RESIDUAL | P3 | `FROZEN` |
|
||||
|
||||
Reference in New Issue
Block a user