brokkr_kitbash follows: a driven joint derived from its driver, by ratio or by closing a loop; joints v2 (cut kit-follows-2) #44

Merged
eureka merged 16 commits from nibu/kit-follows-2 into main 2026-12-03 16:15:35 +00:00
Owner

Cut aetheria-release:cut_spec:cut-kit-follows-2.r1 (base main 396f428).

A driven connection's value is derived from its driver's, by a ratio or by closing a two-unknown planar loop.

  • core.close_loop: Newton on a closure's in-plane error over two joints in series, analytic Jacobian. Refuses a loop that is not planar, a dead centre, no convergence, an axial miss. LIMIT_SLACK moves to its measured midpoint, 2.4e-7.
  • The joint record gains follows (kit_follows, kit_follows_driver). write_connections checks every entry before writing any; set_params seats through it (its direct seat loop is deleted), so a hand-edited out-of-limit roll or stray slide is refused with nothing changed. joint_record reads null for what record_refusal would refuse.
  • brokkr_kitbash.follow states and clears a ratio or a loop. pose() refuses a follower and derives a driver's followers in the driver's own action: ratios, then loops in dependency order, the driver stepped so a loop keeps its assembly branch.
  • brokkr.joints version 2: driven rows, unlimited, after/next paging, the root's own row.
  • No linkage record is stored and no Blender driver or constraint is made.

