The table is wider than a phone and had no box to scroll in, so the page itself
scrolled sideways and carried the header and nav with it: a reader could see
that something was wrong but not what, which is the one thing the four columns
exist to say.
And two containers can share a repository at different versions on purpose — a
sidecar held back while the app moves on. Reading whichever came last reported
the pin unapplied on a service whose app container was carrying it, so the board
named drift where there was none. A workload runs the declared version if any of
its containers does.
The board showed build runs and nothing about deployment, so a service could
serve last week's code with every row on the page looking ordinary.
Four values per service, read from the systems that own them:
head ──build──▶ built ──pin──▶ declared ──reconcile──▶ running
Every arrow is a job of the pipeline this repo publishes — `image` produces the
artifact, `rollout` writes the pin cd.hanzo.ai reconciles — so a service is
current exactly when all four agree, and each way they disagree names the arrow
that did not happen: unbuilt, unshipped, unsynced, untested.
Head is read because the other three are not enough. built, declared and running
can name the same release while main has moved on and nothing since has produced
an image; comparing them to each other cannot see that at all.
Two readings the page depends on, both taken from a run's JOBS rather than its
single conclusion. A run that fails at `gate` built nothing and a run that fails
at `receipt` has already built, pinned and proved the release live — both report
`failure`. And a commit the forge never constructed a run for is absent rather
than failed: there is no log to open, so it is drawn as a different shape.
A service is its namespace and name, not its image: ghcr.io/hanzoai/static runs
as cdn, tabs and zen-landing on three versions at once, and keying rows by image
compares one service's pin against another's running version. The image is what
joins to the forge, where several services legitimately share one repo.
Comparisons refuse to guess. An unread source is never drawn as a difference, a
tag that cannot be ordered orders against nothing, and a commit still building
has not failed to produce an image.
Reads only — no deploy, retry or promotion. The cluster is read through the pod's
own ServiceAccount (get and list on workloads, nothing else, no stored
credential) and universe through the forge token this service already holds.
scope_test.go now covers /v1/fleet and the fleet page, and drives the real
router so the assertion cannot be made against a copy of a handler.
The dashboard carried its own :root block — a hand-copy of the house
palette, and being a copy it had already drifted off it. The status
colours were GitHub Primer's (#3fb950 / #f85149 / #d29922) where the
house says #10b981 / #ef4444 / #f59e0b. Every surface black was a shade
wrong and blue-tinted (#0b0b0d) against a scale that is strictly neutral
(--surface-0 #080808). The hairline border was an opaque #25252b where
the house hairline is a 6% white wash. The font stacks named neither
Geist Sans nor JetBrains Mono. Of nine colours exactly one — the accent
— still matched. That is what a second component source looks like a few
months in, and it is why this page had to stop being one.
The values now come from @hanzo/brand, and they arrive as that package's
own published artifact rather than as hex codes retyped here:
styles/variables.css, which it ships as a plain custom-property sheet
(exports["./styles/*"], documented for a bare <link>), vendored verbatim
and go:embed-ed. dashboard.css holds what is left over — layout: what is
a row, what sticks, what collapses on a phone — and names no colour,
radius or type size of its own.
Not a @hanzo/gui port, deliberately. gui is React over Tamagui and needs
a bundler, which would put npm and a JS build on the path that ships the
board you read when the builds are broken, and would trade one request
that returns the answer for a shell that fetches it a second later. What
this page ever needed from the design system was its token vocabulary,
not its components — and gui's own shell reads these same var(--hanzo-*)
names, so a Go binary and a React app now spend one vocabulary from one
source. go.mod stays empty; the image stays the binary and a CA bundle.
Two offline gates keep it honest, because vendoring alone would only
move the copy rather than end it:
- TestBrandCSSIsUpstreamBytes pins the sheet to the sha256 of the
version it claims to be. Without it, "just darken that one border"
is a one-character local edit that silently rebuilds the second
palette and nothing ever catches it. This is go.sum's argument.
- TestDashboardCSSNamesNoColours fails on any hex or rgb() the page
writes for itself. The old :root block did not arrive wrong; it
arrived one reasonable exception at a time.
Neither gate touches the network, so proving we use one design system
costs the pipeline no npm and no registry.
TestRenderedPageShowsOnlyTheViewersOrg additionally pins at the HTML
layer what scope_test.go pins at the predicate layer: a lux viewer's
rendered page contains no other org's rows and no other org's name in
the nav. The renderer is where that leak lived, and it is now the
renderer that is asserted.
Rendered and checked in a browser, not just compiled: every token
resolves (surface-0 #080808, text-primary #fafafa, accent-muted #a78bfa,
success/error/warning #10b981/#ef4444/#f59e0b, hairline rgba(255,255,255,
.06), radius-card 8px, JetBrains Mono), color-scheme comes out dark via
the sheet's own .dark hook, and header, chips, nav, table and footer now
sit on one --space-6 gutter instead of the table drifting 12px left.
Co-authored-by: Hanzo Dev <[email protected]>