Log inGet started
World

Builtin Library

Branchmain
Branchesmainpublish
Commit15ce14a4c1

README.md

Resolve recorded scene edits

Resolve an operation returned by reviewRecorded. Pass its review receipt and operation path, then either a whole-operation choice or exact field choices. recorded keeps proposed values; accepted keeps the reviewed accepted values. Unselected fields in a field-level resolution retain their proposed changes. Remaining conflicts prevent the transaction.

local result=tools.use("sceneAuthoring","resolveRecorded",{
    review=report.review,
    operation=report.operations[1].path,
    fields={{entity=entityId,path={"name"},choice="accepted"}},
})

Pass through, the path of a later operation of the same editing session, to resolve the whole run from operation through it as one transaction: each field the run changes lands as its net change (its last value, over the value its last unbroken chain of edits started from), the choice applies to those net changes, and every operation of the run retires together. A run of moves that collided with another participant's edit settles this way in one call.

local session=report.operations[1].entry.session
local last=report.operations[1].path
for _,operation in ipairs(report.operations) do
    if operation.entry.session==session then last=operation.path end
end
tools.use("sceneAuthoring","resolveRecorded",{review=report.review,operation=report.operations[1].path,through=last,choice="accepted"})

An unconfirmed outcome returns the transaction identity and scope for inspection with SourceOperations; it must be inspected before treating the edit as applied or retrying it. A committed result reports local revision visibility separately, including a visibility error if the active world or branch changed.

A stale receipt is refused. Successful resolution atomically updates the composition, acknowledges the operation and retires its journal file. The response names the source transaction for recovery and reports local revision visibility separately.