Skip to content

65-walk: walk on legs, a walk constraint (owner ask) - #702

Open
AlexZ005 wants to merge 38 commits into
mainfrom
lane/65-walk
Open

AlexZ005 wants to merge 38 commits into
mainfrom
lane/65-walk

Conversation

@AlexZ005

Copy link
Copy Markdown
Collaborator

65: Walk on legs (procedural walking)

The owner's ask (29 Nov): "a bug whose legs touch the ground and crawl". Built on the 108 K2 gait spike (lane/108-gait-spike,
included here as its three commits) with the rulings on its forks: a constraint kind walk, stepping by distance with a
"Same feet for everyone" clock option, ik2 legs with an auto pole. No second solver, no new message, no new export file.

What a person gets

  • Inspector > Constraints > Add > Walk on legs on a body with legs: it finds the legs in the rest pose (2, 4, 6, 8; bones of a
    rigged model or pivot-group parts), writes the walk FIRST in the stack and a two-bone IK per foot (knees up and out), and says
    "Walks on 6 legs, riding on Hull". A body with no legs gets a clear line and nothing is written.
  • Rows: Rides (the hull that rises and tilts), Stride, Step height, Step time ("speed feel"), Body follow, Stepping (By distance /
    Same feet for everyone), Find the legs again, and the hint that the mover (path, player, physics) owns speed and height.
  • Flow node Walk on Legs: on / off, pace, stepping, per tab while it runs (off = the legs rest).
  • rig kind walk for apps and Claude, with feel fields and the recipe BUG THAT CRAWLS behind what_can_you_do.
  • The feet step on slopes, steps and moving platforms; in a running simulation the ground is rapier's (the walker's own colliders
    skipped); landings avoid steep faces, edges and spots out of reach, and the hull rises toward the highest foot.

How it works

  • walk is a constraint kind in userData.constraints (constraintCore normalize; an older peer keeps it verbatim and shows the
    legs at rest: proved against built 1.84.0 and built base 9c09dd8). The hull pose goes through constraintRuntime's ONE base
    rule (saves, undo and peers never see a gait pose); the feet are per-tab point overrides on the existing ik2 / ikchain.
  • Ground (rig/walkGround.js): rapier castRayAndGetNormal while a sim runs (physics.colliderOwnerOf), else the scene meshes
    through a 2 m grid (moved meshes re-boxed once a frame), else the ground plane. Landing checks: rig/walkLanding.js.
  • Governor: the walkers nearest the camera walk; over the pass budget (the larger of 3 ms and 30 % of the frame) the farthest rest.
  • Everything rides the existing lazy constraint chunk: export 900 / 900, slim 828 / 850; boot play 1702.9 / 1715 KB (+0.1),
    editor 2608.3 / 2740 KB (+0.6) against the spike.

Numbers (Mac, headless Chromium, load average ~40)

Six-legged walkers ik2 pass ikchain pass
1 0.08 ms 0.13 ms
10 0.44 ms 0.86 ms
50 1.71 ms (all walking) 4.57 ms (all walking)
50 + 400 boxes 1.88 ms (58 meshes tested for 57 rays a frame) 4.34 ms

Two tabs, same session-clock body: Same feet for everyone agrees at rest to 0.00 mm. Listing +452 B, +200 measured tokens.
Eval (sonnet, stand-in Worker catalog): the five new requests and two rig ones, base 4 / 7, this branch 7 / 7.

Also fixed

  • Inspector > Constraints > Add kept its last pick (ThemedSelect fires on a change only): the same kind could not be added twice in
    a row. Bound and cleared after each pick.
  • Clock mode settles: standing still, every foot steps onto its exact home (it kept the last mid-step landing: 39 mm between tabs).

Tests

  • vitest: walk (26), walkPreset (12), plus constraint*, rigTools, nodeRegistry, propTracks: 114 pass. Full run: 8952 pass, 1 fail
    = levelTemplates' 5 s timeout, which fails the same way on the spike's tree on this Mac (pre-existing).
  • e2e walk-65 (battery, 90 s): rc 0, fail 0 on dev (30 pass) and on the built tree with WALK_EXPORT=1 (34 pass).
  • e2e walk-65-lab (not battery): smoke + cost rc 0, films rc 0, sync rc 0, old vs 1.84 rc 0, old vs base rc 0.
  • Regression: constraints rc 0 (32 pass), agent-rig rc 0 (36 pass). check-ratchet 272 / 37 (baseline), check:tokens and
    check:emoji clean, catalog:agent --check ok, tools/agent suites all green, npm run build ok.

