Live collaboration core: one undo step per agent action, the debug door closed #13

Merged
eureka merged 14 commits from nibu/live-1-debug-door into main 2026-11-27 19:57:08 +00:00
Owner

Live collaboration, phase one core: every agent action is one attributed undo step (act-then-undo), Edit Mode refuses object-level intents, write-once receipts, malformed ids refused, msgpack bundled as a Blender extension wheel (Windows for now), and the debug-mirror JSON door removed so brokkr-ctl through the store is the only way in.

Specs brokkr-live:cut_spec:cut-live-2-agent-turn.r1 and cut-live-1-debug-door.r1; target brokkr-live:target:r3. Soul verdicts live-2 s1-s3 and live-1 s1 hold (no Blocker/High/Medium); Lows deferred to brokkr-live:follow_up:live-1-lows-and-wheel. Proved end to end in stock Blender 5.3: brokkr-ctl send, drain, receipt, wait; a JSON in the old debug root stays inert.

🤖 Generated with Claude Code

Live collaboration, phase one core: every agent action is one attributed undo step (act-then-undo), Edit Mode refuses object-level intents, write-once receipts, malformed ids refused, msgpack bundled as a Blender extension wheel (Windows for now), and the debug-mirror JSON door removed so brokkr-ctl through the store is the only way in. Specs brokkr-live:cut_spec:cut-live-2-agent-turn.r1 and cut-live-1-debug-door.r1; target brokkr-live:target:r3. Soul verdicts live-2 s1-s3 and live-1 s1 hold (no Blocker/High/Medium); Lows deferred to brokkr-live:follow_up:live-1-lows-and-wheel. Proved end to end in stock Blender 5.3: brokkr-ctl send, drain, receipt, wait; a JSON in the old debug root stays inert. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Target document for the brokkr-live campaign: the agent works in the same
live Blender scene the operator is looking at. Records the Blender 5.3
timer-undo and viewport-capture probes the invariants stand on, and the
identity, lifecycle and authority table for every kind the layer adds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Records when depsgraph updates from an agent edit in a timer arrive and which
ids they name, for the human-edit detection fork (Q3).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Takes in the operator's 2026-11-27 rulings (no free-form Python, act then
undo, last writer wins in the scene, brokkr-ctl blender built here) and adds
phase two: scene collections as an authoring surface over a ship's .cc,
opened at known record versions and pushed through AetherDb with a dry-run
default and stale-version refusal. Records why neither variants' deltas nor
CultNet carry the push today.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every intent is admitted (commandId unused, requestedBy <mind>/<agent>, typed action),
run with operator undo off, pushed as one labelled undo step, and receipted with
requestedBy, note and undoLabel. execute_command becomes the private _dispatch.
A refusal before any write pushes nothing; a raise after one pushes a '(failed)' step.
Live GUI test: Edit Mode object-level write is not reverted by one undo (reported).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Ruling brokkr-live:ruling:object-intents-refused-in-edit-mode. The guard denies before
any write, so nothing is pushed and her mode is untouched. Live check measured in
Blender 5.3.0: refused, scene and undo stack unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Edit Mode refuses setWorld and exportGltf too (only renderStill stays); exportGltf and
renderStill push no undo step; receipts are write-once (a reused id's denial goes under
<id>.denied); a raise in the undo push is a failed receipt and never re-runs; pin the
four surviving branches; queue-level live harness through the node and the add-on timer.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
commandId is validated (short key-safe string) before the reused check and any receipt key;
a bad id is denied under a fresh key naming the queue key and leaves the queue. The add-on
ships as an extension with a bundled msgpack wheel; _load_cultmesh names the module it lacks;
NO_SCENE_CHANGE_ACTIONS is pinned; the queue harness runs in a stock Blender without PYLIBS.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Conflict: docs/live-collab-target.md add/add; kept the live-2 wording of the single-primitive paragraph (failed-after-write pushes one labelled step).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Intents now enter only through the node (brokkr-ctl, a served peer, the sync organ).
_import_debug_command_files, the debug-root glob in purge_command_intents and
start_server's debug-root parameter are deleted; Debug Export Root stays export-only.
Also live-2-lows: COMMAND_ID_SHAPE and REQUESTED_BY_SHAPE use fullmatch (a trailing
newline passed), and _load_cultmesh's own-package set is pinned.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
NodeActions.changed says whether the last action wrote; run_intent pushes the labelled
step only when it did (the run_intent half rode in the previous commit's blender_target.py).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The store lock removed the failure the stat gate compensated, so wait reads each poll.
A store with more than one hard link is refused (unix nlink; windows via
GetFileInformationByHandle, windows-sys already in the lock). Tests pin the 86400 s cap,
the receipt-key prefix and -h as a flag; the help test finds the dispatch table by its own
line after live-2 added other *ACTIONS tuples.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
agent_turn_queue now also drops a command JSON under the debug root and checks it stays inert.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
eureka merged commit 7aefc6c319 into main 2026-11-27 19:57:08 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
GameCult/Brokkr!13
No description provided.