Two endpoints the console read and no gate had ever called
An audit of the admin surface by gate coverage turned up two endpoints with zero
appearances in any gate: `/admin-api/state` and `/admin-api/geo`. The first is
the one the console's entire summary line is built from — the page could have
been reporting a mode the edge is not in, or a ban count that is not the count,
and every assertion in every script would have stayed green.
`/admin-api/state` also lacked one field the summary needs. It reported the age
of the in-memory snapshot and not the TTL that age is measured against, so
"snapshot 0.4s" was half a number. On a single edge the TTL is invisible; behind
a load balancer it *is* the delay a ban has, which is the whole subject of the
multi-instance question. `/healthz` already reported it — the endpoint the page
actually reads did not.
The summary line now says, in one place an operator looks at:
mode Enforce · snapshot 0.1s / ttl 30s · tracked 3 · engine bans 0
operator blocks 0 · allow entries 0 · geo DBIP-Country-Lite · built 2026-10-01 · 0.6d
The geo pill is marked past 90 days, the same rule `/healthz` reports as
`geoStale`, and the assertion checks it is *not* marked while the database is
inside the alarm — an always-green warning is a warning nobody reads.
Gates: `compose-smoke.sh` asserts `/state` at the moment a ban exists, so the
numbers have known values rather than "some number" — mode `Enforce`, TTL `30`,
`engineBans` 1 — 35 → **38 assertions**. `console-check.cjs` asserts the TTL in
the summary, the geo database with its build date and age, and the marking: 30 →
**33** assertions. `SnapshotStalenessTests` got the
fast half for the new field.
That test caught the test, not the product: the first version read `/state` with
a bare client and got a 401, because the admin surface is token-gated while
`/healthz` deliberately is not. The endpoint was right and the test was wrong.
Numbers on this tree. Host: build 0 warnings, unit 54/54, integration **30/30**,
compose-smoke **38/38**. Linux rehearsal, one invocation, EXIT=0: source gates
54/54 + 30/30 + smoke 19/19, compose **38/38**, console **33/33** in a real
Chromium. actionlint 1.7.12 over both workflow files: 0 problems; shellcheck,
`bash -n`, `node --check` clean.
Still the same boundary as every other commit here: none of it has executed on a
runner, because the repository has no remote (OPEN-15).
This commit is contained in:
@@ -16,12 +16,12 @@
|
||||
# What has been done to narrow the darwin/linux gap without a runner:
|
||||
# scripts/ci-linux-rehearsal.sh runs the gates in containers. Source gates
|
||||
# (restore, build, unit, integration, smoke) in mcr.microsoft.com/dotnet/sdk:10.0
|
||||
# — Ubuntu 24.04.5, SDK 10.0.401 resolving the pinned global.json, 54/54 + 29/29
|
||||
# — Ubuntu 24.04.5, SDK 10.0.401 resolving the pinned global.json, 54/54 + 30/30
|
||||
# + 19/19, first try, 1:02.81 wall cold: evidence that the 25-minute timeout
|
||||
# below is not near. Compose gate in docker:cli against the host daemon: 35/35 on
|
||||
# below is not near. Compose gate in docker:cli against the host daemon: 38/38 on
|
||||
# Linux. Console gate in mcr.microsoft.com/playwright:v1.63.0-noble — the stack
|
||||
# seeded by docker:cli, the same console-check.cjs driving it in a real Linux
|
||||
# Chromium: 30/30. So every gate this file runs now has a Linux number. What it
|
||||
# Chromium: 33/33. So every gate this file runs now has a Linux number. What it
|
||||
# does not have is a runner: the repository has no remote, so this file has
|
||||
# never executed on GitHub.
|
||||
#
|
||||
@@ -125,7 +125,7 @@ jobs:
|
||||
#
|
||||
# Honest status: this job has never run on a runner, like the rest of the
|
||||
# file. What was verified is the gate it calls — scripts/ci-gates.sh console
|
||||
# passed locally (30 assertions, playwright-core 1.63.0 — the version pinned
|
||||
# passed locally (33 assertions, playwright-core 1.63.0 — the version pinned
|
||||
# right above, and rehearsed on Linux in the Playwright image), and its
|
||||
# control (a wrong token) exits 1 rather than reporting success. The step
|
||||
# calls the gate by name rather than retyping the script, so the CI definition
|
||||
|
||||
Reference in New Issue
Block a user