Skip to main content

Redaction

@stateless/redactionv2026.06.28.3· 28d agoMODELS
01README

A deterministic published-surface hygiene gate — a CLASSIFIER, not an LLM eval. It answers "does this artifact contain a forbidden identifier?" with rule-based recognizers (private-range IPv4 full-quad, *.ts.net) plus a fleet-aware DENYLIST (owned hostnames / FQDNs / people, matched case-sensitively on word boundaries) and any custom recognizers an instance adds. The flagship scan is a HARD GATE: it walks files/dirs and/or inline text and THROWS on a hit by default, so it can back a publish-workflow step, a git pre-push hook, or a Claude Code PreToolUse hook; pass failOnHit=false for an advisory report. redact remaps detected identifiers to the swamp-blessed documentation placeholders (RFC 5737 IPs, RFC 2606 example.com). The denylist is the private part — an instance typically derives it via a CEL view over @stateless/inventory, so it grows with the fleet model and is never hand-maintained; the generic recognizers carry no fleet knowledge, so a community checkout with no denylist still runs them. This is the enforced version of the published-surface-hygiene check swamp-club Lab 508 shipped only as advisory.

02Models1
@stateless/redactionv2026.06.28.3redaction.ts
fn scan()
Deterministically scan files/dirs and/or inline text for forbidden
fn redact()
Return `text` with every recognized identifier remapped to its
fn deriveDenylist()
Build the fleet-aware denylist FROM existing data: take source-NEUTRAL

Resources

scan-result(infinite)— The result of a `scan` (clean + hits). Re-running records a new
redaction-result(infinite)— The redacted text produced by `redact`.
denylist(infinite)— Denylist candidates derived by `deriveDenylist` from normalised source
03Previous Versions2
2026.06.28.2

Modified 1 models

2026.06.28.1
04Stats
A
100 / 100
Downloads
0
Archive size
13.0 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License declared1/1earned
  • Verified public repository2/2earned
05Platforms
06Labels