GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||
GeezerVison is showing developing-today.github.io — Quickstart - fleet QuickstartThe five-minute path. It assumes fleet is installed (see Installation and bootstrap) and runs five commands, in an order that checks each layer before the next one depends on it: the binary, the seat, a secret, the queue, and finally taking work. Every command here is read-only except the last, which claims a task only when work is available. 1.
|
| Leg | Probe | What “up” needs |
|---|---|---|
bridge | bridge inbox --agent <name> --limit 1 (with a known agent name) | HTTPS to the message bridge, and the fleet token resolved by name through fleet secrets |
queue | queue health | The queue broker: its socket on the laptop, or the laptop transport from elsewhere |
github | gh api rate_limit through fleet gh (falling back to a plain signed-in gh) | A working gh token, by fleet rotation or by sign-in |
shell | laptop-agent health | A route to the laptop: its broker, the Cloudflare tunnel, the tailnet, or SSH |
The bridge probe is deliberately a read made as an agent: service health alone proves nothing about whether this seat holds the fleet token, so with no agent name known the bridge leg is reported not ok even when the service answers.
From the legs, doctor derives the rungs map — which rungs of the intake
ladder (see step 5) this seat still has: push follows the bridge leg,
queue follows the queue leg, shortlist is always true (it is a local
file), and priority follows the github leg. It also reports builds:
whether fleet shell reaches the laptop from here.
Exit codes: 0 when any intake rung is live (bridge, queue, or github), 3 when none is, 2 for a usage error. A seat with only HTTPS still has rungs 1 and 4 of the ladder; doctor tells you exactly which world you are in. The full treatment is in Agents: enrolment, doctor and the intake ladder.
fleet secrets get <name> — a secret, by namefleet secrets get tailscale.auth-key
(Any secret name your seat is entitled to works; tailscale.auth-key is the
name the bootstrap check phase uses.)
This resolves the secret by name: the secrets broker first, Bitwarden
(bws) as fallback. The value goes to stdout and nowhere else — not to a
log, not to an error message. Resolution order and cache semantics are in
Secrets and the secrets broker; the short version
is that a broker cache hit answers immediately and carries the value’s age,
and a miss on a loaded cache reads through to Bitwarden so a freshly minted
secret is visible at once.
Exit codes: 0 ok, 2 usage (for example, no name, or more than one name), 3
unresolved / broker unavailable and the fallback also failed. The companion
verb fleet secrets list prints the names in the broker’s cache, one per
line, never values; unlike get, list has no bws fallback — a broker
failure is exit 3, because a vault listing is not the same thing as a cache
listing.
fleet queue health — the queuefleet queue health
This asks the queue broker for its health table. The first output line is
project: <netloc> (resolved via <source>); the table that follows carries
per-queue counts by task status, or (no queues have tasks) when empty.
Exit 0 means the broker answered. Exit 3 means the transport path to the
broker failed. Exit 6 is special: it is the fallback switch — the primary
queue store failed and this work has been switched to the GitHub fallback
queue; the output is one JSON object saying so, with a hint naming the
fleet queue fallback … verbs to continue with. See
The queue: tasks, lanes and leases.
Note that queue health (this verb, an authenticated broker call) is a
different thing from the broker’s unauthenticated GET /healthz probe.
fleet agent next — take workfleet agent next
next walks the intake ladder — four rungs, in order — and returns the
first piece of work it finds, as one JSON object
{agent, rung, task, then, tried}:
then lines in the answer name the lease deadline and the
queue checkpoint / queue complete commands for the claimed task.next returns a refill
task instead of handing out a stale remnant.tried is the per-rung log: each rung is recorded as skipped, empty,
down, or rejected, with a reason. A rung that is down is skipped, not
fatal — that is what doctor’s rung map predicted. Exit codes: 0 when work
was handed out, 5 when no rung had work, 3 when a needed leg is down in a
way that leaves nothing to try, 2 for a usage error.
That is the whole loop. An agent’s working cycle is: next, do the task,
run the then lines (checkpoint as you go, complete at the end), and call
next again while the run has budget.