Commit Graph

5 Commits

Author SHA1 Message Date
mes123456
aab59060f1 fix(web): write viewport element picks through a native setMeshElementSelection command
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
Replace the per-pick executeEmbeddedPython selection write with a dedicated
native command: protocol type plus capability/revision registration, and a
BMesh write that sets BM_ELEM_SELECT on the picked element kind only, recounts
the selection counters and syncs through EDBM_update_extern.

Verified headed: clicking a face in edit mode selects exactly that face
(verts 8 / edges 12 / faces 6 -> verts 8 / edges 12 / faces 1) with no
native error. Acceptance remains NOT_CLAIMED.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-07 00:00:48 +08:00
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