Skip to content

Bodies: optional acting layer, LeRobot driver (FineART-VLA), rules from priors - #8

Merged
FMXExpress merged 1 commit into
mainfrom
claude/optimistic-allen-i3bd3d
Oct 31, 2026
Merged

FMXExpress merged 1 commit into
mainfrom
claude/optimistic-allen-i3bd3d

Conversation

@FMXExpress

Copy link
Copy Markdown
Owner

memagent can now act as well as talk, through an optional body next to the engine. [body] driver=none is the default, so nothing changes for chat-only use. Details are in body/README.md.

Mem.Body

TBody takes a task in language, streams events (subtask, observation, done, failed) and can be stopped after any event. Drivers:

driver
mock in-process; "A, then B" runs as subtasks A and B; optional plans (goal => step; step) stand in for a policy that plans
lerobot body/lerobot_body.py: any LeRobot policy through LeRobot's documented RolloutController (start, autosteer / set_task, reset, events). A policy that plans in language (FineART-VLA, supports_text_queries) gets the task as an autosteer goal, and each applied subtask is reported. Other policies get it via set_task.
process any program speaking the same JSON-lines protocol

Agent

  • Commands:
    • /do <task> shows what will run and which rules apply.
    • /confirm runs it.
    • /cancel drops it.
    • [body] confirm=1 is the default.
  • What the body receives: the task, the facts RAG finds for it, and the rules: active negative priors whose scope includes the body.
  • Rule checks:
    • A task containing a step that breaks a rule is refused before anything moves.
    • Every reported subtask is checked too (BreaksPrior), and a match stops the body.
    • This is documented as a backstop, not a safety system: a body announces a subtask as it starts it, and hard limits belong in the robot.
  • Memory: every body event is stored in the conversation (role body). Finished "put X in Y" steps become facts ("The mug is in the left cabinet."), which RAG and the memory tiers learn.
  • Prior scopes:
    • chat: answering rules.
    • all: rules about handling things, picked up from chat.
    • body: set with /prior --body; these stay out of the chat prompt.
    • Existing databases get the scope column by ALTER TABLE.
  • Packaging: the release packages ship body/.

Tests

  • make test: pass. priors_test now has 39 checks, including scope and BreaksPrior.
  • scripts/e2e_body.sh: pass with both the mock driver and lerobot_body.py --stub, the latter over the real process protocol.
    • /do asks first, /cancel drops, and steps become facts.
    • A forbidden task is refused.
    • A planned forbidden subtask stops the body, and nothing runs after it.
    • Body-only rules stay out of the chat prompt, and the /status line is correct.
  • scripts/e2e_priors.sh: pass.

Not tested: the real LeRobot path. It's written to LeRobot's documented API, read from its source at main, but it hasn't run on a robot or simulator; that needs a CUDA machine. lerobot/fineart_vla_base was trained on a 14-joint ALOHA, and its weights are under the Gemma license.


Generated by Claude Code

… FineART-VLA

Mem.Body: a TBody seam next to TEngine ([body] driver=none by default).
A body takes a task in language and streams events (subtask, observation,
done, failed) and can be stopped after any of them. Drivers: mock
(in-process, with optional plans standing in for a planning policy),
lerobot (body/lerobot_body.py: any LeRobot policy through its
RolloutController; a policy that plans in language, FineART-VLA, gets the
task as an autosteer goal and reports each subtask) and process (any program
speaking the JSON-lines protocol).

The agent: /do <task>, /confirm, /cancel. The task goes with the facts RAG
finds and the rules: active negative priors that apply to a body. A task
with a step that breaks a rule is refused; a reported subtask that breaks
one stops the body (a backstop, documented as such). Every event is stored
in the conversation, and finished "put X in Y" steps become facts.

Priors get a scope: chat, all (rules about handling things, picked up from
the chat) or body (/prior --body). Body-only rules stay out of the chat
prompt. BreaksPrior matches a step against a rule.

Tests: priors_test (39 checks, now with scope and BreaksPrior),
scripts/e2e_body.sh (the mock and the LeRobot driver's --stub over the real
process protocol). The LeRobot path itself is written to its documented
RolloutController API and has not been run on a robot or simulator.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NPVFJHeBeotAKkU7EPbTgn
@FMXExpress
FMXExpress merged commit 0c93cdc into main Oct 31, 2026
2 checks passed
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.

2 participants