The gate grew by 20 assertions across two commits (19 for the country rule on
the image, 1 for the ban pillar's wait budget) and the file still said 165 in
six places, including the line that names the script's own size. Same failure
as the last two sweeps: the numbers drift away from the tree that runs them.
Swept to dc88f36, each stage re-run on this head rather than quoted from the
previous one:
host unit 132/132, integration 173/173, smoke 28/0, image 261 MB,
compose 185/0, console 70/0 (/tmp/c25_host_all.log,
/tmp/c25_host_console.log)
linux source gates PASS, compose 185/0, console 70/0,
enforcement lag 20 ms, 0 containers left behind (/tmp/c25_rehearsal.log)
act 5 jobs succeeded, 0 failed - lint, source, image
(261 MB, compose 185/0), console (70, 685,222-byte zip), freshness
(/tmp/c25_act.log)
The assertion history gained its two links: 165 before the image refused a
country code that is not a code, 184 before the ban scene stopped reading the
pillar at one instant.
Two paragraphs say which layer proves what, because that is the question this
cycle kept asking:
- the country rule was proven in-process while the shipped image carried four
country assertions, all about a rule already written correctly. Both halves
of the teeth were measured on the image: length-only validation answers
179/6, moving the DELETE route answers 179/6, against 5 and 2 in-process.
- OPEN-42's read side is closed (the scene polls the pillar, prints the
trajectory, and asserts its own wait budget; breaking it answers 178/7 with
that assertion first). The ticket stays open for the product half: the
pillar is only updated on the request path, so a quiet edge reports a stale
failure count for as long as it stays quiet.
Every gate was re-run on this tree and the README and the ci.yml header were
rewritten from what those runs printed, not from the last time someone wrote a
number down: host all (unit 132/132, integration 173/173, smoke 28/0, image
261 MB, compose 165/0), host console (70/0), Linux rehearsal (source PASS,
compose 165/0 with 44 ms enforcement lag, console 70/0), and act (5 jobs
succeeded, 0 failed, console-evidence.zip 685,878 bytes).
Two numbers were stale in ways a reader could not see. The console paragraph
said the gate "asserts 58 things" while the gate itself printed 70; and the
paging paragraph described behaviour that had only recently become an
image-level measurement, so it now says which layer proves it and how the
scene proves it.
The failures found on the way are written down rather than dropped. Two act
runs failed before the green one: lint refused three SC2086 findings that a
local `shellcheck -S warning` had passed over — the workflow pins 0.11.0 with
no severity filter and no local gate runs lint at all, filed as OPEN-44 — and
in the run after the fix, image died on a TLS timeout to auth.docker.io while
console read an empty observation listing in a run where the same table had
shown 11 rows a minute earlier, filed as OPEN-43. A host console run at the
previous commit answered 68/2 for the same reason OPEN-41 already describes,
and one compose run read banWriteFailures as 0 while the same scene's log and
readyz said otherwise, filed as OPEN-42.
Re-measured at 9383362 rather than carried forward from 5c44b7c:
host ci-gates.sh all unit 132/132, integration 173/173, smoke 28/0,
image 261 MB, compose 132/0
host console 70 ok, 0 failed
Linux rehearsal source PASS, compose 132/0 at 15 ms,
console PASS 70/0 on the second run
act 5 jobs succeeded, 0 failed; compose smoke 132/0;
console 70; console-evidence.zip 682,072 bytes
The Linux console stage failed once at this head — the markup-path row was not in
the observation table when the driver looked, and the driver looks once. That is
filed as OPEN-41 with both logs named; the stage was re-run and passed, and the
pass is quoted together with the failure, not instead of it.
Re-measured at 5c44b7c rather than carried forward from d871d57:
host ci-gates.sh all unit 132/132, integration 173/173, smoke 28/0,
image 261 MB, compose 113/0
host console 70 ok, 0 failed
Linux rehearsal (all) source PASS, compose 113/0 at 18 ms, console 70/0
act 5 jobs succeeded, 0 failed; console 70;
console-evidence.zip 692,364 bytes
The console count moved 69 -> 70 by one check: the driver now fails when the
markup seed never reached it instead of stepping around four assertions and
printing "all assertions passed".
The flake sentence is attributed to the commit it happened at, not to whichever
head this file happens to describe: it was one Linux run at d871d57, and the
three Linux compose runs since — including this one — were 113/0.
Every gate was re-run at d871d57 rather than carried forward from 24e329d: the
host gives unit 132/132, integration 173/173, smoke 28/0, image 261 MB, compose
113/0 and console 69/0; the Linux rehearsal gives the same source counts, compose
113/0 and console 69/0; the local Actions runner gives 5 jobs succeeded, 0 failed
with compose smoke 113/0 and a 691,696-byte console artifact.
One Linux run of this same head answered 112 passed, 1 failed: the geo-restore
assertion got 000. The run after it was 113/0. That is recorded here instead of
quietly re-run until green, because the gate prints 000 for a stalled request, an
exited container and every other curl error as the same three characters, so a
reader cannot tell which of the three happened. Filed as OPEN-39.
cfe47d1 added DurabilityHealthTests (4), so unit is 132/132 wherever the
README and ci.yml said 128/128, and the rehearsal/act sentences name the
commit they were measured at. Re-measured at cfe47d1 rather than carried
forward:
host ci-gates all: unit 132/132, integration 170/170, smoke 28/0,
image 261 MB, compose 94/0, exit 0; console 58/0
linux rehearsal all: source PASS (132/132, 170/170, 28/28), compose
PASS 94/0 with enforcement lag 12 ms, console PASS
act 5 jobs succeeded, 0 failed; console-evidence.zip 547,433 bytes
17b764e renamed two tests without touching an assertion, so the counts did
not move — but the README and ci.yml tie their Linux and act numbers to a
commit, and after a commit those sentences point one commit behind the
head. Re-measured rather than carried forward:
host ci-gates all: unit 128/128, integration 170/170, smoke 28/0,
image 261 MB, compose 94/0, exit 0; console 58/0
linux rehearsal all: source PASS, compose PASS 94/0 (enforcement lag
17 ms), console PASS
act 5 jobs succeeded, 0 failed; console-evidence.zip 543,009 bytes
The contract section said the unknown-parameter guard refuses on the list
endpoints. It now refuses on every endpoint under /admin-api, and the
interesting part is not the coverage: it is that the guard itself had the
bug. It assumed limit/offset were legal everywhere, so GET
/admin-api/countries?limit=2 was answered with the whole table by the
image that already carried the guard.
Numbers re-measured on ac672d9, not carried forward:
host unit 128/128, integration 170/170, smoke 28/0,
compose 94/0, console 58/0, image 261 MB, 0 containers
linux source PASS (128/128, 170/170, 28/28), compose 94/0 with
enforcement lag 11 ms, console 58/0
act 5 jobs succeeded, 0 failed; console-evidence.zip 534,721 bytes
compose assertion history: ... 81 before the retry loop, 86 before the
write-endpoint guard, 94 now
Numbers re-measured at dcf8a73: macOS host unit 128/128, integration 141/141,
smoke 28/0, compose 86/0, console 58/0, image 261 MB, 0 containers left behind.
Linux rehearsal, all three stages in one run: PASS — source (128/128, 141/141,
28/0), compose 86/0 with enforcement lag 13 ms, console 58/0, 0 containers left
behind. act at dcf8a73: 5 jobs succeeded, 0 failed — source (128/128, 141/141,
28/0), image (261 MB, compose 86/0), console (58 assertions, 524,624-byte
screenshot artifact), lint, freshness.
Prose: the cost of "readiness returns on a write, not on a timer" when the only
thing that produces that write is the attacker coming back — the t+30/60/90/120
measurement, the retry loop, and the statement that the readiness gate was not
loosened to get this.
Numbers re-measured at 336c2f7 rather than carried from the previous sweep:
macOS host unit 128/128, integration 138/138, smoke 28/0, compose 81/0, console
58/0, image 261 MB. Linux rehearsal source PASS (128/128, 138/138, 28/0),
compose 81/0 with enforcement lag 12 ms, console 58/0 with 0 containers left
behind. act at 336c2f7: 5 jobs succeeded, 0 failed — source (128/128, 138/138,
28/0), image (261 MB, compose 81/0), console (58 assertions, 498,801-byte
screenshot artifact), lint, freshness.
Prose: a paragraph on the query surface — a parameter the endpoint never
implemented used to be dropped without a trace, the answer kept its shape, and
the guard's first run broke three tests that were right to send ?token=.
Numbers re-measured at this head rather than carried forward from the commit
the last README sweep was written against:
macOS host — unit 128/128, integration 125/125, smoke 28 passed / 0 failed,
compose 74 passed / 0 failed, console 58 assertions / 0 failed, image 261 MB.
Linux rehearsal — compose 74 passed / 0 failed (enforcement lag 14 ms), console
58 assertions / 0 failed, 0 containers left behind. act (nektos/act 0.2.89,
catthehacker/ubuntu:act-latest) — 5 jobs succeeded, 0 failed: lint, source
(128/128, 125/125, 28/0), image (261 MB, compose 74/0), console (58 assertions,
480,636-byte screenshot artifact), freshness.
Prose changes, not just digits:
- The compose write scene no longer asserts `/readyz` 503 for a reporting-path
failure, and the README said it did. The sentence is rewritten to the boundary
that is actually asserted now, with the measurement that moved it: one lost
alert held `/readyz` at 503 for 120 s of idle time over a healthy write path,
because an alert pillar writes only when an alert is raised.
- Both broken-pillar scenes are now eleven assertions, not ten: each proves the
sources it claims were seen are really in the live streak map, so the scene
cannot pass by counting one docker bridge address three times.
- The honest log line is described as polled and counted (3 lines), because the
grep run immediately after the burst answers 0 and the same grep two seconds
later answers 3.
- The compose history line now says where 74 came from: 63 before the ban-write
scene, 72 before the scenes were made non-vacuous.
The full local runner pass (act 0.2.89, catthehacker/ubuntu:act-latest) on this
tree went 4 jobs succeeded, 1 failed: the console job died 33 s in, at the
seeding curl of scripts/console-smoke.sh, with curl exit 7 — nothing listening on
127.0.0.1:8080 any more.
Not a product failure and not flakiness. The image job and the console job each
run `docker compose up -d` and each tear the stack down on exit, and both take the
project name from the repository directory and the host port from a literal 8080
in docker-compose.yml. On any machine where two jobs share one docker daemon — a
self-hosted runner, or act — they are the same stack, so the image job's
`compose down` removes the containers the console job is seeding into. Run alone,
the same console job passes (act -j console: 1 job succeeded, 53 assertions). On
GitHub's hosted runners each job gets its own machine, which is exactly why this
has never been seen there and why "the workflow has never run on GitHub" is still
a gap this repository carries rather than a solved problem.
Fix: the published port is ${EDGE_PORT:-8080}, and each job names its own compose
project (openwafci-image on 8080, openwafci-console on 8090). Separate projects
means separate containers, separate volumes and separate ports, so neither job can
see the other's stack. scripts/ci-linux-rehearsal.sh passes COMPOSE_PROJECT_NAME
and EDGE_PORT through to the seeding container so an operator can isolate a
rehearsal the same way.
Measured after: the same full act pass is 5 jobs succeeded, 0 failed — lint,
source (128/128, 117/117, smoke 25/0), image (261 MB, compose smoke 53/0),
console (53 assertions / 0 failed, screenshot artifact), freshness. Locally:
compose gate 53/0 with the default project and port unchanged, and the console
gate 53/0 driven through the CI configuration (COMPOSE_PROJECT_NAME=openwafci-console,
EDGE_PORT=8090).
The Admin API section now says what GET /admin-api/allow answers — live by
default, live=false meaning "do not filter", limit 1..2000 and offset,
X-Total-Count and X-Truncated, and a live flag on each row computed from the same
AllowEntry.IsLive the engine applies — and records the measurement that made it
so: the entry written at 03:58:16 for one minute, the address through at 03:58:20
(502) and blocked again at 03:59:38 (301), the row still listed unmarked at
03:59:39 with /state still saying allowEntries:1, and 1,101 rows in 130,386 bytes
with every paging parameter ignored.
Numbers moved to the tree that has the fix (c97c7a1), host and Linux: unit
128/128, integration 113/113 (was 109), smoke 22/0 (was 19), compose 47/0 (was
43), console 50/0 (was 47), image 261 MB; Linux enforcement lag 11 ms. act 0.2.89
on catthehacker/ubuntu:act-latest at c97c7a1: 5 jobs succeeded, 0 failed, console
screenshot artifact 606,514 bytes. The workflow's own header comment carries the
same numbers, since it is the file a reader trusts when the README is one commit
ahead of the run it describes.
The rehearsal had been quoted from 8fba844 while the tree had moved three fixes
past it. All three stages were re-run separately at fc90f50, in containers:
source gates in mcr.microsoft.com/dotnet/sdk:10.0 (Ubuntu 24.04.5, SDK 10.0.401
resolving the pinned global.json) - unit 128/128, integration 99/99, smoke
passed 19 failed 0, build 0 warnings 0 errors; compose gate in docker:cli
against the host daemon - 43 passed, 0 failed; console gate in
mcr.microsoft.com/playwright:v1.63.0-noble with chromium-1243 - 44 assertions, 0
failed. The same suite on the macOS host at fc90f50 gives the same counts.
The workflow was also executed by the local Actions-compatible runner at this
commit: nektos/act 0.2.89 on catthehacker/ubuntu:act-latest, 5 jobs succeeded, 0
failed (lint, source, image, console with the screenshot artifact, freshness).
That is still not a GitHub-hosted runner - the repository has no remote - and
the README says so in the same sentence.
The admin API section gains the country-rule paragraph: PUT
/admin-api/countries/{code} checked only the length, so "12" and "U." were
stored, listed to the operator as denied, and obeyed by nobody, with no DELETE
to undo them.
Shape block: 89 -> 99 integration tests, 39 -> 44 console assertions.
actionlint exit 0; shellcheck 0.11.0 exit 0; node --check ok.
The listing-completeness fix (0e2aee6) is documented in the admin API section:
?limit= clamped instead of refusing (1000 rows of 1103 recorded sources with no
total and no flag; limit=0 and limit=-1 each returning one row), X-Total-Count
and X-Truncated now on /observations and /alerts as well as /blocks, an offset
that reaches the rest, and /streaks measuring truncation against standing
streaks instead of the size of the map.
The rehearsal paragraph is the part that was at risk of becoming a lie. The
Linux rehearsal has not been re-run past 8fba844 - the approval step for
scripts/ci-linux-rehearsal.sh failed three times this cycle and the run was not
attempted any other way - so the paragraph now says so in the open and names the
commit its numbers belong to. What was measured at 0e2aee6 is the same suite on
the macOS host: unit 128/128, integration 89/89, smoke passed 19 failed 0,
compose 43 passed 0 failed, console 42 assertions 0 failed, image 261 MB. The
same sentence was added to the header comment of .github/workflows/ci.yml, which
quoted 126/73/39 as if it described the current tree.
Shape block: 126 -> 128 unit tests, 73 -> 89 integration tests.
actionlint exit 0; shellcheck 0.11.0 exit 0.
README.md and .github/workflows/ci.yml quoted counts measured at 00f6dd9,
before the source filter was made strict. Both now say 8fba844 and carry the
counts from a run of this tree: unit 126/126, integration 73/73, smoke 19/19,
compose 43 passed / 0 failed, console 39 assertions / 0 failed.
The Shape block was stale in a way the prose was not: it still said 54 unit
tests, 30 integration tests and 41 compose assertions. Those three lines are
the first place a reader goes to size the test suite, and they were 72, 43 and
2 assertions short of what actually runs.
The README also gains the provenance section: ?source= used to map any
unrecognised value to operator, so GET ?source=enigne hid the engine bans and
DELETE ?source=enigne answered {"deleted":1} and left operator=0 engine=3 on a
stack holding 2 operator blocks and 3 engine bans. It now answers 400 naming
what was sent. The same family is documented: expiresInMinutes must be
1-5,256,000 when present, and reason/note are bounded at 512 characters after
both accepted a 1 MB payload and made the listings return ~1 MB each.
Rehearsal and the local Actions runner were both re-run at 00f6dd9:
scripts/ci-linux-rehearsal.sh: exit 0 — unit 126/126, integration 62/62,
smoke 19/19, compose 43/0, console 37/0
act push: exit 0 — all five jobs succeeded (lint, source, image, console
in ci.yml, plus freshness in geo-freshness.yml), source job unit 126/126 +
integration 62/62 + smoke 19/19, image job compose 43/0, console 37/0
actionlint exit 0; shellcheck 0.11.0 exit 0
So every place that quotes a number was moved: unit 105 -> 126, integration
55 -> 62, console 33 -> 37. The header of ci.yml also stops claiming four jobs
are five: ci.yml has four, geo-freshness.yml has the fifth, and the act run
reported all five. The console paragraph now names the escaping assertions and
what it costs to break them — esc() reduced to the identity function turns the
gate red with 6 failures and the page title into "XSS".
Rehearsal and the local Actions runner were both re-run at 52f4167, so the
numbers in the two places that quote them changed with them: unit 59/59 ->
105/105, integration 37/37 -> 55/55. Smoke 19/19, compose 43/0 and console
33/0 are unchanged.
scripts/ci-linux-rehearsal.sh at 52f4167: exit 0 — unit 105/105,
integration 55/55, smoke 19/19, compose 43/0, console 33/0
act push at 52f4167: exit 0 — all five jobs succeeded (lint, source,
image, console, freshness), source job unit 105/105 + integration 55/55 +
smoke 19/19, image job compose smoke 43/0, console 33/0
actionlint and shellcheck 0.11.0: exit 0
The configuration section now states the accepted range of every policy field,
because the endpoint now refuses anything outside it and an operator reading
this page should get the same answer the API gives.
The retention tests changed the integration count from 34 to 37, and three
places quoted the old count as if it were current:
- README, Linux rehearsal paragraph: re-ran the whole rehearsal at c7dae28 —
unit 59/59, integration 37/37, smoke 19/19, compose 43 passed / 0 failed,
console 33 assertions / 0 failed, build 0 warnings, exit 0.
- README, act paragraph: re-ran all five jobs at c7dae28 — lint, source, image,
console, freshness all Job succeeded (unit 59/59, integration 37/37, smoke
19/19, compose 43/0, console 33/0, openwaf:ci 261 MB, geo pin current).
- ci.yml header: the same rehearsal line.
actionlint exits 0 over both workflow files after the edit.
The workflow triggers on every push with no concurrency group, so pushing twice
in a minute runs the whole gate set twice, in series, and the second run's
numbers are the ones a reviewer reads while the first is still scrolling.
concurrency is now set per workflow+ref with cancel-in-progress: false. The
false is the considered half: a finished run is the evidence a merge decision
gets read later, so cancelling the run that is already executing throws away
proof to save nothing. GitHub still drops the runs that were only queued.
Verified by executing the file again rather than trusting the schema: actionlint
1.7.12 exits 0, and act (0.2.89, catthehacker/ubuntu:act-latest) plays all five
jobs green on this commit - lint (shellcheck 0.11.0, pinned), source (unit
59/59, integration 34/34, smoke 19/19), image (openwaf:ci 261 MB, compose smoke
43 passed / 0 failed), console (33 assertions, 0 failed), freshness (pin
2026-10 current). 95 assertion lines across the three live gates, same as before
the change.
Three files said "this has never run". After executing the workflows with
nektos/act 0.2.89 on catthehacker/ubuntu:act-latest, that sentence was too
broad, and a status note that is too broad is the same mistake as one that is
too narrow. What is true, per file:
- ci.yml: all four jobs executed start to finish and reported success —
lint (actionlint 1.7.12 and shellcheck 0.11.0 both download, verify their
sha256 and find nothing), source (unit 59/59, integration 34/34, smoke 19/19),
image (openwaf:ci 261 MB, compose smoke 43 passed / 0 failed), console (33
assertions / 0 failed with playwright@1.63.0 and chromium-1243; the screenshot
step published console-evidence.png 335998 B and console-evidence.phone.png
264597 B).
- geo-freshness.yml: the job executed ("pin 2026-10 / newest 2026-10 / the pin
is current", exit 0). The schedule has still never fired, and that is the part
the file is for.
- README: the same numbers, plus the point the run bought — ubuntu-latest ships
shellcheck 0.9.0-1, developers run 0.11.0, and the two disagree about one line
of scripts/geo-db-bump.sh. Fixed in the previous commit.
The distinction each file keeps saying out loud: a local Actions-compatible
runner proves the YAML plays and the pinned tools resolve. It does not prove a
GitHub-hosted run is green, and the repository still has no remote.
The workflow file had never been executed anywhere. It was linted, and its
steps were run by hand through scripts/ci-gates.sh, but nothing had ever taken
the YAML and played it start to finish. nektos/act (0.2.89, sha256
48ae218af96725f7635a66de2b87e1e346893b02add0f16b92f560296b2151fc) does that in a
Docker container, so the file itself got executed.
It found a defect on the first run. The lint job called `shellcheck` expecting
the copy baked into ubuntu-latest - 0.9.0-1, per the runner image's own package
list. Local shellcheck is 0.11.0 and says nothing about
scripts/geo-db-bump.sh:42; 0.9.0 flags it (SC2015: `A && B || C` is not
if-then-else). So the gate's verdict depended on which tool version the image
happened to ship, and the first push to a real runner would have gone red on a
pattern that is legal, just ambiguous.
Two changes, both version-independent:
- geo-db-bump.sh: the guard is now an explicit `if [ -z "$newest" ] || [
"$newest" = unknown ]`. Verified with the version that found it: shellcheck
0.9.0 in a Linux container now exits 0 over scripts/*.sh, and 0.11.0 on the
host exits 0. The script's behaviour is unchanged: DRY_RUN with a current pin
exits 0 ("nothing to do"), and an edition the vendor does not serve exits 2
("REFUSED - the freshness check could not name a newer release").
- ci.yml: shellcheck is pinned to 0.11.0 with a checksum per architecture, the
same way actionlint already is, and the step prints the version so the log
says which version did the linting.
Executed end to end in act on catthehacker/ubuntu:act-latest, arm64:
lint - Job succeeded (checkout, actionlint 1.7.12 sha256 OK, shellcheck
0.11.0 sha256 OK, 0 findings over scripts/*.sh)
source - Job succeeded (setup-dotnet, restore, build, unit, integration
34/34, smoke 19/19)
image - Job succeeded (docker build -> openwaf:ci 261 MB, compose smoke
43 passed / 0 failed)
This is not GitHub: it is a local Actions-compatible runner, so it proves the
file executes and the pinned tools resolve, not that a GitHub-hosted run is
green. The console job is the remaining one and is reported separately.
actionlint in ci.yml was invoked on .github/workflows/ci.yml only, so
geo-freshness.yml — the scheduled geo gate — was linted by whoever happened to
run it locally, not by the pipeline. A workflow added later would have been
unlinted by default, which is how a gate quietly stops covering the thing it is
for.
Fixed by globbing the workflows directory, so the step covers whatever is there
instead of a list someone has to remember.
Verified on this commit: actionlint 1.7.12 -no-color .github/workflows/*.yml
exits 0 with no findings over both files (ci.yml, geo-freshness.yml).
README quoted unit 58/58 and integration 32/32 for the Linux rehearsal, and
ci.yml's header quoted 32/32. Both were true when written; the tree has 59 unit
and 34 integration tests now, so the docs were quoting a run that no longer
matches the code they describe.
Re-ran every gate this head had not been run on, on 842b705:
host: smoke 19/19, image 261 MB, compose-smoke 43 passed / 0 failed
Linux: unit 59/59, integration 34/34, smoke 19/19, compose 43/43,
console 33 assertions / 0 failed (sdk:10.0 = Ubuntu 24.04.5,
SDK 10.0.401)
The 1:02.81 wall clock stays quoted as measured-once, because this rehearsal was
not timed either.
?token= on the admin API is an affordance for an operator typing curl; the
console never uses it and none of the gates do (0 occurrences of token= in
scripts/). Refusing it is how an operator ends up switching auth off instead of
learning the header. What was wrong was the silence.
Measured on the shipped image before deciding: a container hit with
/admin-api/state?token=<secret> logged 0 lines containing the token at the
shipped level (Microsoft.AspNetCore: Warning), and 2 lines at
Microsoft.AspNetCore=Information, including the full URL. Raising that level is
the ordinary next move while debugging, so the leak is one environment variable
away, not a hypothetical.
Now a request authenticated by the query string logs a warning naming the path
and never the token. Two tests: the query form is served and named; the header
form produces no such warning and no token anywhere in the captured logs. Teeth:
delete the warning and exactly the query test fails (1 failed, 33 passed).
Also refreshed the ci.yml header, whose Linux numbers had gone stale (54/54 +
30/30 + 41/41 -> 59/59 + 32/32 + 43/43 + 33/33), and kept the wall clock quoted
as measured once rather than current.
Gates: build 0 warnings, unit 59/59, integration 34/34, actionlint 0 problems.
Last commit covered `/admin-api/geo` behaviourally: the page fetches it and the
summary pill fails if the value is missing. That is coverage of the page, not of
the contract { if a field were renamed, or `loaded` started answering for
something else, the pill could still render and the assertion would still be
satisfied by the shape it happens to look for.
Three direct assertions in `compose-smoke.sh`: the endpoint says a database is
loaded, names what it loaded (`DBIP-Country-Lite`), and reports an age in days as
a number. 38 → **41 assertions**.
The helper that reads scalar fields caught itself: `jval` printed Python's `True`
where the assertion expected JSON's `true`, so the first run failed on spelling
rather than on the product. It emits JSON spellings now.
Numbers: host **41 passed, 0 failed**; the same script in the Linux rehearsal
(`docker:cli`, host daemon) **41 passed, 0 failed**. actionlint 1.7.12 over both
workflow files: 0 problems; shellcheck and `bash -n` clean.
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).
`GET /admin-api/alerts` appeared in **zero** gate scripts. Both alert kinds were
proven in-process, against `FakeUpstream`, at the database level — and the half
that matters for an alert, the half where a human sees it, had nothing on the
other end. The console read six endpoints and this was not one of them.
The page now renders them: kind, source, count, last status and path, when. The
kind an operator has to act on is marked rather than only printed, and the note
above the table says what each kind means in words, because `server_error_streak`
and `candidate_ban` are different sentences: your upstream is failing (and the
edge will not ban the visitor who saw it) versus the rule would have banned and
the mode is Observe.
`scripts/console-smoke.sh` seeds four 502s from an address chosen for this run
(`/boom`, added last commit), and `scripts/console-check.cjs` asserts the row by
**source and count**, the note text, the marking, and that the table survives the
phone pass: 26 → **30 assertions**.
The wiring was the interesting part. The seeding runs in one container and the
browser in another, so the address chosen at seed time cannot be inherited — an
empty `SEED_ERROR` on the driver side would have quietly turned "the alert this
run wrote" into "some alert exists somewhere". The seed now writes its values to
`console-seed.env` (gitignored) and the rehearsal passes them to the browser
container.
`AdminConsoleTests` got the fast half: the markup contains the alerts table and
fetches the endpoint. A static check cannot assert the row is there — that is
what the browser gate is for — but it can notice the table disappearing without
waiting for Chromium. 28 → **29 integration tests**.
Numbers. Host: build 0 warnings, unit 54/54, integration 29/29. Linux rehearsal,
one invocation on this tree, EXIT=0: source gates 54/54 + 29/29 + smoke 19/19,
compose **35/35**, console **30/30** in a real Chromium. actionlint 1.7.12 over
both workflow files: 0 problems; shellcheck, `bash -n` and `node --check` clean.
Two things said plainly. The console number above is the Linux one: this laptop's
browser cache has chromium-1223/1228/1234 and the pinned Playwright wants 1243,
so the darwin console gate was not re-run for this change. And during the run the
table's own note read "Newest 25" — the endpoint is capped and residue from
earlier runs fills the page. That is OPEN-18's amplification showing up where an
operator would see it, and the note states the cap instead of pretending the
table is everything.
The Dockerfile pins `ARG DBIP_VERSION=YYYY-MM`, and moving that pin was a habit
someone kept by hand: 2026-10 on 2026-10-01, 2026-09 the month before that. The
runtime answer was not better. `/healthz`'s `geoStale` is a 90-day alarm, and a
month behind is not 90 days. Measured on this tree: a container whose named
volume held `dbip-country-lite-2026-09` while the Dockerfile asked for `2026-10`
reported `geoBuiltAt: 2026-09-01T01:32:45+00:00` and `geoStale: false` — and
every geo assertion in `compose-smoke.sh` stayed green, the country deny list
still refusing 8.8.8.8 with 451. The policy was being enforced on a database
nobody chose, reported as healthy.
Three pieces:
- `scripts/geo-db-freshness.sh` compares the pin with the newest release the
vendor actually serves (14 HEAD probes, newest first). Three exit codes, not
two: 0 current, 1 the vendor has something newer, 2 could not tell — no
network, or a pin the vendor has never served, which would make the image
build fail on a 404. `MACHINE=1` prints one line for the bump script.
- `scripts/geo-db-bump.sh` rewrites the ARG and prints the two commands that
make the new database actually land. It refuses to write anything when the
check could not run: a pin moved on the strength of a check that did not run
is worse than a pin left alone.
- `.github/workflows/geo-freshness.yml` runs the check on the 1st and the 8th
(dbip publishes on the 1st; the second date catches a late publish or one
failed run). It deliberately does not open a PR — a bot that cannot run the
geo assertions bumping a data dependency is a worse default than a red job.
`scripts/compose-smoke.sh` grew the assertion that ties the pin to the running
container: `the loaded geo database is the pinned one`. Its teeth were checked,
not assumed — the stale volume above produced exactly one failure:
FAIL the loaded geo database is the pinned one Dockerfile pins 2026-10, the container loaded 2026-09
a named volume is seeded once: docker volume rm openwaf_openwaf-geoip
compose smoke: 27 passed, 1 failed
and after `docker volume rm`, **28 passed, 0 failed**.
Numbers on this tree. Host, `scripts/ci-gates.sh all`, EXIT=0: build 0 warnings,
unit 54/54, integration 28/28, smoke 19/19, image 261 MB, compose-smoke 28/28.
Linux rehearsal (third run today), EXIT=0: source PASS (54/54, 28/28, 19/19),
compose 28/28 with enforcement lag 36 ms, console 26/26. The freshness script
itself in `mcr.microsoft.com/dotnet/sdk:10.0`: current pin exits 0, a forced
`PIN=2026-05` exits 1 with the bump command. actionlint 1.7.12 over both
workflow files: 0 problems; shellcheck and `bash -n` clean.
Honest edges. The scheduled job has never run, because the repository has no
remote; and GitHub disables schedules on a repository with no push for 60 days,
so a cron is a nudge with a failure mode. A red freshness job can mean "no
network" rather than "stale" — the message names which, and exit 2 is not exit 0.
The rehearsal covered the dotnet suites, smoke.sh and compose-smoke.sh, and
then printed "console gate: not covered here (needs a real Chromium)". That was
the one honest line in the summary, and it was also the last hole: the console
job in `.github/workflows/ci.yml` runs on ubuntu-latest, so its gate was
verified only on darwin.
`scripts/ci-linux-rehearsal.sh console` closes it. `scripts/console-smoke.sh`
grew `SEED_ONLY=1` (start the stack, seed the streaks/bans/allow entries the
page must show, then stop before driving the page) and an `EDGE` override, so
the seeding half runs in `docker:cli` against the host daemon and the browser
half runs in `mcr.microsoft.com/playwright:v1.63.0-noble` — the Playwright
version pinned there is the version the CI console job pins, or the rehearsal
is rehearsing something else. The stack is torn down either way.
Two facts about that image, both now comments in the script:
- It ships the browsers (`/ms-playwright`: chromium-1243) but **not** the npm
package — there is no playwright-core anywhere in it. So the stage installs
`playwright@1.63.0` into `/tmp` and points `PLAYWRIGHT_CORE` at
`/tmp/node_modules/playwright-core`.
- The repo is mounted read-only for this stage. Writable, the install would
have dropped `node_modules` into the working tree of the checkout.
The summary line also stopped lying by accident: `verdict()` now separates a
stage the caller never asked for ("not run") from a stage that could not run
("skipped (no docker socket)"), and the exit code includes the console stage.
Two full rehearsals on this tree, one invocation each, both EXIT=0:
source gates (restore/build/unit/integration/smoke): PASS 54/54, 28/28, 19/19
compose gate: PASS 27 passed, 0 failed
console gate: PASS 26 assertions, 0 failed
wall: 2:14.33 (cold containers, cold NuGet cache)
72 assertions pass from inside Linux, and the console half includes the
round-trip a page cannot fake: a ban drawn on the page answers 301 on the next
request from that address, and the address passes again once the row is
deleted. actionlint 1.7.12 (same pinned checksum as CI): 0 problems. shellcheck
and `bash -n` clean.
Still true: none of this has executed on a runner, because the repository has
no remote. The Linux numbers narrow what a first run can discover; they do not
replace one.
`scripts/ci-linux-rehearsal.sh` (added in `42d4af9`) covered the dotnet suites
and `smoke.sh`. The third thing the objective asks CI to run — `scripts/
compose-smoke.sh` — did not have a Linux number, and "we run it on macOS against
a Linux image" is only half a proof: the script itself is the part that could be
a darwin habit.
It now runs in `docker:cli` against the host daemon, so the image build, the
stack and the asserting shell are all Linux. Full rehearsal, one invocation:
source gates (restore/build/unit/integration/smoke): PASS 54/54, 28/28, 19/19
compose gate: PASS 27 passed, 0 failed
console gate: not covered here (needs a real Chromium)
wall: 47.61 s
Getting it green surfaced two facts about the harness, not the product, and both
are now comments in the script where the next person will hit them:
- `compose-smoke.sh` asserts over JSON with **python3** (`jcount`/`jget`) and
reads the clock with it. A bare container failed **23 of 27** assertions for
nothing else. The runner image has python3; `docker:cli` does not, so the
stage installs bash, curl and python3 itself.
- The stack is created by the host daemon, so its published port lives in the
host's network namespace. Without `EDGE=http://host.docker.internal:8080`,
every HTTP assertion returns curl code `000` **while the image's own
HEALTHCHECK reports healthy** — a green stack with red assertions, the most
confusing failure this gate can produce. The gate already had an `EDGE`
override; this is what it is for.
The compose stage also printed its own instrumentation again: enforcement lag
**12 ms** between writing a ban and the edge refusing the source — the snapshot
invalidation path, measured on Linux this time.
Still true and still said plainly: none of these jobs has executed on a runner,
because the repository has no remote. The Linux numbers narrow what a first run
could still discover; they do not replace one.
The console now writes, so the question stopped being "does the table show the
ban" and became "what happens when the operator types the wrong thing". A form
that accepts `not-an-ip`, says nothing, and adds no row leaves an operator
believing an address is blocked when it is not — which is worse than giving them
no console at all.
Two assertions added to the browser gate. The API already rejected the value
(`BlockStore.AddOperatorAsync` returns `not an IP address: not-an-ip`, the
endpoint answers 400, the page already surfaces `body.error` in its status line);
what is new is that a gate now proves that chain instead of assuming it. The run
prints the actual string: `not an IP address: not-an-ip`, and no phantom row in
the bans table. Console gate: **26/26**.
Also measured, because a timeout written at a desk is a guess: the Linux
rehearsal (`scripts/ci-linux-rehearsal.sh`, added in `42d4af9`) was re-run with
`time`. Cold container, cold NuGet cache, Ubuntu 24.04.5, SDK 10.0.401:
**1:02.81** wall for restore + build + unit + integration + smoke. The source
job's `timeout-minutes: 25` is not close, even allowing for a runner's slower
CPU. Before this, the number in the workflow was folklore from a build that once
stalled ~12 minutes on a single apt-get step.
No source-tree change in this commit: gate assertions and the numbers written
down where the next reader will look for them. Unchanged and still said plainly:
no job of this workflow has executed on a runner — the repository has no remote.
Every green number this project has quoted was produced on darwin. The workflow
runs on ubuntu-latest. That is not a cosmetic difference: a gate that passes on
macOS and fails on Linux is a local habit wearing a gate's clothes, and the
first person to find out would be the first CI run — which, with no remote, is
still a run that has not happened.
`scripts/ci-linux-rehearsal.sh` copies the tree (no `.git`, no host build
output — Linux binaries landing in a macOS working tree make the next
`--no-build` try to exec an ELF file) and runs restore, build, unit, integration
and smoke inside `mcr.microsoft.com/dotnet/sdk:10.0`. Result, first try, nothing
to fix:
Ubuntu 24.04.5 LTS, x86_64
sdk resolving global.json: 10.0.401
unit Passed! 54/54
integration Passed! 28/28
smoke passed 19, failed 0
The SDK line answers a question the workflow would otherwise have asked in front
of an audience: `dotnet/global.json` pins `10.0.100` with
`rollForward: latestFeature`, and `setup-dotnet` with `10.0.x` installs
`10.0.401` — that combination resolves, measured rather than assumed.
What it does not cover, said plainly: `compose-smoke` needs a docker daemon
inside the container, and the console gate needs a real Chromium. Both of those
already drive a Linux image, so the un-rehearsed part there is the host-side
script, not the thing under test. The script installs `python3` in the container
because the dotnet SDK image has no python and `smoke.sh` uses
`python3 -m http.server` as the upstream it knows nothing about — the runner
image has python3, so this is a rehearsal detail, not a project dependency.
Nothing in the source tree changed: this commit adds the rehearsal script and
writes down what it proved. The honest status sentence is unchanged — no job of
this workflow has ever executed on a runner, because the repository has no
remote.
The page could clear engine bans and switch the mode. During an incident the two
things an operator actually reaches for are: put one address behind a block with
a reason, and pull one customer range back out from under the bans. Both
endpoints already existed (`POST /admin-api/blocks`, `POST /admin-api/allow`,
`DELETE /admin-api/blocks?key=`, `DELETE /admin-api/allow/{id}`,
`PUT /admin-api/countries/{code}?allowed=`); the page just did not expose them.
Now it does: a block form, an allow form with an optional expiry, a delete on
every ban row, a remove on every allow row, and a rule toggle on every country
row. Row buttons carry their key in a data attribute and one delegated handler
reads it, so nothing is spliced into an inline onclick string. Still no decision
logic on the page — every control is exactly one call.
The gate now checks the write on the wire, not just in the table, and that is
where the two findings were:
- An operator block answers **301 with the policy's redirect Location**
(`OperatorBlockStatus=301`, `DefaultRedirectTargets=[iana example]`), not 403.
A `fetch` that follows redirects walks out to the public internet and comes
back **200** — which is how the new assertion first reported "the ban drawn on
the page is not enforced" while the edge had been refusing that client with a
301 from the start. The probe uses `redirect: 'manual'` now. The same trap
would catch anyone writing a smoke check against this edge, so it is a comment
in the gate and a sentence in the README.
- The baseline probe in my own gate ran *after* the block was written, so it
asserted "reaches the upstream" about an address that was already blocked.
Caught because the numbers disagreed with each other, not because I re-read
the code.
Sequence the gate now proves end to end: address answers 404 → page writes a ban
→ same address answers 301 with a Location → per-row delete removes that one row
→ address answers 404 again; an allow entry appears with an expiry and can be
removed; a country rule is set to denied and put back. There is no DELETE for a
country rule, so "put back" is `PUT ?allowed=true` and the row stays behind
meaning "not denied" — documented rather than papered over. `console-smoke.sh`
now also clears allow entries on teardown, so a run that dies halfway cannot
leave an allowlist behind in the data volume and quietly change the next run.
The fast suite notices the controls too: one integration test asserts the write
controls are in the served page, so their removal fails in seconds rather than
waiting for the browser gate.
Gates on this commit: build 0 warnings / 0 errors, unit 54/54, integration
**28/28**, smoke 19/19, image 261 MB, compose-smoke 27/27, console **24/24**
(wire sequence above, phone pass at 375 px dark: scrollWidth 375, contrast
11.85:1, bars 67 px), actionlint 0, shellcheck 0. Unchanged and said plainly:
no job has ever run on a runner — the repository has no remote.
The console's country view was a column of numbers. "Where is this traffic
coming from" is a comparison, so each row now carries a bar sized against the
busiest country, and the table says what it counted. No tiles, no CDN, no asset
file: the runtime image is distroless and the page has to work at the moment the
site in front of it is being attacked. A geographic map is still not here and
the README now says why plainly — the admin API exposes counts per ISO code, not
coordinates, and an outline drawn from memory would be decoration that misleads.
The first run after the change failed, for a real reason: the class I added was
`.bar`, and the page already had a `.bar` — the toolbar. The toolbar collapsed
to 0.55em tall, `div#summary` started intercepting pointer events, and every
assertion after the token click died on a click timeout. Renamed to
`.sharebar`.
The gate itself got the same treatment as the page. It used to leave a reviewer
with nothing but a stack trace; now it writes a screenshot both when the page
cannot be driven at all and when it is driven and wrong. That path was checked
by making it red on purpose: with seeds that do not match the stack it exits 1
naming 3 failed assertions and writes a 105078-byte picture.
Measured, not assumed, in the same pass:
- `ci-gates.sh` gained a `console` gate and the workflow calls it by that name
instead of retyping the script: one definition, two callers. It is
deliberately NOT in `all` — without a Chromium the gate exits 2 ("cannot
run"), which is a different answer from 1 ("the page is wrong"), and folding
it in would make the one-command entry point unrunnable off a CI runner.
- `ci-gates.sh all` no longer stops at the last gate for want of an admin
token: it was dying at compose-smoke with `OPENWAF_ADMIN_TOKEN: set …` before
it could print a verdict. The throwaway for the stack the gate starts and
tears down itself is defaulted there; the standalone scripts still refuse to
invent one, because run by hand they can be pointed at a real deployment.
- The console job publishes the desktop and phone screenshots as artifacts,
with `if: always()` so the failure case is the one you can look at. The
relative SCREENSHOT path and the `console-evidence*.png` glob were verified
locally: 107935 and 86179 bytes written.
- DBIP_VERSION 2026-09 -> 2026-10. Not a cache hit: 8348509 bytes fetched,
image 261 MB, compose smoke 27/27 afterwards.
- The trap that bump exposes, measured rather than reasoned about: the same
rebuilt image reported `geoBuiltAt: 2026-09-01T01:32:45Z` against the
existing `openwaf_openwaf-geoip` volume and `2026-10-01T01:36:12Z` after
removing it. Docker seeds a named volume from the image only when the volume
is first created, so a rebuild alone never replaces the geo database.
Gates on this commit: build 0 warnings / 0 errors, unit 54/54, integration
27/27, smoke 19/19, image 261 MB, compose-smoke 27/27, console 16/16 (desktop
bar 513 px inside a 529 px cell; phone pass at 375 px in dark mode: scrollWidth
375, status contrast 11.85:1, bars 67 px), actionlint 0, shellcheck 0. Still
true, and unchanged by any of the above: not one of these jobs has run on a
runner, because the repository has no remote.
OPEN-10's honest caveat has always been the same sentence: the workflow has
never executed on a runner, so it proves what CI will run rather than being
green. That gap cannot be closed from this machine — the repository has no
remote — but the gap behind it can. Until now ci.yml retyped every command, so
"an agent ran these commands on a laptop" and "CI runs these commands" were two
claims that could drift apart without anyone noticing.
scripts/ci-gates.sh is now the single definition: restore, build, unit,
integration, smoke, image, compose-smoke, or all. The workflow calls one gate
per step, so the job log still names the gate that failed, and an operator
running scripts/ci-gates.sh all before pushing is running the same file.
The console had no gate at all. Its evidence was an agent driving Chromium from
a script in /tmp. scripts/console-smoke.sh starts the stack, seeds a source
sitting at 2 of a threshold of 3 and an operator block with a reason, drives
/admin in a real Chromium and asserts seven things: the page authenticated, the
standing streak is shown as current/threshold rather than as a historical
maximum, the block shows its reason, observations and the country summary
rendered, the token is nowhere in the markup, and the page threw no javascript.
It needs playwright-core and exits non-zero when that is missing — a gate that
reports success having asserted nothing is worse than no gate. The negative
control was run: with a wrong token it exits 1.
Verified on this commit: scripts/ci-gates.sh all end to end — build 0 errors,
unit 54/54, integration 27/27, smoke 19/19, image built, compose-smoke 27/27;
console-smoke 7/7 assertions against the running stack (playwright-core 1.61.1);
actionlint 0; shellcheck over scripts/*.sh 0. The new console job pins
playwright@1.63.0, a version checked against the registry rather than guessed,
and it has never run on a runner — the README says so in the same breath as the
rest of the workflow.
README gains a Gates section and the per-process cost bullet now quotes the
measurement instead of the worry.
A gate that is only checked by eye is a gate that fails silently. Two additions
to ci.yml:
* a lint job running actionlint 1.7.12 pinned by a checksum-verified tarball —
not piped from a setup script, because a gate someone can move by
republishing a tag is not a gate. actionlint also shellchecks the run: blocks
it reads, including its own.
* shellcheck over scripts/*.sh. Both smoke scripts are gates, so a broken one
has to fail loudly rather than report a green run with zero assertions.
shellcheck found four real things in compose-smoke.sh: an unguarded cd, and
unquoted source IPs in the X-Forwarded-For helpers. Fixed; the script now passes
shellcheck and still reports 27/27 against the built image.
Verified, not assumed: actionlint exits 0 on this file locally (shellcheck
integration active), and the lint step's body — checksum, tar, actionlint — was
run on ubuntu:24.04, the family ubuntu-latest runs on, with the pinned digest
confirmed against the published artifact (sha256sum -c: OK). What is still not
verified is the workflow running on a GitHub runner: the repository has no
remote.
OPEN-2's evidence says, four times, that no CI pipeline exists and every gate
was run locally by an agent. That is the weakest link in the project's claims,
so this closes it: .github/workflows/ci.yml runs restore, build
(TreatWarningsAsErrors is on in Directory.Build.props, so this is also the
warning gate), the unit and integration suites, scripts/smoke.sh, docker build,
and scripts/compose-smoke.sh against the built image.
Every command in the file was run on this commit and passed: restore 0, build 0
with 0 errors, 36 unit + 15 integration, smoke 19/19, docker build 0 (image
261 MB), compose-smoke 24/24. The script's exit convention is checked both ways
(rc=0 on pass, rc=1 on failure), so a failing gate really does fail the job.
What is NOT claimed: the workflow has never run on a runner — the repository has
no remote. The file states that in its own header, because a CI config is not
evidence that CI is green. Timeouts are explicit: the first build of this
project stalled ~12 minutes on one apt-get step, and a hung job is worse than a
failed one.