Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
Wave B lane 1d: streamed-import header matches its holds (NUL, deleted page)
garrytana8379df4d47f
diff --git a/src/core/page-body/streamed-import.ts b/src/core/page-body/streamed-import.tsindex 89aa8f0461..73d9b4766e 100644--- a/src/core/page-body/streamed-import.ts+++ b/src/core/page-body/streamed-import.ts@@ -17,7 +17,7 @@* and the path-authoritative slug; gate-owned marker strip (a quarantine* override binds the whole body, so it is dropped: fail closed); content* sanity (junk patterns read a 2 KB head, size from the stored byte count);- * NUL strip (per segment); type preservation and subtype; provenance,+ * type preservation and subtype; provenance,* effective date, tags, frontmatter aliases; the content hash (resumed per* segment); the no-op skip; identity dedup by hash (an external `id` holds);* code-reference edges (per line, skipped when the body has protected@@ -28,7 +28,8 @@* fences (fence normalization, withdrawal and purge preservation parse the* whole body); derived entity aliases (a linkable page type); NUL bytes (the* size check needs the stored byte count before the hash); invalid UTF-8- * (the string path decodes it lossily); a file that changes between passes.+ * (the string path decodes it lossily); a deleted existing page (a restore+ * rewrites it through the inline writer); a file that changes between passes.*/import { open, type FileHandle } from 'node:fs/promises';import { constants } from 'node:fs';