Commit graph

126 commits

Author SHA1 Message Date
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
Meta Vens
bebc004f09 Blender: one agent turn primitive, run_intent (live-2)
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>
2026-11-27 20:00:09 +01:00
Meta Vens
847c28714b 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:09 +01:00
Meta Vens
714ae21478 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:09 +01:00
Meta Vens
48c0aeee6d 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:09 +01:00
Meta Vens
04954c0500 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:09 +01:00
a371056f04 Brokkr on MessagePack payloads: strict reads through cultcache-rs, pins at CultLib baf4ecf7 (#11) 2026-11-27 18:59:16 +00:00
5e279b2b0b Merge pull request 'node-actions.md: point to the parked design tag' (#10) from libby/node-actions-design-pointer into main 2026-11-10 23:15:56 +00:00
Libby
f891404ee3 node-actions.md: point to the parked design tag
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 23:15:55 +00:00
47d27271e7 Merge pull request 'Blender add-on: createObject and renderStill refuse what they cannot do' (#8) from libby/blender-refusals into main 2026-11-10 23:14:05 +00:00
Libby
01d25c6bf9 Blender createObject: pin whitespace meshType refusal, document meshType and null objectType
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 23:13:57 +00:00
Libby
944ea4a1ec Merge remote-tracking branch 'origin/main' into libby/refusals-fix
# Conflicts:
#	surfaces/blender/tests/test_scene_actions.py
2026-11-10 18:01:45 +00:00
730ceb9e0e Blender add-on: exportGltf action (#7) 2026-11-10 18:01:28 +00:00
8cebec6f3c Blender assignMaterial: colour, idempotent slot, malformed colour refused (#6) 2026-11-10 18:00:37 +00:00
Libby
6b7d6ae9e2 blender: renderStill refuses GL engines headless when libEGL is not loadable
BLENDER_WORKBENCH and BLENDER_EEVEE aborted the whole Blender process inside
bpy.ops.render.render with no receipt. The probe is cached, Linux only, and a
module-level function so tests replace it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 17:55:38 +00:00
Libby
ece40040f4 blender: createObject refuses unknown objectType and non-cube meshType
TEXT and CURVE used to fall through to an EMPTY with an accepted receipt.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 17:55:38 +00:00
6995eabf51 Blender add-on: geometry node graph actions, modifier inputs, evaluated snapshot (#5) 2026-11-10 17:54:18 +00:00
6f0e70042d Blender add-on tests: token-guard test no longer pins the store spelling (#9) 2026-11-10 17:42:46 +00:00
acd9a583cd Merge pull request 'Blender add-on: pass CultMeshGrantAllWrites() to its served node' (#4) from libby/blender-grant-peer-writes into main 2026-11-07 19:19:41 +00:00
Libby
a98ccacb37 Blender add-on docs: grant-all lets a peer write any registered document
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 19:14:21 +00:00
Libby
221f59b754 Blender add-on: grant peer writes explicitly to its served node
cultmesh_py (CultLib GameCult/CultLib#33) refuses peer puts and deletes unless a
write authority grants them. The add-on's clients put command intents, and the
session token guard already authenticates them, so the target passes
CultMeshGrantAllWrites() when cultmesh_py has it. Older cultmesh_py already
accepts every write and is left alone.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 19:08:33 +00:00
82ed1e73cb Merge pull request 'Blender add-on: importGltf, setCamera, setLight, setWorld, renderStill' (#2) from libby/blender-scene-actions into main 2026-11-07 15:13:26 +00:00
Libby
dbd4cc05d1 scene actions: device-name spellings, missing glTF references, link message kept, no folders on refused render
- check_relative: spaces before the first dot are dropped (CON .txt), superscript COM/LPT digits are device names.
- gltf_references refuses a reference to a missing file; drops the broad ValueError catch and redundant relative_to so the specific refusal (a link) reaches the receipt.
- _render_still makes folders only after every Blender-side refusal (unknown engine used to leave them behind).
- Tests for each.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 15:10:58 +00:00
Libby
5adff0f8a2 scene actions: junction refusal on Windows, direct path-rule tests, live junction smoke, TOCTOU doc
- resolve_inside maps OSError from resolving a component (WinError 448 on a mklink /J junction) to a link refusal.
- Direct check_relative test for '..' and NUL; OSError mapping test.
- headless_smoke.py makes real junctions on Windows (outside and inside the root) and an existing-output case.
- install.md documents the path rules and the residual TOCTOU.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 15:05:48 +00:00
Libby
72b52b5d0e scene actions: gltf reference check, relative-only names, link walk, no-overwrite output
WIP for review fixes, tests pass (61); mutation confirmation and Starfire re-run pending.

- importGltf parses .gltf JSON and .glb's JSON chunk, checks every buffers/images uri.
- Names are relative plain paths: no drive, UNC, extended, ':' (ADS), '..', device names.
- No symlink/junction component under the root; output must not already exist.
- Path and file stamps re-checked right before use; residual TOCTOU documented in code.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 13:20:30 +00:00
Libby
4b2fefa368 renderStill: ask Blender for the engine by assignment; add headless live smoke
Found by running the actions on Blender 5.2.3 headless: the render engine enum is
dynamic, bl_rna lists only BLENDER_EEVEE, so CYCLES and WORKBENCH were refused.
The fake in the tests now behaves like the real enum. surfaces/blender/tests/live/
headless_smoke.py runs every scene action against real bpy.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 13:14:47 +00:00
Libby
e9a780569f Merge main (server hardening, PR #1) into blender-scene-actions
Resolved blender_target.py: both the server-guard fields and the action directories kept.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 12:52:59 +00:00
679020d858 Merge pull request 'Blender add-on: server hardening (opt-in session token, intent purge, bind guard)' (#1) from libby/blender-server-hardening into main 2026-11-07 12:52:41 +00:00
Libby
2f38d0c9c2 Blender add-on: token never drawn, UI wiring tests, DELETE shard-log test
- Panel offers only the Copy Session Token button; the token is not drawn.
- Fake-bpy tests: allow_non_loopback carries an update callback that stops a running
  non-loopback server; copy operator writes the clipboard; the panel never draws the token.
- Real-server test: a DELETE with shardId and a valid token leaves no token in the shard log.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 12:52:40 +00:00
Libby
d1501e8fdb Blender add-on hardening: strip token before the store, bind enforcement, loaded-module display
- The guarded server removes sessionToken from put/delete messages before the store,
  which copies envelope fields into the shard log it serves.
- Copy Session Token operator.
- Panel shows cultmesh_py's loaded __file__, not the preference path.
- Unticking Allow Non-Loopback (and any refused start) stops a running non-loopback server.
- stop_server revokes, purges and clears state even if the socket stop raises.
- Tests: shard-log token leak on the real server, node half of the start purge, purge
  persisted across reopening the .ccmp, allow=True through start_server, finally-path.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 12:50:00 +00:00
Libby
2246584416 Blender add-on: importGltf, setCamera, setLight, setWorld, renderStill actions
Paths for importGltf and renderStill are confined to the Import Directory and
Render Output Directory preferences (empty disables the action; .. , absolute
paths and escaping symlinks are refused). Every field is validated before bpy is
touched. renderStill restores render settings afterwards. Tests use a fake bpy;
Blender was not run.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 12:43:45 +00:00