operations capa

operations-crash-detector

Detects OOM-kill cascades that reach session-critical processes (ssh, gnome-keyring, session.slice) -- the mechanism behind 'my computer keeps logging out my account'. A Collector<OomKillEvent> over `journalctl -k`, built on operations-diagnostic-engine rather than a bespoke parser.

Detects OOM-kill cascades that reach session-critical processes (ssh, gnome-keyring, session.slice) -- the mechanism behind 'my computer keeps logging out my account'. A Collector<OomKillEvent> over `journalctl -k`, built on operations-diagnostic-engine rather than a bespoke parser.

Tieroperations
Roleunclassified (baselined)
Pathcrates/operations/crash-detector
Edition2021
Targetsoperations-crash-detector, operations_crash_detector
Public items5 across 0 modules
Tests7

What it is for

Parses journalctl -k output for OOM-kill events and flags the ones that reached session-critical processes -- the mechanism behind "my computer keeps logging out my account when pushing and CI mutating" (root-caused 2026-08-10: unconfined cargo-mutants + concurrent dev-server memory use exhausted RAM+swap; the kernel OOM killer then walked into session.slice and killed ssh / gnome-keyring-daemon).

Parsing lives here as pure, fixture-tested logic (Gate 2.1); the Collector<OomKillEvent> impl in JournalctlCollector is the only part that touches a live system, per operations-diagnostic-engine's seam (Gate 0.5: reuse the existing Collector/CollectOutcome contract instead of a bespoke report type).

Capabilities

JournalctlCollector

Parses journalctl -k output for OOM-kill events and flags the ones that

Item
pub struct JournalctlCollector
JournalctlCollector :: fn name(& self) -> & str
JournalctlCollector :: fn collect(& self) -> CollectOutcome <OomKillEvent>

OomKillEvent

Parses journalctl -k output for OOM-kill events and flags the ones that

Item
pub struct OomKillEvent
fn parse_oom_events(log : & str) -> Vec <OomKillEvent>

How to use it

No examples/ target and no doctest in this crate's rustdoc. The tests listed under Verification are the closest executable usage.

Module structure

No public modules: the crate root is its whole surface.

Public surface

`crate root`

ItemWhat it is
pub struct OomKillEvent
fn parse_oom_events(log : & str) -> Vec <OomKillEvent>Parses journalctl -k text into OOM-kill events
pub struct JournalctlCollectorCollects OOM-kill evidence from the live kernel log via journalctl -k --since <since>
JournalctlCollector :: fn name(& self) -> & str
JournalctlCollector :: fn collect(& self) -> CollectOutcome <OomKillEvent>

No pub use re-exports: every item above is declared in this crate.

Boundary

Depends on no other workspace tier.

Shares tier operations with 40 other crates: operations-approval-workflow, operations-assessments, operations-block-imaging, operations-boot-media, operations-browser-agent-worker, operations-camera-discovery, operations-camera-liveview, operations-camera-registry, … (40 total).

_What this crate deliberately does NOT own is a judgment. No committed registry records one for it, so none is stated here._

Where it sits

Tier (ontology)operations
Architectural role (taxonomy)unclassified (baselined)
Locationcrates/operations/crash-detector
Vocabulary in force (lexicon)current

Dependencies

Runtime, in this workspace.

CrateTierOptionalOnly on
`operations-diagnostic-engine`operationsnoalways

Runtime, from outside the workspace.

CrateRequirementFeaturesOptionalOnly on
anyhow^1noalways

Development. None.

Build. None.

Depended on by. Nothing in this workspace.

Signal flow — what reaches this crate, and what it reaches.

flowchart LR
  SELF["operations-crash-detector"]
  SELF -->|runtime| n_operations_diagnostic_engine["operations-diagnostic-engine"]
  classDef self fill:#1f883d,stroke:#1f883d,color:#fff;
  class SELF self;

Feature flags

No Cargo features are defined: every capability is unconditional, so no consumer can receive a half-wired crate.

Targets

KindNameSource
binoperations-crash-detector`src/main.rs`
liboperations_crash_detector`src/lib.rs`

Error model

No public error type was detected: no public item declares a type named *Error, and no public signature returns one.

Operational characteristics

PropertyEvidence
async public surfacenone detected
async runtimenone detected
database accessnone detected
network I/Onone detected
unsafe codenone detected
environment variablesnone detected

No unsafe block, unsafe fn, unsafe impl or unsafe trait was found by the parser anywhere in this crate's source.

Configuration

No environment variable is read with a literal name anywhere in this crate. A variable whose key is computed at run time cannot be listed here, and is not claimed to be absent.

No workspace crate depends on this one.

Verification

KindCount
Unit tests7
Integration tests0
Examples0
Doctests0

Evidence by module. How often each public module is named by something executable.

ModuleTestsExamplesConsumers
crate root300

What the tests establish, by name:

Documentation coverage

MeasureDocumentedTotal
Public items with rustdoc25
Public modules with a //! block00
pie showData
    title Public items with rustdoc
    "Documented" : 2
    "No rustdoc detected" : 3

Metrics

MetricValue
Rust source files2
Source lines340
Code lines269
Public API items5
Public modules0
Tests7
Examples0
Cargo features0
Direct runtime dependencies2
Workspace reverse dependencies0
pie showData
    title Public API by kind
    "function" : 1
    "method" : 2
    "struct" : 2
pie showData
    title Rust source composition
    "Code" : 269
    "Blank or comment" : 71

Generation

Rendered by tools-corpus corpus readme from repository evidence alone, renderer schema 2, lexicon current. No model, network service or database was consulted. Regenerate with tools-corpus corpus readme --write; verify with --check.

Todas las operations · Manual