🤖 Generated with Claude Code

Stacked on lane/107b-tier3-base (9c09dd8), built from the 108-gait-spike branch. Rides the next open int with 65-servo (#701). Built on the Mac by lane 65-walk; pushed from the Deck by the orchestrator.

🤖 Generated with Claude Code

https://claude.ai/code/session_01P2hkj6fQfU2qTecxXNKeEB

AlexZ005 and others added 30 commits November 29, 2026 16:16
… merge, recalc_normals, triangulate, quads without a session

The toolbox's operators through the same kernel ops and commit (meshgeo + its history kind), one undo step a call;
faceLoopRing / quad topology take a frame so the agent's loop cut walks the session's own ring.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he Preview; next / previous through the window's own walk

The assistant's preview goes through the Preview window's own show / step (fileWindows.requestPreview), the
Explorer landing on the file's folder first so the arrows walk the same folder. Rides show's panel kind; Back
restores the window and the Explorer folder. Never pins the Preview tab.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ts, boolean_objects, convert_to_mesh)

The Arrange rows and Mesh > Boolean / Convert to mesh through align.js, meshBoolean and convertToMesh: the hand
edit's messages, one undo step (no nested batch flush), the selection left alone, held objects named.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…luded) and {action: "save"} (the person's unsaved Code tabs)

find runs the Code tab's own Find in files (codeWorkspace.findSources + codeFind) — open tabs with their unsaved text,
every code node, the Library's .js files, module sources on request — and answers path or node id + line; a read.
A regex with a nested repeat is refused (it runs in the person's tab). save is the person's own Ctrl+S
(saveCodeTab) on their dirty tabs; a stale, read-only or unparsable tab stays unsaved with the reason.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ate}

