Prior Catches (institutional defect memory)
lens_catches_relevantReads defect bank for prior named defects matching artifact type, most-recurrent first. Flags recurring traps as [PROMOTE] so deterministic checks target known failure patterns before validating.
Instructions
Read the defect bank BEFORE validating: prior named defects for an artifact type, most-recurrent patterns first. This is the institutional memory that makes the gate improve over time — the recurring traps tell you where this class of artifact has failed before. Any pattern at threshold is marked [PROMOTE], meaning it recurs often enough to deserve a deterministic check. Runs the local lens-kit CLI, no LLM call. Omit artifact_type and pass all=true when the type has no history yet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | Surface every catch regardless of artifact type | |
| cwd | No | Working directory to run in. catches.jsonl is read from and written to here. Defaults to the server's cwd. | |
| domain | No | Also filter by domain, e.g. marketing, finance, agency | |
| format | No | block = paste-ready surface (default); json = raw records | |
| threshold | No | Recurrence threshold for [PROMOTE] lines (default 3) | |
| artifact_type | No | Artifact type to filter by, e.g. landing-copy, research-brief, content-pack |