Commit graph

165 commits

Author SHA1 Message Date
Meta Vens
a2fd8bc702 brokkr_rig: reruns depend only on their inputs; body clears chains it would orphan; reports and tests (Soul s1 fix batch)
tendrils starts from the body weights kept on the mesh instead of the vertex
groups a past run rewrote; body on an existing armature removes the chain
bones; the spine seed stays off tendrils; tendrils reports the biggest chain's
share, fused contacts and a warning; colliders report each shrink; mutants of
stiffness taper, hit radius, shell bone, main path and fold rule are killed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 07:53:21 +01:00
Meta Vens
62e7897f15 brokkr_rig: body, tendrils and colliders host actions and the VRMC_springBone export hook
Rigs a fused generated mesh for the spring-bone runtime: spine and seed-part
bones with weights, tendril chains grown from shape diameter and geodesic
bands, body colliders shrunk to clear every spring joint, and VRMC_springBone
written by Blender's own glTF exporter through a user extension. Imports
brokkr_mesh_polish instead of copying it; acceptance is Aetheria's
SpringRigVerify.VerifyGlb.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 06:49:57 +01:00
Meta Vens
e141782a60 mesh polish: boundary_root, the cut-root formula cut_parts shared with the rig
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 06:46:50 +01:00
82196e5f26 Merge pull request 'Mesh polish host add-on for generated meshes; headless intent runner; turntable recipe' (#22) from nibu/fable-mesh-polish into main 2026-12-01 01:40:21 +00:00
Meta Vens
2e3ac798ea docs: mesh polish after Soul's pass: windings, shading normals, orient scope, delight's gradient limit, the guard
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 02:17:46 +01:00
Meta Vens
7de1e25e60 brokkr_mesh_polish: repair and cut_parts turn no face; orient keeps the hierarchy; the tests pin the operators
Soul falsified PR 22: repair's unconditional recalc_face_normals reversed 4,565 of 23,341
and 15,735 of 28,426 triangles on two further Tripo hulls, which a single-sided material
culls. repair now leaves every winding alone; recalc_normals is opt-in and reports
windingFlipped. cut_parts no longer recalculates either. Custom shading normals are carried
through weld, fill and cut as plain directions and set back, new faces are shaded by their
own direction, and delight reads those shading normals instead of winding-derived ones.

audit: windingAgainstNormals, and uvMirroredTriangles (texture parity against the shading
normals) in place of uvFlippedTriangles, which changed whenever a winding did.
orient: object_name scopes it to a root and its descendants; parents and pivots are kept.
cut_parts: a mesh with no material keeps a bare first slot, so only caps take the cap material.

Tests: 13 more unit tests and 18 more live checks (43 with BROKKR_POLISH_HULLS). The live
sphere is now torn, half inside out under outward custom normals. Soul's 26 mutants and 11
of this batch's own all die.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 02:17:45 +01:00
Meta Vens
64ffc14e0a run_intents: refuse Blender user directories that are a person's own, or that Blender is not using
The guard only checked that the three variables were non-empty. tools/private_dirs.py now
refuses a variable set inside %APPDATA%/Blender Foundation, ~/.config/blender or the macOS
folder, and a Blender whose own answer for CONFIG, EXTENSIONS or SCRIPTS is not under the
variable. (Soul finding run-intents-guard-checks-non-empty, PR 22.)

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 02:17:45 +01:00
Meta Vens
0921bec89b docs: mesh polish actions, the headless intent runner and the turntable recipe
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 01:08:05 +01:00
Meta Vens
6eb3725254 brokkr_mesh_polish: a host add-on that measures and polishes generated meshes
Seven agent-callable operators for image-to-3D output (Tripo and its kin): audit (welded
topology, UV overlap, texel density), repair, orient, delight (undo baked lighting that
normals and occlusion explain), pick, scrub_markings (paint out baked lettering) and
cut_parts (cut a fused skin into capped, rooted, parented parts from seeds).

The arithmetic is core.py, numpy only, tested without Blender; the host file is tested
against Brokkr's own checker; tests/live/mesh_polish.py proves every row through run_intent
in Blender 5.3.0.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 01:08:04 +01:00
Meta Vens
72258d9288 Blender tools: run an intent recipe in a background Blender; write a turntable recipe
run_intents.py sends a JSON list of intents through BrokkrBlenderTarget.run_intent in a
background Blender (the action table admits or denies each, host rows included) and writes
the receipts to a file. It refuses to start without private Blender user directories.
turntable_recipe.py writes such a recipe from Brokkr's own scene actions, so a before and
an after of one subject are framed identically.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-12-01 01:08:04 +01:00
6667f523aa Blender add-on: glTF export error paths survive kills and concurrent sweeps (#21) 2026-11-28 06:25:32 +00: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