One row per machine is built (Computers console step 2.10, cloud-api migration 159). It is not compiled or live until the build train ships it.
The pairing paths
ao is not on users’ machines, and the allternit npm CLI has no publish step. The command that ships to users with Gizzi Code is gizzi pair.
gizzi pair uses the runtime pairing model
cmd/gizzi-code/src/cli/commands/pair.ts:86definesgizzi pair(“pair this machine as an Allternit runtime device”), with--status,--forceand--name.cmd/gizzi-code/src/runtime/services/pairing/pairing.ts:261posts/api/v1/runtime-pairings, and:299posts/api/v1/runtime-pairings/exchange. Token rotation uses/api/v1/runtime-devices/:id/rotate(:192). These are the same endpointsao fabric paircalls (cloud.rs:94).
Target model
Runtime pairing is the model. A paired computer is aruntime_devices row. Screen sharing (mesh plus VNC) becomes an optional step after pairing, not part of it. paired_computers stays for the mesh and screen-share data and gains runtime_device_id, so the console joins the two.
The visible command is gizzi pair. Install line (from surfaces/docs/cli/installation.mdx):
Aliases (old commands keep working)
No hard cutover: nothing is removed in the first release.
State machine
online: screen_share_off to screen_share_on (mesh IP assigned, VNC enabled).
One row per machine (built, step 2.10)
The machine key
Every pairing path sends the same key, and the console groups by it when it reads the list. It is the key the active-machine cap already counts machines by (services::quota_service::machine_key_for), so one Mac is one machine for billing and for Computers.
mid:<machine id>: the random id in~/.allternit/machine-id, made once by whichever client runs first. Desktop (auth-manager.tsmachineId()),gizzi pair(pairing.tsmachineId()),ao fabric pair(factory/pane/src/ao/fabric/cloud.rsshared_machine_id()) andallternit computer pair(computer-pair.tsmachineId()) all read and write that file.- Hostname key for clients too old to send a machine id: lower-case hostname without
.local, then|platform. A row without a machine id joins by hostname only when that key names exactly one machine. Generic hostnames (localhost,ubuntu,debian,vpsand similar) never join by hostname, so two default VPS images stay two rows. Two rows with different machine ids never join, whatever their hostnames, display names or stored runtime links. A code-paired row that supplies a machine id promotes a matched legacy machine to that id, so later pairings cannot replace it. - Stored link:
paired_computers.runtime_device_id, written at redeem time when the machine id names a live runtime device. - Same owner and name, for code-paired rows from before 2.10 that have neither. The name must be nonempty, nongeneric and match exactly one compatible machine. An ambiguous match stays separate.
Row id and aliases
Every console route resolves a row id or an alias to the same machine (
computers_host::resolve_target), so a client that saved an old id keeps working. Nothing is merged or copied in the database. Migration 159 is additive. Keep its columns and table when rolling code back.
Rename and unpair
PATCH /api/v1/computers/paired/:id {name}stores the name incomputer_machine_namesby machine key, so it covers every alias and survives re-pairing.POST /api/v1/computers/:id/unpair {confirm:true}revokes every runtime device of the machine, deletes its code-paired rows and its name, in one transaction. A cloud computer is deleted from Settings, not unpaired.DELETE /api/v1/computers/paired/:idstill removes only that code-paired row.
computer_machine_names.
What each old command does now
POST /api/v1/computers/pairing-codes now answers command: "gizzi pair" (the visible command), installCommand, and codeCommand (allternit computer pair <code>, the optional screen-share step). The ao and allternit CLIs print gizzi pair as the pairing command for your own computers.
Existing links (migration 153_computers_console.sql)
provisioned_instances for cloud computers. Migration 159 adds the machine identity columns and names table. Never drop a column in the same train that stops using it.