Verification (Starfire, Windows, Python 3.13; Blender 5.3 with private user directories):

  • python -B -m unittest discover -s surfaces/blender/tests: 670 tests, OK (20 skipped), 188 s.
  • Live, exit 0 each: kitbash_follows 65 checks 49.6 s, kitbash_pose 95 checks 19.6 s, kitbash_assembly 154 checks 45.1 s, kitbash_hose 75 checks 67.3 s, kitbash 99 checks 2.9 s.
  • Mutants F1 to F12, each once on a scratch copy: all died. F1 and F8 in FollowTests; the rest in tests/live/kitbash_follows.py. Also T1 (tolerance at HELD), S1 to S3 (LIMIT_SLACK at 1.9e-8, 2e-6, 2.9e-6) and R1 (ratio from the driver's old value): all died.

Where this departs from the spec's text (each in the cut report):

  • The dead-centre bound reads the Jacobian with its columns scaled to unit length, at every Newton iterate, so a linkage's size does not move it. A jump from beside a toggle is therefore refused in the dead centre when taken as one solve, and arrives when stepped.
  • A loop's moving end is the driver, a follower of it, or a part hanging from either. The spec's own two-loops test needs this: the ram closes on the rocker, which follows the crank and does not hang from it.
  • The torque link closes on a lug strut pinned on the rod's rod_end_back. Two arms from the barrel's pin cannot face the rod's own pin: a strut's two pins face one way.
  • Steps 2 to 4 are one commit. Lines added are 1667 against an estimate of 720; 833 of them are the live test and its result file.

🤖 Generated with Claude Code

Cut `aetheria-release:cut_spec:cut-kit-follows-2.r1` (base main 396f428). A driven connection's value is derived from its driver's, by a ratio or by closing a two-unknown planar loop. - `core.close_loop`: Newton on a closure's in-plane error over two joints in series, analytic Jacobian. Refuses a loop that is not planar, a dead centre, no convergence, an axial miss. `LIMIT_SLACK` moves to its measured midpoint, 2.4e-7. - The joint record gains `follows` (`kit_follows`, `kit_follows_driver`). `write_connections` checks every entry before writing any; `set_params` seats through it (its direct seat loop is deleted), so a hand-edited out-of-limit roll or stray slide is refused with nothing changed. `joint_record` reads null for what `record_refusal` would refuse. - `brokkr_kitbash.follow` states and clears a ratio or a loop. `pose()` refuses a follower and derives a driver's followers in the driver's own action: ratios, then loops in dependency order, the driver stepped so a loop keeps its assembly branch. - `brokkr.joints` version 2: `driven` rows, `unlimited`, `after`/`next` paging, the root's own row. - No linkage record is stored and no Blender driver or constraint is made. Verification (Starfire, Windows, Python 3.13; Blender 5.3 with private user directories): - `python -B -m unittest discover -s surfaces/blender/tests`: 670 tests, OK (20 skipped), 188 s. - Live, exit 0 each: `kitbash_follows` 65 checks 49.6 s, `kitbash_pose` 95 checks 19.6 s, `kitbash_assembly` 154 checks 45.1 s, `kitbash_hose` 75 checks 67.3 s, `kitbash` 99 checks 2.9 s. - Mutants F1 to F12, each once on a scratch copy: all died. F1 and F8 in `FollowTests`; the rest in `tests/live/kitbash_follows.py`. Also T1 (tolerance at HELD), S1 to S3 (LIMIT_SLACK at 1.9e-8, 2e-6, 2.9e-6) and R1 (ratio from the driver's old value): all died. Where this departs from the spec's text (each in the cut report): - The dead-centre bound reads the Jacobian with its columns scaled to unit length, at every Newton iterate, so a linkage's size does not move it. A jump from beside a toggle is therefore refused in the dead centre when taken as one solve, and arrives when stepped. - A loop's moving end is the driver, a follower of it, or a part hanging from either. The spec's own two-loops test needs this: the ram closes on the rocker, which follows the crank and does not hang from it. - The torque link closes on a lug strut pinned on the rod's `rod_end_back`. Two arms from the barrel's pin cannot face the rod's own pin: a strut's two pins face one way. - Steps 2 to 4 are one commit. Lines added are 1667 against an estimate of 720; 833 of them are the live test and its result file. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
core.close_loop is Newton on a closure's in-plane error over two joints in
series, with the analytic Jacobian, refusing a loop that is not planar, a dead
centre, no convergence and an axial miss. FollowTests reads it against
ram.pose's four-bar and a barrel-and-rod loop. LIMIT_SLACK moves to 2.4e-7
with cases 1.2 either side (cut kit-follows-2, step 1).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The record gains follows (kit_follows, kit_follows_driver). write_connections
checks every entry before writing any; set_params seats through it, so its
direct seat loop goes and a hand-edited out-of-limit roll or stray slide is
refused. joint_record reads None for what record_refusal would refuse.
pose() refuses a follower and derives a driver's followers (driven: ratio,
then loops by core.close_loop, stepped). brokkr_kitbash.follow states and
clears; detach clears a loop partner. brokkr.joints version 2: driven,
unlimited, after/next, the root's own row (cut kit-follows-2, steps 2 to 4).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The follow row, the joints row as version 2 with its after field, and roll,
aim, reach, slide and joint say what a follower and a driver do. The live test
drives a four-bar, a ram closing on its rocker, ratio followers and a torque
link through run_intent, pages a joints report and reads the joint-records
Lows. follow checks the closure before the parent and leaves the ratio's
limits rule to driven (cut kit-follows-2, steps 5 and 6).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Joint records gain the follows row and a Followers section (ratio and loop,
what a loop is solved from, the dead-centre bound, what it gives up). The
joints example is version 2 with driven, unlimited and paging; ShipJoint's
kind and spring are recorded as ruled with the one-to-one map; the false
'next pose is refused' claim goes and a frozen part's actions are complete.
kitbash_follows.py takes its bounds from the F11 and R1 readings and finds
the jump one solve does not survive (cut kit-follows-2, steps 5 and 6).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
close_loop scales a ram's revolute column by its lever with the slide at 0, so
FOLLOW_SINGULAR reads the ram's lever over its closed lever and fires at the
rod's end on the barrel's pin; an iterate on the other side of the Jacobian's
determinant from its seed is refused as past the dead centre. 120 random rams:
4 wrong-side answers before, 0 after.

core.joint_rows derives the joints report's rows, so mutants J7, J8 and J11 die
in the unit run; J5, J9 and J10 die on ownership patterns. FollowTests reaches
the no-convergence refusal, binds FOLLOW_ITERATIONS to its rule and reads the
closing error FOLLOW_TOLERANCE bounds (the 3e-10 mutant reads 2.5e-10).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
follow names the driver and every other input between a loop's two ends: a
follower of another driver, or a joint with travel that follows nothing. A
joint both ends hang from, and one held by limits of one value, are not inputs.
The torque link fixture holds its lug by limits [90, 90]: one row with travel
that nothing drives, nothing unlimited.

joints builds its rows in core.joint_rows; unlimited lists the ids of the rows
a report carries and is counted with them, so a report is never over a receipt
and always carries a row.

Live kitbash_follows: 76 checks; both halves of the loop-ends rule, the two
second-driver refusals, the free lug, a hinge above both ends, and a tree of
264 unlimited joints with 62-character names.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
kitbash_assembly, kitbash_hose and kitbash_pose were run again at this tree and
their result files are unchanged byte for byte.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
one_driver reads every loop in the scene as the write would leave it. write_connections and detach ask it, so
attach, detach, clearing a follower, widened or cleared limits and any pose refuse a second driver between a
stated loop's ends, naming both. follow's own copy of the rule is gone.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
write_checks is the writer's own checks and the one-driver rule in one call:
write_connections asks it before it writes, and set_params asks it before it
rebuilds a mesh or rewrites kit_params, so its refusal leaves the scene as it
stood (finding set-params-writes-before-the-guard).

Brokkr's setObjectParent asks each enabled add-on that defines
brokkr_parent_refusal(object, parent) before it writes a parent; brokkr_kitbash
answers one_driver over the scene as the new parent would leave it (finding
bridge-reparent-bypasses-the-guard).

A brokkr.joints row carries held: true when its limits are of one value
(finding held-pin-row-is-undistinguished).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The rule is read before every write, by set_params before its mesh and by
setObjectParent; a ram whose limits reach its closed length is refused by the
conditioning bound; a held row is in neither unlimited nor rigid (finding
docs-state-the-old-rule).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A write touches a loop when a part it writes is the closing follower, the part closed on or the driver, or one
of those hangs from it. A loop that already has a second driver refuses those writes and no others, so a camera,
an empty or a part of another mechanism is posed, resized and given a parent in a scene that holds one
(finding parent-hook-gates-on-scene-not-change). Every asker shares the rule: write_checks, detach, set_params
and brokkr_parent_refusal. An untouched loop costs three stored pointers and a walk up its parents.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Which joints are a loop's drivers is read in one place, loop_drivers. one_driver refuses a write by it; follows_report and the joints report read the scene as it stands by it, so a second driver no action wrote (limits widened by hand, a saved file) reads holds false on both followers, naming both drivers, and is listed as {loop, drivers} in manyDrivers beside unlimited and rigid. Finding two-driver-loop-reported-nowhere.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Finding kitbash-pose-pins-joints-keys. The pin stays an exact set.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
__init__.py: the follow constants and the plate constants both stay. test_kitbash's seat pin goes from 5 to 6:
plates.stand seats a plate on its own frame, as a cutter, ribs and a hose are seated, and writes no follower
(Self's ruling, under hard-plate-map's boundaries).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
eureka merged commit 1f76f4da44 into main 2026-12-03 16:15:35 +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!44
No description provided.