versions lists the project's saved versions (Version history: labels and pins replicate) and this device's
checkpoints, each with an id; label / pin through their own writers (label with no version = Save version... on the
open scene). restore ALWAYS asks the person first, then is the hand's restore: a saved version checkpoints the
screen, moves the pointer and loads here; a checkpoint is a session load (with peers, the room proposal).
rename = the Explorer's Rename scene (files' own path: for everyone, Travel nodes follow); duplicate = the
card's Duplicate (not opened). Viewers and guests are refused (the switch rule).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Library model (path / id / lib:) goes through modelReplace.replaceModelFromFile (the Inspector's Replace
model...: same uuid, pose, flows and data, one modelreplace undo entry, clips by bone name, edited materials
carried); a pack model (pack:) on a pack piece or placeholder takes the Replace model dialog's card path (same
uuid, a stub every peer refills), on another model its file is fetched and replaced from. Sanity fixes take the
dialog's first button unless fix: false. Locked / simulating / not-a-model refused.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Prefabs view's own writers on the existing prefab tool (connector assets {action: "prefab"}): list (folders,
tags, copies in the scene), tags (set / add / remove), move into a prefab folder, rename, and update: from objects
(Update from selection, with the person's toast Undo: a library edit, never in the scene history) and / or its
instances in the scene (Update all; keep or reset overrides; one undo step, replicated per instance).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d / full, fps / memory / stalls in status

perf_recording in the person's own tab only: start {mode detailed (default, 1-60 s, default 10) | light, name, wait},
stop, status, list, read {recording} in words (fps, frame time judged by the limits of the device it was RECORDED on:
phone 34/50, headset 11/13.9, desktop 20/33 ms p95; stalls with when; the slowest objects, materials, shadow casters,
transparent overdraw and CPU phases from a detailed recording), compare {a, b} (the Profiler's Compare in words),
rename, keep = a .tpprof file in the Library root marked share "no" (never shared by itself). The person sees a line
with Stop while it records; the tool never starts over or silently replaces a recording the person started.
Nothing is sent: no live peer stream is reachable from the tool. Rides the ui-state chunk (no new build file).

The Explorer gains a .tpprof kind (perf, gauge icon, filter "Performance recordings"); a double-click opens it in
the Profiler. set_quality: + low, hold (the chip's hold), full (Keep full quality for this page session), each behind
the same Allow / Keep card with Undo; restore undoes hold / full too. status.sceneBudget: + fps, memory {jsHeapMB,
geometries}, stalls {slowFrames over 100 ms in the ring, longTasksPerMin, longestTaskMs}.

Unit: perf107b (13), perfQuality107b (5), agentBudgetReport (+2).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
run {record} = perf_recording in CONNECTOR_FAMILIES and toolFamilies; lean brief; status and set_quality briefs name
the new fields and levels; catalog.json regenerated, brief pins refreshed. Listing 122,099 -> 122,977 bytes (+878),
measured tokens 49,515 -> 49,866 (+351, sonnet, tokens.mjs on the Worker catalog). Eval: r1-record-slow, r1-compare,
r1-keep, r1-quality-low, r1-fps (mock answers in mock-connector; run {record} status / list / read / compare are reads).
battery.json: connector-perf-107b 150 s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Listing (stand-in policy, 37 tools): 122,099 -> 124,328 B (+2,229: scene +1,020 listed whole, files +864,
assets +199, show +146); measured tokens 49,515 -> 50,322 (+807, sonnet). Eval rows f1-find, f1-preview,
f1-restore, f1-save-tabs, f1-replace (before lean-retry): base 0.5/5, branch 5/5, 0 of 15 calls refused.
The mock answers files find / save / replace and scene versions / restore (asks first) as the tab does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Notes: list_scene {notes}, update_objects note / "note:<id>" (note, name, reply), delete_objects "note:<id>", through
the note card's own writers (annotation message + undo kind), author line "Claude for <person>". Layers:
"layer:<name>" rows (name, color, locked; made when new), delete removes it, list_scene lists the table. View (this
device, show's camera kind, one Back): camera {note, savedView ("start"), move}, show {action: "view"} saved views,
shading, grid, snap, layers hidden here; game_setup play_camera openingView "here". Notes and layers ride the
propPaths chunk, the view rides show's: no new build file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…03 tokens)

Briefs for list_scene (notes, the Open tasks note), show (camera note / savedView / move, view), edit_mesh, the three
new edit_shape actions and play_camera openingView "here"; solidify takes distance and the loop cut amount (no new
field names), nested view objects are checked by showView itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, drawing paused), the open-tasks listing check

Eval s1-note, s1-closer, s1-line-up, s1-merge-lamp, s1-snap-grid (the mock's update_objects inner carries row keys).
update_objects' listing keeps its property-path sentence (my clauses join it with semicolons). e2e 44/44, 37 s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…own step; a version restore with others is the room proposal

- tpAgent: a person-tool call that makes a scene undo step (files {replace}, personToolEdits) runs in one history batch
  under the action log's observer like every other connector edit, so undo_last takes it back (an unobserved entry
  read as the person's own and also blocked undoing the call before it). agentLogSummary words it.
- scene restore of a SAVED version with others in the scene: a local load did not hold (the room's re-sync brings its
  live objects back), so it is the room's proposal (requestLoadPayload) as the row says; the pointer moves when it
  applies. Alone: Version history's own restore, as before.
- replace: a primitive has a model to replace by hand too (isReplaceableModel); the refusal names what has none.
- e2e connector-files-107b (two tabs, drawing paused): 73/73, ~45 s on the Mac.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…es on the three new edit_shape tools

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The branch built 8 more chunk files: filesTool's dynamic import of worldTools split it (and its static deps) out of the
tools chunk; prefabLibraryCore and codeFind split by a second importer. Now: lib: / pack: ids are read in filesTool,
the two prefab-library readings are written out in worldTools, and filesCore keeps a copy of the Code tab's Find
matcher that files107b asserts answers exactly as codeFind does. Export manifest 901 files = the base f9e3174 (the
union is 1 over the 900 ceiling before this lane). battery.json: connector-files-107b 90. CLAUDE.md: the 107b F1 entry
(index regenerated). svelte-check 272/37 = baseline.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ntry

One page through the fake relay: a read grant reads but cannot start; a named detailed recording with wait answers in
words judged by this device's limits while the person sees a line with Stop; a second one after 40 more boxes; THE
PROOF ROW: after a reload both named recordings are still there, read finds one by name and compare answers with the
two; keep writes After boxes.tpprof to the Library root (kind perf, share "no"); the tool never starts over the
person's own recording; set_quality hold / low ask on the card (Allow holds, restore releases, Keep changes nothing);
status.sceneBudget carries fps, memory and stalls. 41/41 on a local slot. The quality card says "Only this screen
changes." as a sentence of its own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ier3-base

# Conflicts:
#	CLAUDE-index.md
#	CLAUDE.md
#	tests/agent-eval/mock-connector.mjs
#	tests/agent-eval/requests.json
#	tools/agent/catalog.json
…tier3-base

# Conflicts:
#	CLAUDE-index.md
#	CLAUDE.md
#	src/lib/ai/personTools.js
#	src/lib/ai/showTool.js
#	tests/agent-eval/requests.json
#	tests/e2e/battery.json
#	tests/unit/showScene.test.js
#	tools/agent/catalog.json
#	tools/agent/src/listingBriefs.js
#	tools/agent/test/listing-brief-pins.json
…de:9 ruling 29 Nov; union 127,792 B core catalog)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…elte-check 273 -> 272: c13aff5's 'a.fail is possibly undefined')

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…int override), pure core + unit suite

gaitCore (groups, step choice, landing, body fit), gaitRuntime (homes, probe,
swing, hull follow with the base rule + park hook) ticked at the top of the
constraint pass so it rides the constraint chunk. constraintCore/Runtime gain a
per-tab world-point override for ik2/ikchain (never stored, never sent).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… older peer)

gait-spike-108: seven 20 s films, 1/10/50 bugs cost (ikchain vs ik2, render-only,
400-box clutter), two-tab foot agreement (distance vs clock stepping, body from the
clock vs streamed moves), and a 1.84 / base peer (legs at rest, no error). Runtime:
probe from the hull's height, settle when still, override stamp from the tick,
pass timing in gaitStats.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…battery exclusion, film trim from page start

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the base rule, ground tiers (rapier, mesh grid, plane), landing checks, reach lift, governor

The spike's userData.gait becomes a constraint kind 'walk' on the body (one list, one Inspector section, one
objectParameters message); an older peer keeps it verbatim and shows the legs at rest. The hull pose is applied by
the walk entry through constraintRuntime's base rule (the spike's second base/park copy is gone). Walk entries run
first in their stack; ik2 legs get an auto pole (knees up and out) per tab. Ground: rapier castRayAndGetNormal while
a sim runs (physics.js colliderOwnerOf, walkers and sensors skipped), the scene meshes through a 2 m grid on the
ground plane (moved meshes re-boxed once a frame), the ground plane last. Landing checks at mid-step: walkable
normal, not on an edge (against the surface's own plane), within the leg's reach; the hull lift is clamped to every
leg's reach band (gaitCore.reachLift). The governor drops the farthest walkers to legs at rest when the pass runs
over budget. A dynamic body in a running sim keeps physics on the body and still walks its legs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…gs, bones or pivot groups) + Inspector > Constraints > Walk on legs

