Skip to main content

Module screening

Module screening 

Source
Expand description

Write-time screening for durable memory (ENG-81).

Every candidate memory passes through screen before it may reach the store. Screening is deliberately conservative and dependency-free (no regex crate in this workspace member): it rejects anything that looks like a secret/credential, anything empty or too short to be a durable fact, and a short list of volatile/ephemeral junk phrases that pollute recall without adding information.

Enums§

RejectReason
Why a candidate memory was rejected at write time.
ScreeningVerdict

Constants§

MIN_DURABLE_LEN
Minimum trimmed length (bytes) for a candidate to be considered a durable fact rather than a fragment. Deliberately short so legitimate terse facts (“Adrian uses pnpm.”) still pass.

Functions§

screen
Screen a candidate memory’s raw content. Pure function: no I/O, no store access, so it can run identically on every write path (CLI, daemon, mobile FFI) before a record is ever persisted.