Skip to content

v0.5.4

Latest

Choose a tag to compare

@github-actions github-actions released this 29 Nov 19:19

Lockwire 0.5.4 moves the lock format to 0.8 so a lock cut short by a bad copy or merge is refused instead of read as GO, keeps what you declared when you update a lock from its model, and refuses a lock whose model file is missing. It fixes a long run of wrong or misleading messages on legged, wheeled and closed-loop robots, and the app notices when your files change outside it. Read "Before you upgrade": several changes can turn a green CI run red or change an exit code. The guide "Upgrading Lockwire" walks through them.

Before you upgrade

  • Lock format 0.8. Any edit by 0.5.4 (an edit, declare, add, start --force) saves an older lock as 0.8 and ends it with the line lockfile_end: complete. From then on Lockwire 0.5.3 and earlier refuse that lock and tell you to upgrade (exit 2). Upgrade every place that reads the lock first: teammates, CI, and the version pinned in .pre-commit-config.yaml.
  • Reading or checking never changes a file. Locks from 0.2 to 0.7 load and give the same verdict until something writes to them.
  • One write is refused: to a 0.2 to 0.4 lock whose model has a joint with an empty <axis/>, because 0.5 and later read that as 1 0 0, not 0 0 1, and the check would change. Lockwire says so, writes nothing and prints the lockwire upgrade command. That command writes a 0.8 copy beside the old file, never over it, and prints what changes. It now also takes a 0.7 lock.
  • A 0.8 lock that lost its last line is refused as cut short: exit 2, no verdict, and "lockwire.yaml looks cut short: its last line, lockfile_end: complete, is missing. Restore it from git. If you removed that line yourself, put it back as the last line." A section typed after that line is refused with "Move lockfile_end: complete to the end of the file."
  • A lock that names a model file which is missing, is a folder, or cannot be read is now refused. lockwire check, report, accept, the app and the Assistant give no verdict: exit 2 and one line, "the model file X is missing, so there is no verdict; put it back, or re-lock from the model you have with lockwire start --force". Add --out naming the lockfile when it is not lockwire.yaml in the current folder. Before, such a lock was scored without its model. plan still answers. A lockwire declare that would point the lock at such a file is refused too, with exit 2 and nothing written. A lock that never named a model file is unchanged.
  • lockwire start --force now updates the lock from the model and keeps what you declared (battery, rails, devices, wires, budgets, accepted findings, link and joint facts, the robot's name). lockwire start --force --fresh gives the old behaviour: a fresh lock, nothing kept. A script that relied on the full overwrite must add --fresh. --force over a lock Lockwire cannot read, or over a robot designed in Lockwire that has parts (no model file), now stops and asks for --fresh; 0.5.3 overwrote both.
  • lockwire start MODEL --force --mass X on a lock that already has a mass budget sets the budget to X and says so.
  • The MCP tools check_contract and check_model no longer return the forces block by default (about 5,000 to 35,000 characters on the example robots). An agent that read it now passes include_forces: true. The verdict, findings and counts are unchanged, and the command line's JSON still carries forces.
  • The agent tools that change a lock (add_link, add_joint, add_shape, add_param, set_dimension, attach_part, add_device, delete_part, rename) now refuse apply=true without expected_revision. Call the tool without apply first: its reply carries the revision to pass. review_value without it only previews.
  • A witness that is the name of an AI assistant or model is now refused whenever anything is written, on the command line and through the agent tools: exit 2 from add, declare, accept and review, exit 1 from lockwire start, an error naming witness from an agent tool. A default witness set to such a name in your Lockwire config stops add, declare, accept and review when they take the default, until you change it or pass --witness with a person's name. lockwire start --mass does not take such a default: it records the computer's user name as the witness. Names already in a lock still load.
  • An empty --witness "" on lockwire start MODEL --mass X is now refused ("--witness is missing"); it used to sign with your default witness or the computer's user name.
  • Adding or changing a shape whose size, radius or length is zero or negative, or a moving joint whose axis is all zero, is now refused with exit 2. Before, it was written and check still said GO. A lock that already holds one still opens.
  • Under a gate option the JSON of lockwire check changes: with --baseline, verdict is GO instead of GO_WITH_NOTES when nothing is new, and headline changes; with --strict or --max-not-scored, headline changes. counts and the findings do not change, and nothing changes without these options.
  • An output file named .yaml or .yml is now refused with exit 2 on check --write-baseline and on --out of export, even when it is not a lockfile. Name it something else, for example baseline.json. export into a folder and record-servos also exit 2 when the folder holds a lockfile under a name they write; they no longer write over it.
  • A lockfile you set read-only is no longer replaced by an edit. Commands that write it, the agent tools, undo, redo, start --force and init --force stop with one line saying to make it writable, such as chmod u+w lockwire.yaml. A script that wrote over a read-only lock before now fails.
  • Commands that edit a lockfile stop with one plain line when the shared lock folder in the temp directory is a link or belongs to another user; for lockwire start that is exit 1 where it was 0. Remove the link, or point TMPDIR at a folder of your own.
  • Some words changed. Finding texts, messages and the Check page say "lockfile" where they said "contract". A finding you accepted under the old words stays accepted, and a baseline from an older version shows nothing new. The same words appear in --json output, so a script that matches on such text must change. No option, key or file name was renamed.
  • The served check reply (the app, or a script on the engine) now says exit 2, a refusal, for a lock that is missing, garbled or from a newer Lockwire. It said 1, the NO-GO code, beside the refusal text.
  • A robot drawn with its legs pointing up has one more not-scored line ("standing load not checked") and fewer scored comparisons: 0.5.3 scored a standing load for such a robot and 0.5.4 does not (a test quadruped went from 22 scored to 9). Under lockwire check --strict or --max-not-scored that is one more unjudged check, so a check that got through before can now exit 3.
  • A robot whose only warning was "joint torque limit is unset" on a fixed joint now reads GO, not GO with notes, and under --strict exits 0 where it exited 1. An accepted row for that warning is listed as accepted but not reported; remove it. lockwire plan no longer gives that warning for a step on a fixed joint either.
  • An MJCF model whose only unread extra is an actuator block no longer gets the "not compared" warning and reads plain GO, where it read GO with notes. Under --strict it now ends NOT SCORED (exit 3) where it ended GO with notes (exit 1), because the gap is still listed as not scored; --max-not-scored 1 lets it through.
  • A device's declared mass now counts at its mount point (a device with a mass and a mount frame that is a link) in tip-over, the standing-load and hold-torque lines, the wheel-slip line, the mass total and support reactions of a lock with no mass budget, Compare materials, and the plan motion chart. Numbers you have seen can move, and a verdict can change either way: a heavy device mounted out past the wheels can turn GO into NO-GO, a low one can turn NO-GO into GO. A declared mass budget keeps its own choice of what to sum. A device with no mass, or a mount frame that is not a link, changes nothing.
  • The tip-over check counts a link named "castor" as a ground contact, as it already did "caster". A wheeled base spelled that way had no tip margin computed; it now gets one, and with it possibly a tip-over finding.
  • lockwire check-sim: a sim file that leaves a joint the lock limits free (no range, limits off, range="0 0"; revolute or prismatic joints only) now reads GO with notes, one line per joint, exit code unchanged. A script that matched the old one-line "agrees" output must change. On an MJCF file with autolimits="false", a joint range counts as a limit only when the joint says limited="true", so findings for such a file can change.
  • A lock that holds a declared "enforced by" on a joint limit and structural inputs recorded after it stops loading with "structural model binding does not match". Run lockwire start MODEL --force: it keeps what you declared, removes the structural inputs and says so. Then add them again.
  • lockwire log now exits 2 when the newest lock's model file is missing or is a folder, as check does; 0.5.3 exited 0 and printed a verdict. An older entry whose model file can no longer be read is marked as skipped and the rest of the log prints.

Check a robot

  • The rover, arm and quadruped starters now come with their robot file beside the lock, so lockwire check re-reads it offline. Verdicts are unchanged. The rover shows two more notes, the quadruped says its feet have no collision shape (standing load not scored), and all three say their mesh files are not compared. The humanoid starter stays a web link.
  • Notes printed after the verdict, for example that link values were not compared because the model's structure changed, now also appear in lockwire check --json - (notes), the HTML report and the app's Check page. The structure finding lists each changed joint limit with its old and new value and unit.
  • lockwire check --all names each accepted row that nothing in this run reports. check also says when a model's link names fit several catalog robots (the Universal Robots arms), and gives one advice line for a link heavier than 5,000 kg, telling you to check the unit.
  • check-sim reads MJCF <include> files inside the sim file's own folder, so a scene that includes the robot is compared instead of reading NOT SCORED.
  • A searched fix names the rail current, wire current and budget rows it pushes closer to their limit.
  • The parts catalog has the DS3235 hobby servo (35 kg-cm class), shown as unverified because its datasheet names no maker.
  • A part picked from the catalog keeps its real name: the report and the app say "Raspberry Pi 5" where they said "Pi 5". A 0.8 lock records it in a new optional name on the part's model. No check or verdict reads it, and a lock with no recorded name reads as before. New: lockwire add model --name and lockwire add device --model-name.
  • A new guide, "Upgrading Lockwire", lists which locks turn red or are refused after an upgrade and the command that clears each.

Reports

  • The HTML report has an Accepted section, and its right-hand panels scroll on wide windows so each can be read in full.

The Assistant

  • Answers show bold, inline code, dash lists and one-line headings instead of stripping the marks.
  • It keeps a fix you applied instead of taking it back on the next question, and Cancel stops the question on the robot you pressed it on.
  • It reads a carried mass only when written plainly, like 1.5 kg ("1,5 kg" used to be read as 5 kg), and asks whose name to use rather than proposing a witness you did not give.

The app

  • It reopens the last robot you had open when it starts.
  • It notices when the lockfile, the model file or a file the model includes is changed outside it (an editor or git) and re-checks by itself, where the open page kept the old verdict until you pressed Re-check. If the file breaks, it shows Lockwire's own line with Retry instead of an old verdict.
  • History has two plain actions, "Undo the last saved change" and "Go back to an older version", and going back puts the lock exactly as it was then. No git terms.
  • The Plan page has Start a plan, which writes a starter plan beside the lockfile and opens it. An existing plan is never overwritten.
  • Help > Lockwire Guides lists the guides Lockwire ships and opens them in a sheet. It works with no robot open and needs no key or network.
  • When an edit is refused on an older lock (the empty <axis/> case under Before you upgrade), the notice gives the plain reason and an "Upgrade a copy" button. It saves a 0.8 copy beside the lock, never over a file, shows what changes, and offers to open the copy. The robot's own file is never changed.
  • A joint-torque finding has "Show this pose": the 3D robot eases to the pose where that joint's torque is worst. View only; nothing is saved.
  • "Update from model file" keeps what you declared. A robot whose model is a xacro file gets its 3D scene, and a scene that cannot be loaded shows the shapes from the lockfile with one sentence saying why. The 3D view draws the joint that closes a loop.
  • What you type on Declare, and unsaved Design and Plan input, is kept per robot when you switch tabs or robots, and the app follows the robot on screen when you open two close together.
  • Many messages are plainer: "the engine" where they said "sidecar", "cannot read " for a file you may not read, and no "not a git repository" line in History while it loads.

Fixed

  • lockwire check --json agrees with itself under --baseline and --strict: the verdict, exit code and headline say the decision the process exits with. Before, --baseline with nothing new wrote GO_WITH_NOTES beside "Don't power it on yet".
  • lockwire check robot.urdf beside a lockfile of that robot no longer says "no lockfile yet". The "Lock it so CI catches drift" line carries the options you passed.
  • lockwire start other.urdf in a folder whose lockfile records a different model says so, and start over an existing lockfile offers --force and --force --fresh. start MODEL --force --mass X is one undo step. Updating a lock from its model says when the file's value replaced one you declared.
  • A shape size that is infinite or not a number is refused in one plain line; 0.5.3 printed a raw validation error. The exit code is 2 in both.
  • lockwire accept records a second finding on the same id beside the first, and replaces an accepted entry that no longer matches, saying so.
  • Declaring what enforces a joint limit (effort_enforced_by) no longer turns a good robot NO-GO with "joint moved". No re-lock is needed.
  • A robot with its legs pointing up says "standing load not checked" with the parts named. A wheeled base is no longer warned as "one foot". Part swap sizes a leg joint on the larger of its in-air and standing loads.
  • A lock with no provenance: record no longer stops check with "this is a bug in lockwire", and a lock made by 0.5.1 no longer lists mimic follower joints as "limits changed" beside real changes.
  • lockwire agent-setup tells you to run pre-commit install once, and for a robot in a subfolder of a git repository writes the pre-commit config and CI workflow at the repository root, where they are read.
  • File > Save a Copy does nothing when the place you pick is a link to the open robot's own file. Before, the "copy" was written into the robot's own file.
  • Dropping a part onto a link while the 3D view is posed writes nothing and says "Back to zero to place a part, or use Place on… in the part panel." Before, the part was stored away from where you dropped it. A part dropped on a turned link now lands where you dropped it.
  • The 3D view's "Only these" and hidden parts belong to the robot on screen and no longer carry over when you open another robot.
  • While the engine starts, the app says "Engine starting" instead of "Engine not running" in red.
  • A lockwire check <robot name> --lock FILE that fails no longer leaves the robot's model copy, its mesh files and a stray lockwire.yaml in your folder. 0.5.3 left them.