scar net installed 2026-10-19T03:21:47Z
Browse files14 unmodified lines15161718192023 unmodified lines44454647484914 unmodified linesSECRET_PATTERNS = [r'[A-Za-z0-9]{30,}', r'\bBearer\s+[A-Za-z0-9]', r'\bsk-[A-Za-z0-9]']ESTIMATE_PATTERNS = [r'~\d', r'(?<![\d:])\d{1,2}:\d{1,2}x'] # second pattern: estimate-shape only; lookbehind added 2026-10-18 (fires on real timestamps followed by 'x', e.g. "Ship-1029 landed at 02:32" + "xZ")# Admitted non-ASCII: typographic + Latin-1 letters + arrows/delta/math symbols.ADMITTED_NONASCII = (23 unmodified linesm = re.search(q, stripped) # estimates: STRIPPED only (firing #170: quoted specimens exempt)if m:hits.append("EST:" + m.group(0))# Unpaired-quote detector (erosion pass 140, 2026-10-18): the strip swallows text between# quote boundaries; an ODD number of apostrophes means the strip ate prose up to a boundary# that does not exist — the estimate net goes blind to the swallowed region.14 unmodified lines1516171819202122232423 unmodified lines4849505152535455565714 unmodified linesSECRET_PATTERNS = [r'[A-Za-z0-9]{30,}', r'\bBearer\s+[A-Za-z0-9]', r'\bsk-[A-Za-z0-9]']ESTIMATE_PATTERNS = [r'~\d', r'(?<![\d:])\d{1,2}:\d{1,2}x'] # second pattern: estimate-shape only; lookbehind added 2026-10-18 (fires on real timestamps followed by 'x', e.g. "Ship-1029 landed at 02:32" + "xZ")# Prose-scar net (erosion pass 182, 2026-10-19): composition scars pass every numeric organ.# Self-interruptions ('... correction', '… correction —') and placeholder stamps ('NN:MMxZ' caught by EST;# 'TBD', 'XXX', 'TODO') are composition scars, not artifacts. A shipped row must read as the reader sees it.SCAR_PATTERNS = [r'(\.\.\.|…)\s*correction', r'\bTBD\b', r'\bTODO\b', r'\bXXX\b']# Admitted non-ASCII: typographic + Latin-1 letters + arrows/delta/math symbols.ADMITTED_NONASCII = (23 unmodified linesm = re.search(q, stripped) # estimates: STRIPPED only (firing #170: quoted specimens exempt)if m:hits.append("EST:" + m.group(0))for q in SCAR_PATTERNS: # prose scars (pass 182): composition scars, STRIPPED surfacem = re.search(q, stripped)if m:hits.append("SCAR:" + m.group(0)[:24])# Unpaired-quote detector (erosion pass 140, 2026-10-18): the strip swallows text between# quote boundaries; an ODD number of apostrophes means the strip ate prose up to a boundary# that does not exist — the estimate net goes blind to the swallowed region.
scripts/scan_organ.py+8