Commit Graph
20 Commits
Author SHA1 Message Date
Pierre Rouanet b64def7b73 updaterd: automatic rollback is off unless asked for
`[update_gate] auto_rollback` in robotd.toml, default false, a row in
`robotctl configure`. It gates every path that reverts without being
asked:

- the health gate after `update apply`, `select` and `rollback`;
- the boot counter on a trial that never confirmed;
- `robot-boot-check` handing over to `robot-rescue`.

Off, the gate still runs and decides. A release that fails stays live,
reported `Stuck` with `robotctl update rollback <component>` in the
reason; the trial is cleared, and the journal entry is aborted rather
than rolled back, so `known_bad` does not blacklist it. The boot check
names the failed units and the manual `robot-rescue --reboot`, and exits
2. `--dry-run` is unchanged, since the OS slot gate reads it.

Releases now reach robots as tested Yocto images, and a separate daemon
update is the dev-board case, where an unasked revert replacing the
code under whoever holds the robot does more damage than it prevents.
A soft deprecation: the code stays, tested, one setting away.

`updaterd` reads the key from `robotd_config` (new, defaults to
/etc/robot/robotd.toml), both layers, at the moment of deciding, like
`allow_community` and the board. Test fixtures turn it on where they
test what a revert does.

Assisted-by: Claude:claude-opus-5-5
2026-11-04 12:38:25 +01:00
apirroneandClaude Opus 5.5 e769752991 robotctl configure: the dev-board switch is a row in the editor
`--allow-dev-daemon` was a command-line flag only, so it could not be
found in `robotctl configure`'s editor. It is now the first row,
`allow_dev_daemon` under `[dev board]`: SPACE/ENTER toggles, u reverts
to off, ^f finds it, and it saves with the robotd.toml edits and adds
updaterd to the restart offer.

Not a key in the editor's model, which is robotd.toml's: the row is a
`dev_daemon::Switch` over the same marker the flag writes. No
updater.toml (a laptop, a simulated duck) means no row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 15:30:02 +01:00
apirroneandClaude Opus 5.5 db7f0311bf robotctl configure --allow-dev-daemon: a dev board in one command
Making a board take branch builds meant copying team.dev.pub into
/etc/robot/trusted_keys under exactly the right name, sed-ing
allow_dev_keys in updater.toml, and restarting updaterd. On the Yocto
image both live in /etc, which an A/B OS update replaces, so the board
quietly stopped being a dev board at the next OS update.

updaterd now carries the dev public key built in (always dev-only), and
dev keys count when `allow-dev-builds` exists in its state_dir, under
/var/lib/robot, which survives OS updates. `sudo robotctl configure
--allow-dev-daemon on|off` writes or removes it and restarts updaterd.
allow_dev_keys = true in updater.toml still works, so provisioned boards
are unchanged; the shipped config keeps it false and nothing ships the
marker.

Needs an updaterd from a release that carries this: an older one
ignores the marker.

Docs: updater-design.md §5.4 owns the mechanism; install-dev,
cheatsheet-dev, dev-push, architecture, deploy READMEs, config comments,
--ref help text, xtask keygen and the dev.yml note point at the command.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 14:50:22 +01:00
Pierre Rouanet 8c325d1b03 duckctl, dev-push: default ssh user is microduck
The image's account is `microduck`, not `radxa`. `duckctl ssh`/`scp`
and `dev-push.sh` fall back to it when neither `--user` nor
`DUCK_BOARD_USER` is set, and every doc example follows.

Assisted-by: Claude:claude-opus-5-5
2026-10-01 11:42:08 +02:00
apirroneandClaude Opus 5.5 30674a353a provision: let the bootstrap's deferred restarts land before the branch apply
On a fresh board with --ref, install.sh's bootstrap apply schedules the usual
deferred `systemctl restart updaterd`/`btd` via systemd-run timers. Observed on
a board, that "5s" timer fired 17s later, 4s into apply_asked_ref's
`robotctl update apply --ref`, killing the updaterd performing it at
`Extracting`. The board stayed on stable and provisioning died, so the
name_the_robot step after it never ran.

- wait for any pending `systemctl restart` transient timer, then for updaterd
  to answer, before the branch apply (and reuse both waits after it)
