[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78F3QP5XEHSX89GAMEZT4P2":3,"skill-same:01M78F3QP5XEHSX89GAMEZT4P2":42},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":6,"sourceHtmlUrl":14,"categories":15,"keywords":16,"publishedAt":17,"linkOnly":18,"markdownContent":19,"markdownBody":19,"frontMatter":20,"refName":21,"commitSha":22,"skillDirectory":23,"forksCount":24,"repositoryHtmlUrl":25,"repositoryHomepageUrl":6,"ownerHtmlUrl":26,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":27,"install":28,"resources":41},"01M78F3QP5XEHSX89GAMEZT4P2","jaxterity",null,"machinavitalis\u002Fjaxterity","machinavitalis","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F213251099?v=4","01M7861NH6NC4YJFT0FF75467Z","01M78F3MEV3RBQATHEJYFFGHV9",7,"MIT","https:\u002F\u002Fgithub.com\u002Fmachinavitalis\u002Fjaxterity\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fjaxterity\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# Jaxterity Skill\n\nYou are using Jaxterity, a JAX-native robotics stack for sim-to-silicon\ndeployment. This file is your operating manual. Read it before\nsuggesting any Jaxterity code.\n\n## What Jaxterity does\n\nJaxterity takes a robot from URDF\u002FMJCF to a calibrated simulation model\nthat matches real hardware telemetry, then hands that model to\nJaxility for deployment to embedded silicon. It is the robotics layer of a\nlarger JAX-native stack — for where it sits, what it imports, and what consumes\nit, see `AGENTS\u002FCONTEXT.md`.\n\n## When to use Jaxterity\n\nUse it when the user is:\n\n- Importing a robot URDF or MJCF and wanting to simulate it in JAX.\n- Calibrating a simulation model against real robot telemetry.\n- Writing a controller (WBC, MPC, code-as-policies) for a robot.\n- Preparing a calibrated model for embedded deployment (the handoff to\n  Jaxility).\n- Running parity diagnostics between a simulation and a real robot.\n\n## When NOT to use Jaxterity\n\n- **Pure simulation with no robotics structure.** Use Jaxonomy directly.\n  Jaxterity is for things with joints, contacts, and actuators.\n- **Training large policies (PPO, SAC, BC, diffusion, VLA).** Use K-Sim,\n  RSL-RL, LeRobot, or another training library; expose a Jaxterity\n  `Robot` as a Gymnax-compatible environment to the trainer.\n- **Cross-compilation or embedded deployment.** That is Jaxility's\n  job. Jaxterity produces the calibrated model; Jaxility produces\n  the binary.\n- **Pure rigid-body kinematics with no actuation or sysid.** Use PyRoki\n  directly. Jaxterity layers on top.\n- **General-purpose acausal modeling (HVAC, batteries, fluids).** Use\n  Jaxonomy's `jaxonomy.acausal` directly.\n\n## Decision tree for the typical workflow\n\nWhen the user asks for help with Jaxterity, route through this tree\nbefore writing code:\n\n1. **Does the user have a URDF or MJCF in hand?**\n   - Yes, URDF → `jaxterity.robot.from_urdf(path)`.\n   - Yes, MJCF → `jaxterity.robot.from_mjcf(path)`.\n   - No → Suggest starting with a reference robot from\n     `jaxterity.zoo` (Cartpole, Crazyflie, SO-100, Berkeley Humanoid\n     Lite). The zoo robots come with URDF, calibrated parameters, and\n     a demo script.\n\n2. **Does the user have telemetry from the real robot?**\n   - Yes → Run the matching sysid recipe (see \"Sysid recipes\" below)\n     to produce a `CalibratedRobot`.\n   - No → Use the uncalibrated robot for simulation, but warn the user\n     that sim-to-real parity is not guaranteed.\n\n3. **What is the user trying to do with the (possibly calibrated) robot?**\n   - Simulate a trajectory → `robot.to_diagram()`, then use\n     Jaxonomy's `simulate()`.\n   - Design a controller → Use the WBC primitives in\n     `jaxterity.wbc` or the layered API in `jaxterity.policies`.\n   - Train a policy → Expose the robot as a Gymnax env; hand to the\n     user's training stack.\n   - Deploy to hardware → Hand `robot.attestation_handle` to\n     Jaxility.\n\n4. **Is the user comparing simulation to real data?**\n   - Use `jaxterity.diagnostics.parity_report(sim_traj, real_traj)`.\n\n## Core API surface, in order of how often agents will use it\n\n### Robot ingestion\n\n```python\nfrom jaxterity.robot import from_urdf, from_mjcf\n\nrobot = from_urdf(\"path\u002Fto\u002Frobot.urdf\")\n# robot is uncalibrated. Default actuators are IdealTorqueActuator\n# per joint; default sensors are IdealEncoder per joint.\n```\n\n### Attaching realistic actuators and sensors\n\n```python\nfrom jaxterity.actuators import DCMotorWithFriction\nfrom jaxterity.sensors import IMU, JointEncoder\n\nrobot = robot.with_actuator(\n    joint=\"shoulder_left\",\n    actuator=DCMotorWithFriction.uncalibrated(),\n)\nrobot = robot.with_sensor(IMU.uncalibrated(mount=\"base_link\"))\nrobot = robot.with_sensor(JointEncoder.uncalibrated(joint=\"shoulder_left\"))\n```\n\n`with_actuator` and `with_sensor` return new robots; they do not\nmutate.\n\n### Loading telemetry\n\n```python\nfrom jaxterity.data import load_telemetry\n\ntelemetry = load_telemetry(\"path\u002Fto\u002Frecording.parquet\")\n# Validates schema, units, and frames at load time. Raises SchemaError\n# on mismatch.\n```\n\n### System identification\n\n```python\nfrom jaxterity.sysid import actuator, inertial, full_body, contact\n\n# Per-actuator fit from voltage-ramp telemetry:\nresult = actuator(telemetry, robot, actuator=\"DCMotorWithFriction:shoulder_left\")\ncalibrated_robot = result.apply_to(robot)\n\n# For full-body sysid:\nresult = full_body(telemetry, robot)\ncalibrated_robot = result.apply_to(robot)\n```\n\nAll recipes return a `SysidResult` with fitted parameters, covariance,\nresiduals, warnings, and `apply_to(robot) -> Robot`. **Do not unpack\nthe result as a tuple.** It is not a tuple.\n\n### Simulation\n\n```python\nimport jaxonomy\n\ndiagram = calibrated_robot.to_diagram()\ncontext = diagram.create_context()\nresults = jaxonomy.simulate(diagram, context, stop_time=5.0)\n```\n\nThe diagram is a Jaxonomy `Diagram`; everything Jaxonomy can do with a\n`Diagram` (autodiff, `fit_parameters`, `linearize`, `simulate_batch`)\nworks on a Jaxterity-produced diagram.\n\n### Whole-body control\n\n```python\nfrom jaxterity.wbc import (\n    PostureTask, EndEffectorTask, WBCSolver, solve_whole_body,\n    contact_jacobian, inverse_dynamics,\n)\n\nmodel = calibrated_robot.build_system()._mjx_model\n\n# Tasks are frozen dataclasses; Cartesian tasks take closures over q so the\n# kinematics recompute per tick. Weights set a soft hierarchy (10x weight\n# ~ 10x tighter residual); there is no strict-priority cascade.\ntasks = (\n    PostureTask(name=\"home\", q_desired=q_home, weight=0.1),\n    EndEffectorTask(\n        name=\"reach\",\n        pose_fn=lambda q: hand_position(model, q),          # (3,)\n        jacobian_fn=lambda q: contact_jacobian(model, q, hand_body_id),\n        x_desired=target_position_world,                     # frame: world\n        weight=10.0,\n    ),\n)\n\n# Kinematic solve: best qdd for the task stack.\nqdd = WBCSolver(tasks=tasks).solve(q, qd, n_dof=model.nv)\ntau = inverse_dynamics(model, q, qd, qdd)   # fixed-base torque command\n\n# Dynamics-consistent solve (floating base \u002F contacts): qdd, contact\n# forces, and realizable torques in one QP — see jaxterity.wbc.dynamics.\nsol = solve_whole_body(model, q, qd, tasks, contacts=stance_contacts)\ntau = sol.tau\n```\n\n### Layered code-as-policies API\n\n```python\nfrom jaxterity.policies import S1, S2, S3, S4\n\n# S1 — high-level\npolicy = S1(robot=calibrated_robot)\npolicy.pick(object_handle, pose=target_pose)\n\n# S4 — raw torque\npolicy = S4(robot=calibrated_robot)\npolicy.apply_torque(joint=\"shoulder_left\", tau=0.5)\n```\n\nLower layers are always accessible from higher layers as escape\nhatches. Reach for the highest layer that does the job.\n\n### Deployment handoff\n\n```python\n# Hand the attestation handle to Jaxility:\nhandle = calibrated_robot.attestation_handle\n# handle is a stable content hash; see Jaxility's SKILL.md for\n# how to consume it.\n```\n\n## Frame and unit discipline\n\nThis is the single most common failure mode in robotics code. Watch\nfor it:\n\n- **Every pose, velocity, force, and wrench carries an explicit `Frame`.**\n  If you write `pos = jnp.array([1.0, 2.0, 3.0])` in Jaxterity code and\n  hand it to a public API, you have a bug. Wrap it as\n  `FramedQuantity(Position(pos), frame=Frame(\"world\"))`.\n- **SI units throughout.** Radians, meters, seconds, kilograms,\n  newtons, pascals, kelvins, amperes. Telemetry loaders convert at\n  the boundary. If you find yourself multiplying by `np.pi\u002F180` inside\n  Jaxterity code, you have a bug — the conversion should have happened\n  at load time.\n\nThe error messages from `FrameError` and `UnitError` are structured and\nshould tell you how to fix the issue. Read them carefully before\nguessing.\n\n## Naming conventions\n\nMatch the field's standard usage:\n\n- `q`, `qd`, `qdd` — joint positions, velocities, accelerations.\n- `tau` — joint torques.\n- `T_target_source` — transform from `source` frame to `target` frame.\n  `T_world_body @ p_body = p_world`.\n- `J` — Jacobian. `J_lin`, `J_ang` for linear and angular parts.\n- `wrench`, `twist` — force-torque and linear-angular velocity pairs.\n- `com`, `I` (yes, capital I) — center of mass and inertia tensor.\n\nThese names will look unpythonic. They are correct. Do not rename them\nto `joint_positions`, `joint_velocities`, etc. — the names match the\nliterature and the rest of the robotics ecosystem.\n\n## What you must NOT do\n\n- **Re-implement physics.** Jaxterity wraps MJX (forward kinematics,\n  forward dynamics, contact, collision). Do not write your own forward\n  dynamics, contact solver, or Featherstone implementation. (PyRoki is\n  reserved for a future IK use case — not currently wrapped; it is not on\n  PyPI, so install it from source if you need it.)\n- **Treat `SysidResult` as a tuple.** Always use `result.apply_to(robot)`\n  or access named fields.\n- **Mutate a `Robot`.** Always return a new one (`robot.with_...`).\n- **Compare simulated and real trajectories without a parity report.**\n  Use `parity_report`. It will tell you which parameter is the\n  likely culprit.\n- **Bypass the attestation handle for deployment.** Jaxility\n  will refuse a `CalibratedRobot` without a valid handle.\n- **Use bare arrays for poses on public APIs.** Use `FramedQuantity`.\n- **Use degrees, RPM, or imperial units anywhere except in telemetry\n  loaders.**\n\n## Reference robots in the zoo\n\nEach comes with URDF, calibrated parameters, telemetry, and a demo\nscript. When a user wants a starting point, point them at the closest\nmatch:\n\n| Robot                       | Use when…                                  |\n|-----------------------------|--------------------------------------------|\n| `jaxterity.zoo.cartpole`    | Learning the workflow; minimum viable demo |\n| `jaxterity.zoo.crazyflie`   | Quadrotor \u002F aerial; floating-base body + thrust-wrench model (`thrust_dynamics`), NMPC, STM32-class chip |\n| `jaxterity.zoo.so100`       | 6-DoF manipulator, LeRobot ecosystem       |\n| `jaxterity.zoo.unitree_g1` | Bipedal humanoid (29-DoF); `load(floating_base=True)` for a free base, WBC, Cortex-A class chip |\n\n## Sysid recipes — quick reference\n\n| Recipe                  | Telemetry needed                           | Identifies                          |\n|-------------------------|--------------------------------------------|-------------------------------------|\n| `sysid.actuator`        | Voltage-command + position response        | Motor model (Ks, Kv, Ka, friction)  |\n| `sysid.inertial`        | Chirp excitation + mocap                   | Link masses, COMs, inertia tensors  |\n| `sysid.full_body`       | Joint trajectory (no mocap required)       | Full kinematic parameter set        |\n| `sysid.contact`         | Impact data (force\u002Ftorque + position)      | Friction coefficients, stiffness    |\n\nEach recipe documents its required telemetry schema in its docstring.\nRead the docstring before calling.\n\n## Picking a block: the library is a recipe library\n\nEach block carries its identifiable parameters, the capture protocol that\nidentifies them (`block.sysid_protocol`), and a `validate()` that scores a\ntrace. Choosing the right block is therefore choosing the right *experiment*,\nwhich is why the table below is organized by what you have, not by what the\npart is called. **Everything in this table is sim-tier** — the models and\nfitters are exercised against synthetic traces only (see `KNOWN_GAPS.md`\n§Calibrated actuator \u002F sensor libraries).\n\n| You have | Use | It identifies |\n|---|---|---|\n| A geared joint, one encoder | `HarmonicDrive` | Ratio, direction efficiency, velocity-domain backlash proxy |\n| A geared joint, motor **and** joint encoders | `PositionalBacklash` | True angular play + mesh stiffness (`lost_motion` cross-checks it model-free) |\n| Torque + speed on both sides, both power directions | `Gearbox` | `η_f`, `η_b` (the reciprocal one — back-driving costs *more*), load-independent loss |\n| A belt axis that rings | `BeltDrive` | Pulley ratio, belt stiffness\u002Fdamping (`belt_resonance_hz` tells you where to chirp) |\n| A screw axis | `LeadScrew` | Lead kinematics, two-quadrant efficiency; `is_backdrivable` answers from geometry |\n| A low-ratio BLDC leg joint | `QuasiDirectDrive` | N²-reflected inertia, the speed-collapsing torque envelope |\n| An open-loop stepper | `Stepper` | Holding\u002Fdetent torque, speed droop; `pull_out_margin` is the number to plan against |\n| A pneumatic cylinder | `PneumaticCylinder` | Valve conductance, critical ratio, dead volumes |\n| A current reading you are turning into torque | `CurrentSense` | Gain, offset, bandwidth, quantization — before they become a wrong `K_t` |\n| A servo reporting whole-degree temperatures | `TemperatureSensor` | Offset, sensor lag, step — and `quantization_floor` says what a fit *cannot* resolve |\n| A bus between controller and joint | `BusChannel` | Latency, jitter, drop rate (`phase_lag_deg`: 5 ms at 10 Hz is 18° a fit will call damping) |\n\nTwo **networks** rather than devices, built on Jaxonomy's acausal layer\n(`pip install 'jaxterity[acausal]'`):\n\n```python\nfrom jaxterity.physics import PowerTree, LEKIWI_POWER_TREE, dc_solve\n\n# Closed-form DC operating point — fast enough for a duty study.\nsol = dc_solve(LEKIWI_POWER_TREE, {\"shoulder_pan\": 1.5, \"wrist_roll\": 1.5})\n# The electrically farthest servo sees the lowest voltage at equal current:\nsol.load_voltage[\"wrist_roll\"] \u003C sol.load_voltage[\"shoulder_pan\"]  # True\n\ntree = PowerTree.build(LEKIWI_POWER_TREE)  # the compiled acausal system\n```\n\n- `jaxterity.physics.power_tree` — pack (SoC-dependent OCV, `CellAging`),\n  per-branch harness resistance, DC-DC rails, charger. Use `dc_solve` for a\n  duty study; build the network when you need the transient. It identifies the\n  *sum* `R0 + R1 + R_main` from a rail trace and refuses to split it.\n- `jaxterity.physics.thermal_network` — two-node winding\u002Fhousing per servo,\n  driver nodes, inter-servo conduction. `steady_state_temperatures` is the\n  closed-form path; `fit_two_node` needs *both* nodes measured.\n\nAnd three things that shape a plan rather than a model:\n\n- `jaxterity.physics.compliance` — `zmp_margins(..., suspension=...)` subtracts\n  the base tilt from a tip-over margin; `fit_coast_down` gets rolling\n  resistance from one coast.\n- `jaxterity.aging` — fit friction\u002Fbacklash growth from a unit's re-fit\n  history, project to a threshold, replay as a `DriftChannel`.\n- `design_probe(..., stability=StabilityConstraint(base=...))` — the Fisher\n  ascent, constrained to stay inside the tip-over floor.\n\n## Object grounding — identify what the robot is holding\n\nA camera cannot see a held object's mass or centre of mass; the arm's own\njoint telemetry can (the calibrated arm is the force scale). Sim-tier today\n(C-120) — the loopback proves recovery; a real capture replays through\n`ReplayLink`.\n\n```python\nfrom jaxterity import zoo\nfrom jaxterity.objects import (\n    RigidPayload, PayloadLoopbackLink, identify_payload,\n    payload_identifiability,\n)\n\nrobot = zoo.calibrated(\"so100\")\nball = RigidPayload(attach_link=\"gripper_frame_link\", mass=0.1)  # prior\n\n# 1. ALWAYS check the probe first — a quasi-static probe cannot excite\n#    what you are asking for, and the report says so before anything moves.\nreport = payload_identifiability(robot, ball)          # default coast probe\nreport.raise_if_unidentifiable(\"payload probe\")\n\n# 2. Fit. fitted keys are leaf-shaped (\"payload.mass\", \"payload.com\");\n#    covariance\u002Fwarnings are per component (\"payload.com[0]\", ...).\nlink = PayloadLoopbackLink(robot, ball, true_mass=0.15)  # or ReplayLink(capture)\nresult = identify_payload(robot, link, ball)\nresult.interval()                                       # per-component CIs\n\n# 3. Per-object attested twin: same arm + different object = different handle.\nfrom jaxterity.twin import so101_twin\ntwin = so101_twin(\"SN-001\").with_payload(ball, result)\n```\n\nFit subsets honestly: `fit=(\"mass\",)` when the articulation cannot see the\nCoM (low-DOF robots), `fit=(\"mass\", \"com\", \"inertia_diag\")` only with a rich\nprobe. `RigidPayload` priors are the LM start *and* the linearization point —\na zero prior mass is refused. The grasp is a rigid weld (no compliance\nmodel); see `KNOWN_GAPS.md` §Object-side identification.\n\nLet the robot *choose* its probe (differentiable experiment design, C-121):\n\n```python\nfrom jaxterity.objects import design_probe, probe_information\n\nprobe = design_probe(robot, ball)               # D-optimal ascent, in-limits\n# probe -> fit -> next probe: target what the last fit left widest\nprobe2 = design_probe(robot, ball, prior_covariance=result.covariance)\nprobe_information(robot, ball, probe)           # rank candidate probes\n```\n\nLocal ascent over coast probes only (pose + kick — not torque trajectories);\ndeterministic; second-order autodiff makes it minutes-scale on 6-DOF arms.\n\nContact parameters from toss\u002Fsqueeze probes (C-122 — smooth\u002Fevent path,\nno MJX contact-solver gradients):\n\n```python\nfrom jaxterity.objects import identify_restitution, identify_squeeze\n\nr = identify_restitution(impact_times)       # e (+ drop height if unknown)\ns = identify_squeeze(deform, rate, force)    # k (N\u002Fm), c (N·s\u002Fm²)\n```\n\nBoth refuse under-determined records by name (one impact can't pin two\nparameters; a quasi-static squeeze can't resolve damping) and pin\nunphysical fits at their bounds (0 ≤ e ≤ 1, k\u002Fc ≥ 0).\n\n### Seed the fit with what the object *looks* like (C-132)\n\nInertial identification has bad local minima; a vision model's guess is the\ncheapest way out. Declare it, and the fit records that you did:\n\n```python\nfrom jaxterity.objects import SemanticPrior\n\nprior = SemanticPrior.from_material(          # or explicit mass_kg=(lo, hi)\n    \"small plastic tote, ~10x8x6 cm\", \"plastic\", (0.10, 0.08, 0.06),\n    source=\"vlm\u002Fclaude-opus-5\", confidence=0.6,\n)\nresult = identify_payload(robot, link, ball, prior=prior)\nresult.recipe_name          # \"objects.payload+semantic_prior\" — declared\nresult.warnings             # the prior's label\u002Fsource\u002Fbracket, and any pin\n```\n\nA parameter that ends pinned to a prior bound is named as such: that value is\nthe guess, not the measurement. Widen the bracket rather than lowering\n`confidence` — the bracket is what actually bounds the search.\n\n### Enroll an object before committing to it (C-132)\n\nThe whole arc — perceive, vet the probe under the prior's *worst case*, heft,\nweld the object onto the twin, then vet the technique on the loaded unit:\n\n```python\nfrom jaxterity.checkup.stability import LEKIWI_BASE, StabilityConstraint\nfrom jaxterity.objects import enroll_object\nfrom jaxterity.oracle import hold_plan\nfrom jaxterity.selfcheck import SafetyEnvelope\n\nTUCKED = (0.0, -1.2, -0.8, 0.0, 0.0, 0.0)     # declare a pose with margin\nenrollment = enroll_object(\n    twin, link, ball, prior,\n    techniques=[hold_plan(\"gentle\", twin, [0.05] * 6, n_steps=30, dt=0.005,\n                          q0=TUCKED),\n                hold_plan(\"brisk\", twin, [0.3] * 6, n_steps=30, dt=0.005,\n                          q0=TUCKED)],\n    envelope=SafetyEnvelope(temp_ceiling_k=343.15, bus_floor_v=11.0),\n    stability=StabilityConstraint(base=LEKIWI_BASE), pose_rad=TUCKED,\n)\nenrollment.technique          # the vetted way to do the job\nenrollment.twin_handle        # loaded unit != empty unit\n```\n\n`enroll_object` **refuses** (raises) when no probe clears the tip-over floor\nunder the prior's heaviest object — re-pose, don't probe slower (speed moves\nthe margin under 1 mm from a tucked pose; the pose moves it tens of mm).\nWorked end to end in `examples\u002Fscene_enrollment_lekiwi.py`.\n\n## The oracle — ask this unit's physics a question (C-130)\n\nMPC simulates to choose; the gate simulates to permit; the oracle simulates to\n**answer**. Use it when a planner needs a number (\"do I overheat holding this\nfor the next minute?\", \"which of these keeps the most tip-over margin?\"):\n\n```python\nfrom jaxterity.oracle import hold_plan, simulate_plan, what_if\nfrom jaxterity.selfcheck import SafetyEnvelope\nfrom jaxterity.checkup.stability import LEKIWI_BASE\n\nplan = hold_plan(\"carry it\", twin, [0.4] * twin.n_servos, n_steps=100, dt=0.005)\nanswer = simulate_plan(twin, plan, SafetyEnvelope(temp_ceiling_k=343.15),\n                       base=LEKIWI_BASE, n_draws=16)\nanswer.outcome             # worst case over the posterior: pass\u002Fderate\u002Fveto\nanswer.pass_fraction       # how much of that is *uncertainty*, not physics\nanswer.margin(\"tip_over\")  # per-constraint band: worst, median, [lo, hi]\n\nbest = what_if(twin, [plan_a, plan_b], envelope, base=LEKIWI_BASE).best\n```\n\nRead both numbers. A veto at `pass_fraction ≈ 0` is physics; a veto at\n`pass_fraction ≈ 0.5` means this unit's fit is too loose to tell — measure\nbefore you derate. A twin with no attached fit covariance reports a zero-width\nband and says so; a `dt` too coarse for the fixed-step integrator raises rather\nthan returning a margin computed from `nan` (a moving arm wants `dt \u003C= 0.01`).\n\n## Runtime assurance — the reflex (C-129)\n\n`preflight` and `SafetyMonitor` decide *whether* a command may run.\n`ReflexController` decides *what actually reaches the actuators*, every tick,\nfrom the same declared envelope:\n\n```python\nfrom jaxterity.selfcheck import ReflexController, SafetyMonitor, SimplexSwitch\n\nreflex = ReflexController(twin, envelope)\ndecision = reflex.filter(q, qd, T, policy_tau)   # clamp any policy's command\ndecision.tau, decision.binding_constraint, decision.engaged\n\nswitch = SimplexSwitch(SafetyMonitor(twin, envelope), reflex)\nstep = switch.step(prediction, q, qd, T, policy_tau)\nstep.mode        # \"pass\" | \"derate\" | \"reflex\" (userland dropped, brake wins)\n```\n\nBuild both from the *same* `Twin` — `SimplexSwitch` refuses a monitor and a\nreflex bound to different unit versions. Check `decision.feasible`: when a stop\nneeds more braking torque than the thermal budget allows, the stop wins by\ndeclared priority and the decision names the row that yielded. No WCET has been\nmeasured (see `KNOWN_GAPS.md` §Per-unit twin).\n\n## MCP tools available\n\nExposed by `jaxterity mcp serve` (the `[mcp]` extra). Handles are created once\nand referenced by id (ADR-008), so artifacts are not re-passed per call:\n\n- **Layered API** — `create_robot_handle(robot_name, q0) -> \"@\u003Chash>\"`,\n  `list_handles`, `release_handle`, `clear_registry`, then `s1_reach` \u002F\n  `s1_pick` \u002F `s1_walk_to`, `s2_move_joint` \u002F `s2_track_trajectory`,\n  `s3_add_posture_task` \u002F `s3_set_task_priority` \u002F `s3_step_wbc`,\n  `s4_read_encoder` \u002F `s4_read_velocity` \u002F `s4_apply_torque` \u002F `s4_joint_names`.\n- **Oracle verbs** — `create_twin_handle(unit, serial) -> \"@twin-\u003Chash>\"`,\n  `twin_info`, `list_twin_handles`, `release_twin_handle`,\n  `clear_twin_registry`, then `oracle_simulate_plan`, `oracle_what_if`,\n  `oracle_identify_payload` (C-131). Every answer carries the twin's\n  attestation handle and per-constraint margins with their band; an\n  identification also carries its transport (`loopback-simulated` vs a real\n  replay), so a simulated answer cannot read as a measurement.\n- `ping` — health check.\n\n## Pitfalls & idioms (from consumer sessions)\n\n- **`sysid.recipes.identifiability_from_jacobian` is generic.** It's a plain\n  SVD + condition-number \u002F rank check on any `(n_obs, n_params)` sensitivity\n  matrix (returns an `IdentifiabilityReport`) — not bound to jaxterity classes.\n  Build the Jacobian with `jax.jacfwd` of *any* forward model and pass it in to\n  answer \"is my excitation rich enough?\" without re-implementing the algebra.\n- **Mesh-free zoo models render blank.** The vendored dynamics models (G1,\n  SO-101) are inertials-only (`ngeom≈0`), so `mujoco.Renderer` on\n  `robot.to_mjcf()` yields empty frames. Replay the simulated `qpos(t)` through\n  the full-mesh scene (`examples\u002Fassets\u002F\u003Crobot>_mjcf\u002F`) with\n  `jaxterity.examples._robot_render.TrajectoryRenderer` (FK only). Check `ngeom`\n  first.\n- **Prefer `zoo.calibrated(\"so100\")`** (real closed-loop calibration) over the\n  uncalibrated `zoo.load`. There is no LeKiwi mobile-base model — for\n  mobile-manipulation, author the planar kiwi-drive base as a jaxonomy\n  `LeafSystem` and compose it with the MJX arm.\n- **`Twin.rollout` integrates with a fixed-step RK4.** A free-swinging arm\n  diverges at `dt = 0.02` *even under zero torque* (gravity alone); use\n  `dt \u003C= 0.01` and raise `n_steps` for the horizon you want. The oracle raises\n  on a diverged rollout rather than returning margins computed from `nan`, but\n  a bare `rollout` will hand you the `nan`s.\n- **Pass `dynamics=` on any hot loop.** `Twin.state_derivative()` builds an MJX\n  model per call when you don't; build it once\n  (`f = twin.robot.functional_dynamics()`) and `jax.jit` the step, or use\n  `Twin.compiled_rollout(dt)`. This is the difference between microseconds and\n  a large fraction of a second per step.\n- **A free arm's start pose decides its tip-over margin**, not its speed. The\n  zoo SO-100's zero pose is extended forward — on a mobile base that is the\n  pose that tips it. Declare a tucked pose for anything ZMP-gated\n  (`(0, -1.2, -0.8, 0, 0, 0)` clears the LeKiwi floor with room).\n\n## When to escalate to the human\n\n- Frame ambiguity that cannot be resolved from the URDF (e.g., the\n  IMU mount orientation is not documented).\n- Telemetry that fails schema validation in a way that suggests\n  hardware miscalibration, not file format.\n- Sysid residuals above the documented threshold (`SysidResult` will\n  flag this; the user needs to inspect).\n- Attestation handle mismatch between calibration and deployment —\n  this is always a human decision; never silently regenerate.\n- Anything involving safety-critical deployment (robotic surgery,\n  automotive, aerospace). Jaxterity's compliance affordances are\n  scaffolding, not certification.\n\n## Where to find more\n\n- `AGENTS\u002FCONTEXT.md` — the contributor-facing architectural orientation.\n- `AGENTS\u002FPATTERNS.md` — coding conventions.\n- `AGENTS\u002FDECISIONS.md` — ADRs explaining why things are the way they are.\n- `docs\u002Fquickstart.md` — 10-minute guided tour.\n- `examples\u002Fnanojaxterity\u002F` — the end-to-end Cartpole demo.\n- The zoo entry READMEs — per-robot details, source, license.\n",{},"main","0d550f1208cf5c39e7acd7bda242809b569862ca",".claude\u002Fskills\u002Fjaxterity",0,"https:\u002F\u002Fgithub.com\u002Fmachinavitalis\u002Fjaxterity","https:\u002F\u002Fgithub.com\u002Fmachinavitalis","2026-11-09 16:29:38",{"source":7,"skillName":5,"commands":29,"prompt":39,"zipAvailable":40},[30,33,36],{"tool":31,"command":32},"npx","npx skills add machinavitalis\u002Fjaxterity --skill jaxterity",{"tool":34,"command":35},"bunx","bunx skills add machinavitalis\u002Fjaxterity --skill jaxterity",{"tool":37,"command":38},"pnpm","pnpm dlx skills add machinavitalis\u002Fjaxterity --skill jaxterity","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmachinavitalis\u002Fjaxterity\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fjaxterity\u002FSKILL.md",true,[],[43],{"skillNo":44,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":6,"repositoryNo":11,"starsCount":12,"licenseSpdxId":13,"licenseFileUrl":45,"sourceHtmlUrl":46,"categories":47,"keywords":48,"publishedAt":17},"01M78F3W56KERE1WX02E6Y9WYA","https:\u002F\u002Fgithub.com\u002Fmachinavitalis\u002Fjaxterity\u002Fblob\u002Fmain\u002FLICENSE.md","https:\u002F\u002Fgithub.com\u002Fmachinavitalis\u002Fjaxterity\u002Fblob\u002Fmain\u002FSKILL.md",[],[]]