From bdb1463630ef2863f34596b78b307ca5dee7d9ae Mon Sep 17 00:00:00 2001 From: Sirius DevOps Date: Fri, 27 Nov 2026 02:31:42 -0500 Subject: [PATCH] README: record the seed-silence evidence end-to-end and the real deliver target Adds the 07:25Z live cold-start proof (delivery_outcome=suppressed, 134 tuples absorbed, 5 held tripwires emitted by the 07:30Z warm tick, delivered) and the budget-resume run (3 unseeded ticks, all silent). Also corrects the deployment table: the live job is deliver=telegram and has been delivering (02:05/02:15/02:20/02:30Z in executions.db); the 'deliver: local, no channel' row predates that and would send the next reader down a dead end. --- README.md | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8fe4e45..1ffeaa7 100644 --- a/README.md +++ b/README.md @@ -293,8 +293,8 @@ UTC day rollover. No alert is ever raised from it. | repo | `sirius/netsec-agent` on Forgejo, cloned at `~/Projects/netsec-agent` | | shim | `~/.hermes/scripts/netsec-scan.sh` → `exec /home/lancelot/Projects/netsec-agent/run.sh "$@"` (`chmod +x`: a non-executable shim fails with `Permission denied` **on empty stdout**, which looks exactly like a healthy silent tick) | | scheduler shim | `~/.hermes/profiles/devops/scripts/netsec-scan.sh` → execs the canonical shim. The cron scheduler only accepts a `script` path that resolves inside `/scripts/`, so the profile copy exists purely for that guard; the real entrypoint stays in one place. | -| cron | Hermes job `netsec-scan`, `no_agent` script job, every 5 minutes, `workdir ~/Projects/netsec-agent`, `script netsec-scan.sh`, `deliver local` (see below), `wrap_response off`, `catch_up false` | -| delivery | **`deliver: local` — this profile has `platforms.telegram.enabled: false`, so `deliver: telegram` fails with `no delivery target resolved for deliver=telegram`** (observed on the 00:30 run). The tick's output is therefore captured verbatim in `~/.hermes/profiles/devops/cron/output//.md` and in `executions.db`. Pointing it at a real channel is a gateway/config decision (or the wake-path card), not something this sensor can fix; do not set `deliver: telegram` here without a channel, or every hit reports `delivery_outcome: failed` instead of landing in the run doc. | +| cron | Hermes job `netsec-scan`, `no_agent` script job, every 5 minutes, `workdir ~/Projects/netsec-agent`, `script netsec-scan.sh`, **`deliver: telegram`**, `wrap_response off`, `catch_up false` | +| delivery | **`deliver: telegram`** (the devops profile has a working Telegram channel; the earlier `deliver: local` note was true only until the gateway channel existed). Every run's outcome is in `~/.hermes/cron/executions.db` (`delivery_outcome` = `delivered` / `suppressed` for empty stdout) and the tick text in `~/.hermes/cron/output//.md`. **stdout is the only thing delivered** — stderr diagnostics (the `seed:` lines, `--verbose`) never reach chat, which is why a seed tick's silence shows up as `suppressed` with `Status: silent (empty output)`. | | state | `~/.hermes/cron/netsec-scan-state.json` (+ `.memo.json` for degradation wording) | | reports | `~/Projects/netsec-agent/reports/YYYY-MM-DD.json` | @@ -303,11 +303,14 @@ credentials, no LLM call, no secret reads. ## Verified behaviour (2026-11-27) -* 89 unit tests pass against recorded fixtures (`tests/test_archives.py` covers +* 90 unit tests pass against recorded fixtures (`tests/test_archives.py` covers the gz path: read-once, torn archive, budget/pending, cold seed, warm-state archive absorption, single-fire; `tests/test_http_rules.py` covers the gateway rules: every category, the Forgejo browse/git FP shapes, `coalesce(client_ip, - peer)`, the auth-rate floors and the flood cap). + peer)`, the auth-rate floors and the flood cap; `tests/test_seed.py` covers + seed silence: cold start, `--dry-run` cold start, a resume tick while still + unseeded, a held PromQL tripwire reported by the first warm tick, and + single-fire from a seeded state). * **Gateway rules (§4d) on the live stream**: calm window `07:03:40–07:13:40Z` (5 474 requests, 154 candidate lines) → **0 findings, stdout empty, exit 0**. The 06:48–06:53Z `91.92.47.0/24` burst → 8 findings (secret-file ×4, @@ -342,6 +345,21 @@ credentials, no LLM call, no secret reads. `seed`, and per-shape file counts). * Cron delivery proven through `~/.hermes/cron/executions.db` (`delivery_outcome=delivered`) — see the task handoff for the transcript. +* **Seed silence, end-to-end through the scheduler** (t_cf3e563a): the live + state was removed at 07:22:12Z, so the 07:25Z tick was a real cold start — + `delivery_outcome = suppressed`, run doc `Status: silent (empty output)`, + state `seeded: true` @ 07:25:59Z, `seed.absorbed 134`, `window 2.36h from + 05:04Z`, `5 file(s) (4 archive(s))`, 8.99 s, 0 pending. Five current-state + tripwires were live at that moment (new-port ×4 + drop-spike) and were **held** + (`seen[…].last_alert: ""`); the 07:30Z warm tick then emitted exactly the four + still-current ones and `delivery_outcome = delivered`. The storm the card was + filed for (14 lines at 07:05:46Z, `delivered`) does not reproduce: a throwaway + state now prints **0 lines** in both normal and `--dry-run` mode, stdout + 0 bytes, exit 0. +* **Budget-resume, live store**: `ARCHIVE_MAX_FILES=1` against 4 archives → + ticks 1-3 `seeded: false` with 78/2/44 new tuples absorbed and 3/2/1 pending, + **every tick stdout 0 bytes** (`seed: … still pending, next tick continues + silently`); tick 4 completes at 2.21 h and seeds. * Live tripwire values at commissioning: hubble-loss HIGH on siriussec (0.42-0.60 events/s) and linode (0.13-3.2 events/s); `new-port` LOW for 3100/9093; the rest quiet.