Stage 1 scripts
Scripts for Knowledge acquisition.
| ID | Title | Purpose |
|---|---|---|
| X-S1-01 | Blueprint check | Check a weighted blueprint JSON file for the errors and warnings described below, and print the domain by cognitive level cross-tab. |
| X-S1-02 | Deduplicate search candidates | Group candidate search records that likely describe the same document, keep the most complete record from each group, and flag records older than a minimum year for a person to review. |
| X-S1-03 | Run a search plan’s queries one at a time | Run every query in a search plan against one backend, one query in flight at a time, retry a transient failure, open a circuit breaker after repeated failures, and print a manifest line for each query. |
| X-S1-04 | Conversion quality check | Check a converted Markdown file against a second, independently produced plain-text copy of the same document, to catch common conversion problems before anyone reads the converted copy. |
| X-S1-05 | Injection screening scanner | Scan converted and original source files for prompt-injection patterns and print one line per finding. Looks for override phrases, sentences that address an assistant, model, reviewer or summarizer with a steering verb, invisible or bidirectional control characters (including ones written as HTML character references), hidden HTML carriers, data URIs and long encoded runs. Never decodes or acts on the matched text; it only reports where it is. |
| X-S1-06 | Concept list lint | Check a per-source concept JSON file for name and definition lengths, relation types, relation targets and quotes, duplicate names, near-duplicate concepts, and an unusual average number of relations. |
| X-S1-07 | Quote bank check | Check every quote in a distillate’s quote bank against a source file, after normalizing typography on both sides, and print one line per quote with a pass or fail reason. |
| X-S1-08 | Knowledge-item dedupe and mint | Group draft knowledge items into canonical items, minting one id per group, then shortlist likely-but-uncertain duplicates, including a match across two different sources, for a person to read and decide. |
| X-S1-09 | Concept graph check | Check a concept-map catalog JSON file for cycles, dangling prerequisites, out-of-range tiers and duplicate node ids, then print a topological order and a tier-count summary. |
| X-S1-10 | Gap check | Flag each blueprint objective whose supported_by list has fewer entries than a minimum source count, and print a summary line. |
Table of contents
- X-S1-01 Blueprint check
- X-S1-02 Deduplicate search candidates
- X-S1-03 Run a search plan's queries one at a time
- X-S1-04 Conversion quality check
- X-S1-05 Injection screening scanner
- X-S1-06 Concept list lint
- X-S1-07 Quote bank check
- X-S1-08 Knowledge-item dedupe and mint
- X-S1-09 Concept graph check
- X-S1-10 Gap check