GET /admin-api/expiring?within=<minutes> (1..1440, 30 by default) lists the dated
entries that stop being enforced inside the window, nearest first, and each
address-shaped row carries thenAnswers: the real DecisionEngine.Decide over a
snapshot with only that entry removed. An exemption about to lapse therefore says
which ban is waiting underneath it ("block_operator by 203.0.113.16/28"), and a
block that stands alone says the source goes free. A path rule and a path budget
have no single answer: thenAnswers is null and whyNoAnswer points at
/admin-api/decide?ip=&path= instead of the surface guessing one. Entries that
never expire are not listed; alreadyExpired counts the dated rows whose moment
already passed, which is what separates "nothing expires soon" from "there are no
dated entries". The listing reads the database, the read-only token can ask it,
and six asks write nothing.
Rulings:
- the probe address for a CIDR is its network address, which is inside the group
it describes; a pattern is not probed at all.
- the window is capped at a day because that is the longest thing an operator
plans for; out of bounds is a 400 naming 1..1440.
- the console prints the window it asked for as the first line of the answer and
empties the box before the call, so neither a scene nor an operator on a slow
link can read the previous answer as the new one.
Two product defects fell out of the gates on the way:
- the alert push worker was registered as a hosted service above the schema step,
and hosted services start in registration order: on a cold start its first
queue sweep read alert_push_queue out of a database this process had not
created, and "SQLite Error 1: no such table" became alertWebhookLastError -
the state page blaming the webhook endpoint for the edge's own startup order.
The notifier is now registered below the warmer and the order is asserted.
- a listing the edge could not answer was drawn as an empty one: with two of the
page's fourteen calls answering an error, the observation line printed "0
sources the edge has recorded" and the streak line "0 of 0 standing streaks
listed" over a map holding twelve sources. A count read off a failed answer is
0, and 0 says there is nothing to see. Every count-bearing note and its table
now say NOT READ with the error beside them.
The gate's own traps, caught and fixed: the budget scene cleared the engine ban
its probes caused after the probe that ban was failing, and its reopen retry loop
banned itself three refusals deep; the alerts assertion read a row written off the
response before the next refresh drew it.
gates: build 0 warnings / 0 errors, unit 377/377, integration 375/375 in 35 s,
console 142 assertions 0 failed, smoke passed 217 failed 0, compose 324 passed
0 failed against the built image at 262 MB, 0 containers left behind.
Refs OPEN-72.