- name the robot before the branch apply: it needs nothing from the build, and
  a failed branch apply is fatal

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 16:47:27 +02:00
Pierre Rouanet 4283e0ef4a Say what was decided, not what is about to happen
Everything the rewrite added about going public was written in the future
tense — "the repository goes public", "until it does", "until this week" — and
all of it reads wrong the day the flip happens. The decision is what these docs
record, so they now record the decision: *publish this repository*, phrased so
it is true on both sides of the switch and needs no second pass afterwards.
§6.1's heading loses its "so this one goes public" for the same reason.

`install-dev.md` had the sharper version of the problem: it walks a reader
through baking a GitHub token onto a board and `chmod 600`-ing it, listed as a
flat prerequisite. Once the repo is public that credential buys nothing but a
higher rate limit, and a reader following the steps unchanged would put one on a
board for no reason. The prerequisite and the by-hand section now say when a
token is actually needed — while the repo is private, or for the anonymous API
budget §6.1 documents. `provision-board.sh` already said this ("only while the
repository is private"); the docs were behind the script.

Two smaller things a public reader would hit:

- The link to `microduck_rl` 404s for anyone outside the org, and it is M8's
  central artifact. De-linked and named as private, rather than pointing a
  stranger at a page they cannot open.
- M6 no longer carries a delivery estimate. "Preorders are open" is the whole
  reason the section orders by lead time; "shipping is a few months out" is a
  schedule commitment in a versioned file, doing no work in the argument.

Not touched here, because it is a decision rather than an edit: `ci-setup.md`
states in bold that anyone with push access can read the release signing key,
and why no protection rule can be turned on. The roadmap links to it. That goes
public in the same flip and is worth settling first.

Assisted-by: Claude:claude-opus-5[1m]
2026-08-27 11:48:44 +02:00
Pierre Rouanet b516798c5f Two decisions the rewrite was written just before
**The repository goes public**, which closes §6.1. It was the longest-lead item
in M6 on the grounds that a robot shipped pointing at the wrong host cannot be
updated; going public means there is no second host and no token in an image.
The section keeps the options and the reasoning rather than deleting them —
an artifact-only public repo is the fallback if the source ever has to close
again — and records what going public does *not* change: the engine's API path
is already the one path for private and public alike.

What it does leave is a budget, written down where someone will hit it.
Anonymous GitHub API requests are capped at 60 an hour per IP and a home robot
has no token, so its checks spend from the pool shared by everything behind that
address. One duck at `check_interval = "6h"` is nowhere near it; a room of
twenty on one wifi is not. Not a correctness problem — `http.rs` already reads
403 and 429 as "come back later" — but a reason to fetch bytes through
`browser_download_url` once public, since object downloads spend nothing from
that pool.

**Models: browsing is a trust decision, not a plumbing one.** The ask is basic
policies of our own plus an easy way to look at and download others, and the
second half is what needs deciding: every artifact the engine installs is
verified against a trusted key, and a stranger's model is signed by nobody this
robot trusts. Recorded as three things to settle inside M8 — curated org or an
explicitly unverified path that is off by default and refused on a customer
robot the way dev keys are; the `obs[1,61] -> actions[1,14]` shape check becoming
a hard gate whoever signed it; and the fact that makes it allowable at all,
which is that the safety layer holds the only write handle to the bus.

Slots stay fixed and sources do not: repointing `walk` at another repo keeps
rollback, pin and known-bad per slot, where letting arbitrary components appear
at runtime would mean the config is no longer the authority on what a robot may
run.

Assisted-by: Claude:claude-opus-5[1m]
2026-08-26 17:41:06 +02:00
Pierre Rouanet d73291f05d duckctl: ip and open, so finding the robot is not a step
`btd` broadcasts the robot's IPv4 and `duckctl` already parses it into three answers — at an
address, no address, or a release too old to say. So this is a command, not a mechanism: `ip` prints
the address and `open` puts `http://<address>:8080/` in a browser.

`ssh radxa@$(duckctl ip)` is the shape it is for, which is why stdout carries the address alone and
every note goes to stderr.

**The advertisement first, `net.status` second, and the fallback is not optional.** Reading the
advertisement costs no bond, no PIN and about a second rather than the tens `wifi status` does — and
it is not stale, since `btd` re-reads `net.status` every five seconds and re-advertises when the
answer moves. But a robot bonded to this Mac often stops advertising the service to it, which is
what `duckctl`'s scan tiers already exist for, so without the fallback these two commands would fail
on exactly the laptops that use them most.

`0.0.0.0` is answered now rather than asked again slowly: that is a robot with no network, and the
message names `wifi connect` because the fix has to be over the radio — `net.connect` is refused
over WebRTC by design, since a robot that has never seen a network cannot be configured over that
network.

Address selection goes through `choose`, so two robots answering to one name is refused here the way
it is everywhere else rather than resolved by whichever advertisement arrived first.

`open` is a command rather than a documented `open "http://$(duckctl ip):8080"` for one reason: the
port default should live in exactly one place that nobody has to read. `webbrowser` rather than a
match on `target_os`, since the interesting half of this command is finding the robot.

`install-dev.md` asked for the board's IP address and offered no way to get one; it now names `ip`.
The `--help` blurb also stopped calling this crate an example, which it has not been since #141.

Assisted-by: Claude:claude-opus-5[1m]
2026-08-25 16:35:44 +02:00
Pierre Rouanet baf912e236 duckctl: the client is named for the robot, not for the radio
`duck-btctl` was an example of `btd`, and both halves of that stop fitting.
`mediad` gives a robot a second transport, and the two reach different method
sets by design — `robot.move` is refused over BLE and permitted over WebRTC,
`net.connect` the other way round — so a tool named after one radio teaches
everyone that it is the way in, at the moment it stops being the only one.

Its own crate, because a transport-agnostic client cannot be an example of the
BLE daemon: it would need btleplug and a WebSocket client, and only one of those
belongs to `btd`. The guarantee the example arrangement bought — btleplug never
in a release — survives as something stated rather than incidental: nothing on
the robot depends on `duckctl`. `advwatch` comes too; it is a scanner, and
scanners run on laptops.

`default-members` is what keeps it off the board. `cargo board --bins` builds
every default member for aarch64, and cross-compiling a Bluetooth stack for a
board that must never see one is both wasted and wrong. One list, rather than
naming binaries at each of the two `--bins` call sites.

No shim: `duck-btctl` is gone rather than aliased. `docs/project/` keeps
saying it, because those are records of a moment and a tool did not have this
name when they were written — their links are repointed, their prose is not.

Assisted-by: Claude:claude-opus-5
2026-08-25 16:00:36 +02:00
Steve NguyenandClaude Opus 5 36b878e84f setup-board: pause btd without imposing Privacy = device
`--weird-ble` does two things at once, and on 50:37:CD:16:1D:90 that
combination cannot be made to work. Measured there on 2026-08-19, one
variable at a time, daemon 0.6.0 throughout:

    Privacy   btd paused   result
    off       no           pairing dies ~800us after Encryption Change,
                           Remote User Terminated (0x13)
    off       YES          bonds, held 45/45 samples, real input, driving
    device    yes          bonds, then flaps: 46x PIN or Key Missing (0x06)

So the two halves fix different faults and are not a package:

  - btd advertising breaks a NEW bond. Pausing it for the pairing window
    fixes that — and it is what makes the aic8800 driver build irrelevant.
    Every earlier failure blamed on the driver had btd advertising, which
    was the uncontrolled variable; the same board bonds and holds on the
    stock 5.0 build once btd is paused.
  - Privacy = device breaks RECONNECTION on a board that does not need it.
    A clean bond then flaps with PIN or Key Missing, on either driver
    build, whether or not the bond was made under device. On such a board
    the flag is not merely unnecessary but harmful, and it fails in a worse
    way than not pairing at all, because it looks like it worked.

Hence `--pause-btd-on-pair` for the first half alone. `--weird-ble` still
implies it, so nothing provisioned before this behaves differently.

The marker is now written by `write_pause_marker`, called from both paths,
because only one of them touches Privacy — which is the whole distinction.
Its path is unchanged: robotctl reads that exact string, and renaming it
would make every board already carrying one stop pausing btd with nothing
to say why. The name is now narrower than its meaning, and says so.

`report` names both settings rather than only Privacy, because the pair of
them is what says which of the three configurations a board is in — and the
advice for a pad that will not bond depends on which half is missing. The
old line sent everyone to --weird-ble, which is the wrong answer for a
board that flaps.

install-dev.md drops `--weird-ble` from the recommended command in favour
of the pause, and gains a table mapping the failure you actually see to the
flag that board wants — including the flapping row, which is the one that
sends people chasing the wrong thing. pair-a-gamepad.md now leads with the
pause too.

Verified: the two functions exercised against fixtures over six cases
(neither flag, pause alone, pause over an existing Privacy = off, weird-ble
from unset, weird-ble correcting off, weird-ble with no [General]) — 14
assertions, and in particular that the pause never rewrites Privacy. Then
on hardware: with the marker removed first so the write path ran,
`DUCK_PAUSE_BTD=1` wrote the marker mode 644, printed "left Privacy alone",
and left main.conf byte-identical to a pre-run backup. board-test.sh gains
the pause-only case; note CI lints that script but does not run it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-20 11:10:49 +02:00
Pierre Rouanet 65d3a43e40 Update install-dev.md 2026-08-19 15:08:41 +02:00
Pierre Rouanet 59ddad457b docs: --weird-ble is the default in the dev install, and how to drop it
About half these Zero 3W units cannot bond a gamepad under the BlueZ defaults and nothing measurable
says which. A board that needed the flag and was provisioned without it presents as a pad that will
not pair for no visible reason, and every plausible cause you chase first is somewhere else — so the
command someone copies now carries it.

The cost of carrying it needlessly is smaller but real: Privacy = device means a pad cannot form a new
bond while btd advertises, so pad pair stops btd and power-cycles the adapter every time. So the same
section says how to check whether a board needs it — remove the marker and the setting, reboot, pair —
and how to put it back with the copy of setup-board.sh provisioning leaves at
/usr/local/sbin/robot-setup-board.

provision-board.sh's usage and pair-a-gamepad.md now agree with that rather than saying to try a
board without the flag first.

Assisted-by: Claude:claude-opus-5
2026-08-19 14:58:27 +02:00
Pierre Rouanet b471cbc752 provision: --name gives the board its name, instead of DUCK_NAME
`provision-board.sh` never forwarded `DUCK_NAME`, so the only way to name a
board while provisioning it was to run `provision.sh` on the board by hand.
Through the wrapper the name silently did nothing, and the fix for that was
either forwarding one more environment variable or making the name what it
actually is: one decision per board, typed at the keyboard.

So `--name NAME` on both, and `DUCK_NAME` is gone. The other knobs are
environment variables because they are passed on — `install.sh` reads the same
names, so a pinned tag is one decision for a whole bring-up — while a name goes
no further than `robotctl system set-name` at the end of phase 2. It is also the
only one that is per-board rather than per-session, and an exported name is
exactly the kind of thing that is still set when the next board is provisioned.

The state file that carries the name across the reboot is now written quoted.
It is read by sourcing it, and a name is free text: `DUCK_NAME=Ducky Two` came
back as an assignment plus an attempt to run `Two`, which under `set -eu` ended
phase 2 on its first line — so naming a robot after two words broke
provisioning rather than just the name. Every value is quoted, not only the
name, and the two keys that are not environment knobs are `PROVISION_*` so that
sourcing the file cannot set something an operator could also have exported.
The name is escaped again on the way over ssh, which hands the command to a
second shell.

Assisted-by: Claude:claude-opus-5[1m] shellcheck
2026-08-19 14:52:39 +02:00
Pierre Rouanet f86c88353c provision: --ref installs the branch build, and fails if it cannot
--ref took the provisioning scripts from a branch and left the daemon on stable, because install.sh
resolves the release through /releases/latest, which excludes pre-releases. A board provisioned to
test a branch therefore ran that branch's scripts and someone else's code, silently — which cost a
full re-install to discover.

Phase 2 now applies the branch build after install.sh. Stable stays golden, deliberately: the first
release installed is the boot recovery net's fallback, and a branch build as golden would give a
broken branch a broken fallback.

Fatal rather than a warning, and checked on what is running rather than on the exit status. `apply`
has a health gate, so a branch build that fails it is rolled back to stable and the apply reports
that honestly — leaving exactly the silent board this exists to prevent. A dev path that breaks
loudly beats one that quietly runs the release nobody asked for.

Assisted-by: Claude:claude-opus-5
2026-08-19 13:02:11 +02:00
Pierre Rouanet 61eaf47429 docs: --ref picks the scripts, not the daemon
install.sh resolves the release through GitHub /releases/latest, which excludes pre-releases, and
every branch build is one — so a board provisioned with --ref BRANCH runs that branch's scripts and
the stable daemon. The flag reading "provision from a branch" cost a full re-install to a board
that already had the right scripts on it and was wondering why robotctl behaved like main.

Says what it does and names the step that installs the branch build.

Assisted-by: Claude:claude-opus-5
2026-08-19 12:46:51 +02:00
Pierre Rouanet c861ef872f Merge remote-tracking branch 'origin/main' into local-dev-loop-has-its-own-page 2026-08-18 11:46:45 +02:00
Pierre Rouanet 9bbbce5efd provision-board: race Bluetooth against ssh to re-find a moved board
The wifi cutover leaves the board on netplan's lease and brings it back on
NetworkManager's, and from the operator's machine that is indistinguishable from
a board that never booted: the address it was given stops answering, and every
remaining step is addressed to it.

So the wait is a race. ssh keeps polling the address it has, and in parallel a
`duck-btctl wifi status` asks the robot what address it ended up with. Whichever
answers first wins, and an answer over Bluetooth is adopted for the rest of the
run — including the log stream and the closing health check.

The probe is only trusted when exactly one robot answers to the name this board
advertises, which is read off the board before the reboot while ssh still works:
from `robotctl system info` where the daemon is already installed, and otherwise
derived exactly as `configd/src/identity.rs` will. A board with no readable
serial yields no name rather than a guess, because `configd` falls back to the
hostname there and every board flashed from one image shares it.

ssh wins on the same address essentially always — `hci0` takes about seventy
seconds to appear on this board and sshd does not — so the probe costs nothing in
the normal case and is the only thing that can answer in the abnormal one.

`still_provisioning` could not tell "the state file is gone" from "ssh failed",
so a board that moved mid-install was reported as provisioning complete, followed
by a health check that could not connect. It now separates the two, which is the
second place a new address is worth looking for.

`usage` printed a fixed line range that had gone stale: it stopped mid-sentence
inside `--forget-host-key` and hid the three options after it. It now prints
every leading comment line, so it cannot fall behind the header again.

Assisted-by: Claude:claude-opus-5
2026-08-17 16:02:45 +02:00
Pierre Rouanet 4d55a8e188 docs: the local build-and-push loop has its own page
Building on a laptop and installing straight on the board was a section
inside the dev-board cheat sheet, which is the wrong place for the thing a
developer does dozens of times a day: the setup, the container build, the
dry run and every failure mode were compressed to fit alongside the
`--ref` commands, and the debugging half of the loop — journal, log level,
what a stale daemon looks like — was not there at all.

`docs/robot/dev-push.md` is now the page for it, and every pointer that
used to send readers to the cheat sheet for setup goes there instead. The
cheat sheet keeps one entry and a link.

Assisted-by: Claude:claude-opus-5[1m]
2026-08-17 15:07:30 +02:00
Pierre Rouanet 0cad2fbeac feat: build on a laptop, install on a board, no CI
`scripts/dev-push.sh <user@board>` cross-compiles here, packages the same
artifact a release does, signs it with the dev key, copies it to the board and
applies it — about a minute, against a push plus a CI run.

The board takes it through `robotctl update apply --from <dir>`, a per-call
source override on `update.apply`. A config edit to `local_dir` would have
needed no code, and would have cost the board every other way in: `--ref`,
`--staging` and a plain `apply` back onto the release stream all stop working
until the edit is undone. As an option it is one flag, and everything else about
the apply is unchanged — preflight, signature, hash, compatibility, the health
gate, auto-rollback. That last part is the whole reason this is not
`updaterd install --from`, which forces the gate off and therefore refuses to
touch a live release: a dev board running a build made ten seconds ago is where
auto-rollback earns its keep.

Local relaxes nothing. The directory is read by the same `LocalDir` source the
tests and the offline installer use, so a build installs because the dev key is
in that board's trusted set — a customer robot refuses it exactly as it refuses
`--ref`. The downgrade guard stands aside for `--from` for the reason it stands
aside for `--version`: a directory named by an operator with root is not a
mirror that has gone backwards, and a local build is a prerelease that sorts
below whatever the board is running, so guarding it would refuse every push.

`API_VERSION` 4 → 5. Additive, and that is the reason to bump rather than not:
serde ignores what it does not know, so a v4 `updaterd` would have accepted
`--from` and installed from its configured source while reporting success.
Refusing the call is what the constant is for. Consequence: the first push to a
board is `scripts/dev-push.sh --bootstrap`, once, which stops robotd and gives
up the gate for that one install because the binary that would run the gate is
the one being replaced.

`padd` is the one thing that does not cross-compile on macOS: `gilrs` needs
libudev, and `scripts/ci-cross-deps.sh` gets it from apt, which a Mac has no
equivalent of. The script copies `libudev.so.1` off the board itself — the exact
library the binary will load there — and writes it a `.pc` file. Dropping padd
from the artifact instead would have made the local push differ from a release,
and left the gamepad broken after every push.

dev-push.sh is a third packaging site, so it is covered by the tests that exist
because two hand-maintained copies of these lists had already drifted: its `cp`
and `--include` lines are textually what the workflows use, and
`xtask/tests/artifact.rs` now opens the tarball all three produce.

Assisted-by: Claude:claude-opus-5[1m]
2026-08-10 20:30:47 +02:00
Pierre Rouanet ef9162bb01 docs: rework for people who use the robot, and organise by audience (#48)
* docs: a README a robot user can actually start from

The README was four documents in one — pitch, dev setup, board operations
manual, dev-key plumbing, release process and status — at 457 lines. Someone
handed a robot met `robotctl monitor`'s projected-gravity paragraph before
learning how to make the thing move.

Most people joining will use the robot, not develop the shipping machinery.
So the README is now the first hour for that reader: is it alive, drive it
with a gamepad, watch the loop, run your own .onnx, put a branch on it. The
padd socket-forward recipe — pad on your laptop, robot on the bench, nothing
cross-compiled — was buried in a source comment and is now the centrepiece.

Everything else moves rather than disappears:

  docs/install-dev.md  new: the linear dev-board install, split out of
                       deploy/README.md, which stays as the reference for
                       what those steps do. Leaves a slot for the
                       regular-user install doc.
  CONTRIBUTING.md      new: building, testing, layout, conventions,
                       releasing — the daemon-developer door.
  docs/cheatsheet.md   absorbs monitor, completions, update log, and
                       select/pin/reset-to-golden with the three
                       easy-to-get-wrong notes.

Services and status were duplicated in architecture.md §1 and roadmap.md, so
they are links now rather than a third copy.

padd ships in the release but only robotctl gets a PATH symlink
(scripts/install.sh:633), so the on-robot invocation is the full path.

Assisted-by: Claude:claude-opus-5[1m]

* docs: drop self-referential commentary from the front docs

A doc that describes itself spends the reader's attention on navigation
rather than on the robot. Cut the paragraph telling the reader what the
README covers, the 'shorter door' framing, and the repeated 'read it
when' stems in the link table.

Assisted-by: Claude:claude-opus-5[1m]

* docs: plainer opening, and defer the dev-install prerequisite to its own page

The socket path and the wire format are not what a reader needs in the
first two lines; robotctl being the thing you talk to is. The branch
section likewise only needs to say the dev install is a prerequisite,
not re-explain what it consists of.

Assisted-by: Claude:claude-opus-5[1m]

* Update README.md

* Update README.md

* docs: basic update commands in the README, health contract where tools need it

The README jumped from watching the robot straight to installing branch
builds, with no answer for someone who only wants the current release.

The health rationale that came out of the README lands in architecture
§8.4, next to the version discussion it belongs beside, and the exit-code
contract is repeated in the cheat sheet where anyone scripting will look.

Assisted-by: Claude:claude-opus-5[1m]

* docs: explain apply-without-ref where the command is introduced

The warning sat two sections below the command it was about, so the
reader met the plain form first and the caveat only if they carried on
into branch builds. Stating what the stable channel means at the point
of use leaves the branch section to say what --ref adds.

Assisted-by: Claude:claude-opus-5[1m]

* docs: move the policy tensor contract into robotd-design

Tensor widths and the legacy 51-D refusal are what you need when a
policy will not load, not when you are swapping one in. They join the
rest of the load-time validation in §5.3, and the params file outliving
an update joins §7.2, which is already about that file's lifetime.

Assisted-by: Claude:claude-opus-5[1m]

* docs: dev-channel mechanics out of the README

Tag movement and version uniqueness join the --ref explanation in the
cheat sheet; the trust argument for dev builds joins install-dev, where
the reader is deciding to trust that key. 'A merge does not publish
instantly' was already in the cheat sheet, so the README keeps only the
short form.

Assisted-by: Claude:claude-opus-5[1m]

* docs: branch workflow as steps

Assisted-by: Claude:claude-opus-5[1m]

* docs: trim the update section to the commands

Assisted-by: Claude:claude-opus-5[1m]

* docs: group by audience — robot, design, project

Ten docs sat flat in docs/, so a design doc, a runbook and an open
post-mortem all looked equally authoritative. install-path-gap.md reads
as current architecture until you notice the Status line.

  robot/    cheatsheet, install-dev        — you have a robot
  design/   architecture and the three     — you are changing the daemon
            design docs
  project/  roadmap, ci-setup, and the     — dated records, stale on
            two records                      purpose

docs/README.md indexes all three. deploy/README.md stays next to the
config files it documents. Every cross-link repointed and checked.

Assisted-by: Claude:claude-opus-5[1m]

* docs: split the cheat sheet by audience, dedupe the deploy quickstart

The cheat sheet was 435 lines serving two readers: robotctl on a robot,
and btctl plus the dev channel, which need a clone and a dev board.
Split at that line — cheatsheet.md is the robot, cheatsheet-dev.md is
the dev board. 'Building and checking' was neither, so it joins the
build commands in CONTRIBUTING.

deploy/README.md kept a full copy of the dev-board provisioning walk-
through that install-dev.md now owns. It keeps the two commands and the
flags, and defers the rest.

Where next is now two groups rather than six flat rows: going further
with a robot, and contributing.

Assisted-by: Claude:claude-opus-5[1m]

* ci: follow the docs move when packaging a release

dev.yml and release.yml ship architecture.md and updater-design.md
inside the artifact, by source path. The move to docs/design/ broke
packaging on every push. The destination inside the release is
unchanged, so nothing on a board moves.

Assisted-by: Claude:claude-opus-5[1m]

* docs: repoint doc paths in comments after the move, and note --help in the README

Around ninety source comments cite docs/<name>.md by path. They break
nothing, but a path that does not resolve teaches the reader to stop
trusting the next one. Includes the rustdoc intra-doc links in
updater/src/lib.rs.

The README now says robotctl explains itself, so the commands can be
explored rather than looked up.

Assisted-by: Claude:claude-opus-5[1m]

* docs: start install-dev at flashing the board

The doc began at 'a board you can reach over ssh', which is several
steps in. Name the image and the imager profile, since setting wifi and
the user there is what makes the board reachable without a serial
console.

Assisted-by: Claude:claude-opus-5[1m]

* deploy: commit the team dev key, outside trusted_keys/

Keeping team.dev.pub out of the repository protected nothing. A board
accepts dev builds only when the key is in its own trusted_keys_dir and
allow_dev_keys is true, and signing a build needs the private half,
which has not moved. What the absence did buy was a round trip for
every new developer, asking someone for a file.

It goes in deploy/dev-key/ rather than deploy/trusted_keys/, because
install.sh copies the latter onto every robot and this must reach only
boards that opt in. provision-board.sh now falls back to the committed
copy when ~/.duck-keys/team.dev.pub is absent; your own copy still wins.

Assisted-by: Claude:claude-opus-5[1m]

* provision-board: read the dev key from the repo only

The ~/.duck-keys lookup was the primary path and the committed copy a
fallback, which is backwards now the key ships with the repo: the two
files are identical, so the home-directory branch only ever selected the
same bytes by a longer route. One default, and --dev-key for a key from
somewhere else.

Also repoints the doc paths in markdown prose that the earlier sweep
missed — it only covered .rs, .sh, .yml and .toml.

Assisted-by: Claude:claude-opus-5[1m]

* docs: repoint install-path-gap references that arrived with main

xtask/tests/artifact.rs and board-test.sh landed on main while this
branch was moving docs into groups, so they cite the old flat path.

Assisted-by: Claude:claude-opus-5[1m]
2026-08-10 12:52:45 +02:00