Skip to content
Documentation

Event lifecycle, threads, startup and shutdown

This page is published from the agent repository. Edit on GitHub View source

This page follows one event through agent run, from the sensor to the alert log and the control plane. It also lists the threads involved, the queues and their bounds, what happens under overload, and how run starts and stops on Linux, Windows and macOS. For the crate layout see Architecture overview.

The pipeline end to end

flowchart LR
  subgraph capture["Capture thread (per source)"]
    S[Sensor / poller] --> W["Wrappers<br/>PulsingSink, ProtectedResourceGuard,<br/>RedactingSink"]
    W --> DS["DetectionSink::on_event"]
    DS --> C["correlate()<br/>correlator + ML belief"]
    DS --> R["detect_*()<br/>rules, Sigma, IOC, canaries"]
    C & R --> RD["record_detection()<br/>verdict fusion + alert log"]
    RD --> RESP["response<br/>escalate / kill gate"]
  end
  DS -->|try_send| Q[["EnrichQueue<br/>cap 4096"]]
  RD -->|try_send detection| Q
  subgraph worker["enrich thread"]
    Q --> E["hash + signature<br/>gated alert, IOC on hash, rarity"]
    E --> RX[redact copy]
    RX --> EV[(events.jsonl, opt-in)]
    RX --> SP[(event spool)]
    E --> DSP[(detection spool)]
  end
  SP --> U1[transport-upload thread]
  DSP --> U2[detection-upload thread]
  U1 & U2 --> CP[(control plane)]
  RD --> AL[(alerts.ndjson<br/>+ stderr + recent buffer)]
  R -->|file write intent| Y[[yara-scan queue]]

1. Sensor to schema::Event

Every source produces schema::Event values and hands each one by value to EventSink::on_event. The contract is in schema::sensor:

  • Sensor::run(&mut self, sink: Box<dyn EventSink>) blocks until stop is called or an error occurs. A sensor usually runs on its own thread, so it owns its sink for its whole lifetime.
  • EventSink::on_event(&self, Event) takes &self, and implementations must be Send + Sync. A blanket impl EventSink for Arc<T> lets several producers share one sink. This is how the primary sensor and every poller thread feed the same DetectionSink.
  • Event is #[non_exhaustive], so a new variant does not break existing sinks. DetectionSink matches the variants it understands and only logs the rest.

