Files
openwaf/scripts
Pavlo Ratushnyi 3db8fdb76f An operator command that could not run is now asked of the shipped image
The storage-failure honesty fix (a77ab53) was proven in TestServer and never
asked of the ship shape — the same gap OPEN-25 closed for country rules.
scripts/compose-smoke.sh gains a 22-assertion scene. The trigger is SQLite
BEFORE INSERT/UPDATE/DELETE triggers on block_entries and policy_settings, not a
dropped table: a dropped table breaks the listing too, and a listing that
answers 500 is honest about being broken. The lie this scene is after is the 2xx
that still looks complete, so the trigger has to leave the reads working.

The first run of the scene caught its own bug: an INSERT/UPDATE pair left the
delete path untouched, so the two blocks really were deleted, the answer really
was 200, and the scene was asserting a failure that had not been produced
(195 passed, 6 failed, /tmp/c26_compose1.log).

The teeth were measured on this tree, not quoted from the ticket. A failed
DELETE answering {"deleted":0} again answers 204 passed, 3 failed on the image
(/tmp/c26_mutM1_compose.log) against 2 of 7 in-process. The console swallowing an
empty 5xx again answers 72 ok, 3 failed (/tmp/c26_mutM3_console2.log), with the
recorded status line reading "ok: deleted ? block(s)".

One assertion was written wrong and the mutation is what said so. "readiness
stops saying ready when the block table is not there" still answered 503 with
/readyz put back to CanConnectAsync — 207 passed, 0 failed
(/tmp/c26_mutM2_compose.log) — because renaming the table breaks the snapshot
build as well, and the snapshot guard refused for its own reason under the same
status code. A code two guards can produce proves nothing about either of them.
The scene now reads the body: the block-table read answers with the storage error
alone, the pillar answers with "the guard's snapshot has not refreshed". With
that in place the same mutation answers 208 passed, 1 failed
(/tmp/c26_mutM2b_compose.log).

scripts/console-check.cjs gains the page half of AC6, which it had never asked:
an empty 503 on a destructive row action has to be said out loud, must not
become the success note the button would write, has to survive the refresh that
action triggers itself, and has to clear on the refresh after that. The scene
records every sentence the status line wears during the click, because the
regression writes its green note and loses it under "refreshed" before a single
after-the-fact read could see it.

209 compose assertions, 75 console assertions, both gates green on this tree.
2026-10-04 12:26:14 +02:00
..