Commit graph

156 commits

Author SHA1 Message Date
Meta Vens
e886ab248d Blender export: sweep old-layout stages and journals; bounded lock retry; tolerate unlink refusal
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 07:25:04 +01:00
Meta Vens
2033bdad9f Blender export: journal written under the stage lock; stage lock file created before its folder
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 07:23:17 +01:00
0d4d02437c Merge pull request 'Host actions: host add-ons list agent-callable operators; human-only reload; apply stays unlisted' (#20) from nibu/live-host-action into main 2026-11-28 06:21:30 +00:00
Meta Vens
fb9696b639 Host actions: files are read only by the human's reload, never on an intent
Reload Host Actions operator (refuses inside an agent turn) and one startup read; envelope-named fields,
unknown row keys, read-only results and UNDO operators on non-changing rows refuse the file; a failed poll or
unclearable result refuses before any undo step; tests pin the ownership prefix, enum, snapshot errors and
the guards; live proof extended; docs say the flags are the host's word.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 07:07:18 +01:00
Meta Vens
26efb1b31a Host operator: drop the redundant _wrote writes; tests pin the envelope and the own add-on never read as a host
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 06:19:04 +01:00
Meta Vens
c1aacd9f7b live/host_action.py: GUI Blender 5.3 proof of host rows, undo steps, results and human-only absence
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 06:16:29 +01:00
Meta Vens
740a2c84c3 install.md: host add-on actions
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 06:12:09 +01:00
Meta Vens
7b47fa5b83 brokkr-ctl: host rows from the host snapshot in validate, send --help and status
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 06:11:51 +01:00
Meta Vens
692606ba75 Blender add-on: host add-ons add rows to the action table through brokkr_actions.json
check_host, host_actions discovery with ownership and RNA checks, _run_host_operator in the agent turn,
hostActions and hostActionErrors in the snapshot, hostResult in receipts, fixture host add-on and cases.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 06:10:08 +01:00
cd0050edb8 Merge pull request 'One action table for every Blender intent; claim-then-run drain; private Blender dirs for live runs' (#19) from nibu/live-action-table into main 2026-11-28 02:51:37 +00:00
Meta Vens
f7a43c19fd Soul s1 fixes: private Blender env enforced, whole floats for integers, validate never raises, parent loops refused, timeout says queued or claimed
- Every live script that installs or enables the extension refuses to run unless BLENDER_USER_CONFIG, BLENDER_USER_EXTENSIONS and BLENDER_USER_SCRIPTS are set and Blender's extensions folder is the one named (Blender 5.3 ignores BLENDER_USER_RESOURCE_PATH); every other live script and install.md say so; the stale docstrings are corrected.
- validate returns integer fields as int (1920.0 reaches Blender as 1920); five fixture cases added for both validators.
- validate sorts unknown keys by str, so a document with mixed key types is a denied receipt, not a raise after the claim; pinned with hostile documents and through the drain.
- setObjectParent refuses a parent that is the object or one of its own children before any undo step.
- brokkr-ctl on timeout prints whether the intent is still queued (not run) or was claimed with no receipt (may or may not have run); group help says so.
- live action_table re-run: 205 of 205, renderStill sample sends 8.0.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 03:44:05 +01:00
Meta Vens
c348e5d634 live/action_table.py: name the environment variables that really isolate Blender's extensions
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 03:09:32 +01:00
Meta Vens
9d9c117852 Action table: live proof in GUI Blender 5.3, live tests on the declared field names, docs point at the table
tests/live/action_table.py (+ result): with the extension installed and the sink on, intents are queued as
brokkr-ctl does and drained by the add-on's own timer. For all 23 actions of actions.json, 270 malformed
intents generated from the table entries are each denied with no undo step and an unchanged scene (one undo
reverts the canary before them); one valid intent per action is accepted and is exactly one undo step exactly
when changesScene says so (undo restores, redo returns); one receipt write is held back and the intent still
ran once. agent_turn_undo, agent_turn_queue, export_gltf, refusals, gn_actions and perception_fixes rerun on
5.3 with the declared field names and the denied/failed split; results refreshed. install.md, node-actions.md
and provider-contract.md drop the field lists and point at actions.json and `send --help`.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 03:06:25 +01:00
Meta Vens
caf4b34362 Blender add-on: the drain claims an intent before it runs (at most once)
drain_commands deleted the intent after writing its receipt, so a failed receipt write or a crash left an
intent on the queue to run again. It now deletes the intent from the node first, then runs it, then writes the
receipt; a receipt whose write raises is held (with its key suffix) and written first on the next drain, never
read as truth. A delete that raises runs nothing and leaves the intent queued. Stop keeps receipt-then-delete:
it runs nothing, so a re-stop cannot re-run an intent. A crash between claim and receipt loses the intent
(the sender's wait times out, exit 4) rather than running it twice.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 02:53:03 +01:00
Meta Vens
9069576551 brokkr-ctl: embed the action table for send --help and pre-validation
brokkr-ctl/src/actions.rs include_str!s the add-on's actions.json, reads entries as data (serde_json Value,
no generated types) and implements the same vocabulary and message text as action_table.py. `send --help` is
built from it; `send` refuses an intent the table refuses with exit 1 and writes nothing; --set refuses the
table's envelope names. Deleted: the hand-written ACTIONS/Field help table, RESERVED, the letters-and-digits
action check and the source-scraping drift test. The shared fixture action_cases.json (231 cases) is run by
both validators.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 02:51:42 +01:00
Meta Vens
7c6092bc0a Blender add-on: one action table (actions.json) decides every intent's fields and undo class
run_intent admits through action_table.validate: unknown field, wrong type, enum miss, bound miss,
missing required field are 'denied' (admission: nothing ran, no undo step). The entry's changesScene
and editModeSafe replace READ_ACTIONS, MUTATING_ACTIONS, NO_SCENE_CHANGE_ACTIONS and
EDIT_MODE_SAFE_ACTIONS; the handler is '_' + the action's name, so _dispatch's if-chain, the scene
field helpers (number, integer, choice, color), node_actions' text/tree_key/check_idname and the
cross-aliases (objectName on scene actions, targetObjectName on node actions, parentName) are gone.
New bounds only where nothing was checked: createObject size, lightType/emptyDisplayType enums,
resolution minimum 4 (Blender clamps 1..3 silently), the probed panoramaType items, node label 63.
Handlers keep scene-dependent refusals (ActionRefused, 'failed').

Parity fixture surfaces/blender/tests/action_cases.json is for brokkr-ctl's validator, which follows.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-28 02:47:07 +01:00
00b38e8e09 Brokkr C#: snapshot lists as whole values; C# pin to CultLib 9fc4bdda; snapshots reach disk again (#18) 2026-11-28 01:31:36 +00:00
282d9eff7a Blender add-on: glTF export checked against real Blender, atomic export, a render refusal that holds (#17) 2026-11-28 01:13:22 +00:00
adfda2841a Merge pull request 'Perception: look, Edit Mode selection, human-edit counters' (#16) from nibu/live-5-perception into main 2026-11-27 22:11:29 +00:00
Meta Vens
270b596f05 Perception fixes: live proof (minimised look, coarse flags, 1M-vertex read) and the contract in the docs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 22:57:02 +01:00
Meta Vens
1286ad8fc4 Perception fixes: offscreen look when Blender is not drawing, scene update sequence and capture source in the receipt, selection totals from the mesh and a capped scan, coarse attribution flagged, path re-check and prune pinned
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 22:54:35 +01:00
Meta Vens
bbe5176ca2 Perception: live proof in a stock Blender 5.3 through brokkr-ctl, and the look contract in the docs
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 22:25:50 +01:00
Meta Vens
5fcc890021 brokkr-ctl blender look: send look, print the receipt's lookPath, selection and edits since the last look
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 22:19:53 +01:00
Meta Vens
54478cd0ad Perception: look captures her 3D view to a scratch PNG; the snapshot carries Edit Mode selection, a session id and human-edit sequences
look is a read action under run_intent (no undo step, allowed in Edit Mode). It overrides screenshot_area to the largest
VIEW_3D area's WINDOW region, writes <output_dir>/look/<commandId>.png and prunes to the newest 20. Human-edit tracking is
always on and separate from auto_capture; nothing admits or refuses an intent on it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 22:19:53 +01:00
c2b898370f Merge pull request 'Stop agents and presence: stopped receipts, sink-off answers, agents panel' (#15) from nibu/live-3-stop-presence into main 2026-11-27 21:09:06 +00:00
Meta Vens
6c2da2f534 Stop: the timer opens the node when the sink is on or a store already exists; an idle session makes no store
Soul s2 node-gate-unpinned-sink-on: in a default install nothing opened the node, so the sink-on drain never
started and a sink-off send got no answer. Live harness now starts from a default install with no snapshot
published, and a second Blender on the same store proves the sink-off, node-closed answer.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 22:04:33 +01:00
Meta Vens
861edd3195 Stop: a sink-off add-on answers arriving intents stopped; Agents under Stop; pending zero after Stop; survivors pinned
Soul s1: post-stop-queue-runs (ruling sink-off-answers-stopped), agents-section-buried, pending-stale-after-stop,
stop-survivors-unpinned. The live harness now sends a concurrent burst with the sink on, cuts it with Stop, and
shows a later send answered stopped at once (wait exit 3) with nothing firing on re-enable.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 21:53:10 +01:00
Meta Vens
044ac094b5 Stop agents: one human control turns the sink off and receipts every pending intent as stopped; presence in the panel
purge_command_intents becomes stop_pending: a stopped receipt per intent, written before the intent is deleted.
Stop agents, server start and server stop share that path. The timer runs one intent per tick so Stop lands
between two. The panel's Agents section (active agents, pending count, last eight receipts) reads a display cache
filled where receipts are written; the host snapshot carries agentCommandsEnabled, which brokkr-ctl status prints.
Live proof on stock Blender 5.3 with real brokkr-ctl sends: tests/live/stop_presence.py.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 21:38:17 +01:00
Meta Vens
17584e40f9 Wheel METADATA is the published file's bytes (rebuild, new sha256); a real unlinkSockets removal pins one undo step
build-msgpack-wheel.py read METADATA through read_text, which folded CRLF and changed the hash PyPI's RECORD lists.
The test compares the wheel's METADATA hash with the installed distribution's RECORD and failed first; the unlink
test fails against a mutant that never reports a change.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 21:31:30 +01:00
f2e54ebedc Merge pull request 'CultLib 9fc4bdda pins, one pure-Python msgpack wheel for every platform, live-1 Lows' (#14) from nibu/live-pins-wheel into main 2026-11-27 20:21:42 +00:00
Meta Vens
fe76ac45c4 live-1 Lows: undo label from the id tail, empty unlink pushes no step, wait pins exact key and poll sleep, architecture wording
Each has a test that failed first; the ctl mutants (ends_with key, sleep removed) now fail.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 21:04:47 +01:00
Meta Vens
1f469c4721 CultLib pins to 9fc4bdda; one pure-Python msgpack wheel, no platform restriction
cultcache-rs moves to 9fc4bdda (PR #180: cultcache-py decodes under msgpack's pure-Python fallback).
The Windows-only C wheel is replaced by msgpack 1.2.2 repacked deterministically from the installed
package; source, version and sha256 are in install.md.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 21:04:46 +01:00
7aefc6c319 Merge pull request 'Live collaboration core: one undo step per agent action, the debug door closed' (#13) from nibu/live-1-debug-door into main 2026-11-27 19:57:05 +00:00
Meta Vens
c723754ea6 Blender live harness results rerun on the extension build (stock Blender 5.3, no PYLIBS)
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>
2026-11-27 20:36:58 +01:00
Meta Vens
4510dcc45b brokkr-ctl: delete ChangeGate, refuse hard-linked stores, pin the survivors
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>
2026-11-27 20:30:28 +01:00
Meta Vens
8f5a660964 Blender: removeNode and removeModifier on an absent target push no undo step
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>
2026-11-27 20:30:27 +01:00
Meta Vens
741e186c5a Blender: cut the debug-mirror JSON intent door; one admission shape fix
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>
2026-11-27 20:30:20 +01:00
Meta Vens
50fe9c1aa1 Merge origin/main (a4cc320, brokkr-ctl) into the agent turn
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>
2026-11-27 20:23:17 +01:00
a4cc3209a3 Merge pull request 'brokkr-ctl blender: the agent's command client' (#12) from nibu/live-4-brokkr-ctl into main 2026-11-27 19:21:54 +00:00
Meta Vens
0f4ab2d0d9 brokkr-ctl on MessagePack payloads: reads through cultcache_rs::decode_payload, one MessagePack value per write, tests off JSON
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 20:08:02 +01:00
Meta Vens
ef7086971c brokkr-ctl: time-ordered ids, stat-gated polling, parsed help flag, bounded timeout, absolute unlinked store, pinned survivors
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 20:03:45 +01:00
Meta Vens
68e1b654dd brokkr-ctl blender: a Rust CLI that sends typed intents to the live add-on's store and reads receipts and the snapshot
Workspace member brokkr-ctl; cultcache-rs moves to [workspace.dependencies] at the daemon's existing rev. Writes only blender/commands/<id>; intents are attributed or refused; exit code derives from the receipt.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 20:03:44 +01:00
Meta Vens
57ca88ed38 Blender agent turn: live harness results rerun on main a371056f (CultLib baf4ecf7 pins)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-27 20:02:50 +01:00
Meta Vens
a6184b6158 Blender agent turn: Soul s2 fixes and a stock-Blender install
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>
2026-11-27 20:00:36 +01:00
Meta Vens
561562626f Live collab target r2: the push request is a stdin dump, as the material path
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 20:00:16 +01:00
Meta Vens
e271dcc9cf Live collab target r2: rulings in, phase two authoring surface
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>
2026-11-27 20:00:16 +01:00
Meta Vens
3213ee3d86 Live collab: depsgraph timing probe
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>
2026-11-27 20:00:16 +01:00
Meta Vens
a975f99a90 Live collaboration target: invariants, probes, identity table
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>
2026-11-27 20:00:16 +01:00
Meta Vens
8f8c92e7c9 Blender agent turn: Soul s1 fixes
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>
2026-11-27 20:00:09 +01:00
Meta Vens
6464915fa4 Blender: refuse object-level intents while an object is in Edit Mode
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>
2026-11-27 20:00:09 +01:00