findLegs: the skeleton (bones, else groups and meshes with parts), the low tips off the middle line, one per branch
under the hull, the foot = the joint whose two segments above it are longest less its height (the ankle, not the toe);
ik2 by default (the walk gives it an auto pole), ikchain when a 3+ joint leg's last two segments are under 60 % of it.
makeItWalk writes the walk first and one IK per leg (an existing one is kept), parked on the rest pose, one edit;
a body with no legs gets a clear line. Inspector: Add > Walk on legs; rows Rides (hull), Stride, Step height, Step
time (speed feel), Body follow, Stepping (By distance / Same feet for everyone), Find the legs again, the mover hint;
the legs' IK entries say they are the walk's feet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…WLS recipe, five eval requests

Flow: 'walkonlegs' (on / off, pace, stepping) sets a LOCAL per-tab override on the object's walk entry (off =
weight 0: the legs rest), refreshed every frame like Set Constraint Weight; no message. rig: kind walk on the body
finds the legs (planWalk, the Inspector's Make it walk without the write) inside the call's one undo step; feel
fields stride / step_height / step_time / follow / mode, ik auto | two_bone | chain; {id, stride} changes only the
feel; a part or a target is refused; list describes the legs and the feel. Recipe bug_that_crawls behind
what_can_you_do. Listing +452 B (127,792 -> 128,244), brief pin refreshed. Eval: scene-bug.json + spider-path,
bug-crawl, beetle-slower, beetle-same-feet (with mode), beetle-legs; the mock scores a rig entry's own keys.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… so it rides that chunk: export files back to 900 / 900, slim 828 / 850

walkPreset imported by both the Inspector section and rigToolsRun became its own 4.7 KB chunk (901 files, over the
900 ceiling). Its importers are now a subset of constraintEdit's, so Rollup keeps it in that chunk.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AlexZ005 and others added 8 commits November 29, 2026 19:56
…y, export) + walk-65-lab (the spike's films / cost / sync / old, on the walk record); clock mode settles onto the homes; the Add select can add the same kind twice

walk-65 (battery, 90 s): Make it walk through Inspector > Constraints > Add; a box says no legs; two tabs walk the
same gait on their own feet; Same feet for everyone agrees at rest to 0.00 mm; a Walk on Legs node off rests the legs
on both tabs; autosave + reload keeps the walk; Play walks; WALK_EXPORT=1 checks an exported game against a built tree.
Found by it: (1) clock mode had no settle, so at rest each tab kept the feet where its last mid-step landing locked
(39 mm apart); standing still now aims every landing at the exact home and, in clock mode, steps any foot more than
1 mm off; (2) the Add select kept its last pick and ThemedSelect fires on a change only, so the same kind could not
be added twice in a row (two look-ats): it is bound and cleared after each pick.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, all walking; 1.97 ms with 400 boxes), the governor recovers by a quarter a second