Only the primary sensor implements Sensor (LinuxSensor/AuditSensor, WindowsSensor, MacosSensor, plus EventLogSensor, UprobesSensor and the netlink poller's NetlinkPollSensor). The other sources are poll or stream functions, and the platform module drives them on its own thread. The journal tail, socket pollers, unified-log tail and NE receiver all work this way.

2. Wrappers in front of the sink

Before an event reaches DetectionSink, it passes through these wrappers:

WrapperWherePurpose
PulsingSinkLinux primary and uprobes. Windows ETW.Pulses the sensor's SensorHeartbeat on every event, so the silence monitor can tell a silent sensor apart. Pollers pulse on each successful poll instead, whether or not it returned events.
ProtectedResourceGuardLinux primary onlyRaises an alert when a foreign process writes to the agent's own files: config, alerts file, events file.
RedactingSinkWindows and macOS, all commands. Linux capture commands.Redacts URL secrets and similar fields at the boundary. In run mode (redact_commands = false), events that carry command text (Exec, ReadlineInput, ScriptBlock, AmsiContent, WmiActivity) pass through unredacted, because the rules must read the raw command line. The capture commands redact everything.

The Linux run path does not put a RedactingSink in front of the detection sink. Redaction there happens only on the output copies (step 6).

3. Detection on the capture thread

DetectionSink::on_event runs on whatever thread called it, synchronously, entirely in memory:

  1. correlate. The event goes to correlator::CorrelationEngine::on_event. If an ML model loaded, ml::CorrelationScorer scores the process's behavior over the correlator window and feeds the log-likelihood ratio into the Bayesian belief. Results:
    • Out-of-distribution features are logged and give no evidence.
    • Scorer errors fail open.
    • kill_shield is read while the correlator lock is still held. The lock is released before any alert I/O.
  2. Canary hold expiry and tripwires (CanaryGate::on_event, in sink/canary.rs). Expiry runs only for events from the primary capture stream (exec and file events), because the hold window is measured on that stream's clock.
  3. Per-type dispatch (detect_exec, detect_file_open, …). For an exec, the order is: stateless rules (rules::evaluate_exec), stateful rules (RuleState::on_exec), due identity and unit-stop alerts, then Sigma. A file open with write intent also enqueues a budgeted YARA scan (yara::ScanQueue), which runs on the yara-scan thread.
  4. Signature-gated findings. Some exec findings depend on the image's signature, which is not known yet. RuleState::on_exec_signature_gated returns them, and they travel with the event into the enrichment queue.
  5. Progress. Only after all of the above does on_event increment the progress counter. A hang anywhere above, such as a poisoned lock or a wedged engine call, therefore stops the watchdog heartbeat.

No detection engine needs the file hash or signature synchronously. Rules, Sigma and the correlator work on command lines, lineage, paths and ports. This is why enrichment can run behind a queue.

4. Recording a finding

Every engine's finding goes through record_detection, which is a free function so that the enrichment worker and the YARA worker record findings the same way the capture thread does:

  1. Builds a schema::detection::Detection from redacted copies of the trigger event and any extra evidence. Ransomware alerts carry a damage manifest of up to 100 renamed or deleted files (the server keeps 128 events per detection). The message has the raw command line replaced by its redacted form (safe_detection_message).
  2. Folds the detection into verdict::VerdictEngine, keyed by EntityKey (ppid, comm, parent incarnation when known), with a 30 s dedup window (VERDICT_DEDUP_WINDOW_NS).
  3. Always writes a line to AlertLog, even when the verdict engine absorbs the finding as a duplicate. alerts.ndjson is the complete audit trail. The verdict is a bounded view for triage.
  4. If a new verdict snapshot comes out at High severity or above (response::should_escalate), writes a RESPONSE-ESCALATE alert.
  5. Hands the detection to the durable detection spool, when one is configured (step 6).

The worker records gated findings when it reaches them, which can be after the capture thread has recorded findings for later events of the same entity. Fusion keys on the event's own timestamp, so a late finding can at most be absorbed as a duplicate. It cannot reopen a window.

5. Automated response

Response is wired only on Linux, by DetectionSink::enable_response in cmd_run. It is observe-only unless --enable-kill / --enable-quarantine is given.

  • Kill gate. Only a correlator BAYES alert (crosses_kill_gate) makes a process eligible for a kill. A Sigma level: critical does not. The gate looks only at the triggering event's own alert, never at the entity's accumulated verdict. That verdict is a running maximum over every process sharing (ppid, comm), so gating on it would let one sibling's crossing condemn another. A KillShield from the correlator refuses the kill, even in observe mode, for a system service's main process or a login-session holder. Every outcome is audited as RESPONSE-KILL.
  • Ransomware reflex. A T1486 burst that is corroborated by a canary touch from the same process incarnation goes through the same policy-gated kill, without the shield.
  • Quarantine. A YARA match on a written payload is moved to quarantine/ next to the alerts file when quarantine is enabled (quarantine_matched_payload).

6. Enrichment, output and upload

EnrichQueue is a single enrich thread behind an mpsc::sync_channel of QUEUE_CAP = 4096 items. It is a FIFO carrying three kinds of item:

  • Event(event, gated). The worker hashes and checks the signature of exec images (the enrich::Enricher cache is owned by this thread only). Then it:
    • resolves the gated alert against the signature, and records it only if the verified file is confirmed to be the image that ran;
    • checks the image hash against the IOC sets;
    • adds image-rarity evidence to the correlator;
    • redacts a copy of the event, then appends that copy to events.jsonl (only with --events) and to the event spool.
  • Detection. The worker adds the hash to the detection's exec events (a cache hit for the event that follows in the queue), then persists it through persist_detection. That function stores a retry key generated with the detection, so a redelivery after a crash carries the same identity.
  • Flush(tx). A marker used by shutdown to wait until everything queued before it has been processed.

With a control plane configured, upload::start opens two store::EventSpool directories next to the alerts file, spool/ and detection-spool/ (the latter has one record per segment). Each spool is capped at storage.spool_max_mb (default 4096 MiB), so the worst case on disk is twice that value. One transport::UploadLoop thread per spool drains it:

  • Delivery is at-least-once. A segment is redelivered until it is acked.
  • A segment the server rejects permanently is skipped.
  • When the spool is empty, the loop polls every 5 s.
  • Past the byte cap, the spool drops its oldest segments and counts the loss. The health beacon reports it as spool_dropped.

Bounds and overload behavior

WhereBoundWhen full
Enrichment queue, events4096 itemsThe event is dropped from enrichment, logging and upload, and enrich_dropped is incremented in the health beacon. A gated alert riding with it is handed back and raised unverified on the capture thread. Capture never blocks.
Enrichment queue, detectionsSame channelThe capture thread appends to the detection spool itself and logs a warning. A finding is never dropped. Under sustained overload this puts file I/O on the capture thread, by design.
Event / detection spoolstorage.spool_max_mb eachThe oldest segments are dropped and counted.
Alert recent buffer256 alertsThe oldest is dropped from the buffer. alerts.ndjson still has every alert it could write.
alerts.ndjsonThe diskAn alert the file refuses (a full disk) is not retried and does not stop the agent. It still reaches stderr and the recent buffer, and alerts_dropped is incremented in the health beacon.
Verdict evidenceBounded per entity in verdictDuplicates within 30 s are absorbed, but still logged.
YARA file and memory scansBudgeted queues in yaraRequests are shed and counted.

Hot content reload

agent apply-content-manifest downloads, verifies and writes content under <state_dir>/content. It then notifies the running agent over IPC. The AgentHandler::reload_content handler calls DetectionSink::reload_content, which swaps in new Sigma and YARA engines and a new common-set snapshot under their mutexes. A missing content directory unloads that engine. A broken one keeps the previous engine running and is reported as failed. If the notification fails, the command still succeeds, and the content is loaded at the next start.

Threads in agent run

ThreadPlatformsStarted byStops how
main (primary sensor)allcmd_run: LinuxSensor/AuditSensor (own tokio runtime), ETW, or ESReturns on Ctrl-C or sensor failure
enrichallDetectionSink::newWhen the queue is dropped, i.e. with the process
correlator-tickallstart_correlator_ticker. Advances the correlator clock every second so window-expiry alerts fire without new events. Holds only a Weak reference to the sink.When the sink is dropped
yara-scan, yara-memscanall (memscan Linux only)start_yara / start_memscan when rules/yara existsWith the process
transport-upload, detection-uploadall, with a control planeupload::startShutdownPlan through finish_run, with a 3 s final drain (all platforms, #147)
heartbeatallwire_run_pipelineWith the process
ipc-serverallipc_handler::spawn (current-thread tokio)With the process. A failure there is logged and never stops detection.
snapshot-fetch, ioc-control-plane, decoy-register, deception-refreshall, when enabledwire_run_pipeline / plant_canariesWith the process
sensor-silenceLinux, Windowssilence::spawn_monitor. Polls every 10 s and turns each confirmed stall into a T1562 alert.With the process
health-beaconLinux, Windowshealth_collector(...).spawn()ShutdownPlan through finish_run (Linux, Windows)
kill-loudnessLinuxkill_loudness::spawn_watcherEnds the process itself
netlink-pollLinuxspawn_netlink_poller, every 10 sShutdownPlan
journal-tail, journal-canaryLinuxspawn_journal_tailWith the process
avc-readerLinux, eBPF primaryspawn_avc_readerShutdownPlan
log-sourcesLinux, if [logs] is configuredlog_sources::spawnShutdownPlan
uprobes-supervisor, uprobesLinuxspawn_uprobes_supervisorWith the process
self-integrity, inventoryLinuxintegrity::spawn_monitor, inventory::spawn_monitorWith the process
socket-poller, minifilter, Event Log threadWindowsrun_windows_sensorsShutdown flag, then joined
socket-poller, unifiedlog-tail, ne-receivermacOSrun_macos_sensorsStop flag, or the log stream child being killed

A thread the OS refuses. The threads that used to .expect their spawn (21 of them) are now started through spawn::spawn_named, which returns the OS error (EAGAIN: a container or RLIMIT_NPROC limit, a full pid table) with the thread's name in the message. The starters pass it up and agent run exits with it, such as could not start the heartbeat thread: ..., instead of panicking with a backtrace that does not say which thread it was starting (AC-016, #159). Two threads are started after start-up and so cannot fail run: the uprobes sensor, which the uprobes supervisor starts and restarts when the wanted captures change, and the journal canary, which the journal tail starts. A refusal there is logged (uprobes sensor not started, journal canary not started) and the thread stays off. The uprobes heartbeat is watched for as long as a capture is wanted, whether or not the thread runs, so a refused start is reported as silence, and it is unregistered when nothing is wanted any more, so a capture switched off after a refusal is not reported as tampering. The journal heartbeat pulses on every line journalctl delivers, so a canary that never started is noticed only on an idle host, where the journal sensor goes silent. The YARA workers belong to the optional engines: yara::ScanQueue::start and yara::MemoryScanQueue::start return YaraError::Spawn, and the sink treats it like a rule directory that does not load: logged at error level (yara: file scanning not started), that engine stays unloaded, and on a content reload the previous engine is kept.

Shared mutable state in DetectionSink is behind Mutexes (RuleState, correlator, Sigma, YARA, verdict), because several producer threads call on_event at once. Code takes a lock, collects alerts, and releases the lock before recording them. record_rule_alerts takes the rule-state lock again, so stateful rule steps go through DetectionSink::rule_alerts, which releases the lock before recording.

Startup

Common to every OS (try_main):

  1. Parse the CLI and load the config. A failure here stops the binary.
  2. Set up tracing from log.level, unless RUST_LOG overrides it.
  3. Resolve the upload target (resolve_run_target):
    • --standalone uploads nothing.
    • --server uploads only to that server, which never receives the configured client certificate (pass --cert/--key explicitly).
    • With neither flag, the agent uploads to server.control_plane_url with the configured mTLS pair.
    • The CA bundle (--ca-cert, then server.ca_cert) applies in all cases.
  4. Resolve the content directory. The default is <storage.state_dir>/content.

Then wire_run_pipeline, in this order:

  1. Transport first, because the sink needs the spool handles. If setting up upload fails and server.offline_fallback is on (the default), the agent runs without upload and raises an UPLOAD-DISABLED alert (start_or_disable). Without this fallback, an agent missing its certificates would detect nothing, and the watchdog would roll back an otherwise healthy release.
  2. DetectionSink::new: alert log, enrichment worker, correlator, ML scorer, Sigma, YARA, IOC, common set. Absent content is not an error.
  3. Correlator ticker. Then the control-plane URL is registered so the agent's own traffic does not raise IOC findings. Then snapshot fetch, the banner, the heartbeat writer and the IPC server.

After that, each platform calls set_stderr_details, apply_detection and plant_canaries before any sensor starts, so the first canary touch is already matched.

Linux

linux::cmd_run runs these steps in order:

  1. kill_loudness::block_termination_signals(). This must come before any other thread exists, because threads inherit the signal mask when they are created.
  2. wire_run_pipeline with a RuleState seeded from /proc, the ld.so.conf library directories and a sock_diag listener snapshot. A failed snapshot leaves the listener baseline empty.
  3. Start the kill-loudness watcher.
  4. Select the sensor (select_sensor). eBPF is used if can_use_ebpf passes: privileges (root, or CAP_BPF+CAP_PERFMON / CAP_SYS_ADMIN), BTF present, object loads, first program accepted by the verifier. Otherwise the audit fallback is used, at lower fidelity.
  5. enable_response.
  6. Register silence heartbeats:
    • primary sensor and journal: 120 s, since they have no self-generated canary;
    • netlink: 30 s (three missed polls);
    • AVC: about 6 s, registered only if its worker will run;
    • uprobes: registered only while it runs.
  7. Start the silence monitor, the integrity and inventory monitors, and the health beacon (each one registered with a ShutdownPlan where noted in the thread table).
  8. Start the netlink poller, journal tail, AVC reader (only when eBPF is primary, because AuditSensor already reads AVC records), log sources and uprobes supervisor. Attach the observation-only BPF-LSM file_open hook, best-effort; its Ebpf handle must stay alive.
  9. Run the primary sensor behind PulsingSink(ProtectedResourceGuard(sink)). This blocks.

agent status on Linux is a non-invasive preflight. It loads every raw-tracepoint program through the verifier without attaching any, and exits non-zero if one is rejected (cmd_status).

Windows

windows::cmd_run wires the pipeline with a RuleState seeded from tasklist, then starts the silence monitor and the health beacon. run_windows_sensors then:

  1. puts a RedactingSink in front of the sink;
  2. registers the heartbeats: ETW 120 s, socket poller 30 s, each Event Log channel 60 s, minifilter 30 s;
  3. installs a Ctrl-C handler that sets every stop flag;
  4. starts the socket poller, the minifilter receiver (only if the driver is loaded) and the Event Log thread;
  5. runs ETW on the calling thread.

The Event Log, socket and minifilter sources are supplementary. Their failure is logged and never fatal. The reverse also holds: if ETW fails before shutdown, hold_after_primary keeps the run alive on the supplementary sources until Ctrl-C. The windows-etw heartbeat that never pulses then becomes a silence alert. The ETW error is still the run's exit result. Response flags and uprobe flags are accepted and ignored.

macOS

macos::cmd_run wires the pipeline and calls run_macos_sensors. That function starts the NetworkExtension receiver (best-effort: nothing connects without the packaged system extension), the socket poller and the unified-log tail, installs a Ctrl-C handler, and runs EndpointSecurity on the calling thread. ES needs root, the ES entitlement and Full Disk Access. There is no silence monitor and no health beacon yet (#34).

Shutdown

sequenceDiagram
  participant Op as Operator / service manager
  participant KL as kill-loudness thread
  participant M as main (sensor)
  participant Q as EnrichQueue
  participant SP as ShutdownPlan
  Note over Op,SP: Linux, SIGINT (Ctrl-C)
  Op->>M: SIGINT -> sensor's tokio ctrl_c
  M->>Q: flush(1 s)
  M->>SP: execute(SHUTDOWN_BUDGET = 6 s)
  SP-->>M: stragglers (detached)
  Note over Op,SP: Linux, SIGTERM / SIGHUP / SIGQUIT
  Op->>KL: sigwaitinfo returns sender pid
  KL->>KL: append attribution alert line
  KL->>Q: flush(200 ms)
  KL->>Op: exit(128 + signo)

The end of agent run is one shared function, commands::common::finish_run (#147), called by cmd_run on Linux, Windows and macOS. Linux has two shutdown paths:

  • SIGINT. LinuxSensor::run returns on its own Ctrl-C handler. cmd_run then calls finish_run, which flushes the enrichment queue (with a 1 s bound) so that accepted findings reach the spool. Then it calls ShutdownPlan::execute:
    • every registered worker is signalled first;
    • each one is then joined against a single shared 6 s deadline (SHUTDOWN_BUDGET), which covers the upload loop's 3 s final drain plus margin;
    • a worker still running at the deadline is logged and detached;
    • whatever is still spooled is redelivered at the next start.
  • SIGTERM, SIGHUP, SIGQUIT (for example systemctl stop, which signals the whole cgroup). These are blocked on every thread and taken synchronously by the kill-loudness thread. It writes an alert line naming the sender pid and comm, flushes the enrichment queue for at most 200 ms, and calls exit(128 + signo). The final upload drain is skipped on purpose. This path must stay a bounded hard exit, so that a compromised or wedged process cannot use its own teardown to outlast a termination signal. SIGINT is not blocked, because the sensor needs it for its own clean stop.

SIGKILL cannot be caught or attributed by the agent itself. The eBPF sensor records SIGKILLs aimed at the agent from the kernel side, and the restarted agent reports the sender. Under the audit fallback this gap remains. The watchdog stops its child with Child::kill, which is SIGKILL on Unix.

On Windows and macOS, Ctrl-C sets the sensors' stop flags. The primary sensor returns and the supplementary threads are joined (Windows) or end with the process (macOS). cmd_run then calls the same finish_run as Linux, with a ShutdownPlan holding the two upload threads (and, on Windows, the health beacon): the enrichment queue is flushed (1 s bound) and the upload loops make their final drain within the 6 s SHUTDOWN_BUDGET. Before #147 these two platforms skipped both, which lost no spooled data (the spool redelivers) but skipped the final drain. Their cmd_run is built and tested only in CI, not in a local run: the shared function is covered on every platform by finish_run_signals_and_joins_every_registered_worker. The workers that still end with the process (the silence monitor, heartbeat, ipc-server) are not in the plan.

Degraded modes

ConditionBehavior
eBPF cannot load (no BTF, no privileges, verifier refusal)Audit fallback sensor. No BPF-LSM hook, no AVC reader (the audit sensor covers AVC itself).
NETLINK_AUDIT unavailable on an SELinux hostThe AVC reader retries with exponential backoff from 1 s to 60 s, pulsing its heartbeat while it waits. The source is reported down as linux-avc in the health beacon, not reported as a silent sensor. Without SELinux, the reader is simply not started.
journalctl missing (non-systemd init)Journal tail logged and skipped. A hard stream error ends the tail; it does not reconnect.
Upload setup failsWith offline_fallback: local detection only, plus an UPLOAD-DISABLED alert. Without it: run fails.
Control plane unreachableEvents and detections stay spooled until the byte cap. Heartbeat POST failures are logged at debug level.
IPC endpoint cannot bindLogged. cli cannot reach the agent, detection continues.
No ML model / Sigma / YARA contentThat engine is absent. Everything else runs.
Enrichment overloadSee Bounds and overload behavior.
ETW fails (Windows)The run continues on the Event Log, socket and minifilter sources, and a silence alert is raised.
A uprobes capture set changesThe uprobes sensor restarts with the new set. Capture has a gap while it reloads.

Poisoned locks

A std::sync::Mutex is poisoned when a thread panics while holding it. With lock().unwrap() every later lock() panics too, so one panic in a rule evaluation or an upload step would spread to every thread touching the same state, the capture thread included: the sensor kills itself. The agent takes the guard back instead, logs the recovery once with its call site, and clears the poison (sync.rs). The state a panicking thread left may be half updated; for in-memory detection state that costs at most a missed or repeated alert, which is cheaper than a dead sensor. This is a decision, not an accident: the alternative (let the panic spread and rely on the watchdog's hang detection to restart the agent) loses every event in flight and the state built so far.

  • LockExt::lock_recovering for Mutex, RwLockExt::{read,write}_recovering for RwLock, and CondvarExt::{wait_while,wait_timeout}_recovering for the two condvar waits the agent has.
  • apps/agent denies clippy::unwrap_used outside tests at the crate root, so a bare unwrap on a lock cannot come back; the same lint used to be set on the sink module alone.
  • Out of scope, and why: counting recoveries in the health beacon (a schema change, a separate issue); the unwraps on serde_json::to_string of a string in crates/policy (infallible); Mutex::get_mut in a Drop (no lock is taken); the container sensor's Docker cache (crates/sensors/linux/container, its own crate, no lint there yet); the YARA memory-scan gate, which cannot depend on the agent's helper and takes the guard back with PoisonError::into_inner in place.
  • Tested: each module that holds such a lock has a test that panics while holding it and checks the next caller still works (sync, alerts, captures, health, ioc, own_traffic, silence, upload); the commands/linux.rs sites share the silence monitor's lock and are covered by its test.

Configuration knobs that shape the lifecycle

KnobEffect
--config / SYNTHAEA_CONFIGConfig path discovery.
log.level / RUST_LOGTracing filter.
--alerts (default alerts.ndjson)Alert log. The heartbeat file, spool/, detection-spool/, quarantine/ and the journal cursor are all derived from this path.
--eventsOpt-in raw event log, redacted, unbounded. The packaged service never sets it.
--server, --standalone, --cert, --key, --ca-cert; server.*Upload target and TLS material.
server.offline_fallbackWhether a failure to set up upload is fatal.
storage.spool_max_mbByte cap of each spool.
storage.state_dirContent, model registry, release layout, key rotations.
--content-dirWhere Sigma, YARA, IOC and snapshot content are loaded from.
--enable-kill, --enable-quarantineLeave observe-only mode (Linux).
--enable-tls-capture, --enable-readline-capture, --enable-dns-captureUprobe captures (Linux). DNS also enables socket-level UDP DNS capture.
--alert-detailsFull alert message on stderr.
ipc.endpointUnix socket or named pipe served to cli.
[logs], [deception], [detection]Linux service-log sources, canary directories, local time and odd-hour calibration.
watchdog --restart-delay, --heartbeat-interval-secs, --heartbeat-miss-limitBackoff floor and hang detection.

How this is tested

  • Sink end to end: the tests module of sink/tests.rs drives a real DetectionSink in a temp directory. It covers rule routes, raw command lines reaching Sigma while outputs are redacted, the correlator ticker firing with no further events, quarantine on and off, canary holds and cooldowns, and response scenarios.
  • Enrichment queue: enrich_queue.rs tests overflow_sheds_and_counts_instead_of_blocking, a_shed_event_hands_its_gated_alert_back, flush_waits_for_already_enqueued_events_to_finish and flush_times_out_rather_than_waiting_forever_on_a_wedged_worker.
  • Shutdown: shutdown.rs tests the shared budget, signalling before the first join, wedged and panicked workers.
  • Upload: upload.rs tests target resolution, redeliver-until-ack, poison-segment skip, retry keys surviving a reopen, and the offline fallback.
  • Pipeline wiring: common.rs checks that the beacon and cli health read the same silence monitor.
  • Platform runners: windows.rs tests hold_after_primary and socket heartbeats. linux.rs tests the AVC worker's backoff and recovery, SELinux detection, and the journal-to-rules sudo join.
  • Watchdog: supervise.rs tests backoff, HeartbeatMonitor and restart counting.
  • Not unit-tested: the full SIGTERM path, because it exits the process. It is validated on a lab host.
  • Dependency rules: python3 tools/check-deps.py runs in CI.