syn

Syn test traceability matrix

Generated by tests/gen_docs.py from tests/requirements.py and the REQ: tags in each test’s docstring - do not edit by hand. How the tests work: TESTING.md.

364 requirements, 364 covered (100%), 1390 tests (1222 unit, 168 end-to-end).

Last run: 3 expected failure (known bug), 1387 pass

Summary

Req Area Requirement Source Unit E2E        
AUTH-01 Authentication Passwords are stored only as salted scrypt hashes; a wrong password never verifies. ACCESS_CONTROL.md 7 3        
AUTH-02 Authentication Passwords shorter than 10 characters are rejected (add user, reset, self-service change). USER_GUIDE.md §2 5 2        
AUTH-03 Authentication Usernames are 2-40 characters of letters, digits and . _ @ -; duplicates are rejected. ACCESS_CONTROL.md 3 1        
AUTH-04 Authentication Sessions are signed tokens that expire (SESSION_HOURS) and are revoked by logout or a password change. ACCESS_CONTROL.md 12 5        
AUTH-05 Authentication Repeated failed sign-ins from one client address are throttled. ACCESS_CONTROL.md 8 1        
AUTH-06 Authentication On first start the first account is seeded from DASH_USER/DASH_PASS; afterwards the env vars are ignored. SETUP.md §6 3 1        
AUTH-07 Authentication Accounts that predate roles are migrated to Admin once, so nobody loses access. ACCESS_CONTROL.md (Upgrade) 1 1        
AUTH-08 Authentication A newly created account is flagged for the first-sign-in setup walkthrough until it is finished or skipped; existing accounts are not. ACCESS_CONTROL.md 1 0        
AC-01 Access control Unauthenticated requests get 401 (API) or a redirect to /login (pages); only the login/PWA shell and /healthz are public. ACCESS_CONTROL.md 0 5        
AC-02 Access control Three roles exist (admin, defender, user); a missing or unknown role is treated as User (least privilege). ACCESS_CONTROL.md 4 2        
AC-03 Access control A User may call only the USER_GET / USER_POST allow-lists; every other API returns 403. ACCESS_CONTROL.md 0 4        
AC-04 Access control A Network defender can read everything and do analyst work but cannot change settings (admin-only POSTs return 403). ACCESS_CONTROL.md 0 4        
AC-05 Access control An admin cannot demote themself, and the last admin can be neither demoted nor deleted. ACCESS_CONTROL.md (Safety rules) 2 2        
AC-06 Access control A User sees only alerts/events of devices assigned to them, and the site config they receive omits IP hints. ACCESS_CONTROL.md (User role) 4 7        
AC-07 Access control A User’s ‘mark all read’ is a private marker that does not change the shared bell. ACCESS_CONTROL.md 1 1        
AC-08 Access control Role changes, user adds/deletes and password resets are admin-only and take effect on the next request. ACCESS_CONTROL.md (Managing access) 3 6        
AC-09 Access control A User’s pushes and Alerts page show a short plain-language line (device + what happened); the raw alert text (signature names, IPs) stays with admins and defenders. ACCESS_CONTROL.md (User role) 5 0        
AC-11 Access control The model-training status page (/training) is shown only to admins; defenders and Users get 403, signed-out visitors the login redirect, and a missing status file a 404. ACCESS_CONTROL.md 2 0        
AC-10 Access control An alarm reaches a User (push or Alerts page) only after the final group verdict is suspicious - never on a fail-safe push, a pending or provisional label, or an expected / benign verdict. ACCESS_CONTROL.md (User role) 3 0        
SEC-01 Web security Every response carries the security headers (CSP, HSTS, X-Frame-Options DENY, nosniff, Referrer-Policy, COOP/CORP). SETUP.md / server.py 0 5        
SEC-02 Web security The dashboard is served over TLS 1.2+ only. SETUP.md §6 0 3        
SEC-03 Web security The session cookie is HttpOnly, Secure and SameSite=Strict. ACCESS_CONTROL.md 0 1        
SEC-04 Web security Site data (site IPs, MACs, host/account names, private config, DBs, keys) can never be committed to git (repo_guard). SETUP.md §9 22 1        
SEC-05 Web security Static file serving cannot escape the static directory (no path traversal) and unknown paths return 404. server.py 0 2        
SEC-06 Web security The state database and its WAL files (which also hold the UniFi cache) are owner-only (0600); cached controller credentials are redacted. ACCESS_CONTROL.md (Where it lives) 4 2        
AUD-01 Audit log Every POST is audited with user, role, outcome and parameters, with secrets redacted. AUDIT_LOG.md 22 2        
AUD-02 Audit log Every sign-in attempt and every refused (403) request is audited. AUDIT_LOG.md 2 2        
AUD-04 Audit log Every log entry sent to Elasticsearch goes to a daily index .YYYY.MM.DD of its own timestamp (whole days can be deleted by a retention rule); every correlation-review pass with work or a problem and every review-job run is logged (syn.review) and summarised on AI review > Review log. AUDIT_LOG.md 4 0        
AUD-05 Audit log No audit entry is lost while Elasticsearch is slow, busy or restarting: deferred (429/503) entries, a full queue and the queue at shutdown go to the disk spool; re-sends are idempotent (_id = event.id); malformed entries are kept in a dead-letter file; entries are dropped only when disk space runs low. AUDIT_LOG.md (How it works) 10 0        
AUD-06 Audit log Every event reviewer web search or page read is an audit-log item (aireview.websearch, user Syn (event reviewer)) with the search or URL, why, the event under review, result count, result links, cached flag and error; the Audit log page labels, counts and filters them (they replace the AI pipeline monitoring web searches box). AUDIT_LOG.md 2 0        
AUD-03 Audit log Audit entries spool locally while Elasticsearch is unreachable; auditing never breaks a request. AUDIT_LOG.md (How it works) 15 2        
STO-01 Store Snapshots, ranges and job/config state are JSON documents in the SQLite docs table (jload/jdump/jglob drop-ins). store.py 21 5        
STO-02 Store Configuration (site, policy, host_policy, known_benign) is stored as flattened cfg rows that round-trip exactly. SETUP.md §2 8 0        
STO-03 Store Check-offs (acks) persist with note and label and can be set/cleared in bulk. USER_GUIDE.md §5 4 3        
STO-04 Store Mute (‘Never send’) rules match alerts by name glob and optional host, and clear matching alerts. USER_GUIDE.md §4 4 0        
STO-05 Store Suppression rules (artifact, segmentation flow, IDS signature) hide only what they match. PLAYBOOKS.md §17 12 0        
STO-06 Store Alerts are stored once, can be promoted/held/deleted, and track pushed/read state. USER_GUIDE.md §4 26 1        
STO-07 Store Per-user device assignment (push prefs) decides which alerts a user is targeted by. ACCESS_CONTROL.md 35 2        
STO-08 Store Auto-close checks off every open event (any type or age) an enabled AI source calls expected/benign, never one called suspicious, never re-closes one a person reopened, and reopens it when the verdict turns bad. autoclose.py 7 0        
STO-10 Store Open events older than the loaded snapshot keep their related events: the count, linked events, artifacts and the decision model’s (clef) p(related) come from the stored verdicts. eventstore.py / corr_llm.related_view 1 0        
STO-09 Store Nightly host note consolidation merges only unreviewed AI notes, keeps every [reviewer:] tag and identifier (IPs, domains, ports, paths, hashes) or leaves the notes unchanged, never touches person-written notes, skips unchanged hosts, and runs once a day at the time set on AI review. notes_consolidate.py 6 0        
STO-16 Store The UniFi pre-warm cache (system/admin log and flow rows, current-state calls, console id) lives in netmon.db with its freshness rules (tail refresh, retention, row cap, 15-min TTL), atomic writes and consistent reads; no cache files are written and the retired cache directory is blocked by the ship gate. docs/ARCHITECTURE.md 4 0        
STO-12 Store Auto-close guard rails hold back AI verdicts (never a person’s): an event reviewer label below the minimum confidence without an agreeing research note, events in protected attack categories, and any event on a host with a recent open suspicious event stay open (the host hold also reopens that host’s recent AI closures); an AI closure expires after the set days when the event repeats and closes again only on a newer verdict. autoclose.py 8 0        
STO-13 Store Internet notes may cover a wider scope: a note on a parent domain (*.example.com) applies to every subdomain and a note on a CIDR range (/8 or narrower) to every address in it; the event reviewer and event research receive those notes for each covered name / address. kb.py 8 0        
STO-14 Store A person’s Expected / Benign verdict on an event can name the artifacts it applies to (scope: device, kind of finding, IDS signature, IPs, DNS names, processes, accounts, ports); any event showing all of them gets that verdict. The event reviewer is told the verdict, and its label is replaced by the person’s verdict unless it is at least as confident as the verdict’s weight (artifact match 0.95, same event 0.9); a threat-intel hit keeps a suspicious label unless the verdict covers the listed indicator (STO-18). Expected / Benign do not save on click: the person adds a reason and picks artifacts, then saves. kb.py, clef.py, corr_llm.py, kbnotes.js 10 0        
STO-11 Store Consolidation merges only notes about one shared artifact (not counting the host itself or a bare port), never adds an identifier its notes did not have, and drops malformed [reviewer:] tags, so it never links artifacts the notes did not link. notes_consolidate.py 3 0        
STO-17 Store Security > Event notes lists every person’s event note grouped by the signature that raised it (IDS signature via ids event, sig: scope or quoted label; detection kind via f or find: scope; host finding kind; threat-intel direction; admin service; alert title), leaving no note out, and lets people edit a note's text, verdict and scope: admins / defenders edit any note and keep its review status, a User edits only their own notes and the edit goes back to pending; the verdict boilerplate is rebuilt and the editor recorded. docs/USER_GUIDE.md 7 0    
STO-18 Store A person’s Expected / Benign verdict stops a recurring alert: its scope may name a whole domain (dns:*. = the name and all of its subdomains, never a bare suffix); a verdict that covers an event's listed domain (written on that event, or scoped to the domain) overrides a threat-intel hit unless the intel grew since the verdict (new feed or higher score); a verdict may expire (7 / 30 / 90 / 365 days, default 30 when the event has threat intel), after which the AI and auto-close ignore it; the AI's notes calling a cleared domain malicious are marked rejected and not written again; report text that names JavaScript code, public resolvers, threat-intel services or victim sites is not extracted as an indicator. kb.py, corr_llm.py, iocs.py, intelmatch.py, server.py, kbnotes.js 6 0        
STO-15 Store Every host note carries its creation date and last-used date; an AI reading it for an event or host it involves (or a person editing, accepting or rejecting it) restarts the clock, dashboard listings and full dumps do not, and notes unused for the configured days are deleted with their artifact index rows; each note shows how long it has left. docs/CORRELATION.md 4 0        
ANA-01 Baseline analysis analyze.py learns a per-device baseline (keyed by MAC) and flags volume/upload/count spikes only after MIN_DAYS of history. analyze.py / RISK_SCORING.md 16 3        
ANA-30 Baseline analysis: new destinations The learned-allowlist findings iot-new-domain (domains, new networks, IPs with no ASN) and new-tls-server (TLS server names) are raised, and destinations collected, only for device classes whose switches are on (class_defs; default iot only, built from the older new_domain_classes / new_tls_classes lists, which are still read until class_defs is saved); collect.py gathers destinations through extras.new_dest_ips. docs/USER_GUIDE.md (Device class definitions) 2 0        
RISK-01 Risk scoring Vulnerability risk is 0-100 from severity base x kind factor x host exposure, plus recurrence. RISK_SCORING.md 16 0        
RISK-02 Risk scoring Host risk is 0-100, the sum of capped components (exposure, weaknesses, threat, lateral, visibility). RISK_SCORING.md 15 2        
RISK-03 Risk scoring IPs map to policy zones by CIDR; segmentation flows are keyed by device MAC so DHCP changes follow. RISK_SCORING.md 16 1        
RISK-04 Risk scoring Cleared segmentation flows stay cleared under both their IP and MAC form. CORRELATION.md (Clearing segmentation) 7 0        
ISS-01 Fix list The fix list flags plaintext services, legacy TLS and other weaknesses found in a snapshot. USER_GUIDE.md (Fix list) 15 0        
ISS-02 Fix list Issues are tracked across snapshots (first/last seen, occurrences) and only recurring ones are kept. RISK_SCORING.md (Recurrence) 13 0        
LAT-01 Lateral movement Admin sessions between zones get a risk level; allow rules downgrade them to allowed-admin. CORRELATION.md §1 30 0        
LAT-02 Lateral movement Lateral data from several periods merge into one graph (flows summed per src/dst/port/proto). CORRELATION.md §1 9 0        
COR-01 Correlation Concrete artifacts (files, processes, users, domains) are extracted from event text without lookups. CORRELATION.md §2 15 0        
COR-02 Correlation Event ids are stable hashes (FNV-1a base36) identical in Python and app.js. CORRELATION.md (Event ids) 14 0        
COR-03 Correlation Events sharing hosts/IPs/accounts/time/ATT&CK are linked when the score passes the threshold, capped per event. CORRELATION.md §2 23 1        
COR-04 Correlation Host-local artifacts (processes, files, accounts) are attributed only to the host they were read on, never to peer IPs in the same event. CORRELATION.md §2 3 0        
COR-05 Correlation Notes link only to the artifact they are about: an event reviewer artifact must be of its kind and carried by an event with a single owning host; notes on another host match an event only by a shared IP or DNS name. CORRELATION.md §2 5 0        
MIT-01 ATT&CK Findings map to MITRE ATT&CK techniques by rule; every rule references a technique in the catalog. README.md 15 1        
AIR-01 AI AI pipeline monitoring loads its parts separately and lists no individual link decisions: the status request carries no verdict rows but keeps the verdict totals (GET /api/aireview/verdicts is gone). USER_GUIDE.md §7 2 0        
AIR-02 AI The Review log shows Correlation review busy: the summed duration of every correlation-review pass in the period divided by the period (capped at 100%), with pass count, median and longest pass, from an Elasticsearch aggregation over all passes, or from the listed entries when only the in-memory log is available. AUDIT_LOG.md 3 0        
LLM-01 AI Model answers are parsed defensively: the first JSON object is used and unknown verdicts/priorities fall back to safe values. USER_GUIDE.md §7 25 0        
LLM-02 AI The dashboard runs fully with the local LLM switched off (NETMON_LLM=off). SETUP.md §6 0 3        
LLM-03 AI With the decision model on, clef decides every candidate link (yes/no related?) and nothing else; once no link is undecided the selected event reviewer makes one call per event with its related events and notes, labels it suspicious / benign / expected with a confidence and writes an analyst write-up (Why it fired, with what it actually was, then Verdict) and the link artifacts, with no per-link reason - it never decides a link. A failed answer stores nothing and is retried at most REVIEW_RETRIES times per signature. CORRELATION.md 14 1        
LLM-04 AI Tokens of the decision model and event reviewer are summed per hour and step; the monitoring chart adds an estimated cost only for models with prices set. USER_GUIDE.md §7 2 0        
LLM-05 AI GPU use of the local models is sampled per process (SGLang = decision model, vLLM = event reviewer, else other) and averaged per minute for the monitoring chart. USER_GUIDE.md §7 2 0        
LLM-06 AI The default decision model is syn-correlation-flash on a loopback-only OpenAI-compatible server: one chat call per question with the trained State / Question / A-B prompt, one token at temperature 0, p(yes) = softmax of the B vs A logprobs; a reply without logprobs raises and stores no verdict. CORRELATION.md §3 3 0        
LLM-07 AI The event reviewer prompt’s no-note rule: attack-like activity that nothing explains (scanning, password guessing, exploit attempts, unexpected privilege or credential use, web shells, exfiltration) is suspicious even without a note; benign / expected best guesses (confidence at most 0.6) are only for odd-but-harmless activity. CORRELATION.md §3 1 0        
LLM-08 AI Event reviewer and chat Elasticsearch look-ups are structured requests (never DSL) built and bounded by es_context: exact / any-of / excluded values, numeric and IP ranges, prefixes, exists / missing, one- or two-level top values (common or rare), distinct / sum / avg / min / max metrics and time histograms with a regularity summary; at most 6 filters per kind, 20 top values, 300 histogram buckets, 7 days, 20 s. CORRELATION.md (Elasticsearch look-ups) 9 0        
LLM-09 AI Field names in a look-up are checked against the index mapping (_field_caps, cached 30 min): an obvious near-miss is corrected and reported, an unknown field is refused with suggestions, free-text fields group by their .keyword twin, ranges and sums need number / IP / date fields; without a mapping only the shape is checked. CORRELATION.md (Elasticsearch look-ups) 6 0        
LLM-10 AI The event reviewer’s look-up instructions include an investigation playbook (scan, beacon, exfiltration, brute force, lateral movement, rare / first seen, DNS tunnelling, who else) mapped to the search features, and the JSON schema offers every feature. CORRELATION.md (Elasticsearch look-ups) 1 0        
LLM-11 AI An admin can choose a dedicated Elasticsearch planner model (AI pipeline configuration > Models; none = the event reviewer plans): it writes the look-ups-first searches with a plain-English reason each (shown as ‘Why:’ under every search on the event), web look-ups stay with the reviewer, and a failed planner call falls back to the reviewer. CORRELATION.md (Elasticsearch look-ups) 7 0        
LLM-12 AI Admins have an Elasticsearch planning review page (/esqreview): events with the searches the teacher models planned and their Elasticsearch results, where the admin marks each search good / bad, runs and adds searches of his own (host broker, read-only, at the event’s time) and notes; stored in state/esq_review.db (0600), admin-only GET and POST. CORRELATION.md (Elasticsearch look-ups) 7 0        
LLM-13 AI For an event that involves an internal system, every review automatically runs standard “who is on this system” Elasticsearch searches, each with a plain-English reason and not counted against the planner’s own search budget: admin connections (ssh, telnet, rdp, vnc, winrm) going to the system and from where, accepted ssh logins (user and source address), session opened / closed per user, and the people’s accounts running processes in the endpoint logs. Events with no internal system get none. CORRELATION.md (Elasticsearch look-ups) 4 0        
CFG-06 Configuration Suppress rules (signature, IDS and segmentation) are listed and removed on Settings → Configuration; there is no Checked page. USER_GUIDE.md §4 / CORRELATION.md 1 0        
CFG-01 Configuration Site settings fall back to safe defaults; the browser receives only the public subset. SETUP.md §2 18 1        
EVW-01 Event window One event window setting (More > Settings > Site > event_window_minutes, SQLite cfg table; whole minutes 2-120, default 5) is read live by the correlation, the review job and the event reviewer without a restart; invalid values are refused and the retired hours review lookback is migrated once (hours x 60). docs/CORRELATION.md 6 1        
EVW-02 Event window Two events only become a candidate link when they happened at most one event window apart; events up to one window plus ingest slack outside the snapshot still count. docs/CORRELATION.md 3 0        
EVW-03 Event window Review job coverage has no gaps: each run collects everything that arrived since the previous run’s end minus one event window, and the job runs at least once per window (never under 5 minutes). docs/CORRELATION.md 2 0        
EVW-04 Event window The event reviewer labels a correlated group (connected decided-related links) with ONE call once its newest event is one window plus ingest slack old and none of its links is undecided, storing the label on every member; a labelled group is reviewed again only after it gains a member and settles again. docs/CORRELATION.md 3 0        
EVW-06 Event window The Elasticsearch pull (watcher) runs once per event window, following the setting live, with bookmark windows that touch end to end; a group only settles once a pull has committed arrivals past its newest event plus one window. docs/CORRELATION.md 4 0        
EVW-07 Event window A late Elasticsearch arrival is never dropped (arrival-time pull from the bookmark) and keeps its real event time (alerts.event_ts) for correlation and settling; arriving after its group was labelled it still links within the window by event time and causes exactly one re-review. docs/CORRELATION.md 2 0        
EVW-08 Event window Every open event gets an event reviewer label even after its review run stopped being the newest and when it has no link (a group of its own); until then it shows Pending review (with its settle time, or queued), and an open event that will never be labelled shows ‘Not reviewed: ' - never a blank. docs/CORRELATION.md 3 0        
EVW-09 Event window The stream (stream.py) tails Suricata alerts, watched syslog patterns and host alerts (Elastic Defend + Security Onion detections) every few seconds by arrival time with its own bookmark: windows touch end to end, a failed check keeps the bookmark, alerts carry the watcher’s keys (one 12 h mute for both) and are stored held with source stream. docs/CORRELATION.md 4 0        
EVW-10 Event window A group made only of stream-checked events settles on the stream’s bookmark, so the event reviewer labels it within about a minute of its newest event being one event window old (settle = one window, no extra fixed slack); the reviewer and the event store wake on a new alert or a reached settle time instead of waiting for their timers. docs/CORRELATION.md 3 0        
EVW-11 Event window A correlated group holds at most one listed (threat-intel) domain: related events about two different listed domains are reviewed, researched and labelled as separate groups, and events once labelled together with another domain are reviewed again apart. docs/CORRELATION.md 1 0        
EVW-05 Event window Events whose group has not settled show a filterable ‘Pending review’ badge with the time it settles (never blank); a high-severity event with no label gets a provisional label at once; the AI review page counts events pending review and the settle-to-label delay. docs/USER_GUIDE.md 2 0        
PSH-01 Phone alerts With ‘Wait for AI verdict before phone alerts’ on, an urgent / investigate alarm is not pushed while its correlated group is Pending review (or only provisionally labelled); it stays on the dashboard and is pushed once the group verdict is in. docs/USER_GUIDE.md 2 0        
PSH-02 Phone alerts An alarm whose verdict is expected / benign and that passes every auto-close guard rail (the same autoclose.guard_rails function) is never pushed to phones; it stays on the dashboard and is logged as ‘push suppressed by AI verdict’ (push_gate, verdict pop-up). docs/USER_GUIDE.md 3 0        
PSH-03 Phone alerts An expected / benign alarm that a guard rail holds back (protected category, held host, low confidence, stale) is pushed, naming the guard rail - also when the review withdrew the alarm while it was held. docs/USER_GUIDE.md 3 0        
PSH-04 Phone alerts Suspicious, malicious and unknown verdicts always push, and the notification carries the verdict, confidence, the reviewer’s one-line reason and the group size. docs/USER_GUIDE.md 1 0        
PSH-05 Phone alerts Fail-safe: no verdict within push_hold_max_minutes (0 = event window + 5 min), the event reviewer off or erroring, a ‘Not reviewed’ event, or a gate error push the alarm anyway, marked ‘AI review unavailable’; an urgent alarm is never dropped silently. docs/USER_GUIDE.md 2 0        
PSH-06 Phone alerts push_wait_for_ai (default on) and push_hold_max_minutes live in the cfg table (More > Settings > Site), are validated, and with the switch off every alarm is pushed at once as before. docs/USER_GUIDE.md 2 0        
CFG-05 Configuration The watcher and the review job select events by arrival time (event.ingested; @timestamp for documents without it) with a per-job bookmark, so events that reach Elasticsearch late are checked when they arrive: watcher windows touch end to end, the bookmark moves only after a run without failed checks, dashboard time ranges stay on event time, and per-source ingest lag is measured. SETUP.md (Collection windows) 12 0        
CFG-03 Configuration Collection windows end ‘now’ or at NETMON_WINDOW_END and produce Elasticsearch range filters. SETUP.md (Time ranges) 4 0        
OCTI-01 OpenCTI OpenCTI settings are validated (URL, scores 0-100, confidence 0.5-1, known severity, PEM CA), the API token is write-only (masked in the public view) and nothing runs unless enabled with a URL and token. SETUP.md (OpenCTI) 2 0        
OCTI-02 OpenCTI Pulled indicators become local feed lists: only single-value IP / domain / hostname STIX patterns, never private addresses; revoked, expired or below-minimum indicators are dropped; at or above the high score they are SERIOUS. SETUP.md (OpenCTI) 8 0        
OCTI-03 OpenCTI Switching the integration off removes the local OpenCTI lists so stale indicators stop matching. SETUP.md (OpenCTI) 1 0        
OCTI-04 OpenCTI Matches on OpenCTI lists are reported as one sighting per indicator by Syn’s identity (created once, then its count and last_seen are bumped); a failure never stops the watcher. SETUP.md (OpenCTI) 2 0        
OCTI-05 OpenCTI Only open events labelled suspicious at or above the configured severity and confidence become incidents, once per logical event; only external IPs and public domains are attached as observables. SETUP.md (OpenCTI) 1 0        
OCTI-06 OpenCTI File-hash and file-name indicators and malware-sample hashes are pulled into local lists (generic file names and junk hashes are skipped); every hash entry is SERIOUS and matching is case-insensitive. SETUP.md (OpenCTI) 1 0        
OCTI-07 OpenCTI The event reviewer gets the threat-intel hits on an event’s IPs, domains, file names and hashes (with OpenCTI score and labels); a new hit changes the review signature so the event is reviewed again. SETUP.md (OpenCTI) 1 0        
OCTI-08 OpenCTI Event artifacts include full file hashes, bare risky file names and external IPs read from the event; artifacts a feed or OpenCTI lists carry ‘listed in ' in their relation. SETUP.md (OpenCTI) 1 0        
OCTI-09 OpenCTI A sighting points at the live indicator named after the value, else at the observable carrying that hash or file name; the watcher alerts on serious file-hash / file-name hits from Zeek files and endpoint process / file events. SETUP.md (OpenCTI) 2 0        
REV-01 AI The event reviewer writes an analyst’s write-up of up to two paragraphs headed ‘Why it fired:’ (detector / feed, the matched value and what it actually was) and ‘Verdict:’; it is stored up to 2400 characters, shown with its paragraphs and bold headings, and alarm titles and phone pushes use its Verdict paragraph. CORRELATION.md (event reviewer) 1 0        
OCTI-10 OpenCTI An IP-only threat-intel hit is weak evidence, weaker still on a CDN / shared-hosting address: the hit carries the TLS server names and DNS names the network used for that IP, is low / medium severity (never high), raises no watcher alert on a CDN address, is described to the reviewer as not suspicious on its own (judge the domain / SNI / certificate and research it on the web), and does not stop a person’s verdict from applying; a big shared service’s own host (login.microsoftonline.com) is never listed from a feed. CORRELATION.md (threat intel) 2 0        
FEED-01 Threat intel Feeds are configurable: built-ins can be turned off, re-pointed or marked serious / covered by OpenCTI (never deleted); custom feeds need a valid name, http(s) URL and list type; covered feeds are inactive while the OpenCTI pull is on. SETUP.md (threat-intel feeds) 2 0        
FEED-02 Threat intel Only active feeds are downloaded and matched (an inactive feed’s old file is ignored); a changed URL is downloaded again at once; domain lists may be hosts files or one domain per line. SETUP.md (threat-intel feeds) 1 0        
FEED-03 Threat intel With OpenCTI pulling, the built-in block lists come from OpenCTI (URL indicators list their non-shared host, scored IP / CIDR feed observables re-sent within 7 days list their address or range); only the JA3 list is still downloaded. SETUP.md (threat-intel feeds) 4 0        
WEB-01 Web search A self-hosted Firecrawl (its own URL) works without an API key, and the host secrets file key meant for the Firecrawl cloud is never sent to it. SETUP.md (web search) 1 0        
WEB-02 Web search Firecrawl without a URL is the Firecrawl cloud and may use the host secrets file key. SETUP.md (web search) 1 0        
WEB-03 Web search A saved web search key is dropped when the provider or the Firecrawl URL changes without a new key. SETUP.md (web search) 1 0        
WEB-04 Web search An invalid Firecrawl URL or CA certificate is refused; a saved CA is used only for a self-hosted instance and TLS is always verified. SETUP.md (web search) 1 0        
WEB-05 Web search Search and page reads go to the configured Firecrawl instance, with an Authorization header only when a key is set. SETUP.md (web search) 1 0        
WEB-06 Web search A page Firecrawl reached through a redirect to a non-public address is refused. SETUP.md (web search) 1 0        
WEB-07 Web search The event reviewer’s web searches never carry LAN addresses, MACs or internal names; such a search is refused and reported to the model. CORRELATION.md (web search) 3 0        
WEB-08 Web search Every event reviewer web look-up is recorded for the AI review page, and a decision’s cited sources keep only URLs that came back in that review’s web results. CORRELATION.md (web search) 9 0        
WEB-09 Web search Indicators (domains, URLs, public IPs, hashes) named in a threat report the AI read are extracted, hunted through this network’s logs (last 30 days) and Syn’s earlier events, given to the AI for its analysis and kept on the event as researched artifacts. CORRELATION.md (web search) 13 0        
DASH-01 Dashboard The single-page app and its assets are served with a build hash for cache busting. USER_GUIDE.md §3 1 3        
DASH-02 Dashboard The JSON API serves snapshots and their derived views (overview, issues, risk, ATT&CK, lateral) from stored data. USER_GUIDE.md §6 1 10        
DASH-03 Dashboard Any signed-in user can see their account and change their own password. USER_GUIDE.md §2 3 2        
DASH-04 Dashboard /healthz answers without authentication for the container health check. SETUP.md §6 0 5        
DASH-05 Dashboard Check-offs made on the dashboard are persisted and reflected in later reads. USER_GUIDE.md §5 2 5        
DASH-06 Dashboard Every script and stylesheet referenced by the HTML pages exists in the static directory. USER_GUIDE.md §3 7 0        
DASH-07 Dashboard The threat-intel trend reads one row per review run from the run_summary table (written once per run), so it never loads run documents and keeps runs whose documents are gone. USER_GUIDE.md 2 0        
OPS-01 Operations Console recovery commands (server.py set-role / add-user / set-password) work without the web UI. ACCESS_CONTROL.md 0 3        
OPS-02 Operations The dashboard container runs read-only, non-root, with a passing health check. SETUP.md §6 0 4        
OPS-03 Operations The scheduler runs the watcher once per event window, the research job on its grid and the weekly rebuild on Sunday. SETUP.md §7 20 1        
OPS-06 Operations Review-run documents (data/) are pipeline input only: once a run is folded into run_summary (threat-intel row), the Fix-list tables (fix_run / fix_item / ..., one column per field, no JSON), finding_seen and the event store, its documents are deleted, except the newest 8 runs and the 05 UTC daily runs of the auto-tune window; the Fix list is one SQL query over the stored rows, so it keeps counting deleted runs. docs/ARCHITECTURE.md 12 0        
OPS-04 Operations store.py CLI (check / stats) verifies and reports on the database. store.py 5 2        
LAT-20 Lateral movement Lateral-graph nodes are named from the device record, then the inventory, then a known-benign name, else the IP; gateway interfaces take their known-benign name or ‘gateway ()' and carry the known flag and device class. RISK_SCORING.md 3 0        
LAT-21 Lateral movement Unanswered admin-port attempts to a gateway or over UDP stay normal, and an unanswered TCP flow from an internal scanner is medium with a reason naming the scanner. RISK_SCORING.md 2 0        
LAT-22 Lateral movement A network-policy allow rule rates answered admin ports allowed-admin (other ports normal) with the rule’s reason, but never hides a violation or repeated unanswered admin attempts. RISK_SCORING.md 2 0        
LAT-23 Lateral movement A cleared segmentation flow (IP or MAC form, or covered by a segmentation suppress rule) is shown as allowed-admin on its port only, on snapshots and periods alike, and returns to its level when unchecked. USER_GUIDE.md 2 1        
LAT-24 Lateral movement Admin sessions involving an internet address stay in the admin list but put no internet host or edge on the internal lateral graph. USER_GUIDE.md 2 0        
LAT-25 Lateral movement Admin evidence on a port without a flow adds a port row (protocol, session level and reason, port 0 for login-only sessions), and edge ports sort worst first with the documented edge score. RISK_SCORING.md 2 0        
LAT-26 Lateral movement Graph nodes count risky links and connections in and out, edges sort by level then score, and the graph reports whether admin access was collected and from which sources. RISK_SCORING.md 2 0        
LAT-27 Lateral movement Endpoint host names in admin evidence resolve to internal IPs by device name or hostname (short form, longer than 3 characters), inventory name, or the first label of an FQDN. CORRELATION.md 1 0        
LAT-28 Lateral movement A link seen in only one of several periods appears on the merged graph, and a link high in one period keeps high with connection counts summed. RISK_SCORING.md 1 0        
LAT-29 Lateral movement Extra periods are each requested from the host broker (/range then the ‘lateral’ section, at most 8), merged, and malformed or offset-less periods or broker errors become a clean error message. USER_GUIDE.md 4 2        
LAT-30 Lateral movement GET /api/lateral returns the snapshot (or latest) graph rated with the stored policy and check-offs, merges the p=start~end periods, and answers 404 for unknown snapshots and 400 for bad periods. RISK_SCORING.md 0 5        
LAT-31 Lateral movement Admins and network defenders can read /api/lateral (with or without periods); a User gets 403 and an anonymous caller 401. ACCESS_CONTROL.md 1 1        
LAT-32 Lateral movement The Lateral movement Show filter keeps risky, high+medium, risky+allowed or all links, gateway links only when ticked, and focusing a host keeps only its links. USER_GUIDE.md 1 0        
LAT-33 Lateral movement The Lateral movement page requests /api/lateral for the selected snapshot, adds p= for the time picker’s periods with a ‘N periods combined’ note, reuses the loaded graph while nothing changed and shows API errors. USER_GUIDE.md 3 0        
LAT-34 Lateral movement The Lateral movement page shows link-level KPIs and internal host count (gateways excluded) and a focus list of internal hosts ordered by host risk. USER_GUIDE.md 1 0        
LAT-35 Lateral movement The Lateral movement legend lists every risk level in the backend’s order plus ‘never answered’. RISK_SCORING.md 1 0        
LAT-36 Lateral movement The lateral SVG graph draws one arrow marker per level, never-answered links dashed, zone labels with host counts, risk scores in host bubbles, GW for gateways and a dashed ring for hosts not in the inventory. RISK_SCORING.md 1 0        
LAT-37 Lateral movement The lateral ports table offers a Clear box only on violation or already-cleared ports, keyed like the Posture finding (else the MAC form) and checked when cleared. USER_GUIDE.md 1 0        
LAT-38 Lateral movement The Admin access section sums logins and failures over sessions, splits open and checked sessions, and explains when there are none or admin access was not collected. USER_GUIDE.md 3 0        
LAT-39 Lateral movement The Lateral movement page shows a Cleared segmentation card for cleared flows, resolving MAC-form keys to the device and its activity in the range. USER_GUIDE.md 1 0        
LAT-40 Lateral movement Selecting a link shows its level, both ends with zones, counts, score, ports and admin-session cards; selecting a host (or #/lateral/) focuses it and shows its in/out links and device/admin links. USER_GUIDE.md 2 0        
NET-01 Network pages An address belongs to the policy zone whose CIDR contains it; other internal addresses are ‘internal-other’ and everything else (or an unparsable value) is ‘external’. USER_GUIDE.md 1 0        
NET-02 Network pages Internal flows keep source, destination, port, protocol, connections, answered, bytes, service and both zones per pair; broadcast and self flows are dropped. USER_GUIDE.md 1 0        
NET-03 Network pages The zone-to-zone matrix sums connections and bytes per ‘src -> dst’ zone pair, keeps the six busiest port/protocols and lists the busiest pair first. USER_GUIDE.md 1 1        
NET-04 Network pages A source is an internal scan when its failed connections reach the host or port threshold (configurable in the policy); gateway .1 addresses never are. USER_GUIDE.md 1 0        
NET-05 Network pages The UniFi collector reports clients online, known clients, clients per network, clients missing from the inventory, first seen in the window and IP conflicts, and skips cleanly without an API key. USER_GUIDE.md 2 0        
NET-06 Network pages The UniFi collector summarises flows (totals, blocks per policy, top blocked clients with domains, region blocks, risky flows) and gateway health (ISP, WAN IP, latency, drops, uptime). USER_GUIDE.md 1 0        
NET-07 Network pages /api/history lists banked snapshots oldest first with only the per-device headline numbers (total, internet upload, connections, name) the trend charts use. USER_GUIDE.md 1 1        
NET-08 Network pages /api/registry returns the policy zones and device classes, the known-benign display names and the device registry the Network map builds hosts from. USER_GUIDE.md 1 1        
NET-09 Network pages The Network map places each internal host in its policy zone (private unzoned addresses in ‘other’) and never draws internet, gateway (.1), network or broadcast addresses. USER_GUIDE.md 1 0        
NET-10 Network pages Network map hosts merge the device registry, DHCP inventory, UniFi clients and live traffic, are marked active only with traffic in the range, and an old IP whose MAC moved is dropped. USER_GUIDE.md 1 0        
NET-11 Network pages Network map host names come from the site display name, then the live traffic name, known-benign name, DHCP name, registry/UniFi name, endpoint host hint, and finally the IP. USER_GUIDE.md 1 0        
NET-12 Network pages Network map hosts carry their device class (by MAC, then IP), risk score and rank, open issues not checked off, Elastic agent and honeypot flags, and whether they are in the inventory. RISK_SCORING.md 1 0        
NET-13 Network pages The Network map lists every configured zone even when empty, in a fixed order then alphabetically, with its gateway, CIDR, host/active/unknown counts, highest risk and issue total. USER_GUIDE.md 1 0        
NET-14 Network pages Network map risk colours are red from 40, amber from 20, yellow from 8 and green below. RISK_SCORING.md 1 0        
NET-15 Network pages The Network map draws the internet, the gateway and one node per visible host with one uplink per zone; inactive hosts can be hidden, search dims non-matching hosts, zone risk badges appear from 8 and empty zones say ‘no hosts seen’. RISK_SCORING.md 1 0        
NET-16 Network pages The Network map page shows zone, host, active, not-seen, not-in-inventory and Elastic-agent tiles, a zone summary with the riskiest host and the full host list. USER_GUIDE.md 2 0        
NET-17 Network pages Clicking the gateway on the Network map lists UniFi health and every zone interface; clicking a host shows its details, sources, open issues and device-page link (only with live traffic). USER_GUIDE.md 1 0        
NET-18 Network pages The Traffic map zone-to-zone heatmap has one sorted row and column per zone, connections and bytes per cell, top ports on hover and shading by share of the busiest cell. USER_GUIDE.md 2 0        
NET-19 Network pages The Traffic map lists up to 100 internal flows busiest first and sums internet bytes over devices by country, ASN and protocol, with internet upload by device. USER_GUIDE.md 1 0        
NET-20 Network pages With UniFi data the Traffic map adds a Gateway section (client and flow tiles, health, blocks by policy, clients by network, top blocked clients); without it the section is absent or says ‘No UniFi data’. USER_GUIDE.md 2 1        
NET-21 Network pages With banked history the Traffic map adds a trend section (total and internet-upload bytes, hosts and connections per snapshot) using the snapshots in the range when there are at least two, else all. USER_GUIDE.md 2 0        
NET-22 Network pages Network map and Traffic map are linked from the Network menu; the Traffic map is the traffic view then the gateway and trend sections, and old #/unifi and #/history links land on those sections. USER_GUIDE.md 1 1        
NET-23 Network pages A User cannot open the Network map or Traffic map (redirected to My devices) and gets 403 on every API they load; defenders and admins can read them. ACCESS_CONTROL.md 2 1        
NET-24 Network pages /api/snapshot returns a snapshot’s internal flows, zone matrix and UniFi summary unchanged, and /api/section serves a collected time range’s internal and unifi pieces (404 for unknown ones). USER_GUIDE.md 0 2        
NET-25 Network pages Both Network pages render an empty state (zero tiles, empty zones / matrix) instead of failing when a snapshot has no hosts or no zones are configured. USER_GUIDE.md 2 0        
ALR-01 Alerts GET /api/alerts returns the alarm feed newest first without held detections, mute-cleared or suppressed alerts, with limit clamped to 1..2000 and per-row mine plus unread, unread_mine and mode. USER_GUIDE.md §4 0 2        
ALR-02 Alerts An admin or defender who chose devices still gets every alarm with mine set only for those devices (mode some, unread_mine counted); a User only ever receives their assigned devices’ alarms. USER_GUIDE.md §4 1 2        
ALR-03 Alerts GET /api/alerts?extra=1 adds each alarm’s event id, verdict and verdict source plus the research extras keyed by event id. USER_GUIDE.md §4 0 1        
ALR-04 Alerts GET /api/alerts?held=1 lists held detections newest first with verdict counts for detections and alarms; v= filters by verdict and an unknown v is ignored. USER_GUIDE.md §4 0 1        
ALR-05 Alerts GET /api/alerts?cleared=1 (admin / defender) lists alerts a legacy mute rule cleared with the rule that cleared them; for a User cleared, held and extra are ignored. USER_GUIDE.md §4 1 3        
ALR-06 Alerts POST /api/alerts/read by an admin or defender marks every alert read for everyone; a User’s mark-read is a private marker that leaves others’ unread state alone. USER_GUIDE.md §4 1 1        
ALR-07 Alerts GET /api/alerts/mutes lists the legacy mute rules with how many alerts each cleared for admins and defenders and is refused for Users; the page shows them in the Alert mute rules card. USER_GUIDE.md §4 1 2        
ALR-08 Alerts New mute rules can no longer be created: POST /api/alerts/mutes only accepts remove (unknown rule 404) and store.mute_add raises. USER_GUIDE.md §4 1 2        
ALR-09 Alerts An alert matching a legacy mute rule is stored cleared, read and never pushed; removing the rule brings back only its alerts, as read and without pushing them. USER_GUIDE.md §4 2 1        
ALR-10 Alerts A suppressed alert is hidden from the feed and push queue but still returned to correlation, research and review. USER_GUIDE.md §4 1 0        
ALR-11 Alerts Alerts of every kind (feed, cleared, held) are kept 30 days. USER_GUIDE.md §4 1 0        
ALR-12 Alerts The watcher raises an investigate detection for a Suricata severity-1 or malware / C2 / exploit category hit not on the known-benign list, naming source, destination and ATT&CK technique. USER_GUIDE.md §4 1 0        
ALR-13 Alerts The watcher raises a new-device detection for an unknown DHCP MAC or an unknown internal IP with 10+ connections, only once a device registry exists. USER_GUIDE.md §4 2 0        
ALR-14 Alerts The watcher raises a detection for an answered inbound Internet connection on a port the device has never served, once snapshot history exists. USER_GUIDE.md §4 1 0        
ALR-15 Alerts The watcher raises investigate detections for DNS names and TLS SNI on a threat-intel feed and for outbound connections to IPs on a serious feed. USER_GUIDE.md §4 1 0        
ALR-16 Alerts The watcher raises a DNS-tunnel detection for a domain with 150+ distinct long (avg 20+ chars), high-entropy subdomains in an hour unless benign-listed. USER_GUIDE.md §4 1 0        
ALR-17 Alerts The watcher raises endpoint detections for Investigate-level host findings and for listed Review-level kinds (e.g. agent offline), never for checked-off findings. USER_GUIDE.md §4 1 0        
ALR-18 Alerts The watcher raises detections for high / medium admin sessions with failed logins or refused connections (high = ALERT, investigate). USER_GUIDE.md §4 1 0        
ALR-19 Alerts A watcher finding is not raised again for 12 hours, and watcher findings are stored as held detections (not in the feed, not pushed, not unread) for the AI review. USER_GUIDE.md §4 2 0        
ALR-20 Alerts The bell shows the unread count (99+ above 99, my-devices count when narrowed, hidden at zero) and the tab title carries it; Mark all read clears it. USER_GUIDE.md §4 3 2        
ALR-21 Alerts The Verdict column shows not reviewed, a person’s verdict (👤) or the event reviewer’s with its confidence, sorted suspicious > expected > benign > unreviewed. USER_GUIDE.md §4 1 0        
ALR-22 Alerts Admins and defenders get Ask, Verdict, Research, Notes and Artifact notes columns; a User gets When, Level, Verdict and Alert with no check-off or Ask. Every role’s rows open inline. USER_GUIDE.md §4 3 0        
ALR-23 Alerts Clicking an alert opens one flat panel right under its row (no modal, no nested sections): the event reviewer’s verdict and paragraph with cited pages, then for admins / defenders research, notes and artifact notes; clicking again closes it. The page lists alerts only (no detections card or verdict tiles). USER_GUIDE.md §4 2 0        
ALR-26 Alerts Each reviewed alert gets a second, separate verdict: advice for the device owner written by the event reviewer model as a SOC analyst to a non-technical user (one action of no_action, watch, update, password, stop_site, stop_app, stop_device, a headline, a 2-4 sentence message starting ‘Syn detected your ...' that names the site / app, says what it is and what to do, up to 4 extra steps, target); a prompt change (PROMPT_VER) rewrites all advice. It is rewritten only when the alert, the reviewer's label / reason or the research note change, at most 4 per pass; bad answers are dropped and 'stop using this device' only when 100% sure (suspicious verdict with confidence 1.0) (else the model is asked again with stop_device ruled out so the message matches; a second stop_device stores nothing). advice.py 6 0        
ALR-27 Alerts The Alerts page shows a What to do column (action chip; Users also see the headline), and the inline panel leads with the steps and why for Users (the reviewer’s text below as Analyst’s notes) and adds an Advice for the device owner section for admins / defenders. Users get the advice in their plain /api/alerts feed. USER_GUIDE.md §4 1 0        
ALR-28 Alerts What a User reads about an alarm - the Alerts-page line and the phone push - is the analyst’s model-written note (advice.py), not a fixed sentence: it says when (local time) and what the device did with the concrete site / app / amounts, the everyday thing that usually causes it, and what to do if it was them or not. A ready alarm waits for its note (written on the spot if the review pass has not) up to 30 minutes, then falls back to the plain line. USER_GUIDE.md §4 5 0        
ALR-29 Alerts Syn never tells anyone to stop using a computer or device unless it is 100% sure of a real issue: the alert advice allows stop_device only on a suspicious verdict at confidence 1.0, and the advice and Ask AI prompts both state the rule (otherwise they describe the finding and what to check). advice.py 1 0        
ALR-30 Alerts High confidence needs multiple independent indicators all pointing to the same issue: the event reviewer lists its indicators, a suspicious label with fewer than two is capped at 0.7 confidence (defenders still see it), and a User is only told about a suspicious verdict with confidence >= 0.8 and at least two indicators (or one a person marked suspicious). pushgate.py 2 0        
ALR-31 Alerts Baseline-finding alarms (analyze.py 24 h vs ~30-day comparisons, key ev f …) are never sent to Users - not on the Alerts page, not by push - whatever their verdict; admins and defenders still get them. pushgate.py 1 0    
ALR-32 Alerts The who-is-told-what numbers are settings under More > Settings > Site (min_indicators 1-5, few_indicators_max_confidence 0-1, user_alert_min_confidence 0-1, stop_device_min_confidence 0.5-1, baseline_alerts_to_users on/off; defaults 2, 0.7, 0.8, 1.0, off), shown with defaults and notes, validated, read live by the event reviewer (cap and prompt), the User alert gate and the advice. docs/USER_GUIDE.md 2 0        
ALR-24 Alerts Which devices alert me: admins and defenders pick All devices or chosen devices (chosen first, badges, save message); a User sees their admin-assigned devices read-only. USER_GUIDE.md §4 3 0        
ALR-25 Alerts The Alerts page has explicit empty states (no alerts, no cleared alerts), a cleared view toggle, a my-devices toggle, and falls back to the plain feed when extras are unavailable. USER_GUIDE.md §4 6 0        
OE-01 Open events Every snapshot’s correlation events are persisted in the events table: one row per event id, seen-count incremented once per snapshot, first/last seen and event times only widen, and label/severity/link/doc come from the newest event (capped source item kept). USER_GUIDE.md (Open events) / eventstore.py 4 0        
OE-02 Open events Fix-list (vulnerability) events in the events store resolve when the latest snapshot no longer lists them, an older snapshot never closes them, and they reopen when listed again. USER_GUIDE.md (Open events) / eventstore.py 4 0        
OE-03 Open events Repeats of one condition collapse into one row: finding ids that differ only in volatile numbers share a key (IPs, ports, MACs still distinguish), list findings naming the same items in another order share a key (stored group check-offs migrated once, Posture grpRef matches), segmentation findings group by flow key, other events are their own key. USER_GUIDE.md (Open events) / eventstore.py 9 1        
OE-04 Open events Open events lists unchecked, unresolved events of any age, most severe then newest first; a collapsed row shows the newest variant with summed seen count, all members, earliest first-seen and its source item/IPs. USER_GUIDE.md (Open events) / eventstore.py 3 1        
OE-05 Open events The list can be filtered by type, severity (case-insensitive) and label text and limited in size; total and per-type counts always describe everything open, and limit=0 returns only the count. USER_GUIDE.md (Open events) / eventstore.py 3 1        
OE-06 Open events Each event kind maps to the same check-off (ack) type/key the other pages use; kinds without their own list (IDS, threat intel, alerts) are stored as type ‘event’. USER_GUIDE.md (Open events) / eventstore.py 2 0        
OE-07 Open events A checked-off event (including a Posture check-off of the newest variant or a cleared segmentation flow) is hidden; checking off a collapsed row also hides future variants of it; unchecking restores it. USER_GUIDE.md (Open events) / eventstore.py 5 1        
OE-08 Open events Alert events are listed only while their alert is live (not cleared, not a held detection, not a review alarm). USER_GUIDE.md (Open events) / eventstore.py 1 0        
OE-09 Open events On the page, host-process findings differing only in the remote side merge into one ‘N variants’ row and segmentation findings of one device and rule toward several devices merge into one ‘-> multiple devices (N)’ row, each with children, union of IPs and all check-offs. USER_GUIDE.md (Open events) / eventstore.py 4 1        
OE-10 Open events Each displayed row carries extras from its newest member with data: AI research note, classification, person notes, related count and seen counts; failing sources do not break the page. USER_GUIDE.md (Open events) / eventstore.py 4 0        
OE-11 Open events The Related view of a row lists stored related links of all its members (not links between its own members) with event records for partners, including pruned ones. USER_GUIDE.md (Open events) / eventstore.py 2 1        
OE-12 Open events The event window (detail) lists every open variant of the condition newest first with their firings; unknown ids give an empty answer and a resolved Fix-list item still opens. USER_GUIDE.md (Open events) / eventstore.py 4 1        
OE-13 Open events The AI-inputs pop-up returns an event’s stored determinations and a record of every event passed in to them. USER_GUIDE.md (Open events) / eventstore.py 1 1        
OE-14 Open events The Open events API (/api/events/open, /detail, /inputs, /related) is readable by admins and defenders only: the User role gets 403 and no session gets 401. server.py USER_GET / ACCESS_CONTROL.md 1 1        
OE-15 Open events The Open events page draws one card per event type in a fixed order, titled with the open count, with the shared check/severity/verdict/notes and seen columns plus type-specific columns; every type correlate.py emits has a card. USER_GUIDE.md (Open events) / openevents.js 3 0        
OE-16 Open events Cards never disappear: with nothing open (overall or of one type) every type keeps its card with a ‘Nothing open’ line, and the KPI line shows 0s. openevents.js 1 0        
OE-17 Open events The Open events GET endpoints answer over HTTPS with the persisted store: filters, collapsed rows, check-offs via /api/acks, detail, inputs and related. USER_GUIDE.md (Open events) / eventstore.py 0 6        
OE-19 Open events Fix-list items (vulnerabilities / misconfigurations) are not part of Open events: /api/events/open leaves them out of rows, per-type counts, the total and the nav badge, and the page has no Fix list card (they are on the Fix list page). USER_GUIDE.md (Open events) / server.py / openevents.js 2 1        
OE-18 Open events /api/events/open returns at most 2000 rows by default and caps any limit at 5000; invalid limits (negative, non-numeric) must not return unexpected rows or a server error. server.py /api/events/open 0 3        
OE-21 Open events An event that is an alert shows the analyst’s advice for the device owner as a collapsed arrow in its detail window: the summary holds the action chip and headline, opening it shows the message, steps and the model. USER_GUIDE.md (Alerts) / openevents.js 1 0        
OE-20 Open events Every AI verdict badge (label, Pending review, Not reviewed, Posture’s auto-closed check-off flair) opens a verdict pop-up on click or tap: GET /api/verdict (loaded on tap) returns the event reviewer’s label, confidence, reason, model and time, why it is pending or not reviewed, and the auto-close log for the event with a Reopen (POST /api/verdict/reopen) that un-checks it for good. USER_GUIDE.md (Pending review / Not reviewed, AI verdict pop-up) 1 0        
POS-01 Posture The page loads time ranges only: /api/snapshot answers range ids and refuses review-run, malformed or path-traversal ids; there is no review-run list (/api/snapshots). USER_GUIDE.md §3 Choosing a time range 4 2        
POS-02 Posture The snapshot API carries the data of every Posture box: baseline and host findings, IDS signatures, segmentation violations, beacon candidates, threat-intel feeds/hits, DNS-tunnel scoring, malicious JA3 / internal scans, Zeek notices/weird, files and software inventory. USER_GUIDE.md §6 Security → Posture 2 1        
POS-03 Posture A nightly report covers the window generated - hours .. generated (24 hours when hours is missing). USER_GUIDE.md §3 Choosing a time range 1 0        
POS-04 Posture Every requested start/end is handed to the host broker as a time range (no review-run shortcut); times need a UTC offset and the end must be after the start. The page opens on the last 24 h (/api/range/default): the newest pre-collected window (range_warm.py, every 15 minutes) when one is done, else a fresh range. USER_GUIDE.md §3 Choosing a time range 5 1        
POS-05 Posture For a time range, alarms, AI triage, correlation and sources come from the newest nightly report generated at or before the range end (the oldest report when none is). USER_GUIDE.md §3 Choosing a time range 2 1        
POS-06 Posture A collected time range shows its own findings; while it is still being collected the page gets an empty skeleton of the right shape and loads its sections one by one. USER_GUIDE.md §3 Choosing a time range 3 2        
POS-07 Posture A segmentation suppress rule (source / destination / ports) hides matching segmentation violations and findings from the served data without changing the stored snapshot, and a failing filter never breaks the page. USER_GUIDE.md §6 Security → Posture 3 1        
POS-08 Posture Segmentation suppress rules match MAC-keyed findings through the device’s IP from the newest snapshot. USER_GUIDE.md §6 Security → Posture 1 0        
POS-09 Posture An IDS suppress rule (signature name or glob, optional host) hides the signature (or that host’s share of it) and lowers the alert counts everywhere; removing the rule restores it. USER_GUIDE.md §6 Security → Posture 2 1        
POS-10 Posture Suppress rules are not time based: they apply to every nightly report and every time range. USER_GUIDE.md §6 Security → Posture 1 2        
POS-11 Posture Cleared segmentation flows (ack type ‘seg’, MAC or IP form) and segmentation suppress rules form one cleared set used by risk, lateral movement and correlation. USER_GUIDE.md §5 Segmentation violations / RISK_SCORING.md 4 1        
POS-12 Posture Check-offs are stored once per item, independent of the loaded snapshot or range, are shared by every account, and only hide rows in the page (show N checked brings them back). USER_GUIDE.md §5 Checking things off / Open events vs Posture 2 3        
EVT-01 Event times Each event is mapped to the Elasticsearch records behind it (Zeek, Suricata, endpoint, auth logs; most specific query first, then broader ones) and gets their first and last @timestamp inside its window; IDS signatures, admin sessions and gateway events keep their own record times; status findings with no record behind them get none. USER_GUIDE.md (Open events vs Posture) 7 0        
EVT-02 Event times Open events rows, their firings and grouped instances show when the activity happened (first/last Elasticsearch record time, filled every 15 minutes by evtime.py, incrementally as windows extend), falling back to when Syn saw the event, marked (seen), when there is no record. USER_GUIDE.md (Open events) 2 0        
EVT-03 Event times Posture shows an Occurred column (baseline findings, host findings, threat-intel hits) with the record times inside the selected range from GET /api/events/times; missing ones are looked up on the host in the background (broker POST /evtime) and fill in without a reload; a broker failure never breaks the page. USER_GUIDE.md (Posture) 5 0        
POS-13 Posture Baseline and host findings carry last_seen (the newest nightly report that contained them, else the loaded snapshot’s time); the Posture tables show when they happened instead (EVT-03). USER_GUIDE.md §6 Security → Posture 1 0        
POS-14 Posture Each Posture box shows only unchecked rows unless ‘show N checked’ (or an event link) is active, and offers the toggle when something is checked. USER_GUIDE.md §5 Checking things off / Open events vs Posture 1 0        
POS-15 Posture Check-off keys are stable across snapshots: baseline finding = fnv(device kind detail) (same as the server), host finding = its key, beacon = src dst port, DNS tunnel = lower-case domain. USER_GUIDE.md §5 Checking things off / Open events vs Posture 1 0
POS-16 Posture Segmentation violations, segmentation findings and seg Fix-list items share one flow key, so clearing one clears all; a device’s MAC form and IP form both count as cleared. USER_GUIDE.md §5 Segmentation violations / RISK_SCORING.md 2 0        
POS-17 Posture Baseline findings exclude segmentation findings (own box) and show the device’s Host IP even when the finding is keyed by MAC. USER_GUIDE.md §6 Security → Posture 1 0        
POS-18 Posture Host findings show a Host column (the computer from the finding key) and a To column (remote side for outbound, this host:port with the source for inbound, empty otherwise). USER_GUIDE.md §6 Security → Posture 1 0        
POS-19 Posture Admins and defenders read Posture data and manage check-offs and suppress rules; a User gets 403 for snapshots, sections, check-offs, ranges and suppress rules. ACCESS_CONTROL.md / USER_GUIDE.md §6 0 2        
POS-21 Posture A time range collected after the review job still shows the first-seen host findings (new executable, new destination, new login, new listener) that happened in it: new baseline entries on a seasoned host carry their first-seen minute and a range judges ‘new’ against the baseline as of its start. USER_GUIDE.md §6 Security → Posture 4 0        
POS-22 Posture IDS signature tables (Posture, device page, Threat intel malware signatures) show a Verdict column: the signature’s stored event reviewer label (also when the event is not in the loaded snapshot), Pending review / Not reviewed, a person’s applied verdict and the research note verdict, from GET /api/verdicts (admin and defender only). USER_GUIDE.md §6 Security → Posture 5 0        
POS-23 Posture The Posture IDS events box is laid out like Baseline and Host findings: a check box + suppress (the shared Open-events ack event / ids ), Ask AI and Kibana, a Severity badge (Suricata 1 = high, 2 = medium, 3 = low) that colours the row edge, open count in the title and checked rows hidden behind a toggle. USER_GUIDE.md §6 Security → Posture 1 0      
POS-20 Posture Suppress rules that are empty or would hide everything are rejected with 400 and nothing is stored. USER_GUIDE.md §6 Security → Posture 0 1        
SET-01 Settings: Integrations URLs Elasticsearch and UniFi URLs must be http:// or https:// without spaces, quotes or brackets; other values are refused and nothing is saved, and accepted URLs are stored without the trailing slash. SETUP.md (Integrations) 3 0        
SET-02 Settings: Elasticsearch URL The Elasticsearch URL is ES_URL from the environment, else the saved setting, else site.json es_url; a blank setting means the fallback. SETUP.md (Integrations) 1 0        
SET-03 Settings: Elasticsearch indices Collector index overrides may be comma-separated patterns with wildcards but are refused if they contain spaces, slashes, quotes, ? or #, start with _ - or +, or exceed 200 characters. SETUP.md (Integrations) 2 0        
SET-04 Settings: Elasticsearch indices Each collector (zeek, suricata, detections) uses its saved index override or the Security Onion default, and default index names used in code are translated to the configured ones. SETUP.md (Integrations) 3 0        
SET-05 Settings: API keys API keys are write-only: the settings page only gets whether a key is set and a masked hint of its last four characters. SETUP.md (Integrations) 1 0        
SET-06 Settings: API keys A blank API key keeps the stored key, a new key replaces it, clear_key removes it, and keys with whitespace or over 400 characters are refused. SETUP.md (Integrations) 2 0        
SET-07 Settings: API key fallbacks Without a saved key, Elasticsearch and UniFi use the host secrets file (ES_API_KEY overridable from the environment) and the audit key uses NETMON_AUDIT_ES_KEY; inside the dashboard container the host file is reported as unknown. SETUP.md (Integrations) 4 0        
SET-08 Settings: UniFi URL The UniFi API URL defaults to https://api.ui.com when no URL is saved. SETUP.md (Integrations) 1 0        
SET-09 Settings: Audit index The audit index must be one concrete index name (no commas or wildcards) and defaults to logs-syn. AUDIT_LOG.md (Settings) 1 0        
SET-10 Settings: Audit switches A post carrying only the audit send switches leaves the audit index and key unchanged, while a key/index form post sets the index. AUDIT_LOG.md (Settings) 2 0        
SET-11 Settings: Audit switches Send event reviewer events and Send event researcher events are on by default and switch independently. AUDIT_LOG.md (Settings) 1 0        
SET-12 Settings: Integrations save Every integrations save is limited to known sections, leaves other sections untouched and stamps updated_by and updated_at. SETUP.md (Integrations) 4 0        
SET-13 Settings: Connection tests The Test buttons for Elasticsearch, UniFi and the audit log try the unsaved form values with fallbacks, report success counts or the HTTP error, never raise on connection errors and never save. SETUP.md (Integrations) 8 0        
SET-14 Settings: Audit switches With a send switch off, audit entries of the matching background actors (event/background reviewer, review job, review log = reviewer; event research, research job = researcher) are dropped and counted as skipped, while user actions are always sent. AUDIT_LOG.md (Settings) 6 0        
SET-15 Settings: Audit switches While the reviewer switch is off the Review log card shows the in-memory entries with source ‘memory (audit log sending off)’ instead of querying Elasticsearch. AUDIT_LOG.md (Review log) 1 0        
SET-20 Settings: event reviewer notes Notes per event (1-100, default 7), note characters (1000-100000, default 6000) and notes per host / user (1-500, default 40) are saved one field at a time with the user, read back by the reviewer’s getters, out-of-range values are refused without saving, and hand-edited values are clamped. docs/CORRELATION.md 4 0        
SET-21 Settings: event reviewer notes The notes-per-event and note-character settings cap how many owner notes, and how many characters of them, go into one review prompt. docs/CORRELATION.md 1 0        
SET-16 Settings: event reviewer notes Note expiry (days an unused host note is kept, 0-3650, default 30, 0 = never) is saved with the user, shown on the AI pipeline page and refused out of range without saving; hand-edited values are clamped. docs/CORRELATION.md 2 0        
SET-22 Settings: event reviewer model The event reviewer uses the local server until a model is chosen; a chosen model is stored with the user and used, only models of enabled providers with a key are accepted, and a model whose provider or model was removed stops the review with an error. docs/USER_GUIDE.md 4 0        
SET-23 Settings: chat model Ask AI is off until a chat model is chosen, the choice is stored with the user, and the Elasticsearch switch for the chat (default on) adds or removes the chat’s search tool. docs/USER_GUIDE.md 2 0        
SET-24 Settings: look-ups first Look-ups first is on by default and makes the reviewer’s first call a planning call when look-ups are allowed; switched off, no planning call is made. docs/CORRELATION.md 1 0        
SET-25 Settings: reviewer look-ups Web look-ups (default off, 2 per event, 1-10) and Elasticsearch look-ups (default off, 3 per event, 1-20) are stored with the user, other values are refused, and the Elasticsearch maximum is the number of searches the reviewer may run. docs/CORRELATION.md 3 0        
SET-26 Settings: review limits Type-pair modes (review or skip) are validated and saved, a skipped pair is never sent to the event reviewer, a new deployment starts with every pair skipped while an existing one keeps reviewing, and legacy skip_pairs / test mode load as skip. docs/CORRELATION.md 5 0        
SET-27 Settings: review limits Max links per event accepts 0-200 (0 = no cap), refuses other values without saving anything, and keeps only the best-scoring undecided links of an event. docs/CORRELATION.md 2 0        
SET-28 Settings: review limits The time window (0-525600 minutes, 0 = no limit) skips links whose events are further apart, verdict retention accepts 0-3650 days and classify events is an on/off switch; out-of-range values are refused. docs/CORRELATION.md 2 0        
SET-29 Settings: review limits The review-limits view lists every type pair with its link count and mode and the setting ranges; the removed exclusion and never-send rule arguments are accepted but store and skip nothing. docs/CORRELATION.md 2 0        
SET-30 Settings: decision model The decision model is on by default with a related threshold of 0.5; on/off and the threshold (0.05-0.95, rounded to 2 decimals) are stored with the user, other values are refused and hand-edited values are clamped. There is no event (suspicious) threshold: the decision model decides links only. docs/CORRELATION.md 5 0        
SET-31 Settings: decision model The related threshold decides whether the decision model’s probability becomes a related verdict. docs/CORRELATION.md 1 0        
SET-32 Settings: AI providers Saving an AI provider checks type, name (unique, any case), key format, base URL (https, or http only for LAN / loopback, no credentials, query or fragment), model ids and prices and the number ranges, and fills defaults (official URL, 120 calls per hour). docs/USER_GUIDE.md 3 0        
SET-33 Settings: AI providers API keys are write-only: the admin page only sees the last 4 characters, an update without a key keeps it, a changed type or base URL needs the key again, and deleting a provider removes it and its key. docs/USER_GUIDE.md 3 0        
SET-34 Settings: AI providers The local server row saves enabled, calls per hour (1-3000), picked models and prices with the user; switching it off stops the event reviewer from using it. docs/USER_GUIDE.md 2 0        
SET-35 Settings: decision model server Decision-model server settings default to the Kubernetes backend, are saved with the user only for known backends, listed model files and binaries and in-range numbers (batch at least 4096), and are read back by the server URL, clef.sh’s environment and the decision model’s URL. docs/CORRELATION.md 3 0        
SET-40 Settings: catalog Every setting documented in settings_docs.DOCS exists in its shipped *.example.json template or in the code defaults (site_cfg.DEFAULTS). USER_GUIDE.md (Settings) 1 0        
SET-41 Settings: catalog Every setting in the shipped policy, host_policy, known_benign and site templates (and every site default) has a non-empty settings_docs entry, and the template’s doc note equals it. USER_GUIDE.md (Settings) 2 0        
SET-42 Settings: storage A settings document saved with store.cfg_save comes back from cfg_load identical in values, types and key order (including / # % in keys, empty containers, null and bools), as a private copy. ARCHITECTURE.md (store cfg) 3 0        
SET-43 Settings: validation The shipped templates of all four settings documents pass server.cfg_validate. USER_GUIDE.md (Settings) 1 0        
SET-44 Settings: network zones Policy zones must be a table of name -> valid CIDR and zone_roles must be one of dmz, protected, mgmt, user, iot; anything else is rejected, _ notes are ignored. USER_GUIDE.md (Settings > Network policy) 2 0        
SET-45 Settings: spike thresholds upload_spike and spike_thresholds accept only known detections and columns, severity high/medium/low/off and non-negative numbers (no text or booleans). USER_GUIDE.md (Settings > Network policy) 2 0        
SET-46 Settings: beacon and allow rules beacon ignore_ports must be port numbers 1-65535, scores 0-1, counts at least 1, no unknown keys; every allow rule needs a src and a dst. USER_GUIDE.md (Settings > Network policy) 2 0        
SET-47 Settings: device classes, ports, scan thresholds Unknown device classes, out-of-range or non-numeric sensitive/discovery/gateway ports and non-numeric or below-1 scan_thresholds (hosts, ports) are rejected when saving. USER_GUIDE.md (Settings > Network policy) 3 0        
SET-48 Settings: host policy, site, known benign host_policy rejects invalid regexes, site rejects a bad internal_cidr or empty internal_prefixes, known_benign requires signatures and names to be tables. USER_GUIDE.md (Settings) 3 0        
SET-49 Settings: editing POST /api/config/cfg by an admin sets exactly one value (dict key or in-range list index) in a settings document and changes nothing else. USER_GUIDE.md (Settings) 2 0        
SET-50 Settings: editing guards POST /api/config/cfg rejects unknown documents, missing value, bad or over-6-deep paths, _ keys, missing sections, invalid values, oversized bodies and non-admins without saving anything. ACCESS_CONTROL.md 3 0        
SET-51 Settings: auto-tune Auto-tune recommendations never write settings; they only make noisy detections less sensitive, leave quiet or switched-off ones alone and never propose severity or min_days. USER_GUIDE.md (Settings > Auto-tune) 3 0        
SET-52 Settings: auto-tune apply Applying auto-tune writes only the values of accepted recommendations that are still current (tampered values and unknown ids are ignored); nothing accepted gives 409 and no change. USER_GUIDE.md (Settings > Auto-tune) 2 0        
SET-53 Settings: UniFi discover Discover from UniFi proposes one zone per enabled corporate/guest subnet, roles from the guest flag, network name or members, device classes from gear, fingerprints and hostnames, and writes nothing. USER_GUIDE.md (Settings > Discover from UniFi) 4 0        
SET-54 Settings: UniFi discover apply Applying a discovery merges new zones, roles and classes keeping existing ones; with overwrite it replaces roles and classes; it never removes an entry. USER_GUIDE.md (Settings > Discover from UniFi) 2 0        
SET-55 Settings: UniFi discover apply Applying a discovery adds internal_prefixes for uncovered subnets (replacing an untouched ‘10.’ default) and POST /api/config/discover previews without writing unless apply=true. USER_GUIDE.md (Settings > Discover from UniFi) 2 0        
SET-60 Settings: integrations An admin’s save of an Integrations section (Elasticsearch, UniFi, web search, OpenCTI, threat-intel feeds) is persisted and returned by GET /api/config/integrations. docs/USER_GUIDE.md 0 4        
SET-61 Settings: secrets Integration and AI-provider API keys are never returned by any GET (only key_set and a short masked hint); an empty key on re-save keeps the stored key and clear_key removes it. docs/ACCESS_CONTROL.md 0 8        
SET-62 Settings: integrations validation Invalid integration input (bad URL, key, provider, score, index or feed name, unknown section) returns 400 with a JSON error and changes nothing. docs/USER_GUIDE.md 0 1        
SET-63 Settings: audit switches Switching Send event reviewer / researcher events off on the Audit log page persists and GET /api/audit/status reports send_reviewer / send_researcher accordingly. docs/AUDIT_LOG.md 0 1        
SET-64 Settings: review job and auto-close The event window, review job schedule, on/off and event modes, event research limits and auto-close settings are saved, read back by their GET, and out-of-range input is refused (400) or clamped without other changes. The guard rails save on every change (no separate Save button) and every auto-close save carries the switches and guard rails as shown. docs/CORRELATION.md 3 6        
SET-65 Settings: AI providers and models Admin-added AI providers and the event reviewer / research / chat model choices are saved and read back; unknown types, providers or models return 400 and change nothing. docs/USER_GUIDE.md 0 4        
SET-66 Settings: event reviewer Event reviewer look-ups (Elasticsearch, web, look-ups first, chat Elasticsearch), web cache, the decision model’s related threshold, context notes, note consolidation and review limits are saved, shown on the AI pipeline page, and invalid values return 400 without changes. docs/CORRELATION.md 0 8        
SET-67 Settings: settings documents and auto-tune POST /api/config/cfg sets one value in a settings document (read back by GET); unknown documents, bad paths or values that fail validation return 400; auto-tune recommend is read-only and an empty accept list writes nothing. docs/USER_GUIDE.md 0 3        
SET-68 Settings: notification devices Admins and defenders choose their own alert devices via /api/push/prefs (read back by GET); some-devices with none picked is refused; a User may not change them. docs/ACCESS_CONTROL.md 0 3        
SET-69 Settings: role enforcement Every admin-only settings POST returns 403 with a JSON error for a Network defender and a User and changes nothing; defenders may change Review limits but not Elasticsearch-search switches. docs/ACCESS_CONTROL.md 0 7        
SET-70 Settings: audit Every settings POST (saved, rejected or denied) writes an audit entry with the user, role, path, outcome and status, with API keys redacted. docs/AUDIT_LOG.md 0 3        
SET-71 Settings: device classes The device classes editor (Policy & Site) shows, under each MAC or IP key, the host name Syn learned for it (device registry, then the time range’s devices, then the page’s name lookup) as ‘learned: ', or 'learned: —' when none; the row filter also matches it; the saved device_classes document is unchanged. USER_GUIDE.md (More -> Settings) 2 0        
UI-90 Dashboard theme The suppress button (🚫 rule) on every event and finding row and the alert suppress button use the same gold pill style and colour variables as the other row action buttons (note / ask), with a line ban icon, gold hover, filled gold active state and a dimmed disabled state. USER_GUIDE.md (Buttons you will see on rows) 1 0        
UI-91 Dashboard boxes The ‘More below’ flair of a scrollable box fades out (opacity transition, layout kept) when the box is scrolled to its bottom and fades back in when more is below; no transition with reduced motion. USER_GUIDE.md (Boxes) 2 0        
UI-92 Dashboard theme The magnifying-glass buttons (open related events, search in Elasticsearch) and the web-research count use a gold line magnifier icon instead of the emoji (and the times-seen flair a gold line eye icon), in the same gold colour variables as the other row action buttons, with gold hover, filled gold active and focus states. USER_GUIDE.md (Buttons you will see on rows) 1 0        
UI-93 Dashboard navigation The browser Back button or back gesture closes the topmost open modal, popup or mobile menu instead of leaving the page (the welcome wizard steps back a step); closing one with its X, Cancel, Escape or the backdrop removes its history entry so the next Back navigates normally; with nothing open Back goes to the previous page. USER_GUIDE.md (Finding your way around) 1 0        
CLS-01 Device classes Without class definitions every alarm behaves as before: built-in classes (iot, camera, media, game, personal, work, server, k8s, infra) and unclassified each behave like themselves, every alarm is on except the new-destination ones outside iot (or the classes in the older new_domain_classes / new_tls_classes), and every finding kind analyze.py raises has a switch. docs/USER_GUIDE.md (Device class definitions) 2 0        
CLS-02 Device classes An alarm switched off for a class is never raised for devices of that class: baseline findings (analyze.py), live alerts (watch.py), endpoint findings (hosts.py, host matched by learned host name) and destination collection all go through classdefs.alarm_enabled. classdefs.py 3 0        
CLS-03 Device classes Classes can be added, renamed and removed (POST /api/config/classes, admin only); a rename updates device_classes and allow rules using it; a class in use is removed only after choosing a class (or unclassified) for its devices; the first edit stores class_defs and drops new_domain_classes / new_tls_classes; device_classes accepts only defined classes. docs/USER_GUIDE.md (Device class definitions) 3 0        
CLS-04 Device classes Each user-added class behaves like one built-in class and follows its built-in rules (protected-zone and admin-port segmentation, executable downloads, new TLS clients, risk impact, default switches); built-in classes behave like themselves. classdefs.py 1 0        
CLS-05 Device classes Settings > Network policy shows a Device class definitions card (rename, behaves like, an expandable on/off switch per alarm, add, remove with a move target) and the device classes editor offers a drop-down of the defined classes next to the learned host name. docs/USER_GUIDE.md (Device class definitions) 1 0        
CLS-06 Device classes upload_spike, scan_thresholds and beacon each have a device-class scope: classes (which classes the rule runs for; empty or * = every device, unclassified = devices with no class) and by_class (per-class overrides of the section’s numbers; ignore_ports stays section-wide). Without a scope every device gets the section’s numbers as before. extras.py 2 0        
CLS-07 Device classes The scope is applied where the findings are made: internal scans (extras.internal_traffic, class by MAC through the device registry or by IP), beacon candidates (extras.beacons, Elasticsearch pre-filter as loose as the loosest class) and upload spikes (analyze.upload_cfg_for). docs/USER_GUIDE.md (Device class definitions) 4 0        
CLS-08 Device classes Settings > Network policy shows the scope as a class drop-down (check boxes) and a per-class override table; cfg_validate refuses unknown classes, empty or unknown override settings and bad values; renaming a class follows into classes / by_class and removing one moves the filter to where its devices went (a narrowed rule never widens to every device). docs/USER_GUIDE.md (Device class definitions) 2 0        
CLS-09 Device classes Auto-tune works per scope: one proposal per by_class override (id section@class, judged on that class’s devices, written to by_class), the section proposal leaves out classes the rule does not run for, and a section-wide change driven by one class also offers an optional class-only override. docs/USER_GUIDE.md (Auto-tune) 3 0        
VOL-01 Volume spike The volume-spike finding’s thresholds are the policy section volume_spike (min_mb, times_normal, mad_factor, min_days, severity); its defaults are the former hardcoded numbers (50 MB floor, 3x normal, normal + 6 MAD, 3 days of history, medium), so an install without the section behaves as before and the Settings page shows them with their help text. docs/USER_GUIDE.md (Volume spike) 1 0        
VOL-02 Volume spike A change to volume_spike applies from the next analysis run to every device the rule runs for; severity off silences the finding. analyze.py (volume_finding) 1 0        
VOL-03 Volume spike volume_spike by_class gives a device class its own numbers (blank = the section’s value); devices of other classes keep the section’s values. docs/USER_GUIDE.md (Device class definitions) 1 0        
VOL-04 Volume spike volume_spike classes limits the rule to the ticked device classes (none ticked or * = every device; unclassified = devices with no class). docs/USER_GUIDE.md (Device class definitions) 1 0        
VOL-05 Volume spike volume_spike is validated like upload_spike (values, scope), follows class renames/removals, is listed on the event cards’ detection settings, has a per-class alarm switch, and auto-tune proposes values for it (section-wide and per class override). docs/USER_GUIDE.md (Auto-tune) 3 0        
FEAT-01 Event store Only events seen in Elasticsearch data (IDS, host, threat intel, Zeek-derived findings) record firings; a firing is added per new IDS alert time, and a finding window overlapping the previous firing of the same condition extends it instead of adding one, while the seen count still counts reports. git 7d0f12f; docs/CORRELATION.md 7 0        
FEAT-02 Open events The Open events detail merges the variants of one related condition into one line that keeps every link’s review time (llm_ats), the union of their artifacts and the most confident variant’s fields, so each firing shows only its own links. git 8e94200 1 0        
FEAT-03 Alerts Each alert row is tied to its event (ev review alarms to the reviewed event, other alerts to alert ) and shows one verdict, chosen as a person's newest non-rejected verdict, else the event reviewer's label, else unreviewed. git 57e2586 3 0    
FEAT-04 Alerts The Alerts web research list shows the event reviewer’s web searches and page reads per event, newest first, marked own or candidate (with its anchor), with only http(s) links, at most per entries, and never manual test look-ups. git 83a1e9d 2 0        
FEAT-05 Alerts The Alerts view sets each alert’s event id and verdict, merges repeats of the same look-up into one row with a times count, strips artifacts and label from people’s notes, and stores each artifact note once (text capped at 700 characters) and refers to it by id per alert. git 57e2586, 83a1e9d 3 0        
FEAT-06 Alerts Detections by verdict lists held detections newest first, with verdict counts kept separate for detections and alarms, an optional verdict filter and a row limit. git 57e2586 1 0        
FEAT-07 Event reviewer The event reviewer writes one analyst write-up per event (up to two paragraphs: Why it fired / Verdict) and gives only artifacts for each related link; the output schema does not require a per-link reason. git 57038cf; docs/CORRELATION.md section 7 2 0        
FEAT-09 Review log Review log entries count events processed: a correlation pass counts each distinct event it touched once, and a review-job run records events processed, given a note and queued and puts them in its log entry and message. git 6673a2a 3 0        
FEAT-10 AI pipeline pages Both AI pipeline pages fold their boxes into four part boxes (Models, Correlation review, Event review, Research review), each with an ⓘ text (what, source, use) under the cardinfo.js key view title, normalised the same way as cardinfo_ui.js. git 38dd1a3, 76d0f88; references/dashboard.md 4 0      
FEAT-11 Box info texts Every new or renamed top-level dashboard box (Alerts: Recent alerts; Configuration: Auto-close) has its own ⓘ text in cardinfo.js instead of the generic fallback. home-network-report skill step 7 (cardinfo.js) 3 0        
SET-90 Settings Every setting the code exposes (settings endpoints, Integrations sections, Settings-page documents, setter functions) is listed in the settings inventory, and each one is verified by at least one test. TESTING.md (Settings coverage) 5 0        
KUBE-01 Kubernetes Kubernetes monitoring reads only Security Onion Elasticsearch (esq/integrations); a shard failure is an error, never a silent partial result. USER_GUIDE.md (Devices → Kubernetes) 3 0        
KUBE-02 Kubernetes Stale or missing container logs, high-severity container-log signals (reverse shell, miner, web attack), secrets in logs, pod exec/attach/port-forward, 401/403 bursts, forbidden/PodSecurity events, high SO alerts and new images raise k8s- findings; namespaces exempt in host_policy k8s.signal_exempt raise none. USER_GUIDE.md (Devices → Kubernetes) 7 0        
KUBE-03 Kubernetes API server request counters are turned into per-window increases (max - min per series) and classified as denied, exec, rbac, secrets-read or error. k8s.py 1 0        
KUBE-04 Kubernetes Kubernetes findings join the nightly host findings (key prefix k8s-, no duplicates) so correlation, review and Posture see them; the pod pivot rejects malformed namespace/pod names. USER_GUIDE.md (Devices → Kubernetes) 4 0        
KUBE-05 Kubernetes The Kubernetes API integration accepts only https:// URLs and a one-line token, keeps the token and CA write-only, cannot be enabled without URL and token, and its Test reports whether the account can do more than read. USER_GUIDE.md (Configuration → Integrations → Kubernetes API) 5 0        
KUBE-06 Kubernetes The CIS benchmark reads control-plane flags, RBAC, pods, namespaces and network policies with GET requests only; failed checks become Fix list items (k8s-cis , not endpoint findings), accepted checks (host_policy k8s.cis_accept) do not, and checks that need node access are reported as manual, never as passed. USER_GUIDE.md (Devices → Kubernetes) 8 0    
KUBE-07 Kubernetes The Kubernetes map links ingress -> service (backend) -> pod (selector) and pod -> workload (ReplicaSet resolved to its Deployment), and summarises each container’s security context. USER_GUIDE.md (Devices → Kubernetes map) 1 0        
KUBE-08 Kubernetes Several Kubernetes clusters can be configured by name (older single-cluster settings read as ‘default’); the Kubernetes pages filter by one cluster or show all, and Security Onion data is attributed to a cluster by its node names. USER_GUIDE.md (Devices → Kubernetes) 1 0        
KUBE-09 Kubernetes Kubernetes warning events and container-log hits that are not findings reach Open events as low-priority host findings (snapshot only, never a watcher alert). USER_GUIDE.md (Devices → Kubernetes) 1 0        
KUBE-12 Kubernetes Pod notes: filed on the object that creates the pods - Deployment, StatefulSet, DaemonSet, CronJob or Job (kb subject pod:///; kind pod for unowned static pods) - so one note applies to every pod it creates now or later; the UI says so (owner banner on the pod page, Created by column with a note count on the Pods table). People add them on the pod page; the AI reads them for any of those pods' events and writes (event research host_notes, event reviewer expected-artifact notes). KUBERNETES.md (Pod notes) 6 0        
KUBE-11 Kubernetes The Risk page ranks Kubernetes workloads (containers) together with hosts using the same likelihood (exposure, weaknesses incl. image CVEs, threat, reach, visibility) x impact model, and lists container vulnerabilities ranked by risk. USER_GUIDE.md (Security → Risk) 4 0        
KUBE-13 Kubernetes Vulnerability counts over time: once a day the scheduler records open Fix list items by severity, each cluster’s CIS benchmark results and the distinct CVEs (by severity, with a fix available) in its running images (vulnhist.py, table vuln_hist; a same-day re-run replaces that day). Days before daily recording are rebuilt once from stored review runs and never overwrite a daily record. The Fix list and Devices → Kubernetes pages show them as line charts (Kubernetes: all clusters summed, or the picked cluster). USER_GUIDE.md (Fix list, Devices → Kubernetes) 4 0        
KUBE-10 Kubernetes For each running image the newest registry tag of the same form is found (pre-releases skipped), the running and newest images are scanned for CVEs, and images whose critical/high CVEs are fixed by updating become Fix list items (k8s-imgcve ), not endpoint findings. USER_GUIDE.md (Devices → Kubernetes) 5 0      
OPS-05 Operations The dashboard’s parsed-document cache is bounded (LRU), so walking every snapshot cannot exhaust the container’s memory. server.py 5 0        

Requirement → tests

AUTH-01

Authentication: Passwords are stored only as salted scrypt hashes; a wrong password never verifies. (source: ACCESS_CONTROL.md)

Level Test Verifies Status
unit test_auth.TestHashing.test_hash_format_is_salted_scrypt A stored hash has the form scrypt$n$r$p$salt$dk with a 16-byte salt and 32-byte key. pass
unit test_auth.TestHashing.test_same_password_gets_different_salts Hashing the same password twice gives two different stored values (random salt). pass
unit test_auth.TestHashing.test_verify_accepts_right_and_rejects_wrong_password The right password verifies; a wrong, empty or case-changed one does not. pass
unit test_auth.TestHashing.test_verify_never_raises_on_damaged_hash A malformed stored hash (wrong field count, bad hex, None) simply fails verification. pass
unit test_auth.TestLogin.test_login_failures_same_message Wrong password and unknown user both fail with the same generic message. pass
unit test_auth.TestLogin.test_login_success_records_last_login Correct credentials return a valid cookie, no error, and set last_login. pass
unit test_auth.TestUserManagement.test_add_user_stores_hash_not_password add() creates a record with an scrypt hash, gen 1 and the requested role; the password is not stored. pass
e2e test_e2e_access_control.UserAdmin.test_admin_password_reset An admin can reset another account’s password; the old one stops working. pass
e2e test_e2e_dashboard.SignIn.test_wrong_password_rejected_generic_message A wrong password and an unknown user get the same 401 message (no user enumeration). pass
e2e test_e2e_pipeline.ServerLifecycle.test_console_add_user_prompts_for_password server.py add-user reads the password from the terminal (never argv) and creates a working account. pass

AUTH-02

Authentication: Passwords shorter than 10 characters are rejected (add user, reset, self-service change). (source: USER_GUIDE.md §2)

Level Test Verifies Status
unit test_auth.TestChangeOwnPassword.test_change_rejections Wrong current, unchanged, containing the username, or too-short new passwords are rejected. pass
unit test_auth.TestUserManagement.test_add_rejects_missing_password A None password is treated as empty and rejected rather than crashing. pass
unit test_auth.TestUserManagement.test_add_rejects_short_password A 9-character password is rejected; exactly 10 characters is accepted. pass
unit test_auth.TestUserManagement.test_set_password_by_admin_bumps_generation An admin reset (actor != user) needs no current password, changes the hash and bumps gen. pass
unit test_auth.TestUserManagement.test_set_password_validation set_password rejects short passwords, unknown users, and a self-change with the wrong current password. pass
e2e test_e2e_access_control.UserAdmin.test_add_user_validation Short passwords, bad names, unknown roles and duplicates are rejected. pass
e2e test_e2e_dashboard.Account.test_change_own_password_signs_out_other_sessions Changing one’s password keeps this session, revokes the others and the new password works. pass

AUTH-03

Authentication: Usernames are 2-40 characters of letters, digits and . _ @ -; duplicates are rejected. (source: ACCESS_CONTROL.md)

Level Test Verifies Status
unit test_auth.TestUserManagement.test_add_user_stores_hash_not_password add() creates a record with an scrypt hash, gen 1 and the requested role; the password is not stored. pass
unit test_auth.TestUserManagement.test_duplicate_username_rejected Adding an existing username again fails and leaves the original record untouched. pass
unit test_auth.TestUserManagement.test_username_rules Usernames must be 2-40 chars of letters, digits and . _ @ -; anything else is rejected. pass
e2e test_e2e_access_control.UserAdmin.test_add_user_validation Short passwords, bad names, unknown roles and duplicates are rejected. pass

AUTH-04

Authentication: Sessions are signed tokens that expire (SESSION_HOURS) and are revoked by logout or a password change. (source: ACCESS_CONTROL.md)

Level Test Verifies Status
unit test_auth.TestChangeOwnPassword.test_change_success_reissues_cookie A valid change returns a new working cookie and revokes the old session. pass
unit test_auth.TestLogin.test_login_success_records_last_login Correct credentials return a valid cookie, no error, and set last_login. pass
unit test_auth.TestSessions.test_cookie_roundtrip A freshly made cookie maps back to its user and has four dot-separated fields. pass
unit test_auth.TestSessions.test_deleted_user_session_rejected A valid signature for a user that no longer exists yields no session. pass
unit test_auth.TestSessions.test_expired_cookie_rejected A cookie whose expiry lies in the past is refused. pass
unit test_auth.TestSessions.test_expiry_uses_session_ttl The expiry field is now + SESSION_TTL (SESSION_HOURS, default 12 h). pass
unit test_auth.TestSessions.test_garbage_cookie_values Empty, None and non-cookie strings give no user and never raise. pass
unit test_auth.TestSessions.test_generation_bump_revokes_sessions After the user’s gen changes (password change / reset) old cookies stop working. pass
unit test_auth.TestSessions.test_short_secret_file_regenerated A truncated secret key file is replaced, invalidating cookies signed with the old key. pass
unit test_auth.TestSessions.test_signature_is_hmac_of_body_with_secret The signature is HMAC-SHA256 over ‘b64user.exp.gen’ with the secret key, which is owner-only. pass
unit test_auth.TestSessions.test_tampered_cookie_rejected Changing the user, expiry, gen or signature of a cookie invalidates it. pass
unit test_auth.TestUserManagement.test_set_password_by_admin_bumps_generation An admin reset (actor != user) needs no current password, changes the hash and bumps gen. pass
e2e test_e2e_access_control.UserAdmin.test_delete_user_revokes_access Deleting an account ends its existing session. pass
e2e test_e2e_dashboard.Account.test_change_own_password_signs_out_other_sessions Changing one’s password keeps this session, revokes the others and the new password works. pass
e2e test_e2e_dashboard.SignIn.test_login_sets_strict_session_cookie A successful login sets an HttpOnly, Secure, SameSite=Strict session cookie with a Max-Age. pass
e2e test_e2e_dashboard.SignIn.test_logout_clears_cookie POST /api/logout expires the cookie in the browser. pass
e2e test_e2e_dashboard.SignIn.test_tampered_session_rejected A modified session cookie is not accepted. pass

AUTH-05

Authentication: Repeated failed sign-ins from one client address are throttled. (source: ACCESS_CONTROL.md)

Level Test Verifies Status
unit test_auth.TestChangeOwnPassword.test_wrong_current_counts_toward_throttle Wrong current passwords share the per-IP throttle with failed logins. pass
unit test_auth.TestLogin.test_failed_login_records_user_failure A failed sign-in from the Internet is recorded against the username with its source address. pass
unit test_auth.TestLogin.test_ip_throttle_after_eight_failures After 8 failures from one address even the right password is refused there, but not from another address. pass
unit test_auth.TestLogin.test_ip_throttle_window_expires Failures older than the 5-minute window no longer count. pass
unit test_auth.TestLogin.test_lan_failures_do_not_lock_remote Failures from LAN addresses never count toward the per-account Internet lock. pass
unit test_auth.TestLogin.test_private_detection RFC1918, loopback and documentation ranges count as private; garbage does not. pass
unit test_auth.TestLogin.test_remote_account_lock 20 Internet failures against one account lock remote sign-in to it, while the LAN still works. pass
unit test_auth.TestLogin.test_success_clears_ip_failures A successful sign-in resets that address’s failure count. pass
e2e test_e2e_dashboard.SignIn.test_failed_logins_throttled_per_client After 8 failures from one client address even the right password is refused; other clients are unaffected. pass

AUTH-06

Authentication: On first start the first account is seeded from DASH_USER/DASH_PASS; afterwards the env vars are ignored. (source: SETUP.md §6)

Level Test Verifies Status
unit test_auth.TestBootstrap.test_bootstrap_ignored_afterwards Once any account exists, bootstrap does nothing (env vars are ignored). pass
unit test_auth.TestBootstrap.test_bootstrap_needs_both_values A missing user name or password seeds nothing. pass
unit test_auth.TestBootstrap.test_bootstrap_seeds_first_admin On an empty store bootstrap creates one admin whose password verifies. pass
e2e test_e2e_pipeline.ServerLifecycle.test_first_start_seeds_admin_then_ignores_env The first start seeds an admin from DASH_USER/DASH_PASS; a restart with other values keeps the original account. pass

AUTH-07

Authentication: Accounts that predate roles are migrated to Admin once, so nobody loses access. (source: ACCESS_CONTROL.md (Upgrade))

Level Test Verifies Status
unit test_auth.TestRoles.test_migrate_roles_once Accounts without a valid role become admin once; a second run migrates nothing. pass
e2e test_e2e_pipeline.ServerLifecycle.test_roleless_accounts_migrated_to_admin Accounts saved before roles existed become admins on the next start, and it is logged. pass

AUTH-08

Authentication: A newly created account is flagged for the first-sign-in setup walkthrough until it is finished or skipped; existing accounts are not. (source: ACCESS_CONTROL.md)

Level Test Verifies Status
unit test_auth.TestUserManagement.test_new_account_gets_welcome_until_done add() flags a new account for the welcome walkthrough; welcome_done() clears it; other accounts are unaffected. pass

AC-01

Access control: Unauthenticated requests get 401 (API) or a redirect to /login (pages); only the login/PWA shell and /healthz are public. (source: ACCESS_CONTROL.md)

Level Test Verifies Status
e2e test_e2e_container.DeployedContainer.test_live_healthz_and_auth_wall The live dashboard answers /healthz, serves the login page and refuses the API without a session. pass
e2e test_e2e_dashboard.SignIn.test_public_shell_files_served_without_session The login page, its script, the stylesheet and the PWA manifest are public. pass
e2e test_e2e_dashboard.SignIn.test_unauthenticated_api_401_and_page_redirect Without a session, /api/* returns 401 JSON and pages redirect to /login. pass
e2e test_e2e_dashboard.SignIn.test_unauthenticated_post_rejected A POST without a session gets 401 and changes nothing. pass
e2e test_e2e_dashboard.TransportSecurity.test_healthz_is_public GET /healthz answers 200 ‘ok’ without a session (container health check). pass

AC-02

Access control: Three roles exist (admin, defender, user); a missing or unknown role is treated as User (least privilege). (source: ACCESS_CONTROL.md)

Level Test Verifies Status
unit test_auth.TestRoles.test_public_list_normalises_roles_and_hides_hash public_list() is sorted by name, maps bad roles to ‘user’ and never exposes hashes. pass
unit test_auth.TestRoles.test_role_of_least_privilege_default Unknown users, missing roles and unrecognised roles all resolve to ‘user’. pass
unit test_auth.TestUserManagement.test_add_rejects_unknown_role Only admin, defender and user are accepted roles when adding. pass
unit test_push_targeting.TestRunOnce.test_anonymous_subscription_gets_nothing A subscription with no user (or an unknown user) is treated as a User with no devices. pass
e2e test_e2e_access_control.RoleMatrix.test_roles_reported /api/me reports each account’s role and its display name. pass
e2e test_e2e_access_control.UserAdmin.test_default_role_is_user A user added without a role gets the least privilege (User). pass

AC-03

Access control: A User may call only the USER_GET / USER_POST allow-lists; every other API returns 403. (source: ACCESS_CONTROL.md)

Level Test Verifies Status
e2e test_e2e_access_control.AuditTrail.test_denied_request_audited A request refused with 403 is audited as access denied. pass
e2e test_e2e_access_control.RoleMatrix.test_user_limited_to_allow_list_get A User gets 403 on every data API outside USER_GET, and 200 on the allowed ones. pass
e2e test_e2e_access_control.RoleMatrix.test_user_limited_to_allow_list_post A User cannot check items off, chat, manage users or change config (403). pass
e2e test_e2e_access_control.RoleMatrix.test_user_page_html_still_loads A User can load the app shell (the page itself decides which views to show). pass

AC-04

Access control: A Network defender can read everything and do analyst work but cannot change settings (admin-only POSTs return 403). (source: ACCESS_CONTROL.md)

Level Test Verifies Status
e2e test_e2e_access_control.RoleMatrix.test_audit_log_admin_only The audit log page data is admin-only. pass
e2e test_e2e_access_control.RoleMatrix.test_defender_can_do_analyst_work A defender may check items off (analyst work is not a setting). pass
e2e test_e2e_access_control.RoleMatrix.test_defender_cannot_change_settings Every admin-only POST (users, config, AI models/providers) returns 403 for a defender and changes nothing. pass
e2e test_e2e_access_control.RoleMatrix.test_defender_reads_everything A Network defender can read the data (time ranges), users and settings views. pass

AC-05

Access control: An admin cannot demote themself, and the last admin can be neither demoted nor deleted. (source: ACCESS_CONTROL.md (Safety rules))

Level Test Verifies Status
unit test_auth.TestRoles.test_set_role_rules set_role validates the role and user, protects the last admin and self-demotion, else applies at once. pass
unit test_auth.TestUserManagement.test_delete_rules delete() refuses unknown users, self-deletion, the last user and the last admin; otherwise removes. pass
e2e test_e2e_access_control.UserAdmin.test_admin_cannot_demote_self An admin trying to demote themself is refused. pass
e2e test_e2e_pipeline.ServerLifecycle.test_console_set_role server.py set-role changes a role from the console; the last admin cannot be demoted. pass

AC-06

Access control: A User sees only alerts/events of devices assigned to them, and the site config they receive omits IP hints. (source: ACCESS_CONTROL.md (User role))

Level Test Verifies Status
unit test_config.TestSiteCfg.test_public_subset public() exposes only the browser-safe keys, never secrets like es_url or sensitive_terms. pass
unit test_push_targeting.TestRunOnce.test_targeting_per_user Admin ‘all’ gets both alerts; a User with the laptop gets only the laptop alert; a User with ‘all’ gets none. pass
unit test_push_targeting.TestWatchIds.test_alert_for alert_for: None matches every alert; otherwise an alert matches only on a shared identifier. pass
unit test_store.TestTargetsAndPrefs.test_watch_ids_and_alert_for watch_ids is None for ‘all’; for ‘some’ it resolves registry devices and host: entries, and alert_for filters. pass
e2e test_e2e_access_control.RoleMatrix.test_user_limited_to_allow_list_get A User gets 403 on every data API outside USER_GET, and 200 on the allowed ones. pass
e2e test_e2e_access_control.UserScope.test_admin_sees_all_alerts An admin’s feed has both alerts. pass
e2e test_e2e_access_control.UserScope.test_user_cannot_be_given_all_devices Assigning ‘All devices’ to a User is refused. pass
e2e test_e2e_access_control.UserScope.test_user_device_prefs_locked A User’s notification settings are locked to the devices an admin assigned. pass
e2e test_e2e_access_control.UserScope.test_user_sees_event_reviewer_paragraph A User’s alert feed carries the event reviewer’s paragraph (label, reason, cited pages) for their own alerts only, pass
e2e test_e2e_access_control.UserScope.test_user_sees_only_assigned_device_alerts The alert feed of a User contains the alert for their device and not the other one. pass
e2e test_e2e_access_control.UserScope.test_user_site_config_reduced The site config a User receives has the site name but no IP hints, prefixes or admin workstations. pass

AC-07

Access control: A User’s ‘mark all read’ is a private marker that does not change the shared bell. (source: ACCESS_CONTROL.md)

Level Test Verifies Status
unit test_auth.TestRoles.test_read_upto_only_moves_forward The private read marker starts at 0, only increases, and ignores unknown users. pass
e2e test_e2e_access_control.UserScope.test_user_read_marker_is_private A User marking all read does not clear the shared bell of admins. pass

AC-08

Access control: Role changes, user adds/deletes and password resets are admin-only and take effect on the next request. (source: ACCESS_CONTROL.md (Managing access))

Level Test Verifies Status
unit test_auth.TestRoles.test_set_role_rules set_role validates the role and user, protects the last admin and self-demotion, else applies at once. pass
unit test_auth.TestUserManagement.test_delete_rules delete() refuses unknown users, self-deletion, the last user and the last admin; otherwise removes. pass
unit test_auth.TestUserManagement.test_set_password_by_admin_bumps_generation An admin reset (actor != user) needs no current password, changes the hash and bumps gen. pass
e2e test_e2e_access_control.RoleMatrix.test_defender_cannot_change_settings Every admin-only POST (users, config, AI models/providers) returns 403 for a defender and changes nothing. pass
e2e test_e2e_access_control.UserAdmin.test_add_user_validation Short passwords, bad names, unknown roles and duplicates are rejected. pass
e2e test_e2e_access_control.UserAdmin.test_admin_password_reset An admin can reset another account’s password; the old one stops working. pass
e2e test_e2e_access_control.UserAdmin.test_default_role_is_user A user added without a role gets the least privilege (User). pass
e2e test_e2e_access_control.UserAdmin.test_delete_user_revokes_access Deleting an account ends its existing session. pass
e2e test_e2e_access_control.UserAdmin.test_role_change_applies_on_next_request Promoting an account takes effect on its very next request, without signing in again. pass

AC-09

Access control: A User’s pushes and Alerts page show a short plain-language line (device + what happened); the raw alert text (signature names, IPs) stays with admins and defenders. (source: ACCESS_CONTROL.md (User role))

Level Test Verifies Status
unit test_plain_alerts.TestPlainLine.test_categories Common alert kinds map to short plain messages; unknown ones get a generic line. pass
unit test_plain_alerts.TestPlainLine.test_no_device_capitalised Without a known device the line is just the capitalised message (never an IP or MAC as a name). pass
unit test_plain_alerts.TestPlainLine.test_phishing_tld_names_device_without_signature A suspicious-TLD IDS hit reads as a possible phishing / scam site on the named device; no rule name, IP or AI text. pass
unit test_plain_alerts.TestUserPush.test_user_gets_model_note_admin_gets_signature The same alarm pushes the analyst’s model-written note to a User (headline as title, note as body - written on pass
unit test_push_targeting.TestRunOnce.test_targeting_per_user Admin ‘all’ gets both alerts; a User with the laptop gets only the laptop alert; a User with ‘all’ gets none. pass

AC-11

Access control: The model-training status page (/training) is shown only to admins; defenders and Users get 403, signed-out visitors the login redirect, and a missing status file a 404. (source: ACCESS_CONTROL.md)

Level Test Verifies Status
unit test_training_page.TrainingPage.test_admin_only Admins get the status page (no-store HTML); defenders and Users get 403; signed out goes to login. pass
unit test_training_page.TrainingPage.test_missing_file_is_404 No status file yet -> 404, never another file. pass

AC-10

Access control: An alarm reaches a User (push or Alerts page) only after the final group verdict is suspicious - never on a fail-safe push, a pending or provisional label, or an expected / benign verdict. (source: ACCESS_CONTROL.md (User role))

Level Test Verifies Status
unit test_plain_alerts.TestUserPush.test_benign_verdict_never_reaches_user A final expected / benign verdict means no push and no Alerts-page row for a User. pass
unit test_plain_alerts.TestUserPush.test_no_verdict_no_user_push Without a verdict a User gets nothing, even when the admin gets the fail-safe push; the User is pushed once, pass
unit test_plain_alerts.TestUserPush.test_pending_group_waits A provisional (fast) label is not a verdict: the User waits. pass

SEC-01

Web security: Every response carries the security headers (CSP, HSTS, X-Frame-Options DENY, nosniff, Referrer-Policy, COOP/CORP). (source: SETUP.md / server.py)

Level Test Verifies Status
e2e test_e2e_container.DeployedContainer.test_live_healthz_and_auth_wall The live dashboard answers /healthz, serves the login page and refuses the API without a session. pass
e2e test_e2e_dashboard.SignIn.test_csrf_header_required POSTs without X-Netmon: 1 or without a JSON content type are refused with 400. pass
e2e test_e2e_dashboard.SignIn.test_malformed_json_body_does_not_crash A broken JSON body gets an error response and the server stays up. pass
e2e test_e2e_dashboard.TransportSecurity.test_api_responses_not_cached API responses are Cache-Control: no-store (no data left in shared caches). pass
e2e test_e2e_dashboard.TransportSecurity.test_security_headers_on_every_response_kind JSON, HTML, static, 401 and 404 responses all carry the security headers. pass

SEC-02

Web security: The dashboard is served over TLS 1.2+ only. (source: SETUP.md §6)

Level Test Verifies Status
e2e test_e2e_dashboard.TransportSecurity.test_plain_http_client_does_not_break_server A plain-HTTP request on the TLS port is dropped and the server keeps serving. pass
e2e test_e2e_dashboard.TransportSecurity.test_tls_1_1_refused A client limited to TLS 1.1 cannot complete a handshake. pass
e2e test_e2e_dashboard.TransportSecurity.test_tls_1_2_plus_negotiated A default client negotiates TLS 1.2 or newer. pass

SEC-03

Web security: The session cookie is HttpOnly, Secure and SameSite=Strict. (source: ACCESS_CONTROL.md)

Level Test Verifies Status
e2e test_e2e_dashboard.SignIn.test_login_sets_strict_session_cookie A successful login sets an HttpOnly, Secure, SameSite=Strict session cookie with a Max-Age. pass

SEC-04

Web security: Site data (site IPs, MACs, host/account names, private config, DBs, keys) can never be committed to git (repo_guard). (source: SETUP.md §9)

Level Test Verifies Status
unit test_repo_guard.ForbiddenFilesTest.test_allowed_names Ordinary source names, the ATT&CK catalog and look-alike names are not refused by name. pass
unit test_repo_guard.ForbiddenFilesTest.test_forbidden_absolute_path_in_temp_dir An absolute path to a forbidden file name outside the repo is still refused. pass
unit test_repo_guard.ForbiddenFilesTest.test_forbidden_directories Anything under data/, baseline/, dashboard/state, dashboard/certs or intel/ (except the ATT&CK catalog) is refused. pass
unit test_repo_guard.ForbiddenFilesTest.test_forbidden_names Site/policy JSON, .env, DBs, keys, PDFs and JSONL files are refused even if they do not exist. pass
unit test_repo_guard.ForbiddenFilesTest.test_missing_ordinary_file_is_skipped A non-forbidden path that does not exist (deleted file) is not reported. pass
unit test_repo_guard.MacDetectionTest.test_mac_built_at_runtime_not_flagged Code that builds a MAC at run time (no literal) is clean. pass
unit test_repo_guard.MacDetectionTest.test_mac_detected_with_line_number A MAC address on line 3 is reported as ‘MAC address’ on line 3. pass
unit test_repo_guard.MacDetectionTest.test_multiple_files_and_lines Findings from several files are all returned, each with its own file and line. pass
unit test_repo_guard.MacDetectionTest.test_no_site_config_ignores_private_ips Without site settings, ordinary private and documentation IPs are not flagged. pass
unit test_repo_guard.MacDetectionTest.test_non_mac_patterns_clean Timestamps, IPv6 fragments with fewer than six groups and plain hex are not MACs. pass
unit test_repo_guard.MacDetectionTest.test_skip_content_files Vendored chart.umd.min.js and PNGs are not content-scanned. pass
unit test_repo_guard.MacDetectionTest.test_uppercase_mac_detected Upper-case MAC addresses are detected too. pass
unit test_repo_guard.SiteValuesTest.test_combined_reasons_on_one_line Several problems on one line are reported together, comma-separated. pass
unit test_repo_guard.SiteValuesTest.test_domain_term An own domain from the settings is flagged. pass
unit test_repo_guard.SiteValuesTest.test_internal_cidr_ip_flagged An IP inside internal_cidr is flagged as a site IP; one outside is not. pass
unit test_repo_guard.SiteValuesTest.test_ip_boundaries An IP embedded in a longer dotted number is not taken for a site IP. pass
unit test_repo_guard.SiteValuesTest.test_ip_listed_in_settings_flagged An IP that appears anywhere in the site settings (the WAN IP) is flagged. pass
unit test_repo_guard.SiteValuesTest.test_sensitive_term_case_insensitive A sensitive term is found regardless of case and reported as written. pass
unit test_repo_guard.SiteValuesTest.test_short_terms_ignored Terms shorter than 4 characters never match. pass
unit test_repo_guard.SiteValuesTest.test_site_values_from_store _site_values() collects every IP in the settings, terms of 4+ chars (longest first) and the internal network. pass
unit test_repo_guard.SiteValuesTest.test_term_inside_longer_word_ignored A term that continues into a longer word does not match. pass
unit test_repo_guard.SiteValuesTest.test_two_word_term A two-word term matches as a phrase but not as part of a longer phrase. pass
e2e test_e2e_pipeline.OperatorCli.test_repo_guard_cli_blocks_forbidden_and_passes_clean repo_guard.py exits non-zero for a file that must never be committed and 0 for a clean file. pass

SEC-05

Web security: Static file serving cannot escape the static directory (no path traversal) and unknown paths return 404. (source: server.py)

Level Test Verifies Status
e2e test_e2e_dashboard.Pages.test_path_traversal_blocked Encoded and plain ../ paths cannot read files outside the static directory. pass
e2e test_e2e_dashboard.Pages.test_unknown_api_404 Unknown API paths return 404 for GET and POST. pass

SEC-06

Web security: The state database and its WAL files (which also hold the UniFi cache) are owner-only (0600); cached controller credentials are redacted. (source: ACCESS_CONTROL.md (Where it lives))

Level Test Verifies Status
unit test_auth.TestSessions.test_signature_is_hmac_of_body_with_secret The signature is HMAC-SHA256 over ‘b64user.exp.gen’ with the secret key, which is owner-only. pass
unit test_store.TestConnect.test_existing_world_readable_db_is_tightened connect() chmods an existing group/world-readable database file back to 0600. pass
unit test_store.TestConnect.test_new_database_is_owner_only A database created by connect() (and its WAL/SHM files) is mode 0600. pass
unit test_unifi_cache.UnifiCache.test_settings_cache_has_no_credentials Every write of a legacy (settings) cache blanks controller credentials but keeps what Syn reads. pass
e2e test_e2e_access_control.AuditTrail.test_spool_file_owner_only The audit spool file is created owner-only (0600). pass
e2e test_e2e_access_control.AuditTrail.test_state_db_owner_only The server’s SQLite state DB is owner-only (0600). pass

AUD-01

Audit log: Every POST is audited with user, role, outcome and parameters, with secrets redacted. (source: AUDIT_LOG.md)

Level Test Verifies Status
unit test_audit.TestClean.test_cut _cut keeps short text, turns None into ‘’ and truncates long text with a note. pass
unit test_audit.TestClean.test_depth_bounded Nesting deeper than 4 levels collapses to an ellipsis. pass
unit test_audit.TestClean.test_empty_secret_values_not_marked An empty / None / False secret parameter is kept as-is (nothing to hide, shows it was blank). pass
unit test_audit.TestClean.test_lists_and_dicts_capped Lists keep at most 50 items, dicts at most 60 keys, keys at most 80 characters. pass
unit test_audit.TestClean.test_long_strings_truncated Strings longer than MAX_PARAM are cut and annotated with their original length. pass
unit test_audit.TestClean.test_nested_secrets_redacted Secrets inside nested dicts and lists (e.g. a push subscription’s keys) are redacted too. pass
unit test_audit.TestClean.test_ordinary_names_kept Non-secret parameters keep their value (key matching is exact for ‘key’ and ‘current’). pass
unit test_audit.TestClean.test_scalars_untouched Numbers, booleans and None pass through unchanged. pass
unit test_audit.TestClean.test_secret_names_redacted Parameters named like passwords, keys, tokens, cookies or credentials are replaced by [redacted]. pass
unit test_audit.TestClean.test_whole_secret_subtree_redacted A dict under a secret-looking name is redacted as a whole, not descended into. pass
unit test_audit.TestEntries.test_action_entry_fields action() queues an ECS entry with dataset, user, role, outcome, source ip, http, url and redacted params. pass
unit test_audit.TestEntries.test_background_actor_switched_off Entries from the event reviewer are skipped when its sending is switched off; users are not. pass
unit test_audit.TestEntries.test_existing_timestamp_and_id_kept emit keeps a caller-supplied @timestamp and event id. pass
unit test_audit.TestEntries.test_llm_entry llm() records provider, model, prompt, completion, token usage, duration and failure outcome. pass
unit test_audit.TestEntries.test_llm_status_outcome_and_no_usage A cancelled LLM run is a failure; without usage numbers no usage block is written. pass
unit test_audit.TestEntries.test_long_fields_truncated User names, paths, targets and user agents are length-capped. pass
unit test_audit.TestEntries.test_minimal_action With no user and no extras the entry uses ‘-‘ and omits optional sections. pass
unit test_audit.TestReading.test_doc_id_validated doc() refuses ids with characters outside [A-Za-z0-9_-] before querying. pass
unit test_audit.TestReading.test_search_query_and_rows search() builds filters from kind/user/outcome, bounds the page, and maps hits to rows. pass
unit test_audit.TestReading.test_search_rejects_bad_times search() rejects start/end values that are not ISO timestamps with an offset. pass
unit test_audit.TestReading.test_search_shows_pre_rename_actors_as_syn Entries written under the old background-actor names are shown, counted and filtered as Syn (…). pass
unit test_audit.TestReading.test_template_installed_before_first_write The writer thread installs the index template before it sends anything, so a new daily index never gets pass
e2e test_e2e_access_control.AuditTrail.test_user_add_audited_without_password Adding a user is audited with the actor and outcome, and the password never appears in the log. pass
e2e test_e2e_access_control.RoleMatrix.test_audit_log_admin_only The audit log page data is admin-only. pass

AUD-02

Audit log: Every sign-in attempt and every refused (403) request is audited. (source: AUDIT_LOG.md)

Level Test Verifies Status
unit test_audit.TestEntries.test_denied_request_entry A refused GET (403) is recorded as an access event with its status code. pass
unit test_audit.TestEntries.test_failed_sign_in_entry A failed sign-in is recorded with failure outcome, the user name and the default message. pass
e2e test_e2e_access_control.AuditTrail.test_denied_request_audited A request refused with 403 is audited as access denied. pass
e2e test_e2e_access_control.AuditTrail.test_failed_login_audited A failed sign-in is audited as a failure. pass

AUD-04

Audit log: Every log entry sent to Elasticsearch goes to a daily index .YYYY.MM.DD of its own timestamp (whole days can be deleted by a retention rule); every correlation-review pass with work or a problem and every review-job run is logged (syn.review) and summarised on AI review > Review log. (source: AUDIT_LOG.md)

Level Test Verifies Status
unit test_reviewlog.ReviewLogTest.test_correlation_pass_logged A pass that did work is logged with its counts; an idle pass is not; a failing one is logged as a problem. pass
unit test_reviewlog.ReviewLogTest.test_daily_index_name Every entry is written to -YYYY.MM.DD of its own @timestamp (UTC), so retention can drop whole days; pass
unit test_reviewlog.ReviewLogTest.test_review_log_follows_reviewer_switch The review log counts as the event reviewer: dropped while “Send event reviewer events” is off, pass
unit test_reviewlog.ReviewLogTest.test_view_falls_back_to_memory Without Elasticsearch the card shows the in-memory ring, with per-kind totals. pass

AUD-05

Audit log: No audit entry is lost while Elasticsearch is slow, busy or restarting: deferred (429/503) entries, a full queue and the queue at shutdown go to the disk spool; re-sends are idempotent (id = event.id); malformed entries are kept in a dead-letter file; entries are dropped only when disk space runs low. _(source: AUDIT_LOG.md (How it works))

Level Test Verifies Status
unit test_audit.TestEntries.test_full_queue_spools_without_raising When the in-memory queue is full, emit writes the entry to the disk spool instead of dropping or blocking. pass
unit test_audit.TestNoLoss.test_bulk_uses_event_id_as_doc_id Entries with an event id are created under that _id, so a re-send after a timeout cannot duplicate them. pass
unit test_audit.TestNoLoss.test_busy_items_are_retried_not_dropped 429 / 503 item errors (ES overloaded, shard not ready) raise Retry with exactly those entries. pass
unit test_audit.TestNoLoss.test_chunks_bounded_by_bytes Large LLM entries are split into bulk requests of at most BULK_BYTES. pass
unit test_audit.TestNoLoss.test_conflict_counts_as_stored A 409 on our own _id means the entry was stored by an earlier attempt: counted as sent, not retried. pass
unit test_audit.TestNoLoss.test_drain_keeps_deferred_and_rest A drain chunk with deferred entries keeps them plus every later spooled entry, nothing else. pass
unit test_audit.TestNoLoss.test_drops_only_when_disk_low The spool refuses entries only when free disk space falls below SPOOL_MIN_FREE. pass
unit test_audit.TestNoLoss.test_flush_spools_deferred_entries flush spools entries ES deferred and keeps the ones it stored out of the spool. pass
unit test_audit.TestNoLoss.test_malformed_entries_go_to_dead_letter Entries rejected as malformed (400 parsing) are kept in the dead-letter file, not resent or lost. pass
unit test_audit.TestNoLoss.test_shutdown_spools_queue On shutdown the entries still in memory are written to the spool. pass

AUD-06

Audit log: Every event reviewer web search or page read is an audit-log item (aireview.websearch, user Syn (event reviewer)) with the search or URL, why, the event under review, result count, result links, cached flag and error; the Audit log page labels, counts and filters them (they replace the AI pipeline monitoring web searches box). (source: AUDIT_LOG.md)

Level Test Verifies Status
unit test_websearch_audit.WebSearchAuditTest.test_failed_page_read A failed page read is a failure item naming the URL and the error. pass
unit test_websearch_audit.WebSearchAuditTest.test_search_entry A web search is one audit item with its query, why, event, result count and result links. pass

AUD-03

Audit log: Audit entries spool locally while Elasticsearch is unreachable; auditing never breaks a request. (source: AUDIT_LOG.md (How it works))

Level Test Verifies Status
unit test_audit.TestEntries.test_full_queue_spools_without_raising When the in-memory queue is full, emit writes the entry to the disk spool instead of dropping or blocking. pass
unit test_audit.TestReading.test_status_when_es_unreachable status() reports connected=False with an error instead of raising when ES is down. pass
unit test_audit.TestSpoolAndFlush.test_bad_url_scheme_refused _es refuses non-http(s) Elasticsearch URLs. pass
unit test_audit.TestSpoolAndFlush.test_bulk_body_and_rejections _bulk sends create actions for the audit index and counts per-entry rejections without failing the batch. pass
unit test_audit.TestSpoolAndFlush.test_drain_false_leaves_spool flush(drain=False) (CLI processes) sends only the new entries and leaves the spool for the server. pass
unit test_audit.TestSpoolAndFlush.test_es_request_shape _es sends ApiKey auth and ndjson content type to the configured URL and parses JSON. pass
unit test_audit.TestSpoolAndFlush.test_flush_nothing_to_do With an empty queue and no spool, flush returns 0 without contacting Elasticsearch. pass
unit test_audit.TestSpoolAndFlush.test_flush_with_explicit_batch flush(batch) sends the given entries together with anything queued. pass
unit test_audit.TestSpoolAndFlush.test_no_key_configured_spools Without an audit key the real _es refuses and entries are spooled, never sent. pass
unit test_audit.TestSpoolAndFlush.test_non_json_values_spooled_as_strings Values that are not JSON-serialisable (e.g. sets) are stringified in the spool instead of failing. pass
unit test_audit.TestSpoolAndFlush.test_partial_drain_keeps_unsent_without_duplicates If ES fails mid-drain, only the not-yet-sent chunk remains on disk for the retry. pass
unit test_audit.TestSpoolAndFlush.test_spool_cap_drops When the spool exceeds its size cap, further entries are counted as dropped, not written. pass
unit test_audit.TestSpoolAndFlush.test_spool_drained_when_es_returns Once ES works, flush sends the spool first (oldest first), then the new entries, and removes the spool. pass
unit test_audit.TestSpoolAndFlush.test_spool_unwritable_never_raises If the spool cannot be written (missing directory), entries are dropped and nothing raises. pass
unit test_audit.TestSpoolAndFlush.test_unreachable_es_spools_entries When ES is unreachable, queued entries go to the owner-only spool file and flush does not raise. pass
e2e test_e2e_access_control.AuditTrail.test_spool_file_owner_only The audit spool file is created owner-only (0600). pass
e2e test_e2e_access_control.AuditTrail.test_user_add_audited_without_password Adding a user is audited with the actor and outcome, and the password never appears in the log. pass

STO-01

Store: Snapshots, ranges and job/config state are JSON documents in the SQLite docs table (jload/jdump/jglob drop-ins). (source: store.py)

Level Test Verifies Status
unit test_config.TestResearchCfg.test_status_and_spent_today write_status/status round-trip and spent_today sums only today’s (UTC) research costs. pass
unit test_config.TestReviewCfg.test_status_reads_old_review_runs Before review_job.json exists, status() takes the review runs from the old research_job.json, without research usage. pass
unit test_store.TestConnect.test_db_path_prefers_netmon_db_env db_path() honours NETMON_DB first, then STATE_DIR, then the repo default. pass
unit test_store.TestConnect.test_schema_has_migrated_alert_columns_and_wal The schema includes the later alert columns (targets, cleared, held…) and the DB runs in WAL mode. pass
unit test_store.TestConnect.test_tl_conn_runs_init_once_per_thread tl_conn() returns one shared connection per thread and runs the init hook once per tag. pass
unit test_store.TestConnect.test_tx_rolls_back_on_exception A write transaction that raises is rolled back and the exception propagates. pass
unit test_store.TestDocs.test_doc_name_mapping doc_name() maps data/, ranges/ and state job files to doc names and leaves other paths as files. pass
unit test_store.TestDocs.test_doc_names_escapes_like_wildcards doc_names() treats _ and % in the prefix literally (no LIKE wildcard leakage). pass
unit test_store.TestDocs.test_docs_migrate_imports_and_optionally_deletes docs_migrate() loads JSON files of a data/ dir into the DB, skips invalid JSON and deletes when asked. pass
unit test_store.TestDocs.test_jdump_jload_roundtrip_in_db jdump of a data/ path stores the document in the DB (no file written) and jload reads it back. pass
unit test_store.TestDocs.test_jdump_overwrites_existing_doc A second jdump to the same path replaces the stored document. pass
unit test_store.TestDocs.test_jglob_lists_docs_sorted_and_filtered jglob on data/ returns the stored documents as file paths, sorted and filtered by the pattern. pass
unit test_store.TestDocs.test_jglob_plain_directory jglob on an ordinary directory globs the filesystem. pass
unit test_store.TestDocs.test_jload_bad_or_missing_file_returns_default jload returns the default for a missing file or one that is not valid JSON. pass
unit test_store.TestDocs.test_plain_file_fallback Paths outside data/ranges/state are read and written as ordinary JSON files. pass
unit test_store.TestOps.test_migrate_imports_legacy_files_once migrate imports every legacy JSON file, records counts, and refuses a second run unless overwrite. pass
unit test_store.TestOps.test_migrate_missing_files_is_empty migrate over a directory without legacy files imports nothing and does not fail. pass
unit test_store.TestRegistryHostsHistory.test_history_append_load_keep_and_served_ports history_append stores records in order, indexes served ports, and keep= trims old records and their ports. pass
unit test_store.TestRegistryHostsHistory.test_history_reappend_replaces_served_ports Re-appending the same snapshot replaces its served-port index (cascade on replace). pass
unit test_store.TestRegistryHostsHistory.test_hosts_save_replaces_kind_docs hosts_save replaces each (host, kind) document whole and skips non-dict host entries. pass
unit test_store.TestRegistryHostsHistory.test_registry_roundtrip_and_ips registry_save upserts device documents; registry_load/registry_ips read them back. pass
e2e test_e2e_dashboard.Api.test_open_events_persisted Findings from the snapshot appear on the Open events list (persisted event store). pass
e2e test_e2e_dashboard.Api.test_time_range_round_trips_raw_data /api/snapshot?id= pass
e2e test_e2e_pipeline.AnalyzePipeline.test_baseline_ready_after_history By day five the analysis records the baseline as ready with four days of history. pass
e2e test_e2e_pipeline.AnalyzePipeline.test_every_run_succeeds analyze.py exits 0 for each of the five snapshots and reports writing an analysis. pass
e2e test_e2e_pipeline.AnalyzePipeline.test_history_appended One history record per analysed snapshot is appended to the store. pass

STO-02

Store: Configuration (site, policy, host_policy, known_benign) is stored as flattened cfg rows that round-trip exactly. (source: SETUP.md §2)

Level Test Verifies Status
unit test_config.TestSiteCfg.test_overrides_merge_and_private_keys_dropped Stored site values override defaults, unknown keys pass through and ‘_‘-prefixed keys are dropped. pass
unit test_store.TestCfg.test_cfg_load_returns_private_copy_unless_shared cfg_load returns a deep copy by default, so callers can’t corrupt the cache; shared=True returns the cached object. pass
unit test_store.TestCfg.test_cfg_paths_route_through_jload_jdump /policy.json is a cfg document: jdump/jload/jexists/jmtime use the cfg table, not the file. pass
unit test_store.TestCfg.test_cfg_save_load_and_has cfg_save stores a document that cfg_load returns intact; cfg_has reports presence. pass
unit test_store.TestCfg.test_cfg_save_replaces_whole_document_and_invalidates_cache A second cfg_save replaces the document and the next cfg_load sees it immediately. pass
unit test_store.TestCfg.test_flatten_build_roundtrip cfg_build(cfg_flatten(x)) reproduces nested dicts, lists, empty containers, types and escaped keys exactly. pass
unit test_store.TestCfg.test_flatten_row_format cfg_flatten emits path / vtype / text rows, with ‘#n’ for list items and escaped dict keys. pass
unit test_store.TestCfg.test_top_level_empty_key_roundtrip KNOWN BUG: a top-level empty-string key is lost on round trip (its path is ‘’ which cfg_build treats as the root). expected failure (known bug)

STO-03

Store: Check-offs (acks) persist with note and label and can be set/cleared in bulk. (source: USER_GUIDE.md §5)

Level Test Verifies Status
unit test_store.TestAcks.test_ack_relabel_keeps_old_label_when_blank Re-acking with an empty label keeps the stored label; note is replaced; long text is truncated. pass
unit test_store.TestAcks.test_ack_set_and_clear ack_set stores a check-off with note and label; unchecking deletes it. pass
unit test_store.TestAcks.test_ack_set_many_bulk ack_set_many checks and restores many items in one call with a shared timestamp. pass
unit test_store.TestAcks.test_unknown_type_appears_in_map An ack of a type outside the four standard ones is still returned under its own type. pass
e2e test_e2e_dashboard.CheckOffs.test_bulk_check_off ‘Check all’ stores many items in one request. pass
e2e test_e2e_dashboard.CheckOffs.test_bulk_check_off_larger_than_64k ‘Check all’ on thousands of rows (body well over 64 KB) is parsed whole, not truncated; unauthenticated pass
e2e test_e2e_dashboard.CheckOffs.test_single_check_off_round_trip Checking an issue off stores it with its note; un-checking removes it. pass

STO-04

Store: Mute (‘Never send’) rules match alerts by name glob and optional host, and clear matching alerts. (source: USER_GUIDE.md §4)

Level Test Verifies Status
unit test_store.TestMuteRules.test_mglob_semantics _mglob: * and ? are wildcards (full match), [ ] are literal, plain text is substring or exact. pass
unit test_store.TestMuteRules.test_mute_add_is_disabled Creating never-send mute rules is switched off: mute_add raises ValueError. pass
unit test_store.TestMuteRules.test_mute_apply_and_remove_with_existing_rule A stored mute rule clears matching alerts (hidden, counted) and removing it restores them. pass
unit test_store.TestMuteRules.test_mute_match_name_and_host mute_match needs the name to match the text and the host to be a target or appear in the text. pass

STO-05

Store: Suppression rules (artifact, segmentation flow, IDS signature) hide only what they match. (source: PLAYBOOKS.md §17)

Level Test Verifies Status
unit test_autoclose.AutoCloseOpenEvents.test_suppressed_item_is_never_reopened An auto-closed event that a suppress rule covers stays hidden when its verdict turns suspicious. pass
unit test_store.TestSegAndIdsSuppress.test_ids_filter ids_filter drops globally suppressed signatures, strips a host’s share for host rules and fixes the total. pass
unit test_store.TestSegAndIdsSuppress.test_ids_filter_host_rule_removing_everything A host rule that covers every source and destination of a signature removes it entirely. pass
unit test_store.TestSegAndIdsSuppress.test_ids_suppress_add_remove ids_suppress_add validates the signature, dedupes on (sig, host) and ids_suppress_remove deletes. pass
unit test_store.TestSegAndIdsSuppress.test_seg_suppress_add_normalises_and_dedupes seg_suppress_add normalises the port list and returns the existing id for a duplicate rule. pass
unit test_store.TestSegAndIdsSuppress.test_seg_suppress_add_validation seg_suppress_add rejects empty rules, bad ports and wildcard-only IPs. pass
unit test_store.TestSegAndIdsSuppress.test_seg_suppress_match seg_suppress_match requires every field the rule sets to match the flow; blank fields match anything. pass
unit test_store.TestSuppress.test_suppress_add_hides_and_remove_restores suppress_add hides matching existing alerts (still correlated), dedupes rules; suppress_remove restores them. pass
unit test_store.TestSuppress.test_suppress_add_validation suppress_add rejects wildcard-only names, unknown artifact types and half-given artifacts. pass
unit test_store.TestSuppress.test_suppress_match_ip_boundaries An IP artifact matches the exact IP in targets or text, not a longer IP that contains it. pass
unit test_store.TestSuppress.test_suppress_match_name_only A rule without artifact matches on signature name alone; a rule without name never matches. pass
unit test_store.TestSuppress.test_suppress_match_port_and_kinds Port artifacts match ‘port N’, ‘:N’, ‘/N’ or port artifacts; domain matches dns artifacts or text. pass

STO-06

Store: Alerts are stored once, can be promoted/held/deleted, and track pushed/read state. (source: USER_GUIDE.md §4)

Level Test Verifies Status
unit test_plain_alerts.TestAlarmLifetime.test_aged_out_event_keeps_alarm Suspicious medium event -> alarm; event leaves the snapshot -> alarm stays; label turns benign -> alarm goes. pass
unit test_plain_alerts.TestAlarmLifetime.test_downgraded_event_still_withdrawn An event still in the snapshot that dropped below medium loses its alarm. pass
unit test_plain_alerts.TestAlarmLifetime.test_promoted_detection_survives_age_out A promoted watcher detection is not re-held just because its event left the snapshot. pass
unit test_push_targeting.TestPayload.test_batch Several alerts are summarised: count, investigate count, first 4 lines and an ‘…and N more’ tail. pass
unit test_push_targeting.TestPayload.test_batch_without_investigate A batch of only urgent alerts has no investigate suffix and urgent severity. pass
unit test_push_targeting.TestPayload.test_single_alert One investigate alert gives an ALERT title, its text, a per-alert tag and the alerts page. pass
unit test_push_targeting.TestPayload.test_single_urgent_report One urgent alert from a report links to the reports page. pass
unit test_push_targeting.TestRunOnce.test_held_detections_not_pushed Watcher detections are held (not an alarm until promoted) and so never reach push. pass
unit test_push_targeting.TestRunOnce.test_marked_pushed_without_subscribers Alerts are marked pushed even with no subscribers, so a first subscription is not flooded. pass
unit test_push_targeting.TestRunOnce.test_nothing_unpushed With no unpushed alerts nothing is sent and 0 is returned. pass
unit test_push_targeting.TestRunOnce.test_send_failure_recorded A failed send records last_error and the alerts are still marked pushed (no retry storm). pass
unit test_push_targeting.TestSend.test_gone_subscription_deleted A 410 Gone answer deletes the subscription at once. pass
unit test_push_targeting.TestSend.test_success A delivered push returns ok, uses high urgency and records last_ok with fails reset. pass
unit test_push_targeting.TestSend.test_transient_failures_counted_then_dropped Other failures count up; after 5 consecutive failures the subscription is removed. pass
unit test_push_targeting.TestSend.test_unexpected_error_never_raises A non-push exception (e.g. network) is reported as an error string, not raised. pass
unit test_store.TestAlerts.test_alert_defaults_and_targets alerts_add defaults severity to urgent and derives sorted targets from key and text unless given. pass
unit test_store.TestAlerts.test_alerts_recent_order_and_limit alerts_recent returns newest first and honours the limit; review alerts are excluded from the suppressed view. pass
unit test_store.TestAlerts.test_held_sources_are_not_in_feed_until_promoted Watcher alerts are stored held (read/pushed) and appear in the feed only after alerts_promote. pass
unit test_store.TestAlerts.test_hold_ignores_non_detection_sources alerts_hold only affects detection sources (watcher, secscan, account, report). pass
unit test_store.TestAlerts.test_mark_read_all_and_delete alerts_mark sets pushed/read (ignores other fields), alerts_read_all marks all read, alerts_delete removes. pass
unit test_store.TestAlerts.test_old_alerts_pruned_after_30_days Adding alerts deletes alerts older than 30 days. pass
unit test_store.TestMuteRules.test_mute_apply_and_remove_with_existing_rule A stored mute rule clears matching alerts (hidden, counted) and removing it restores them. pass
unit test_store.TestSecFindings.test_sec_sync_lifecycle sec_sync reports new / still open / fixed keys and reopening a fixed finding counts as new again. pass
unit test_store.TestSuppress.test_suppress_add_hides_and_remove_restores suppress_add hides matching existing alerts (still correlated), dedupes rules; suppress_remove restores them. pass
unit test_store.TestWatchMute.test_mute_filter_dedupes_and_mutes mute_filter passes each key once and mutes it so a repeat within the window is dropped. pass
unit test_store.TestWatchMute.test_mute_filter_expires_old_mutes A mute older than the window is purged and the alert passes again. pass
e2e test_e2e_dashboard.Account.test_password_change_raises_account_alert A password change stores an urgent ‘account’ detection (held for review until promoted to the bell). pass

STO-07

Store: Per-user device assignment (push prefs) decides which alerts a user is targeted by. (source: ACCESS_CONTROL.md)

Level Test Verifies Status    
unit test_plain_alerts.TestUserPush.test_user_gets_model_note_admin_gets_signature The same alarm pushes the analyst’s model-written note to a User (headline as title, note as body - written on pass    
unit test_push_targeting.TestAlertTargets.test_host_key_adds_label_and_mapped_ip host keys add the short host label and the endpoint IP mapped in host_policy. pass
unit test_push_targeting.TestAlertTargets.test_ip_boundaries An address embedded in a longer number is not mistaken for a device IP. pass    
unit test_push_targeting.TestAlertTargets.test_macs_lowercased MAC addresses (any case) become lower-case mac: targets. pass    
unit test_push_targeting.TestAlertTargets.test_private_ips_extracted 10/8, 172.16/12 and 192.168/16 addresses in key or text become ip: targets. pass    
unit test_push_targeting.TestAlertTargets.test_public_and_out_of_range_ips_ignored Documentation/public addresses and 172.x outside 16-31 are not device targets. pass    
unit test_push_targeting.TestAlertTargets.test_short_host_key_ignored A host key without a name part adds no host target. pass    
unit test_push_targeting.TestDeviceIds.test_device_ids_basic A device yields its IPs, lower-case MAC and name label. pass    
unit test_push_targeting.TestDeviceIds.test_empty_device A device with no IPs, MAC or name has no identifiers. pass    
unit test_push_targeting.TestDeviceIds.test_endpoint_host_mapped_by_ip A host in host_policy.endpoint_ips whose IP the device has adds that host’s label. pass    
unit test_push_targeting.TestDeviceIds.test_ip_name_not_used_as_host A device whose name is just an IP gets no host: identifier. pass    
unit test_push_targeting.TestPrefs.test_bad_mode_rejected Modes other than ‘all’ and ‘some’ raise ValueError and store nothing. pass    
unit test_push_targeting.TestPrefs.test_default_is_all A user without saved prefs gets mode ‘all’ with no devices. pass    
unit test_push_targeting.TestPrefs.test_device_list_capped At most 500 devices are stored. pass    
unit test_push_targeting.TestPrefs.test_set_and_get prefs_set stores a sorted, de-duplicated, stringified device list and returns it. pass    
unit test_push_targeting.TestPrefs.test_update_overwrites A second prefs_set replaces the earlier choice for that user only. pass    
unit test_push_targeting.TestRunOnce.test_anonymous_subscription_gets_nothing A subscription with no user (or an unknown user) is treated as a User with no devices. pass    
unit test_push_targeting.TestRunOnce.test_defender_can_narrow A defender who picked only the camera gets only the camera alert. pass    
unit test_push_targeting.TestRunOnce.test_every_browser_of_a_user Each subscribed browser of the same user receives the notification. pass    
unit test_push_targeting.TestRunOnce.test_targeting_per_user Admin ‘all’ gets both alerts; a User with the laptop gets only the laptop alert; a User with ‘all’ gets none. pass    
unit test_push_targeting.TestSend.test_resubscribe_resets_failures Saving the subscription again (re-subscribe) resets its failure count and owner. pass    
unit test_push_targeting.TestWatchIds.test_alert_for alert_for: None matches every alert; otherwise an alert matches only on a shared identifier. pass    
unit test_push_targeting.TestWatchIds.test_dhcp_change_followed When the device’s IP changes in the registry, the user’s identifiers follow it. pass    
unit test_push_targeting.TestWatchIds.test_host_entries_and_unknown_keys ‘host:' choices add the label (and mapped IP); unknown registry keys are ignored. pass    
unit test_push_targeting.TestWatchIds.test_mode_all_is_none Mode ‘all’ resolves to None (every device). pass    
unit test_push_targeting.TestWatchIds.test_some_resolves_registry_devices Chosen registry devices resolve to their current identifiers, read from the DB registry. pass    
unit test_push_targeting.TestWatchIds.test_some_with_nothing_chosen Mode ‘some’ with no devices resolves to an empty set (no alerts). pass    
unit test_store.TestAlerts.test_alert_defaults_and_targets alerts_add defaults severity to urgent and derives sorted targets from key and text unless given. pass    
unit test_store.TestPushSubs.test_failures_drop_subscription_after_five A subscription is removed after 5 consecutive push failures; a success resets the counter. pass    
unit test_store.TestPushSubs.test_save_update_delete push_sub_save upserts by endpoint (resetting fails) and push_sub_delete removes it. pass    
unit test_store.TestTargetsAndPrefs.test_alert_targets_host_key_uses_endpoint_ips host kind name keys add the host label and the endpoint IP mapped in host_policy. pass
unit test_store.TestTargetsAndPrefs.test_alert_targets_private_only alert_targets keeps private IPv4s (10/8, 172.16/12, 192.168/16) and MACs, not public or doc-range IPs. pass    
unit test_store.TestTargetsAndPrefs.test_device_ids device_ids lists a device’s IPs, lower-cased MAC, name label and endpoint host names mapped to its IPs. pass    
unit test_store.TestTargetsAndPrefs.test_prefs_default_set_and_validate push prefs default to all devices, store a sorted unique device list and reject unknown modes. pass    
unit test_store.TestTargetsAndPrefs.test_watch_ids_and_alert_for watch_ids is None for ‘all’; for ‘some’ it resolves registry devices and host: entries, and alert_for filters. pass    
e2e test_e2e_access_control.UserScope.test_user_device_prefs_locked A User’s notification settings are locked to the devices an admin assigned. pass    
e2e test_e2e_access_control.UserScope.test_user_sees_only_assigned_device_alerts The alert feed of a User contains the alert for their device and not the other one. pass    

STO-08

Store: Auto-close checks off every open event (any type or age) an enabled AI source calls expected/benign, never one called suspicious, never re-closes one a person reopened, and reopens it when the verdict turns bad. (source: autoclose.py)

Level Test Verifies Status
unit test_autoclose.AutoCloseOpenEvents.test_ai_reopen_does_not_block_a_later_close An event the AI review reopened (suspicious) is closed again when a later review calls it expected; only a pass
unit test_autoclose.AutoCloseOpenEvents.test_dry_run_and_disabled_option_change_nothing A preview (dry) or a verdict whose option is off never checks anything off. pass
unit test_autoclose.AutoCloseOpenEvents.test_expected_open_events_are_closed Open events without a snapshot checklist (IDS, gateway) the event reviewer calls expected/benign are checked off; pass
unit test_autoclose.AutoCloseOpenEvents.test_person_reopen_is_respected_and_verdict_change_reopens An auto-closed event a person un-checks is never auto-closed again; one whose verdict turns suspicious is pass
unit test_autoclose.AutoCloseOpenEvents.test_person_verdict_is_authoritative A person’s Expected/Benign verdict note closes the event even with every option off and is never reopened by pass
unit test_autoclose.AutoCloseOpenEvents.test_suppressed_item_is_never_reopened An auto-closed event that a suppress rule covers stays hidden when its verdict turns suspicious. pass
unit test_plain_alerts.TestVerdictMark.test_mark_changes_on_new_and_replaced_verdict Storing a verdict, and replacing one, both change the mark; reading does not. pass

STO-10

Store: Open events older than the loaded snapshot keep their related events: the count, linked events, artifacts and the decision model’s (clef) p(related) come from the stored verdicts. (source: eventstore.py / corr_llm.related_view)

Level Test Verifies Status
unit test_related_view.RelatedView.test_counts_details_and_clef Stored related links of a row (all its repeats), newest verdict per partner, artifacts and clef decisions. pass

STO-09

Store: Nightly host note consolidation merges only unreviewed AI notes, keeps every [reviewer:] tag and identifier (IPs, domains, ports, paths, hashes) or leaves the notes unchanged, never touches person-written notes, skips unchanged hosts, and runs once a day at the time set on AI review. (source: notes_consolidate.py)

Level Test Verifies Status
unit test_notes_consolidate.Consolidate.test_bad_ids_and_person_notes_are_ignored Groups naming a person’s note, an unknown id or reusing an id are dropped. pass
unit test_notes_consolidate.Consolidate.test_merge_keeps_tags_and_facts_and_leaves_person_notes Two overlapping AI notes become one that keeps both [reviewer:] tags and every identifier; the person’s note is untouched. pass
unit test_notes_consolidate.Consolidate.test_merge_that_drops_an_identifier_is_rejected A merge missing an IP is retried once naming it; if it is still missing, the notes stay as they were. pass
unit test_notes_consolidate.Consolidate.test_reviewer_does_not_overwrite_a_consolidated_note kb.tagged_slot: the event reviewer updates its own one-tag note, skips a merged note carrying the tag, adds a new one otherwise. pass
unit test_notes_consolidate.Consolidate.test_unchanged_subject_is_skipped_next_time After a pass, a host whose notes did not change is not sent again (unless –all). pass
unit test_notes_consolidate.Schedule.test_settings_validation_and_due_window Time must be HH:MM and the zone known; the run is due inside 3 h after the local time, once per day. pass

STO-16

Store: The UniFi pre-warm cache (system/admin log and flow rows, current-state calls, console id) lives in netmon.db with its freshness rules (tail refresh, retention, row cap, 15-min TTL), atomic writes and consistent reads; no cache files are written and the retired cache directory is blocked by the ship gate. (source: docs/ARCHITECTURE.md)

Level Test Verifies Status
unit test_unifi_cache.UnifiCache.test_prewarm_fills_store_and_serves_reads_without_files The UniFi pre-warm writes logs/flows as rows and current-state calls as docs in netmon.db, creates no files, pass
unit test_unifi_cache.UnifiCache.test_reader_sees_one_consistent_commit A reader in a read transaction keeps seeing the window and rows of one commit while the pre-warm writes (WAL). pass
unit test_unifi_cache.UnifiCache.test_refresh_fetches_tail_dedups_trims_and_caps A refresh only fetches the tail, merges rows by id, drops rows past the retention, keeps the newest MAX_ROWS pass
unit test_unifi_cache.UnifiCache.test_retired_cache_dir_is_blocked The ship gate flags the retired data/unifi_cache directory on disk and any source that names it again; the pass

STO-12

Store: Auto-close guard rails hold back AI verdicts (never a person’s): an event reviewer label below the minimum confidence without an agreeing research note, events in protected attack categories, and any event on a host with a recent open suspicious event stay open (the host hold also reopens that host’s recent AI closures); an AI closure expires after the set days when the event repeats and closes again only on a newer verdict. (source: autoclose.py)

Level Test Verifies Status    
unit test_autoclose.AutoCloseGuardRails.test_ai_closure_expires_when_the_event_repeats An AI closure older than expire_days reopens when the event repeats; it closes again only on a newer verdict. pass    
unit test_autoclose.AutoCloseGuardRails.test_code_scan_finding_never_holds_its_host With host_hold on, a suspicious code-scan finding (iss sec ) on a host’s IP holds nothing else on that host. pass
unit test_autoclose.AutoCloseGuardRails.test_host_hold_off_holds_only_the_suspicious_event With host_hold off a suspicious event stays open itself but holds nothing else on its host. pass    
unit test_autoclose.AutoCloseGuardRails.test_low_confidence_reviewer_label_stays_open An event reviewer label below min_conf does not close the event; at or above it (or with min_conf 0) it does. pass    
unit test_autoclose.AutoCloseGuardRails.test_protected_category_needs_a_person An admin-access event is never closed by an AI verdict while its category is protected; a person’s verdict pass    
unit test_autoclose.AutoCloseGuardRails.test_scoped_person_verdict_closes_protected_event A person’s approved benign verdict scoped to artifacts (e.g. find:newly-registered-domain) closes a protected pass    
unit test_autoclose.AutoCloseGuardRails.test_settings_defaults_merge_and_ranges Guard settings default to 0.8 / 7 days / attack categories, survive a switches-only save and are clamped. pass    
unit test_autoclose.AutoCloseGuardRails.test_suspicious_event_holds_and_reopens_its_host While an open event on a host is called suspicious, AI verdicts close nothing else on that host and AI pass    

STO-13

Store: Internet notes may cover a wider scope: a note on a parent domain (*.example.com) applies to every subdomain and a note on a CIDR range (/8 or narrower) to every address in it; the event reviewer and event research receive those notes for each covered name / address. (source: kb.py)

Level Test Verifies Status
unit test_cert_dns_notes.CertDnsNotes.test_cert_is_an_artifact_subject art:cert: is a valid note subject (lower-cased); bad fingerprints are refused; cert_notes groups them. pass
unit test_cert_dns_notes.CertDnsNotes.test_cert_note_reaches_event_with_cert_artifact An event carrying the certificate as an artifact gets its note via notes_by_artifacts. pass
unit test_cert_dns_notes.CertDnsNotes.test_correlate_adds_cert_artifact build() gives an event that names a server the certificate was presented for that certificate as an artifact. pass
unit test_cert_dns_notes.CertDnsNotes.test_entry_deleted_when_last_note_times_out When every note of an IP / domain / certificate has expired, the entry is gone from the lists. pass
unit test_cert_dns_notes.CertDnsNotes.test_parent_domain_note_reaches_subdomain_event A note on example.com reaches an event about a.b.example.com; a note merely mentioning example.com does not. pass
unit test_scoped_notes.ScopedNotes.test_cidr_note_covers_addresses_in_range A net: note applies to every address in the range (narrowest first), never outside it; host bits are cleared. pass
unit test_scoped_notes.ScopedNotes.test_cidr_validation Too-wide or malformed ranges are refused; a /32 is stored as a plain IP note. pass
unit test_scoped_notes.ScopedNotes.test_wildcard_domain_note_covers_subdomains A note added as *.example.com is stored on dom:example.com and applies to a.b.example.com, not to other domains. pass

STO-14

Store: A person’s Expected / Benign verdict on an event can name the artifacts it applies to (scope: device, kind of finding, IDS signature, IPs, DNS names, processes, accounts, ports); any event showing all of them gets that verdict. The event reviewer is told the verdict, and its label is replaced by the person’s verdict unless it is at least as confident as the verdict’s weight (artifact match 0.95, same event 0.9); a threat-intel hit keeps a suspicious label unless the verdict covers the listed indicator (STO-18). Expected / Benign do not save on click: the person adds a reason and picks artifacts, then saves. (source: kb.py, clef.py, corr_llm.py, kbnotes.js)

Level Test Verifies Status
unit test_owner_verdict_scope.OwnerWeight.test_apply_owner A person’s verdict replaces the event reviewer’s label unless the reviewer is at least as confident as the verdict’s pass
unit test_owner_verdict_scope.ScopeStore.test_clean_scope_validates_and_normalises Only ip / dns / proc / user / port keys survive, in the same form as an event’s artifact keys. pass
unit test_owner_verdict_scope.ScopeStore.test_match_needs_every_artifact A scoped verdict applies only to events showing all of its artifacts. pass
unit test_owner_verdict_scope.ScopeStore.test_scope_keys_always_offer_the_events_host The host an event is about is always offered, including a bare host name (Mac), and the host finding and its pass
unit test_owner_verdict_scope.ScopeStore.test_scope_keys_name_device_finding_signature_port Baseline findings, IDS signatures and gateway events offer the device, the kind of finding, the signature and pass
unit test_owner_verdict_scope.ScopeStore.test_scope_saved_only_for_expected_benign The chosen artifacts are stored with an expected / benign verdict, named in the note text, and never kept for suspicious. pass
unit test_owner_verdict_scope.ScopeStore.test_user_note_needs_approval A User account’s scoped verdict is not applied until approved. pass
unit test_owner_verdict_scope.ScopedVerdictOnOtherEvent.test_new_verdict_changes_signature A new verdict that applies to an event changes its review signature, so it is reviewed again. pass
unit test_owner_verdict_scope.ScopedVerdictOnOtherEvent.test_no_match_keeps_model_label A scoped verdict on an artifact the event does not show changes nothing. pass
unit test_owner_verdict_scope.ScopedVerdictOnOtherEvent.test_scoped_verdict_relabels_matching_event An expected verdict written on another event, scoped to an artifact event ‘a’ shows, is told to the event reviewer pass

STO-11

Store: Consolidation merges only notes about one shared artifact (not counting the host itself or a bare port), never adds an identifier its notes did not have, and drops malformed [reviewer:] tags, so it never links artifacts the notes did not link. (source: notes_consolidate.py)

Level Test Verifies Status
unit test_notes_consolidate.Consolidate.test_malformed_tags_are_dropped_and_never_indexed [reviewer:ip:25565] / [reviewer:dns:25565] are not artifacts: not indexed, and not carried into a merged note. pass
unit test_notes_consolidate.Consolidate.test_merge_that_adds_an_identifier_is_rejected A merged text naming an IP / domain that none of its notes had is not written. pass
unit test_notes_consolidate.Consolidate.test_notes_about_different_artifacts_are_not_merged Two notes that share no artifact (a DNS name and an unrelated IP) stay separate even if the model merges them. pass

STO-17

Store: Security > Event notes lists every person’s event note grouped by the signature that raised it (IDS signature via ids event, sig: scope or quoted label; detection kind via f or find: scope; host finding kind; threat-intel direction; admin service; alert title), leaving no note out, and lets people edit a note's text, verdict and scope: admins / defenders edit any note and keep its review status, a User edits only their own notes and the edit goes back to pending; the verdict boilerplate is rebuilt and the editor recorded. _(source: docs/USER_GUIDE.md)_
Level Test Verifies Status  
unit test_signature_notes.SignatureNotes.test_body_strips_verdict_boilerplate The editable text is the person’s own words, without the ANALYST VERDICT prefix. pass  
unit test_signature_notes.SignatureNotes.test_defender_edit_changes_text_verdict_scope_and_keeps_status A defender’s edit rewrites text, verdict and scope, rebuilds the verdict text, records the editor and keeps the status. pass  
unit test_signature_notes.SignatureNotes.test_edit_validation Empty text without a verdict, an unknown verdict or a bad id are refused; a missing note returns None. pass  
unit test_signature_notes.SignatureNotes.test_every_note_has_a_signature Notes on detections other than IDS are listed under their detection kind (e.g. newly-registered-domain), host finding, pass  
unit test_signature_notes.SignatureNotes.test_note_select_lists_every_column The fixed event-note SELECT (no string-built SQL) names exactly the note columns, in order. pass  
unit test_signature_notes.SignatureNotes.test_notes_grouped_by_signature A note counts for an IDS signature via its ids event, a sig: verdict scope or a quoted signature in its label. pass
unit test_signature_notes.SignatureNotes.test_user_edits_only_own_note_and_goes_back_to_pending A User cannot edit someone else’s note; their own edited note is pending again with the review cleared. pass  

STO-18

Store: A person’s Expected / Benign verdict stops a recurring alert: its scope may name a whole domain (dns:*. = the name and all of its subdomains, never a bare suffix); a verdict that covers an event's listed domain (written on that event, or scoped to the domain) overrides a threat-intel hit unless the intel grew since the verdict (new feed or higher score); a verdict may expire (7 / 30 / 90 / 365 days, default 30 when the event has threat intel), after which the AI and auto-close ignore it; the AI's notes calling a cleared domain malicious are marked rejected and not written again; report text that names JavaScript code, public resolvers, threat-intel services or victim sites is not extracted as an indicator. _(source: kb.py, corr_llm.py, iocs.py, intelmatch.py, server.py, kbnotes.js)_

Level Test Verifies Status
unit test_verdict_ti_override.IocExtract.test_skips_code_resolvers_services_victims JavaScript names, public resolvers, threat-intel services and sites named as victims are not indicators; an pass
unit test_verdict_ti_override.TiOverride.test_snapshot The intel snapshot saved with a verdict lists the strong hits’ feeds and top score; IP-only hits give none. pass
unit test_verdict_ti_override.TiOverride.test_ti_hold A verdict covering the listed domain (scoped to it or its parent, or written on the event) is applied over threat pass
unit test_verdict_ti_override.WildScope.test_dispute_and_no_new_ioc_notes Clearing a domain marks the AI’s ‘malicious’ indicator notes and suspicious reviewer notes for it (and its pass
unit test_verdict_ti_override.WildScope.test_expiry A verdict with an expiry stops counting afterwards: AI reads, scoped verdicts and person_verdicts leave it out; screens pass
unit test_verdict_ti_override.WildScope.test_wildcard_scope_clean_and_match dns:*. survives clean_scope for a registrable domain or deeper, never a bare suffix, and matches the name pass

STO-15

Store: Every host note carries its creation date and last-used date; an AI reading it for an event or host it involves (or a person editing, accepting or rejecting it) restarts the clock, dashboard listings and full dumps do not, and notes unused for the configured days are deleted with their artifact index rows; each note shows how long it has left. (source: docs/CORRELATION.md)

Level Test Verifies Status
unit test_kb_expiry.NoteExpiryTest.test_ai_read_resets_the_clock_but_listing_does_not An AI read for specific hosts (and an artifact match) restarts the clock; a dashboard listing or full dump does not. pass
unit test_kb_expiry.NoteExpiryTest.test_edit_and_review_reset_the_clock Editing or accepting / rejecting a note counts as using it. pass
unit test_kb_expiry.NoteExpiryTest.test_new_note_is_dated_and_shows_expiry A new note gets its creation date and last-used date, and listings show when it expires (default 30 days). pass
unit test_kb_expiry.NoteExpiryTest.test_purge_deletes_only_expired_notes Notes unused longer than the setting are deleted with their artifact index rows; 0 days turns expiry off. pass

ANA-01

Baseline analysis: analyze.py learns a per-device baseline (keyed by MAC) and flags volume/upload/count spikes only after MIN_DAYS of history. (source: analyze.py / RISK_SCORING.md)

Level Test Verifies Status
unit test_analyze.CompactTests.test_dns_summary The DNS summary keeps distinct counts, qtypes, TLDs, top domains, resolvers, DoH and DoT conns. pass
unit test_analyze.CompactTests.test_hours_and_rounding Active hours list only hours with connections (sorted); hourly bytes and geo values are rounded. pass
unit test_analyze.CompactTests.test_service_and_port_maps Services, destination ports, port services and served ports are reduced to counts. pass
unit test_analyze.CompactTests.test_sparse_device A device with almost no data compacts to zero/empty defaults without errors. pass
unit test_analyze.CompactTests.test_volume_fields Totals and counts are copied; conns = originated + responded connections. pass
unit test_analyze.SmallHelperTests.test_beacon_id Beacon ids prefer domain, then ASN, then destination IP, plus the port. pass
unit test_analyze.SmallHelperTests.test_enrich_today enrich_today attaches JA4, software, IoT destinations, answered internal peers and beacons by device key. pass
unit test_analyze.SmallHelperTests.test_ephemeral_ports High UDP ports and P2P/STUN services are ephemeral; TCP or low ports are not. pass
unit test_analyze.SmallHelperTests.test_tunnel_level DNS tunnel candidates: suspect (score>=5, >=150 subs), watch (score>=3, >=50 subs, ratio>=0.5), else None. pass
unit test_analyze.SpikeTests.test_multiple_and_mad_rules A value must exceed both mult x median and median + madf x MAD. pass
unit test_analyze.SpikeTests.test_requires_floor_and_history Below the absolute floor or with fewer than MIN_DAYS of history nothing is a spike. pass
unit test_analyze.SpikeTests.test_sp_uses_configured_severity sp() returns the configured severity on a spike, None when off or not a spike. pass
unit test_analyze.SpikeTests.test_time_range_scaling Counts of a 48 h range are halved before comparing; distinct counts of a 6 h range are not scaled up. pass
unit test_analyze.SpikeTests.test_value_equal_to_floor_counts A value exactly at the floor (‘at least min’, extras.SPIKE_COMMON) far above normal is a spike. expected failure (known bug)
unit test_analyze.StatsTests.test_mad mad() is the median absolute deviation from the median and 0 for an empty list. pass
unit test_analyze.StatsTests.test_median med() is the statistical median and 0 for an empty list. pass
e2e test_e2e_pipeline.AnalyzePipeline.test_no_findings_while_seeding With fewer than MIN_DAYS (3) days of history, runs only seed the baseline and raise no deviation findings. pass
e2e test_e2e_pipeline.AnalyzePipeline.test_steady_devices_not_flagged Devices whose traffic matches their baseline produce no findings. pass
e2e test_e2e_pipeline.AnalyzePipeline.test_upload_spike_detected A device that suddenly uploads 900 MB gets a high ‘upload-spike’ finding keyed by its MAC. pass

ANA-30

Baseline analysis: new destinations: The learned-allowlist findings iot-new-domain (domains, new networks, IPs with no ASN) and new-tls-server (TLS server names) are raised, and destinations collected, only for device classes whose switches are on (class_defs; default iot only, built from the older new_domain_classes / new_tls_classes lists, which are still read until class_defs is saved); collect.py gathers destinations through extras.new_dest_ips. (source: docs/USER_GUIDE.md (Device class definitions))

Level Test Verifies Status
unit test_analyze.SmallHelperTests.test_new_destination_findings_follow_policy_classes new_domain_classes / new_tls_classes pick which device classes get iot-new-domain and new-tls-server pass
unit test_settings_site.CfgValidate.test_new_destination_class_lists new_domain_classes / new_tls_classes accept lists of device classes, ‘unclassified’, ‘*’ and []; pass

RISK-01

Risk scoring: Vulnerability risk is 0-100 from severity base x kind factor x host exposure, plus recurrence. (source: RISK_SCORING.md)

Level Test Verifies Status  
unit test_risk.HostIpTests.test_host_ip_from_site_map The site host_ips map (lowercase names) wins over name matching. pass  
unit test_risk.HostIpTests.test_host_ip_short_name_match An FQDN resolves through a device name/hostname whose short form matches (names > 3 chars only). pass  
unit test_risk.HostScoreTests.test_worked_example_from_spec The RISK_SCORING.md worked example reproduces: vulns 85.9 / 39.2, likelihood 45.9, host risk 45.9. pass  
unit test_risk.VulnScoreTests.test_drivers_explain_multipliers Drivers list severity, kind factor, exposure and recurrence in plain language. pass  
unit test_risk.VulnScoreTests.test_exposed_wins_over_dmz A DMZ host that also serves the internet gets the 1.4 exposure factor (first rule wins). pass  
unit test_risk.VulnScoreTests.test_exposure_factor_order Host exposure: internet-exposed 1.4, DMZ 1.3, protected 1.15, otherwise 1.0. pass  
unit test_risk.VulnScoreTests.test_host_name_resolves_to_ip_for_exposure An issue with only a host name is resolved to the device IP via host_ips and gets its exposure factor. pass  
unit test_risk.VulnScoreTests.test_kind_factors Kind factors come from the key prefix (plain 1.2, ti-in 1.5, defend 1.4, inv 0.4, doh 0.5, unknown 1.0). pass  
unit test_risk.VulnScoreTests.test_legacy_zone_name_role Without zone_roles, legacy zone names map to roles (dmz -> dmz, servers -> protected). pass  
unit test_risk.VulnScoreTests.test_recurrence_bonus_capped Recurrence adds 8% per extra occurrence and stops at +40% (6+ occurrences). pass  
unit test_risk.VulnScoreTests.test_score_capped_at_100 Even the worst combination never exceeds 100. pass  
unit test_risk.VulnScoreTests.test_seg_issue_in_dmz_uses_seg_dmz_factor A seg issue whose host is in a DMZ-role zone uses the 1.5 seg-dmz factor (plus DMZ exposure 1.3). pass  
unit test_risk.VulnScoreTests.test_severity_base_values Neutral kind on a neutral host scores exactly the severity base (45/28/14/5, other 10). pass  
unit test_risk.VulnScoreTests.test_unifi_ips_mode_documented_limitation unifi ips-mode resolves to the generic ‘unifi’ factor 0.8 (documented known limitation), admin-src gets 1.4. pass
unit test_risk.VulnScoreTests.test_vulns_sorted_and_ranked Vulnerabilities are sorted by score descending and ranked from 1. pass  
unit test_risk.ZoneAndKeyTests.test_exposed_services_only_low_tcp_with_external_conns Only TCP ports below 32768 with external connections count as internet-exposed (ICMP/UDP ignored). pass  

RISK-02

Risk scoring: Host risk is 0-100, the sum of capped components (exposure, weaknesses, threat, lateral, visibility). (source: RISK_SCORING.md)

Level Test Verifies Status
unit test_risk.HostScoreTests.test_components_capped_and_score_bounded With every signal saturated each component stays at its cap and the score never exceeds 100. pass
unit test_risk.HostScoreTests.test_crown_jewel_override A crown-jewel IP gets impact 5 with its configured reason even when its zone would say less. pass
unit test_risk.HostScoreTests.test_empty_inputs compute() copes with empty raw/analysis/tracker/policy and returns empty rankings. pass
unit test_risk.HostScoreTests.test_endpoint_only_target_and_case_merge An endpoint known only by host name is scored with impact 4; case variants of its name merge. pass
unit test_risk.HostScoreTests.test_failed_admin_logins_raise_both_ends Failed admin logins add threat to the destination (3/session +4 if high) and reach to the source (2/session). pass
unit test_risk.HostScoreTests.test_gateway_addresses_merge_into_gateway_entity Gateway/broadcast addresses are not scored as hosts; their issues go to ‘UniFi gateway’ (impact 5). pass
unit test_risk.HostScoreTests.test_hosts_sorted_by_score Host rows are sorted by score descending with consecutive ranks. pass
unit test_risk.HostScoreTests.test_impact_by_class_role_and_fallbacks Impact uses device class, then zone role, unknown class or zone gives 2, DMZ gives 3. pass
unit test_risk.HostScoreTests.test_lateral_reach_zones_and_violations Reach: 2 per other answered zone (own zone/internet/unanswered excluded) + 1 per uncleared violation. pass
unit test_risk.HostScoreTests.test_threat_intel_contact_adds_15 Contacting a threat-listed destination adds 15 threat points; a malicious JA3 source adds 2. pass
unit test_risk.HostScoreTests.test_threat_signals_and_known_benign Findings (high 6/med 3/low 1, weakness kinds excluded), IDS 3 each, beacons 3 each; benign ones ignored. pass
unit test_risk.HostScoreTests.test_visibility_gaps Unknown device +4, server/DMZ without agent +4 (infra exempt), unhealthy agent +3, DNS bypass +2. pass
unit test_risk.HostScoreTests.test_weaknesses_diminishing_returns One 100-point vuln fills 18 weakness points, two fill 25.2 (30 x (1 - prod(1 - 0.6 s/100))). pass
unit test_risk.HostScoreTests.test_worked_example_from_spec The RISK_SCORING.md worked example reproduces: vulns 85.9 / 39.2, likelihood 45.9, host risk 45.9. pass
unit test_risk.HostScoreTests.test_zero_score_host_without_issues_dropped A known, quiet, unclassified user-zone device scores 0 and is left out of the ranking. pass
e2e test_e2e_dashboard.Api.test_risk_scores_bounded Every host risk score served by /api/risk lies within 0-100. pass
e2e test_e2e_pipeline.AnalyzePipeline.test_dashboard_serves_pipeline_output The dashboard started on the pipeline’s store serves the analysis (as the 24-hour time range ending at the run, pass

RISK-03

Risk scoring: IPs map to policy zones by CIDR; segmentation flows are keyed by device MAC so DHCP changes follow. (source: RISK_SCORING.md)

Level Test Verifies Status      
unit test_analyze.DevKeyTests.test_ip_fallback A device without (or with an empty) MAC is keyed by its IP. pass      
unit test_analyze.DevKeyTests.test_mac_preferred A device with a MAC is keyed by its MAC so DHCP address changes keep its baseline. pass      
unit test_issues.RawChecksTests.test_key_falls_back_to_ip_without_mac A device without a MAC is keyed by IP; with a MAC learned in IP2MAC the MAC is used. pass      
unit test_issues.TrackTests.test_ip2mac_learned_across_snapshots A snapshot that lacks a device’s MAC still keys it by the MAC learned from another snapshot. pass      
unit test_issues.TrackTests.test_mac_key_follows_dhcp_change A device that changes IP keeps one issue key (by MAC), so occurrences accumulate. pass      
unit test_push_targeting.TestWatchIds.test_dhcp_change_followed When the device’s IP changes in the registry, the user’s identifiers follow it. pass      
unit test_risk.HostScoreTests.test_impact_by_class_role_and_fallbacks Impact uses device class, then zone role, unknown class or zone gives 2, DMZ gives 3. pass      
unit test_risk.VulnScoreTests.test_legacy_zone_name_role Without zone_roles, legacy zone names map to roles (dmz -> dmz, servers -> protected). pass      
unit test_risk.VulnScoreTests.test_seg_issue_in_dmz_uses_seg_dmz_factor A seg issue whose host is in a DMZ-role zone uses the 1.5 seg-dmz factor (plus DMZ exposure 1.3). pass      
unit test_risk.ZoneAndKeyTests.test_seg_key_finding_parses_segmentation_detail A segmentation finding’s detail yields ‘ '; other kinds give None. pass  
unit test_risk.ZoneAndKeyTests.test_seg_key_issue_parses_seg_issue_keys A ‘seg ' Fix-list key converts to the flow key; other keys give None. pass
unit test_risk.ZoneAndKeyTests.test_seg_key_keeps_unknown_ip_and_mac Unknown IPs and MAC sources are kept as-is (lowercased); no device map leaves the IP. pass      
unit test_risk.ZoneAndKeyTests.test_seg_key_maps_ip_to_device_mac A source IP is replaced by its device MAC so the key survives DHCP address changes. pass      
unit test_risk.ZoneAndKeyTests.test_zone_of_maps_ip_to_cidr_zone An IP inside a policy CIDR maps to that zone name. pass      
unit test_risk.ZoneAndKeyTests.test_zone_of_prefix_boundaries CIDR masks are honoured exactly (/24 edge addresses, /16 and /0 zones). pass      
unit test_risk.ZoneAndKeyTests.test_zone_of_unmatched_and_invalid An IP outside every zone is ‘internet’; an unparseable value gives an empty zone. pass      
e2e test_e2e_pipeline.AnalyzePipeline.test_upload_spike_detected A device that suddenly uploads 900 MB gets a high ‘upload-spike’ finding keyed by its MAC. pass      

RISK-04

Risk scoring: Cleared segmentation flows stay cleared under both their IP and MAC form. (source: CORRELATION.md (Clearing segmentation))

Level Test Verifies Status
unit test_lateral.AdminSessionTests.test_cleared_flow_is_allowed_but_failures_escalate A user-cleared segmentation flow (MAC form) makes a success allowed-admin; failures still escalate. pass
unit test_lateral.BuildTests.test_cleared_violation_shown_allowed A violation on a user-cleared flow is shown as allowed-admin. pass
unit test_risk.HostScoreTests.test_lateral_reach_zones_and_violations Reach: 2 per other answered zone (own zone/internet/unanswered excluded) + 1 per uncleared violation. pass
unit test_risk.VulnScoreTests.test_cleared_seg_issue_dropped A seg issue whose flow was cleared (MAC form) is not scored; other issues still are. pass
unit test_risk.ZoneAndKeyTests.test_seg_cleared_reads_policy seg_cleared returns the policy’s _cleared_seg set or an empty set. pass
unit test_risk.ZoneAndKeyTests.test_seg_is_cleared_ip_and_mac_forms A flow cleared under its MAC form is cleared when looked up by IP, and the IP form also matches. pass
unit test_store.TestSegAndIdsSuppress.test_seg_suppress_match seg_suppress_match requires every field the rule sets to match the flow; blank fields match anything. pass

ISS-01

Fix list: The fix list flags plaintext services, legacy TLS and other weaknesses found in a snapshot. (source: USER_GUIDE.md (Fix list))

Level Test Verifies Status    
unit test_issues.AnalysisChecksTests.test_finding_kinds_mapped Outdated software, JA3, inbound threat intel and internal scans map to sw/ja3/ti-in/scan issues. pass    
unit test_issues.AnalysisChecksTests.test_segmentation_findings_not_in_fix_list Segmentation findings are tracked on Lateral/Risk pages, never as Fix-list issues. pass    
unit test_issues.HostsAndUnifiChecksTests.test_endpoint_checks Unhealthy agents, failed Defend, SSH password logins and >=5 auth failures produce issues. pass    
unit test_issues.HostsAndUnifiChecksTests.test_unifi_checks UniFi IDS-only mode, unprotected networks, endpoint scanning off, odd admin source, offline devices. pass    
unit test_issues.RawChecksTests.test_all_plaintext_protocols_known Every catalogued plaintext protocol (telnet, ftp, tftp, snmp, irc, pop3) is detected. pass    
unit test_issues.RawChecksTests.test_capture_loss_levels Capture loss: none at <=2%, medium above 2% (or on a CaptureLoss notice), high above 20%. pass    
unit test_issues.RawChecksTests.test_doh_flagged_low DNS-over-HTTPS use creates a low ‘doh’ issue. pass    
unit test_issues.RawChecksTests.test_external_dns_severity_threshold Hard-coded external resolvers: medium above 50 queries, low otherwise; evidence sorted by count. pass    
unit test_issues.RawChecksTests.test_fixture_snapshot_is_clean The baseline synthetic snapshot (no plaintext, no legacy TLS) produces no device issues. pass    
unit test_issues.RawChecksTests.test_ingest_lag_levels Log pipeline backlog: none at p99 <= 30 min, medium above, high above 4 h; evidence names each late source. pass    
unit test_issues.RawChecksTests.test_key_falls_back_to_ip_without_mac A device without a MAC is keyed by IP; with a MAC learned in IP2MAC the MAC is used. pass    
unit test_issues.RawChecksTests.test_legacy_tls_flagged SSLv3/TLS 1.0/1.1 use creates a low ‘tls-legacy’ issue listing only the legacy versions. pass    
unit test_issues.RawChecksTests.test_legacy_tls_regex_exact The legacy TLS matcher accepts exactly SSLv2/SSLv3/TLSv10/TLSv11. pass    
unit test_issues.RawChecksTests.test_plaintext_services_flagged Outbound Telnet/FTP use creates a medium ‘plain ' issue; encrypted services do not. pass
unit test_issues.RawChecksTests.test_unknown_dhcp_inventory Devices missing from the DHCP inventory become low ‘inv ' hygiene issues. pass  

ISS-02

Fix list: Issues are tracked across snapshots (first/last seen, occurrences) and only recurring ones are kept. (source: RISK_SCORING.md (Recurrence))

Level Test Verifies Status
unit test_issues.HostsAndUnifiChecksTests.test_sources_of The set of data sources reflects analysis, hosts and UniFi settings availability. pass
unit test_issues.IncrementalTrackTests.test_incremental_matches_full_and_reuses_cache Stored runs give the identical Fix list; a new run is the only one parsed again, and a run whose IP->MAC pass
unit test_issues.TrackTests.test_device_not_seen_stays_open An issue of a device absent from the latest snapshot is ‘open (device not seen)’, not fixed. pass
unit test_issues.TrackTests.test_empty_history Tracking no snapshots yields empty lists and no latest snapshot. pass
unit test_issues.TrackTests.test_fixed_when_absent_in_later_full_snapshot An issue missing from a later 24 h snapshot is fixed at that snapshot’s time. pass
unit test_issues.TrackTests.test_ip2mac_learned_across_snapshots A snapshot that lacks a device’s MAC still keys it by the MAC learned from another snapshot. pass
unit test_issues.TrackTests.test_mac_key_follows_dhcp_change A device that changes IP keeps one issue key (by MAC), so occurrences accumulate. pass
unit test_issues.TrackTests.test_missing_source_not_rechecked When the latest snapshot lacks the issue’s source (no UniFi data) it stays ‘open (not re-checked)’. pass
unit test_issues.TrackTests.test_occurrences_and_recurring An issue seen in 3 snapshots has 3 occurrences, first/last seen, open status and is recurring. pass
unit test_issues.TrackTests.test_open_sorted_by_severity_then_occurrences Open issues sort by severity (high first) then by occurrences descending. pass
unit test_issues.TrackTests.test_short_snapshot_cannot_fix A short-lookback snapshot (< 23 h) without the issue does not mark it fixed. pass
unit test_issues.TrackTests.test_single_occurrence_not_recurring A one-off issue stays open but is not recurring under the default min_occ=2; min_occ=1 makes it recurring. pass
unit test_risk.VulnScoreTests.test_recurrence_bonus_capped Recurrence adds 8% per extra occurrence and stops at +40% (6+ occurrences). pass

LAT-01

Lateral movement: Admin sessions between zones get a risk level; allow rules downgrade them to allowed-admin. (source: CORRELATION.md §1)

Level Test Verifies Status
unit test_lateral.AdminSessionTests.test_allow_by_device_class Allow rules can name device classes (from the device MAC). pass
unit test_lateral.AdminSessionTests.test_allow_rule_does_not_hide_failures Failed logins escalate even when the flow is allow-listed. pass
unit test_lateral.AdminSessionTests.test_allow_rule_downgrades_to_allowed_admin A successful session matched by an allow rule (zone or port) becomes allowed-admin. pass
unit test_lateral.AdminSessionTests.test_cleared_flow_is_allowed_but_failures_escalate A user-cleared segmentation flow (MAC form) makes a success allowed-admin; failures still escalate. pass
unit test_lateral.AdminSessionTests.test_database_traffic_is_normal Successful database client sessions are ‘normal’. pass
unit test_lateral.AdminSessionTests.test_empty No admin evidence yields no sessions (also with no policy). pass
unit test_lateral.AdminSessionTests.test_failures_then_success_is_high >= 3 failures followed by a success on one account is high; a typo or two then success is medium. pass
unit test_lateral.AdminSessionTests.test_invalid_users_is_high >= 3 failed logins with invalid user names is high. pass
unit test_lateral.AdminSessionTests.test_password_guessing_is_high >= 10 failed logins is high (password guessing). pass
unit test_lateral.AdminSessionTests.test_refused_connections >= 5 refused connections to an admin port is medium, 1-4 is low. pass
unit test_lateral.AdminSessionTests.test_self_and_loopback_skipped Sessions to self or from/to loopback are ignored. pass
unit test_lateral.AdminSessionTests.test_single_failure_is_medium Any failed login (below the high thresholds) is medium. pass
unit test_lateral.AdminSessionTests.test_sorted_worst_first Sessions are sorted by level (high first), then by failures. pass
unit test_lateral.AdminSessionTests.test_tool_evidence_resolved_by_inventory_name Endpoint admin-tool evidence resolves host names via the inventory and counts as a success. pass
unit test_lateral.AdminSessionTests.test_uncovered_success_is_low A successful admin session not in the allow list is low. pass
unit test_lateral.AllowedTests.test_matches_by_ip_zone_class_wildcard Allow rules match src/dst by IP, zone, class, ‘*’ or omission, and return their reason. pass
unit test_lateral.AllowedTests.test_non_matching Rules for another source or destination, or an empty list, do not allow the flow. pass
unit test_lateral.AllowedTests.test_port_restrictions A rule with ports only matches listed ports (bare number or ‘port/proto’). pass
unit test_lateral.BuildTests.test_admin_session_raises_edge Admin sessions attach to edges (even without flows) and raise the edge and port level. pass
unit test_lateral.BuildTests.test_cleared_violation_shown_allowed A violation on a user-cleared flow is shown as allowed-admin. pass
unit test_lateral.BuildTests.test_counts_cover_all_levels The counts summary has every level key and sums to the edge count. pass
unit test_lateral.BuildTests.test_edge_score_formula Edge score = weight x (0.6 + 0.2 x dst impact) x (1 + conns/1000) x (1 + fails/25). pass
unit test_lateral.BuildTests.test_edge_takes_worst_port_and_sums An edge aggregates conns/answered/bytes of its ports and takes the worst port level. pass
unit test_lateral.BuildTests.test_gateway_naming Gateway addresses (.1) are named after their zone and flagged as gateways. pass
unit test_lateral.BuildTests.test_only_internal_edges Edges exist only between internal zoned hosts; internet, unzoned, self, broadcast and multicast are skipped. pass
unit test_lateral.BuildTests.test_port_classification Unanswered sensitive port x5 is medium, scanner traffic medium, answered sensitive low/allowed, else normal. pass
unit test_lateral.BuildTests.test_unanswered_sensitive_below_threshold_normal Four unanswered attempts at a sensitive port stay normal (threshold is 5). pass
unit test_lateral.BuildTests.test_violation_sets_edge_level A segmentation violation gives its port the violation severity and reason. pass
unit test_lateral.MergePeriodsTests.test_merged_failures_cross_threshold Failures split over two periods add up: 5 + 5 failed logins become one high session in the merged graph. pass
unit test_risk.HostScoreTests.test_failed_admin_logins_raise_both_ends Failed admin logins add threat to the destination (3/session +4 if high) and reach to the source (2/session). pass

LAT-02

Lateral movement: Lateral data from several periods merge into one graph (flows summed per src/dst/port/proto). (source: CORRELATION.md §1)

Level Test Verifies Status
unit test_lateral.BuildTests.test_edge_takes_worst_port_and_sums An edge aggregates conns/answered/bytes of its ports and takes the worst port level. pass
unit test_lateral.MergePeriodsTests.test_admin_concatenated_and_sources_summed Admin conns/logins/tools are concatenated, source counts summed, devices and inventory merged. pass
unit test_lateral.MergePeriodsTests.test_empty No periods give an empty but well-formed raw/analysis pair. pass
unit test_lateral.MergePeriodsTests.test_flows_summed_per_key Flows with the same (src, dst, port, proto) have conns/answered/bytes summed; others kept apart. pass
unit test_lateral.MergePeriodsTests.test_inputs_not_mutated Merging does not modify the input period dicts. pass
unit test_lateral.MergePeriodsTests.test_merged_failures_cross_threshold Failures split over two periods add up: 5 + 5 failed logins become one high session in the merged graph. pass
unit test_lateral.MergePeriodsTests.test_scans_keep_worst_per_source Internal scans keep the record with the most failed connections per source. pass
unit test_lateral.MergePeriodsTests.test_violations_summed_worst_severity Violations are summed per flow and keep the worst severity with its reason. pass
unit test_lateral_page.PeriodGraphTests.test_link_in_one_period_and_worst_level_kept A link seen in only one period appears; a link high in one period and normal in another stays high with summed counts. pass

COR-01

Correlation: Concrete artifacts (files, processes, users, domains) are extracted from event text without lookups. (source: CORRELATION.md §2)

Level Test Verifies Status
unit test_correlate.ArtifactsOfTest.test_accounts_list_parsed ‘accounts alice (1 failed, 2 ok), root (1 failed)’ yields both accounts. pass
unit test_correlate.ArtifactsOfTest.test_domains_lowercased_and_deduped Domain names are lowercased and listed once. pass
unit test_correlate.ArtifactsOfTest.test_empty_text_gives_no_artifacts Empty or None text yields an empty artifact list. pass
unit test_correlate.ArtifactsOfTest.test_extra_artifacts_and_cap Extra artifacts are appended and the result is capped at MAX_ARTS. pass
unit test_correlate.ArtifactsOfTest.test_file_path_in_file_context A path mentioned in a file-write event is reported as a file. pass
unit test_correlate.ArtifactsOfTest.test_new_executable_relation An exec-new key labels the path as a new executable, with the host label appended. pass
unit test_correlate.ArtifactsOfTest.test_parent_path_not_duplicated_as_file A parent given as a path is only listed once, as the parent process. pass
unit test_correlate.ArtifactsOfTest.test_parent_process_and_command_line ‘parent X’ and ‘cmd: …’ produce a parent process and a command-line artifact. pass
unit test_correlate.ArtifactsOfTest.test_process_path_in_process_context A binary path in a process-keyed event is reported as a process. pass
unit test_correlate.ArtifactsOfTest.test_relation_truncated_to_90 Relation text is cut at 90 characters. pass
unit test_correlate.ArtifactsOfTest.test_sha256_is_appended_to_relation A sha256 in the text is attached (first 16 hex chars) to the path’s relation. pass
unit test_correlate.ArtifactsOfTest.test_stop_words_are_not_users Words like ‘unknown’ after ‘user’ are not reported as accounts. pass
unit test_correlate.ArtifactsOfTest.test_trailing_punctuation_stripped Trailing punctuation after a path is not part of the artifact value. pass
unit test_correlate.ArtifactsOfTest.test_users_argument_and_case_insensitive_dedupe Users passed in are added; the same user in another case is not repeated. pass
unit test_correlate.ArtifactsOfTest.test_windows_path_detected A Windows drive path is extracted as an artifact. pass

COR-02

Correlation: Event ids are stable hashes (FNV-1a base36) identical in Python and app.js. (source: CORRELATION.md (Event ids))

Level Test Verifies Status        
unit test_correlate.BuildTest.test_finding_event_id_and_items A behaviour finding gets id f kind device detail and its source row is returned in items. pass  
unit test_correlate.BuildTest.test_gateway_events_deduped_and_windowed The same gateway event in high_severity and threats is one event; events outside the window are dropped. pass        
unit test_correlate.BuildTest.test_triage_alarm_id_uses_fnv A triage alarm gets the id alarm fnv(title who); untitled alarms are skipped. pass    
unit test_correlate.IdsAndTopicsTest.test_fnv_is_lowercase_base36 fnv() output uses only 0-9a-z. pass        
unit test_correlate.IdsAndTopicsTest.test_fnv_known_vectors fnv() is 32-bit FNV-1a rendered in base 36 (empty string = offset basis). pass        
unit test_correlate.IdsAndTopicsTest.test_fnv_matches_corr_llm_for_bmp_text correlate.fnv and corr_llm._fnv agree for text inside the Basic Multilingual Plane. pass        
unit test_correlate.IdsAndTopicsTest.test_fnv_matches_js_for_astral_characters fnv() hashes UTF-16 code units like app.js charCodeAt() even for characters outside the BMP (emoji). expected failure (known bug)        
unit test_correlate.IdsAndTopicsTest.test_gw_id_format_and_missing_fields gw_id() joins time/key/src/dst with ‘ ’ and uses ‘’ for missing fields. pass      
unit test_static_assets.FnvParityTest.test_alarm_ev_id_format_matches app.js builds alarm ids as alarm fnv(${title}|${who}), the same string correlate.build hashes. pass      
unit test_static_assets.FnvParityTest.test_constants_match_python app.js uses the FNV-1a 32-bit offset basis 0x811c9dc5 and prime 0x01000193, as correlate.fnv does. pass        
unit test_static_assets.FnvParityTest.test_fnv_function_present app.js defines fnv(str) as a one-argument function. pass        
unit test_static_assets.FnvParityTest.test_gw_id_format_matches app.js gwId() builds the same gw time key src dst id as correlate.gw_id. pass
unit test_static_assets.FnvParityTest.test_js_algorithm_shape app.js XORs each charCodeAt before multiplying, keeps 32 bits unsigned and prints base 36 (FNV-1a, not FNV-1). pass        
unit test_static_assets.FnvParityTest.test_python_matches_js_model correlate.fnv equals a Python model of the app.js function (constants parsed from app.js) for typical ids. pass        

COR-03

Correlation: Events sharing hosts/IPs/accounts/time/ATT&CK are linked when the score passes the threshold, capped per event. (source: CORRELATION.md §2)

Level Test Verifies Status
unit test_correlate.BuildTest.test_alert_targets_resolve_mac_and_host Alert targets mac: and host: resolve to internal hosts used for linking. pass
unit test_correlate.BuildTest.test_alert_window_and_latest Alerts long after the window are dropped unless latest=True; long before are always dropped. pass
unit test_correlate.BuildTest.test_chatty_low_ids_signature_skipped Low-severity IDS signatures firing more than 5000 times are left out; others are kept. pass
unit test_correlate.BuildTest.test_close_alerts_sharing_host_are_linked Two alerts on the same internal host 5 minutes apart are linked both ways with a time reason. pass
unit test_correlate.BuildTest.test_far_apart_alerts_not_linked The same host 8 hours apart scores below the threshold and is not linked. pass
unit test_correlate.BuildTest.test_gateway_dot1_address_ignored An internal address ending in .1 (gateway) is not an entity, so it does not link events. pass
unit test_correlate.BuildTest.test_gateway_events_deduped_and_windowed The same gateway event in high_severity and threats is one event; events outside the window are dropped. pass
unit test_correlate.BuildTest.test_no_shared_entity_no_link Simultaneous events with nothing in common are never linked. pass
unit test_correlate.BuildTest.test_per_type_cap_of_four At most 4 related events of one type are kept per event, best score first. pass
unit test_correlate.BuildTest.test_shared_topic_and_technique_reasons A shared problem topic and a shared ATT&CK technique each add a reason. pass
unit test_correlate.BuildTest.test_techniques_callback_used The techniques callback is consulted per source and shared IDs link events. pass
unit test_correlate.BuildTest.test_vulnerability_linked_by_host An open issue on a host links to an alert on that host with ‘vulnerability on the same host’. pass
unit test_correlate.IdsAndTopicsTest.test_every_topic_has_a_name Every topic produced by the finding and issue tables has a human-readable TOPIC_NAME. pass
unit test_correlate.IdsAndTopicsTest.test_topics_finding Finding kinds map to their problem topics. pass
unit test_correlate.IdsAndTopicsTest.test_topics_key Issue keys map by their first part; syslog keys add a syslog: topic. pass
unit test_correlate.IdsAndTopicsTest.test_ts_parsing _ts() accepts numbers and ISO strings (Z or naive = UTC) and returns None for junk. pass
unit test_llm_parsing.CorrLlmHelpersTest.test_apart_fn apart_fn(window) reports events whose time spans are more than window minutes apart; time-less events never are. pass
unit test_llm_parsing.CorrLlmHelpersTest.test_etype_and_pclass Segmentation issues/findings form the ‘seg’ class; other events use their type, split by severity. pass
unit test_llm_parsing.CorrLlmHelpersTest.test_fam_masks_port_numbers _fam() masks 4-5 digit numbers so one family covers every port, but leaves shorter numbers. pass
unit test_llm_parsing.CorrLlmHelpersTest.test_pair_key_unordered pair() gives the same key for both orders of two event ids. pass
unit test_llm_parsing.CorrLlmHelpersTest.test_pair_mode_legacy_fallbacks pair_mode() prefers the exact pair, then legacy un-split keys, then the default. pass
unit test_llm_parsing.DiverseCandidatesTest.test_cap At most cap ids; one of each type first. pass
unit test_llm_parsing.DiverseCandidatesTest.test_round_robin_across_types_then_repeats Types alternate best-first; a repeat of a condition (numbers folded) comes after every distinct one. pass
e2e test_e2e_dashboard.Api.test_correlation_contains_seeded_findings The correlation view contains an event for the seeded segmentation finding. pass

COR-04

Correlation: Host-local artifacts (processes, files, accounts) are attributed only to the host they were read on, never to peer IPs in the same event. (source: CORRELATION.md §2)

Level Test Verifies Status
unit test_correlate.ArtifactOwnerTest.test_host_finding_source_is_its_own_host The host the finding was read on is the event’s host; the other internal IP is a peer. pass
unit test_correlate.ArtifactOwnerTest.test_profile_processes_not_given_to_peer IP profiles count the process only for the host that runs it, and nothing for a multi-host side. pass
unit test_correlate.ArtifactOwnerTest.test_unresolved_host_does_not_make_peer_the_source When the finding’s host name cannot be resolved, the peer IP is still only a peer. pass

COR-05

Correlation: Notes link only to the artifact they are about: an event reviewer artifact must be of its kind and carried by an event with a single owning host; notes on another host match an event only by a shared IP or DNS name. (source: CORRELATION.md §2)

Level Test Verifies Status
unit test_modelstatus.ModelStatus.test_decision_model_health_and_cache The decision model is up/down by its /health; status() returns all four roles and caches the result. pass
unit test_modelstatus.ModelStatus.test_provider_up_warn_down_and_no_key_leak Listed model = up, missing model = warn, failing API = down; the endpoint is shown, the key never. pass
unit test_modelstatus.ModelStatus.test_unset_disabled_and_missing_provider No model chosen = off; a switched-off provider = off; a deleted provider = down. pass
unit test_notes_consolidate.Consolidate.test_other_host_notes_match_only_on_shared_ip_or_dns A note on another host about its own process does not attach to an event that runs the same process name elsewhere. pass
unit test_notes_consolidate.Consolidate.test_reviewer_artifact_owner_is_the_single_source_host art_owners: a process belongs to the event’s single source host; an artifact in no event, or an event with several pass

MIT-01

ATT&CK: Findings map to MITRE ATT&CK techniques by rule; every rule references a technique in the catalog. (source: README.md)

Level Test Verifies Status
unit test_correlate.BuildTest.test_shared_topic_and_technique_reasons A shared problem topic and a shared ATT&CK technique each add a reason. pass
unit test_correlate.BuildTest.test_techniques_callback_used The techniques callback is consulted per source and shared IDs link events. pass
unit test_mitre.CatalogTest.test_catalog_loads The bundled catalog has a version, tactics and several hundred techniques. pass
unit test_mitre.CatalogTest.test_check_detects_unknown_id check() reports a rule whose technique id is not in the catalog. pass
unit test_mitre.CatalogTest.test_check_reports_no_bad_rules check() finds no rule referencing a technique missing from the catalog. pass
unit test_mitre.CatalogTest.test_rule_shape Every rule has a known source, a compilable regex, a known relation and well-formed technique ids. pass
unit test_mitre.CatalogTest.test_rule_techniques_have_names_and_tactics Every technique a rule references resolves to a named entry with at least one tactic. pass
unit test_mitre.LookupTest.test_exposure_relation Exposure findings carry the exposure relation. pass
unit test_mitre.LookupTest.test_norm_ids _norm_ids() keeps only well-formed technique ids from a scalar or list. pass
unit test_mitre.LookupTest.test_rules_for_beacon A beacon finding maps to observed C2 techniques. pass
unit test_mitre.LookupTest.test_rules_for_case_insensitive Rule regexes match case-insensitively. pass
unit test_mitre.LookupTest.test_rules_for_first_match_only Only the first matching rule of a source is returned (rules are ordered specific to generic). pass
unit test_mitre.LookupTest.test_rules_for_source_scoped A rule for one source does not apply to another source. pass
unit test_mitre.LookupTest.test_tags_for tags_for() renders at most two techniques with names; no match gives ‘’. pass
unit test_mitre.LookupTest.test_tech_lookup tech() returns the catalog entry; sub-techniques fall back to the parent; unknown gives {}. pass
e2e test_e2e_dashboard.Api.test_mitre_view_has_catalog /api/mitre serves the ATT&CK matrix (version and tactic order). pass

AIR-01

AI: AI pipeline monitoring loads its parts separately and lists no individual link decisions: the status request carries no verdict rows but keeps the verdict totals (GET /api/aireview/verdicts is gone). (source: USER_GUIDE.md §7)

Level Test Verifies Status
unit test_aireview_paging.OverviewCore.test_decisions_list_removed The Decisions list, its endpoint and its pager are gone. pass
unit test_aireview_paging.OverviewCore.test_overview_core_has_no_rows_but_keeps_totals The core overview has no verdict rows or decision-model numbers but still counts manual verdicts. pass

AIR-02

AI: The Review log shows Correlation review busy: the summed duration of every correlation-review pass in the period divided by the period (capped at 100%), with pass count, median and longest pass, from an Elasticsearch aggregation over all passes, or from the listed entries when only the in-memory log is available. (source: AUDIT_LOG.md)

Level Test Verifies Status
unit test_reviewlog.ReviewBusyTest.test_busy_share_from_aggregation Busy % = summed pass time / period, with median and longest pass, capped at 100%. pass
unit test_reviewlog.ReviewBusyTest.test_busy_share_from_listed_rows Without the aggregation (memory ring) the listed correlation passes are summed; no passes = 0%. pass
unit test_reviewlog.ReviewBusyTest.test_view_uses_aggregation view() puts the Elasticsearch busy aggregation into the correlation summary. pass

LLM-01

AI: Model answers are parsed defensively: the first JSON object is used and unknown verdicts/priorities fall back to safe values. (source: USER_GUIDE.md §7)

Level Test Verifies Status
unit test_llm_parsing.CorrLlmHelpersTest.test_clean_artifacts clean_artifacts() maps kind aliases, drops invalid entries and duplicates, and caps at 12. pass
unit test_llm_parsing.CorrLlmHelpersTest.test_glob _glob(): * and ? are wildcards over the whole text, [ ] are literal, plain patterns are substring/exact. pass
unit test_llm_parsing.CorrLlmHelpersTest.test_num_clamps _num() clamps to the range and returns 0 for non-numbers. pass
unit test_llm_parsing.CorrLlmHelpersTest.test_rule_match_and_suppressed A rule matches only when all its fields match; suppressed() honours the rule scope. pass
unit test_llm_parsing.CorrLlmHelpersTest.test_sev_of sev_of() normalises severity words to low/medium/high; unknown or missing is low. pass
unit test_llm_parsing.FirstJsonTest.test_braces_inside_strings Braces inside JSON strings do not end the object early. pass
unit test_llm_parsing.FirstJsonTest.test_code_fence_and_prose Prose and code fences around the object are ignored. pass
unit test_llm_parsing.FirstJsonTest.test_nested_object Nested objects are returned whole. pass
unit test_llm_parsing.FirstJsonTest.test_no_json_raises A reply without any ‘{‘ raises ValueError. pass
unit test_llm_parsing.FirstJsonTest.test_plain_object A bare JSON object is parsed as-is. pass
unit test_llm_parsing.FirstJsonTest.test_second_object_ignored When a reply holds two objects only the first is used. pass
unit test_llm_parsing.FirstJsonTest.test_truncated_json_raises A truncated object raises a ValueError (JSONDecodeError) instead of returning partial data. pass
unit test_llm_parsing.ProviderHelpersTest.test_an_messages Anthropic conversion merges consecutive tool results into one user turn and marks the last block for caching. pass
unit test_llm_parsing.ProviderHelpersTest.test_base_url _base_url() defaults per type and allows http only for loopback/private hosts, never credentials/query. pass
unit test_llm_parsing.ProviderHelpersTest.test_headers_and_models_path Anthropic gets x-api-key and a version header; OpenAI-compatible gets a Bearer token. pass
unit test_llm_parsing.ProviderHelpersTest.test_int _int() returns the default for empty input and validates whole numbers within bounds. pass
unit test_llm_parsing.ProviderHelpersTest.test_is_custom_and_known ‘api:' providers are custom; 'lmstudio' is known but not custom; other values are neither. pass
unit test_llm_parsing.ProviderHelpersTest.test_mask _mask() shows only the last 4 chars of a long key, ‘set’ for a short one and ‘’ for none. pass
unit test_llm_parsing.ProviderHelpersTest.test_models_parsing _models() reads one model per line with optional prices and de-duplicates ids. pass
unit test_llm_parsing.ProviderHelpersTest.test_models_rejects_bad_input _models() rejects odd characters, a single price, out-of-range or non-numeric prices and too many models. pass
unit test_llm_parsing.ProviderHelpersTest.test_oa_messages Neutral messages convert to OpenAI chat format, including tool calls and results. pass
unit test_llm_parsing.ProviderHelpersTest.test_price_and_cost price() reads admin prices (cached-input defaults to input), local is free, unknown is None; cost() uses them. pass
unit test_llm_parsing.ProviderHelpersTest.test_rs_input Responses-API input keeps raw assistant items and converts tool calls/results. pass
unit test_llm_parsing.ProviderHelpersTest.test_scrub _scrub() removes the given key and anything that looks like an sk- key from error text. pass
unit test_llm_parsing.ProviderHelpersTest.test_skip_filter Non-chat models (embeddings, audio, images) are filtered; chat models pass. pass

LLM-02

AI: The dashboard runs fully with the local LLM switched off (NETMON_LLM=off). (source: SETUP.md §6)

Level Test Verifies Status
e2e test_e2e_dashboard.Api.test_aireview_reports_llm_disabled With NETMON_LLM=off the AI review status says the event reviewer is disabled, and nothing fails. pass
e2e test_e2e_dashboard.Api.test_every_page_api_answers_200_json Every data API behind the dashboard pages answers 200 with JSON while the LLM is off. pass
e2e test_e2e_pipeline.ServerLifecycle.test_server_runs_with_llm_off With NETMON_LLM=off the server starts, says the event reviewer is off, and makes no LLM calls. pass

LLM-03

AI: With the decision model on, clef decides every candidate link (yes/no related?) and nothing else; once no link is undecided the selected event reviewer makes one call per event with its related events and notes, labels it suspicious / benign / expected with a confidence and writes an analyst write-up (Why it fired, with what it actually was, then Verdict) and the link artifacts, with no per-link reason - it never decides a link. A failed answer stores nothing and is retried at most REVIEW_RETRIES times per signature. (source: CORRELATION.md)

Level Test Verifies Status
unit test_clef_apikey.ClefApiKey.test_empty_keeps_and_clear_removes REQ: LLM-03 pass
unit test_clef_apikey.ClefApiKey.test_header_injection_rejected REQ: LLM-03 pass
unit test_clef_apikey.ClefApiKey.test_key_sent_and_masked REQ: LLM-03 pass
unit test_clef_apikey.ClefApiKey.test_no_key_no_header REQ: LLM-03 pass
unit test_clef_apikey.ClefApiKey.test_scrub REQ: LLM-03 pass
unit test_clef_stage.ClefServerSettingsTest.test_kubernetes_backend The Kubernetes backend (default) is reached on loopback; only known backends are accepted; start/stop/restart pass
unit test_clef_stage.ClefServerSettingsTest.test_sglang_health_and_model_field SGLang (Kubernetes backend) answers /health with an empty 200 - that counts as healthy - and needs the served pass
unit test_clef_stage.ClefServerSettingsTest.test_validate Server settings accept only listed model files / runtimes and safe numbers; batch must cover a whole input. pass
unit test_clef_stage.ClefStageTest.test_config_is_loopback_only A non-loopback URL in the settings is ignored (event data never leaves the host). pass
unit test_clef_stage.ClefStageTest.test_decision_model_decides_every_link Only related questions are asked; the decision model’s answer is the verdict for every link, yes and no. pass
unit test_clef_stage.ClefStageTest.test_determination_inputs_recorded Each determination records the events passed in: the event reviewer gets the related ones (with link pass
unit test_clef_stage.ClefStageTest.test_event_pass_one_call_with_all_related_events After every link is decided the event reviewer gets ONE call per event with all its related events, LABELS the pass
unit test_clef_stage.ClefStageTest.test_event_without_related_links_still_labelled An event whose every link the decision model rejected is still labelled by the event reviewer, which is told the pass
unit test_clef_stage.ClefStageTest.test_rereview_clears_decision Asking again removes the decision-model answer so the whole chain runs again. pass
e2e test_e2e_access_control.UserScope.test_user_sees_event_reviewer_paragraph A User’s alert feed carries the event reviewer’s paragraph (label, reason, cited pages) for their own alerts only, pass

LLM-04

AI: Tokens of the decision model and event reviewer are summed per hour and step; the monitoring chart adds an estimated cost only for models with prices set. (source: USER_GUIDE.md §7)

Level Test Verifies Status
unit test_aiusage.AiUsage.test_bad_input_never_raises Accounting never breaks a model call. REQ: LLM-04 pass
unit test_aiusage.AiUsage.test_sums_per_step_and_prices Calls add up per step; purposes map to steps; unknown purposes are ignored; cost only when priced. pass

LLM-05

AI: GPU use of the local models is sampled per process (SGLang = decision model, vLLM = event reviewer, else other) and averaged per minute for the monitoring chart. (source: USER_GUIDE.md §7)

Level Test Verifies Status
unit test_gpustat.GpuStat.test_minute_average_and_series A minute averages its samples per part; series() buckets and averages the minutes. REQ: LLM-05 pass
unit test_gpustat.GpuStat.test_parse_and_attribute pmon rows are attributed by command line; headers and ‘-‘ values are handled. REQ: LLM-05 pass

LLM-06

AI: The default decision model is syn-correlation-flash on a loopback-only OpenAI-compatible server: one chat call per question with the trained State / Question / A-B prompt, one token at temperature 0, p(yes) = softmax of the B vs A logprobs; a reply without logprobs raises and stores no verdict. (source: CORRELATION.md §3)

Level Test Verifies Status
unit test_syn_flash.SynCorrelationFlash.test_default_server_is_loopback_flash With nothing configured the decision model is syn-correlation-flash on a loopback port; non-loopback URLs never pass
unit test_syn_flash.SynCorrelationFlash.test_missing_answer_token_and_bad_reply A missing option counts as very unlikely; a reply without logprobs raises instead of storing a verdict. pass
unit test_syn_flash.SynCorrelationFlash.test_probability_from_ab_logprobs p(yes) = softmax of the B vs A logprobs, one chat call per question with the trained prompt, 1 token, temperature 0. pass

LLM-07

AI: The event reviewer prompt’s no-note rule: attack-like activity that nothing explains (scanning, password guessing, exploit attempts, unexpected privilege or credential use, web shells, exfiltration) is suspicious even without a note; benign / expected best guesses (confidence at most 0.6) are only for odd-but-harmless activity. (source: CORRELATION.md §3)

Level Test Verifies Status
unit test_syn_flash.NoNoteRule.test_unexplained_attack_activity_is_suspicious The event reviewer prompt calls unexplained attack-like activity suspicious and never lets a missing note make pass

LLM-08

AI: Event reviewer and chat Elasticsearch look-ups are structured requests (never DSL) built and bounded by es_context: exact / any-of / excluded values, numeric and IP ranges, prefixes, exists / missing, one- or two-level top values (common or rare), distinct / sum / avg / min / max metrics and time histograms with a regularity summary; at most 6 filters per kind, 20 top values, 300 histogram buckets, 7 days, 20 s. (source: CORRELATION.md (Elasticsearch look-ups))

Level Test Verifies Status
unit test_es_query.Aggregations.test_histogram_regularity REQ: LLM-08 pass
unit test_es_query.Aggregations.test_metric_field_limit REQ: LLM-08 pass
unit test_es_query.Aggregations.test_run_shapes_results REQ: LLM-08 pass
unit test_es_query.Aggregations.test_two_level_group_with_metrics_and_rare REQ: LLM-08 pass
unit test_es_query.Filters.test_any_exclude_range_prefix_exists REQ: LLM-08 pass
unit test_es_query.Filters.test_bounds_refused REQ: LLM-08 pass
unit test_es_query.Filters.test_histogram_bucket_cap REQ: LLM-08 pass
unit test_es_query.Filters.test_old_requests_unchanged REQ: LLM-08 pass
unit test_es_query.PromptAndLinks.test_kibana_link REQ: LLM-08 pass

LLM-09

AI: Field names in a look-up are checked against the index mapping (field_caps, cached 30 min): an obvious near-miss is corrected and reported, an unknown field is refused with suggestions, free-text fields group by their .keyword twin, ranges and sums need number / IP / date fields; without a mapping only the shape is checked. _(source: CORRELATION.md (Elasticsearch look-ups))

Level Test Verifies Status
unit test_es_query.FieldChecks.test_caps_cached REQ: LLM-09 pass
unit test_es_query.FieldChecks.test_near_miss_corrected REQ: LLM-09 pass
unit test_es_query.FieldChecks.test_no_mapping_shape_checks_only REQ: LLM-09 pass
unit test_es_query.FieldChecks.test_types REQ: LLM-09 pass
unit test_es_query.FieldChecks.test_unknown_refused_with_suggestion REQ: LLM-09 pass
unit test_es_query.PromptAndLinks.test_fix_query_new_filters REQ: LLM-09 pass

LLM-10

AI: The event reviewer’s look-up instructions include an investigation playbook (scan, beacon, exfiltration, brute force, lateral movement, rare / first seen, DNS tunnelling, who else) mapped to the search features, and the JSON schema offers every feature. (source: CORRELATION.md (Elasticsearch look-ups))

Level Test Verifies Status
unit test_es_query.PromptAndLinks.test_prompt_and_schema REQ: LLM-10 pass

LLM-11

AI: An admin can choose a dedicated Elasticsearch planner model (AI pipeline configuration > Models; none = the event reviewer plans): it writes the look-ups-first searches with a plain-English reason each (shown as ‘Why:’ under every search on the event), web look-ups stay with the reviewer, and a failed planner call falls back to the reviewer. (source: CORRELATION.md (Elasticsearch look-ups))

Level Test Verifies Status
unit test_es_planner.Findings.test_summary_attached_to_search REQ: LLM-11 - the reviewer summarises what each search found; it rides on the query descriptor. pass
unit test_es_planner.PlanStep.test_fallback_to_reviewer REQ: LLM-11 pass
unit test_es_planner.PlanStep.test_no_planner_reviewer_plans REQ: LLM-11 pass
unit test_es_planner.PlanStep.test_planner_plans_searches REQ: LLM-11 pass
unit test_es_planner.Setting.test_default_none REQ: LLM-11 pass
unit test_es_planner.Setting.test_set_and_clear REQ: LLM-11 pass
unit test_es_planner.Ui.test_setting_and_reason_shown REQ: LLM-11 pass

LLM-12

AI: Admins have an Elasticsearch planning review page (/esqreview): events with the searches the teacher models planned and their Elasticsearch results, where the admin marks each search good / bad, runs and adds searches of his own (host broker, read-only, at the event’s time) and notes; stored in state/esq_review.db (0600), admin-only GET and POST. (source: CORRELATION.md (Elasticsearch look-ups))

Level Test Verifies Status
unit test_esq_review.Routes.test_admin_only REQ: LLM-12 pass
unit test_esq_review.Store.test_accept_all REQ: LLM-12 pass
unit test_esq_review.Store.test_list_and_item REQ: LLM-12 pass
unit test_esq_review.Store.test_run_uses_broker_at_event_time REQ: LLM-12 pass
unit test_esq_review.Store.test_save_validates REQ: LLM-12 pass
unit test_esq_review.Translate.test_translate REQ: LLM-12 pass
unit test_esq_review.Ui.test_autosave REQ: LLM-12 pass

LLM-13

AI: For an event that involves an internal system, every review automatically runs standard “who is on this system” Elasticsearch searches, each with a plain-English reason and not counted against the planner’s own search budget: admin connections (ssh, telnet, rdp, vnc, winrm) going to the system and from where, accepted ssh logins (user and source address), session opened / closed per user, and the people’s accounts running processes in the endpoint logs. Events with no internal system get none. (source: CORRELATION.md (Elasticsearch look-ups))

Level Test Verifies Status
unit test_login_lookups.Lookups.test_added_to_review_without_using_planner_budget REQ: LLM-13 pass
unit test_login_lookups.Lookups.test_host_event REQ: LLM-13 pass
unit test_login_lookups.Lookups.test_no_internal_system REQ: LLM-13 pass
unit test_login_lookups.Lookups.test_unknown_host_name_only_network_search REQ: LLM-13 pass

CFG-06

Configuration: Suppress rules (signature, IDS and segmentation) are listed and removed on Settings → Configuration; there is no Checked page. (source: USER_GUIDE.md §4 / CORRELATION.md)

Level Test Verifies Status
unit test_static_assets.HtmlReferencesTest.test_suppress_rules_on_configuration_and_no_checked_page Suppress rules are listed on Settings -> Configuration; the Checked page and its nav entry are gone. pass

CFG-01

Configuration: Site settings fall back to safe defaults; the browser receives only the public subset. (source: SETUP.md §2)

Level Test Verifies Status
unit test_config.TestResearchCfg.test_existing_deployment_keeps_web_research Settings saved before web_research existed read back with web research on. pass
unit test_config.TestResearchCfg.test_fresh_defaults_have_no_schedule A new deployment has web access off, no model and no schedule / run-request settings at all. pass
unit test_config.TestResearchCfg.test_get_clamps_invalid_stored_limits Stored numbers outside LIMITS or of the wrong type read back as the defaults. pass
unit test_config.TestResearchCfg.test_put_check_model A provider/model change is validated by check_model; failing validation raises and saves nothing. pass
unit test_config.TestResearchCfg.test_put_validates_and_coerces put() coerces numbers and booleans, truncates provider/model, ignores unknown keys and records the author. pass
unit test_config.TestResearchCfg.test_saving_on_new_install_keeps_web_off Saving another research setting on a new install does not switch web access on. pass
unit test_config.TestReviewCfg.test_fresh_defaults A new deployment gets every category in test mode, 240 min, enabled, no severities. pass
unit test_config.TestReviewCfg.test_legacy_severities_and_seg_split A legacy severities list maps to queue/skip; an old single ‘seg’ mode is applied to all three seg categories. pass
unit test_config.TestReviewCfg.test_migrates_from_combined_research_record Settings saved before the review / research split (one research_job record) are read: schedule, on/off and pass
unit test_config.TestReviewCfg.test_put_pins_modes The first put() pins the effective modes so later default changes don’t alter the deployment. pass
unit test_config.TestReviewCfg.test_put_validates put() coerces, range-checks the interval, merges valid modes, maps “research” to “queue” and refuses all-skip. pass
unit test_config.TestSiteCfg.test_cache_ttl load() caches for a few seconds and picks up a changed site document after the TTL. pass
unit test_config.TestSiteCfg.test_defaults_without_site_config With no site document every DEFAULTS key is returned with its default value. pass
unit test_config.TestSiteCfg.test_get_default_for_empty_values get() returns the caller default for missing/empty values (‘’ [] {} None) but keeps falsy non-empty values. pass
unit test_config.TestSiteCfg.test_is_internal is_internal() matches the configured internal prefixes and is False for empty values. pass
unit test_config.TestSiteCfg.test_overrides_merge_and_private_keys_dropped Stored site values override defaults, unknown keys pass through and ‘_‘-prefixed keys are dropped. pass
unit test_config.TestSiteCfg.test_public_subset public() exposes only the browser-safe keys, never secrets like es_url or sensitive_terms. pass
unit test_config.TestSiteCfg.test_store_failure_falls_back_to_defaults If reading the store raises, load() falls back to DEFAULTS instead of failing. pass
e2e test_e2e_access_control.UserScope.test_user_site_config_reduced The site config a User receives has the site name but no IP hints, prefixes or admin workstations. pass

EVW-01

Event window: One event window setting (More > Settings > Site > event_window_minutes, SQLite cfg table; whole minutes 2-120, default 5) is read live by the correlation, the review job and the event reviewer without a restart; invalid values are refused and the retired hours review lookback is migrated once (hours x 60). (source: docs/CORRELATION.md)

Level Test Verifies Status
unit test_event_window.TestEventWindowSetting.test_default_and_range Without a stored value the event window is 5 min (range 2-120) and lives in the cfg table’s site document. pass
unit test_event_window.TestEventWindowSetting.test_for_run The 05 UTC daily run stays 24 h; other runs use the event window in hours. pass
unit test_event_window.TestEventWindowSetting.test_live_pickup A change saved in the cfg table is seen by minutes(), the correlation and the event reviewer without a restart. pass
unit test_event_window.TestEventWindowSetting.test_migrates_old_hours_lookback The retired review lookback (store meta, hours) is copied once into the event window (hours x 60, clamped). pass
unit test_event_window.TestEventWindowSetting.test_put_rejects_invalid put() refuses values outside 2-120, fractions, booleans and non-numbers and keeps the saved value. pass
unit test_settings_ai.ReviewLimits.test_defaults Without settings nothing is capped, the window is the default event window (5 min), verdicts kept forever and classification off. pass
e2e test_e2e_settings.ReviewJob.test_lookback_saved The event window is saved under Settings > Site, shown on the AI pipeline page and picked up live; out-of-range or non-numbers are refused. pass

EVW-02

Event window: Two events only become a candidate link when they happened at most one event window apart; events up to one window plus ingest slack outside the snapshot still count. (source: docs/CORRELATION.md)

Level Test Verifies Status
unit test_event_window.TestCorrelationWindow.test_default_follows_setting Without an explicit window build() uses the live setting. pass
unit test_event_window.TestCorrelationWindow.test_links_only_within_window Events 5 min apart link with a 10-min window; 20 min apart they do not, unless the window is widened. pass
unit test_settings_ai.ReviewLimits.test_window_range_and_effect The time window is the event window (Settings > Site, read live): links whose events are further apart are skipped; pass

EVW-03

Event window: Review job coverage has no gaps: each run collects everything that arrived since the previous run’s end minus one event window, and the job runs at least once per window (never under 5 minutes). (source: docs/CORRELATION.md)

Level Test Verifies Status
unit test_event_window.TestCoverage.test_no_gaps_when_interval_exceeds_window With a 10-min window and runs 15 min apart, each run starts one window before the previous run’s end. pass
unit test_event_window.TestEventWindowSetting.test_review_interval_capped_at_window The review job runs at least once per event window (never under its 5-minute floor); the stored interval is kept. pass

EVW-04

Event window: The event reviewer labels a correlated group (connected decided-related links) with ONE call once its newest event is one window plus ingest slack old and none of its links is undecided, storing the label on every member; a labelled group is reviewed again only after it gains a member and settles again. (source: docs/CORRELATION.md)

Level Test Verifies Status
unit test_event_window.TestGroupReview.test_new_member_rereviewed_once_after_settling A labelled group that gains a member keeps its label, shows Pending review and is reviewed once more after it settles. pass
unit test_event_window.TestGroupReview.test_undecided_link_keeps_group_pending A group with an undecided link is not reviewed even after its settle time, and says links are deciding. pass
unit test_event_window.TestGroupReview.test_waits_for_settle_then_one_call_for_the_group A group is labelled once, after its newest event is one window + ingest slack old: one call, every member labelled. pass

EVW-06

Event window: The Elasticsearch pull (watcher) runs once per event window, following the setting live, with bookmark windows that touch end to end; a group only settles once a pull has committed arrivals past its newest event plus one window. (source: docs/CORRELATION.md)

Level Test Verifies Status
unit test_event_window.TestGroupReview.test_waits_for_a_pull_after_newest_plus_window A group whose settle time passed is still pending until an Elasticsearch pull committed arrivals past newest + one window. pass
unit test_event_window.TestWatchPeriod.test_watch_pulls_touch_end_to_end Watcher arrival windows read from the bookmark: consecutive pulls have no gap and no overlap. pass
unit test_event_window.TestWatchPeriod.test_watch_runs_once_per_window With a 10-min window the watcher starts once per 10-min slot; at 5 min it follows at once. pass
unit test_scheduler.SchedulerStatusTest.test_status_watch_next_quarter_hour The next watcher run is the next event-window boundary (10 min by default), within one window from now. pass

EVW-07

Event window: A late Elasticsearch arrival is never dropped (arrival-time pull from the bookmark) and keeps its real event time (alerts.event_ts) for correlation and settling; arriving after its group was labelled it still links within the window by event time and causes exactly one re-review. (source: docs/CORRELATION.md)

Level Test Verifies Status
unit test_event_window.TestGroupReview.test_late_arrival_after_review_one_rereview An event that reaches Elasticsearch long after its group was labelled still links by event time and causes exactly one re-review. pass
unit test_event_window.TestLateArrivalStore.test_event_time_kept_and_used A watcher alert stored an hour after it happened keeps event_ts, and correlate.build places and links it at that time. pass

EVW-08

Event window: Every open event gets an event reviewer label even after its review run stopped being the newest and when it has no link (a group of its own); until then it shows Pending review (with its settle time, or queued), and an open event that will never be labelled shows ‘Not reviewed: ' - never a blank. _(source: docs/CORRELATION.md)_

Level Test Verifies Status
unit test_open_review_coverage.TestOpenEventsCoverage.test_event_of_a_pruned_run_is_rebuilt_from_the_event_store An open event whose review run’s documents were pruned is rebuilt from the events table and labelled. pass
unit test_open_review_coverage.TestOpenEventsCoverage.test_never_reviewed_open_events_say_why_and_new_ones_are_queued An open event the reviewer will never label shows ‘Not reviewed: ' (cleared by a person, review run pass
unit test_open_review_coverage.TestOpenEventsCoverage.test_open_event_of_an_older_run_gets_labelled An open event whose review run is no longer the newest (and a linkless one) shows Pending review with its pass

EVW-09

Event window: The stream (stream.py) tails Suricata alerts, watched syslog patterns and host alerts (Elastic Defend + Security Onion detections) every few seconds by arrival time with its own bookmark: windows touch end to end, a failed check keeps the bookmark, alerts carry the watcher’s keys (one 12 h mute for both) and are stored held with source stream. (source: docs/CORRELATION.md)

Level Test Verifies Status    
unit test_stream.StreamTick.test_failed_check_keeps_bookmark An Elasticsearch error in any check keeps the bookmark, so the next tick re-reads the same span. pass    
unit test_stream.StreamTick.test_syslog_one_search_for_all_patterns Watched syslog patterns are read in ONE search (filters aggregation) and become the watcher’s host syslog keys. pass
unit test_stream.StreamTick.test_ticks_touch_end_to_end_and_store_held_alerts Each tick reads (bookmark, now - margin] on event.ingested; alerts are stored held, source stream, with the event time. pass    
unit test_stream.StreamTick.test_watcher_twin_is_muted An IDS alert the watcher already raised (same key) is not stored a second time by the stream. pass    

EVW-10

Event window: A group made only of stream-checked events settles on the stream’s bookmark, so the event reviewer labels it within about a minute of its newest event being one event window old (settle = one window, no extra fixed slack); the reviewer and the event store wake on a new alert or a reached settle time instead of waiting for their timers. (source: docs/CORRELATION.md)

Level Test Verifies Status
unit test_stream.StreamSettle.test_idle_wakes_on_new_alert The reviewer’s idle wait ends within one step when a new alert arrives (not after the full minute). pass
unit test_stream.StreamSettle.test_mixed_group_waits_for_the_watcher A group with an event the stream does not check (e.g. a new device) still waits for the watcher’s pull. pass
unit test_stream.StreamSettle.test_stream_only_group_settles_on_stream_bookmark A group of stream events is labelled once newest + window has passed and the STREAM bookmark covers it, while the pass

EVW-11

Event window: A correlated group holds at most one listed (threat-intel) domain: related events about two different listed domains are reviewed, researched and labelled as separate groups, and events once labelled together with another domain are reviewed again apart. (source: docs/CORRELATION.md)

Level Test Verifies Status
unit test_event_window.TestGroupReview.test_listed_domains_reviewed_apart Related events about two different listed domains are never one group: each domain is reviewed on its own, and pass

EVW-05

Event window: Events whose group has not settled show a filterable ‘Pending review’ badge with the time it settles (never blank); a high-severity event with no label gets a provisional label at once; the AI review page counts events pending review and the settle-to-label delay. (source: docs/USER_GUIDE.md)

Level Test Verifies Status
unit test_event_window.TestGroupReview.test_alert_verdict_pending Pages show Pending review (filterable) for an event whose group has not settled, never a blank or Not reviewed. pass
unit test_event_window.TestGroupReview.test_high_severity_fast_path A high-severity event with no label gets a provisional label at once; its group review follows the settle. pass

PSH-01

Phone alerts: With ‘Wait for AI verdict before phone alerts’ on, an urgent / investigate alarm is not pushed while its correlated group is Pending review (or only provisionally labelled); it stays on the dashboard and is pushed once the group verdict is in. (source: docs/USER_GUIDE.md)

Level Test Verifies Status
unit test_push_gate.TestPushGate.test_held_until_verdict An urgent alarm whose group is still Pending review is held (not pushed, still unpushed and in the feed); pass
unit test_push_gate.TestPushGate.test_provisional_label_is_held A provisional single-event (fast) label does not release the push; the group review does. pass

PSH-02

Phone alerts: An alarm whose verdict is expected / benign and that passes every auto-close guard rail (the same autoclose.guard_rails function) is never pushed to phones; it stays on the dashboard and is logged as ‘push suppressed by AI verdict’ (push_gate, verdict pop-up). (source: docs/USER_GUIDE.md)

Level Test Verifies Status
unit test_push_gate.TestPushCheckUsesGuardRails.test_push_check_calls_autoclose_guard_rails push_check applies autoclose.guard_rails (the same function auto-close’s run() uses), so a guard that holds pass
unit test_push_gate.TestPushGate.test_expected_and_guardrails_no_push Expected / benign with every auto-close guard rail passed: no phone push, the alarm stays on the dashboard pass
unit test_push_gate.TestPushGate.test_withdrawn_alarm_judged_on_stored_copy An alarm the review withdraws while held (group no longer suspicious) is still judged: expected + guard pass

PSH-03

Phone alerts: An expected / benign alarm that a guard rail holds back (protected category, held host, low confidence, stale) is pushed, naming the guard rail - also when the review withdrew the alarm while it was held. (source: docs/USER_GUIDE.md)

Level Test Verifies Status
unit test_push_gate.TestPushCheckUsesGuardRails.test_push_check_calls_autoclose_guard_rails push_check applies autoclose.guard_rails (the same function auto-close’s run() uses), so a guard that holds pass
unit test_push_gate.TestPushGate.test_expected_failing_guardrail_pushes Expected but held back by a guard rail (protected category, held host, low confidence): pushed, with the guard. pass
unit test_push_gate.TestPushGate.test_withdrawn_alarm_judged_on_stored_copy An alarm the review withdraws while held (group no longer suspicious) is still judged: expected + guard pass

PSH-04

Phone alerts: Suspicious, malicious and unknown verdicts always push, and the notification carries the verdict, confidence, the reviewer’s one-line reason and the group size. (source: docs/USER_GUIDE.md)

Level Test Verifies Status
unit test_push_gate.TestPushGate.test_malicious_pushes_with_context Suspicious / malicious / unknown verdicts always push, carrying verdict, one-line reason and group size. pass

PSH-05

Phone alerts: Fail-safe: no verdict within push_hold_max_minutes (0 = event window + 5 min), the event reviewer off or erroring, a ‘Not reviewed’ event, or a gate error push the alarm anyway, marked ‘AI review unavailable’; an urgent alarm is never dropped silently. (source: docs/USER_GUIDE.md)

Level Test Verifies Status
unit test_push_gate.TestPushGate.test_reviewer_down_pushes Reviewer off, reviewer erroring, ‘Not reviewed’, or the gate itself failing: pushed at once, marked pass
unit test_push_gate.TestPushGate.test_timeout_pushes_anyway No verdict within push_hold_max_minutes (0 = event window + 5): pushed marked ‘AI review unavailable’. pass

PSH-06

Phone alerts: push_wait_for_ai (default on) and push_hold_max_minutes live in the cfg table (More > Settings > Site), are validated, and with the switch off every alarm is pushed at once as before. (source: docs/USER_GUIDE.md)

Level Test Verifies Status
unit test_push_gate.TestPushGate.test_settings_validated Both settings live in the cfg table (site doc), show with defaults, and bad values are refused. pass
unit test_push_gate.TestPushGate.test_switch_off_keeps_old_behaviour push_wait_for_ai off: every alarm is pushed at once, without AI context, as before the gate. pass

CFG-05

Configuration: The watcher and the review job select events by arrival time (event.ingested; @timestamp for documents without it) with a per-job bookmark, so events that reach Elasticsearch late are checked when they arrive: watcher windows touch end to end, the bookmark moves only after a run without failed checks, dashboard time ranges stay on event time, and per-source ingest lag is measured. (source: SETUP.md (Collection windows))

Level Test Verifies Status
unit test_alerts_page.WatcherRulesTest.test_arrival_bookmark_moves_only_after_clean_run The watcher selects by event.ingested and commits its bookmark only when no check failed. pass
unit test_alerts_page.WatcherRulesTest.test_late_ids_alert_says_when_it_happened An IDS alert whose first event arrived >30 min late names when it happened and how late it arrived. pass
unit test_config.TestArrivalWindow.test_catchup_capped A bookmark older than MAX_CATCHUP_H restarts at now - MAX_CATCHUP_H. pass
unit test_config.TestArrivalWindow.test_first_run_uses_nominal_span_ending_before_now First run: (now - margin - N min, now - margin] on event.ingested; docs without it fall back to @timestamp. pass
unit test_config.TestArrivalWindow.test_lag_stats_shape_and_errors lag_stats reports n / late / percentiles per source and a per-source error instead of raising. pass
unit test_config.TestArrivalWindow.test_manual_run_never_commits job None (manual collect.py N) neither reads nor writes a bookmark. pass
unit test_config.TestArrivalWindow.test_other_spans_cover_the_job_window A since() with another span never starts after the job window (e.g. the 60-min DNS-tunnel check). pass
unit test_config.TestArrivalWindow.test_review_overlap_keeps_lookback overlap=True (review job): from = min(bookmark - back, to - lookback), so its usual lookback overlap stays. pass
unit test_config.TestArrivalWindow.test_time_range_stays_event_time A dashboard time range (NETMON_WINDOW_END) always selects by @timestamp, even in arrival mode. pass
unit test_config.TestArrivalWindow.test_uncommitted_window_is_covered_again Without commit (a failed run) the next window starts at the old bookmark again. pass
unit test_config.TestArrivalWindow.test_windows_touch_end_to_end After commit the next watcher window starts exactly where the last one ended (no gap, no overlap), pass
unit test_issues.RawChecksTests.test_ingest_lag_levels Log pipeline backlog: none at p99 <= 30 min, medium above, high above 4 h; evidence names each late source. pass

CFG-03

Configuration: Collection windows end ‘now’ or at NETMON_WINDOW_END and produce Elasticsearch range filters. (source: SETUP.md (Time ranges))

Level Test Verifies Status
unit test_config.TestWindow.test_empty_env_means_now An empty NETMON_WINDOW_END is treated as ‘now’. pass
unit test_config.TestWindow.test_fixed_end_window With NETMON_WINDOW_END set the filter covers [end - N m, end] and end_dt/end_ms parse the Z timestamp. pass
unit test_config.TestWindow.test_minutes_rounding_and_floor since() rounds fractional minutes and never goes below 1 minute; since_h converts hours. pass
unit test_config.TestWindow.test_now_window Without NETMON_WINDOW_END the window ends now and the filter is relative to now. pass

OCTI-01

OpenCTI: OpenCTI settings are validated (URL, scores 0-100, confidence 0.5-1, known severity, PEM CA), the API token is write-only (masked in the public view) and nothing runs unless enabled with a URL and token. (source: SETUP.md (OpenCTI))

Level Test Verifies Status
unit test_opencti.TestSettings.test_not_usable_without_enable_or_token Disabled, or without a token, the integration is not usable and run() does nothing. pass
unit test_opencti.TestSettings.test_validation_and_masking Bad scores, confidence, severity, URL and CA are rejected; the token is masked and kept when left blank. pass

OCTI-02

OpenCTI: Pulled indicators become local feed lists: only single-value IP / domain / hostname STIX patterns, never private addresses; revoked, expired or below-minimum indicators are dropped; at or above the high score they are SERIOUS. (source: SETUP.md (OpenCTI))

Level Test Verifies Status
unit test_feeds_cfg.TestFeedConfig.test_feed_card_breakdown_via_opencti The Feeds card shows indicators per type for each feed; a built-in feed OpenCTI covers is counted from the pass
unit test_feeds_cfg.TestFeedConfig.test_trend_counts_malicious_signatures The threat-intel trend counts malware-category IDS signatures per snapshot (guards tintel’s module constants). pass
unit test_opencti.TestIndicators.test_list_names_are_bound_not_spliced Reading or clearing named lists binds the names as data (json_each), so a hostile name cannot change the SQL. pass
unit test_opencti.TestIndicators.test_lists_live_in_sqlite The OpenCTI lists are rows in the store (table ti_local), never files; a pull drops pre-SQLite files. pass
unit test_opencti.TestIndicators.test_merge_and_feed_files Revoked, expired and low-score indicators drop out; high scores land in the SERIOUS lists that load_feeds matches. pass
unit test_opencti.TestIndicators.test_parse_pattern Only single-value IP / domain / hostname patterns are used; private addresses and compound patterns are not. pass
unit test_opencti.TestIndicators.test_pull_full_then_incremental The first pull is a full one filtered server-side; the next (after an hour) only asks for updated indicators. pass
unit test_opencti.TestIpOnlyHitsAreWeak.test_client_posts_json_body The GraphQL request carries the JSON query as its body (not the headers). pass

OCTI-03

OpenCTI: Switching the integration off removes the local OpenCTI lists so stale indicators stop matching. (source: SETUP.md (OpenCTI))

Level Test Verifies Status
unit test_opencti.TestIndicators.test_disabled_removes_lists Switched off, one run removes the local lists. pass

OCTI-04

OpenCTI: Matches on OpenCTI lists are reported as one sighting per indicator by Syn’s identity (created once, then its count and last_seen are bumped); a failure never stops the watcher. (source: SETUP.md (OpenCTI))

Level Test Verifies Status
unit test_opencti.TestReporting.test_sighting_failure_never_raises An unreachable OpenCTI is recorded as last_error; the watcher carries on. pass
unit test_opencti.TestReporting.test_sightings_create_then_bump A new hit creates a sighting; an existing one has its count added and last_seen moved. Non-OpenCTI hits are ignored. pass

OCTI-05

OpenCTI: Only open events labelled suspicious at or above the configured severity and confidence become incidents, once per logical event; only external IPs and public domains are attached as observables. (source: SETUP.md (OpenCTI))

Level Test Verifies Status
unit test_opencti.TestReporting.test_incidents_filter_and_observables Only suspicious, confident, severe enough open events become incidents, once; only public IPs/domains are attached. pass

OCTI-06

OpenCTI: File-hash and file-name indicators and malware-sample hashes are pulled into local lists (generic file names and junk hashes are skipped); every hash entry is SERIOUS and matching is case-insensitive. (source: SETUP.md (OpenCTI))

Level Test Verifies Status
unit test_opencti.TestIndicators.test_hashes_names_and_samples File-hash and file-name patterns are pulled; generic names and junk hashes are not; malware samples add every pass

OCTI-07

OpenCTI: The event reviewer gets the threat-intel hits on an event’s IPs, domains, file names and hashes (with OpenCTI score and labels); a new hit changes the review signature so the event is reviewed again. (source: SETUP.md (OpenCTI))

Level Test Verifies Status
unit test_opencti.TestIndicators.test_reviewer_hits intelmatch finds hits on an event’s IPs, domains, file names and hashes, with the OpenCTI score and labels, pass

OCTI-08

OpenCTI: Event artifacts include full file hashes, bare risky file names and external IPs read from the event; artifacts a feed or OpenCTI lists carry ‘listed in ' in their relation. _(source: SETUP.md (OpenCTI))_

Level Test Verifies Status
unit test_feeds_cfg.TestFileArtifacts.test_artifacts_hash_ip_filename_marked artifacts_of reads hashes, bare file names and external IPs, and marks listed ones. pass

OCTI-09

OpenCTI: A sighting points at the live indicator named after the value, else at the observable carrying that hash or file name; the watcher alerts on serious file-hash / file-name hits from Zeek files and endpoint process / file events. (source: SETUP.md (OpenCTI))

Level Test Verifies Status
unit test_feeds_cfg.TestFileArtifacts.test_sighting_target_falls_back_to_observable No indicator: the sighting points at the observable that carries the hash. pass
unit test_feeds_cfg.TestFileArtifacts.test_watcher_file_intel The watcher’s file check alerts on a listed hash seen by Zeek or Defend and records an OpenCTI hit. pass

REV-01

AI: The event reviewer writes an analyst’s write-up of up to two paragraphs headed ‘Why it fired:’ (detector / feed, the matched value and what it actually was) and ‘Verdict:’; it is stored up to 2400 characters, shown with its paragraphs and bold headings, and alarm titles and phone pushes use its Verdict paragraph. (source: CORRELATION.md (event reviewer))

Level Test Verifies Status
unit test_reviewer_output.AnalystWriteUp.test_write_up_format_and_summaries Two headed paragraphs are asked for, stored long enough, and the Verdict paragraph feeds alarms and pushes. pass

OCTI-10

OpenCTI: An IP-only threat-intel hit is weak evidence, weaker still on a CDN / shared-hosting address: the hit carries the TLS server names and DNS names the network used for that IP, is low / medium severity (never high), raises no watcher alert on a CDN address, is described to the reviewer as not suspicious on its own (judge the domain / SNI / certificate and research it on the web), and does not stop a person’s verdict from applying; a big shared service’s own host (login.microsoftonline.com) is never listed from a feed. (source: CORRELATION.md (threat intel))

Level Test Verifies Status
unit test_correlate.ListedIpEvent.test_listed_ip_names_site_and_is_low_on_cdn A listed IP’s event names the site served (SNI / DNS) as dns artifacts and is low on a CDN, medium at most otherwise. pass
unit test_opencti.TestIpOnlyHitsAreWeak.test_ip_only_hits_are_weak IP-only hits are weak (CDN addresses weaker still); a big provider’s own host is never listed; look-alikes stay. pass

FEED-01

Threat intel: Feeds are configurable: built-ins can be turned off, re-pointed or marked serious / covered by OpenCTI (never deleted); custom feeds need a valid name, http(s) URL and list type; covered feeds are inactive while the OpenCTI pull is on. (source: SETUP.md (threat-intel feeds))

Level Test Verifies Status
unit test_feeds_cfg.TestFeedConfig.test_toggle_url_custom_and_opencti_cover Turning off, re-pointing, adding and the OpenCTI cover all show in feed_list / ACTIVE / SERIOUS. pass
unit test_feeds_cfg.TestFeedConfig.test_validation Built-ins cannot be deleted; custom feeds need a good name, URL and type. pass

FEED-02

Threat intel: Only active feeds are downloaded and matched (an inactive feed’s old file is ignored); a changed URL is downloaded again at once; domain lists may be hosts files or one domain per line. (source: SETUP.md (threat-intel feeds))

Level Test Verifies Status
unit test_feeds_cfg.TestFeedConfig.test_inactive_not_loaded_and_url_change_refetches An inactive feed’s file is ignored; bare-domain lists parse; a new URL is fetched although the file is fresh. pass

FEED-03

Threat intel: With OpenCTI pulling, the built-in block lists come from OpenCTI (URL indicators list their non-shared host, scored IP / CIDR feed observables re-sent within 7 days list their address or range); only the JA3 list is still downloaded. (source: SETUP.md (threat-intel feeds))

Level Test Verifies Status
unit test_feeds_cfg.TestOpenCTIFeedMigration.test_builtins_covered_by_opencti With the OpenCTI pull on, every built-in except the JA3 list is covered (one source per list). pass
unit test_feeds_cfg.TestOpenCTIFeedMigration.test_feed_observables_and_cidr_match Scored feed IP / range observables join the lists below indicators; a range hit names the range. pass
unit test_feeds_cfg.TestOpenCTIFeedMigration.test_patterns_urls_and_ranges URL indicators list their host (never a shared hosting platform); public CIDR ranges become range entries. pass
unit test_feeds_cfg.TestOpenCTIFeedMigration.test_tenant_platform_subdomains_listed A URL on a tenant subdomain of a hosting platform lists that subdomain; the platform itself never. pass

WEB-01

Web search: A self-hosted Firecrawl (its own URL) works without an API key, and the host secrets file key meant for the Firecrawl cloud is never sent to it. (source: SETUP.md (web search))

Level Test Verifies Status
unit test_webtools.WebConfig.test_self_hosted_firecrawl_needs_no_key Firecrawl with its own URL is usable without a key, and the host (cloud) key is never sent to it. pass

WEB-02

Web search: Firecrawl without a URL is the Firecrawl cloud and may use the host secrets file key. (source: SETUP.md (web search))

Level Test Verifies Status
unit test_webtools.WebConfig.test_cloud_firecrawl_uses_host_key Firecrawl without a URL is the cloud and falls back to the host secrets key. pass

WEB-03

Web search: A saved web search key is dropped when the provider or the Firecrawl URL changes without a new key. (source: SETUP.md (web search))

Level Test Verifies Status
unit test_webtools.WebConfig.test_url_change_drops_saved_key a key saved for one Firecrawl instance is dropped when the URL changes without a new key. pass

WEB-04

Web search: An invalid Firecrawl URL or CA certificate is refused; a saved CA is used only for a self-hosted instance and TLS is always verified. (source: SETUP.md (web search))

Level Test Verifies Status
unit test_webtools.WebConfig.test_bad_ca_and_url_refused an invalid CA or URL is refused; the CA is only used for a self-hosted instance. pass

WEB-05

Web search: Search and page reads go to the configured Firecrawl instance, with an Authorization header only when a key is set. (source: SETUP.md (web search))

Level Test Verifies Status
unit test_webtools.FirecrawlCalls.test_search_hits_configured_instance_without_auth search posts to /v1/search, with no Authorization header when there is no key. pass

WEB-06

Web search: A page Firecrawl reached through a redirect to a non-public address is refused. (source: SETUP.md (web search))

Level Test Verifies Status
unit test_webtools.FirecrawlCalls.test_fetch_refuses_private_redirect_target a page Firecrawl fetched after redirecting to a private address is refused. pass

WEB-07

Web search: The event reviewer’s web searches never carry LAN addresses, MACs or internal names; such a search is refused and reported to the model. (source: CORRELATION.md (web search))

Level Test Verifies Status
unit test_corr_web.WebLookup.test_private_search_refused_and_reported REQ: WEB-07 pass
unit test_corr_web.WebPrivate.test_allows_public_indicators REQ: WEB-07 pass
unit test_corr_web.WebPrivate.test_refuses_lan_details REQ: WEB-07 pass

WEB-08

Web search: Every event reviewer web look-up is recorded for the AI review page, and a decision’s cited sources keep only URLs that came back in that review’s web results. (source: CORRELATION.md (web search))

Level Test Verifies Status
unit test_corr_web.WebLookup.test_broken_plan_json_keeps_good_lookups REQ: WEB-08 pass
unit test_corr_web.WebLookup.test_grouped_citations_in_reason REQ: WEB-08 - models cite several pages as [W1, W2] with no “sources” list; those pages must still be kept. pass
unit test_corr_web.WebLookup.test_lookups_first_runs_planned_searches_before_deciding REQ: WEB-08 pass
unit test_corr_web.WebLookup.test_planned_query_slips_are_fixed REQ: WEB-08 pass
unit test_corr_web.WebLookup.test_rereview_reuses_earlier_lookups_and_web_cache REQ: WEB-08 pass
unit test_corr_web.WebLookup.test_search_logs_and_only_returned_urls_are_cited REQ: WEB-08 pass
unit test_corr_web.WebLookup.test_sources_by_id_and_in_reason REQ: WEB-08 pass
unit test_corr_web.WebLookup.test_web_artifacts REQ: WEB-08 pass
unit test_corr_web.WebLookup.test_web_cache_setting_off_and_clear REQ: WEB-08 pass

WEB-09

Web search: Indicators (domains, URLs, public IPs, hashes) named in a threat report the AI read are extracted, hunted through this network’s logs (last 30 days) and Syn’s earlier events, given to the AI for its analysis and kept on the event as researched artifacts. (source: CORRELATION.md (web search))

Level Test Verifies Status
unit test_ioc_pivot.Extract.test_excluded_and_threat_like REQ: WEB-09 pass
unit test_ioc_pivot.Extract.test_lookup_pages_and_networks_are_never_indicators REQ: WEB-09 - an ipinfo / hash-lookup page is not a threat report, and a network address is not a host. pass
unit test_ioc_pivot.Extract.test_markdown_defang_bare_paths_tlds_and_cleared REQ: WEB-09 pass
unit test_ioc_pivot.Extract.test_report_indicators REQ: WEB-09 pass
unit test_ioc_pivot.Hunt.test_hunt_builds_one_bounded_aggregation REQ: WEB-09 pass
unit test_ioc_pivot.NoteExpiryGroups.test_grouped_entry_expires_with_its_last_note REQ: WEB-09 - an IP / domain / certificate row counts down to its last note’s expiry (it is deleted then). pass
unit test_ioc_pivot.Pivot.test_ai_indicator_notes_are_not_owner_guidance REQ: WEB-09 - an AI indicator note reaches the event reviewer only when the events show that artifact, and then as pass
unit test_ioc_pivot.Pivot.test_hunt_failure_still_lists_indicators REQ: WEB-09 pass
unit test_ioc_pivot.Pivot.test_indicators_get_bad_artifact_notes_with_the_report REQ: WEB-09 - each researched indicator gets an artifact note: malicious, with the article(s) naming it. pass
unit test_ioc_pivot.Pivot.test_list_and_reference_pages_are_not_threat_reports REQ: WEB-09 - “malicious IP database” lists, reputation pages and forum threads are lookups, and reference / pass
unit test_ioc_pivot.Pivot.test_non_threat_pages_are_not_mined REQ: WEB-09 - a vendor docs page the reviewer read does not get its domains labelled malicious. pass
unit test_ioc_pivot.Pivot.test_pivot_reads_report_hunts_and_stores_researched_artifacts REQ: WEB-09 pass
unit test_ioc_pivot.Ui.test_researched_artifact_tag_and_escaping REQ: WEB-09 pass

DASH-01

Dashboard: The single-page app and its assets are served with a build hash for cache busting. (source: USER_GUIDE.md §3)

Level Test Verifies Status
unit test_static_assets.HtmlReferencesTest.test_cache_busting_query_is_numeric Where an asset URL carries a ?v= build hash it is a plain token, never a path or script. pass
e2e test_e2e_access_control.RoleMatrix.test_user_page_html_still_loads A User can load the app shell (the page itself decides which views to show). pass
e2e test_e2e_dashboard.Pages.test_gzip_for_large_responses Large responses are gzip-compressed when the client accepts it. pass
e2e test_e2e_dashboard.Pages.test_index_assets_stamped_with_build_hash index.html references every .js/.css with ?v=, and the stamped asset is served immutable. pass

DASH-02

Dashboard: The JSON API serves snapshots and their derived views (overview, issues, risk, ATT&CK, lateral) from stored data. (source: USER_GUIDE.md §6)

Level Test Verifies Status
unit test_server_cache.CacheBound.test_snapshot_loads_stay_bounded Loading many snapshot docs through load_json never keeps more than _CACHE_MAX parsed docs. pass
e2e test_e2e_dashboard.Api.test_correlation_contains_seeded_findings The correlation view contains an event for the seeded segmentation finding. pass
e2e test_e2e_dashboard.Api.test_every_page_api_answers_200_json Every data API behind the dashboard pages answers 200 with JSON while the LLM is off. pass
e2e test_e2e_dashboard.Api.test_mitre_view_has_catalog /api/mitre serves the ATT&CK matrix (version and tactic order). pass
e2e test_e2e_dashboard.Api.test_open_events_persisted Findings from the snapshot appear on the Open events list (persisted event store). pass
e2e test_e2e_dashboard.Api.test_review_run_list_gone There is no review-run list for the browser: /api/snapshots is a 404. pass
e2e test_e2e_dashboard.Api.test_risk_scores_bounded Every host risk score served by /api/risk lies within 0-100. pass
e2e test_e2e_dashboard.Api.test_time_range_round_trips_raw_data /api/snapshot?id= pass
e2e test_e2e_dashboard.Api.test_unknown_snapshot_404 An unknown, review-run, ‘latest’ or traversal id is a 404, not an error page. pass
e2e test_e2e_dashboard.TransportSecurity.test_api_responses_not_cached API responses are Cache-Control: no-store (no data left in shared caches). pass
e2e test_e2e_pipeline.AnalyzePipeline.test_dashboard_serves_pipeline_output The dashboard started on the pipeline’s store serves the analysis (as the 24-hour time range ending at the run, pass

DASH-03

Dashboard: Any signed-in user can see their account and change their own password. (source: USER_GUIDE.md §2)

Level Test Verifies Status
unit test_auth.TestChangeOwnPassword.test_account_info account_info reports role and minimum password length without the hash. pass
unit test_auth.TestChangeOwnPassword.test_change_rejections Wrong current, unchanged, containing the username, or too-short new passwords are rejected. pass
unit test_auth.TestChangeOwnPassword.test_change_success_reissues_cookie A valid change returns a new working cookie and revokes the old session. pass
e2e test_e2e_dashboard.Account.test_change_own_password_signs_out_other_sessions Changing one’s password keeps this session, revokes the others and the new password works. pass
e2e test_e2e_dashboard.Account.test_password_change_raises_account_alert A password change stores an urgent ‘account’ detection (held for review until promoted to the bell). pass

DASH-04

Dashboard: /healthz answers without authentication for the container health check. (source: SETUP.md §6)

Level Test Verifies Status
e2e test_e2e_container.DeployedContainer.test_health_check_passing Docker reports the container healthy (HEALTHCHECK on /healthz). pass
e2e test_e2e_container.DeployedContainer.test_live_healthz_and_auth_wall The live dashboard answers /healthz, serves the login page and refuses the API without a session. pass
e2e test_e2e_dashboard.SignIn.test_malformed_json_body_does_not_crash A broken JSON body gets an error response and the server stays up. pass
e2e test_e2e_dashboard.TransportSecurity.test_healthz_is_public GET /healthz answers 200 ‘ok’ without a session (container health check). pass
e2e test_e2e_dashboard.TransportSecurity.test_plain_http_client_does_not_break_server A plain-HTTP request on the TLS port is dropped and the server keeps serving. pass

DASH-05

Dashboard: Check-offs made on the dashboard are persisted and reflected in later reads. (source: USER_GUIDE.md §5)

Level Test Verifies Status
unit test_store.TestAcks.test_ack_set_and_clear ack_set stores a check-off with note and label; unchecking deletes it. pass
unit test_store.TestAcks.test_ack_set_many_bulk ack_set_many checks and restores many items in one call with a shared timestamp. pass
e2e test_e2e_access_control.RoleMatrix.test_defender_can_do_analyst_work A defender may check items off (analyst work is not a setting). pass
e2e test_e2e_dashboard.CheckOffs.test_bulk_check_off ‘Check all’ stores many items in one request. pass
e2e test_e2e_dashboard.CheckOffs.test_bulk_check_off_larger_than_64k ‘Check all’ on thousands of rows (body well over 64 KB) is parsed whole, not truncated; unauthenticated pass
e2e test_e2e_dashboard.CheckOffs.test_check_off_requires_type_and_key A check-off without type or key is rejected with 400. pass
e2e test_e2e_dashboard.CheckOffs.test_single_check_off_round_trip Checking an issue off stores it with its note; un-checking removes it. pass

DASH-06

Dashboard: Every script and stylesheet referenced by the HTML pages exists in the static directory. (source: USER_GUIDE.md §3)

Level Test Verifies Status
unit test_static_assets.HtmlReferencesTest.test_html_pages_exist The static directory holds index.html and login.html. pass
unit test_static_assets.HtmlReferencesTest.test_index_loads_app_js_and_style index.html loads style.css and app.js; app.js comes before the modules that use its helpers. pass
unit test_static_assets.HtmlReferencesTest.test_manifest_icons_exist Every icon listed in manifest.json exists in the static directory. pass
unit test_static_assets.HtmlReferencesTest.test_modals_survive_touch Dialogs never close on a bare backdrop mousedown (iOS shifts the dialog under the finger) and the suppress pass
unit test_static_assets.HtmlReferencesTest.test_no_duplicate_script_tags No HTML page includes the same script twice. pass
unit test_static_assets.HtmlReferencesTest.test_other_linked_assets_exist Manifest and icon links in the HTML pages point to existing files. pass
unit test_static_assets.HtmlReferencesTest.test_scripts_and_stylesheets_exist Every script src and stylesheet href in static/*.html points to an existing file. pass

DASH-07

Dashboard: The threat-intel trend reads one row per review run from the run_summary table (written once per run), so it never loads run documents and keeps runs whose documents are gone. (source: USER_GUIDE.md)

Level Test Verifies Status
unit test_runarchive.RunSummary.test_summary_keeps_trend_and_last_seen_after_prune runs_sync folds each run once into run_summary + finding_seen; after its documents are deleted the pass
unit test_ti_trend.TestTrend.test_trend_cached_loads_each_once Each snapshot is loaded once, reduced to its counter row, and reloaded only when its mtime changes; pass

OPS-01

Operations: Console recovery commands (server.py set-role / add-user / set-password) work without the web UI. (source: ACCESS_CONTROL.md)

Level Test Verifies Status
e2e test_e2e_pipeline.ServerLifecycle.test_console_add_user_prompts_for_password server.py add-user reads the password from the terminal (never argv) and creates a working account. pass
e2e test_e2e_pipeline.ServerLifecycle.test_console_set_role server.py set-role changes a role from the console; the last admin cannot be demoted. pass
e2e test_e2e_pipeline.ServerLifecycle.test_first_start_seeds_admin_then_ignores_env The first start seeds an admin from DASH_USER/DASH_PASS; a restart with other values keeps the original account. pass

OPS-02

Operations: The dashboard container runs read-only, non-root, with a passing health check. (source: SETUP.md §6)

Level Test Verifies Status
e2e test_e2e_container.DeployedContainer.test_capabilities_dropped All Linux capabilities are dropped and no-new-privileges is set. pass
e2e test_e2e_container.DeployedContainer.test_health_check_passing Docker reports the container healthy (HEALTHCHECK on /healthz). pass
e2e test_e2e_container.DeployedContainer.test_read_only_root_fs The container’s root filesystem is read-only. pass
e2e test_e2e_container.DeployedContainer.test_runs_as_non_root The container process runs as a non-root user. pass

OPS-03

Operations: The scheduler runs the watcher once per event window, the research job on its grid and the weekly rebuild on Sunday. (source: SETUP.md §7)

Level Test Verifies Status
unit test_config.TestReviewCfg.test_requests request() queues a run, pending_request() shows it and take_request() returns it once and clears it. pass
unit test_config.TestReviewCfg.test_slot_grid Slots form a grid of interval minutes anchored at 05:00 UTC; next_run is the next slot start or None when disabled. pass
unit test_event_window.TestEventWindowSetting.test_for_run The 05 UTC daily run stays 24 h; other runs use the event window in hours. pass
unit test_scheduler.NextRunTest.test_custom_interval_and_disabled A stored 30-minute interval moves the next run; disabling the job gives None. pass
unit test_scheduler.NextRunTest.test_default_interval With no settings the job is enabled at 240 minutes and next_run is the next grid point. pass
unit test_scheduler.NextRunTest.test_out_of_range_interval_falls_back An interval outside 5..1440 minutes (or not a number) falls back to the default 240. pass
unit test_scheduler.NextRunTest.test_put_rejects_bad_interval put() refuses an interval outside the allowed range. pass
unit test_scheduler.NextRunTest.test_slot_uses_stored_interval_when_omitted slot() without an interval uses the stored setting. pass
unit test_scheduler.SchedulerStatusTest.test_jobs_defined The stream, gpu, watch, review, weekly, unifi, rangewarm, k8simages, vulnhist, evtime and opencti jobs (event research is never a scheduled job) are configured with the expected scripts. pass
unit test_scheduler.SchedulerStatusTest.test_status_research_fields status() reports the research next run, interval and enabled flag from review_cfg. pass
unit test_scheduler.SchedulerStatusTest.test_status_watch_next_quarter_hour The next watcher run is the next event-window boundary (10 min by default), within one window from now. pass
unit test_scheduler.SchedulerStatusTest.test_status_weekly_is_next_sunday_0300 The weekly rebuild is the next Sunday 03:00 UTC, in the future and at most 7 days away. pass
unit test_scheduler.SchedulerStatusTest.test_watch_and_unifi_slot_numbers The watcher slot (now // 900) and UniFi slot (now // 300) change exactly on their boundaries. pass
unit test_scheduler.SchedulerStatusTest.test_week_key_format The weekly once-per-week key (ISO year-week) is identical all Sunday and changes the next week. pass
unit test_scheduler.SlotTest.test_anchor_is_slot_zero 05:00 UTC on 1970-01-01 starts slot 0 for any interval. pass
unit test_scheduler.SlotTest.test_daily_grid_lands_on_0500 With a 1440-minute interval every slot starts at 05:00 UTC. pass
unit test_scheduler.SlotTest.test_four_hour_grid_times A 240-minute grid runs at 01, 05, 09, 13, 17, 21 UTC. pass
unit test_scheduler.SlotTest.test_slot_before_anchor_is_negative Times before the 1970 anchor give negative slot numbers (floor division), not slot 0. pass
unit test_scheduler.SlotTest.test_slot_boundaries A time exactly on a boundary belongs to the new slot; one second earlier to the previous one. pass
unit test_scheduler.SlotTest.test_slot_start_is_floor slot_start(slot(t)) is the latest grid point at or before t. pass
e2e test_e2e_pipeline.OperatorCli.test_scheduler_status scheduler.py status prints the next run of the watcher, review, weekly and UniFi jobs without running them. pass

OPS-06

Operations: Review-run documents (data/) are pipeline input only: once a run is folded into run_summary (threat-intel row), the Fix-list tables (fix_run / fix_item / ..., one column per field, no JSON), finding_seen and the event store, its documents are deleted, except the newest 8 runs and the 05 UTC daily runs of the auto-tune window; the Fix list is one SQL query over the stored rows, so it keeps counting deleted runs. _(source: docs/ARCHITECTURE.md)_

Level Test Verifies Status
unit test_config.TestResearchCfg.test_fresh_defaults_have_no_schedule A new deployment has web access off, no model and no schedule / run-request settings at all. pass
unit test_issues.IncrementalTrackTests.test_runs_without_documents_keep_counting A stored run whose documents are gone (load() -> None) keeps its rows in the Fix list. pass
unit test_review_noai.ResearchOnDemandTest.test_research_requires_an_event research.py refuses to start without –event: there is no scheduled or batch research. pass
unit test_review_noai.ResearchOnDemandTest.test_scheduler_never_schedules_research The scheduler’s jobs contain no research.py; research starts only from a queued Send to research click. pass
unit test_review_noai.ReviewNeverResearchesTest.test_no_reviewer_model_makes_no_call Without a usable event reviewer model the run still finishes; review items wait in the queue. pass
unit test_review_noai.ReviewNeverResearchesTest.test_review_uses_the_correlation_reviewer_model review.py takes its model from the event reviewer (corr_llm), not from the research settings. pass
unit test_review_noai.ReviewNeverResearchesTest.test_reviewer_only_copies_or_queues The review job’s event reviewer only sees review-category items with a prior note, gets no web or submit_notes tool, pass
unit test_review_noai.ReviewNeverResearchesTest.test_reviewer_queue_decision A “queue” decision leaves the event in the queue; nothing is copied. pass
unit test_runarchive.FixListTables.test_fix_list_is_rows_not_json Each run’s issues are rows of fix_item (one column per field), not JSON blobs; run_summary has no JSON pass
unit test_runarchive.RunSummary.test_fix_list_counts_pruned_runs The Fix list (SQL over the fix_* tables) gives the same open issues and occurrence counts after older runs pass
unit test_runarchive.RunSummary.test_prune_needs_summary_and_ingest A run keeps its documents until it is summarised, its Fix-list rows are stored and the event store has pass
unit test_runarchive.RunSummary.test_summary_keeps_trend_and_last_seen_after_prune runs_sync folds each run once into run_summary + finding_seen; after its documents are deleted the pass

OPS-04

Operations: store.py CLI (check / stats) verifies and reports on the database. (source: store.py)

Level Test Verifies Status
unit test_store.TestOps.test_backup_copies_and_prunes backup writes a consistent copy that opens with the same data, keeping only the newest keep files. pass
unit test_store.TestOps.test_daily_backup_made_once_per_day The pipeline’s backup (daily=True) is made once a day; later runs leave today’s copy alone. pass
unit test_store.TestOps.test_export_writes_legacy_files export writes the legacy JSON files back out with the stored content. pass
unit test_store.TestOps.test_migrate_imports_legacy_files_once migrate imports every legacy JSON file, records counts, and refuses a second run unless overwrite. pass
unit test_store.TestOps.test_stats_and_integrity stats counts rows per table and reports the file size and meta; integrity_check says ok. pass
e2e test_e2e_pipeline.AnalyzePipeline.test_backup_goes_to_sandbox The nightly store backup analyze.py takes lands in NETMON_BACKUP_DIR (never the live backup dir) and passes integrity. pass
e2e test_e2e_pipeline.OperatorCli.test_store_check_and_stats store.py check reports ok and store.py stats lists the table row counts as JSON. pass

LAT-20

Lateral movement: Lateral-graph nodes are named from the device record, then the inventory, then a known-benign name, else the IP; gateway interfaces take their known-benign name or ‘gateway ()' and carry the known flag and device class. _(source: RISK_SCORING.md)_

Level Test Verifies Status
unit test_lateral_page.NamingTests.test_device_name_then_inventory_then_known_benign_then_ip A host is named after its device, else its inventory entry, else a known-benign name, else its IP. pass
unit test_lateral_page.NamingTests.test_gateway_named_from_known_benign A gateway interface (.1) takes its known-benign name when there is one, else ‘gateway ()'; it is never 'known'. pass
unit test_lateral_page.NamingTests.test_known_flag_and_device_class Nodes carry ‘known’ from the device record and their device class (by MAC, else by IP). pass

LAT-21

Lateral movement: Unanswered admin-port attempts to a gateway or over UDP stay normal, and an unanswered TCP flow from an internal scanner is medium with a reason naming the scanner. (source: RISK_SCORING.md)

Level Test Verifies Status
unit test_lateral_page.PortRuleTests.test_gateway_and_udp_exceptions Unanswered admin-port attempts to a gateway, or over UDP, stay normal; scan traffic to a gateway or answered is not a scan link. pass
unit test_lateral_page.PortRuleTests.test_scan_reason_names_the_scanner An unanswered TCP flow from an internal scanner is medium and its reason names the scanner. pass

LAT-22

Lateral movement: A network-policy allow rule rates answered admin ports allowed-admin (other ports normal) with the rule’s reason, but never hides a violation or repeated unanswered admin attempts. (source: RISK_SCORING.md)

Level Test Verifies Status
unit test_lateral_page.PortRuleTests.test_allow_rule_does_not_hide_violation_or_failures A violation or repeated unanswered admin attempts are rated before the allow list, so allowing the pair does not hide them. pass
unit test_lateral_page.PortRuleTests.test_allow_rule_reason_on_edges An allow rule gives an answered admin port ‘admin port, allowed: ' and a plain port its reason as the why text. pass

LAT-23

Lateral movement: A cleared segmentation flow (IP or MAC form, or covered by a segmentation suppress rule) is shown as allowed-admin on its port only, on snapshots and periods alike, and returns to its level when unchecked. (source: USER_GUIDE.md)

Level Test Verifies Status
unit test_lateral_page.ClearedFlowTests.test_cleared_from_ack_store_and_suppress_rule server.with_cleared() feeds the check-off store (MAC form) and segmentation suppress rules into the graph as allowed flows. pass
unit test_lateral_page.ClearedFlowTests.test_cleared_port_only Clearing one flow (IP form) makes that port allowed-admin; other ports on the same link keep their level. pass
e2e test_e2e_lateral.LateralApiE2E.test_clearing_a_flow_marks_it_allowed Clearing a segmentation flow (check-off type ‘seg’) shows it as allowed on /api/lateral; unclearing brings the level back. pass

LAT-24

Lateral movement: Admin sessions involving an internet address stay in the admin list but put no internet host or edge on the internal lateral graph. (source: USER_GUIDE.md)

Level Test Verifies Status
unit test_lateral_page.InternetAndAdminEdgeTests.test_admin_session_from_internet_not_mapped An admin session from an internet address does not put the internet host on the graph. pass
unit test_lateral_page.InternetAndAdminEdgeTests.test_admin_session_to_internet_not_mapped An admin session to an internet address stays in the admin list but adds no edge or node. pass

LAT-25

Lateral movement: Admin evidence on a port without a flow adds a port row (protocol, session level and reason, port 0 for login-only sessions), and edge ports sort worst first with the documented edge score. (source: RISK_SCORING.md)

Level Test Verifies Status
unit test_lateral_page.InternetAndAdminEdgeTests.test_admin_port_row_added_and_sorted A session on a port without a flow adds a port row (protocol as service, session level and reason); rows sort worst first. pass
unit test_lateral_page.InternetAndAdminEdgeTests.test_login_only_session_port_zero A session seen only in login logs (no port) gets a port-0 row counting its logins. pass

LAT-26

Lateral movement: Graph nodes count risky links and connections in and out, edges sort by level then score, and the graph reports whether admin access was collected and from which sources. (source: RISK_SCORING.md)

Level Test Verifies Status
unit test_lateral_page.GraphSummaryTests.test_admin_collected_and_sources admin_collected is false for snapshots without admin_access; admin_sources passes the collector’s source counts on. pass
unit test_lateral_page.GraphSummaryTests.test_node_counters_and_edge_order Nodes count risky links and connections in/out; edges sort by level, then score. pass

LAT-27

Lateral movement: Endpoint host names in admin evidence resolve to internal IPs by device name or hostname (short form, longer than 3 characters), inventory name, or the first label of an FQDN. (source: CORRELATION.md)

Level Test Verifies Status
unit test_lateral_page.ResolverTests.test_resolve_ip_hostname_fqdn_inventory IPs pass through; host names resolve by device name/hostname (short, > 3 chars) or inventory name, FQDNs by their first label. pass

LAT-28

Lateral movement: A link seen in only one of several periods appears on the merged graph, and a link high in one period keeps high with connection counts summed. (source: RISK_SCORING.md)

Level Test Verifies Status
unit test_lateral_page.PeriodGraphTests.test_link_in_one_period_and_worst_level_kept A link seen in only one period appears; a link high in one period and normal in another stays high with summed counts. pass

LAT-29

Lateral movement: Extra periods are each requested from the host broker (/range then the ‘lateral’ section, at most 8), merged, and malformed or offset-less periods or broker errors become a clean error message. (source: USER_GUIDE.md)

Level Test Verifies Status
unit test_lateral_page.LateralPeriodsTests.test_at_most_eight_periods Only the first 8 periods are queried. pass
unit test_lateral_page.LateralPeriodsTests.test_broker_errors_become_value_errors A broker error, or a period whose section never appeared, is a ValueError with a readable message. pass
unit test_lateral_page.LateralPeriodsTests.test_periods_merged_via_broker Each period is asked for with /range and its ‘lateral’ section, then all periods are merged. pass
unit test_lateral_page.LateralPeriodsTests.test_validation Periods without a UTC offset, unparsable, or none at all are a ValueError before the broker is asked. pass
e2e test_e2e_lateral.LateralApiE2E.test_bad_periods_400 Malformed periods, a period without a UTC offset, or a broker/Elasticsearch error give a clean 400 with a message. pass
e2e test_e2e_lateral.LateralApiE2E.test_periods_merged p=<start~end,…> queries each period through the broker and serves one merged graph: counts added, worst level kept. pass

LAT-30

Lateral movement: GET /api/lateral returns the snapshot (or latest) graph rated with the stored policy and check-offs, merges the p=start~end periods, and answers 404 for unknown snapshots and 400 for bad periods. (source: RISK_SCORING.md)

Level Test Verifies Status
e2e test_e2e_lateral.LateralApiE2E.test_bad_periods_400 Malformed periods, a period without a UTC offset, or a broker/Elasticsearch error give a clean 400 with a message. pass
e2e test_e2e_lateral.LateralApiE2E.test_clearing_a_flow_marks_it_allowed Clearing a segmentation flow (check-off type ‘seg’) shows it as allowed on /api/lateral; unclearing brings the level back. pass
e2e test_e2e_lateral.LateralApiE2E.test_periods_merged p=<start~end,…> queries each period through the broker and serves one merged graph: counts added, worst level kept. pass
e2e test_e2e_lateral.LateralApiE2E.test_snapshot_graph /api/lateral?id= (and id=latest) returns the snapshot's graph rated with the stored zone policy and allow rules. pass
e2e test_e2e_lateral.LateralApiE2E.test_unknown_snapshot_404 An unknown or path-like snapshot id is a 404. pass

LAT-31

Lateral movement: Admins and network defenders can read /api/lateral (with or without periods); a User gets 403 and an anonymous caller 401. (source: ACCESS_CONTROL.md)

Level Test Verifies Status
unit test_lateral_page.LateralPeriodsTests.test_user_role_cannot_read_lateral The User role’s GET allow-list has neither /api/lateral nor /api/risk. pass
e2e test_e2e_lateral.LateralApiE2E.test_roles Admins and network defenders read the Lateral movement data; a User gets 403 and an anonymous caller 401. pass

LAT-32

Lateral movement: The Lateral movement Show filter keeps risky, high+medium, risky+allowed or all links, gateway links only when ticked, and focusing a host keeps only its links. (source: USER_GUIDE.md)

Level Test Verifies Status
unit test_lateral_page.LateralPageJs.test_filters The Show filter keeps risky / high+medium / risky+allowed / all links; gateway links only when ticked; focus keeps one host’s links. pass

LAT-33

Lateral movement: The Lateral movement page requests /api/lateral for the selected snapshot, adds p= for the time picker’s periods with a ‘N periods combined’ note, reuses the loaded graph while nothing changed and shows API errors. (source: USER_GUIDE.md)

Level Test Verifies Status
unit test_lateral_page.LateralPageJs.test_cache_and_error The fetched graph is reused while the snapshot and periods stay the same; an API error is shown instead of the page. pass
unit test_lateral_page.LateralPageJs.test_loads_snapshot_and_kpis Without extra periods the page asks /api/lateral?id=, shows the level KPIs (gateways not counted) and the filter/focus controls. pass
unit test_lateral_page.LateralPageJs.test_periods_from_time_picker Extra periods (or a custom range) are sent as p=start~end,…; more than one shows the ‘N periods combined’ note. pass

LAT-34

Lateral movement: The Lateral movement page shows link-level KPIs and internal host count (gateways excluded) and a focus list of internal hosts ordered by host risk. (source: USER_GUIDE.md)

Level Test Verifies Status
unit test_lateral_page.LateralPageJs.test_loads_snapshot_and_kpis Without extra periods the page asks /api/lateral?id=, shows the level KPIs (gateways not counted) and the filter/focus controls. pass

LAT-35

Lateral movement: The Lateral movement legend lists every risk level in the backend’s order plus ‘never answered’. (source: RISK_SCORING.md)

Level Test Verifies Status
unit test_lateral_page.LateralPageJs.test_levels_legend_matches_backend The details panel legend lists every risk level (same keys and order as lateral.ORDER) plus ‘never answered’. pass

LAT-36

Lateral movement: The lateral SVG graph draws one arrow marker per level, never-answered links dashed, zone labels with host counts, risk scores in host bubbles, GW for gateways and a dashed ring for hosts not in the inventory. (source: RISK_SCORING.md)

Level Test Verifies Status
unit test_lateral_page.LateralPageJs.test_graph_drawing The SVG has one arrow marker per level, two paths per link (unanswered dashed), GW/risk labels and a dashed ring for hosts not in inventory. pass

LAT-37

Lateral movement: The lateral ports table offers a Clear box only on violation or already-cleared ports, keyed like the Posture finding (else the MAC form) and checked when cleared. (source: USER_GUIDE.md)

Level Test Verifies Status
unit test_lateral_page.LateralPageJs.test_clear_column The ports table offers a Clear box only on violation or already-cleared ports, keyed like the Posture finding or the MAC form. pass

LAT-38

Lateral movement: The Admin access section sums logins and failures over sessions, splits open and checked sessions, and explains when there are none or admin access was not collected. (source: USER_GUIDE.md)

Level Test Verifies Status
unit test_lateral_page.LateralPageJs.test_admin_section_empty_and_not_collected No sessions shows ‘No admin sessions in this time range.’; a time range collected without admin collection explains that instead. pass
unit test_lateral_page.LateralPageJs.test_admin_section_open_and_checked Admin access: KPIs summed over sessions, open and checked lists split by check-off, tools card absent without tools. pass
unit test_lateral_page.LateralPageJs.test_checked_admin_sessions_card_shows_table The Checked admin sessions card holds a table of the checked sessions, not a stringified element. pass

LAT-39

Lateral movement: The Lateral movement page shows a Cleared segmentation card for cleared flows, resolving MAC-form keys to the device and its activity in the range. (source: USER_GUIDE.md)

Level Test Verifies Status
unit test_lateral_page.LateralPageJs.test_cleared_segmentation_card Cleared flows (MAC form) get a ‘Cleared segmentation’ card resolving the device and its activity; none without clears. pass

LAT-40

Lateral movement: Selecting a link shows its level, both ends with zones, counts, score, ports and admin-session cards; selecting a host (or #/lateral/) focuses it and shows its in/out links and device/admin links. _(source: USER_GUIDE.md)_

Level Test Verifies Status
unit test_lateral_page.LateralPageJs.test_edge_details_panel Clicking a link shows its level, both ends with zone chips, counts, score, ports and its admin-session cards. pass
unit test_lateral_page.LateralPageJs.test_node_details_panel_and_route_focus #/lateral/ focuses that host (filter widened to include allowed admin) and shows its in/out links, device and admin links. pass

NET-01

Network pages: An address belongs to the policy zone whose CIDR contains it; other internal addresses are ‘internal-other’ and everything else (or an unparsable value) is ‘external’. (source: USER_GUIDE.md)

Level Test Verifies Status
unit test_network_pages.InternalTraffic.test_zone_of An address maps to the policy zone whose CIDR contains it, other internal addresses to internal-other, the rest to external. pass

NET-02

Network pages: Internal flows keep source, destination, port, protocol, connections, answered, bytes, service and both zones per pair; broadcast and self flows are dropped. (source: USER_GUIDE.md)

Level Test Verifies Status
unit test_network_pages.InternalTraffic.test_flows Each source/destination/port/protocol bucket becomes one flow with conns, answered, bytes, service and both zones; broadcast and self flows are dropped. pass

NET-03

Network pages: The zone-to-zone matrix sums connections and bytes per ‘src -> dst’ zone pair, keeps the six busiest port/protocols and lists the busiest pair first. (source: USER_GUIDE.md)

Level Test Verifies Status
unit test_network_pages.InternalTraffic.test_matrix The zone matrix sums conns and bytes per ‘src -> dst’ zone pair, keeps the 6 busiest port/protocols and lists the busiest pair first. pass
e2e test_e2e_network.NetworkPagesE2E.test_snapshot_network_data /api/snapshot?id= pass

NET-04

Network pages: A source is an internal scan when its failed connections reach the host or port threshold (configurable in the policy); gateway .1 addresses never are. (source: USER_GUIDE.md)

Level Test Verifies Status
unit test_network_pages.InternalTraffic.test_scans A source with failed connections to at least the host or port threshold is a scan; gateway (.1) addresses never are. pass

NET-05

Network pages: The UniFi collector reports clients online, known clients, clients per network, clients missing from the inventory, first seen in the window and IP conflicts, and skips cleanly without an API key. (source: USER_GUIDE.md)

Level Test Verifies Status
unit test_network_pages.UnifiSummary.test_clients Clients: online count, known total, clients per network, those missing from the inventory, first seen in the window and IP conflicts. pass
unit test_network_pages.UnifiSummary.test_no_key_skipped Without a UniFi API key the collector skips (no controller call) and says why. pass

NET-06

Network pages: The UniFi collector summarises flows (totals, blocks per policy, top blocked clients with domains, region blocks, risky flows) and gateway health (ISP, WAN IP, latency, drops, uptime). (source: USER_GUIDE.md)

Level Test Verifies Status
unit test_network_pages.UnifiSummary.test_flows_and_health Flows: totals, blocks per policy, top blocked clients with their domains, region blocks and risky flows; health keeps ISP, WAN IP and latency. pass

NET-07

Network pages: /api/history lists banked snapshots oldest first with only the per-device headline numbers (total, internet upload, connections, name) the trend charts use. (source: USER_GUIDE.md)

Level Test Verifies Status
unit test_network_pages.HistoryAndRegistry.test_history_compact /api/history lists banked snapshots oldest first with only the per-device headline numbers the trend charts use. pass
e2e test_e2e_network.NetworkPagesE2E.test_registry_and_history /api/registry carries the zones, device classes, known-benign names and devices; /api/history the compact trend, oldest first. pass

NET-08

Network pages: /api/registry returns the policy zones and device classes, the known-benign display names and the device registry the Network map builds hosts from. (source: USER_GUIDE.md)

Level Test Verifies Status
unit test_network_pages.HistoryAndRegistry.test_registry /api/registry carries the policy zones and device classes, known-benign display names and the device registry. pass
e2e test_e2e_network.NetworkPagesE2E.test_registry_and_history /api/registry carries the zones, device classes, known-benign names and devices; /api/history the compact trend, oldest first. pass

NET-09

Network pages: The Network map places each internal host in its policy zone (private unzoned addresses in ‘other’) and never draws internet, gateway (.1), network or broadcast addresses. (source: USER_GUIDE.md)

Level Test Verifies Status
unit test_network_pages.NetmapHostsJs.test_zone_assignment Hosts land in the policy zone of their address, private unzoned addresses in ‘other’; internet, gateway (.1), broadcast and network addresses are not drawn. pass

NET-10

Network pages: Network map hosts merge the device registry, DHCP inventory, UniFi clients and live traffic, are marked active only with traffic in the range, and an old IP whose MAC moved is dropped. (source: USER_GUIDE.md)

Level Test Verifies Status
unit test_network_pages.NetmapHostsJs.test_sources_merge A host merges the baseline registry, DHCP inventory, UniFi clients and live traffic; live traffic marks it active, and an old IP whose MAC moved is dropped. pass

NET-11

Network pages: Network map host names come from the site display name, then the live traffic name, known-benign name, DHCP name, registry/UniFi name, endpoint host hint, and finally the IP. (source: USER_GUIDE.md)

Level Test Verifies Status
unit test_network_pages.NetmapHostsJs.test_naming Host name order: site display name, live traffic name, known-benign name, DHCP name, registry/UniFi name, endpoint host hint, then the IP. pass

NET-12

Network pages: Network map hosts carry their device class (by MAC, then IP), risk score and rank, open issues not checked off, Elastic agent and honeypot flags, and whether they are in the inventory. (source: RISK_SCORING.md)

Level Test Verifies Status
unit test_network_pages.NetmapHostsJs.test_decorations Hosts carry their device class (by MAC, then IP), risk score and rank, open issues not checked off, Elastic agent and honeypot flags. pass

NET-13

Network pages: The Network map lists every configured zone even when empty, in a fixed order then alphabetically, with its gateway, CIDR, host/active/unknown counts, highest risk and issue total. (source: USER_GUIDE.md)

Level Test Verifies Status
unit test_network_pages.NetmapHostsJs.test_zones Zones: every configured zone even when empty, fixed order then alphabetical, gateway .1 address and name, host/active/unknown/risk/issue totals, hosts sorted by class then name. pass

NET-14

Network pages: Network map risk colours are red from 40, amber from 20, yellow from 8 and green below. (source: RISK_SCORING.md)

Level Test Verifies Status
unit test_network_pages.NetmapHostsJs.test_risk_colour Risk colours: red from 40, amber from 20, yellow from 8, green below (as in RISK_SCORING.md). pass

NET-15

Network pages: The Network map draws the internet, the gateway and one node per visible host with one uplink per zone; inactive hosts can be hidden, search dims non-matching hosts, zone risk badges appear from 8 and empty zones say ‘no hosts seen’. (source: RISK_SCORING.md)

Level Test Verifies Status
unit test_network_pages.NetmapRenderJs.test_nodes_and_links One node per visible host (inactive ones hidden on request, search dims the rest), one uplink per zone with its gateway address, risk badges from 8, ‘no hosts seen’ in empty zones. pass

NET-16

Network pages: The Network map page shows zone, host, active, not-seen, not-in-inventory and Elastic-agent tiles, a zone summary with the riskiest host and the full host list. (source: USER_GUIDE.md)

Level Test Verifies Status
unit test_network_pages.NetmapRenderJs.test_empty_with_zones With zones configured but no hosts at all (an empty snapshot) every zone is drawn empty and the tiles are zero. pass
unit test_network_pages.NetmapRenderJs.test_page_kpis_and_tables The page shows zone/host/active/not-seen/not-in-inventory/agent tiles, a zone summary with the riskiest host and the full host list. pass

NET-17

Network pages: Clicking the gateway on the Network map lists UniFi health and every zone interface; clicking a host shows its details, sources, open issues and device-page link (only with live traffic). (source: USER_GUIDE.md)

Level Test Verifies Status
unit test_network_pages.NetmapRenderJs.test_panel Clicking the gateway lists UniFi health and every zone interface; clicking a host shows its details, deduplicated sources, open issues and device links. pass

NET-18

Network pages: The Traffic map zone-to-zone heatmap has one sorted row and column per zone, connections and bytes per cell, top ports on hover and shading by share of the busiest cell. (source: USER_GUIDE.md)

Level Test Verifies Status
unit test_network_pages.TrafficMapJs.test_empty Without internal traffic, UniFi or history the page still renders: an empty matrix, ‘Internal flows (0)’, no gateway and no trend section. pass
unit test_network_pages.TrafficMapJs.test_zone_matrix The zone-to-zone heatmap has one sorted row and column per zone in the matrix, conns and bytes per cell, top ports on hover, shading by share of the busiest cell. pass

NET-19

Network pages: The Traffic map lists up to 100 internal flows busiest first and sums internet bytes over devices by country, ASN and protocol, with internet upload by device. (source: USER_GUIDE.md)

Level Test Verifies Status
unit test_network_pages.TrafficMapJs.test_flows_and_totals Internal flows are listed (busiest first, up to 100) and internet bytes are summed over devices by country, ASN and protocol. pass

NET-20

Network pages: With UniFi data the Traffic map adds a Gateway section (client and flow tiles, health, blocks by policy, clients by network, top blocked clients); without it the section is absent or says ‘No UniFi data’. (source: USER_GUIDE.md)

Level Test Verifies Status
unit test_network_pages.TrafficMapJs.test_empty Without internal traffic, UniFi or history the page still renders: an empty matrix, ‘Internal flows (0)’, no gateway and no trend section. pass
unit test_network_pages.TrafficMapJs.test_gateway_section With UniFi data the page adds a ‘Gateway (UniFi)’ section: client and flow tiles, health, blocks by policy, clients by network, top blocked clients. pass
e2e test_e2e_network.NetworkPagesE2E.test_snapshot_network_data /api/snapshot?id= pass

NET-21

Network pages: With banked history the Traffic map adds a trend section (total and internet-upload bytes, hosts and connections per snapshot) using the snapshots in the range when there are at least two, else all. (source: USER_GUIDE.md)

Level Test Verifies Status
unit test_network_pages.TrafficMapJs.test_empty Without internal traffic, UniFi or history the page still renders: an empty matrix, ‘Internal flows (0)’, no gateway and no trend section. pass
unit test_network_pages.TrafficMapJs.test_history_trend With banked history the page adds a trend section: total and internet-upload bytes, hosts and connections per snapshot. pass

NET-22

Network pages: Network map and Traffic map are linked from the Network menu; the Traffic map is the traffic view then the gateway and trend sections, and old #/unifi and #/history links land on those sections. (source: USER_GUIDE.md)

Level Test Verifies Status
unit test_network_pages.TrafficMapJs.test_composition_and_old_bookmarks The Traffic map is the traffic view, then the gateway section, then the trend; old #/unifi and #/history links land on those sections. pass
e2e test_e2e_network.NetworkPagesE2E.test_pages_and_scripts The dashboard links both pages in the Network menu and serves netmap.js and app.js with the view code. pass

NET-23

Network pages: A User cannot open the Network map or Traffic map (redirected to My devices) and gets 403 on every API they load; defenders and admins can read them. (source: ACCESS_CONTROL.md)

Level Test Verifies Status
unit test_network_pages.HistoryAndRegistry.test_network_apis_not_for_user_role None of the APIs the Network pages load is on the User role’s allow-list, and both pages are outside the User views. pass
unit test_network_pages.NetworkRolesJs.test_user_role_redirected A User opening #/netmap or #/traffic gets ‘My devices’; a defender or admin gets the page. pass
e2e test_e2e_network.NetworkPagesE2E.test_roles A User gets 403 on every API the Network pages load; a Network defender and an admin can read them. pass

NET-24

Network pages: /api/snapshot returns a snapshot’s internal flows, zone matrix and UniFi summary unchanged, and /api/section serves a collected time range’s internal and unifi pieces (404 for unknown ones). (source: USER_GUIDE.md)

Level Test Verifies Status
e2e test_e2e_network.NetworkPagesE2E.test_range_sections A collected time range serves its ‘internal’ and ‘unifi’ sections from the stored range; unknown sections or ranges are 404. pass
e2e test_e2e_network.NetworkPagesE2E.test_snapshot_network_data /api/snapshot?id= pass

NET-25

Network pages: Both Network pages render an empty state (zero tiles, empty zones / matrix) instead of failing when a snapshot has no hosts or no zones are configured. (source: USER_GUIDE.md)

Level Test Verifies Status
unit test_network_pages.NetmapRenderJs.test_empty_with_zones With zones configured but no hosts at all (an empty snapshot) every zone is drawn empty and the tiles are zero. pass
unit test_network_pages.NetmapRenderJs.test_empty_without_zones With no zones configured and no hosts the Network map still renders (tiles at zero, gateway drawn) instead of throwing. pass

ALR-01

Alerts: GET /api/alerts returns the alarm feed newest first without held detections, mute-cleared or suppressed alerts, with limit clamped to 1..2000 and per-row mine plus unread, unread_mine and mode. (source: USER_GUIDE.md §4)

Level Test Verifies Status
e2e test_e2e_alerts.AlertsApi.test_bad_limit_is_a_client_error A non-numeric limit on the feed is a 400 bad request, not a 500 server error. pass
e2e test_e2e_alerts.AlertsApi.test_feed_order_limit_and_hidden_rows The feed is newest first and leaves out held detections, mute-cleared and suppressed alerts; limit is clamped to 1..2000. pass

ALR-02

Alerts: An admin or defender who chose devices still gets every alarm with mine set only for those devices (mode some, unread_mine counted); a User only ever receives their assigned devices’ alarms. (source: USER_GUIDE.md §4)

Level Test Verifies Status
unit test_alerts_page.AlertsPageJsTest.test_only_my_devices_toggle An admin alerting on chosen devices sees only their alerts with a show all N link; the toggle shows every alert; ?ev= skips the filter. pass
e2e test_e2e_alerts.AlertsApi.test_only_my_devices_for_admin_and_defender An admin or defender who chose devices still gets every alert, flagged mine only for their devices, with unread_mine and mode some. pass
e2e test_e2e_alerts.AlertsApi.test_user_sees_only_assigned_devices_and_no_extras A User gets only their devices’ alarms; cleared=1 and held=1 are ignored for them and mute rules are refused. pass

ALR-03

Alerts: GET /api/alerts?extra=1 adds each alarm’s event id, verdict and verdict source plus the research extras keyed by event id. (source: USER_GUIDE.md §4)

Level Test Verifies Status
e2e test_e2e_alerts.AlertsApi.test_extra_adds_verdicts extra=1 adds each alarm’s event id, verdict and its source, and the research extras keyed by event id. pass

ALR-04

Alerts: GET /api/alerts?held=1 lists held detections newest first with verdict counts for detections and alarms; v= filters by verdict and an unknown v is ignored. (source: USER_GUIDE.md §4)

Level Test Verifies Status
e2e test_e2e_alerts.AlertsApi.test_held_detections_and_verdict_filter held=1 lists the watcher’s held detections newest first with verdict counts for detections and alarms; v= filters, an unknown v is ignored. pass

ALR-05

Alerts: GET /api/alerts?cleared=1 (admin / defender) lists alerts a legacy mute rule cleared with the rule that cleared them; for a User cleared, held and extra are ignored. (source: USER_GUIDE.md §4)

Level Test Verifies Status
unit test_alerts_page.AlertsPageJsTest.test_mute_rules_card_and_cleared_view Admins / defenders see the legacy mute rules with Remove rule and show cleared (N); the cleared view lists what rules cleared; Users see neither. pass
e2e test_e2e_alerts.AlertsApi.test_cleared_view_does_not_call_a_suppressed_alert_rule_removed An alert hidden by a suppress rule that still exists is not shown in the mute-cleared view as cleared by a removed rule. pass
e2e test_e2e_alerts.AlertsApi.test_cleared_view_names_the_mute_rule cleared=1 lists the alerts a legacy mute rule cleared, newest first, each with the rule that cleared it. pass
e2e test_e2e_alerts.AlertsApi.test_user_sees_only_assigned_devices_and_no_extras A User gets only their devices’ alarms; cleared=1 and held=1 are ignored for them and mute rules are refused. pass

ALR-06

Alerts: POST /api/alerts/read by an admin or defender marks every alert read for everyone; a User’s mark-read is a private marker that leaves others’ unread state alone. (source: USER_GUIDE.md §4)

Level Test Verifies Status
unit test_alerts_page.AlertsPageJsTest.test_mark_all_read_button Mark all read posts /api/alerts/read, zeroes the bell and redraws the page; it is only offered while something is unread. pass
e2e test_e2e_alerts.AlertsApi.test_read_markers_per_role A User’s mark-read is private (others still see the alert unread); an admin or defender marks every alert read for everyone. pass

ALR-07

Alerts: GET /api/alerts/mutes lists the legacy mute rules with how many alerts each cleared for admins and defenders and is refused for Users; the page shows them in the Alert mute rules card. (source: USER_GUIDE.md §4)

Level Test Verifies Status
unit test_alerts_page.AlertsPageJsTest.test_mute_rules_card_and_cleared_view Admins / defenders see the legacy mute rules with Remove rule and show cleared (N); the cleared view lists what rules cleared; Users see neither. pass
e2e test_e2e_alerts.AlertsApi.test_mute_rules_list Admins and defenders get the legacy mute rules with how many alerts each cleared. pass
e2e test_e2e_alerts.AlertsApi.test_user_sees_only_assigned_devices_and_no_extras A User gets only their devices’ alarms; cleared=1 and held=1 are ignored for them and mute rules are refused. pass

ALR-08

Alerts: New mute rules can no longer be created: POST /api/alerts/mutes only accepts remove (unknown rule 404) and store.mute_add raises. (source: USER_GUIDE.md §4)

Level Test Verifies Status
unit test_alerts_page.AlertStoreTest.test_mute_add_cannot_create_rules No new mute rule can be created any more, even with a valid pattern; the rule list stays empty. pass
e2e test_e2e_alerts.AlertsApi.test_mute_remove_bad_id_is_a_client_error A non-numeric mute rule id is a 400 bad request, not a 500 server error. pass
e2e test_e2e_alerts.AlertsApi.test_mute_rule_remove_restores_alerts Only remove is accepted; an unknown rule is 404; removing a rule (as a defender) brings its alert back into the feed as read. pass

ALR-09

Alerts: An alert matching a legacy mute rule is stored cleared, read and never pushed; removing the rule brings back only its alerts, as read and without pushing them. (source: USER_GUIDE.md §4)

Level Test Verifies Status
unit test_alerts_page.AlertStoreTest.test_mute_remove_restores_only_its_alerts_as_read_and_unpushed_stays_empty Removing one mute rule brings back only the alerts it cleared, as read and without queueing them for push again. pass
unit test_alerts_page.AlertStoreTest.test_muted_alert_is_stored_cleared_read_and_never_pushed A new alert matching a host-scoped legacy mute rule is stored cleared, read and already pushed; one for another host is not. pass
e2e test_e2e_alerts.AlertsApi.test_mute_rule_remove_restores_alerts Only remove is accepted; an unknown rule is 404; removing a rule (as a defender) brings its alert back into the feed as read. pass

ALR-10

Alerts: A suppressed alert is hidden from the feed and push queue but still returned to correlation, research and review. (source: USER_GUIDE.md §4)

Level Test Verifies Status
unit test_alerts_page.AlertStoreTest.test_suppressed_alert_hidden_from_feed_but_correlated A suppressed alert is out of the feed and push queue but still in the correlation set; muted and review alerts are not. pass

ALR-11

Alerts: Alerts of every kind (feed, cleared, held) are kept 30 days. (source: USER_GUIDE.md §4)

Level Test Verifies Status
unit test_alerts_page.AlertStoreTest.test_thirty_day_window_covers_every_kind Adding alerts keeps a 29-day-old alert and deletes 31-day-old ones whether cleared, held or in the feed. pass

ALR-12

Alerts: The watcher raises an investigate detection for a Suricata severity-1 or malware / C2 / exploit category hit not on the known-benign list, naming source, destination and ATT&CK technique. (source: USER_GUIDE.md §4)

Level Test Verifies Status
unit test_alerts_page.WatcherRulesTest.test_ids_severity1_and_malware_categories_raise_investigate A Suricata hit not on the known-benign list raises an investigate detection with source/destination and ATT&CK; a benign one is skipped. pass

ALR-13

Alerts: The watcher raises a new-device detection for an unknown DHCP MAC or an unknown internal IP with 10+ connections, only once a device registry exists. (source: USER_GUIDE.md §4)

Level Test Verifies Status
unit test_alerts_page.WatcherRulesTest.test_new_device_check_needs_a_registry With an empty device registry the new-device checks are skipped (no flood of alerts on a first run). pass
unit test_alerts_page.WatcherRulesTest.test_new_device_dhcp_mac_and_active_ip An unknown DHCP MAC and an unknown internal IP with 10+ connections raise new-device detections; known, quiet, .1 and .255 do not. pass

ALR-14

Alerts: The watcher raises a detection for an answered inbound Internet connection on a port the device has never served, once snapshot history exists. (source: USER_GUIDE.md §4)

Level Test Verifies Status
unit test_alerts_page.WatcherRulesTest.test_new_internet_facing_port An answered inbound port a device never served raises a detection; a served port, or no history yet, does not. pass

ALR-15

Alerts: The watcher raises investigate detections for DNS names and TLS SNI on a threat-intel feed and for outbound connections to IPs on a serious feed. (source: USER_GUIDE.md §4)

Level Test Verifies Status
unit test_alerts_page.WatcherRulesTest.test_threat_intel_domain_sni_and_serious_ip DNS names and TLS SNI on a feed raise investigate detections; an outbound IP only when listed on a serious feed. pass

ALR-16

Alerts: The watcher raises a DNS-tunnel detection for a domain with 150+ distinct long (avg 20+ chars), high-entropy subdomains in an hour unless benign-listed. (source: USER_GUIDE.md §4)

Level Test Verifies Status
unit test_alerts_page.WatcherRulesTest.test_dns_tunnel_thresholds A domain with 150+ distinct long high-entropy subdomains raises a tunnel detection; too few, short or benign-listed do not. pass

ALR-17

Alerts: The watcher raises endpoint detections for Investigate-level host findings and for listed Review-level kinds (e.g. agent offline), never for checked-off findings. (source: USER_GUIDE.md §4)

Level Test Verifies Status
unit test_alerts_page.WatcherRulesTest.test_endpoint_problems Investigate-level host findings always alert (ALERT, investigate); review-level only for the listed kinds; checked-off ones never. pass

ALR-18

Alerts: The watcher raises detections for high / medium admin sessions with failed logins or refused connections (high = ALERT, investigate). (source: USER_GUIDE.md §4)

Level Test Verifies Status
unit test_alerts_page.WatcherRulesTest.test_failed_admin_logins High / medium admin sessions with failed logins or refused connections alert (high = ALERT); low or failure-free ones do not. pass

ALR-19

Alerts: A watcher finding is not raised again for 12 hours, and watcher findings are stored as held detections (not in the feed, not pushed, not unread) for the AI review. (source: USER_GUIDE.md §4)

Level Test Verifies Status
unit test_alerts_page.WatcherRulesTest.test_repeat_muted_for_twelve_hours A finding raised once is not raised again on the next run; after 12 hours it is raised again. pass
unit test_alerts_page.WatcherRulesTest.test_watcher_detections_are_held_not_alarms Watcher findings are stored as held detections: not in the alarm feed, not pushed, not unread, but listed for the AI review. pass

ALR-20

Alerts: The bell shows the unread count (99+ above 99, my-devices count when narrowed, hidden at zero) and the tab title carries it; Mark all read clears it. (source: USER_GUIDE.md §4)

Level Test Verifies Status
unit test_alerts_page.AlertsPageJsTest.test_bell_count_and_title The bell shows the unread count (99+ above 99) and the tab title carries it; with nothing unread the bell is hidden. pass
unit test_alerts_page.AlertsPageJsTest.test_bell_uses_my_devices_count_when_narrowed For an account alerting on chosen devices only, the bell counts the unread alerts of those devices. pass
unit test_alerts_page.AlertsPageJsTest.test_mark_all_read_button Mark all read posts /api/alerts/read, zeroes the bell and redraws the page; it is only offered while something is unread. pass
e2e test_e2e_alerts.AlertsApi.test_page_and_script_served Every role can load the alerts page script; anonymous requests to the feed are refused. pass
e2e test_e2e_alerts.AlertsApi.test_read_markers_per_role A User’s mark-read is private (others still see the alert unread); an admin or defender marks every alert read for everyone. pass

ALR-21

Alerts: The Verdict column shows not reviewed, a person’s verdict (👤) or the event reviewer’s with its confidence, sorted suspicious > expected > benign > unreviewed. (source: USER_GUIDE.md §4)

Level Test Verifies Status
unit test_alerts_page.AlertsPageJsTest.test_verdict_chip_and_provenance The Verdict column shows not reviewed, a person’s verdict with 👤, the event reviewer’s with its confidence, or the decision model’s. pass

ALR-22

Alerts: Admins and defenders get Ask, Verdict, Research, Notes and Artifact notes columns; a User gets When, Level, Verdict and Alert with no check-off or Ask. Every role’s rows open inline. (source: USER_GUIDE.md §4)

Level Test Verifies Status
unit test_alerts_page.AlertsPageJsTest.test_alarm_columns_by_role Admins and defenders get Ask, When, Level, Verdict, What to do, Alert, Research, Notes, Artifact notes, row links and filter; a User gets When, Level, Alert only (no event id: nothing to open). pass
unit test_alerts_page.AlertsPageJsTest.test_research_notes_and_artifact_cells Research shows the research note, reviewed, cited pages and look-ups; Notes and Artifact notes show counts. pass
unit test_alerts_page.AlertsPageJsTest.test_user_gets_read_only_inline_review A User’s alerts carry the reviewer’s label as the Verdict and open the reviewer’s paragraph inline; no check-off, Ask, research or notes. pass

ALR-23

Alerts: Clicking an alert opens one flat panel right under its row (no modal, no nested sections): the event reviewer’s verdict and paragraph with cited pages, then for admins / defenders research, notes and artifact notes; clicking again closes it. The page lists alerts only (no detections card or verdict tiles). (source: USER_GUIDE.md §4)

Level Test Verifies Status
unit test_alerts_page.AlertsPageJsTest.test_no_detections_card_or_verdict_tiles The Alerts page lists alerts only: no Detections by verdict card, no verdict KPI tiles, no held=1 request, no modal. pass
unit test_alerts_page.AlertsPageJsTest.test_user_gets_read_only_inline_review A User’s alerts carry the reviewer’s label as the Verdict and open the reviewer’s paragraph inline; no check-off, Ask, research or notes. pass

ALR-26

Alerts: Each reviewed alert gets a second, separate verdict: advice for the device owner written by the event reviewer model as a SOC analyst to a non-technical user (one action of no_action, watch, update, password, stop_site, stop_app, stop_device, a headline, a 2-4 sentence message starting ‘Syn detected your ...' that names the site / app, says what it is and what to do, up to 4 extra steps, target); a prompt change (PROMPT_VER) rewrites all advice. It is rewritten only when the alert, the reviewer's label / reason or the research note change, at most 4 per pass; bad answers are dropped and 'stop using this device' only when 100% sure (suspicious verdict with confidence 1.0) (else the model is asked again with stop_device ruled out so the message matches; a second stop_device stores nothing). _(source: advice.py)_

Level Test Verifies Status
unit test_advice.AdviceTest.test_bad_answers_are_dropped An unknown action, an empty headline, an empty message or non-JSON text stores nothing; steps are capped at 4. pass
unit test_advice.AdviceTest.test_model_error_does_not_stop_the_pass A failing model call is logged and retried next pass; nothing is stored. pass
unit test_advice.AdviceTest.test_pass_writes_advice_and_skips_unchanged pass_() asks the model once per reviewed alert, stores action / headline / steps / why / target, and does not pass
unit test_advice.AdviceTest.test_prompt_change_rewrites_advice Bumping PROMPT_VER changes every alert’s input signature, so all advice is rewritten with the new prompt. pass
unit test_advice.AdviceTest.test_stop_device_guard_rail “Stop using this device” only when 100% sure (suspicious, confidence 1.0); otherwise the model is asked again with it ruled out pass
unit test_advice.AdviceTest.test_unreviewed_alerts_wait An alert without an event reviewer label (or a pending one) gets no advice yet and costs no model call. pass

ALR-27

Alerts: The Alerts page shows a What to do column (action chip; Users also see the headline), and the inline panel leads with the steps and why for Users (the reviewer’s text below as Analyst’s notes) and adds an Advice for the device owner section for admins / defenders. Users get the advice in their plain /api/alerts feed. (source: USER_GUIDE.md §4)

Level Test Verifies Status
unit test_advice.AdviceTest.test_pages_get_the_advice alert_view (Alerts, every role) and extras (Open events) carry the advice keyed by the row’s event id. pass

ALR-28

Alerts: What a User reads about an alarm - the Alerts-page line and the phone push - is the analyst’s model-written note (advice.py), not a fixed sentence: it says when (local time) and what the device did with the concrete site / app / amounts, the everyday thing that usually causes it, and what to do if it was them or not. A ready alarm waits for its note (written on the spot if the review pass has not) up to 30 minutes, then falls back to the plain line. (source: USER_GUIDE.md §4)

Level Test Verifies Status
unit test_advice.AdviceTest.test_ensure_writes_missing_note_first ensure() writes a missing note at once for rows a User is about to get, and the pass puts suspicious alerts pass
unit test_advice.AdviceTest.test_prompt_carries_local_time_and_group The note’s prompt gives the model the local day and time and the other events of the reviewed group, so the pass
unit test_plain_alerts.TestUserPush.test_note_wait_then_plain_fallback No note (model failing): the User’s push waits; after USER_NOTE_WAIT_S it goes with the plain fallback line, pass
unit test_plain_alerts.TestUserPush.test_user_gets_model_note_admin_gets_signature The same alarm pushes the analyst’s model-written note to a User (headline as title, note as body - written on pass
unit test_push_targeting.TestRunOnce.test_targeting_per_user Admin ‘all’ gets both alerts; a User with the laptop gets only the laptop alert; a User with ‘all’ gets none. pass

ALR-29

Alerts: Syn never tells anyone to stop using a computer or device unless it is 100% sure of a real issue: the alert advice allows stop_device only on a suspicious verdict at confidence 1.0, and the advice and Ask AI prompts both state the rule (otherwise they describe the finding and what to check). (source: advice.py)

Level Test Verifies Status
unit test_advice.AdviceTest.test_prompts_only_say_stop_using_when_100_percent_sure Owner rule: Syn never tells anyone to stop using a computer unless it is 100% sure of a real issue. The advice pass

ALR-30

Alerts: High confidence needs multiple independent indicators all pointing to the same issue: the event reviewer lists its indicators, a suspicious label with fewer than two is capped at 0.7 confidence (defenders still see it), and a User is only told about a suspicious verdict with confidence >= 0.8 and at least two indicators (or one a person marked suspicious). (source: pushgate.py)

Level Test Verifies Status
unit test_plain_alerts.TestMultipleIndicators.test_one_indicator_caps_suspicious_confidence A suspicious label resting on fewer than two independent indicators keeps at most 0.7 confidence; benign and pass
unit test_plain_alerts.TestMultipleIndicators.test_users_only_get_high_confidence_multi_indicator_verdicts A User is told only about a suspicious verdict with confidence >= 0.8 and at least two indicators (or one a person pass

ALR-31

Alerts: Baseline-finding alarms (analyze.py 24 h vs ~30-day comparisons, key ev f …) are never sent to Users - not on the Alerts page, not by push - whatever their verdict; admins and defenders still get them. (source: pushgate.py)
Level Test Verifies Status    
unit test_plain_alerts.TestMultipleIndicators.test_baseline_alerts_never_reach_users Baseline-finding alarms (key ev f …) never go to Users, even with a high-confidence multi-indicator verdict; pass

ALR-32

Alerts: The who-is-told-what numbers are settings under More > Settings > Site (min_indicators 1-5, few_indicators_max_confidence 0-1, user_alert_min_confidence 0-1, stop_device_min_confidence 0.5-1, baseline_alerts_to_users on/off; defaults 2, 0.7, 0.8, 1.0, off), shown with defaults and notes, validated, read live by the event reviewer (cap and prompt), the User alert gate and the advice. (source: docs/USER_GUIDE.md)

Level Test Verifies Status
unit test_plain_alerts.TestTrustSettings.test_defaults_shown_and_bad_values_refused The five settings show on the Settings page with their defaults and notes; out-of-range values are refused and pass
unit test_plain_alerts.TestTrustSettings.test_settings_change_behaviour_live Changing the settings changes the reviewer’s confidence cap, the prompt numbers, what Users get, baseline pass

ALR-24

Alerts: Which devices alert me: admins and defenders pick All devices or chosen devices (chosen first, badges, save message); a User sees their admin-assigned devices read-only. (source: USER_GUIDE.md §4)

Level Test Verifies Status
unit test_alerts_page.AlertsPageJsTest.test_device_picker_modes devicePicker: all hides the list, some shows it with chosen devices first and a count, badges, noAll, cancel, no match and the save message. pass
unit test_alerts_page.AlertsPageJsTest.test_my_devices_panel_locked_for_user A User sees the devices an admin assigned (read-only) or a note that none are assigned; no picker. pass
unit test_alerts_page.AlertsPageJsTest.test_my_devices_picker_for_admin An admin or defender gets the Which devices alert me picker with All devices and Only devices I choose. pass

ALR-25

Alerts: The Alerts page has explicit empty states (no alerts, no cleared alerts), a cleared view toggle, a my-devices toggle, and falls back to the plain feed when extras are unavailable. (source: USER_GUIDE.md §4)

Level Test Verifies Status
unit test_alerts_page.AlertsPageJsTest.test_empty_mute_card_does_not_offer_removed_mute_creation After the last mute rule is removed in the cleared view, the empty rules card must not tell people to create one with mute name…. pass
unit test_alerts_page.AlertsPageJsTest.test_empty_states With no alerts the feed says so; an empty cleared view says so too. pass
unit test_alerts_page.AlertsPageJsTest.test_mute_rules_card_and_cleared_view Admins / defenders see the legacy mute rules with Remove rule and show cleared (N); the cleared view lists what rules cleared; Users see neither. pass
unit test_alerts_page.AlertsPageJsTest.test_no_mute_rules_means_no_mute_card Without legacy mute rules there is no mute-rules card and no show cleared link. pass
unit test_alerts_page.AlertsPageJsTest.test_older_server_falls_back_to_plain_feed When the verdict extras, detections and mute rules cannot be loaded the page still shows the plain feed, without verdict columns or detections. pass
unit test_alerts_page.AlertsPageJsTest.test_only_my_devices_toggle An admin alerting on chosen devices sees only their alerts with a show all N link; the toggle shows every alert; ?ev= skips the filter. pass

OE-01

Open events: Every snapshot’s correlation events are persisted in the events table: one row per event id, seen-count incremented once per snapshot, first/last seen and event times only widen, and label/severity/link/doc come from the newest event (capped source item kept). (source: USER_GUIDE.md (Open events) / eventstore.py)

Level Test Verifies Status
unit test_open_events.UpsertTest.test_doc_keeps_ips_and_capped_source_item The stored doc keeps ips/host_ips/dst_ips/arts and the source row, with long strings and lists capped. pass
unit test_open_events.UpsertTest.test_empty_input_stores_nothing No events or no snapshot id stores nothing and returns 0. pass
unit test_open_events.UpsertTest.test_older_snapshot_does_not_overwrite_newer_data Label, severity, link and stored doc come from the event with the latest t1; replaying an older snapshot keeps them. pass
unit test_open_events.UpsertTest.test_seen_once_per_snapshot_and_times_widen n counts distinct snapshots (same snapshot twice counts once); first/last seen and t0/t1 only ever widen. pass

OE-02

Open events: Fix-list (vulnerability) events in the events store resolve when the latest snapshot no longer lists them, an older snapshot never closes them, and they reopen when listed again. (source: USER_GUIDE.md (Open events) / eventstore.py)

Level Test Verifies Status
unit test_open_events.RelatedDetailTest.test_detail_of_resolved_vuln_shows_only_itself A resolved Fix-list item still opens (its own row) even though it is no longer open. pass
unit test_open_events.VulnLifecycleTest.test_latest_snapshot_closes_unlisted_vulns_only The latest snapshot resolves vulnerabilities it no longer lists; listed ones and other types stay open. pass
unit test_open_events.VulnLifecycleTest.test_older_snapshot_never_closes_vulns sync_vulns on a non-latest snapshot changes nothing. pass
unit test_open_events.VulnLifecycleTest.test_vuln_listed_again_reopens A resolved Fix-list item that a later snapshot lists again is open again. pass

OE-03

Open events: Repeats of one condition collapse into one row: finding ids that differ only in volatile numbers share a key (IPs, ports, MACs still distinguish), list findings naming the same items in another order share a key (stored group check-offs migrated once, Posture grpRef matches), segmentation findings group by flow key, other events are their own key. (source: USER_GUIDE.md (Open events) / eventstore.py)

Level Test Verifies Status        
unit test_open_events.GroupingKeyTest.test_findings_differing_only_in_numbers_share_a_key Two baseline findings that differ only in counts group together; a different IP, device or kind does not. pass        
unit test_open_events.GroupingKeyTest.test_gateway_repeats_group_by_type_src_dst Gateway events (gw ) group by UniFi event type + source + destination: the same pass
unit test_open_events.GroupingKeyTest.test_group_checkoff_keys_migrate_to_sorted_form Stored group check-offs of list findings (acks, autoclose_log.refs) move to the sorted-list key once, so a pass        
unit test_open_events.GroupingKeyTest.test_list_findings_group_regardless_of_list_order A list finding (new-tls-server etc.) naming the same servers in another order is the same condition (a Posture pass        
unit test_open_events.GroupingKeyTest.test_non_findings_are_their_own_key IDS, gateway, host, admin and malformed finding ids are their own logical key. pass        
unit test_open_events.GroupingKeyTest.test_norm_masks_counts_keeps_ips_ports_macs Volatile numbers become #, while IPs, ‘port N’, N/tcp and MAC addresses are kept verbatim. pass        
unit test_open_events.GroupingKeyTest.test_posture_group_ref_matches_server_key app.js grpRef (Posture check-off lookup) sorts the list exactly like eventstore.gkey. pass        
unit test_open_events.GroupingKeyTest.test_segmentation_groups_by_flow_key A segmentation finding groups under seg (the key a cleared flow uses). pass  
unit test_open_events.OpenEventsListTest.test_repeats_collapse_into_one_row Two variants of one finding are one row: the newest variant’s id and label, summed seen count, both members, pass        
e2e test_e2e_open_events.OpenEventsApi.test_list_order_and_collapsed_rows The list is severity then newest first, beacon variants are one row and the segmentation flows of one device pass        

OE-04

Open events: Open events lists unchecked, unresolved events of any age, most severe then newest first; a collapsed row shows the newest variant with summed seen count, all members, earliest first-seen and its source item/IPs. (source: USER_GUIDE.md (Open events) / eventstore.py)

Level Test Verifies Status
unit test_open_events.OpenEventsListTest.test_most_severe_then_newest_first Rows are ordered by severity (high before medium before low), then newest event time first. pass
unit test_open_events.OpenEventsListTest.test_repeats_collapse_into_one_row Two variants of one finding are one row: the newest variant’s id and label, summed seen count, both members, pass
unit test_open_events.OpenEventsListTest.test_row_carries_item_and_ips A row returns the stored source item (Ask AI / Kibana pivot) and the event’s IPs. pass
e2e test_e2e_open_events.OpenEventsApi.test_list_order_and_collapsed_rows The list is severity then newest first, beacon variants are one row and the segmentation flows of one device pass

OE-05

Open events: The list can be filtered by type, severity (case-insensitive) and label text and limited in size; total and per-type counts always describe everything open, and limit=0 returns only the count. (source: USER_GUIDE.md (Open events) / eventstore.py)

Level Test Verifies Status
unit test_open_events.OpenEventsListTest.test_counts_and_total_ignore_filters total and per-type counts describe everything open, whatever filter or limit the request used. pass
unit test_open_events.OpenEventsListTest.test_limit_and_count_only_request limit caps the rows returned (shown); limit=0 (the nav badge) returns the total with no rows and no extras. pass
unit test_open_events.OpenEventsListTest.test_type_severity_and_text_filters type= keeps only those types, sev= matches severity case-insensitively, q= is a case-insensitive label search. pass
e2e test_e2e_open_events.OpenEventsApi.test_filters type= (repeatable), sev= (any case) and q= filter the rows; counts and total stay unfiltered. pass

OE-06

Open events: Each event kind maps to the same check-off (ack) type/key the other pages use; kinds without their own list (IDS, threat intel, alerts) are stored as type ‘event’. (source: USER_GUIDE.md (Open events) / eventstore.py)

Level Test Verifies Status
unit test_open_events.CheckOffTest.test_ack_refs_per_event_kind Each event kind maps to the check-off list the other pages use; kinds without one use (‘event’, eid). pass
unit test_open_events.CheckOffTest.test_k_in k_in is true only when the key is stored under that ack type. pass

OE-07

Open events: A checked-off event (including a Posture check-off of the newest variant or a cleared segmentation flow) is hidden; checking off a collapsed row also hides future variants of it; unchecking restores it. (source: USER_GUIDE.md (Open events) / eventstore.py)

Level Test Verifies Status
unit test_open_events.CheckOffTest.test_checked_off_event_leaves_and_unchecking_restores Checking an IDS signature off (type ‘event’) removes it from the list and the counts; unchecking restores it. pass
unit test_open_events.CheckOffTest.test_cleared_segmentation_flow_hides_its_findings A segmentation finding is hidden when its flow key is checked off under ‘seg’ (cleared / suppressed flow). pass
unit test_open_events.CheckOffTest.test_group_check_off_also_hides_future_variants Checking off a collapsed row (group ack) hides it, and a new variant next night with other numbers stays hidden. pass
unit test_open_events.CheckOffTest.test_posture_check_off_of_newest_variant_hides_row Checking the newest variant off on Posture (its finding ack) hides the collapsed row on Open events too. pass
unit test_open_events.CheckOffTest.test_row_acks_cover_every_variant A collapsed finding row’s check-off list is its newest variant’s ack, the group ack, then each variant’s ack. pass
e2e test_e2e_open_events.OpenEventsApi.test_check_off_and_restore_through_api Posting a row’s check-off list hides it (total drops by one); unchecking restores it. pass

OE-08

Open events: Alert events are listed only while their alert is live (not cleared, not a held detection, not a review alarm). (source: USER_GUIDE.md (Open events) / eventstore.py)

Level Test Verifies Status  
unit test_open_events.CheckOffTest.test_alert_events_follow_the_alert_feed alert events are listed only while the alert is live: cleared, held (detection) or review alerts are not. pass

OE-09

Open events: On the page, host-process findings differing only in the remote side merge into one ‘N variants’ row and segmentation findings of one device and rule toward several devices merge into one ‘-> multiple devices (N)’ row, each with children, union of IPs and all check-offs. (source: USER_GUIDE.md (Open events) / eventstore.py)

Level Test Verifies Status
unit test_open_events.MergeTest.test_other_host_kinds_and_single_variant_not_merged A lone variant keeps its own label; kinds outside hnet-proc/hnet-in/net-new are never merged. pass
unit test_open_events.MergeTest.test_process_variants_become_one_row Host findings of one process on one host that differ only in the remote side are one row ‘N variants’ with pass
unit test_open_events.MergeTest.test_rows_without_flow_text_pass_through Non-segmentation rows and segmentation rows whose detail is not a flow are returned unchanged. pass
unit test_open_events.MergeTest.test_segmentation_toward_many_devices_is_one_row Segmentation findings of one device and one rule toward several devices become ‘-> multiple devices (N)’. pass
e2e test_e2e_open_events.OpenEventsApi.test_list_order_and_collapsed_rows The list is severity then newest first, beacon variants are one row and the segmentation flows of one device pass

OE-10

Open events: Each displayed row carries extras from its newest member with data: AI research note, classification, person notes, related count and seen counts; failing sources do not break the page. (source: USER_GUIDE.md (Open events) / eventstore.py)

Level Test Verifies Status
unit test_open_events.ExtrasTest.test_failing_sources_do_not_break_the_page If the notes sources raise, extras still returns empty maps and the seen counts. pass
unit test_open_events.ExtrasTest.test_newest_member_with_data_wins_and_seen_is_set A collapsed row takes the newest variant that has a note / class / person note; ‘seen’ carries n and times. pass
unit test_open_events.ExtrasTest.test_open_events_attaches_extras_for_shown_rows open_events returns extras keyed by the shown rows’ ids. pass
unit test_open_events.ExtrasTest.test_related_count_and_decision_model_from_stored_verdicts Rows get their related count from stored verdicts (any member); the decision model labels links only, so no event label. pass

OE-11

Open events: The Related view of a row lists stored related links of all its members (not links between its own members) with event records for partners, including pruned ones. (source: USER_GUIDE.md (Open events) / eventstore.py)

Level Test Verifies Status
unit test_open_events.ExtrasTest.test_related_count_and_decision_model_from_stored_verdicts Rows get their related count from stored verdicts (any member); the decision model labels links only, so no event label. pass
unit test_open_events.RelatedDetailTest.test_related_lists_links_of_all_members_with_event_records related() returns links of every member (not links between its own members), records for partners (a pruned pass
e2e test_e2e_open_events.OpenEventsApi.test_related_and_member_cap /related returns stored links of the row’s members; only the first 12 m= members are used. pass

OE-12

Open events: The event window (detail) lists every open variant of the condition newest first with their firings; unknown ids give an empty answer and a resolved Fix-list item still opens. (source: USER_GUIDE.md (Open events) / eventstore.py)

Level Test Verifies Status
unit test_open_events.RelatedDetailTest.test_detail_lists_every_open_variant_newest_first detail() lists all open variants of the condition newest first with their firings; unrelated ids are excluded. pass
unit test_open_events.RelatedDetailTest.test_detail_of_resolved_vuln_shows_only_itself A resolved Fix-list item still opens (its own row) even though it is no longer open. pass
unit test_open_events.RelatedDetailTest.test_detail_of_unknown_event_is_empty An event id that is not stored gives an empty detail, not an error. pass
unit test_open_events.RelatedDetailTest.test_detail_related_rows_carry_their_time_span Each related event in the event window carries when it happened (first..last over its merged variants). pass
e2e test_e2e_open_events.OpenEventsApi.test_detail_window /detail lists both beacon variants newest first and their firings; no or an unknown id gives an empty answer. pass

OE-13

Open events: The AI-inputs pop-up returns an event’s stored determinations and a record of every event passed in to them. (source: USER_GUIDE.md (Open events) / eventstore.py)

Level Test Verifies Status
unit test_open_events.RelatedDetailTest.test_decision_inputs_returns_input_event_records decision_inputs() returns the event’s determinations and a record for every event passed in to them. pass
e2e test_e2e_open_events.OpenEventsApi.test_inputs /inputs answers an empty determination list (LLM off) and an empty shape without an id. pass

OE-14

Open events: The Open events API (/api/events/open, /detail, /inputs, /related) is readable by admins and defenders only: the User role gets 403 and no session gets 401. (source: server.py USER_GET / ACCESS_CONTROL.md)

Level Test Verifies Status
unit test_open_events.ApiRoutingTest.test_user_role_allow_list_excludes_open_events USER_GET (the User role’s GET allow-list) contains none of the /api/events/* endpoints. pass
e2e test_e2e_open_events.OpenEventsApi.test_roles Admins and defenders read every Open events endpoint; the User role gets 403 and no session gets 401. pass

OE-15

Open events: The Open events page draws one card per event type in a fixed order, titled with the open count, with the shared check/severity/verdict/notes and seen columns plus type-specific columns; every type correlate.py emits has a card. (source: USER_GUIDE.md (Open events) / openevents.js)

Level Test Verifies Status
unit test_open_events.OpenEventsPageJsTest.test_columns_per_type Every card starts with check box, Severity, Verdict, Notes and ends with First occurred, Last occurred, Seen; the pass
unit test_open_events.OpenEventsPageJsTest.test_every_correlation_type_has_a_card Every event type correlate.py emits has a card in openevents.js TYPES (no open event is invisible), except pass
unit test_open_events.OpenEventsPageJsTest.test_one_card_per_type_in_page_order Every type has a card, in the page’s fixed type order, titled with the open count; a type with nothing open pass

OE-16

Open events: Cards never disappear: with nothing open (overall or of one type) every type keeps its card with a ‘Nothing open’ line, and the KPI line shows 0s. (source: openevents.js)

Level Test Verifies Status
unit test_open_events.OpenEventsPageJsTest.test_empty_state With nothing open the page still shows the KPI line and every type’s card, each saying ‘Nothing open’. pass

OE-17

Open events: The Open events GET endpoints answer over HTTPS with the persisted store: filters, collapsed rows, check-offs via /api/acks, detail, inputs and related. (source: USER_GUIDE.md (Open events) / eventstore.py)

Level Test Verifies Status
e2e test_e2e_open_events.OpenEventsApi.test_check_off_and_restore_through_api Posting a row’s check-off list hides it (total drops by one); unchecking restores it. pass
e2e test_e2e_open_events.OpenEventsApi.test_detail_window /detail lists both beacon variants newest first and their firings; no or an unknown id gives an empty answer. pass
e2e test_e2e_open_events.OpenEventsApi.test_filters type= (repeatable), sev= (any case) and q= filter the rows; counts and total stay unfiltered. pass
e2e test_e2e_open_events.OpenEventsApi.test_inputs /inputs answers an empty determination list (LLM off) and an empty shape without an id. pass
e2e test_e2e_open_events.OpenEventsApi.test_list_order_and_collapsed_rows The list is severity then newest first, beacon variants are one row and the segmentation flows of one device pass
e2e test_e2e_open_events.OpenEventsApi.test_related_and_member_cap /related returns stored links of the row’s members; only the first 12 m= members are used. pass

OE-19

Open events: Fix-list items (vulnerabilities / misconfigurations) are not part of Open events: /api/events/open leaves them out of rows, per-type counts, the total and the nav badge, and the page has no Fix list card (they are on the Fix list page). (source: USER_GUIDE.md (Open events) / server.py / openevents.js)

Level Test Verifies Status
unit test_open_events.OpenEventsListTest.test_exclude_drops_type_from_rows_counts_and_total exclude= leaves a type out entirely: no rows, no per-type count and not in the total (the page’s Fix-list pass
unit test_open_events.OpenEventsPageJsTest.test_every_correlation_type_has_a_card Every event type correlate.py emits has a card in openevents.js TYPES (no open event is invisible), except pass
e2e test_e2e_open_events.OpenEventsApi.test_filters type= (repeatable), sev= (any case) and q= filter the rows; counts and total stay unfiltered. pass

OE-18

Open events: /api/events/open returns at most 2000 rows by default and caps any limit at 5000; invalid limits (negative, non-numeric) must not return unexpected rows or a server error. (source: server.py /api/events/open)

Level Test Verifies Status
e2e test_e2e_open_events.OpenEventsApi.test_limit_default_and_cap Without limit at most 2000 rows come back; any larger limit is capped at 5000; limit=0 is the count only. pass
e2e test_e2e_open_events.OpenEventsApi.test_negative_limit_returns_no_rows A negative limit returns no rows (counts only), never rows beyond the 5000 cap. pass
e2e test_e2e_open_events.OpenEventsApi.test_non_numeric_limit_is_a_client_error A non-numeric limit is answered 400 (bad request), not 500. pass

OE-21

Open events: An event that is an alert shows the analyst’s advice for the device owner as a collapsed arrow in its detail window: the summary holds the action chip and headline, opening it shows the message, steps and the model. (source: USER_GUIDE.md (Alerts) / openevents.js)

Level Test Verifies Status
unit test_advice.AdviceTest.test_pages_get_the_advice alert_view (Alerts, every role) and extras (Open events) carry the advice keyed by the row’s event id. pass

OE-20

Open events: Every AI verdict badge (label, Pending review, Not reviewed, Posture’s auto-closed check-off flair) opens a verdict pop-up on click or tap: GET /api/verdict (loaded on tap) returns the event reviewer’s label, confidence, reason, model and time, why it is pending or not reviewed, and the auto-close log for the event with a Reopen (POST /api/verdict/reopen) that un-checks it for good. (source: USER_GUIDE.md (Pending review / Not reviewed, AI verdict pop-up))

Level Test Verifies Status
unit test_autoclose.AutoCloseOpenEvents.test_verdict_popup_info_and_reopen The verdict pop-up (GET /api/verdict) finds an auto-closed check-off’s event from its (type, key), returns the pass

POS-01

Posture: The page loads time ranges only: /api/snapshot answers range ids and refuses review-run, malformed or path-traversal ids; there is no review-run list (/api/snapshots). (source: USER_GUIDE.md §3 Choosing a time range)

Level Test Verifies Status
unit test_posture.PostureSnapshotLoad.test_snapshot_rejects_bad_ids snapshot() returns None for a missing snapshot, a malformed id or a path-traversal id. pass
unit test_posture.PostureSnapshotLoad.test_snapshot_returns_raw_and_companions snapshot() returns the raw collection plus its analysis and sources companions (None when absent). pass
unit test_posture.PostureSnapshotLoad.test_snapshots_list_ordered_with_companions snapshots() lists only well-formed nightly ids, oldest first, with the companions each one has. pass
unit test_runarchive.RangeOnlyPage.test_snapshot_api_refuses_review_runs The page API serves time ranges only: a review-run id is refused, there is no /api/snapshots list, and a pass
e2e test_e2e_posture.PostureSnapshotApi.test_review_runs_refused_and_unknown_ids There is no review-run list (/api/snapshots is 404); review-run ids (and ‘latest’) are refused with ‘pick a time range’; pass
e2e test_e2e_posture.PostureSnapshotApi.test_time_range_has_every_posture_section GET /api/snapshot?id= pass

POS-02

Posture: The snapshot API carries the data of every Posture box: baseline and host findings, IDS signatures, segmentation violations, beacon candidates, threat-intel feeds/hits, DNS-tunnel scoring, malicious JA3 / internal scans, Zeek notices/weird, files and software inventory. (source: USER_GUIDE.md §6 Security → Posture)

Level Test Verifies Status
unit test_posture.PostureAckLogicJs.test_posture_view_renders_sections_in_order The Posture view (V.security) builds its boxes from the snapshot sections this file checks, in the documented order. pass
unit test_posture.PostureSnapshotLoad.test_every_posture_section_present The snapshot holds the data of every Posture box: baseline/host findings, IDS, violations, beacons, TI, tunnel, JA3/scans, files/software. pass
e2e test_e2e_posture.PostureSnapshotApi.test_time_range_has_every_posture_section GET /api/snapshot?id= pass

POS-03

Posture: A nightly report covers the window generated - hours .. generated (24 hours when hours is missing). (source: USER_GUIDE.md §3 Choosing a time range)

Level Test Verifies Status
unit test_posture.TimeRangeSemantics.test_snap_window snap_window gives (generated - hours, generated); hours default to 24; None when the snapshot or its time is missing. pass

POS-04

Posture: Every requested start/end is handed to the host broker as a time range (no review-run shortcut); times need a UTC offset and the end must be after the start. The page opens on the last 24 h (/api/range/default): the newest pre-collected window (range_warm.py, every 15 minutes) when one is done, else a fresh range. (source: USER_GUIDE.md §3 Choosing a time range)

Level Test Verifies Status
unit test_posture.TimeRangeSemantics.test_arbitrary_range_goes_to_broker Every window is handed to the host broker (/range) with UTC ISO times and its answer returned. pass
unit test_posture.TimeRangeSemantics.test_range_request_validation Times without a UTC offset, unparsable times or an end not after the start are 400; a broker error is a 400 with its message. pass
unit test_runarchive.RangeOnlyPage.test_default_range_picks_newest_done_window /api/range/default: the last 24 h ending on the 15-minute boundary; when that slot is not collected yet the pass
unit test_runarchive.RangeOnlyPage.test_range_request_never_uses_review_run A window that matches a review run is still collected as a time range by the host broker. pass
unit test_runarchive.RangeWarm.test_broker_prune_spares_warm_ranges The broker’s range prune (people’s picks, RANGE_KEEP) never deletes the pre-collected default windows, pass
e2e test_e2e_posture.PostureSnapshotApi.test_range_request POST /api/range: every window, even one matching a review run, needs the host broker (400 here, none configured). pass

POS-05

Posture: For a time range, alarms, AI triage, correlation and sources come from the newest nightly report generated at or before the range end (the oldest report when none is). (source: USER_GUIDE.md §3 Choosing a time range)

Level Test Verifies Status
unit test_posture.TimeRangeSemantics.test_base_snapshot_picks_newest_report_ending_by_range_end base_snapshot: the newest nightly generated at or before the end; inclusive; the oldest when none is; None without snapshots. pass
unit test_posture.TimeRangeSemantics.test_range_snapshot_follows_nightly_report A collected time range shows its own findings; its base (the review run whose correlation it uses) is the one by its end; no review-run companions ride along. pass
e2e test_e2e_posture.PostureSnapshotApi.test_time_range_names_its_base_review_run A collected time range returns its own findings and names the review run (base) whose correlation it uses. pass

POS-06

Posture: A collected time range shows its own findings; while it is still being collected the page gets an empty skeleton of the right shape and loads its sections one by one. (source: USER_GUIDE.md §3 Choosing a time range)

Level Test Verifies Status
unit test_posture.TimeRangeSemantics.test_range_section_slices_or_asks_broker range_section slices an assembled range without the broker, asks the broker for a missing piece, rejects unknown names. pass
unit test_posture.TimeRangeSemantics.test_range_snapshot_follows_nightly_report A collected time range shows its own findings; its base (the review run whose correlation it uses) is the one by its end; no review-run companions ride along. pass
unit test_posture.TimeRangeSemantics.test_range_snapshot_needs_raw_and_analysis A range without its analysis (still collecting) is not a snapshot; the page gets the skeleton instead. pass
e2e test_e2e_posture.PostureSnapshotApi.test_range_sections GET /api/section slices an assembled range; unknown pieces are 404 and nothing reaches a host broker. pass
e2e test_e2e_posture.PostureSnapshotApi.test_time_range_names_its_base_review_run A collected time range returns its own findings and names the review run (base) whose correlation it uses. pass

POS-07

Posture: A segmentation suppress rule (source / destination / ports) hides matching segmentation violations and findings from the served data without changing the stored snapshot, and a failing filter never breaks the page. (source: USER_GUIDE.md §6 Security → Posture)

Level Test Verifies Status
unit test_posture.SuppressRulesHideEverywhere.test_filter_failure_keeps_snapshot A failing suppress filter is logged and the snapshot is still served unfiltered. pass
unit test_posture.SuppressRulesHideEverywhere.test_seg_filter_hides_violations_and_findings seg_filter drops the violations and segmentation findings a rule covers, keeps the rest and never changes its input. pass
unit test_posture.SuppressRulesHideEverywhere.test_snapshot_applies_suppress_rules_without_touching_store snapshot() applies segmentation and IDS suppress rules; the stored documents stay complete and removing the rules restores the rows. pass
e2e test_e2e_posture.PostureSuppressApi.test_seg_suppress_hides_everywhere_then_restores A segmentation suppress rule hides the flow in every time range; removing it brings the flow back. pass

POS-08

Posture: Segmentation suppress rules match MAC-keyed findings through the device’s IP from the newest snapshot. (source: USER_GUIDE.md §6 Security → Posture)

Level Test Verifies Status
unit test_posture.SuppressRulesHideEverywhere.test_seg_filter_rule_by_ip_hides_mac_keyed_finding A rule on a source IP also hides a segmentation finding keyed by that device’s MAC (MAC -> IP from the newest snapshot). pass

POS-09

Posture: An IDS suppress rule (signature name or glob, optional host) hides the signature (or that host’s share of it) and lowers the alert counts everywhere; removing the rule restores it. (source: USER_GUIDE.md §6 Security → Posture)

Level Test Verifies Status
unit test_posture.SuppressRulesHideEverywhere.test_ids_host_rule_strips_only_that_host An IDS rule with a host strips that host’s share of the signature in the snapshot and lowers the counts. pass
unit test_posture.SuppressRulesHideEverywhere.test_snapshot_applies_suppress_rules_without_touching_store snapshot() applies segmentation and IDS suppress rules; the stored documents stay complete and removing the rules restores the rows. pass
e2e test_e2e_posture.PostureSuppressApi.test_ids_suppress_hides_everywhere_then_restores An IDS suppress rule (glob) hides the signature and its count in every time range; removing it restores them. pass

POS-10

Posture: Suppress rules are not time based: they apply to every nightly report and every time range. (source: USER_GUIDE.md §6 Security → Posture)

Level Test Verifies Status
unit test_posture.SuppressRulesHideEverywhere.test_rules_apply_to_every_range Suppress rules are not time based: the same rule hides the row in a nightly snapshot and in a collected range. pass
e2e test_e2e_posture.PostureSuppressApi.test_ids_suppress_hides_everywhere_then_restores An IDS suppress rule (glob) hides the signature and its count in every time range; removing it restores them. pass
e2e test_e2e_posture.PostureSuppressApi.test_seg_suppress_hides_everywhere_then_restores A segmentation suppress rule hides the flow in every time range; removing it brings the flow back. pass

POS-11

Posture: Cleared segmentation flows (ack type ‘seg’, MAC or IP form) and segmentation suppress rules form one cleared set used by risk, lateral movement and correlation. (source: USER_GUIDE.md §5 Segmentation violations / RISK_SCORING.md)

Level Test Verifies Status
unit test_lateral_page.ClearedFlowTests.test_cleared_from_ack_store_and_suppress_rule server.with_cleared() feeds the check-off store (MAC form) and segmentation suppress rules into the graph as allowed flows. pass
unit test_posture.ClearedSegmentation.test_cleared_set_membership ClearedSet holds cleared flow keys, covers rule-matched flows (MAC sources via mac2ip) and rejects malformed keys. pass
unit test_posture.ClearedSegmentation.test_with_cleared_combines_acks_and_rules with_cleared copies the policy and adds _cleared_seg from ‘seg’ check-offs, suppress rules and the newest MAC -> IP map. pass
unit test_posture.ClearedSegmentation.test_with_cleared_survives_store_failure When the check-off store fails, with_cleared returns the policy without a cleared set instead of raising. pass
e2e test_e2e_posture.PostureCheckOffApi.test_cleared_segmentation_shared Clearing a segmentation flow (ack type ‘seg’, bulk form) is visible to every account and does not filter the time range. pass

POS-12

Posture: Check-offs are stored once per item, independent of the loaded snapshot or range, are shared by every account, and only hide rows in the page (show N checked brings them back). (source: USER_GUIDE.md §5 Checking things off / Open events vs Posture)

Level Test Verifies Status
unit test_posture.CheckOffsRangeIndependent.test_check_off_does_not_filter_server_side Checked-off rows stay in the snapshot data (the page hides them, ‘show N checked’ brings them back); only suppress rules filter. pass
unit test_posture.CheckOffsRangeIndependent.test_check_off_independent_of_loaded_range write_ack stores {type: {key: at/note/label/by}} with no snapshot or range attached; read_acks is the same whatever is loaded. pass
e2e test_e2e_posture.PostureCheckOffApi.test_ack_needs_type_and_key A check-off without a type or key is a 400. pass
e2e test_e2e_posture.PostureCheckOffApi.test_check_off_persists_across_ranges A check-off stays checked whichever time range is loaded, and the row stays in the data for ‘show N checked’. pass
e2e test_e2e_posture.PostureCheckOffApi.test_cleared_segmentation_shared Clearing a segmentation flow (ack type ‘seg’, bulk form) is visible to every account and does not filter the time range. pass

EVT-01

Event times: Each event is mapped to the Elasticsearch records behind it (Zeek, Suricata, endpoint, auth logs; most specific query first, then broader ones) and gets their first and last @timestamp inside its window; IDS signatures, admin sessions and gateway events keep their own record times; status findings with no record behind them get none. (source: USER_GUIDE.md (Open events vs Posture))

Level Test Verifies Status
unit test_evtime.SpecTest.test_alert_window_reaches_back An alert’s records are searched in the watcher window before it fired, not at the alert’s own time. pass
unit test_evtime.SpecTest.test_direct_types_need_no_query IDS signatures, admin sessions and gateway events already carry record times: copied, nothing queried. pass
unit test_evtime.SpecTest.test_falls_back_to_broader_query When the specific record is not found, the next, broader alternative answers. pass
unit test_evtime.SpecTest.test_host_finding_process A new-process host finding looks up that executable’s process events on that host. pass
unit test_evtime.SpecTest.test_nothing_found_is_none No matching record -> (None, None), so the page falls back to when Syn saw it. pass
unit test_evtime.SpecTest.test_port_spike_uses_device_and_port A baseline port spike looks up the device’s Zeek connections on that port inside the event’s window. pass
unit test_evtime.SpecTest.test_status_findings_have_no_record Status findings (agent offline, silent device, Kubernetes inventory) have nothing to look up. pass

EVT-02

Event times: Open events rows, their firings and grouped instances show when the activity happened (first/last Elasticsearch record time, filled every 15 minutes by evtime.py, incrementally as windows extend), falling back to when Syn saw the event, marked (seen), when there is no record. (source: USER_GUIDE.md (Open events))

Level Test Verifies Status
unit test_evtime.StoreTest.test_open_events_and_detail_carry_times /api/events/open rows carry et0/et1 (earliest / latest over the grouped variants) and detail() firings their own. pass
unit test_evtime.StoreTest.test_run_fills_events_and_firings Open events and their firings get first/last record times; a later window only looks up the new part and widens them. pass

EVT-03

Event times: Posture shows an Occurred column (baseline findings, host findings, threat-intel hits) with the record times inside the selected range from GET /api/events/times; missing ones are looked up on the host in the background (broker POST /evtime) and fill in without a reload; a broker failure never breaks the page. (source: USER_GUIDE.md (Posture))

Level Test Verifies Status
unit test_evtime.ApiTest.test_endpoint_routed_and_not_for_user_role GET /api/events/times is routed to eventstore.window_times and, like the other /api/events/* endpoints, pass
unit test_evtime.WindowTimesTest.test_broker_down_still_answers A broker failure never breaks the page: the cached times are returned and the rest stay pending. pass
unit test_evtime.WindowTimesTest.test_cache_and_queue Uncached rows go to the broker queue (pending); once looked up they come back from the cache, nothing queued. pass
unit test_evtime.WindowTimesTest.test_domain_hits_keyed_by_name Listed-domain hits from collect.py carry the domain in name: Posture and the correlation use it (not “None”). pass
unit test_evtime.WindowTimesTest.test_posture_items_match_page_ids Posture rows become items with the page’s ids, the range’s window and the device’s IP. pass

POS-13

Posture: Baseline and host findings carry last_seen (the newest nightly report that contained them, else the loaded snapshot’s time); the Posture tables show when they happened instead (EVT-03). (source: USER_GUIDE.md §6 Security → Posture)

Level Test Verifies Status
unit test_posture.PostureSnapshotLoad.test_findings_get_last_seen Baseline and host findings carry last_seen: the newest nightly report that contained them, else the snapshot’s own time. pass

POS-14

Posture: Each Posture box shows only unchecked rows unless ‘show N checked’ (or an event link) is active, and offers the toggle when something is checked. (source: USER_GUIDE.md §5 Checking things off / Open events vs Posture)

Level Test Verifies Status
unit test_posture.PostureAckLogicJs.test_ack_split ackSplit splits rows into open and checked, shows only open ones unless the section shows checked (or ?ev=), and offers a toggle. pass

POS-15

Posture: Check-off keys are stable across snapshots: baseline finding = fnv(device kind detail) (same as the server), host finding = its key, beacon = src dst port, DNS tunnel = lower-case domain. (source: USER_GUIDE.md §5 Checking things off / Open events vs Posture)
Level Test Verifies Status        
unit test_posture.PostureAckLogicJs.test_ack_keys Check-off keys: finding = fnv(device kind detail) (same as Python), host = finding key, beacon = src dst port, DNS tunnel = lower-case domain. pass

POS-16

Posture: Segmentation violations, segmentation findings and seg Fix-list items share one flow key, so clearing one clears all; a device’s MAC form and IP form both count as cleared. (source: USER_GUIDE.md §5 Segmentation violations / RISK_SCORING.md)

Level Test Verifies Status  
unit test_lateral_page.LateralPageJs.test_clear_column The ports table offers a Clear box only on violation or already-cleared ports, keyed like the Posture finding or the MAC form. pass  
unit test_posture.PostureAckLogicJs.test_segmentation_flow_keys Violations, segmentation findings and seg Fix-list items share the ‘seg’ flow key; MAC and IP forms of one flow both count as cleared. pass

POS-17

Posture: Baseline findings exclude segmentation findings (own box) and show the device’s Host IP even when the finding is keyed by MAC. (source: USER_GUIDE.md §6 Security → Posture)

Level Test Verifies Status
unit test_posture.PostureAckLogicJs.test_base_findings_exclude_segmentation Baseline findings leave out segmentation findings (own box) and resolve a MAC-keyed device to its Host IP. pass

POS-18

Posture: Host findings show a Host column (the computer from the finding key) and a To column (remote side for outbound, this host:port with the source for inbound, empty otherwise). (source: USER_GUIDE.md §6 Security → Posture)

Level Test Verifies Status
unit test_posture.PostureAckLogicJs.test_host_finding_host_and_to_columns Host findings: Host is the second key part; To is the remote side for outbound, this host:port with the source for inbound, empty otherwise. pass

POS-19

Posture: Admins and defenders read Posture data and manage check-offs and suppress rules; a User gets 403 for snapshots, sections, check-offs, ranges and suppress rules. (source: ACCESS_CONTROL.md / USER_GUIDE.md §6)

Level Test Verifies Status
e2e test_e2e_posture.PostureRoles.test_defender_reads_and_edits A Network defender reads Posture data and may add and remove suppress rules (can_edit). pass
e2e test_e2e_posture.PostureRoles.test_user_role_cannot_read_or_change_posture A User gets 403 for time ranges, sections, check-offs and suppress rules, and nothing is changed. pass

POS-21

Posture: A time range collected after the review job still shows the first-seen host findings (new executable, new destination, new login, new listener) that happened in it: new baseline entries on a seasoned host carry their first-seen minute and a range judges ‘new’ against the baseline as of its start. (source: USER_GUIDE.md §6 Security → Posture)

Level Test Verifies Status
unit test_host_baseline_asof.TestBaselineAsOf.test_range_after_review_still_reports_new_executable The review job learns a new executable (stamped with its minute on a seasoned host); a range starting before pass
unit test_host_baseline_asof.TestBaselineAsOf.test_seeding_host_keeps_day_stamps A host still being seeded (first seen today) gets day stamps, so a later range does not flood it with ‘new’. pass
unit test_host_garbled.TestGarbledTelemetry.test_garbled_name_takes_fleet_name_and_merges A garbled host.name is replaced by the Fleet name of the same agent and merged with that host’s own row. pass
unit test_host_garbled.TestGarbledTelemetry.test_unresolvable_garbled_name_is_dropped A garbled host.name with no usable Fleet name never becomes a host (no ‘stopped sending syslog’ for junk). pass

POS-22

Posture: IDS signature tables (Posture, device page, Threat intel malware signatures) show a Verdict column: the signature’s stored event reviewer label (also when the event is not in the loaded snapshot), Pending review / Not reviewed, a person’s applied verdict and the research note verdict, from GET /api/verdicts (admin and defender only). (source: USER_GUIDE.md §6 Security → Posture)

Level Test Verifies Status  
unit test_ids_verdicts.EventVerdicts.test_empty_and_failing_lookups No ids returns empty maps, and a failing notes store leaves the labels intact instead of failing the request. pass  
unit test_ids_verdicts.EventVerdicts.test_label_of_signature_outside_any_snapshot A signature’s stored event reviewer label is returned by event id even when no loaded snapshot holds the event, and an unlabelled signature gets none. pass  
unit test_ids_verdicts.EventVerdicts.test_research_note_verdict_included The research note verdict of the signature comes back with only its short fields (no research text or links). pass  
unit test_ids_verdicts.EventVerdicts.test_user_role_cannot_read_verdicts GET /api/verdicts is analyst data: it is not on the User role’s allow-list. pass  
unit test_ids_verdicts.VerdictColumn.test_ids_tables_have_verdict_column Posture’s IDS signatures, a device’s IDS alerts and Threat intel’s malware/exploit signatures each add vdCol on ids . pass

POS-23

Posture: The Posture IDS events box is laid out like Baseline and Host findings: a check box + suppress (the shared Open-events ack event / ids ), Ask AI and Kibana, a Severity badge (Suricata 1 = high, 2 = medium, 3 = low) that colours the row edge, open count in the title and checked rows hidden behind a toggle. _(source: USER_GUIDE.md §6 Security → Posture)_
Level Test Verifies Status  
unit test_ids_verdicts.PostureIdsEvents.test_ids_events_box_like_findings IDS events: check-off column (ack event ids , shared with Open events), Severity badge from the Suricata pass

POS-20

Posture: Suppress rules that are empty or would hide everything are rejected with 400 and nothing is stored. (source: USER_GUIDE.md §6 Security → Posture)

Level Test Verifies Status
e2e test_e2e_posture.PostureSuppressApi.test_bad_suppress_rules_rejected Suppress rules that are empty or would hide everything are refused with 400 and nothing is stored. pass

SET-01

Settings: Integrations URLs: Elasticsearch and UniFi URLs must be http:// or https:// without spaces, quotes or brackets; other values are refused and nothing is saved, and accepted URLs are stored without the trailing slash. (source: SETUP.md (Integrations))

Level Test Verifies Status
unit test_settings_integrations.UrlSettings.test_bad_urls_refused Elasticsearch and UniFi URLs that are not http(s) or contain spaces/quotes/brackets are refused and nothing is saved. pass
unit test_settings_integrations.UrlSettings.test_good_urls_normalised http:// and https:// URLs are accepted, trimmed and stored without the trailing slash. pass
unit test_settings_integrations.UrlSettings.test_http_layer_refuses_other_schemes The shared HTTP helper refuses anything but http(s) before opening a connection. pass

SET-02

Settings: Elasticsearch URL: The Elasticsearch URL is ES_URL from the environment, else the saved setting, else site.json es_url; a blank setting means the fallback. (source: SETUP.md (Integrations))

Level Test Verifies Status
unit test_settings_integrations.UrlSettings.test_es_url_fallback_chain The Elasticsearch URL is ES_URL from the environment, else the saved setting, else site.json es_url; blank saved = fallback. pass

SET-03

Settings: Elasticsearch indices: Collector index overrides may be comma-separated patterns with wildcards but are refused if they contain spaces, slashes, quotes, ? or #, start with _ - or +, or exceed 200 characters. (source: SETUP.md (Integrations))

Level Test Verifies Status
unit test_settings_integrations.IndexSettings.test_bad_index_names_refused Index patterns with spaces, slashes, quotes, ?, #, a leading _ - + or over 200 characters are refused. pass
unit test_settings_integrations.IndexSettings.test_index_patterns_allowed Comma-separated patterns and wildcards are accepted for the collector indices (not for the audit index). pass

SET-04

Settings: Elasticsearch indices: Each collector (zeek, suricata, detections) uses its saved index override or the Security Onion default, and default index names used in code are translated to the configured ones. (source: SETUP.md (Integrations))

Level Test Verifies Status
unit test_settings_integrations.IndexSettings.test_map_index_translates_defaults map_index() swaps each default index name in a comma list for its configured one and leaves other names alone. pass
unit test_settings_integrations.IndexSettings.test_per_index_override_and_defaults es_index() returns the saved override for each collector and the Security Onion default for blank or unknown ones. pass
unit test_settings_integrations.IndexSettings.test_url_post_resets_missing_indices An Elasticsearch post always carries the whole form: indices left out of it go back to their defaults. pass

SET-05

Settings: API keys: API keys are write-only: the settings page only gets whether a key is set and a masked hint of its last four characters. (source: SETUP.md (Integrations))

Level Test Verifies Status
unit test_settings_integrations.ApiKeys.test_public_masks_keys public() never returns an API key, only key_set and a masked hint of the last four characters. pass

SET-06

Settings: API keys: A blank API key keeps the stored key, a new key replaces it, clear_key removes it, and keys with whitespace or over 400 characters are refused. (source: SETUP.md (Integrations))

Level Test Verifies Status
unit test_settings_integrations.ApiKeys.test_bad_keys_refused API keys with whitespace inside or over 400 characters are refused and the old key stays. pass
unit test_settings_integrations.ApiKeys.test_blank_keeps_clear_key_clears A blank api_key keeps the stored key, a new one replaces it, and clear_key removes it, for every section. pass

SET-07

Settings: API key fallbacks: Without a saved key, Elasticsearch and UniFi use the host secrets file (ES_API_KEY overridable from the environment) and the audit key uses NETMON_AUDIT_ES_KEY; inside the dashboard container the host file is reported as unknown. (source: SETUP.md (Integrations))

Level Test Verifies Status
unit test_settings_integrations.ApiKeys.test_audit_key_env_fallback The audit key is the saved key, else NETMON_AUDIT_ES_KEY from the environment (shown masked); never the ES key. pass
unit test_settings_integrations.ApiKeys.test_container_hides_host_fallback Inside the dashboard container the host secrets file is not checked, so key_fallback_present is unknown (None). pass
unit test_settings_integrations.ApiKeys.test_es_key_fallbacks The Elasticsearch key is ES_API_KEY from the environment, else the saved key, else ES_API_KEY in the host secrets file. pass
unit test_settings_integrations.ApiKeys.test_unifi_key_fallback The UniFi key is the saved key, else UNIFI_API_KEY in the host secrets file; a missing file means no key. pass

SET-08

Settings: UniFi URL: The UniFi API URL defaults to https://api.ui.com when no URL is saved. (source: SETUP.md (Integrations))

Level Test Verifies Status
unit test_settings_integrations.UrlSettings.test_unifi_url_default The UniFi API URL defaults to https://api.ui.com; a saved URL overrides it and a blank one restores the default. pass

SET-09

Settings: Audit index: The audit index must be one concrete index name (no commas or wildcards) and defaults to logs-syn. (source: AUDIT_LOG.md (Settings))

Level Test Verifies Status
unit test_settings_integrations.AuditSettings.test_audit_index_one_concrete_name The audit index must be one concrete name: commas, wildcards and invalid names are refused; blank means logs-syn. pass

SET-10

Settings: Audit switches: A post carrying only the audit send switches leaves the audit index and key unchanged, while a key/index form post sets the index. (source: AUDIT_LOG.md (Settings))

Level Test Verifies Status
unit test_settings_integrations.AuditSettings.test_key_post_resets_blank_index A post that carries the api_key (the key/index form) also sets the index, so an omitted index means the default. pass
unit test_settings_integrations.AuditSettings.test_switch_only_post_keeps_index_and_key A post carrying only the send switches leaves the audit index and key as they were. pass

SET-11

Settings: Audit switches: Send event reviewer events and Send event researcher events are on by default and switch independently. (source: AUDIT_LOG.md (Settings))

Level Test Verifies Status
unit test_settings_integrations.AuditSettings.test_send_switches_default_on_and_independent send_reviewer and send_researcher are on by default and each toggles without changing the other. pass

SET-12

Settings: Integrations save: Every integrations save is limited to known sections, leaves other sections untouched and stamps updated_by and updated_at. (source: SETUP.md (Integrations))

Level Test Verifies Status
unit test_settings_integrations.SaveStamps.test_candidate_does_not_save candidate() merges a form post with the stored section without writing anything. pass
unit test_settings_integrations.SaveStamps.test_num_helper The numeric field helper accepts in-range numbers and refuses non-numbers and out-of-range values. pass
unit test_settings_integrations.SaveStamps.test_sections_saved_independently Saving one section leaves the others untouched, and an unknown section is refused. pass
unit test_settings_integrations.SaveStamps.test_updated_by_and_at Each save stamps updated_by with the user and updated_at with the UTC time, shown by public(). pass

SET-13

Settings: Connection tests: The Test buttons for Elasticsearch, UniFi and the audit log try the unsaved form values with fallbacks, report success counts or the HTTP error, never raise on connection errors and never save. (source: SETUP.md (Integrations))

Level Test Verifies Status
unit test_settings_integrations.ConnectionTests.test_audit_no_key The audit test needs an audit key (entered or saved); without one it reports an error and makes no request. pass
unit test_settings_integrations.ConnectionTests.test_audit_success_and_error The audit test counts the audit index on the effective ES URL with the audit key (form value wins) and never raises. pass
unit test_settings_integrations.ConnectionTests.test_es_fallbacks_and_errors The Elasticsearch test falls back to site es_url and the host key; one failing index makes ok false and never raises. pass
unit test_settings_integrations.ConnectionTests.test_es_no_key Without any Elasticsearch key the test reports an error and makes no request. pass
unit test_settings_integrations.ConnectionTests.test_es_success The Elasticsearch test searches every collector index (unsaved form values win) with the form key and reports 24 h counts. pass
unit test_settings_integrations.ConnectionTests.test_invalid_form_values_rejected test() validates the form like save(): a bad URL, index or key raises ValueError before any request. pass
unit test_settings_integrations.ConnectionTests.test_unifi_key_fallback_and_missing The UniFi test uses the stored or host-file key when the form has none, and reports a missing key without a request. pass
unit test_settings_integrations.ConnectionTests.test_unifi_success_and_error The UniFi test calls /v1/hosts with X-API-KEY, counts consoles and hosts, and reports HTTP errors without raising. pass

SET-14

Settings: Audit switches: With a send switch off, audit entries of the matching background actors (event/background reviewer, review job, review log = reviewer; event research, research job = researcher) are dropped and counted as skipped, while user actions are always sent. (source: AUDIT_LOG.md (Settings))

Level Test Verifies Status
unit test_settings_integrations.AuditSwitchesEndToEnd.test_actor_map audit.ACTORS maps every background actor to the reviewer or researcher switch as documented. pass
unit test_settings_integrations.AuditSwitchesEndToEnd.test_both_off_never_drops_people With both switches off only user actions (and other non-mapped entries) are queued; switching back on resumes sending. pass
unit test_settings_integrations.AuditSwitchesEndToEnd.test_both_on_sends_everything With both switches on (the default) every entry is queued and nothing is skipped. pass
unit test_settings_integrations.AuditSwitchesEndToEnd.test_researcher_off Switching researcher events off drops event research and research job entries only, counted as skipped. pass
unit test_settings_integrations.AuditSwitchesEndToEnd.test_review_log_entries_follow_reviewer_switch A correlation review pass is queued while the reviewer switch is on and only kept in memory while it is off. pass
unit test_settings_integrations.AuditSwitchesEndToEnd.test_reviewer_off Switching reviewer events off drops the four reviewer actors’ entries, counts them as skipped, and keeps researcher and user entries. pass

SET-15

Settings: Audit switches: While the reviewer switch is off the Review log card shows the in-memory entries with source ‘memory (audit log sending off)’ instead of querying Elasticsearch. (source: AUDIT_LOG.md (Review log))

Level Test Verifies Status
unit test_settings_integrations.AuditSwitchesEndToEnd.test_review_log_view_source The Review log card reads Elasticsearch while the reviewer switch is on and reports ‘memory (audit log sending off)’ when it is off. pass

SET-20

Settings: event reviewer notes: Notes per event (1-100, default 7), note characters (1000-100000, default 6000) and notes per host / user (1-500, default 40) are saved one field at a time with the user, read back by the reviewer’s getters, out-of-range values are refused without saving, and hand-edited values are clamped. (source: docs/CORRELATION.md)

Level Test Verifies Status
unit test_settings_ai.NotesLimit.test_defaults With nothing saved the reviewer gets 7 notes per event, 6000 note characters and 40 notes per subject. pass
unit test_settings_ai.NotesLimit.test_hand_edited_out_of_range_values_are_clamped Stored values outside the ranges (e.g. a hand-edited config) are clamped by the getters, garbage gives the default. pass
unit test_settings_ai.NotesLimit.test_out_of_range_rejected_and_nothing_saved Values outside 1-100 notes, 1000-100000 characters or 1-500 per subject are refused, and a refused call saves nothing. pass
unit test_settings_ai.NotesLimit.test_valid_values_persist_each_field_separately Each field saved on its own keeps the others, is read back by the pipeline getters and stamps the user. pass

SET-21

Settings: event reviewer notes: The notes-per-event and note-character settings cap how many owner notes, and how many characters of them, go into one review prompt. (source: docs/CORRELATION.md)

Level Test Verifies Status
unit test_settings_ai.NotesLimit.test_notes_settings_cap_the_review_prompt Notes per event caps how many notes reach the prompt, and the character budget caps their total length. pass

SET-16

Settings: event reviewer notes: Note expiry (days an unused host note is kept, 0-3650, default 30, 0 = never) is saved with the user, shown on the AI pipeline page and refused out of range without saving; hand-edited values are clamped. (source: docs/CORRELATION.md)

Level Test Verifies Status
unit test_kb_expiry.NoteExpiryTest.test_purge_deletes_only_expired_notes Notes unused longer than the setting are deleted with their artifact index rows; 0 days turns expiry off. pass
unit test_kb_expiry.NoteExpiryTest.test_setting_range_and_config_view Note expiry is 0-3650 days (default 30), saved with the user, shown in the AI pipeline config, refused out of range. pass

SET-22

Settings: event reviewer model: The event reviewer uses the local server until a model is chosen; a chosen model is stored with the user and used, only models of enabled providers with a key are accepted, and a model whose provider or model was removed stops the review with an error. (source: docs/USER_GUIDE.md)

Level Test Verifies Status
unit test_settings_ai.Models.test_correlation_choice_persists_and_is_used A chosen API-provider model is stored with the user, shown in STATUS and used by the event reviewer. pass
unit test_settings_ai.Models.test_correlation_default_is_local_server With no choice saved the event reviewer uses the local server. pass
unit test_settings_ai.Models.test_correlation_on_removed_provider_or_model_fails_loudly A reviewer model whose provider was deleted, whose model was dropped, or an unknown provider stops the review with an error. pass
unit test_settings_ai.Models.test_server_only_allows_configured_models The model choice the UI posts is accepted only for an enabled provider with a key and that model (llm_allowed). pass

SET-23

Settings: chat model: Ask AI is off until a chat model is chosen, the choice is stored with the user, and the Elasticsearch switch for the chat (default on) adds or removes the chat’s search tool. (source: docs/USER_GUIDE.md)

Level Test Verifies Status
unit test_settings_ai.Models.test_chat_es_switch Ask AI may search Elasticsearch by default; switching it off removes the search tool from the chat. pass
unit test_settings_ai.Models.test_chat_model_default_off_then_persists The chat is off until a model is chosen; the choice is stored with the user and used by the chat. pass

SET-24

Settings: look-ups first: Look-ups first is on by default and makes the reviewer’s first call a planning call when look-ups are allowed; switched off, no planning call is made. (source: docs/CORRELATION.md)

Level Test Verifies Status
unit test_settings_ai.Lookups.test_lookup_plan_default_on_and_switch Look-ups first is on by default (a planning call precedes the decision); switched off there is no planning call. pass

SET-25

Settings: reviewer look-ups: Web look-ups (default off, 2 per event, 1-10) and Elasticsearch look-ups (default off, 3 per event, 1-20) are stored with the user, other values are refused, and the Elasticsearch maximum is the number of searches the reviewer may run. (source: docs/CORRELATION.md)

Level Test Verifies Status
unit test_settings_ai.Lookups.test_es_max_is_the_lookup_budget_given_to_the_reviewer The event reviewer runs at most the set number of Elasticsearch look-ups per review. pass
unit test_settings_ai.Lookups.test_es_queries_default_valid_and_range Elasticsearch look-ups are off by default with 3 per event; 1-20 are accepted and stored with the user, other values refused. pass
unit test_settings_ai.Lookups.test_web_search_default_valid_and_range Web look-ups are off by default with 2 per event; 1-10 are accepted and stored with the user, other values refused. pass

SET-26

Settings: review limits: Type-pair modes (review or skip) are validated and saved, a skipped pair is never sent to the event reviewer, a new deployment starts with every pair skipped while an existing one keeps reviewing, and legacy skip_pairs / test mode load as skip. (source: docs/CORRELATION.md)

Level Test Verifies Status
unit test_settings_ai.ReviewLimits.test_defaults Without settings nothing is capped, the window is the default event window (5 min), verdicts kept forever and classification off. pass
unit test_settings_ai.ReviewLimits.test_legacy_skip_pairs_and_test_mode Old-style skip_pairs lists and the retired ‘test’ mode still load as skip. pass
unit test_settings_ai.ReviewLimits.test_pair_default_new_vs_existing_deployment A brand-new deployment skips every pair by default, an existing one (with verdicts) keeps reviewing everything. pass
unit test_settings_ai.ReviewLimits.test_pair_mode_skip_holds_links_back A pair type switched to skip is never sent to the event reviewer; switched back to review it is pending again. pass
unit test_settings_ai.ReviewLimits.test_pair_mode_validation Pair modes must map ‘typeA-typeB’ to review or skip, skip_pairs must be a list; bad input is refused and not saved. pass

SET-27

Settings: review limits: Max links per event accepts 0-200 (0 = no cap), refuses other values without saving anything, and keeps only the best-scoring undecided links of an event. (source: docs/CORRELATION.md)

Level Test Verifies Status
unit test_settings_ai.ReviewLimits.test_max_links_caps_pending_links_best_score_first With a cap of 2 an event keeps only its two best-scoring undecided links; 0 removes the cap. pass
unit test_settings_ai.ReviewLimits.test_max_links_range Max links per event accepts 0-200 (0 = no cap); other values are refused and nothing is saved. pass

SET-28

Settings: review limits: The time window (0-525600 minutes, 0 = no limit) skips links whose events are further apart, verdict retention accepts 0-3650 days and classify events is an on/off switch; out-of-range values are refused. (source: docs/CORRELATION.md)

Level Test Verifies Status
unit test_settings_ai.ReviewLimits.test_discard_days_and_classify Verdict retention accepts 0-3650 days, classification is an on/off switch; both persist. pass
unit test_settings_ai.ReviewLimits.test_window_range_and_effect The time window is the event window (Settings > Site, read live): links whose events are further apart are skipped; pass

SET-29

Settings: review limits: The review-limits view lists every type pair with its link count and mode and the setting ranges; the removed exclusion and never-send rule arguments are accepted but store and skip nothing. (source: docs/CORRELATION.md)

Level Test Verifies Status
unit test_settings_ai.ReviewLimits.test_exclusions_and_rules_are_ignored Exclusions and never-send rules were removed from the code: the arguments are accepted, nothing is stored or skipped. pass
unit test_settings_ai.ReviewLimits.test_limits_view_counts_pairs The review-limits view lists every type pair with its candidate link count and mode, and the configured ranges. pass

SET-30

Settings: decision model: The decision model is on by default with a related threshold of 0.5; on/off and the threshold (0.05-0.95, rounded to 2 decimals) are stored with the user, other values are refused and hand-edited values are clamped. There is no event (suspicious) threshold: the decision model decides links only. (source: docs/CORRELATION.md)

Level Test Verifies Status
unit test_settings_ai.ClefSettings.test_defaults The decision model is on by default with the related threshold at 0.5; there is no event (suspicious) threshold. pass
unit test_settings_ai.ClefSettings.test_enabled_switch_is_read_by_the_pipeline The on/off switch is what the review pass reads before using the decision model. pass
unit test_settings_ai.ClefSettings.test_hand_edited_thresholds_clamped Stored thresholds outside the range are clamped to 0.05-0.95 by the config the pipeline reads; garbage gives 0.5. pass
unit test_settings_ai.ClefSettings.test_out_of_range_rejected Thresholds outside 0.05-0.95 or not numbers are refused and nothing changes. pass
unit test_settings_ai.ClefSettings.test_valid_values_persist_and_stamp On/off and thresholds are stored (rounded to 2 decimals) with the user; a partial save keeps the other fields. pass

SET-31

Settings: decision model: The related threshold decides whether the decision model’s probability becomes a related verdict. (source: docs/CORRELATION.md)

Level Test Verifies Status
unit test_settings_ai.ClefSettings.test_related_min_decides_links The related threshold is what turns the decision model’s probability into a related / not related verdict. pass

SET-32

Settings: AI providers: Saving an AI provider checks type, name (unique, any case), key format, base URL (https, or http only for LAN / loopback, no credentials, query or fragment), model ids and prices and the number ranges, and fills defaults (official URL, 120 calls per hour). (source: docs/USER_GUIDE.md)

Level Test Verifies Status
unit test_settings_ai.Providers.test_add_valid_provider_defaults A new provider gets an id, the official base URL, the parsed models and prices, 120 calls per hour and the user stamp. pass
unit test_settings_ai.Providers.test_lan_http_allowed_and_names_unique Plain http is accepted for LAN / loopback base URLs; a second provider with the same name (any case) is refused. pass
unit test_settings_ai.Providers.test_validation_rejects_bad_input Wrong type, empty name, missing or malformed key, unsafe base URLs, bad model ids or prices and out-of-range numbers are refused. pass

SET-33

Settings: AI providers: API keys are write-only: the admin page only sees the last 4 characters, an update without a key keeps it, a changed type or base URL needs the key again, and deleting a provider removes it and its key. (source: docs/USER_GUIDE.md)

Level Test Verifies Status
unit test_settings_ai.Providers.test_delete_removes_provider_and_key Deleting a provider removes it and its key from storage; unknown ids and the local server can’t be deleted. pass
unit test_settings_ai.Providers.test_key_is_masked_everywhere_the_browser_sees The API key never appears in what the admin page gets: only the last 4 characters, or ‘set’ for short keys. pass
unit test_settings_ai.Providers.test_key_is_write_only_on_update An update without a key keeps the stored key, a new key replaces it, and a new type or base URL needs the key again. pass

SET-34

Settings: AI providers: The local server row saves enabled, calls per hour (1-3000), picked models and prices with the user; switching it off stops the event reviewer from using it. (source: docs/USER_GUIDE.md)

Level Test Verifies Status
unit test_settings_ai.Providers.test_local_server_defaults_and_save The local server row starts enabled with every model offered; save_local stores enabled, rate, picked models and prices with the user. pass
unit test_settings_ai.Providers.test_local_server_validation_and_disable Out-of-range rates are refused; switching the local server off stops the event reviewer from using it. pass

SET-35

Settings: decision model server: Decision-model server settings default to the Kubernetes backend, are saved with the user only for known backends, listed model files and binaries and in-range numbers (batch at least 4096), and are read back by the server URL, clef.sh’s environment and the decision model’s URL. (source: docs/CORRELATION.md)

Level Test Verifies Status
unit test_settings_ai.ClefServer.test_defaults With nothing saved the server is the Kubernetes backend on port 8091, 32768 context, 4 slots, batch 8192. pass
unit test_settings_ai.ClefServer.test_invalid_rejected Unknown backends, model files or binaries, numbers outside their ranges and a batch below 4096 are refused; nothing changes. pass
unit test_settings_ai.ClefServer.test_valid_save_persists_and_stamps Valid settings are stored in the database with the user, read back by settings(), url(), clef.sh’s env and clef.config(). pass

SET-40

Settings: catalog: Every setting documented in settings_docs.DOCS exists in its shipped *.example.json template or in the code defaults (site_cfg.DEFAULTS). (source: USER_GUIDE.md (Settings))

Level Test Verifies Status
unit test_settings_site.SettingsCatalog.test_every_documented_key_is_shipped Every key documented in settings_docs.DOCS exists in its *.example.json template or in the code defaults. pass

SET-41

Settings: catalog: Every setting in the shipped policy, host_policy, known_benign and site templates (and every site default) has a non-empty settings_docs entry, and the template’s doc note equals it. _(source: USER_GUIDE.md (Settings))_

Level Test Verifies Status
unit test_settings_site.SettingsCatalog.test_no_undocumented_template_setting Every setting in the shipped templates (and every site default) has a DOCS entry, so none is undocumented. pass
unit test_settings_site.SettingsCatalog.test_template_notes_match_catalog The doc note in each template is exactly the catalog text and every catalog text is non-empty. pass

SET-42

Settings: storage: A settings document saved with store.cfg_save comes back from cfg_load identical in values, types and key order (including / # % in keys, empty containers, null and bools), as a private copy. (source: ARCHITECTURE.md (store cfg))

Level Test Verifies Status
unit test_settings_site.CfgRoundTrip.test_awkward_values_round_trip Keys with / # %, floats, bools, None, empty strings and empty / nested containers survive the round trip. pass
unit test_settings_site.CfgRoundTrip.test_load_returns_private_copy Mutating the dict from cfg_load does not change the stored settings. pass
unit test_settings_site.CfgRoundTrip.test_templates_round_trip_key_by_key Each template, and each documented key in it, comes back unchanged (values and types) after cfg_save/cfg_load. pass

SET-43

Settings: validation: The shipped templates of all four settings documents pass server.cfg_validate. (source: USER_GUIDE.md (Settings))

Level Test Verifies Status
unit test_settings_site.CfgValidate.test_templates_are_valid Every shipped template passes its document’s validator. pass

SET-44

Settings: network zones: Policy zones must be a table of name -> valid CIDR and zone_roles must be one of dmz, protected, mgmt, user, iot; anything else is rejected, _ notes are ignored. (source: USER_GUIDE.md (Settings > Network policy))

Level Test Verifies Status
unit test_settings_site.CfgValidate.test_bad_zones_rejected A zone whose subnet is not a CIDR, or a zones value that is not a table, is rejected; _ notes are skipped. pass
unit test_settings_site.CfgValidate.test_unknown_zone_role_rejected A zone role outside dmz, protected, mgmt, user, iot is rejected; each valid role is accepted. pass

SET-45

Settings: spike thresholds: upload_spike and spike_thresholds accept only known detections and columns, severity high/medium/low/off and non-negative numbers (no text or booleans). (source: USER_GUIDE.md (Settings > Network policy))

Level Test Verifies Status
unit test_settings_site.CfgValidate.test_spike_threshold_values spike_thresholds rejects an unknown detection, a non-table row, bad severity, negative or text numbers and unknown columns. pass
unit test_settings_site.CfgValidate.test_upload_spike_values upload_spike rejects a bad severity, non-numeric / boolean / negative numbers, unknown keys and a non-table. pass

SET-46

Settings: beacon and allow rules: beacon ignore_ports must be port numbers 1-65535, scores 0-1, counts at least 1, no unknown keys; every allow rule needs a src and a dst. (source: USER_GUIDE.md (Settings > Network policy))

Level Test Verifies Status
unit test_settings_site.CfgValidate.test_allow_rules_need_src_and_dst An allow rule without src or dst, or that is not a table, is rejected. pass
unit test_settings_site.CfgValidate.test_beacon_values beacon rejects port numbers outside 1-65535 or of the wrong type, scores outside 0-1, counts below 1 and unknown keys. pass

SET-47

Settings: device classes, ports, scan thresholds: Unknown device classes, out-of-range or non-numeric sensitive/discovery/gateway ports and non-numeric or below-1 scan_thresholds (hosts, ports) are rejected when saving. (source: USER_GUIDE.md (Settings > Network policy))

Level Test Verifies Status
unit test_settings_site.CfgValidate.test_bad_sensitive_port_rejected A sensitive / discovery / gateway port that is not a number from 1 to 65535 is rejected. pass
unit test_settings_site.CfgValidate.test_scan_threshold_types_rejected scan_thresholds hosts/ports must be numbers: a text value would crash extras’ scan comparison and the auto-tune. pass
unit test_settings_site.CfgValidate.test_unknown_device_class_rejected A device class outside the documented list (iot, camera, media, game, personal, work, server, k8s, infra) is rejected. pass

SET-48

Settings: host policy, site, known benign: host_policy rejects invalid regexes, site rejects a bad internal_cidr or empty internal_prefixes, known_benign requires signatures and names to be tables. (source: USER_GUIDE.md (Settings))

Level Test Verifies Status
unit test_settings_site.CfgValidate.test_host_policy_regexes host_policy rejects an invalid regex in suspicious_cmdline, service_parents or service_child_suspicious. pass
unit test_settings_site.CfgValidate.test_known_benign_shape known_benign rejects signatures or names that are not tables (including a missing one). pass
unit test_settings_site.CfgValidate.test_site_values site rejects an internal_cidr that is not a CIDR and empty or non-list internal_prefixes. pass

SET-49

Settings: editing: POST /api/config/cfg by an admin sets exactly one value (dict key or in-range list index) in a settings document and changes nothing else. (source: USER_GUIDE.md (Settings))

Level Test Verifies Status
unit test_settings_site.CfgPostHandler.test_list_index_set A list item is replaced by index; an index past the end is rejected and nothing is saved. pass
unit test_settings_site.CfgPostHandler.test_valid_change_is_saved An admin setting a nested value saves it and leaves every other setting unchanged. pass

SET-50

Settings: editing guards: POST /api/config/cfg rejects unknown documents, missing value, bad or over-6-deep paths, _ keys, missing sections, invalid values, oversized bodies and non-admins without saving anything. (source: ACCESS_CONTROL.md)

Level Test Verifies Status
unit test_settings_site.CfgPostHandler.test_bad_requests_rejected Unknown doc, missing value, empty / non-list / over-6-deep path, a _ key and a missing section are all 400 with nothing saved. pass
unit test_settings_site.CfgPostHandler.test_invalid_value_not_saved A change the validator rejects (bad CIDR, unknown role, bad regex) returns 400 and leaves the document as it was. pass
unit test_settings_site.CfgPostHandler.test_oversized_and_non_admin A request body over the 64 KB cap is refused before parsing (so the 400000 value cap is never reached) and a defender gets 403. pass

SET-51

Settings: auto-tune: Auto-tune recommendations never write settings; they only make noisy detections less sensitive, leave quiet or switched-off ones alone and never propose severity or min_days. (source: USER_GUIDE.md (Settings > Auto-tune))

Level Test Verifies Status
unit test_settings_site.AutoTune.test_noisy_detections_get_less_sensitive Noisy upload and chronic scan findings get raised thresholds; quiet detections are left at status ok. pass
unit test_settings_site.AutoTune.test_recommend_saves_nothing recommend() on noisy history proposes changes but leaves every settings document and its version untouched. pass
unit test_settings_site.AutoTune.test_switched_off_and_resolver_beacons A detection with severity off is reported as off; chronic unnamed port-53 beacon pairs propose ignoring port 53. pass

SET-52

Settings: auto-tune apply: Applying auto-tune writes only the values of accepted recommendations that are still current (tampered values and unknown ids are ignored); nothing accepted gives 409 and no change. (source: USER_GUIDE.md (Settings > Auto-tune))

Level Test Verifies Status
unit test_settings_site.AutoTune.test_apply_writes_only_accepted_current_values apply() sets just the accepted recommendation’s proposed values (not tampered ones), skips unknown / unchanged ids, and does not save. pass
unit test_settings_site.AutoTune.test_tune_apply_endpoint POST /api/config/tune-apply saves the accepted change and only it; nothing accepted gives 409 and no write. pass

SET-53

Settings: UniFi discover: Discover from UniFi proposes one zone per enabled corporate/guest subnet, roles from the guest flag, network name or members, device classes from gear, fingerprints and hostnames, and writes nothing. (source: USER_GUIDE.md (Settings > Discover from UniFi))

Level Test Verifies Status
unit test_settings_site.UnifiDiscover.test_build_writes_nothing build() is a proposal only: the policy and site documents are not changed. pass
unit test_settings_site.UnifiDiscover.test_existing_zone_name_kept_and_classes A subnet that already has a zone keeps its name; gear is infra, fingerprints and hostnames give classes, MACs are normalised. pass
unit test_settings_site.UnifiDiscover.test_one_zone_per_subnet Every enabled corporate/guest network with a valid subnet becomes one zone (network CIDR); wan, disabled and broken ones are skipped. pass
unit test_settings_site.UnifiDiscover.test_roles_from_name_guest_and_members Roles come from the guest flag (iot) and the name (dmz, mgmt, protected, iot); otherwise mostly-server members make it protected, else user. pass

SET-54

Settings: UniFi discover apply: Applying a discovery merges new zones, roles and classes keeping existing ones; with overwrite it replaces roles and classes; it never removes an entry. (source: USER_GUIDE.md (Settings > Discover from UniFi))

Level Test Verifies Status
unit test_settings_site.UnifiDiscover.test_apply_merge_keeps_existing apply() without overwrite adds new zones, roles and classes but keeps every existing name, role and class. pass
unit test_settings_site.UnifiDiscover.test_apply_overwrite_replaces_but_never_removes apply(overwrite=True) replaces existing roles and classes with the proposal but removes nothing. pass

SET-55

Settings: UniFi discover apply: Applying a discovery adds internal_prefixes for uncovered subnets (replacing an untouched ‘10.’ default) and POST /api/config/discover previews without writing unless apply=true. (source: USER_GUIDE.md (Settings > Discover from UniFi))

Level Test Verifies Status
unit test_settings_site.UnifiDiscover.test_apply_site_prefixes apply() replaces an untouched default ‘10.’ prefix with the real non-10 prefixes and appends new prefixes otherwise. pass
unit test_settings_site.UnifiDiscover.test_discover_endpoint_preview_and_apply POST /api/config/discover returns the proposal without writing; with apply=true it merges and reports counts. pass

SET-60

Settings: integrations: An admin’s save of an Integrations section (Elasticsearch, UniFi, web search, OpenCTI, threat-intel feeds) is persisted and returned by GET /api/config/integrations. (source: docs/USER_GUIDE.md)

Level Test Verifies Status
e2e test_e2e_settings.Integrations.test_custom_feed_added_and_deleted A custom threat-intel feed is added, listed, and deleted again. pass
e2e test_e2e_settings.Integrations.test_elasticsearch_saved_and_key_masked Saving the Elasticsearch URL, key and index names is read back with the key shown only as a masked hint. pass
e2e test_e2e_settings.Integrations.test_opencti_saved OpenCTI switches and score thresholds are saved and read back, its token masked. pass
e2e test_e2e_settings.Integrations.test_web_search_provider_saved The web search provider, its instance URL and key are saved and read back (key masked). pass

SET-61

Settings: secrets: Integration and AI-provider API keys are never returned by any GET (only key_set and a short masked hint); an empty key on re-save keeps the stored key and clear_key removes it. (source: docs/ACCESS_CONTROL.md)

Level Test Verifies Status
e2e test_e2e_settings.Integrations.test_elasticsearch_saved_and_key_masked Saving the Elasticsearch URL, key and index names is read back with the key shown only as a masked hint. pass
e2e test_e2e_settings.Integrations.test_empty_key_keeps_and_clear_key_clears Re-saving a section with an empty key keeps the stored key; clear_key removes it. pass
e2e test_e2e_settings.Integrations.test_opencti_saved OpenCTI switches and score thresholds are saved and read back, its token masked. pass
e2e test_e2e_settings.Integrations.test_web_search_provider_saved The web search provider, its instance URL and key are saved and read back (key masked). pass
e2e test_e2e_settings.Models.test_provider_saved_key_masked An added AI provider is listed with its models and only a masked key. pass
e2e test_e2e_settings.Models.test_provider_update_keeps_key Updating a provider without a key keeps the stored key and applies the new settings. pass
e2e test_e2e_settings.RoleEnforcement.test_defender_reads_no_secrets_or_admin_views A defender gets no integration settings or provider list, and 403 on auto-tune. pass
e2e test_e2e_settings.SettingsAudit.test_secrets_redacted API keys sent to integration and provider settings never appear in the audit log, saved or rejected. pass

SET-62

Settings: integrations validation: Invalid integration input (bad URL, key, provider, score, index or feed name, unknown section) returns 400 with a JSON error and changes nothing. (source: docs/USER_GUIDE.md)

Level Test Verifies Status
e2e test_e2e_settings.Integrations.test_invalid_integration_input_rejected Bad URLs, keys, providers, scores, feed names and unknown sections return 400 with an error and save nothing. pass

SET-63

Settings: audit switches: Switching Send event reviewer / researcher events off on the Audit log page persists and GET /api/audit/status reports send_reviewer / send_researcher accordingly. (source: docs/AUDIT_LOG.md)

Level Test Verifies Status
e2e test_e2e_settings.Integrations.test_audit_switches_persist Switching off the event reviewer / researcher audit entries persists and /api/audit/status reports it. pass

SET-64

Settings: review job and auto-close: The event window, review job schedule, on/off and event modes, event research limits and auto-close settings are saved, read back by their GET, and out-of-range input is refused (400) or clamped without other changes. The guard rails save on every change (no separate Save button) and every auto-close save carries the switches and guard rails as shown. (source: docs/CORRELATION.md)

Level Test Verifies Status
unit test_config_guard_js.GuardRailsSaveTest.test_guard_rail_change_saves_at_once Ticking a protected category saves it (after a short debounce) with every guard-rail value and the switches; pass
unit test_config_guard_js.GuardRailsSaveTest.test_out_of_range_value_is_not_saved An out-of-range confidence is not sent; the card says why. pass
unit test_config_guard_js.GuardRailsSaveTest.test_switch_tap_keeps_pending_guard_edit Typing a guard-rail value and then tapping an auto-close switch sends ONE save holding both; the pending pass
e2e test_e2e_settings.ReviewJob.test_autoclose_reopen_actions Reopen auto-closed items and reopen-held-by-guard answer 200 with the auto-close view and keep the settings. pass
e2e test_e2e_settings.ReviewJob.test_autoclose_settings_saved Auto-close switches and guard rails are saved and read back; out-of-range guard values are clamped, unknown pass
e2e test_e2e_settings.ReviewJob.test_lookback_saved The event window is saved under Settings > Site, shown on the AI pipeline page and picked up live; out-of-range or non-numbers are refused. pass
e2e test_e2e_settings.ReviewJob.test_research_limits_saved Event research cost caps and web / Elasticsearch access are saved; out-of-range caps are refused. pass
e2e test_e2e_settings.ReviewJob.test_review_job_switch_and_modes The review job on/off switch and per-category modes are saved; unknown modes or all-skip are refused. pass
e2e test_e2e_settings.ReviewJob.test_review_schedule_saved The review job interval (hours + minutes) is saved and read back; under 5 minutes or a non-number is refused. pass

SET-65

Settings: AI providers and models: Admin-added AI providers and the event reviewer / research / chat model choices are saved and read back; unknown types, providers or models return 400 and change nothing. (source: docs/USER_GUIDE.md)

Level Test Verifies Status
e2e test_e2e_settings.Models.test_invalid_provider_rejected Unknown provider types, missing names or keys, bad model ids and unknown actions return 400 and save nothing. pass
e2e test_e2e_settings.Models.test_model_choice_saved_per_section The event reviewer, research and chat models are saved and shown; an unknown provider or model is refused. pass
e2e test_e2e_settings.Models.test_provider_saved_key_masked An added AI provider is listed with its models and only a masked key. pass
e2e test_e2e_settings.Models.test_provider_update_keeps_key Updating a provider without a key keeps the stored key and applies the new settings. pass

SET-66

Settings: event reviewer: Event reviewer look-ups (Elasticsearch, web, look-ups first, chat Elasticsearch), web cache, the decision model’s related threshold, context notes, note consolidation and review limits are saved, shown on the AI pipeline page, and invalid values return 400 without changes. (source: docs/CORRELATION.md)

Level Test Verifies Status
e2e test_e2e_settings.EventReviewer.test_clef_saved The decision model switch and its related threshold are saved; a threshold outside 0.05-0.95 is refused. pass
e2e test_e2e_settings.EventReviewer.test_context_notes_saved Notes per event, note characters and notes per host are saved; out of range or nothing to set is refused. pass
e2e test_e2e_settings.EventReviewer.test_es_queries_saved Elasticsearch look-ups per event are saved; 0, over the limit or missing are refused. pass
e2e test_e2e_settings.EventReviewer.test_lookup_plan_and_chat_es_saved The look-ups-first switch and the Ask AI Elasticsearch switch are saved both ways. pass
e2e test_e2e_settings.EventReviewer.test_notes_consolidation_saved The nightly note consolidation switch, time and time zone are saved; a bad time or zone is refused. pass
e2e test_e2e_settings.EventReviewer.test_review_limits_saved Review limits (max links, classification, time window, verdict retention, pair modes) are saved; bad values refused. pass
e2e test_e2e_settings.EventReviewer.test_web_cache_saved_and_cleared The web cache switch and days kept are saved; clearing answers 200; 0 or over 30 days is refused. pass
e2e test_e2e_settings.EventReviewer.test_web_search_saved Web look-ups per event are saved; out of range is refused. pass

SET-67

Settings: settings documents and auto-tune: POST /api/config/cfg sets one value in a settings document (read back by GET); unknown documents, bad paths or values that fail validation return 400; auto-tune recommend is read-only and an empty accept list writes nothing. (source: docs/USER_GUIDE.md)

Level Test Verifies Status
e2e test_e2e_settings.SettingsDocs.test_cfg_bad_doc_path_value_rejected Unknown documents, malformed or private paths and values that fail validation return 400 and save nothing. pass
e2e test_e2e_settings.SettingsDocs.test_cfg_value_saved Setting one value inside a settings document is read back by GET /api/config/cfg. pass
e2e test_e2e_settings.SettingsDocs.test_tune_recommend_and_empty_apply Auto-tune recommendations are read-only; applying an empty selection answers 409 and writes nothing. pass

SET-68

Settings: notification devices: Admins and defenders choose their own alert devices via /api/push/prefs (read back by GET); some-devices with none picked is refused; a User may not change them. (source: docs/ACCESS_CONTROL.md)

Level Test Verifies Status
e2e test_e2e_settings.PushPrefs.test_admin_and_defender_set_own_prefs An admin and a defender each save their own device choice, read back by GET /api/push/prefs. pass
e2e test_e2e_settings.PushPrefs.test_some_without_devices_rejected Choosing “some devices” with none picked returns 400 and keeps the old choice. pass
e2e test_e2e_settings.PushPrefs.test_user_cannot_change_prefs A User cannot choose their own alert devices (an admin assigns them): 403. pass

SET-69

Settings: role enforcement: Every admin-only settings POST returns 403 with a JSON error for a Network defender and a User and changes nothing; defenders may change Review limits but not Elasticsearch-search switches. (source: docs/ACCESS_CONTROL.md)

Level Test Verifies Status
e2e test_e2e_settings.PushPrefs.test_user_cannot_change_prefs A User cannot choose their own alert devices (an admin assigns them): 403. pass
e2e test_e2e_settings.RoleEnforcement.test_defender_cannot_switch_chat_es A Network defender cannot switch the Ask AI Elasticsearch setting (an admin setting, like the other pass
e2e test_e2e_settings.RoleEnforcement.test_defender_may_set_review_limits A Network defender may change Review limits (analyst work per ACCESS_CONTROL.md), and the change is saved. pass
e2e test_e2e_settings.RoleEnforcement.test_defender_reads_no_secrets_or_admin_views A defender gets no integration settings or provider list, and 403 on auto-tune. pass
e2e test_e2e_settings.RoleEnforcement.test_defender_refused_admin_settings A Network defender gets 403 with a JSON error on every admin-only settings POST and nothing changes. pass
e2e test_e2e_settings.RoleEnforcement.test_user_refused_all_settings A User gets 403 on every settings POST, including review limits, the chat switch and notification devices. pass
e2e test_e2e_settings.SettingsAudit.test_rejected_and_denied_posts_audited A rejected settings POST is audited as a failure with its 400, and a defender’s refused one with 403. pass

SET-70

Settings: audit: Every settings POST (saved, rejected or denied) writes an audit entry with the user, role, path, outcome and status, with API keys redacted. (source: docs/AUDIT_LOG.md)

Level Test Verifies Status
e2e test_e2e_settings.SettingsAudit.test_every_settings_post_audited Each successful settings POST writes an audit entry naming the admin, the path, success and status 200. pass
e2e test_e2e_settings.SettingsAudit.test_rejected_and_denied_posts_audited A rejected settings POST is audited as a failure with its 400, and a defender’s refused one with 403. pass
e2e test_e2e_settings.SettingsAudit.test_secrets_redacted API keys sent to integration and provider settings never appear in the audit log, saved or rejected. pass

SET-71

Settings: device classes: The device classes editor (Policy & Site) shows, under each MAC or IP key, the host name Syn learned for it (device registry, then the time range’s devices, then the page’s name lookup) as ‘learned: ', or 'learned: —' when none; the row filter also matches it; the saved device_classes document is unchanged. _(source: USER_GUIDE.md (More -> Settings))_

Level Test Verifies Status
unit test_settings_ui.LearnedHostName.test_editor_shows_learned_text_display_only_and_filterable The device_classes rows render ‘learned: ' or 'learned: —' next to the key, the filter reads the pass
unit test_settings_ui.LearnedHostName.test_learned_host_name_lookup_order learnedHost finds the name by registry key / MAC / IP, prefers the learned host name, falls back to the pass

UI-90

Dashboard theme: The suppress button (🚫 rule) on every event and finding row and the alert suppress button use the same gold pill style and colour variables as the other row action buttons (note / ask), with a line ban icon, gold hover, filled gold active state and a dimmed disabled state. (source: USER_GUIDE.md (Buttons you will see on rows))

Level Test Verifies Status
unit test_settings_ui.SuppressButtonGold.test_suppress_button_uses_the_gold_action_style Every suppress button template carries the line ban icon (no emoji glyph as content), and style.css styles pass

UI-91

Dashboard boxes: The ‘More below’ flair of a scrollable box fades out (opacity transition, layout kept) when the box is scrolled to its bottom and fades back in when more is below; no transition with reduced motion. (source: USER_GUIDE.md (Boxes))

Level Test Verifies Status
unit test_settings_ui.MoreBelowFades.test_more_above_fades_in_when_scrolled_down A ‘More above’ flair sits above the body while a box can scroll and fades in once it is scrolled down pass
unit test_settings_ui.MoreBelowFades.test_more_below_fades_out_at_the_bottom The ‘More below’ flair stays in the layout while a box can scroll (cc-can-more) and fades out by opacity when pass

UI-92

Dashboard theme: The magnifying-glass buttons (open related events, search in Elasticsearch) and the web-research count use a gold line magnifier icon instead of the emoji (and the times-seen flair a gold line eye icon), in the same gold colour variables as the other row action buttons, with gold hover, filled gold active and focus states. (source: USER_GUIDE.md (Buttons you will see on rows))

Level Test Verifies Status
unit test_classdefs.EyeglassGold.test_magnifier_buttons_are_gold The pivot (open related events) and Search-in-Elasticsearch buttons and the web-research count use the gold pass

UI-93

Dashboard navigation: The browser Back button or back gesture closes the topmost open modal, popup or mobile menu instead of leaving the page (the welcome wizard steps back a step); closing one with its X, Cancel, Escape or the backdrop removes its history entry so the next Back navigates normally; with nothing open Back goes to the previous page. (source: USER_GUIDE.md (Finding your way around))

Level Test Verifies Status
unit test_backclose.TestBackCloses.test_back_closes_overlays Back (button or gesture) closes the topmost modal, popup or mobile menu instead of leaving the page; closing one any pass

CLS-01

Device classes: Without class definitions every alarm behaves as before: built-in classes (iot, camera, media, game, personal, work, server, k8s, infra) and unclassified each behave like themselves, every alarm is on except the new-destination ones outside iot (or the classes in the older new_domain_classes / new_tls_classes), and every finding kind analyze.py raises has a switch. (source: docs/USER_GUIDE.md (Device class definitions))

Level Test Verifies Status
unit test_classdefs.Defaults.test_defaults_reproduce_previous_behaviour With no class_defs the built-in classes and unclassified are defined, each behaving like itself; every alarm is pass
unit test_classdefs.Defaults.test_every_raised_kind_is_in_the_catalogue Every finding kind analyze.py raises with a literal kind appears in the alarm catalogue, so each one has a switch. pass

CLS-02

Device classes: An alarm switched off for a class is never raised for devices of that class: baseline findings (analyze.py), live alerts (watch.py), endpoint findings (hosts.py, host matched by learned host name) and destination collection all go through classdefs.alarm_enabled. (source: classdefs.py)

Level Test Verifies Status
unit test_classdefs.Edits.test_update_switches update sets a class’s switched-off alarms (unknown kinds refused) and is read back by alarm_enabled; a pass
unit test_classdefs.Switches.test_switch_off_suppresses_the_alarm Turning an alarm off for a class drops it in analyze (findings), in hosts (endpoint findings, matched by the pass
unit test_classdefs.Switches.test_watch_alerts_pass_the_switch watch.py live alerts for a device (IDS, new device, inbound port, threat intel, admin access) name their alarm pass

CLS-03

Device classes: Classes can be added, renamed and removed (POST /api/config/classes, admin only); a rename updates device_classes and allow rules using it; a class in use is removed only after choosing a class (or unclassified) for its devices; the first edit stores class_defs and drops new_domain_classes / new_tls_classes; device_classes accepts only defined classes. (source: docs/USER_GUIDE.md (Device class definitions))

Level Test Verifies Status
unit test_classdefs.Edits.test_add_rename_and_migrate Adding a class stores class_defs (migrating new_domain_classes / new_tls_classes into the switches and dropping pass
unit test_classdefs.Edits.test_remove_in_use_needs_a_target Removing a class no device uses just removes it; removing one in use is refused until a target class (or pass
unit test_classdefs.Edits.test_update_switches update sets a class’s switched-off alarms (unknown kinds refused) and is read back by alarm_enabled; a pass

CLS-04

Device classes: Each user-added class behaves like one built-in class and follows its built-in rules (protected-zone and admin-port segmentation, executable downloads, new TLS clients, risk impact, default switches); built-in classes behave like themselves. (source: classdefs.py)

Level Test Verifies Status
unit test_classdefs.BehavesLike.test_user_class_follows_its_builtin A user class behaving like camera is held to the camera protected-zone rule and gets camera risk impact and pass

CLS-05

Device classes: Settings > Network policy shows a Device class definitions card (rename, behaves like, an expandable on/off switch per alarm, add, remove with a move target) and the device classes editor offers a drop-down of the defined classes next to the learned host name. (source: docs/USER_GUIDE.md (Device class definitions))

Level Test Verifies Status
unit test_classdefs.SettingsCard.test_card_and_dropdown The policy settings GET returns the alarm catalogue and built-in classes; settings.js renders the Device class pass

CLS-06

Device classes: upload_spike, scan_thresholds and beacon each have a device-class scope: classes (which classes the rule runs for; empty or * = every device, unclassified = devices with no class) and by_class (per-class overrides of the section’s numbers; ignore_ports stays section-wide). Without a scope every device gets the section’s numbers as before. (source: extras.py)

Level Test Verifies Status
unit test_class_scope.ConfigMerge.test_class_filter_and_overrides classes limits the rule to the ticked classes; by_class overrides only the given numbers of that class; pass
unit test_class_scope.ConfigMerge.test_no_scope_is_unchanged Without classes / by_class every device gets the section’s numbers and the rule applies to every class. pass

CLS-07

Device classes: The scope is applied where the findings are made: internal scans (extras.internal_traffic, class by MAC through the device registry or by IP), beacon candidates (extras.beacons, Elasticsearch pre-filter as loose as the loosest class) and upload spikes (analyze.upload_cfg_for). (source: docs/USER_GUIDE.md (Device class definitions))

Level Test Verifies Status
unit test_class_scope.Collectors.test_beacon_per_class beacons() queries loosely enough for the loosest class, then applies each source’s class: filter, min_conns pass
unit test_class_scope.Collectors.test_scan_class_from_registry_mac A device classed by MAC is found through the device registry (the collector only sees IPs). pass
unit test_class_scope.Collectors.test_scan_per_class internal_traffic reports a scanner by its own class’s numbers and only for the classes the rule runs for. pass
unit test_class_scope.Collectors.test_upload_per_class analyze’s upload-spike check takes the device’s class settings (MAC or IP key) and skips classes the rule pass

CLS-08

Device classes: Settings > Network policy shows the scope as a class drop-down (check boxes) and a per-class override table; cfg_validate refuses unknown classes, empty or unknown override settings and bad values; renaming a class follows into classes / by_class and removing one moves the filter to where its devices went (a narrowed rule never widens to every device). (source: docs/USER_GUIDE.md (Device class definitions))

Level Test Verifies Status
unit test_class_scope.Validation.test_rename_and_remove_follow Renaming a class renames it in classes / by_class; removing it moves the filter to the class its devices pass
unit test_class_scope.Validation.test_validate_scope classes must be defined classes (or unclassified / *); by_class rows need a known class, at least one pass

CLS-09

Device classes: Auto-tune works per scope: one proposal per by_class override (id section@class, judged on that class’s devices, written to by_class), the section proposal leaves out classes the rule does not run for, and a section-wide change driven by one class also offers an optional class-only override. (source: docs/USER_GUIDE.md (Auto-tune))

Level Test Verifies Status
unit test_class_scope.AutoTuneScope.test_class_filter_excludes_devices Devices of classes the rule does not run for are left out of the replay (no proposal from their noise). pass
unit test_class_scope.AutoTuneScope.test_class_only_alternative When one class causes a section-wide change, a narrower ‘class only (new override)’ proposal is offered as pass
unit test_class_scope.AutoTuneScope.test_proposal_per_override_class Each by_class override gets its own proposal (id section@class) judged on that class’s devices only; the pass

VOL-01

Volume spike: The volume-spike finding’s thresholds are the policy section volume_spike (min_mb, times_normal, mad_factor, min_days, severity); its defaults are the former hardcoded numbers (50 MB floor, 3x normal, normal + 6 MAD, 3 days of history, medium), so an install without the section behaves as before and the Settings page shows them with their help text. (source: docs/USER_GUIDE.md (Volume spike))

Level Test Verifies Status
unit test_volume_spike.Defaults.test_defaults_equal_old_hardcoded The volume_spike defaults (code, policy.example.json, Settings page for an install without the section) are pass

VOL-02

Volume spike: A change to volume_spike applies from the next analysis run to every device the rule runs for; severity off silences the finding. (source: analyze.py (volume_finding))

Level Test Verifies Status
unit test_volume_spike.Thresholds.test_global_change_takes_effect A global volume_spike change applies to every device: min_mb, times_normal, mad_factor, min_days and pass

VOL-03

Volume spike: volume_spike by_class gives a device class its own numbers (blank = the section’s value); devices of other classes keep the section’s values. (source: docs/USER_GUIDE.md (Device class definitions))

Level Test Verifies Status
unit test_volume_spike.Thresholds.test_per_class_override by_class gives one class its own numbers (MAC or IP key); other classes keep the section’s values. pass

VOL-04

Volume spike: volume_spike classes limits the rule to the ticked device classes (none ticked or * = every device; unclassified = devices with no class). (source: docs/USER_GUIDE.md (Device class definitions))

Level Test Verifies Status
unit test_volume_spike.Thresholds.test_class_limit classes limits the rule to the ticked classes (‘unclassified’ = devices with no class, none ticked or ‘*’ pass

VOL-05

Volume spike: volume_spike is validated like upload_spike (values, scope), follows class renames/removals, is listed on the event cards’ detection settings, has a per-class alarm switch, and auto-tune proposes values for it (section-wide and per class override). (source: docs/USER_GUIDE.md (Auto-tune))

Level Test Verifies Status
unit test_volume_spike.AutoTune.test_auto_tune_volume Auto-tune proposes volume_spike values (section-wide and per by_class override, MB units) and apply writes pass
unit test_volume_spike.Settings.test_class_alarm_switch volume-spike is in the per-class alarm list (Device class definitions) and its switch silences the finding pass
unit test_volume_spike.Settings.test_validation_and_rescope cfg_validate checks volume_spike like upload_spike (severity, non-negative numbers, unknown keys, scope); pass

FEAT-01

Event store: Only events seen in Elasticsearch data (IDS, host, threat intel, Zeek-derived findings) record firings; a firing is added per new IDS alert time, and a finding window overlapping the previous firing of the same condition extends it instead of adding one, while the seen count still counts reports. (source: git 7d0f12f; docs/CORRELATION.md)

Level Test Verifies Status
unit test_event_fires.EsSourcedTest.test_es_types_fire_and_others_do_not IDS, host, threat-intel and Zeek-derived findings are ES-sourced; gateway, vulnerability and inventory findings are not. pass
unit test_event_fires.FiringsTest.test_disjoint_window_is_a_new_firing A window that starts after the previous firing ended is a new firing. pass
unit test_event_fires.FiringsTest.test_events_without_end_time_do_not_fire An ES event without a t1 (no occurrence time) records no firing. pass
unit test_event_fires.FiringsTest.test_ids_fires_per_new_alert_time An IDS signature fires once per new last-alert time; a later report with the same time adds no firing. pass
unit test_event_fires.FiringsTest.test_non_es_events_never_fire Gateway events and inventory findings are stored as events but never get a firing row. pass
unit test_event_fires.FiringsTest.test_overlapping_windows_extend_one_firing A finding variant whose report window overlaps the previous firing of the same condition extends that firing. pass
unit test_event_fires.FiringsTest.test_seen_count_counts_reports The event’s n (seen N times) still counts report appearances even when no new firing is recorded. pass

FEAT-02

Open events: The Open events detail merges the variants of one related condition into one line that keeps every link’s review time (llm_ats), the union of their artifacts and the most confident variant’s fields, so each firing shows only its own links. (source: git 8e94200)

Level Test Verifies Status
unit test_event_fires.DetailPerFiringTest.test_merged_related_links_keep_each_review_time Two variants of one related condition merge into one line with both review times (llm_ats), merged artifacts, pass

FEAT-03

Alerts: Each alert row is tied to its event (ev review alarms to the reviewed event, other alerts to alert ) and shows one verdict, chosen as a person's newest non-rejected verdict, else the event reviewer's label, else unreviewed. _(source: git 57e2586)_
Level Test Verifies Status    
unit test_alerts_view.AlertRefVerdictTest.test_alert_ref A review alarm (key ev ) points at the reviewed event; any other alert is its own event alert . pass
unit test_alerts_view.AlertRefVerdictTest.test_newest_person_verdict_counts With several approved person notes, the newest (last) verdict is used. pass    
unit test_alerts_view.AlertRefVerdictTest.test_person_verdict_wins A person’s verdict beats the event reviewer’s; rejected notes are ignored; the decision model gives no event verdict. pass    

FEAT-04

Alerts: The Alerts web research list shows the event reviewer’s web searches and page reads per event, newest first, marked own or candidate (with its anchor), with only http(s) links, at most per entries, and never manual test look-ups. (source: git 83a1e9d)

Level Test Verifies Status
unit test_alerts_view.WebResearchTest.test_only_http_urls_and_per_cap Only http(s) result links are kept, and at most per look-ups are returned per event. pass
unit test_alerts_view.WebResearchTest.test_own_and_candidate_lookups Look-ups anchored on the event are own; look-ups run while it was a candidate name the anchor; manual tests are left out. pass

FEAT-05

Alerts: The Alerts view sets each alert’s event id and verdict, merges repeats of the same look-up into one row with a times count, strips artifacts and label from people’s notes, and stores each artifact note once (text capped at 700 characters) and refers to it by id per alert. (source: git 57e2586, 83a1e9d)

Level Test Verifies Status
unit test_alerts_view.AlertViewTest.test_empty No alerts: nothing to look up. pass
unit test_alerts_view.AlertViewTest.test_people_notes_trimmed_and_artifact_notes_shared People’s notes lose their artifacts/label fields; artifact notes are stored once and referenced by id per alert. pass
unit test_alerts_view.AlertViewTest.test_verdict_and_web_dedup Each alert gets its event id and verdict; the same look-up re-run by later reviews is one row with a times count. pass

FEAT-06

Alerts: Detections by verdict lists held detections newest first, with verdict counts kept separate for detections and alarms, an optional verdict filter and a row limit. (source: git 57e2586)

Level Test Verifies Status
unit test_alerts_view.DetectionsTest.test_counts_and_filter Held detections are listed newest first with verdict counts kept apart from alarms; a verdict filter narrows the list. pass

FEAT-07

Event reviewer: The event reviewer writes one analyst write-up per event (up to two paragraphs: Why it fired / Verdict) and gives only artifacts for each related link; the output schema does not require a per-link reason. (source: git 57038cf; docs/CORRELATION.md section 7)

Level Test Verifies Status
unit test_reviewer_output.ReviewerParagraphContractTest.test_prompt_asks_for_analyst_write_up The event reviewer prompt asks for an analyst write-up (up to two headed paragraphs) and artifacts only (no reason) per candidate. pass
unit test_reviewer_output.ReviewerParagraphContractTest.test_schema_does_not_require_link_reason The event-review JSON schema requires id, label, confidence and artifacts, but no per-link reason. pass

FEAT-09

Review log: Review log entries count events processed: a correlation pass counts each distinct event it touched once, and a review-job run records events processed, given a note and queued and puts them in its log entry and message. (source: git 6673a2a)

Level Test Verifies Status
unit test_reviewer_output.EventsProcessedTest.test_review_job_run_records_counts A finished review-job run stores events processed / given a note / queued, and the Review log entry carries them. pass
unit test_reviewer_output.EventsProcessedTest.test_run_without_counts_has_no_counts_text A run that recorded no counts (older runs, crash before counting) logs no “events processed” text. pass
unit test_reviewer_output.EventsProcessedTest.test_touch_counts_distinct_events Touching the same event twice (link decided, then labelled) counts it once; empty ids are ignored. pass

FEAT-10

AI pipeline pages: Both AI pipeline pages fold their boxes into four part boxes (Models, Correlation review, Event review, Research review), each with an ⓘ text (what, source, use) under the cardinfo.js key view title, normalised the same way as cardinfo_ui.js. (source: git 38dd1a3, 76d0f88; references/dashboard.md)
Level Test Verifies Status
unit test_cardinfo_keys.CardInfoKeysTest.test_ai_pipeline_parts_have_info Both AI pipeline pages show four part boxes (Models, Correlation review, Event review, Research review) and each pass
unit test_cardinfo_keys.CardInfoKeysTest.test_info_entries_have_three_texts Every AI pipeline ⓘ entry has what, source and use texts. pass
unit test_cardinfo_keys.CardInfoKeysTest.test_norm_model The title normalisation drops counts in brackets, numbers and trailing separators like the browser does. pass
unit test_cardinfo_keys.CardInfoKeysTest.test_parts_built_by_consolidate Both AI pipeline page builders end by folding their boxes into the part boxes (so only part titles get ⓘ buttons). pass

FEAT-11

Box info texts: Every new or renamed top-level dashboard box (Alerts: Recent alerts; Configuration: Auto-close) has its own ⓘ text in cardinfo.js instead of the generic fallback. (source: home-network-report skill step 7 (cardinfo.js))

Level Test Verifies Status
unit test_cardinfo_keys.CardInfoKeysTest.test_auto_close_has_info The Configuration page box “Auto-close” (renamed from Security Triage) has its ⓘ text. pass
unit test_cardinfo_keys.CardInfoKeysTest.test_recent_alerts_has_info The Alerts page’s main box (Recent alerts with its count) resolves to its ⓘ text. pass
unit test_cardinfo_keys.CardInfoKeysTest.test_recent_alerts_has_info_and_no_detections_box The Alerts box “Recent alerts” has its own ⓘ text; the removed “Detections by verdict” box left no stale text behind. pass

SET-90

Settings: Every setting the code exposes (settings endpoints, Integrations sections, Settings-page documents, setter functions) is listed in the settings inventory, and each one is verified by at least one test. (source: TESTING.md (Settings coverage))

Level Test Verifies Status
unit test_settings_inventory.SettingsInventoryTest.test_every_integrations_section_listed Every Integrations section shown on the Configuration page has its own inventory entry. pass
unit test_settings_inventory.SettingsInventoryTest.test_every_setter_listed Every setter function that persists a setting is named by an inventory entry, and every named setter exists. pass
unit test_settings_inventory.SettingsInventoryTest.test_every_setting_covered_by_tests Every inventoried setting names known requirements and each of them is verified by at least one test. pass
unit test_settings_inventory.SettingsInventoryTest.test_every_settings_document_listed Every Settings-page document (store.CFG_DOCS) and every documented settings section is inventoried. pass
unit test_settings_inventory.SettingsInventoryTest.test_every_settings_endpoint_listed Every settings POST endpoint in server.py is an inventory setting or a listed action. pass

KUBE-01

Kubernetes: Kubernetes monitoring reads only Security Onion Elasticsearch (esq/integrations); a shard failure is an error, never a silent partial result. (source: USER_GUIDE.md (Devices → Kubernetes))

Level Test Verifies Status
unit test_k8s.HelpersTest.test_only_security_onion REQ: KUBE-01 pass
unit test_k8s.HelpersTest.test_shard_failure_raises REQ: KUBE-01 pass
unit test_k8s.WatchTest.test_failed_part_is_reported REQ: KUBE-01 pass

KUBE-02

Kubernetes: Stale or missing container logs, high-severity container-log signals (reverse shell, miner, web attack), secrets in logs, pod exec/attach/port-forward, 401/403 bursts, forbidden/PodSecurity events, high SO alerts and new images raise k8s- findings; namespaces exempt in host_policy k8s.signal_exempt raise none. (source: USER_GUIDE.md (Devices → Kubernetes))

Level Test Verifies Status
unit test_k8s.FindingsTest.test_api_exec_and_denied REQ: KUBE-02 pass
unit test_k8s.FindingsTest.test_events_alerts_images REQ: KUBE-02 pass
unit test_k8s.FindingsTest.test_high_signal_investigate_and_exempt REQ: KUBE-02 pass
unit test_k8s.FindingsTest.test_replicas_share_one_key REQ: KUBE-02 pass
unit test_k8s.FindingsTest.test_stale_container_logs REQ: KUBE-02 pass
unit test_k8s.HelpersTest.test_exempt REQ: KUBE-02 pass
unit test_k8s.HelpersTest.test_image_risk_and_stable_pod REQ: KUBE-02 pass

KUBE-03

Kubernetes: API server request counters are turned into per-window increases (max - min per series) and classified as denied, exec, rbac, secrets-read or error. (source: k8s.py)

Level Test Verifies Status
unit test_k8s.ApiserverTest.test_increase_and_classes REQ: KUBE-03 pass

KUBE-04

Kubernetes: Kubernetes findings join the nightly host findings (key prefix k8s-, no duplicates) so correlation, review and Posture see them; the pod pivot rejects malformed namespace/pod names. (source: USER_GUIDE.md (Devices → Kubernetes))

Level Test Verifies Status
unit test_k8s.CollectMergeTest.test_k8s_into_hosts REQ: KUBE-04 pass
unit test_k8s.HelpersTest.test_pod_rejects_bad_names REQ: KUBE-04 pass
unit test_k8s.HelpersTest.test_pod_rejects_bad_owner REQ: KUBE-04 pass
unit test_k8s.HelpersTest.test_set_end_window REQ: KUBE-04 pass

KUBE-05

Kubernetes: The Kubernetes API integration accepts only https:// URLs and a one-line token, keeps the token and CA write-only, cannot be enabled without URL and token, and its Test reports whether the account can do more than read. (source: USER_GUIDE.md (Configuration → Integrations → Kubernetes API))

Level Test Verifies Status
unit test_kube_api.IntegrationTest.test_candidate_validation REQ: KUBE-05 pass
unit test_kube_api.IntegrationTest.test_check_flags_write_access REQ: KUBE-05 pass
unit test_kube_api.IntegrationTest.test_client_refuses_http_and_unconfigured REQ: KUBE-05 pass
unit test_kube_api.IntegrationTest.test_multi_cluster_and_legacy_settings REQ: KUBE-05 pass
unit test_kube_api.IntegrationTest.test_token_never_public REQ: KUBE-05 pass

KUBE-06

Kubernetes: The CIS benchmark reads control-plane flags, RBAC, pods, namespaces and network policies with GET requests only; failed checks become Fix list items (k8s-cis , not endpoint findings), accepted checks (host_policy k8s.cis_accept) do not, and checks that need node access are reported as manual, never as passed. _(source: USER_GUIDE.md (Devices → Kubernetes))_
Level Test Verifies Status
unit test_issues_k8s_cis.CisFixListTest.test_failed_checks_are_fix_list_items REQ: KUBE-06 pass
unit test_issues_k8s_cis.CisFixListTest.test_not_endpoint_findings REQ: KUBE-06 pass
unit test_kube_api.CisTest.test_bad_pod_fails_pod_security REQ: KUBE-06 pass
unit test_kube_api.CisTest.test_flags_and_accept REQ: KUBE-06 pass
unit test_kube_api.CisTest.test_hardened_cluster_has_no_failures REQ: KUBE-06 pass
unit test_kube_api.CisTest.test_node_level_sections_are_manual REQ: KUBE-06 pass
unit test_kube_api.CisTest.test_privileged_namespace_listed_not_failed REQ: KUBE-06 pass
unit test_kube_api.CisTest.test_rbac_wildcards_and_default_cluster_admin REQ: KUBE-06 pass

KUBE-07

Kubernetes: The Kubernetes map links ingress -> service (backend) -> pod (selector) and pod -> workload (ReplicaSet resolved to its Deployment), and summarises each container’s security context. (source: USER_GUIDE.md (Devices → Kubernetes map))

Level Test Verifies Status
unit test_kube_api.MapTest.test_edges_and_workloads REQ: KUBE-07 pass

KUBE-08

Kubernetes: Several Kubernetes clusters can be configured by name (older single-cluster settings read as ‘default’); the Kubernetes pages filter by one cluster or show all, and Security Onion data is attributed to a cluster by its node names. (source: USER_GUIDE.md (Devices → Kubernetes))

Level Test Verifies Status
unit test_kube_images.ClusterFilterTest.test_queries_limited_to_cluster_nodes REQ: KUBE-08 pass

KUBE-09

Kubernetes: Kubernetes warning events and container-log hits that are not findings reach Open events as low-priority host findings (snapshot only, never a watcher alert). (source: USER_GUIDE.md (Devices → Kubernetes))

Level Test Verifies Status
unit test_kube_images.EventsToOpenEventsTest.test_warning_events_and_log_hits_become_info_findings REQ: KUBE-09 pass

KUBE-12

Kubernetes: Pod notes: filed on the object that creates the pods - Deployment, StatefulSet, DaemonSet, CronJob or Job (kb subject pod:///; kind pod for unowned static pods) - so one note applies to every pod it creates now or later; the UI says so (owner banner on the pod page, Created by column with a note count on the Pods table). People add them on the pod page; the AI reads them for any of those pods' events and writes (event research host_notes, event reviewer expected-artifact notes). _(source: KUBERNETES.md (Pod notes))_

Level Test Verifies Status
unit test_k8s.HelpersTest.test_pod_owner REQ: KUBE-12 pass
unit test_kb_pod.PodNotesTest.test_event_reviewer_writes_pod_note REQ: KUBE-12 pass
unit test_kb_pod.PodNotesTest.test_event_to_owner REQ: KUBE-12 pass
unit test_kb_pod.PodNotesTest.test_guess_owner REQ: KUBE-12 pass
unit test_kb_pod.PodNotesTest.test_note_applies_to_every_pod_of_the_owner REQ: KUBE-12 pass
unit test_kb_pod.PodNotesTest.test_subject_is_the_owner REQ: KUBE-12 pass

KUBE-11

Kubernetes: The Risk page ranks Kubernetes workloads (containers) together with hosts using the same likelihood (exposure, weaknesses incl. image CVEs, threat, reach, visibility) x impact model, and lists container vulnerabilities ranked by risk. (source: USER_GUIDE.md (Security → Risk))

Level Test Verifies Status
unit test_risk_k8s.K8sRiskTest.test_exposed_vulnerable_privileged_ranks_higher REQ: KUBE-11 pass
unit test_risk_k8s.K8sRiskTest.test_hardened_internal_workload_is_low REQ: KUBE-11 pass
unit test_risk_k8s.K8sRiskTest.test_threat_from_security_onion_and_host_network_alerts_go_to_node REQ: KUBE-11 pass
unit test_risk_k8s.K8sRiskTest.test_visibility_impact_override_and_no_data REQ: KUBE-11 pass

KUBE-13

Kubernetes: Vulnerability counts over time: once a day the scheduler records open Fix list items by severity, each cluster’s CIS benchmark results and the distinct CVEs (by severity, with a fix available) in its running images (vulnhist.py, table vuln_hist; a same-day re-run replaces that day). Days before daily recording are rebuilt once from stored review runs and never overwrite a daily record. The Fix list and Devices → Kubernetes pages show them as line charts (Kubernetes: all clusters summed, or the picked cluster). (source: USER_GUIDE.md (Fix list, Devices → Kubernetes))

Level Test Verifies Status
unit test_vulnhist.VulnHistTest.test_backfill_never_overwrites_daily Backfill fills only days without rows and marks them ‘backfill’; a gap in the days is a null, not a zero. pass
unit test_vulnhist.VulnHistTest.test_cve_counts_distinct_per_cluster A CVE in several images counts once per cluster at its highest severity; UNKNOWN is left out. pass
unit test_vulnhist.VulnHistTest.test_record_replaces_same_day_and_series_sums_clusters A second record the same day replaces that day’s rows; the k8s series sums clusters unless one is picked. pass
unit test_vulnhist.VulnHistTest.test_scheduler_runs_it_daily The scheduler has a daily vulnhist job (vulnhist.py record). pass

KUBE-10

Kubernetes: For each running image the newest registry tag of the same form is found (pre-releases skipped), the running and newest images are scanned for CVEs, and images whose critical/high CVEs are fixed by updating become Fix list items (k8s-imgcve ), not endpoint findings. _(source: USER_GUIDE.md (Devices → Kubernetes))_
Level Test Verifies Status
unit test_issues_k8s_cis.CisFixListTest.test_image_cves_are_fix_list_items REQ: KUBE-10 pass
unit test_kube_images.TagTest.test_fixed_by_update_and_findings REQ: KUBE-10 pass
unit test_kube_images.TagTest.test_newer_tags_same_shape_no_prerelease REQ: KUBE-10 pass
unit test_kube_images.TagTest.test_parse_ref REQ: KUBE-10 pass
unit test_kube_images.TrivyArgsTest.test_image_reference_cannot_inject_options REQ: KUBE-10 pass

OPS-05

Operations: The dashboard’s parsed-document cache is bounded (LRU), so walking every snapshot cannot exhaust the container’s memory. (source: server.py)

Level Test Verifies Status
unit test_issues.IncrementalTrackTests.test_incremental_matches_full_and_reuses_cache Stored runs give the identical Fix list; a new run is the only one parsed again, and a run whose IP->MAC pass
unit test_issues_race.TrackerRaceTest.test_concurrent_runs_store_complete_rows Eight threads syncing at once (each its own database) all store every run with its lookups. pass
unit test_issues_race.TrackerRaceTest.test_lost_lookups_are_reevaluated A run whose stored lookups no longer match the current IP->MAC map is evaluated again. pass
unit test_server_cache.CacheBound.test_cache_is_lru_bounded Inserting more than _CACHE_MAX entries evicts the least recently used; a read refreshes an entry. pass
unit test_server_cache.CacheBound.test_snapshot_loads_stay_bounded Loading many snapshot docs through load_json never keeps more than _CACHE_MAX parsed docs. pass

Settings coverage

Every setting (tests/settings_inventory.py) and the number of tests behind its requirements.

Setting Where Endpoint Requirements Unit E2E
integrations.elasticsearch Configuration > Integrations > Elasticsearch (URL, API key, index names) /api/config/integrations/elasticsearch SET-01, SET-02, SET-03, SET-04, SET-05, SET-06, SET-07, SET-12, SET-13, SET-60, SET-61, SET-62 28 10
integrations.unifi Configuration > Integrations > UniFi (controller URL, API key) /api/config/integrations/unifi SET-01, SET-05, SET-06, SET-07, SET-08, SET-12, SET-13, SET-60, SET-61, SET-62 23 10
integrations.audit More > Audit log > Audit log storage (key, index, send event reviewer / researcher events) /api/config/integrations/audit SET-05, SET-06, SET-09, SET-10, SET-11, SET-13, SET-14, SET-15, SET-63 22 1
integrations.web Configuration > Integrations > Web search (provider, Firecrawl URL, key, CA) /api/config/integrations/web WEB-01, WEB-02, WEB-03, WEB-04, SET-60, SET-61 4 9
integrations.opencti Configuration > Integrations > OpenCTI /api/config/integrations/opencti OCTI-01, OCTI-03, SET-60, SET-61 3 9
integrations.kubernetes Configuration > Integrations > Kubernetes API (URL(s), read-only token, CA, CIS on/off) /api/config/integrations/kubernetes KUBE-05, KUBE-06, SET-60, SET-61 13 9
integrations.feeds Configuration > Integrations > Threat-intel feeds /api/config/integrations/feeds FEED-01, FEED-02, SET-60 3 4
cfg.policy Settings > Network policy (zones, roles, device classes, ports, thresholds) /api/config/cfg STO-02, SET-40, SET-41, SET-42, SET-43, SET-44, SET-45, SET-46, SET-47, SET-49, SET-50, SET-67 29 3
cfg.class_defs Settings > Network policy > Device class definitions (add, rename, remove, behaves like, per-class alarm switches) /api/config/classes CLS-01, CLS-02, CLS-03, CLS-04, CLS-05, ANA-30 11 0
cfg.host_policy Settings > Host policy /api/config/cfg STO-02, SET-40, SET-41, SET-42, SET-43, SET-48, SET-49 20 0
cfg.known_benign Settings > Known benign /api/config/cfg STO-02, SET-40, SET-41, SET-42, SET-43, SET-48 18 0
cfg.site Settings > Site /api/config/cfg STO-02, CFG-01, EVW-01, SET-40, SET-41, SET-42, SET-43, SET-48 41 2
cfg.class_scope Settings > Network policy > upload_spike / volume_spike / scan_thresholds / beacon: classes (device class drop-down) and by_class overrides /api/config/cfg CLS-06, CLS-07, CLS-08, VOL-03, VOL-04 10 0
cfg.volume_spike Settings > Network policy > volume_spike: min_mb, times_normal, mad_factor, min_days, severity (volume-spike finding) /api/config/cfg VOL-01, VOL-02, VOL-05 5 0
cfg.tune Settings > Auto-tune thresholds (recommend, accept) /api/config/tune-apply SET-51, SET-52, SET-67, CLS-09, VOL-05 11 3
cfg.discover Settings > Network policy > Discover from UniFi /api/config/discover SET-53, SET-54, SET-55 8 0
review.lookback More > Settings > Site > event_window_minutes: event window (correlation window, review coverage, settle wait) /api/config/cfg EVW-01, EVW-02, EVW-03, EVW-04, SET-64 17 6
push.gate More > Settings > Site > push_wait_for_ai / push_hold_max_minutes: wait for the AI verdict before phone alerts, longest hold /api/config/cfg PSH-01, PSH-05, PSH-06 6 0
users.trust More > Settings > Site > min_indicators / few_indicators_max_confidence / user_alert_min_confidence / stop_device_min_confidence / baseline_alerts_to_users: who is told what /api/config/cfg ALR-30, ALR-31, ALR-32 5 0
review.schedule AI pipeline configuration > Review job schedule /api/config/review-schedule CFG-01, SET-64 21 7
review.job AI pipeline configuration > Review job: on/off, event modes /api/llm/review CFG-01, OPS-06, SET-64 32 7
research.limits AI pipeline configuration > Research job limits (model, cost caps, web) /api/llm/research CFG-01, SET-64 21 7
autoclose Open events > Auto-close settings and guard rails /api/config/triage, /api/config/triage/reopen STO-08, STO-12, SET-64 18 6
notes.consolidate AI pipeline configuration > Nightly note consolidation /api/llm/notes-consolidate STO-09, SET-66 6 8
llm.models AI pipeline configuration > Models (event reviewer, research, chat model) /api/llm/config SET-22, SET-23, SET-65 6 4
llm.providers AI pipeline configuration > AI providers (added APIs, local server) /api/llm/providers SET-32, SET-33, SET-34, SET-65 8 4
llm.clef AI pipeline configuration > Decision model settings (on/off, thresholds) /api/llm/clef SET-30, SET-31, SET-66 6 8
llm.clef_server AI pipeline configuration > Decision model server /api/llm/clef-server SET-35 3 0
llm.notes AI pipeline configuration > Event reviewer context notes /api/llm/notes SET-20, SET-21, SET-16, SET-66 7 8
llm.review_limits AI pipeline configuration > Review limits /api/llm/review-limits STO-05, SET-26, SET-27, SET-28, SET-29, SET-66, SET-69 23 15
llm.esqueries AI pipeline configuration > Event reviewer look-ups: Elasticsearch /api/llm/esqueries SET-25, SET-66 3 8
llm.websearch AI pipeline configuration > Event reviewer look-ups: web search /api/llm/websearch SET-25, SET-66 3 8
llm.lookupplan AI pipeline configuration > Event reviewer look-ups first /api/llm/lookupplan SET-24, SET-66 1 8
llm.es_writer AI pipeline configuration > Models: Search writer (planning review page; none = planner / reviewer) /api/llm/config LLM-12, SET-66 7 8
llm.es_planner AI pipeline configuration > Models: Elasticsearch planner (none = the event reviewer plans) /api/llm/config LLM-11, SET-66 7 8
llm.webcache AI pipeline configuration > Syn web cache (on/off, days kept, clear) /api/llm/webcache WEB-08, SET-66 9 8
llm.chat_es Ask AI: may the chat search Elasticsearch /api/llm/chat-es SET-23, SET-66, SET-69 2 15
push.prefs Account > Notifications (which devices alert me) /api/push/prefs STO-07, SET-68 35 5

Test → requirements

Test Requirements
unit.test_advice.AdviceTest.test_pass_writes_advice_and_skips_unchanged ALR-26
unit.test_advice.AdviceTest.test_unreviewed_alerts_wait ALR-26
unit.test_advice.AdviceTest.test_stop_device_guard_rail ALR-26
unit.test_advice.AdviceTest.test_prompts_only_say_stop_using_when_100_percent_sure ALR-29
unit.test_advice.AdviceTest.test_bad_answers_are_dropped ALR-26
unit.test_advice.AdviceTest.test_prompt_change_rewrites_advice ALR-26
unit.test_advice.AdviceTest.test_model_error_does_not_stop_the_pass ALR-26
unit.test_advice.AdviceTest.test_prompt_carries_local_time_and_group ALR-28
unit.test_advice.AdviceTest.test_ensure_writes_missing_note_first ALR-28
unit.test_advice.AdviceTest.test_pages_get_the_advice ALR-27, OE-21
unit.test_aireview_paging.OverviewCore.test_overview_core_has_no_rows_but_keeps_totals AIR-01
unit.test_aireview_paging.OverviewCore.test_decisions_list_removed AIR-01
unit.test_aiusage.AiUsage.test_sums_per_step_and_prices LLM-04
unit.test_aiusage.AiUsage.test_bad_input_never_raises LLM-04
unit.test_alerts_page.AlertStoreTest.test_muted_alert_is_stored_cleared_read_and_never_pushed ALR-09
unit.test_alerts_page.AlertStoreTest.test_mute_remove_restores_only_its_alerts_as_read_and_unpushed_stays_empty ALR-09
unit.test_alerts_page.AlertStoreTest.test_mute_add_cannot_create_rules ALR-08
unit.test_alerts_page.AlertStoreTest.test_suppressed_alert_hidden_from_feed_but_correlated ALR-10
unit.test_alerts_page.AlertStoreTest.test_thirty_day_window_covers_every_kind ALR-11
unit.test_alerts_page.WatcherRulesTest.test_arrival_bookmark_moves_only_after_clean_run CFG-05
unit.test_alerts_page.WatcherRulesTest.test_late_ids_alert_says_when_it_happened CFG-05
unit.test_alerts_page.WatcherRulesTest.test_ids_severity1_and_malware_categories_raise_investigate ALR-12
unit.test_alerts_page.WatcherRulesTest.test_new_device_dhcp_mac_and_active_ip ALR-13
unit.test_alerts_page.WatcherRulesTest.test_new_device_check_needs_a_registry ALR-13
unit.test_alerts_page.WatcherRulesTest.test_new_internet_facing_port ALR-14
unit.test_alerts_page.WatcherRulesTest.test_threat_intel_domain_sni_and_serious_ip ALR-15
unit.test_alerts_page.WatcherRulesTest.test_dns_tunnel_thresholds ALR-16
unit.test_alerts_page.WatcherRulesTest.test_endpoint_problems ALR-17
unit.test_alerts_page.WatcherRulesTest.test_failed_admin_logins ALR-18
unit.test_alerts_page.WatcherRulesTest.test_repeat_muted_for_twelve_hours ALR-19
unit.test_alerts_page.WatcherRulesTest.test_watcher_detections_are_held_not_alarms ALR-19
unit.test_alerts_page.AlertsPageJsTest.test_bell_count_and_title ALR-20
unit.test_alerts_page.AlertsPageJsTest.test_bell_uses_my_devices_count_when_narrowed ALR-20
unit.test_alerts_page.AlertsPageJsTest.test_mark_all_read_button ALR-20, ALR-06
unit.test_alerts_page.AlertsPageJsTest.test_verdict_chip_and_provenance ALR-21
unit.test_alerts_page.AlertsPageJsTest.test_alarm_columns_by_role ALR-22
unit.test_alerts_page.AlertsPageJsTest.test_research_notes_and_artifact_cells ALR-22
unit.test_alerts_page.AlertsPageJsTest.test_no_detections_card_or_verdict_tiles ALR-23
unit.test_alerts_page.AlertsPageJsTest.test_user_gets_read_only_inline_review ALR-22, ALR-23
unit.test_alerts_page.AlertsPageJsTest.test_only_my_devices_toggle ALR-02, ALR-25
unit.test_alerts_page.AlertsPageJsTest.test_mute_rules_card_and_cleared_view ALR-07, ALR-05, ALR-25
unit.test_alerts_page.AlertsPageJsTest.test_no_mute_rules_means_no_mute_card ALR-25
unit.test_alerts_page.AlertsPageJsTest.test_empty_mute_card_does_not_offer_removed_mute_creation ALR-25
unit.test_alerts_page.AlertsPageJsTest.test_empty_states ALR-25
unit.test_alerts_page.AlertsPageJsTest.test_older_server_falls_back_to_plain_feed ALR-25
unit.test_alerts_page.AlertsPageJsTest.test_my_devices_panel_locked_for_user ALR-24
unit.test_alerts_page.AlertsPageJsTest.test_my_devices_picker_for_admin ALR-24
unit.test_alerts_page.AlertsPageJsTest.test_device_picker_modes ALR-24
unit.test_alerts_view.AlertRefVerdictTest.test_alert_ref FEAT-03
unit.test_alerts_view.AlertRefVerdictTest.test_person_verdict_wins FEAT-03
unit.test_alerts_view.AlertRefVerdictTest.test_newest_person_verdict_counts FEAT-03
unit.test_alerts_view.WebResearchTest.test_own_and_candidate_lookups FEAT-04
unit.test_alerts_view.WebResearchTest.test_only_http_urls_and_per_cap FEAT-04
unit.test_alerts_view.AlertViewTest.test_empty FEAT-05
unit.test_alerts_view.AlertViewTest.test_verdict_and_web_dedup FEAT-05
unit.test_alerts_view.AlertViewTest.test_people_notes_trimmed_and_artifact_notes_shared FEAT-05
unit.test_alerts_view.DetectionsTest.test_counts_and_filter FEAT-06
unit.test_analyze.DevKeyTests.test_mac_preferred RISK-03
unit.test_analyze.DevKeyTests.test_ip_fallback RISK-03
unit.test_analyze.CompactTests.test_volume_fields ANA-01
unit.test_analyze.CompactTests.test_hours_and_rounding ANA-01
unit.test_analyze.CompactTests.test_service_and_port_maps ANA-01
unit.test_analyze.CompactTests.test_dns_summary ANA-01
unit.test_analyze.CompactTests.test_sparse_device ANA-01
unit.test_analyze.StatsTests.test_median ANA-01
unit.test_analyze.StatsTests.test_mad ANA-01
unit.test_analyze.SpikeTests.test_requires_floor_and_history ANA-01
unit.test_analyze.SpikeTests.test_value_equal_to_floor_counts ANA-01
unit.test_analyze.SpikeTests.test_multiple_and_mad_rules ANA-01
unit.test_analyze.SpikeTests.test_time_range_scaling ANA-01
unit.test_analyze.SpikeTests.test_sp_uses_configured_severity ANA-01
unit.test_analyze.SmallHelperTests.test_ephemeral_ports ANA-01
unit.test_analyze.SmallHelperTests.test_tunnel_level ANA-01
unit.test_analyze.SmallHelperTests.test_beacon_id ANA-01
unit.test_analyze.SmallHelperTests.test_enrich_today ANA-01
unit.test_analyze.SmallHelperTests.test_new_destination_findings_follow_policy_classes ANA-30
unit.test_audit.TestClean.test_secret_names_redacted AUD-01
unit.test_audit.TestClean.test_ordinary_names_kept AUD-01
unit.test_audit.TestClean.test_empty_secret_values_not_marked AUD-01
unit.test_audit.TestClean.test_nested_secrets_redacted AUD-01
unit.test_audit.TestClean.test_whole_secret_subtree_redacted AUD-01
unit.test_audit.TestClean.test_long_strings_truncated AUD-01
unit.test_audit.TestClean.test_lists_and_dicts_capped AUD-01
unit.test_audit.TestClean.test_depth_bounded AUD-01
unit.test_audit.TestClean.test_scalars_untouched AUD-01
unit.test_audit.TestClean.test_cut AUD-01
unit.test_audit.TestEntries.test_action_entry_fields AUD-01
unit.test_audit.TestEntries.test_failed_sign_in_entry AUD-02
unit.test_audit.TestEntries.test_denied_request_entry AUD-02
unit.test_audit.TestEntries.test_minimal_action AUD-01
unit.test_audit.TestEntries.test_long_fields_truncated AUD-01
unit.test_audit.TestEntries.test_llm_entry AUD-01
unit.test_audit.TestEntries.test_llm_status_outcome_and_no_usage AUD-01
unit.test_audit.TestEntries.test_background_actor_switched_off AUD-01
unit.test_audit.TestEntries.test_full_queue_spools_without_raising AUD-03, AUD-05
unit.test_audit.TestEntries.test_existing_timestamp_and_id_kept AUD-01
unit.test_audit.TestSpoolAndFlush.test_flush_nothing_to_do AUD-03
unit.test_audit.TestSpoolAndFlush.test_unreachable_es_spools_entries AUD-03
unit.test_audit.TestSpoolAndFlush.test_no_key_configured_spools AUD-03
unit.test_audit.TestSpoolAndFlush.test_bad_url_scheme_refused AUD-03
unit.test_audit.TestSpoolAndFlush.test_es_request_shape AUD-03
unit.test_audit.TestSpoolAndFlush.test_bulk_body_and_rejections AUD-03
unit.test_audit.TestSpoolAndFlush.test_spool_drained_when_es_returns AUD-03
unit.test_audit.TestSpoolAndFlush.test_partial_drain_keeps_unsent_without_duplicates AUD-03
unit.test_audit.TestSpoolAndFlush.test_drain_false_leaves_spool AUD-03
unit.test_audit.TestSpoolAndFlush.test_spool_cap_drops AUD-03
unit.test_audit.TestSpoolAndFlush.test_spool_unwritable_never_raises AUD-03
unit.test_audit.TestSpoolAndFlush.test_flush_with_explicit_batch AUD-03
unit.test_audit.TestSpoolAndFlush.test_non_json_values_spooled_as_strings AUD-03
unit.test_audit.TestNoLoss.test_bulk_uses_event_id_as_doc_id AUD-05
unit.test_audit.TestNoLoss.test_conflict_counts_as_stored AUD-05
unit.test_audit.TestNoLoss.test_busy_items_are_retried_not_dropped AUD-05
unit.test_audit.TestNoLoss.test_flush_spools_deferred_entries AUD-05
unit.test_audit.TestNoLoss.test_drain_keeps_deferred_and_rest AUD-05
unit.test_audit.TestNoLoss.test_malformed_entries_go_to_dead_letter AUD-05
unit.test_audit.TestNoLoss.test_chunks_bounded_by_bytes AUD-05
unit.test_audit.TestNoLoss.test_shutdown_spools_queue AUD-05
unit.test_audit.TestNoLoss.test_drops_only_when_disk_low AUD-05
unit.test_audit.TestReading.test_search_rejects_bad_times AUD-01
unit.test_audit.TestReading.test_template_installed_before_first_write AUD-01
unit.test_audit.TestReading.test_search_shows_pre_rename_actors_as_syn AUD-01
unit.test_audit.TestReading.test_search_query_and_rows AUD-01
unit.test_audit.TestReading.test_doc_id_validated AUD-01
unit.test_audit.TestReading.test_status_when_es_unreachable AUD-03
unit.test_auth.TestHashing.test_hash_format_is_salted_scrypt AUTH-01
unit.test_auth.TestHashing.test_same_password_gets_different_salts AUTH-01
unit.test_auth.TestHashing.test_verify_accepts_right_and_rejects_wrong_password AUTH-01
unit.test_auth.TestHashing.test_verify_never_raises_on_damaged_hash AUTH-01
unit.test_auth.TestUserManagement.test_add_user_stores_hash_not_password AUTH-01, AUTH-03
unit.test_auth.TestUserManagement.test_new_account_gets_welcome_until_done AUTH-08
unit.test_auth.TestUserManagement.test_add_rejects_short_password AUTH-02
unit.test_auth.TestUserManagement.test_add_rejects_missing_password AUTH-02
unit.test_auth.TestUserManagement.test_username_rules AUTH-03
unit.test_auth.TestUserManagement.test_duplicate_username_rejected AUTH-03
unit.test_auth.TestUserManagement.test_add_rejects_unknown_role AC-02
unit.test_auth.TestUserManagement.test_set_password_by_admin_bumps_generation AUTH-02, AUTH-04, AC-08
unit.test_auth.TestUserManagement.test_set_password_validation AUTH-02
unit.test_auth.TestUserManagement.test_delete_rules AC-05, AC-08
unit.test_auth.TestRoles.test_role_of_least_privilege_default AC-02
unit.test_auth.TestRoles.test_public_list_normalises_roles_and_hides_hash AC-02
unit.test_auth.TestRoles.test_migrate_roles_once AUTH-07
unit.test_auth.TestRoles.test_set_role_rules AC-05, AC-08
unit.test_auth.TestRoles.test_read_upto_only_moves_forward AC-07
unit.test_auth.TestBootstrap.test_bootstrap_seeds_first_admin AUTH-06
unit.test_auth.TestBootstrap.test_bootstrap_ignored_afterwards AUTH-06
unit.test_auth.TestBootstrap.test_bootstrap_needs_both_values AUTH-06
unit.test_auth.TestSessions.test_cookie_roundtrip AUTH-04
unit.test_auth.TestSessions.test_tampered_cookie_rejected AUTH-04
unit.test_auth.TestSessions.test_garbage_cookie_values AUTH-04
unit.test_auth.TestSessions.test_expired_cookie_rejected AUTH-04
unit.test_auth.TestSessions.test_expiry_uses_session_ttl AUTH-04
unit.test_auth.TestSessions.test_generation_bump_revokes_sessions AUTH-04
unit.test_auth.TestSessions.test_deleted_user_session_rejected AUTH-04
unit.test_auth.TestSessions.test_signature_is_hmac_of_body_with_secret AUTH-04, SEC-06
unit.test_auth.TestSessions.test_short_secret_file_regenerated AUTH-04
unit.test_auth.TestLogin.test_login_success_records_last_login AUTH-01, AUTH-04
unit.test_auth.TestLogin.test_login_failures_same_message AUTH-01
unit.test_auth.TestLogin.test_ip_throttle_after_eight_failures AUTH-05
unit.test_auth.TestLogin.test_ip_throttle_window_expires AUTH-05
unit.test_auth.TestLogin.test_success_clears_ip_failures AUTH-05
unit.test_auth.TestLogin.test_remote_account_lock AUTH-05
unit.test_auth.TestLogin.test_lan_failures_do_not_lock_remote AUTH-05
unit.test_auth.TestLogin.test_failed_login_records_user_failure AUTH-05
unit.test_auth.TestLogin.test_private_detection AUTH-05
unit.test_auth.TestChangeOwnPassword.test_change_success_reissues_cookie AUTH-04, DASH-03
unit.test_auth.TestChangeOwnPassword.test_change_rejections AUTH-02, DASH-03
unit.test_auth.TestChangeOwnPassword.test_wrong_current_counts_toward_throttle AUTH-05
unit.test_auth.TestChangeOwnPassword.test_account_info DASH-03
unit.test_autoclose.AutoCloseOpenEvents.test_expected_open_events_are_closed STO-08
unit.test_autoclose.AutoCloseOpenEvents.test_verdict_popup_info_and_reopen OE-20
unit.test_autoclose.AutoCloseOpenEvents.test_dry_run_and_disabled_option_change_nothing STO-08
unit.test_autoclose.AutoCloseOpenEvents.test_person_reopen_is_respected_and_verdict_change_reopens STO-08
unit.test_autoclose.AutoCloseOpenEvents.test_suppressed_item_is_never_reopened STO-08, STO-05
unit.test_autoclose.AutoCloseOpenEvents.test_ai_reopen_does_not_block_a_later_close STO-08
unit.test_autoclose.AutoCloseOpenEvents.test_person_verdict_is_authoritative STO-08
unit.test_autoclose.AutoCloseGuardRails.test_settings_defaults_merge_and_ranges STO-12
unit.test_autoclose.AutoCloseGuardRails.test_low_confidence_reviewer_label_stays_open STO-12
unit.test_autoclose.AutoCloseGuardRails.test_protected_category_needs_a_person STO-12
unit.test_autoclose.AutoCloseGuardRails.test_scoped_person_verdict_closes_protected_event STO-12
unit.test_autoclose.AutoCloseGuardRails.test_suspicious_event_holds_and_reopens_its_host STO-12
unit.test_autoclose.AutoCloseGuardRails.test_host_hold_off_holds_only_the_suspicious_event STO-12
unit.test_autoclose.AutoCloseGuardRails.test_code_scan_finding_never_holds_its_host STO-12
unit.test_autoclose.AutoCloseGuardRails.test_ai_closure_expires_when_the_event_repeats STO-12
unit.test_backclose.TestBackCloses.test_back_closes_overlays UI-93
unit.test_cardinfo_keys.CardInfoKeysTest.test_norm_model FEAT-10
unit.test_cardinfo_keys.CardInfoKeysTest.test_ai_pipeline_parts_have_info FEAT-10
unit.test_cardinfo_keys.CardInfoKeysTest.test_info_entries_have_three_texts FEAT-10
unit.test_cardinfo_keys.CardInfoKeysTest.test_parts_built_by_consolidate FEAT-10
unit.test_cardinfo_keys.CardInfoKeysTest.test_recent_alerts_has_info_and_no_detections_box FEAT-11
unit.test_cardinfo_keys.CardInfoKeysTest.test_auto_close_has_info FEAT-11
unit.test_cardinfo_keys.CardInfoKeysTest.test_recent_alerts_has_info FEAT-11
unit.test_cert_dns_notes.CertDnsNotes.test_cert_is_an_artifact_subject STO-13
unit.test_cert_dns_notes.CertDnsNotes.test_cert_note_reaches_event_with_cert_artifact STO-13
unit.test_cert_dns_notes.CertDnsNotes.test_parent_domain_note_reaches_subdomain_event STO-13
unit.test_cert_dns_notes.CertDnsNotes.test_correlate_adds_cert_artifact STO-13
unit.test_cert_dns_notes.CertDnsNotes.test_entry_deleted_when_last_note_times_out STO-13
unit.test_class_scope.ConfigMerge.test_no_scope_is_unchanged CLS-06
unit.test_class_scope.ConfigMerge.test_class_filter_and_overrides CLS-06
unit.test_class_scope.Collectors.test_scan_per_class CLS-07
unit.test_class_scope.Collectors.test_scan_class_from_registry_mac CLS-07
unit.test_class_scope.Collectors.test_beacon_per_class CLS-07
unit.test_class_scope.Collectors.test_upload_per_class CLS-07
unit.test_class_scope.Validation.test_validate_scope CLS-08
unit.test_class_scope.Validation.test_rename_and_remove_follow CLS-08
unit.test_class_scope.AutoTuneScope.test_proposal_per_override_class CLS-09
unit.test_class_scope.AutoTuneScope.test_class_filter_excludes_devices CLS-09
unit.test_class_scope.AutoTuneScope.test_class_only_alternative CLS-09
unit.test_classdefs.Defaults.test_defaults_reproduce_previous_behaviour CLS-01
unit.test_classdefs.Defaults.test_every_raised_kind_is_in_the_catalogue CLS-01
unit.test_classdefs.Switches.test_switch_off_suppresses_the_alarm CLS-02
unit.test_classdefs.Switches.test_watch_alerts_pass_the_switch CLS-02
unit.test_classdefs.Edits.test_add_rename_and_migrate CLS-03
unit.test_classdefs.Edits.test_remove_in_use_needs_a_target CLS-03
unit.test_classdefs.Edits.test_update_switches CLS-02, CLS-03
unit.test_classdefs.BehavesLike.test_user_class_follows_its_builtin CLS-04
unit.test_classdefs.SettingsCard.test_card_and_dropdown CLS-05
unit.test_classdefs.EyeglassGold.test_magnifier_buttons_are_gold UI-92
unit.test_clef_apikey.ClefApiKey.test_no_key_no_header LLM-03
unit.test_clef_apikey.ClefApiKey.test_key_sent_and_masked LLM-03
unit.test_clef_apikey.ClefApiKey.test_empty_keeps_and_clear_removes LLM-03
unit.test_clef_apikey.ClefApiKey.test_header_injection_rejected LLM-03
unit.test_clef_apikey.ClefApiKey.test_scrub LLM-03
unit.test_clef_stage.ClefStageTest.test_decision_model_decides_every_link LLM-03
unit.test_clef_stage.ClefStageTest.test_event_pass_one_call_with_all_related_events LLM-03
unit.test_clef_stage.ClefStageTest.test_determination_inputs_recorded LLM-03
unit.test_clef_stage.ClefStageTest.test_event_without_related_links_still_labelled LLM-03
unit.test_clef_stage.ClefStageTest.test_rereview_clears_decision LLM-03
unit.test_clef_stage.ClefStageTest.test_config_is_loopback_only LLM-03
unit.test_clef_stage.ClefServerSettingsTest.test_validate LLM-03
unit.test_clef_stage.ClefServerSettingsTest.test_kubernetes_backend LLM-03
unit.test_clef_stage.ClefServerSettingsTest.test_sglang_health_and_model_field LLM-03
unit.test_config.TestSiteCfg.test_defaults_without_site_config CFG-01
unit.test_config.TestSiteCfg.test_overrides_merge_and_private_keys_dropped CFG-01, STO-02
unit.test_config.TestSiteCfg.test_cache_ttl CFG-01
unit.test_config.TestSiteCfg.test_store_failure_falls_back_to_defaults CFG-01
unit.test_config.TestSiteCfg.test_get_default_for_empty_values CFG-01
unit.test_config.TestSiteCfg.test_is_internal CFG-01
unit.test_config.TestSiteCfg.test_public_subset CFG-01, AC-06
unit.test_config.TestWindow.test_now_window CFG-03
unit.test_config.TestWindow.test_empty_env_means_now CFG-03
unit.test_config.TestWindow.test_fixed_end_window CFG-03
unit.test_config.TestWindow.test_minutes_rounding_and_floor CFG-03
unit.test_config.TestArrivalWindow.test_first_run_uses_nominal_span_ending_before_now CFG-05
unit.test_config.TestArrivalWindow.test_windows_touch_end_to_end CFG-05
unit.test_config.TestArrivalWindow.test_uncommitted_window_is_covered_again CFG-05
unit.test_config.TestArrivalWindow.test_review_overlap_keeps_lookback CFG-05
unit.test_config.TestArrivalWindow.test_other_spans_cover_the_job_window CFG-05
unit.test_config.TestArrivalWindow.test_catchup_capped CFG-05
unit.test_config.TestArrivalWindow.test_time_range_stays_event_time CFG-05
unit.test_config.TestArrivalWindow.test_manual_run_never_commits CFG-05
unit.test_config.TestArrivalWindow.test_lag_stats_shape_and_errors CFG-05
unit.test_config.TestReviewCfg.test_fresh_defaults CFG-01
unit.test_config.TestReviewCfg.test_migrates_from_combined_research_record CFG-01
unit.test_config.TestReviewCfg.test_legacy_severities_and_seg_split CFG-01
unit.test_config.TestReviewCfg.test_put_validates CFG-01
unit.test_config.TestReviewCfg.test_put_pins_modes CFG-01
unit.test_config.TestReviewCfg.test_slot_grid OPS-03
unit.test_config.TestReviewCfg.test_requests OPS-03
unit.test_config.TestReviewCfg.test_status_reads_old_review_runs STO-01
unit.test_config.TestResearchCfg.test_fresh_defaults_have_no_schedule CFG-01, OPS-06
unit.test_config.TestResearchCfg.test_existing_deployment_keeps_web_research CFG-01
unit.test_config.TestResearchCfg.test_saving_on_new_install_keeps_web_off CFG-01
unit.test_config.TestResearchCfg.test_get_clamps_invalid_stored_limits CFG-01
unit.test_config.TestResearchCfg.test_put_validates_and_coerces CFG-01
unit.test_config.TestResearchCfg.test_put_check_model CFG-01
unit.test_config.TestResearchCfg.test_status_and_spent_today STO-01
unit.test_config_guard_js.GuardRailsSaveTest.test_guard_rail_change_saves_at_once SET-64
unit.test_config_guard_js.GuardRailsSaveTest.test_switch_tap_keeps_pending_guard_edit SET-64
unit.test_config_guard_js.GuardRailsSaveTest.test_out_of_range_value_is_not_saved SET-64
unit.test_corr_web.WebPrivate.test_refuses_lan_details WEB-07
unit.test_corr_web.WebPrivate.test_allows_public_indicators WEB-07
unit.test_corr_web.WebLookup.test_search_logs_and_only_returned_urls_are_cited WEB-08
unit.test_corr_web.WebLookup.test_private_search_refused_and_reported WEB-07
unit.test_corr_web.WebLookup.test_lookups_first_runs_planned_searches_before_deciding WEB-08
unit.test_corr_web.WebLookup.test_planned_query_slips_are_fixed WEB-08
unit.test_corr_web.WebLookup.test_sources_by_id_and_in_reason WEB-08
unit.test_corr_web.WebLookup.test_grouped_citations_in_reason WEB-08
unit.test_corr_web.WebLookup.test_broken_plan_json_keeps_good_lookups WEB-08
unit.test_corr_web.WebLookup.test_rereview_reuses_earlier_lookups_and_web_cache WEB-08
unit.test_corr_web.WebLookup.test_web_cache_setting_off_and_clear WEB-08
unit.test_corr_web.WebLookup.test_web_artifacts WEB-08
unit.test_correlate.ArtifactsOfTest.test_empty_text_gives_no_artifacts COR-01
unit.test_correlate.ArtifactsOfTest.test_process_path_in_process_context COR-01
unit.test_correlate.ArtifactsOfTest.test_new_executable_relation COR-01
unit.test_correlate.ArtifactsOfTest.test_file_path_in_file_context COR-01
unit.test_correlate.ArtifactsOfTest.test_windows_path_detected COR-01
unit.test_correlate.ArtifactsOfTest.test_trailing_punctuation_stripped COR-01
unit.test_correlate.ArtifactsOfTest.test_parent_process_and_command_line COR-01
unit.test_correlate.ArtifactsOfTest.test_parent_path_not_duplicated_as_file COR-01
unit.test_correlate.ArtifactsOfTest.test_sha256_is_appended_to_relation COR-01
unit.test_correlate.ArtifactsOfTest.test_stop_words_are_not_users COR-01
unit.test_correlate.ArtifactsOfTest.test_accounts_list_parsed COR-01
unit.test_correlate.ArtifactsOfTest.test_users_argument_and_case_insensitive_dedupe COR-01
unit.test_correlate.ArtifactsOfTest.test_domains_lowercased_and_deduped COR-01
unit.test_correlate.ArtifactsOfTest.test_extra_artifacts_and_cap COR-01
unit.test_correlate.ArtifactsOfTest.test_relation_truncated_to_90 COR-01
unit.test_correlate.IdsAndTopicsTest.test_fnv_known_vectors COR-02
unit.test_correlate.IdsAndTopicsTest.test_fnv_is_lowercase_base36 COR-02
unit.test_correlate.IdsAndTopicsTest.test_fnv_matches_corr_llm_for_bmp_text COR-02
unit.test_correlate.IdsAndTopicsTest.test_fnv_matches_js_for_astral_characters COR-02
unit.test_correlate.IdsAndTopicsTest.test_gw_id_format_and_missing_fields COR-02
unit.test_correlate.IdsAndTopicsTest.test_ts_parsing COR-03
unit.test_correlate.IdsAndTopicsTest.test_topics_finding COR-03
unit.test_correlate.IdsAndTopicsTest.test_topics_key COR-03
unit.test_correlate.IdsAndTopicsTest.test_every_topic_has_a_name COR-03
unit.test_correlate.BuildTest.test_close_alerts_sharing_host_are_linked COR-03
unit.test_correlate.BuildTest.test_far_apart_alerts_not_linked COR-03
unit.test_correlate.BuildTest.test_no_shared_entity_no_link COR-03
unit.test_correlate.BuildTest.test_gateway_dot1_address_ignored COR-03
unit.test_correlate.BuildTest.test_alert_targets_resolve_mac_and_host COR-03
unit.test_correlate.BuildTest.test_alert_window_and_latest COR-03
unit.test_correlate.BuildTest.test_vulnerability_linked_by_host COR-03
unit.test_correlate.BuildTest.test_shared_topic_and_technique_reasons COR-03, MIT-01
unit.test_correlate.BuildTest.test_per_type_cap_of_four COR-03
unit.test_correlate.BuildTest.test_triage_alarm_id_uses_fnv COR-02
unit.test_correlate.BuildTest.test_gateway_events_deduped_and_windowed COR-02, COR-03
unit.test_correlate.BuildTest.test_chatty_low_ids_signature_skipped COR-03
unit.test_correlate.BuildTest.test_finding_event_id_and_items COR-02
unit.test_correlate.BuildTest.test_techniques_callback_used COR-03, MIT-01
unit.test_correlate.ArtifactOwnerTest.test_host_finding_source_is_its_own_host COR-04
unit.test_correlate.ArtifactOwnerTest.test_unresolved_host_does_not_make_peer_the_source COR-04
unit.test_correlate.ArtifactOwnerTest.test_profile_processes_not_given_to_peer COR-04
unit.test_correlate.ListedIpEvent.test_listed_ip_names_site_and_is_low_on_cdn OCTI-10
unit.test_es_planner.Setting.test_default_none LLM-11
unit.test_es_planner.Setting.test_set_and_clear LLM-11
unit.test_es_planner.PlanStep.test_planner_plans_searches LLM-11
unit.test_es_planner.PlanStep.test_fallback_to_reviewer LLM-11
unit.test_es_planner.PlanStep.test_no_planner_reviewer_plans LLM-11
unit.test_es_planner.Findings.test_summary_attached_to_search LLM-11
unit.test_es_planner.Ui.test_setting_and_reason_shown LLM-11
unit.test_es_query.Filters.test_old_requests_unchanged LLM-08
unit.test_es_query.Filters.test_any_exclude_range_prefix_exists LLM-08
unit.test_es_query.Filters.test_bounds_refused LLM-08
unit.test_es_query.Filters.test_histogram_bucket_cap LLM-08
unit.test_es_query.Aggregations.test_two_level_group_with_metrics_and_rare LLM-08
unit.test_es_query.Aggregations.test_metric_field_limit LLM-08
unit.test_es_query.Aggregations.test_run_shapes_results LLM-08
unit.test_es_query.Aggregations.test_histogram_regularity LLM-08
unit.test_es_query.FieldChecks.test_near_miss_corrected LLM-09
unit.test_es_query.FieldChecks.test_unknown_refused_with_suggestion LLM-09
unit.test_es_query.FieldChecks.test_types LLM-09
unit.test_es_query.FieldChecks.test_no_mapping_shape_checks_only LLM-09
unit.test_es_query.FieldChecks.test_caps_cached LLM-09
unit.test_es_query.PromptAndLinks.test_prompt_and_schema LLM-10
unit.test_es_query.PromptAndLinks.test_fix_query_new_filters LLM-09
unit.test_es_query.PromptAndLinks.test_kibana_link LLM-08
unit.test_esq_review.Store.test_list_and_item LLM-12
unit.test_esq_review.Store.test_save_validates LLM-12
unit.test_esq_review.Store.test_run_uses_broker_at_event_time LLM-12
unit.test_esq_review.Store.test_accept_all LLM-12
unit.test_esq_review.Translate.test_translate LLM-12
unit.test_esq_review.Ui.test_autosave LLM-12
unit.test_esq_review.Routes.test_admin_only LLM-12
unit.test_event_fires.EsSourcedTest.test_es_types_fire_and_others_do_not FEAT-01
unit.test_event_fires.FiringsTest.test_non_es_events_never_fire FEAT-01
unit.test_event_fires.FiringsTest.test_events_without_end_time_do_not_fire FEAT-01
unit.test_event_fires.FiringsTest.test_ids_fires_per_new_alert_time FEAT-01
unit.test_event_fires.FiringsTest.test_overlapping_windows_extend_one_firing FEAT-01
unit.test_event_fires.FiringsTest.test_disjoint_window_is_a_new_firing FEAT-01
unit.test_event_fires.FiringsTest.test_seen_count_counts_reports FEAT-01
unit.test_event_fires.DetailPerFiringTest.test_merged_related_links_keep_each_review_time FEAT-02
unit.test_event_window.TestEventWindowSetting.test_default_and_range EVW-01
unit.test_event_window.TestEventWindowSetting.test_put_rejects_invalid EVW-01
unit.test_event_window.TestEventWindowSetting.test_live_pickup EVW-01
unit.test_event_window.TestEventWindowSetting.test_migrates_old_hours_lookback EVW-01
unit.test_event_window.TestEventWindowSetting.test_for_run EVW-01, OPS-03
unit.test_event_window.TestEventWindowSetting.test_review_interval_capped_at_window EVW-03
unit.test_event_window.TestWatchPeriod.test_watch_runs_once_per_window EVW-06
unit.test_event_window.TestWatchPeriod.test_watch_pulls_touch_end_to_end EVW-06
unit.test_event_window.TestCoverage.test_no_gaps_when_interval_exceeds_window EVW-03
unit.test_event_window.TestLateArrivalStore.test_event_time_kept_and_used EVW-07
unit.test_event_window.TestCorrelationWindow.test_links_only_within_window EVW-02
unit.test_event_window.TestCorrelationWindow.test_default_follows_setting EVW-02
unit.test_event_window.TestGroupReview.test_waits_for_settle_then_one_call_for_the_group EVW-04
unit.test_event_window.TestGroupReview.test_undecided_link_keeps_group_pending EVW-04
unit.test_event_window.TestGroupReview.test_new_member_rereviewed_once_after_settling EVW-04
unit.test_event_window.TestGroupReview.test_listed_domains_reviewed_apart EVW-11
unit.test_event_window.TestGroupReview.test_high_severity_fast_path EVW-05
unit.test_event_window.TestGroupReview.test_waits_for_a_pull_after_newest_plus_window EVW-06
unit.test_event_window.TestGroupReview.test_late_arrival_after_review_one_rereview EVW-07
unit.test_event_window.TestGroupReview.test_alert_verdict_pending EVW-05
unit.test_evtime.SpecTest.test_port_spike_uses_device_and_port EVT-01
unit.test_evtime.SpecTest.test_falls_back_to_broader_query EVT-01
unit.test_evtime.SpecTest.test_direct_types_need_no_query EVT-01
unit.test_evtime.SpecTest.test_status_findings_have_no_record EVT-01
unit.test_evtime.SpecTest.test_host_finding_process EVT-01
unit.test_evtime.SpecTest.test_alert_window_reaches_back EVT-01
unit.test_evtime.SpecTest.test_nothing_found_is_none EVT-01
unit.test_evtime.StoreTest.test_run_fills_events_and_firings EVT-02
unit.test_evtime.StoreTest.test_open_events_and_detail_carry_times EVT-02
unit.test_evtime.WindowTimesTest.test_posture_items_match_page_ids EVT-03
unit.test_evtime.WindowTimesTest.test_domain_hits_keyed_by_name EVT-03
unit.test_evtime.WindowTimesTest.test_cache_and_queue EVT-03
unit.test_evtime.WindowTimesTest.test_broker_down_still_answers EVT-03
unit.test_evtime.ApiTest.test_endpoint_routed_and_not_for_user_role EVT-03
unit.test_feeds_cfg.TestFeedConfig.test_validation FEED-01
unit.test_feeds_cfg.TestFeedConfig.test_toggle_url_custom_and_opencti_cover FEED-01
unit.test_feeds_cfg.TestFeedConfig.test_inactive_not_loaded_and_url_change_refetches FEED-02
unit.test_feeds_cfg.TestFeedConfig.test_feed_card_breakdown_via_opencti OCTI-02
unit.test_feeds_cfg.TestFeedConfig.test_trend_counts_malicious_signatures OCTI-02
unit.test_feeds_cfg.TestFileArtifacts.test_artifacts_hash_ip_filename_marked OCTI-08
unit.test_feeds_cfg.TestFileArtifacts.test_sighting_target_falls_back_to_observable OCTI-09
unit.test_feeds_cfg.TestFileArtifacts.test_watcher_file_intel OCTI-09
unit.test_feeds_cfg.TestOpenCTIFeedMigration.test_patterns_urls_and_ranges FEED-03
unit.test_feeds_cfg.TestOpenCTIFeedMigration.test_tenant_platform_subdomains_listed FEED-03
unit.test_feeds_cfg.TestOpenCTIFeedMigration.test_feed_observables_and_cidr_match FEED-03
unit.test_feeds_cfg.TestOpenCTIFeedMigration.test_builtins_covered_by_opencti FEED-03
unit.test_gpustat.GpuStat.test_parse_and_attribute LLM-05
unit.test_gpustat.GpuStat.test_minute_average_and_series LLM-05
unit.test_host_baseline_asof.TestBaselineAsOf.test_range_after_review_still_reports_new_executable POS-21
unit.test_host_baseline_asof.TestBaselineAsOf.test_seeding_host_keeps_day_stamps POS-21
unit.test_host_garbled.TestGarbledTelemetry.test_garbled_name_takes_fleet_name_and_merges POS-21
unit.test_host_garbled.TestGarbledTelemetry.test_unresolvable_garbled_name_is_dropped POS-21
unit.test_ids_verdicts.EventVerdicts.test_label_of_signature_outside_any_snapshot POS-22
unit.test_ids_verdicts.EventVerdicts.test_research_note_verdict_included POS-22
unit.test_ids_verdicts.EventVerdicts.test_empty_and_failing_lookups POS-22
unit.test_ids_verdicts.EventVerdicts.test_user_role_cannot_read_verdicts POS-22
unit.test_ids_verdicts.VerdictColumn.test_ids_tables_have_verdict_column POS-22
unit.test_ids_verdicts.PostureIdsEvents.test_ids_events_box_like_findings POS-23
unit.test_ioc_pivot.Extract.test_report_indicators WEB-09
unit.test_ioc_pivot.Extract.test_markdown_defang_bare_paths_tlds_and_cleared WEB-09
unit.test_ioc_pivot.Extract.test_lookup_pages_and_networks_are_never_indicators WEB-09
unit.test_ioc_pivot.Extract.test_excluded_and_threat_like WEB-09
unit.test_ioc_pivot.Hunt.test_hunt_builds_one_bounded_aggregation WEB-09
unit.test_ioc_pivot.Pivot.test_pivot_reads_report_hunts_and_stores_researched_artifacts WEB-09
unit.test_ioc_pivot.Pivot.test_indicators_get_bad_artifact_notes_with_the_report WEB-09
unit.test_ioc_pivot.Pivot.test_non_threat_pages_are_not_mined WEB-09
unit.test_ioc_pivot.Pivot.test_hunt_failure_still_lists_indicators WEB-09
unit.test_ioc_pivot.Pivot.test_ai_indicator_notes_are_not_owner_guidance WEB-09
unit.test_ioc_pivot.Pivot.test_list_and_reference_pages_are_not_threat_reports WEB-09
unit.test_ioc_pivot.NoteExpiryGroups.test_grouped_entry_expires_with_its_last_note WEB-09
unit.test_ioc_pivot.Ui.test_researched_artifact_tag_and_escaping WEB-09
unit.test_issues.RawChecksTests.test_plaintext_services_flagged ISS-01
unit.test_issues.RawChecksTests.test_all_plaintext_protocols_known ISS-01
unit.test_issues.RawChecksTests.test_fixture_snapshot_is_clean ISS-01
unit.test_issues.RawChecksTests.test_legacy_tls_flagged ISS-01
unit.test_issues.RawChecksTests.test_legacy_tls_regex_exact ISS-01
unit.test_issues.RawChecksTests.test_external_dns_severity_threshold ISS-01
unit.test_issues.RawChecksTests.test_doh_flagged_low ISS-01
unit.test_issues.RawChecksTests.test_key_falls_back_to_ip_without_mac ISS-01, RISK-03
unit.test_issues.RawChecksTests.test_capture_loss_levels ISS-01
unit.test_issues.RawChecksTests.test_ingest_lag_levels ISS-01, CFG-05
unit.test_issues.RawChecksTests.test_unknown_dhcp_inventory ISS-01
unit.test_issues.AnalysisChecksTests.test_finding_kinds_mapped ISS-01
unit.test_issues.AnalysisChecksTests.test_segmentation_findings_not_in_fix_list ISS-01
unit.test_issues.HostsAndUnifiChecksTests.test_endpoint_checks ISS-01
unit.test_issues.HostsAndUnifiChecksTests.test_unifi_checks ISS-01
unit.test_issues.HostsAndUnifiChecksTests.test_sources_of ISS-02
unit.test_issues.TrackTests.test_occurrences_and_recurring ISS-02
unit.test_issues.TrackTests.test_single_occurrence_not_recurring ISS-02
unit.test_issues.TrackTests.test_fixed_when_absent_in_later_full_snapshot ISS-02
unit.test_issues.TrackTests.test_short_snapshot_cannot_fix ISS-02
unit.test_issues.TrackTests.test_missing_source_not_rechecked ISS-02
unit.test_issues.TrackTests.test_device_not_seen_stays_open ISS-02
unit.test_issues.TrackTests.test_mac_key_follows_dhcp_change ISS-02, RISK-03
unit.test_issues.TrackTests.test_ip2mac_learned_across_snapshots ISS-02, RISK-03
unit.test_issues.TrackTests.test_open_sorted_by_severity_then_occurrences ISS-02
unit.test_issues.TrackTests.test_empty_history ISS-02
unit.test_issues.IncrementalTrackTests.test_incremental_matches_full_and_reuses_cache ISS-02, OPS-05
unit.test_issues.IncrementalTrackTests.test_runs_without_documents_keep_counting OPS-06
unit.test_issues_k8s_cis.CisFixListTest.test_failed_checks_are_fix_list_items KUBE-06
unit.test_issues_k8s_cis.CisFixListTest.test_not_endpoint_findings KUBE-06
unit.test_issues_k8s_cis.CisFixListTest.test_image_cves_are_fix_list_items KUBE-10
unit.test_issues_race.TrackerRaceTest.test_concurrent_runs_store_complete_rows OPS-05
unit.test_issues_race.TrackerRaceTest.test_lost_lookups_are_reevaluated OPS-05
unit.test_k8s.FindingsTest.test_stale_container_logs KUBE-02
unit.test_k8s.FindingsTest.test_high_signal_investigate_and_exempt KUBE-02
unit.test_k8s.FindingsTest.test_replicas_share_one_key KUBE-02
unit.test_k8s.FindingsTest.test_api_exec_and_denied KUBE-02
unit.test_k8s.FindingsTest.test_events_alerts_images KUBE-02
unit.test_k8s.HelpersTest.test_exempt KUBE-02
unit.test_k8s.HelpersTest.test_image_risk_and_stable_pod KUBE-02
unit.test_k8s.HelpersTest.test_pod_owner KUBE-12
unit.test_k8s.HelpersTest.test_pod_rejects_bad_owner KUBE-04
unit.test_k8s.HelpersTest.test_shard_failure_raises KUBE-01
unit.test_k8s.HelpersTest.test_only_security_onion KUBE-01
unit.test_k8s.HelpersTest.test_pod_rejects_bad_names KUBE-04
unit.test_k8s.HelpersTest.test_set_end_window KUBE-04
unit.test_k8s.ApiserverTest.test_increase_and_classes KUBE-03
unit.test_k8s.WatchTest.test_failed_part_is_reported KUBE-01
unit.test_k8s.CollectMergeTest.test_k8s_into_hosts KUBE-04
unit.test_kb_expiry.NoteExpiryTest.test_new_note_is_dated_and_shows_expiry STO-15
unit.test_kb_expiry.NoteExpiryTest.test_ai_read_resets_the_clock_but_listing_does_not STO-15
unit.test_kb_expiry.NoteExpiryTest.test_edit_and_review_reset_the_clock STO-15
unit.test_kb_expiry.NoteExpiryTest.test_purge_deletes_only_expired_notes STO-15, SET-16
unit.test_kb_expiry.NoteExpiryTest.test_setting_range_and_config_view SET-16
unit.test_kb_pod.PodNotesTest.test_subject_is_the_owner KUBE-12
unit.test_kb_pod.PodNotesTest.test_event_to_owner KUBE-12
unit.test_kb_pod.PodNotesTest.test_guess_owner KUBE-12
unit.test_kb_pod.PodNotesTest.test_note_applies_to_every_pod_of_the_owner KUBE-12
unit.test_kb_pod.PodNotesTest.test_event_reviewer_writes_pod_note KUBE-12
unit.test_kube_api.CisTest.test_hardened_cluster_has_no_failures KUBE-06
unit.test_kube_api.CisTest.test_bad_pod_fails_pod_security KUBE-06
unit.test_kube_api.CisTest.test_privileged_namespace_listed_not_failed KUBE-06
unit.test_kube_api.CisTest.test_flags_and_accept KUBE-06
unit.test_kube_api.CisTest.test_node_level_sections_are_manual KUBE-06
unit.test_kube_api.CisTest.test_rbac_wildcards_and_default_cluster_admin KUBE-06
unit.test_kube_api.MapTest.test_edges_and_workloads KUBE-07
unit.test_kube_api.IntegrationTest.test_candidate_validation KUBE-05
unit.test_kube_api.IntegrationTest.test_token_never_public KUBE-05
unit.test_kube_api.IntegrationTest.test_multi_cluster_and_legacy_settings KUBE-05
unit.test_kube_api.IntegrationTest.test_client_refuses_http_and_unconfigured KUBE-05
unit.test_kube_api.IntegrationTest.test_check_flags_write_access KUBE-05
unit.test_kube_images.TagTest.test_parse_ref KUBE-10
unit.test_kube_images.TagTest.test_newer_tags_same_shape_no_prerelease KUBE-10
unit.test_kube_images.TagTest.test_fixed_by_update_and_findings KUBE-10
unit.test_kube_images.TrivyArgsTest.test_image_reference_cannot_inject_options KUBE-10
unit.test_kube_images.ClusterFilterTest.test_queries_limited_to_cluster_nodes KUBE-08
unit.test_kube_images.EventsToOpenEventsTest.test_warning_events_and_log_hits_become_info_findings KUBE-09
unit.test_lateral.AllowedTests.test_matches_by_ip_zone_class_wildcard LAT-01
unit.test_lateral.AllowedTests.test_port_restrictions LAT-01
unit.test_lateral.AllowedTests.test_non_matching LAT-01
unit.test_lateral.AdminSessionTests.test_password_guessing_is_high LAT-01
unit.test_lateral.AdminSessionTests.test_invalid_users_is_high LAT-01
unit.test_lateral.AdminSessionTests.test_failures_then_success_is_high LAT-01
unit.test_lateral.AdminSessionTests.test_single_failure_is_medium LAT-01
unit.test_lateral.AdminSessionTests.test_refused_connections LAT-01
unit.test_lateral.AdminSessionTests.test_database_traffic_is_normal LAT-01
unit.test_lateral.AdminSessionTests.test_uncovered_success_is_low LAT-01
unit.test_lateral.AdminSessionTests.test_allow_rule_downgrades_to_allowed_admin LAT-01
unit.test_lateral.AdminSessionTests.test_allow_by_device_class LAT-01
unit.test_lateral.AdminSessionTests.test_allow_rule_does_not_hide_failures LAT-01
unit.test_lateral.AdminSessionTests.test_cleared_flow_is_allowed_but_failures_escalate LAT-01, RISK-04
unit.test_lateral.AdminSessionTests.test_self_and_loopback_skipped LAT-01
unit.test_lateral.AdminSessionTests.test_sorted_worst_first LAT-01
unit.test_lateral.AdminSessionTests.test_tool_evidence_resolved_by_inventory_name LAT-01
unit.test_lateral.AdminSessionTests.test_empty LAT-01
unit.test_lateral.BuildTests.test_only_internal_edges LAT-01
unit.test_lateral.BuildTests.test_violation_sets_edge_level LAT-01
unit.test_lateral.BuildTests.test_cleared_violation_shown_allowed LAT-01, RISK-04
unit.test_lateral.BuildTests.test_port_classification LAT-01
unit.test_lateral.BuildTests.test_unanswered_sensitive_below_threshold_normal LAT-01
unit.test_lateral.BuildTests.test_edge_takes_worst_port_and_sums LAT-01, LAT-02
unit.test_lateral.BuildTests.test_admin_session_raises_edge LAT-01
unit.test_lateral.BuildTests.test_edge_score_formula LAT-01
unit.test_lateral.BuildTests.test_gateway_naming LAT-01
unit.test_lateral.BuildTests.test_counts_cover_all_levels LAT-01
unit.test_lateral.MergePeriodsTests.test_flows_summed_per_key LAT-02
unit.test_lateral.MergePeriodsTests.test_inputs_not_mutated LAT-02
unit.test_lateral.MergePeriodsTests.test_violations_summed_worst_severity LAT-02
unit.test_lateral.MergePeriodsTests.test_scans_keep_worst_per_source LAT-02
unit.test_lateral.MergePeriodsTests.test_admin_concatenated_and_sources_summed LAT-02
unit.test_lateral.MergePeriodsTests.test_merged_failures_cross_threshold LAT-02, LAT-01
unit.test_lateral.MergePeriodsTests.test_empty LAT-02
unit.test_lateral_page.NamingTests.test_device_name_then_inventory_then_known_benign_then_ip LAT-20
unit.test_lateral_page.NamingTests.test_gateway_named_from_known_benign LAT-20
unit.test_lateral_page.NamingTests.test_known_flag_and_device_class LAT-20
unit.test_lateral_page.PortRuleTests.test_gateway_and_udp_exceptions LAT-21
unit.test_lateral_page.PortRuleTests.test_scan_reason_names_the_scanner LAT-21
unit.test_lateral_page.PortRuleTests.test_allow_rule_reason_on_edges LAT-22
unit.test_lateral_page.PortRuleTests.test_allow_rule_does_not_hide_violation_or_failures LAT-22
unit.test_lateral_page.ClearedFlowTests.test_cleared_port_only LAT-23
unit.test_lateral_page.ClearedFlowTests.test_cleared_from_ack_store_and_suppress_rule LAT-23, POS-11
unit.test_lateral_page.InternetAndAdminEdgeTests.test_admin_session_to_internet_not_mapped LAT-24
unit.test_lateral_page.InternetAndAdminEdgeTests.test_admin_session_from_internet_not_mapped LAT-24
unit.test_lateral_page.InternetAndAdminEdgeTests.test_admin_port_row_added_and_sorted LAT-25
unit.test_lateral_page.InternetAndAdminEdgeTests.test_login_only_session_port_zero LAT-25
unit.test_lateral_page.GraphSummaryTests.test_node_counters_and_edge_order LAT-26
unit.test_lateral_page.GraphSummaryTests.test_admin_collected_and_sources LAT-26
unit.test_lateral_page.ResolverTests.test_resolve_ip_hostname_fqdn_inventory LAT-27
unit.test_lateral_page.PeriodGraphTests.test_link_in_one_period_and_worst_level_kept LAT-28, LAT-02
unit.test_lateral_page.LateralPeriodsTests.test_periods_merged_via_broker LAT-29
unit.test_lateral_page.LateralPeriodsTests.test_validation LAT-29
unit.test_lateral_page.LateralPeriodsTests.test_at_most_eight_periods LAT-29
unit.test_lateral_page.LateralPeriodsTests.test_broker_errors_become_value_errors LAT-29
unit.test_lateral_page.LateralPeriodsTests.test_user_role_cannot_read_lateral LAT-31
unit.test_lateral_page.LateralPageJs.test_filters LAT-32
unit.test_lateral_page.LateralPageJs.test_loads_snapshot_and_kpis LAT-33, LAT-34
unit.test_lateral_page.LateralPageJs.test_periods_from_time_picker LAT-33
unit.test_lateral_page.LateralPageJs.test_cache_and_error LAT-33
unit.test_lateral_page.LateralPageJs.test_levels_legend_matches_backend LAT-35
unit.test_lateral_page.LateralPageJs.test_graph_drawing LAT-36
unit.test_lateral_page.LateralPageJs.test_clear_column LAT-37, POS-16
unit.test_lateral_page.LateralPageJs.test_admin_section_open_and_checked LAT-38
unit.test_lateral_page.LateralPageJs.test_checked_admin_sessions_card_shows_table LAT-38
unit.test_lateral_page.LateralPageJs.test_admin_section_empty_and_not_collected LAT-38
unit.test_lateral_page.LateralPageJs.test_cleared_segmentation_card LAT-39
unit.test_lateral_page.LateralPageJs.test_edge_details_panel LAT-40
unit.test_lateral_page.LateralPageJs.test_node_details_panel_and_route_focus LAT-40
unit.test_llm_parsing.FirstJsonTest.test_plain_object LLM-01
unit.test_llm_parsing.FirstJsonTest.test_code_fence_and_prose LLM-01
unit.test_llm_parsing.FirstJsonTest.test_second_object_ignored LLM-01
unit.test_llm_parsing.FirstJsonTest.test_braces_inside_strings LLM-01
unit.test_llm_parsing.FirstJsonTest.test_nested_object LLM-01
unit.test_llm_parsing.FirstJsonTest.test_no_json_raises LLM-01
unit.test_llm_parsing.FirstJsonTest.test_truncated_json_raises LLM-01
unit.test_llm_parsing.CorrLlmHelpersTest.test_clean_artifacts LLM-01
unit.test_llm_parsing.CorrLlmHelpersTest.test_sev_of LLM-01
unit.test_llm_parsing.CorrLlmHelpersTest.test_etype_and_pclass COR-03
unit.test_llm_parsing.CorrLlmHelpersTest.test_pair_mode_legacy_fallbacks COR-03
unit.test_llm_parsing.CorrLlmHelpersTest.test_fam_masks_port_numbers COR-03
unit.test_llm_parsing.CorrLlmHelpersTest.test_glob LLM-01
unit.test_llm_parsing.CorrLlmHelpersTest.test_rule_match_and_suppressed LLM-01
unit.test_llm_parsing.CorrLlmHelpersTest.test_apart_fn COR-03
unit.test_llm_parsing.CorrLlmHelpersTest.test_num_clamps LLM-01
unit.test_llm_parsing.CorrLlmHelpersTest.test_pair_key_unordered COR-03
unit.test_llm_parsing.ProviderHelpersTest.test_is_custom_and_known LLM-01
unit.test_llm_parsing.ProviderHelpersTest.test_mask LLM-01
unit.test_llm_parsing.ProviderHelpersTest.test_scrub LLM-01
unit.test_llm_parsing.ProviderHelpersTest.test_base_url LLM-01
unit.test_llm_parsing.ProviderHelpersTest.test_models_parsing LLM-01
unit.test_llm_parsing.ProviderHelpersTest.test_models_rejects_bad_input LLM-01
unit.test_llm_parsing.ProviderHelpersTest.test_int LLM-01
unit.test_llm_parsing.ProviderHelpersTest.test_headers_and_models_path LLM-01
unit.test_llm_parsing.ProviderHelpersTest.test_skip_filter LLM-01
unit.test_llm_parsing.ProviderHelpersTest.test_oa_messages LLM-01
unit.test_llm_parsing.ProviderHelpersTest.test_an_messages LLM-01
unit.test_llm_parsing.ProviderHelpersTest.test_rs_input LLM-01
unit.test_llm_parsing.ProviderHelpersTest.test_price_and_cost LLM-01
unit.test_llm_parsing.DiverseCandidatesTest.test_round_robin_across_types_then_repeats COR-03
unit.test_llm_parsing.DiverseCandidatesTest.test_cap COR-03
unit.test_login_lookups.Lookups.test_host_event LLM-13
unit.test_login_lookups.Lookups.test_no_internal_system LLM-13
unit.test_login_lookups.Lookups.test_unknown_host_name_only_network_search LLM-13
unit.test_login_lookups.Lookups.test_added_to_review_without_using_planner_budget LLM-13
unit.test_mitre.CatalogTest.test_catalog_loads MIT-01
unit.test_mitre.CatalogTest.test_check_reports_no_bad_rules MIT-01
unit.test_mitre.CatalogTest.test_check_detects_unknown_id MIT-01
unit.test_mitre.CatalogTest.test_rule_shape MIT-01
unit.test_mitre.CatalogTest.test_rule_techniques_have_names_and_tactics MIT-01
unit.test_mitre.LookupTest.test_tech_lookup MIT-01
unit.test_mitre.LookupTest.test_rules_for_beacon MIT-01
unit.test_mitre.LookupTest.test_rules_for_first_match_only MIT-01
unit.test_mitre.LookupTest.test_rules_for_case_insensitive MIT-01
unit.test_mitre.LookupTest.test_rules_for_source_scoped MIT-01
unit.test_mitre.LookupTest.test_exposure_relation MIT-01
unit.test_mitre.LookupTest.test_tags_for MIT-01
unit.test_mitre.LookupTest.test_norm_ids MIT-01
unit.test_modelstatus.ModelStatus.test_provider_up_warn_down_and_no_key_leak COR-05
unit.test_modelstatus.ModelStatus.test_unset_disabled_and_missing_provider COR-05
unit.test_modelstatus.ModelStatus.test_decision_model_health_and_cache COR-05
unit.test_network_pages.InternalTraffic.test_zone_of NET-01
unit.test_network_pages.InternalTraffic.test_flows NET-02
unit.test_network_pages.InternalTraffic.test_matrix NET-03
unit.test_network_pages.InternalTraffic.test_scans NET-04
unit.test_network_pages.UnifiSummary.test_clients NET-05
unit.test_network_pages.UnifiSummary.test_no_key_skipped NET-05
unit.test_network_pages.UnifiSummary.test_flows_and_health NET-06
unit.test_network_pages.HistoryAndRegistry.test_history_compact NET-07
unit.test_network_pages.HistoryAndRegistry.test_registry NET-08
unit.test_network_pages.HistoryAndRegistry.test_network_apis_not_for_user_role NET-23
unit.test_network_pages.NetmapHostsJs.test_zone_assignment NET-09
unit.test_network_pages.NetmapHostsJs.test_sources_merge NET-10
unit.test_network_pages.NetmapHostsJs.test_naming NET-11
unit.test_network_pages.NetmapHostsJs.test_decorations NET-12
unit.test_network_pages.NetmapHostsJs.test_zones NET-13
unit.test_network_pages.NetmapHostsJs.test_risk_colour NET-14
unit.test_network_pages.NetmapRenderJs.test_nodes_and_links NET-15
unit.test_network_pages.NetmapRenderJs.test_page_kpis_and_tables NET-16
unit.test_network_pages.NetmapRenderJs.test_panel NET-17
unit.test_network_pages.NetmapRenderJs.test_empty_with_zones NET-16, NET-25
unit.test_network_pages.NetmapRenderJs.test_empty_without_zones NET-25
unit.test_network_pages.TrafficMapJs.test_zone_matrix NET-18
unit.test_network_pages.TrafficMapJs.test_flows_and_totals NET-19
unit.test_network_pages.TrafficMapJs.test_empty NET-18, NET-20, NET-21
unit.test_network_pages.TrafficMapJs.test_gateway_section NET-20
unit.test_network_pages.TrafficMapJs.test_history_trend NET-21
unit.test_network_pages.TrafficMapJs.test_composition_and_old_bookmarks NET-22
unit.test_network_pages.NetworkRolesJs.test_user_role_redirected NET-23
unit.test_notes_consolidate.Consolidate.test_merge_keeps_tags_and_facts_and_leaves_person_notes STO-09
unit.test_notes_consolidate.Consolidate.test_merge_that_drops_an_identifier_is_rejected STO-09
unit.test_notes_consolidate.Consolidate.test_bad_ids_and_person_notes_are_ignored STO-09
unit.test_notes_consolidate.Consolidate.test_unchanged_subject_is_skipped_next_time STO-09
unit.test_notes_consolidate.Consolidate.test_reviewer_does_not_overwrite_a_consolidated_note STO-09
unit.test_notes_consolidate.Consolidate.test_notes_about_different_artifacts_are_not_merged STO-11
unit.test_notes_consolidate.Consolidate.test_merge_that_adds_an_identifier_is_rejected STO-11
unit.test_notes_consolidate.Consolidate.test_malformed_tags_are_dropped_and_never_indexed STO-11
unit.test_notes_consolidate.Consolidate.test_other_host_notes_match_only_on_shared_ip_or_dns COR-05
unit.test_notes_consolidate.Consolidate.test_reviewer_artifact_owner_is_the_single_source_host COR-05
unit.test_notes_consolidate.Schedule.test_settings_validation_and_due_window STO-09
unit.test_open_events.GroupingKeyTest.test_norm_masks_counts_keeps_ips_ports_macs OE-03
unit.test_open_events.GroupingKeyTest.test_findings_differing_only_in_numbers_share_a_key OE-03
unit.test_open_events.GroupingKeyTest.test_non_findings_are_their_own_key OE-03
unit.test_open_events.GroupingKeyTest.test_gateway_repeats_group_by_type_src_dst OE-03
unit.test_open_events.GroupingKeyTest.test_list_findings_group_regardless_of_list_order OE-03
unit.test_open_events.GroupingKeyTest.test_group_checkoff_keys_migrate_to_sorted_form OE-03
unit.test_open_events.GroupingKeyTest.test_posture_group_ref_matches_server_key OE-03
unit.test_open_events.GroupingKeyTest.test_segmentation_groups_by_flow_key OE-03
unit.test_open_events.UpsertTest.test_empty_input_stores_nothing OE-01
unit.test_open_events.UpsertTest.test_seen_once_per_snapshot_and_times_widen OE-01
unit.test_open_events.UpsertTest.test_older_snapshot_does_not_overwrite_newer_data OE-01
unit.test_open_events.UpsertTest.test_doc_keeps_ips_and_capped_source_item OE-01
unit.test_open_events.VulnLifecycleTest.test_latest_snapshot_closes_unlisted_vulns_only OE-02
unit.test_open_events.VulnLifecycleTest.test_older_snapshot_never_closes_vulns OE-02
unit.test_open_events.VulnLifecycleTest.test_vuln_listed_again_reopens OE-02
unit.test_open_events.OpenEventsListTest.test_most_severe_then_newest_first OE-04
unit.test_open_events.OpenEventsListTest.test_type_severity_and_text_filters OE-05
unit.test_open_events.OpenEventsListTest.test_counts_and_total_ignore_filters OE-05
unit.test_open_events.OpenEventsListTest.test_exclude_drops_type_from_rows_counts_and_total OE-19
unit.test_open_events.OpenEventsListTest.test_limit_and_count_only_request OE-05
unit.test_open_events.OpenEventsListTest.test_repeats_collapse_into_one_row OE-03, OE-04
unit.test_open_events.OpenEventsListTest.test_row_carries_item_and_ips OE-04
unit.test_open_events.CheckOffTest.test_ack_refs_per_event_kind OE-06
unit.test_open_events.CheckOffTest.test_k_in OE-06
unit.test_open_events.CheckOffTest.test_checked_off_event_leaves_and_unchecking_restores OE-07
unit.test_open_events.CheckOffTest.test_row_acks_cover_every_variant OE-07
unit.test_open_events.CheckOffTest.test_group_check_off_also_hides_future_variants OE-07
unit.test_open_events.CheckOffTest.test_posture_check_off_of_newest_variant_hides_row OE-07
unit.test_open_events.CheckOffTest.test_cleared_segmentation_flow_hides_its_findings OE-07
unit.test_open_events.CheckOffTest.test_alert_events_follow_the_alert_feed OE-08
unit.test_open_events.MergeTest.test_process_variants_become_one_row OE-09
unit.test_open_events.MergeTest.test_other_host_kinds_and_single_variant_not_merged OE-09
unit.test_open_events.MergeTest.test_segmentation_toward_many_devices_is_one_row OE-09
unit.test_open_events.MergeTest.test_rows_without_flow_text_pass_through OE-09
unit.test_open_events.ExtrasTest.test_newest_member_with_data_wins_and_seen_is_set OE-10
unit.test_open_events.ExtrasTest.test_failing_sources_do_not_break_the_page OE-10
unit.test_open_events.ExtrasTest.test_related_count_and_decision_model_from_stored_verdicts OE-10, OE-11
unit.test_open_events.ExtrasTest.test_open_events_attaches_extras_for_shown_rows OE-10
unit.test_open_events.RelatedDetailTest.test_related_lists_links_of_all_members_with_event_records OE-11
unit.test_open_events.RelatedDetailTest.test_detail_lists_every_open_variant_newest_first OE-12
unit.test_open_events.RelatedDetailTest.test_detail_related_rows_carry_their_time_span OE-12
unit.test_open_events.RelatedDetailTest.test_detail_of_unknown_event_is_empty OE-12
unit.test_open_events.RelatedDetailTest.test_detail_of_resolved_vuln_shows_only_itself OE-12, OE-02
unit.test_open_events.RelatedDetailTest.test_decision_inputs_returns_input_event_records OE-13
unit.test_open_events.ApiRoutingTest.test_user_role_allow_list_excludes_open_events OE-14
unit.test_open_events.OpenEventsPageJsTest.test_one_card_per_type_in_page_order OE-15
unit.test_open_events.OpenEventsPageJsTest.test_columns_per_type OE-15
unit.test_open_events.OpenEventsPageJsTest.test_empty_state OE-16
unit.test_open_events.OpenEventsPageJsTest.test_every_correlation_type_has_a_card OE-15, OE-19
unit.test_open_review_coverage.TestOpenEventsCoverage.test_open_event_of_an_older_run_gets_labelled EVW-08
unit.test_open_review_coverage.TestOpenEventsCoverage.test_never_reviewed_open_events_say_why_and_new_ones_are_queued EVW-08
unit.test_open_review_coverage.TestOpenEventsCoverage.test_event_of_a_pruned_run_is_rebuilt_from_the_event_store EVW-08
unit.test_opencti.TestSettings.test_validation_and_masking OCTI-01
unit.test_opencti.TestSettings.test_not_usable_without_enable_or_token OCTI-01
unit.test_opencti.TestIndicators.test_parse_pattern OCTI-02
unit.test_opencti.TestIndicators.test_merge_and_feed_files OCTI-02
unit.test_opencti.TestIndicators.test_disabled_removes_lists OCTI-03
unit.test_opencti.TestIndicators.test_list_names_are_bound_not_spliced OCTI-02
unit.test_opencti.TestIndicators.test_lists_live_in_sqlite OCTI-02
unit.test_opencti.TestIndicators.test_pull_full_then_incremental OCTI-02
unit.test_opencti.TestIndicators.test_hashes_names_and_samples OCTI-06
unit.test_opencti.TestIndicators.test_reviewer_hits OCTI-07
unit.test_opencti.TestReporting.test_sightings_create_then_bump OCTI-04
unit.test_opencti.TestReporting.test_sighting_failure_never_raises OCTI-04
unit.test_opencti.TestReporting.test_incidents_filter_and_observables OCTI-05
unit.test_opencti.TestIpOnlyHitsAreWeak.test_ip_only_hits_are_weak OCTI-10
unit.test_opencti.TestIpOnlyHitsAreWeak.test_client_posts_json_body OCTI-02
unit.test_owner_verdict_scope.ScopeStore.test_clean_scope_validates_and_normalises STO-14
unit.test_owner_verdict_scope.ScopeStore.test_scope_saved_only_for_expected_benign STO-14
unit.test_owner_verdict_scope.ScopeStore.test_scope_keys_name_device_finding_signature_port STO-14
unit.test_owner_verdict_scope.ScopeStore.test_scope_keys_always_offer_the_events_host STO-14
unit.test_owner_verdict_scope.ScopeStore.test_match_needs_every_artifact STO-14
unit.test_owner_verdict_scope.ScopeStore.test_user_note_needs_approval STO-14
unit.test_owner_verdict_scope.OwnerWeight.test_apply_owner STO-14
unit.test_owner_verdict_scope.ScopedVerdictOnOtherEvent.test_scoped_verdict_relabels_matching_event STO-14
unit.test_owner_verdict_scope.ScopedVerdictOnOtherEvent.test_no_match_keeps_model_label STO-14
unit.test_owner_verdict_scope.ScopedVerdictOnOtherEvent.test_new_verdict_changes_signature STO-14
unit.test_plain_alerts.TestPlainLine.test_phishing_tld_names_device_without_signature AC-09
unit.test_plain_alerts.TestPlainLine.test_categories AC-09
unit.test_plain_alerts.TestPlainLine.test_no_device_capitalised AC-09
unit.test_plain_alerts.TestUserPush.test_user_gets_model_note_admin_gets_signature AC-09, STO-07, ALR-28
unit.test_plain_alerts.TestUserPush.test_note_wait_then_plain_fallback ALR-28
unit.test_plain_alerts.TestUserPush.test_no_verdict_no_user_push AC-10
unit.test_plain_alerts.TestUserPush.test_benign_verdict_never_reaches_user AC-10
unit.test_plain_alerts.TestUserPush.test_pending_group_waits AC-10
unit.test_plain_alerts.TestAlarmLifetime.test_aged_out_event_keeps_alarm STO-06
unit.test_plain_alerts.TestAlarmLifetime.test_downgraded_event_still_withdrawn STO-06
unit.test_plain_alerts.TestAlarmLifetime.test_promoted_detection_survives_age_out STO-06
unit.test_plain_alerts.TestVerdictMark.test_mark_changes_on_new_and_replaced_verdict STO-08
unit.test_plain_alerts.TestMultipleIndicators.test_one_indicator_caps_suspicious_confidence ALR-30
unit.test_plain_alerts.TestMultipleIndicators.test_users_only_get_high_confidence_multi_indicator_verdicts ALR-30
unit.test_plain_alerts.TestMultipleIndicators.test_baseline_alerts_never_reach_users ALR-31
unit.test_plain_alerts.TestTrustSettings.test_defaults_shown_and_bad_values_refused ALR-32
unit.test_plain_alerts.TestTrustSettings.test_settings_change_behaviour_live ALR-32
unit.test_posture.PostureSnapshotLoad.test_snapshot_returns_raw_and_companions POS-01
unit.test_posture.PostureSnapshotLoad.test_snapshot_rejects_bad_ids POS-01
unit.test_posture.PostureSnapshotLoad.test_snapshots_list_ordered_with_companions POS-01
unit.test_posture.PostureSnapshotLoad.test_every_posture_section_present POS-02
unit.test_posture.PostureSnapshotLoad.test_findings_get_last_seen POS-13
unit.test_posture.TimeRangeSemantics.test_snap_window POS-03
unit.test_posture.TimeRangeSemantics.test_arbitrary_range_goes_to_broker POS-04
unit.test_posture.TimeRangeSemantics.test_range_request_validation POS-04
unit.test_posture.TimeRangeSemantics.test_base_snapshot_picks_newest_report_ending_by_range_end POS-05
unit.test_posture.TimeRangeSemantics.test_range_snapshot_follows_nightly_report POS-05, POS-06
unit.test_posture.TimeRangeSemantics.test_range_snapshot_needs_raw_and_analysis POS-06
unit.test_posture.TimeRangeSemantics.test_range_section_slices_or_asks_broker POS-06
unit.test_posture.SuppressRulesHideEverywhere.test_seg_filter_hides_violations_and_findings POS-07
unit.test_posture.SuppressRulesHideEverywhere.test_seg_filter_rule_by_ip_hides_mac_keyed_finding POS-08
unit.test_posture.SuppressRulesHideEverywhere.test_snapshot_applies_suppress_rules_without_touching_store POS-07, POS-09
unit.test_posture.SuppressRulesHideEverywhere.test_ids_host_rule_strips_only_that_host POS-09
unit.test_posture.SuppressRulesHideEverywhere.test_rules_apply_to_every_range POS-10
unit.test_posture.SuppressRulesHideEverywhere.test_filter_failure_keeps_snapshot POS-07
unit.test_posture.ClearedSegmentation.test_cleared_set_membership POS-11
unit.test_posture.ClearedSegmentation.test_with_cleared_combines_acks_and_rules POS-11
unit.test_posture.ClearedSegmentation.test_with_cleared_survives_store_failure POS-11
unit.test_posture.CheckOffsRangeIndependent.test_check_off_independent_of_loaded_range POS-12
unit.test_posture.CheckOffsRangeIndependent.test_check_off_does_not_filter_server_side POS-12
unit.test_posture.PostureAckLogicJs.test_ack_split POS-14
unit.test_posture.PostureAckLogicJs.test_ack_keys POS-15
unit.test_posture.PostureAckLogicJs.test_segmentation_flow_keys POS-16
unit.test_posture.PostureAckLogicJs.test_base_findings_exclude_segmentation POS-17
unit.test_posture.PostureAckLogicJs.test_host_finding_host_and_to_columns POS-18
unit.test_posture.PostureAckLogicJs.test_posture_view_renders_sections_in_order POS-02
unit.test_push_gate.TestPushGate.test_held_until_verdict PSH-01
unit.test_push_gate.TestPushGate.test_provisional_label_is_held PSH-01
unit.test_push_gate.TestPushGate.test_expected_and_guardrails_no_push PSH-02
unit.test_push_gate.TestPushGate.test_expected_failing_guardrail_pushes PSH-03
unit.test_push_gate.TestPushGate.test_withdrawn_alarm_judged_on_stored_copy PSH-02, PSH-03
unit.test_push_gate.TestPushGate.test_malicious_pushes_with_context PSH-04
unit.test_push_gate.TestPushGate.test_timeout_pushes_anyway PSH-05
unit.test_push_gate.TestPushGate.test_reviewer_down_pushes PSH-05
unit.test_push_gate.TestPushGate.test_switch_off_keeps_old_behaviour PSH-06
unit.test_push_gate.TestPushGate.test_settings_validated PSH-06
unit.test_push_gate.TestPushCheckUsesGuardRails.test_push_check_calls_autoclose_guard_rails PSH-02, PSH-03
unit.test_push_targeting.TestAlertTargets.test_private_ips_extracted STO-07
unit.test_push_targeting.TestAlertTargets.test_public_and_out_of_range_ips_ignored STO-07
unit.test_push_targeting.TestAlertTargets.test_ip_boundaries STO-07
unit.test_push_targeting.TestAlertTargets.test_macs_lowercased STO-07
unit.test_push_targeting.TestAlertTargets.test_host_key_adds_label_and_mapped_ip STO-07
unit.test_push_targeting.TestAlertTargets.test_short_host_key_ignored STO-07
unit.test_push_targeting.TestDeviceIds.test_device_ids_basic STO-07
unit.test_push_targeting.TestDeviceIds.test_ip_name_not_used_as_host STO-07
unit.test_push_targeting.TestDeviceIds.test_empty_device STO-07
unit.test_push_targeting.TestDeviceIds.test_endpoint_host_mapped_by_ip STO-07
unit.test_push_targeting.TestPrefs.test_default_is_all STO-07
unit.test_push_targeting.TestPrefs.test_set_and_get STO-07
unit.test_push_targeting.TestPrefs.test_update_overwrites STO-07
unit.test_push_targeting.TestPrefs.test_bad_mode_rejected STO-07
unit.test_push_targeting.TestPrefs.test_device_list_capped STO-07
unit.test_push_targeting.TestWatchIds.test_mode_all_is_none STO-07
unit.test_push_targeting.TestWatchIds.test_some_resolves_registry_devices STO-07
unit.test_push_targeting.TestWatchIds.test_dhcp_change_followed STO-07, RISK-03
unit.test_push_targeting.TestWatchIds.test_host_entries_and_unknown_keys STO-07
unit.test_push_targeting.TestWatchIds.test_some_with_nothing_chosen STO-07
unit.test_push_targeting.TestWatchIds.test_alert_for STO-07, AC-06
unit.test_push_targeting.TestPayload.test_single_alert STO-06
unit.test_push_targeting.TestPayload.test_single_urgent_report STO-06
unit.test_push_targeting.TestPayload.test_batch STO-06
unit.test_push_targeting.TestPayload.test_batch_without_investigate STO-06
unit.test_push_targeting.TestRunOnce.test_nothing_unpushed STO-06
unit.test_push_targeting.TestRunOnce.test_marked_pushed_without_subscribers STO-06
unit.test_push_targeting.TestRunOnce.test_held_detections_not_pushed STO-06
unit.test_push_targeting.TestRunOnce.test_targeting_per_user STO-07, AC-06, AC-09, ALR-28
unit.test_push_targeting.TestRunOnce.test_defender_can_narrow STO-07
unit.test_push_targeting.TestRunOnce.test_anonymous_subscription_gets_nothing STO-07, AC-02
unit.test_push_targeting.TestRunOnce.test_every_browser_of_a_user STO-07
unit.test_push_targeting.TestRunOnce.test_send_failure_recorded STO-06
unit.test_push_targeting.TestSend.test_success STO-06
unit.test_push_targeting.TestSend.test_gone_subscription_deleted STO-06
unit.test_push_targeting.TestSend.test_transient_failures_counted_then_dropped STO-06
unit.test_push_targeting.TestSend.test_unexpected_error_never_raises STO-06
unit.test_push_targeting.TestSend.test_resubscribe_resets_failures STO-07
unit.test_related_view.RelatedView.test_counts_details_and_clef STO-10
unit.test_repo_guard.ForbiddenFilesTest.test_forbidden_names SEC-04
unit.test_repo_guard.ForbiddenFilesTest.test_forbidden_directories SEC-04
unit.test_repo_guard.ForbiddenFilesTest.test_allowed_names SEC-04
unit.test_repo_guard.ForbiddenFilesTest.test_forbidden_absolute_path_in_temp_dir SEC-04
unit.test_repo_guard.ForbiddenFilesTest.test_missing_ordinary_file_is_skipped SEC-04
unit.test_repo_guard.MacDetectionTest.test_mac_detected_with_line_number SEC-04
unit.test_repo_guard.MacDetectionTest.test_uppercase_mac_detected SEC-04
unit.test_repo_guard.MacDetectionTest.test_mac_built_at_runtime_not_flagged SEC-04
unit.test_repo_guard.MacDetectionTest.test_non_mac_patterns_clean SEC-04
unit.test_repo_guard.MacDetectionTest.test_skip_content_files SEC-04
unit.test_repo_guard.MacDetectionTest.test_no_site_config_ignores_private_ips SEC-04
unit.test_repo_guard.MacDetectionTest.test_multiple_files_and_lines SEC-04
unit.test_repo_guard.SiteValuesTest.test_site_values_from_store SEC-04
unit.test_repo_guard.SiteValuesTest.test_internal_cidr_ip_flagged SEC-04
unit.test_repo_guard.SiteValuesTest.test_ip_listed_in_settings_flagged SEC-04
unit.test_repo_guard.SiteValuesTest.test_ip_boundaries SEC-04
unit.test_repo_guard.SiteValuesTest.test_sensitive_term_case_insensitive SEC-04
unit.test_repo_guard.SiteValuesTest.test_term_inside_longer_word_ignored SEC-04
unit.test_repo_guard.SiteValuesTest.test_two_word_term SEC-04
unit.test_repo_guard.SiteValuesTest.test_domain_term SEC-04
unit.test_repo_guard.SiteValuesTest.test_combined_reasons_on_one_line SEC-04
unit.test_repo_guard.SiteValuesTest.test_short_terms_ignored SEC-04
unit.test_review_noai.ReviewNeverResearchesTest.test_reviewer_only_copies_or_queues OPS-06
unit.test_review_noai.ReviewNeverResearchesTest.test_reviewer_queue_decision OPS-06
unit.test_review_noai.ReviewNeverResearchesTest.test_no_reviewer_model_makes_no_call OPS-06
unit.test_review_noai.ReviewNeverResearchesTest.test_review_uses_the_correlation_reviewer_model OPS-06
unit.test_review_noai.ResearchOnDemandTest.test_research_requires_an_event OPS-06
unit.test_review_noai.ResearchOnDemandTest.test_scheduler_never_schedules_research OPS-06
unit.test_reviewer_output.ReviewerParagraphContractTest.test_schema_does_not_require_link_reason FEAT-07
unit.test_reviewer_output.ReviewerParagraphContractTest.test_prompt_asks_for_analyst_write_up FEAT-07
unit.test_reviewer_output.EventsProcessedTest.test_touch_counts_distinct_events FEAT-09
unit.test_reviewer_output.EventsProcessedTest.test_review_job_run_records_counts FEAT-09
unit.test_reviewer_output.EventsProcessedTest.test_run_without_counts_has_no_counts_text FEAT-09
unit.test_reviewer_output.AnalystWriteUp.test_write_up_format_and_summaries REV-01
unit.test_reviewlog.ReviewLogTest.test_review_log_follows_reviewer_switch AUD-04
unit.test_reviewlog.ReviewLogTest.test_daily_index_name AUD-04
unit.test_reviewlog.ReviewLogTest.test_correlation_pass_logged AUD-04
unit.test_reviewlog.ReviewLogTest.test_view_falls_back_to_memory AUD-04
unit.test_reviewlog.ReviewBusyTest.test_busy_share_from_aggregation AIR-02
unit.test_reviewlog.ReviewBusyTest.test_busy_share_from_listed_rows AIR-02
unit.test_reviewlog.ReviewBusyTest.test_view_uses_aggregation AIR-02
unit.test_risk.ZoneAndKeyTests.test_zone_of_maps_ip_to_cidr_zone RISK-03
unit.test_risk.ZoneAndKeyTests.test_zone_of_unmatched_and_invalid RISK-03
unit.test_risk.ZoneAndKeyTests.test_zone_of_prefix_boundaries RISK-03
unit.test_risk.ZoneAndKeyTests.test_seg_key_maps_ip_to_device_mac RISK-03
unit.test_risk.ZoneAndKeyTests.test_seg_key_keeps_unknown_ip_and_mac RISK-03
unit.test_risk.ZoneAndKeyTests.test_seg_key_issue_parses_seg_issue_keys RISK-03
unit.test_risk.ZoneAndKeyTests.test_seg_key_finding_parses_segmentation_detail RISK-03
unit.test_risk.ZoneAndKeyTests.test_seg_is_cleared_ip_and_mac_forms RISK-04
unit.test_risk.ZoneAndKeyTests.test_seg_cleared_reads_policy RISK-04
unit.test_risk.ZoneAndKeyTests.test_exposed_services_only_low_tcp_with_external_conns RISK-01
unit.test_risk.HostIpTests.test_host_ip_from_site_map RISK-01
unit.test_risk.HostIpTests.test_host_ip_short_name_match RISK-01
unit.test_risk.VulnScoreTests.test_severity_base_values RISK-01
unit.test_risk.VulnScoreTests.test_kind_factors RISK-01
unit.test_risk.VulnScoreTests.test_unifi_ips_mode_documented_limitation RISK-01
unit.test_risk.VulnScoreTests.test_exposure_factor_order RISK-01
unit.test_risk.VulnScoreTests.test_exposed_wins_over_dmz RISK-01
unit.test_risk.VulnScoreTests.test_seg_issue_in_dmz_uses_seg_dmz_factor RISK-01, RISK-03
unit.test_risk.VulnScoreTests.test_legacy_zone_name_role RISK-01, RISK-03
unit.test_risk.VulnScoreTests.test_recurrence_bonus_capped RISK-01, ISS-02
unit.test_risk.VulnScoreTests.test_score_capped_at_100 RISK-01
unit.test_risk.VulnScoreTests.test_drivers_explain_multipliers RISK-01
unit.test_risk.VulnScoreTests.test_vulns_sorted_and_ranked RISK-01
unit.test_risk.VulnScoreTests.test_host_name_resolves_to_ip_for_exposure RISK-01
unit.test_risk.VulnScoreTests.test_cleared_seg_issue_dropped RISK-04
unit.test_risk.HostScoreTests.test_worked_example_from_spec RISK-01, RISK-02
unit.test_risk.HostScoreTests.test_components_capped_and_score_bounded RISK-02
unit.test_risk.HostScoreTests.test_weaknesses_diminishing_returns RISK-02
unit.test_risk.HostScoreTests.test_impact_by_class_role_and_fallbacks RISK-02, RISK-03
unit.test_risk.HostScoreTests.test_crown_jewel_override RISK-02
unit.test_risk.HostScoreTests.test_endpoint_only_target_and_case_merge RISK-02
unit.test_risk.HostScoreTests.test_gateway_addresses_merge_into_gateway_entity RISK-02
unit.test_risk.HostScoreTests.test_zero_score_host_without_issues_dropped RISK-02
unit.test_risk.HostScoreTests.test_visibility_gaps RISK-02
unit.test_risk.HostScoreTests.test_threat_signals_and_known_benign RISK-02
unit.test_risk.HostScoreTests.test_threat_intel_contact_adds_15 RISK-02
unit.test_risk.HostScoreTests.test_lateral_reach_zones_and_violations RISK-02, RISK-04
unit.test_risk.HostScoreTests.test_failed_admin_logins_raise_both_ends RISK-02, LAT-01
unit.test_risk.HostScoreTests.test_hosts_sorted_by_score RISK-02
unit.test_risk.HostScoreTests.test_empty_inputs RISK-02
unit.test_risk_k8s.K8sRiskTest.test_hardened_internal_workload_is_low KUBE-11
unit.test_risk_k8s.K8sRiskTest.test_exposed_vulnerable_privileged_ranks_higher KUBE-11
unit.test_risk_k8s.K8sRiskTest.test_threat_from_security_onion_and_host_network_alerts_go_to_node KUBE-11
unit.test_risk_k8s.K8sRiskTest.test_visibility_impact_override_and_no_data KUBE-11
unit.test_runarchive.RunSummary.test_summary_keeps_trend_and_last_seen_after_prune DASH-07, OPS-06
unit.test_runarchive.RunSummary.test_prune_needs_summary_and_ingest OPS-06
unit.test_runarchive.RunSummary.test_fix_list_counts_pruned_runs OPS-06
unit.test_runarchive.FixListTables.test_fix_list_is_rows_not_json OPS-06
unit.test_runarchive.RangeOnlyPage.test_snapshot_api_refuses_review_runs POS-01
unit.test_runarchive.RangeOnlyPage.test_default_range_picks_newest_done_window POS-04
unit.test_runarchive.RangeOnlyPage.test_range_request_never_uses_review_run POS-04
unit.test_runarchive.RangeWarm.test_broker_prune_spares_warm_ranges POS-04
unit.test_scheduler.SlotTest.test_anchor_is_slot_zero OPS-03
unit.test_scheduler.SlotTest.test_slot_boundaries OPS-03
unit.test_scheduler.SlotTest.test_slot_start_is_floor OPS-03
unit.test_scheduler.SlotTest.test_daily_grid_lands_on_0500 OPS-03
unit.test_scheduler.SlotTest.test_four_hour_grid_times OPS-03
unit.test_scheduler.SlotTest.test_slot_before_anchor_is_negative OPS-03
unit.test_scheduler.NextRunTest.test_default_interval OPS-03
unit.test_scheduler.NextRunTest.test_custom_interval_and_disabled OPS-03
unit.test_scheduler.NextRunTest.test_out_of_range_interval_falls_back OPS-03
unit.test_scheduler.NextRunTest.test_put_rejects_bad_interval OPS-03
unit.test_scheduler.NextRunTest.test_slot_uses_stored_interval_when_omitted OPS-03
unit.test_scheduler.SchedulerStatusTest.test_jobs_defined OPS-03
unit.test_scheduler.SchedulerStatusTest.test_status_watch_next_quarter_hour OPS-03, EVW-06
unit.test_scheduler.SchedulerStatusTest.test_status_weekly_is_next_sunday_0300 OPS-03
unit.test_scheduler.SchedulerStatusTest.test_status_research_fields OPS-03
unit.test_scheduler.SchedulerStatusTest.test_week_key_format OPS-03
unit.test_scheduler.SchedulerStatusTest.test_watch_and_unifi_slot_numbers OPS-03
unit.test_scoped_notes.ScopedNotes.test_wildcard_domain_note_covers_subdomains STO-13
unit.test_scoped_notes.ScopedNotes.test_cidr_note_covers_addresses_in_range STO-13
unit.test_scoped_notes.ScopedNotes.test_cidr_validation STO-13
unit.test_server_cache.CacheBound.test_cache_is_lru_bounded OPS-05
unit.test_server_cache.CacheBound.test_snapshot_loads_stay_bounded OPS-05, DASH-02
unit.test_settings_ai.NotesLimit.test_defaults SET-20
unit.test_settings_ai.NotesLimit.test_valid_values_persist_each_field_separately SET-20
unit.test_settings_ai.NotesLimit.test_out_of_range_rejected_and_nothing_saved SET-20
unit.test_settings_ai.NotesLimit.test_hand_edited_out_of_range_values_are_clamped SET-20
unit.test_settings_ai.NotesLimit.test_notes_settings_cap_the_review_prompt SET-21
unit.test_settings_ai.Models.test_correlation_default_is_local_server SET-22
unit.test_settings_ai.Models.test_correlation_choice_persists_and_is_used SET-22
unit.test_settings_ai.Models.test_correlation_on_removed_provider_or_model_fails_loudly SET-22
unit.test_settings_ai.Models.test_server_only_allows_configured_models SET-22
unit.test_settings_ai.Models.test_chat_model_default_off_then_persists SET-23
unit.test_settings_ai.Models.test_chat_es_switch SET-23
unit.test_settings_ai.Lookups.test_lookup_plan_default_on_and_switch SET-24
unit.test_settings_ai.Lookups.test_web_search_default_valid_and_range SET-25
unit.test_settings_ai.Lookups.test_es_queries_default_valid_and_range SET-25
unit.test_settings_ai.Lookups.test_es_max_is_the_lookup_budget_given_to_the_reviewer SET-25
unit.test_settings_ai.ReviewLimits.test_pair_default_new_vs_existing_deployment SET-26
unit.test_settings_ai.ReviewLimits.test_defaults SET-26, EVW-01
unit.test_settings_ai.ReviewLimits.test_pair_mode_skip_holds_links_back SET-26
unit.test_settings_ai.ReviewLimits.test_pair_mode_validation SET-26
unit.test_settings_ai.ReviewLimits.test_legacy_skip_pairs_and_test_mode SET-26
unit.test_settings_ai.ReviewLimits.test_max_links_range SET-27
unit.test_settings_ai.ReviewLimits.test_max_links_caps_pending_links_best_score_first SET-27
unit.test_settings_ai.ReviewLimits.test_window_range_and_effect SET-28, EVW-02
unit.test_settings_ai.ReviewLimits.test_discard_days_and_classify SET-28
unit.test_settings_ai.ReviewLimits.test_exclusions_and_rules_are_ignored SET-29
unit.test_settings_ai.ReviewLimits.test_limits_view_counts_pairs SET-29
unit.test_settings_ai.ClefSettings.test_defaults SET-30
unit.test_settings_ai.ClefSettings.test_valid_values_persist_and_stamp SET-30
unit.test_settings_ai.ClefSettings.test_out_of_range_rejected SET-30
unit.test_settings_ai.ClefSettings.test_hand_edited_thresholds_clamped SET-30
unit.test_settings_ai.ClefSettings.test_related_min_decides_links SET-31
unit.test_settings_ai.ClefSettings.test_enabled_switch_is_read_by_the_pipeline SET-30
unit.test_settings_ai.Providers.test_add_valid_provider_defaults SET-32
unit.test_settings_ai.Providers.test_validation_rejects_bad_input SET-32
unit.test_settings_ai.Providers.test_lan_http_allowed_and_names_unique SET-32
unit.test_settings_ai.Providers.test_key_is_masked_everywhere_the_browser_sees SET-33
unit.test_settings_ai.Providers.test_key_is_write_only_on_update SET-33
unit.test_settings_ai.Providers.test_delete_removes_provider_and_key SET-33
unit.test_settings_ai.Providers.test_local_server_defaults_and_save SET-34
unit.test_settings_ai.Providers.test_local_server_validation_and_disable SET-34
unit.test_settings_ai.ClefServer.test_defaults SET-35
unit.test_settings_ai.ClefServer.test_valid_save_persists_and_stamps SET-35
unit.test_settings_ai.ClefServer.test_invalid_rejected SET-35
unit.test_settings_integrations.UrlSettings.test_bad_urls_refused SET-01
unit.test_settings_integrations.UrlSettings.test_good_urls_normalised SET-01
unit.test_settings_integrations.UrlSettings.test_es_url_fallback_chain SET-02
unit.test_settings_integrations.UrlSettings.test_unifi_url_default SET-08
unit.test_settings_integrations.UrlSettings.test_http_layer_refuses_other_schemes SET-01
unit.test_settings_integrations.IndexSettings.test_bad_index_names_refused SET-03
unit.test_settings_integrations.IndexSettings.test_index_patterns_allowed SET-03
unit.test_settings_integrations.IndexSettings.test_per_index_override_and_defaults SET-04
unit.test_settings_integrations.IndexSettings.test_map_index_translates_defaults SET-04
unit.test_settings_integrations.IndexSettings.test_url_post_resets_missing_indices SET-04
unit.test_settings_integrations.ApiKeys.test_public_masks_keys SET-05
unit.test_settings_integrations.ApiKeys.test_blank_keeps_clear_key_clears SET-06
unit.test_settings_integrations.ApiKeys.test_bad_keys_refused SET-06
unit.test_settings_integrations.ApiKeys.test_es_key_fallbacks SET-07
unit.test_settings_integrations.ApiKeys.test_unifi_key_fallback SET-07
unit.test_settings_integrations.ApiKeys.test_container_hides_host_fallback SET-07
unit.test_settings_integrations.ApiKeys.test_audit_key_env_fallback SET-07
unit.test_settings_integrations.AuditSettings.test_audit_index_one_concrete_name SET-09
unit.test_settings_integrations.AuditSettings.test_switch_only_post_keeps_index_and_key SET-10
unit.test_settings_integrations.AuditSettings.test_key_post_resets_blank_index SET-10
unit.test_settings_integrations.AuditSettings.test_send_switches_default_on_and_independent SET-11
unit.test_settings_integrations.SaveStamps.test_updated_by_and_at SET-12
unit.test_settings_integrations.SaveStamps.test_sections_saved_independently SET-12
unit.test_settings_integrations.SaveStamps.test_candidate_does_not_save SET-12
unit.test_settings_integrations.SaveStamps.test_num_helper SET-12
unit.test_settings_integrations.ConnectionTests.test_es_success SET-13
unit.test_settings_integrations.ConnectionTests.test_es_fallbacks_and_errors SET-13
unit.test_settings_integrations.ConnectionTests.test_es_no_key SET-13
unit.test_settings_integrations.ConnectionTests.test_unifi_success_and_error SET-13
unit.test_settings_integrations.ConnectionTests.test_unifi_key_fallback_and_missing SET-13
unit.test_settings_integrations.ConnectionTests.test_audit_success_and_error SET-13
unit.test_settings_integrations.ConnectionTests.test_audit_no_key SET-13
unit.test_settings_integrations.ConnectionTests.test_invalid_form_values_rejected SET-13
unit.test_settings_integrations.AuditSwitchesEndToEnd.test_actor_map SET-14
unit.test_settings_integrations.AuditSwitchesEndToEnd.test_both_on_sends_everything SET-14
unit.test_settings_integrations.AuditSwitchesEndToEnd.test_reviewer_off SET-14
unit.test_settings_integrations.AuditSwitchesEndToEnd.test_researcher_off SET-14
unit.test_settings_integrations.AuditSwitchesEndToEnd.test_both_off_never_drops_people SET-14
unit.test_settings_integrations.AuditSwitchesEndToEnd.test_review_log_entries_follow_reviewer_switch SET-14
unit.test_settings_integrations.AuditSwitchesEndToEnd.test_review_log_view_source SET-15
unit.test_settings_inventory.SettingsInventoryTest.test_every_settings_endpoint_listed SET-90
unit.test_settings_inventory.SettingsInventoryTest.test_every_integrations_section_listed SET-90
unit.test_settings_inventory.SettingsInventoryTest.test_every_settings_document_listed SET-90
unit.test_settings_inventory.SettingsInventoryTest.test_every_setter_listed SET-90
unit.test_settings_inventory.SettingsInventoryTest.test_every_setting_covered_by_tests SET-90
unit.test_settings_site.SettingsCatalog.test_every_documented_key_is_shipped SET-40
unit.test_settings_site.SettingsCatalog.test_no_undocumented_template_setting SET-41
unit.test_settings_site.SettingsCatalog.test_template_notes_match_catalog SET-41
unit.test_settings_site.CfgRoundTrip.test_templates_round_trip_key_by_key SET-42
unit.test_settings_site.CfgRoundTrip.test_awkward_values_round_trip SET-42
unit.test_settings_site.CfgRoundTrip.test_load_returns_private_copy SET-42
unit.test_settings_site.CfgValidate.test_templates_are_valid SET-43
unit.test_settings_site.CfgValidate.test_bad_zones_rejected SET-44
unit.test_settings_site.CfgValidate.test_unknown_zone_role_rejected SET-44
unit.test_settings_site.CfgValidate.test_upload_spike_values SET-45
unit.test_settings_site.CfgValidate.test_new_destination_class_lists ANA-30
unit.test_settings_site.CfgValidate.test_spike_threshold_values SET-45
unit.test_settings_site.CfgValidate.test_beacon_values SET-46
unit.test_settings_site.CfgValidate.test_allow_rules_need_src_and_dst SET-46
unit.test_settings_site.CfgValidate.test_unknown_device_class_rejected SET-47
unit.test_settings_site.CfgValidate.test_bad_sensitive_port_rejected SET-47
unit.test_settings_site.CfgValidate.test_scan_threshold_types_rejected SET-47
unit.test_settings_site.CfgValidate.test_host_policy_regexes SET-48
unit.test_settings_site.CfgValidate.test_site_values SET-48
unit.test_settings_site.CfgValidate.test_known_benign_shape SET-48
unit.test_settings_site.CfgPostHandler.test_valid_change_is_saved SET-49
unit.test_settings_site.CfgPostHandler.test_list_index_set SET-49
unit.test_settings_site.CfgPostHandler.test_bad_requests_rejected SET-50
unit.test_settings_site.CfgPostHandler.test_invalid_value_not_saved SET-50
unit.test_settings_site.CfgPostHandler.test_oversized_and_non_admin SET-50
unit.test_settings_site.AutoTune.test_recommend_saves_nothing SET-51
unit.test_settings_site.AutoTune.test_noisy_detections_get_less_sensitive SET-51
unit.test_settings_site.AutoTune.test_switched_off_and_resolver_beacons SET-51
unit.test_settings_site.AutoTune.test_apply_writes_only_accepted_current_values SET-52
unit.test_settings_site.AutoTune.test_tune_apply_endpoint SET-52
unit.test_settings_site.UnifiDiscover.test_one_zone_per_subnet SET-53
unit.test_settings_site.UnifiDiscover.test_roles_from_name_guest_and_members SET-53
unit.test_settings_site.UnifiDiscover.test_existing_zone_name_kept_and_classes SET-53
unit.test_settings_site.UnifiDiscover.test_build_writes_nothing SET-53
unit.test_settings_site.UnifiDiscover.test_apply_merge_keeps_existing SET-54
unit.test_settings_site.UnifiDiscover.test_apply_overwrite_replaces_but_never_removes SET-54
unit.test_settings_site.UnifiDiscover.test_apply_site_prefixes SET-55
unit.test_settings_site.UnifiDiscover.test_discover_endpoint_preview_and_apply SET-55
unit.test_settings_ui.LearnedHostName.test_learned_host_name_lookup_order SET-71
unit.test_settings_ui.LearnedHostName.test_editor_shows_learned_text_display_only_and_filterable SET-71
unit.test_settings_ui.SuppressButtonGold.test_suppress_button_uses_the_gold_action_style UI-90
unit.test_settings_ui.MoreBelowFades.test_more_below_fades_out_at_the_bottom UI-91
unit.test_settings_ui.MoreBelowFades.test_more_above_fades_in_when_scrolled_down UI-91
unit.test_signature_notes.SignatureNotes.test_notes_grouped_by_signature STO-17
unit.test_signature_notes.SignatureNotes.test_every_note_has_a_signature STO-17
unit.test_signature_notes.SignatureNotes.test_note_select_lists_every_column STO-17
unit.test_signature_notes.SignatureNotes.test_body_strips_verdict_boilerplate STO-17
unit.test_signature_notes.SignatureNotes.test_defender_edit_changes_text_verdict_scope_and_keeps_status STO-17
unit.test_signature_notes.SignatureNotes.test_user_edits_only_own_note_and_goes_back_to_pending STO-17
unit.test_signature_notes.SignatureNotes.test_edit_validation STO-17
unit.test_static_assets.HtmlReferencesTest.test_html_pages_exist DASH-06
unit.test_static_assets.HtmlReferencesTest.test_scripts_and_stylesheets_exist DASH-06
unit.test_static_assets.HtmlReferencesTest.test_other_linked_assets_exist DASH-06
unit.test_static_assets.HtmlReferencesTest.test_index_loads_app_js_and_style DASH-06
unit.test_static_assets.HtmlReferencesTest.test_no_duplicate_script_tags DASH-06
unit.test_static_assets.HtmlReferencesTest.test_suppress_rules_on_configuration_and_no_checked_page CFG-06
unit.test_static_assets.HtmlReferencesTest.test_modals_survive_touch DASH-06
unit.test_static_assets.HtmlReferencesTest.test_cache_busting_query_is_numeric DASH-01
unit.test_static_assets.HtmlReferencesTest.test_manifest_icons_exist DASH-06
unit.test_static_assets.FnvParityTest.test_fnv_function_present COR-02
unit.test_static_assets.FnvParityTest.test_constants_match_python COR-02
unit.test_static_assets.FnvParityTest.test_js_algorithm_shape COR-02
unit.test_static_assets.FnvParityTest.test_python_matches_js_model COR-02
unit.test_static_assets.FnvParityTest.test_alarm_ev_id_format_matches COR-02
unit.test_static_assets.FnvParityTest.test_gw_id_format_matches COR-02
unit.test_store.TestConnect.test_db_path_prefers_netmon_db_env STO-01
unit.test_store.TestConnect.test_new_database_is_owner_only SEC-06
unit.test_store.TestConnect.test_existing_world_readable_db_is_tightened SEC-06
unit.test_store.TestConnect.test_schema_has_migrated_alert_columns_and_wal STO-01
unit.test_store.TestConnect.test_tx_rolls_back_on_exception STO-01
unit.test_store.TestConnect.test_tl_conn_runs_init_once_per_thread STO-01
unit.test_store.TestDocs.test_doc_name_mapping STO-01
unit.test_store.TestDocs.test_jdump_jload_roundtrip_in_db STO-01
unit.test_store.TestDocs.test_jdump_overwrites_existing_doc STO-01
unit.test_store.TestDocs.test_plain_file_fallback STO-01
unit.test_store.TestDocs.test_jload_bad_or_missing_file_returns_default STO-01
unit.test_store.TestDocs.test_jglob_lists_docs_sorted_and_filtered STO-01
unit.test_store.TestDocs.test_jglob_plain_directory STO-01
unit.test_store.TestDocs.test_doc_names_escapes_like_wildcards STO-01
unit.test_store.TestDocs.test_docs_migrate_imports_and_optionally_deletes STO-01
unit.test_store.TestCfg.test_flatten_build_roundtrip STO-02
unit.test_store.TestCfg.test_flatten_row_format STO-02
unit.test_store.TestCfg.test_top_level_empty_key_roundtrip STO-02
unit.test_store.TestCfg.test_cfg_save_load_and_has STO-02
unit.test_store.TestCfg.test_cfg_load_returns_private_copy_unless_shared STO-02
unit.test_store.TestCfg.test_cfg_save_replaces_whole_document_and_invalidates_cache STO-02
unit.test_store.TestCfg.test_cfg_paths_route_through_jload_jdump STO-02
unit.test_store.TestAcks.test_ack_set_and_clear STO-03, DASH-05
unit.test_store.TestAcks.test_ack_relabel_keeps_old_label_when_blank STO-03
unit.test_store.TestAcks.test_unknown_type_appears_in_map STO-03
unit.test_store.TestAcks.test_ack_set_many_bulk STO-03, DASH-05
unit.test_store.TestWatchMute.test_mute_filter_dedupes_and_mutes STO-06
unit.test_store.TestWatchMute.test_mute_filter_expires_old_mutes STO-06
unit.test_store.TestMuteRules.test_mute_add_is_disabled STO-04
unit.test_store.TestMuteRules.test_mglob_semantics STO-04
unit.test_store.TestMuteRules.test_mute_match_name_and_host STO-04
unit.test_store.TestMuteRules.test_mute_apply_and_remove_with_existing_rule STO-04, STO-06
unit.test_store.TestSuppress.test_suppress_match_name_only STO-05
unit.test_store.TestSuppress.test_suppress_match_ip_boundaries STO-05
unit.test_store.TestSuppress.test_suppress_match_port_and_kinds STO-05
unit.test_store.TestSuppress.test_suppress_add_validation STO-05
unit.test_store.TestSuppress.test_suppress_add_hides_and_remove_restores STO-05, STO-06
unit.test_store.TestSegAndIdsSuppress.test_seg_suppress_add_normalises_and_dedupes STO-05
unit.test_store.TestSegAndIdsSuppress.test_seg_suppress_add_validation STO-05
unit.test_store.TestSegAndIdsSuppress.test_seg_suppress_match STO-05, RISK-04
unit.test_store.TestSegAndIdsSuppress.test_ids_suppress_add_remove STO-05
unit.test_store.TestSegAndIdsSuppress.test_ids_filter STO-05
unit.test_store.TestSegAndIdsSuppress.test_ids_filter_host_rule_removing_everything STO-05
unit.test_store.TestAlerts.test_held_sources_are_not_in_feed_until_promoted STO-06
unit.test_store.TestAlerts.test_hold_ignores_non_detection_sources STO-06
unit.test_store.TestAlerts.test_alert_defaults_and_targets STO-06, STO-07
unit.test_store.TestAlerts.test_old_alerts_pruned_after_30_days STO-06
unit.test_store.TestAlerts.test_mark_read_all_and_delete STO-06
unit.test_store.TestAlerts.test_alerts_recent_order_and_limit STO-06
unit.test_store.TestTargetsAndPrefs.test_alert_targets_private_only STO-07
unit.test_store.TestTargetsAndPrefs.test_alert_targets_host_key_uses_endpoint_ips STO-07
unit.test_store.TestTargetsAndPrefs.test_device_ids STO-07
unit.test_store.TestTargetsAndPrefs.test_prefs_default_set_and_validate STO-07
unit.test_store.TestTargetsAndPrefs.test_watch_ids_and_alert_for STO-07, AC-06
unit.test_store.TestPushSubs.test_save_update_delete STO-07
unit.test_store.TestPushSubs.test_failures_drop_subscription_after_five STO-07
unit.test_store.TestSecFindings.test_sec_sync_lifecycle STO-06
unit.test_store.TestRegistryHostsHistory.test_registry_roundtrip_and_ips STO-01
unit.test_store.TestRegistryHostsHistory.test_hosts_save_replaces_kind_docs STO-01
unit.test_store.TestRegistryHostsHistory.test_history_append_load_keep_and_served_ports STO-01
unit.test_store.TestRegistryHostsHistory.test_history_reappend_replaces_served_ports STO-01
unit.test_store.TestOps.test_migrate_imports_legacy_files_once STO-01, OPS-04
unit.test_store.TestOps.test_migrate_missing_files_is_empty STO-01
unit.test_store.TestOps.test_stats_and_integrity OPS-04
unit.test_store.TestOps.test_backup_copies_and_prunes OPS-04
unit.test_store.TestOps.test_daily_backup_made_once_per_day OPS-04
unit.test_store.TestOps.test_export_writes_legacy_files OPS-04
unit.test_stream.StreamTick.test_ticks_touch_end_to_end_and_store_held_alerts EVW-09
unit.test_stream.StreamTick.test_failed_check_keeps_bookmark EVW-09
unit.test_stream.StreamTick.test_watcher_twin_is_muted EVW-09
unit.test_stream.StreamTick.test_syslog_one_search_for_all_patterns EVW-09
unit.test_stream.StreamSettle.test_stream_only_group_settles_on_stream_bookmark EVW-10
unit.test_stream.StreamSettle.test_mixed_group_waits_for_the_watcher EVW-10
unit.test_stream.StreamSettle.test_idle_wakes_on_new_alert EVW-10
unit.test_syn_flash.SynCorrelationFlash.test_probability_from_ab_logprobs LLM-06
unit.test_syn_flash.SynCorrelationFlash.test_missing_answer_token_and_bad_reply LLM-06
unit.test_syn_flash.SynCorrelationFlash.test_default_server_is_loopback_flash LLM-06
unit.test_syn_flash.NoNoteRule.test_unexplained_attack_activity_is_suspicious LLM-07
unit.test_ti_trend.TestTrend.test_trend_cached_loads_each_once DASH-07
unit.test_training_page.TrainingPage.test_admin_only AC-11
unit.test_training_page.TrainingPage.test_missing_file_is_404 AC-11
unit.test_unifi_cache.UnifiCache.test_settings_cache_has_no_credentials SEC-06
unit.test_unifi_cache.UnifiCache.test_prewarm_fills_store_and_serves_reads_without_files STO-16
unit.test_unifi_cache.UnifiCache.test_refresh_fetches_tail_dedups_trims_and_caps STO-16
unit.test_unifi_cache.UnifiCache.test_reader_sees_one_consistent_commit STO-16
unit.test_unifi_cache.UnifiCache.test_retired_cache_dir_is_blocked STO-16
unit.test_verdict_ti_override.WildScope.test_wildcard_scope_clean_and_match STO-18
unit.test_verdict_ti_override.WildScope.test_expiry STO-18
unit.test_verdict_ti_override.WildScope.test_dispute_and_no_new_ioc_notes STO-18
unit.test_verdict_ti_override.TiOverride.test_ti_hold STO-18
unit.test_verdict_ti_override.TiOverride.test_snapshot STO-18
unit.test_verdict_ti_override.IocExtract.test_skips_code_resolvers_services_victims STO-18
unit.test_volume_spike.Defaults.test_defaults_equal_old_hardcoded VOL-01
unit.test_volume_spike.Thresholds.test_global_change_takes_effect VOL-02
unit.test_volume_spike.Thresholds.test_per_class_override VOL-03
unit.test_volume_spike.Thresholds.test_class_limit VOL-04
unit.test_volume_spike.Settings.test_validation_and_rescope VOL-05
unit.test_volume_spike.Settings.test_class_alarm_switch VOL-05
unit.test_volume_spike.AutoTune.test_auto_tune_volume VOL-05
unit.test_vulnhist.VulnHistTest.test_cve_counts_distinct_per_cluster KUBE-13
unit.test_vulnhist.VulnHistTest.test_record_replaces_same_day_and_series_sums_clusters KUBE-13
unit.test_vulnhist.VulnHistTest.test_backfill_never_overwrites_daily KUBE-13
unit.test_vulnhist.VulnHistTest.test_scheduler_runs_it_daily KUBE-13
unit.test_websearch_audit.WebSearchAuditTest.test_search_entry AUD-06
unit.test_websearch_audit.WebSearchAuditTest.test_failed_page_read AUD-06
unit.test_webtools.WebConfig.test_self_hosted_firecrawl_needs_no_key WEB-01
unit.test_webtools.WebConfig.test_cloud_firecrawl_uses_host_key WEB-02
unit.test_webtools.WebConfig.test_url_change_drops_saved_key WEB-03
unit.test_webtools.WebConfig.test_bad_ca_and_url_refused WEB-04
unit.test_webtools.FirecrawlCalls.test_search_hits_configured_instance_without_auth WEB-05
unit.test_webtools.FirecrawlCalls.test_fetch_refuses_private_redirect_target WEB-06
e2e.test_e2e_access_control.RoleMatrix.test_roles_reported AC-02
e2e.test_e2e_access_control.RoleMatrix.test_user_limited_to_allow_list_get AC-03, AC-06
e2e.test_e2e_access_control.RoleMatrix.test_user_limited_to_allow_list_post AC-03
e2e.test_e2e_access_control.RoleMatrix.test_user_page_html_still_loads AC-03, DASH-01
e2e.test_e2e_access_control.RoleMatrix.test_defender_reads_everything AC-04
e2e.test_e2e_access_control.RoleMatrix.test_defender_cannot_change_settings AC-04, AC-08
e2e.test_e2e_access_control.RoleMatrix.test_defender_can_do_analyst_work AC-04, DASH-05
e2e.test_e2e_access_control.RoleMatrix.test_audit_log_admin_only AC-04, AUD-01
e2e.test_e2e_access_control.UserScope.test_user_sees_only_assigned_device_alerts AC-06, STO-07
e2e.test_e2e_access_control.UserScope.test_user_sees_event_reviewer_paragraph AC-06, LLM-03
e2e.test_e2e_access_control.UserScope.test_admin_sees_all_alerts AC-06
e2e.test_e2e_access_control.UserScope.test_user_site_config_reduced AC-06, CFG-01
e2e.test_e2e_access_control.UserScope.test_user_device_prefs_locked AC-06, STO-07
e2e.test_e2e_access_control.UserScope.test_user_cannot_be_given_all_devices AC-06
e2e.test_e2e_access_control.UserScope.test_user_read_marker_is_private AC-07
e2e.test_e2e_access_control.UserAdmin.test_add_user_validation AUTH-02, AUTH-03, AC-08
e2e.test_e2e_access_control.UserAdmin.test_default_role_is_user AC-02, AC-08
e2e.test_e2e_access_control.UserAdmin.test_role_change_applies_on_next_request AC-08
e2e.test_e2e_access_control.UserAdmin.test_admin_cannot_demote_self AC-05
e2e.test_e2e_access_control.UserAdmin.test_delete_user_revokes_access AC-08, AUTH-04
e2e.test_e2e_access_control.UserAdmin.test_admin_password_reset AC-08, AUTH-01
e2e.test_e2e_access_control.AuditTrail.test_user_add_audited_without_password AUD-01, AUD-03
e2e.test_e2e_access_control.AuditTrail.test_failed_login_audited AUD-02
e2e.test_e2e_access_control.AuditTrail.test_denied_request_audited AUD-02, AC-03
e2e.test_e2e_access_control.AuditTrail.test_spool_file_owner_only AUD-03, SEC-06
e2e.test_e2e_access_control.AuditTrail.test_state_db_owner_only SEC-06
e2e.test_e2e_alerts.AlertsApi.test_feed_order_limit_and_hidden_rows ALR-01
e2e.test_e2e_alerts.AlertsApi.test_only_my_devices_for_admin_and_defender ALR-02
e2e.test_e2e_alerts.AlertsApi.test_user_sees_only_assigned_devices_and_no_extras ALR-02, ALR-05, ALR-07
e2e.test_e2e_alerts.AlertsApi.test_extra_adds_verdicts ALR-03
e2e.test_e2e_alerts.AlertsApi.test_held_detections_and_verdict_filter ALR-04
e2e.test_e2e_alerts.AlertsApi.test_cleared_view_names_the_mute_rule ALR-05
e2e.test_e2e_alerts.AlertsApi.test_cleared_view_does_not_call_a_suppressed_alert_rule_removed ALR-05
e2e.test_e2e_alerts.AlertsApi.test_mute_rules_list ALR-07
e2e.test_e2e_alerts.AlertsApi.test_mute_rule_remove_restores_alerts ALR-08, ALR-09
e2e.test_e2e_alerts.AlertsApi.test_mute_remove_bad_id_is_a_client_error ALR-08
e2e.test_e2e_alerts.AlertsApi.test_bad_limit_is_a_client_error ALR-01
e2e.test_e2e_alerts.AlertsApi.test_read_markers_per_role ALR-06, ALR-20
e2e.test_e2e_alerts.AlertsApi.test_page_and_script_served ALR-20
e2e.test_e2e_container.DeployedContainer.test_read_only_root_fs OPS-02
e2e.test_e2e_container.DeployedContainer.test_runs_as_non_root OPS-02
e2e.test_e2e_container.DeployedContainer.test_capabilities_dropped OPS-02
e2e.test_e2e_container.DeployedContainer.test_health_check_passing OPS-02, DASH-04
e2e.test_e2e_container.DeployedContainer.test_live_healthz_and_auth_wall DASH-04, AC-01, SEC-01
e2e.test_e2e_dashboard.TransportSecurity.test_healthz_is_public DASH-04, AC-01
e2e.test_e2e_dashboard.TransportSecurity.test_tls_1_1_refused SEC-02
e2e.test_e2e_dashboard.TransportSecurity.test_tls_1_2_plus_negotiated SEC-02
e2e.test_e2e_dashboard.TransportSecurity.test_plain_http_client_does_not_break_server SEC-02, DASH-04
e2e.test_e2e_dashboard.TransportSecurity.test_security_headers_on_every_response_kind SEC-01
e2e.test_e2e_dashboard.TransportSecurity.test_api_responses_not_cached SEC-01, DASH-02
e2e.test_e2e_dashboard.SignIn.test_unauthenticated_api_401_and_page_redirect AC-01
e2e.test_e2e_dashboard.SignIn.test_public_shell_files_served_without_session AC-01
e2e.test_e2e_dashboard.SignIn.test_unauthenticated_post_rejected AC-01
e2e.test_e2e_dashboard.SignIn.test_login_sets_strict_session_cookie SEC-03, AUTH-04
e2e.test_e2e_dashboard.SignIn.test_wrong_password_rejected_generic_message AUTH-01
e2e.test_e2e_dashboard.SignIn.test_failed_logins_throttled_per_client AUTH-05
e2e.test_e2e_dashboard.SignIn.test_logout_clears_cookie AUTH-04
e2e.test_e2e_dashboard.SignIn.test_tampered_session_rejected AUTH-04
e2e.test_e2e_dashboard.SignIn.test_csrf_header_required SEC-01
e2e.test_e2e_dashboard.SignIn.test_malformed_json_body_does_not_crash SEC-01, DASH-04
e2e.test_e2e_dashboard.Pages.test_index_assets_stamped_with_build_hash DASH-01
e2e.test_e2e_dashboard.Pages.test_path_traversal_blocked SEC-05
e2e.test_e2e_dashboard.Pages.test_unknown_api_404 SEC-05
e2e.test_e2e_dashboard.Pages.test_gzip_for_large_responses DASH-01
e2e.test_e2e_dashboard.Api.test_review_run_list_gone DASH-02
e2e.test_e2e_dashboard.Api.test_time_range_round_trips_raw_data DASH-02, STO-01
e2e.test_e2e_dashboard.Api.test_unknown_snapshot_404 DASH-02
e2e.test_e2e_dashboard.Api.test_every_page_api_answers_200_json DASH-02, LLM-02
e2e.test_e2e_dashboard.Api.test_risk_scores_bounded RISK-02, DASH-02
e2e.test_e2e_dashboard.Api.test_correlation_contains_seeded_findings COR-03, DASH-02
e2e.test_e2e_dashboard.Api.test_open_events_persisted DASH-02, STO-01
e2e.test_e2e_dashboard.Api.test_mitre_view_has_catalog MIT-01, DASH-02
e2e.test_e2e_dashboard.Api.test_aireview_reports_llm_disabled LLM-02
e2e.test_e2e_dashboard.CheckOffs.test_single_check_off_round_trip DASH-05, STO-03
e2e.test_e2e_dashboard.CheckOffs.test_bulk_check_off DASH-05, STO-03
e2e.test_e2e_dashboard.CheckOffs.test_bulk_check_off_larger_than_64k DASH-05, STO-03
e2e.test_e2e_dashboard.CheckOffs.test_check_off_requires_type_and_key DASH-05
e2e.test_e2e_dashboard.Account.test_change_own_password_signs_out_other_sessions DASH-03, AUTH-04, AUTH-02
e2e.test_e2e_dashboard.Account.test_password_change_raises_account_alert DASH-03, STO-06
e2e.test_e2e_lateral.LateralApiE2E.test_snapshot_graph LAT-30
e2e.test_e2e_lateral.LateralApiE2E.test_unknown_snapshot_404 LAT-30
e2e.test_e2e_lateral.LateralApiE2E.test_roles LAT-31
e2e.test_e2e_lateral.LateralApiE2E.test_periods_merged LAT-29, LAT-30
e2e.test_e2e_lateral.LateralApiE2E.test_bad_periods_400 LAT-29, LAT-30
e2e.test_e2e_lateral.LateralApiE2E.test_clearing_a_flow_marks_it_allowed LAT-23, LAT-30
e2e.test_e2e_network.NetworkPagesE2E.test_snapshot_network_data NET-24, NET-03, NET-20
e2e.test_e2e_network.NetworkPagesE2E.test_range_sections NET-24
e2e.test_e2e_network.NetworkPagesE2E.test_registry_and_history NET-07, NET-08
e2e.test_e2e_network.NetworkPagesE2E.test_pages_and_scripts NET-22
e2e.test_e2e_network.NetworkPagesE2E.test_roles NET-23
e2e.test_e2e_open_events.OpenEventsApi.test_list_order_and_collapsed_rows OE-04, OE-03, OE-09, OE-17
e2e.test_e2e_open_events.OpenEventsApi.test_filters OE-05, OE-17, OE-19
e2e.test_e2e_open_events.OpenEventsApi.test_limit_default_and_cap OE-18
e2e.test_e2e_open_events.OpenEventsApi.test_negative_limit_returns_no_rows OE-18
e2e.test_e2e_open_events.OpenEventsApi.test_non_numeric_limit_is_a_client_error OE-18
e2e.test_e2e_open_events.OpenEventsApi.test_check_off_and_restore_through_api OE-07, OE-17
e2e.test_e2e_open_events.OpenEventsApi.test_detail_window OE-12, OE-17
e2e.test_e2e_open_events.OpenEventsApi.test_inputs OE-13, OE-17
e2e.test_e2e_open_events.OpenEventsApi.test_related_and_member_cap OE-11, OE-17
e2e.test_e2e_open_events.OpenEventsApi.test_roles OE-14
e2e.test_e2e_pipeline.AnalyzePipeline.test_every_run_succeeds STO-01
e2e.test_e2e_pipeline.AnalyzePipeline.test_no_findings_while_seeding ANA-01
e2e.test_e2e_pipeline.AnalyzePipeline.test_baseline_ready_after_history STO-01
e2e.test_e2e_pipeline.AnalyzePipeline.test_upload_spike_detected ANA-01, RISK-03
e2e.test_e2e_pipeline.AnalyzePipeline.test_steady_devices_not_flagged ANA-01
e2e.test_e2e_pipeline.AnalyzePipeline.test_history_appended STO-01
e2e.test_e2e_pipeline.AnalyzePipeline.test_backup_goes_to_sandbox OPS-04
e2e.test_e2e_pipeline.AnalyzePipeline.test_dashboard_serves_pipeline_output DASH-02, RISK-02
e2e.test_e2e_pipeline.ServerLifecycle.test_first_start_seeds_admin_then_ignores_env AUTH-06, OPS-01
e2e.test_e2e_pipeline.ServerLifecycle.test_roleless_accounts_migrated_to_admin AUTH-07
e2e.test_e2e_pipeline.ServerLifecycle.test_console_set_role OPS-01, AC-05
e2e.test_e2e_pipeline.ServerLifecycle.test_console_add_user_prompts_for_password OPS-01, AUTH-01
e2e.test_e2e_pipeline.ServerLifecycle.test_server_runs_with_llm_off LLM-02
e2e.test_e2e_pipeline.OperatorCli.test_store_check_and_stats OPS-04
e2e.test_e2e_pipeline.OperatorCli.test_scheduler_status OPS-03
e2e.test_e2e_pipeline.OperatorCli.test_repo_guard_cli_blocks_forbidden_and_passes_clean SEC-04
e2e.test_e2e_posture.PostureSnapshotApi.test_time_range_has_every_posture_section POS-01, POS-02
e2e.test_e2e_posture.PostureSnapshotApi.test_review_runs_refused_and_unknown_ids POS-01
e2e.test_e2e_posture.PostureSnapshotApi.test_time_range_names_its_base_review_run POS-05, POS-06
e2e.test_e2e_posture.PostureSnapshotApi.test_range_sections POS-06
e2e.test_e2e_posture.PostureSnapshotApi.test_range_request POS-04
e2e.test_e2e_posture.PostureSuppressApi.test_seg_suppress_hides_everywhere_then_restores POS-07, POS-10
e2e.test_e2e_posture.PostureSuppressApi.test_ids_suppress_hides_everywhere_then_restores POS-09, POS-10
e2e.test_e2e_posture.PostureSuppressApi.test_bad_suppress_rules_rejected POS-20
e2e.test_e2e_posture.PostureCheckOffApi.test_check_off_persists_across_ranges POS-12
e2e.test_e2e_posture.PostureCheckOffApi.test_cleared_segmentation_shared POS-11, POS-12
e2e.test_e2e_posture.PostureCheckOffApi.test_ack_needs_type_and_key POS-12
e2e.test_e2e_posture.PostureRoles.test_user_role_cannot_read_or_change_posture POS-19
e2e.test_e2e_posture.PostureRoles.test_defender_reads_and_edits POS-19
e2e.test_e2e_settings.Integrations.test_elasticsearch_saved_and_key_masked SET-60, SET-61
e2e.test_e2e_settings.Integrations.test_empty_key_keeps_and_clear_key_clears SET-61
e2e.test_e2e_settings.Integrations.test_web_search_provider_saved SET-60, SET-61
e2e.test_e2e_settings.Integrations.test_opencti_saved SET-60, SET-61
e2e.test_e2e_settings.Integrations.test_custom_feed_added_and_deleted SET-60
e2e.test_e2e_settings.Integrations.test_invalid_integration_input_rejected SET-62
e2e.test_e2e_settings.Integrations.test_audit_switches_persist SET-63
e2e.test_e2e_settings.ReviewJob.test_lookback_saved SET-64, EVW-01
e2e.test_e2e_settings.ReviewJob.test_review_schedule_saved SET-64
e2e.test_e2e_settings.ReviewJob.test_review_job_switch_and_modes SET-64
e2e.test_e2e_settings.ReviewJob.test_research_limits_saved SET-64
e2e.test_e2e_settings.ReviewJob.test_autoclose_settings_saved SET-64
e2e.test_e2e_settings.ReviewJob.test_autoclose_reopen_actions SET-64
e2e.test_e2e_settings.Models.test_provider_saved_key_masked SET-65, SET-61
e2e.test_e2e_settings.Models.test_provider_update_keeps_key SET-65, SET-61
e2e.test_e2e_settings.Models.test_invalid_provider_rejected SET-65
e2e.test_e2e_settings.Models.test_model_choice_saved_per_section SET-65
e2e.test_e2e_settings.EventReviewer.test_es_queries_saved SET-66
e2e.test_e2e_settings.EventReviewer.test_web_search_saved SET-66
e2e.test_e2e_settings.EventReviewer.test_lookup_plan_and_chat_es_saved SET-66
e2e.test_e2e_settings.EventReviewer.test_web_cache_saved_and_cleared SET-66
e2e.test_e2e_settings.EventReviewer.test_clef_saved SET-66
e2e.test_e2e_settings.EventReviewer.test_context_notes_saved SET-66
e2e.test_e2e_settings.EventReviewer.test_notes_consolidation_saved SET-66
e2e.test_e2e_settings.EventReviewer.test_review_limits_saved SET-66
e2e.test_e2e_settings.SettingsDocs.test_cfg_value_saved SET-67
e2e.test_e2e_settings.SettingsDocs.test_cfg_bad_doc_path_value_rejected SET-67
e2e.test_e2e_settings.SettingsDocs.test_tune_recommend_and_empty_apply SET-67
e2e.test_e2e_settings.PushPrefs.test_admin_and_defender_set_own_prefs SET-68
e2e.test_e2e_settings.PushPrefs.test_some_without_devices_rejected SET-68
e2e.test_e2e_settings.PushPrefs.test_user_cannot_change_prefs SET-68, SET-69
e2e.test_e2e_settings.RoleEnforcement.test_defender_refused_admin_settings SET-69
e2e.test_e2e_settings.RoleEnforcement.test_user_refused_all_settings SET-69
e2e.test_e2e_settings.RoleEnforcement.test_defender_reads_no_secrets_or_admin_views SET-69, SET-61
e2e.test_e2e_settings.RoleEnforcement.test_defender_may_set_review_limits SET-69
e2e.test_e2e_settings.RoleEnforcement.test_defender_cannot_switch_chat_es SET-69
e2e.test_e2e_settings.SettingsAudit.test_every_settings_post_audited SET-70
e2e.test_e2e_settings.SettingsAudit.test_secrets_redacted SET-70, SET-61
e2e.test_e2e_settings.SettingsAudit.test_rejected_and_denied_posts_audited SET-70, SET-69

Gaps