nodeIn and hullOf keep the node they last found per object (checked on every use: still that name, still inside),
so a frame no longer walks every body's tree once per constraint; the walk reads hips and the body straight off
their matrices after one tree update per body (getWorldPosition re-updated every ancestor on every call) and hands
the feet in one reused patch. Governor: well under budget for a second = a quarter more walkers (it was +1 per two
seconds), resetGovernor() for a new scene and the lab's rows; the lab's cost rows report walking / dropped and the
meshes the probe tested, and check the brief's limit. The fixture's default leg IK is ik2 (the preset's own).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…(a headless Pointer Lock refusal is logged, not failed) and counts leg joints only

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d the preset's name lookups are first-match like the solver's nodeIn

nodeNamed / named return Object3D | null explicitly (inferred as null, they narrowed a foot to never); the hub's
override patch documents the Walk on Legs node's walk field; the fixture's and the test's literal types.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…feet stand on a static slab only physics has (418 / 422 probes rapier's), not on the walker's own Cuboid collider round its legs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…measured frame (5 ms at 60 Hz)

The HONOR line (spike build) ran 50 walkers on ik2 at 4.88 ms a frame and held 60 fps; a fixed 3 ms would have dropped
half of them for nothing. With the frame share: ik2 10 (2.4 ms) and 50 (4.9 ms) all walk on the HONOR's numbers;
ikchain 50 (13.2 ms there) settles near 16 walking. Mac (final rows): ik2 1 / 10 / 50 = 0.08 / 0.44 / 1.71 ms,
50 + 400 boxes 1.88 ms, ikchain 50 4.57 ms, all walking. The lab prints the budget.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…at their rest height

Make it walk on the KayKit Knight (avatars pack, CC0) took the rig's IK control bones (IK-toe.l, IK-toe.r: skin
joints no vertex follows) as three legs under 'root'. findLegs now counts a bone as a joint only when it moves the
skin or carries one that does (no weighted skin: every bone, as before).

The runtime planted a foot joint AT the ground; a rigged foot joint rests inside the shoe (the Knight's toe joint
2.6 cm up), so the soles sank and bodyFit sank the hips with them. A foot plants its rest height above the ground
(max(0, home.y) x scale: a bug's tips rest at 0, unchanged).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…night, CC0)

GAIT_PART=biped: the Knight imported through the file path, Inspector > Constraints > Add > Walk on legs; B (this
build) and O (an older build, GAIT_OLD_URL) join; A and B drive it round a loop from the session clock: flat ground,
four 7 cm steps, a 28 cm landing. Per tab: steps, alternation, planted feet on the floor or a step, the climb, the
IK's miss, reach, folding (hip-to-foot under half the leg), slide over a whole stance; split flat / steps in the
output. O: the Knight and its walk entry arrive, no page or console error after it does (its boot lines are the
baseline). GAIT_CASES=biped: the same walk filmed, the camera on the hips.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@AlexZ005

Copy link
Copy Markdown
Collaborator Author

Added on top (lane 65-walk-biped, built on the Mac, pushed from the Deck): 5ff44e4 findLegs takes only bones that move the skin, a foot plants at its rest height (unit tests red without each fix); e2e14d5a04 walk-65-lab part biped + film. Verdict: a rigged humanoid walks on flat ground; on steps its legs fold for moments (IK misses up to 5.6 cm), so the release notes name 4 / 6 / 8 legs and the biped becomes a card. walk-65 (battery) stays green.

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant