Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
Record the repair's and fact writer's page-body readers and one-line size raise in the guard baselines
garrytan9beb29a513db
diff --git a/scripts/function-size-baseline.tsv b/scripts/function-size-baseline.tsvindex 83cbc86762..47869877d3 100644--- a/scripts/function-size-baseline.tsv+++ b/scripts/function-size-baseline.tsv@@ -38,6 +38,7 @@ src/core/cycle/synthesize-concepts.ts runPhaseSynthesizeConcepts 498 seed: W5 basrc/core/cycle/synthesize.ts runPhaseSynthesizeInner 1057 +1 #7805: the session-source routing parameter the discovery call site fills (logic in cycle/synthesize-source-routing.ts); +1 #5575 I2: output refs take their transcript taint before the provenance stamp (the stamp line stays the signal-guarded literal cycle-abort pins); seed: W5 baseline, refactor wave 1 (decomposition deferred to wave 2, plan D1); +3 #5854: publish_pending from postprocess, a pending summary publish deferred instead of failing the phase; +1 fix wave 11 #6160: oneshot_task_prefixes on the child job data; +6 GBRA-161 PR 4 (#7065): the synthesis generation activation after postprocess (logic in cycle/synthesize-generations.ts), its file holds and details.synthesis_generations; +1 GBRA-161 PR 5 (S-2): the summary revision read before the children are submitted; +1 GBRA-60: a managed child carries dream_output, so it writes each page verified and stamped (logic in cycle/synthesize-child-verify.ts)src/core/embed-stale.ts embedStaleForSource 302 PR 4 E round 2 (gbrain-evals#180): the page embedding lease gives up at the drain deadline with a busy lease (page skipped) and is renewed inside the install transaction; lease logic lives in core/page-embedding-lease.tssrc/core/facts/backstop.ts runPipelineBodyInner 358 seed: W5 baseline, refactor wave 1 (decomposition deferred to wave 2, plan D1)+src/core/facts/fence-write.ts writeFactsToFence 301 GST-2203 (#9034): the created facts section carries the rows a dropped section held (withHeldFactsFence), one line over the limit; TODO(GST-2203 follow-up): move the held-section step out of writeFactsToFencesrc/core/import-file.ts importFromContent 698 seed: W5 baseline, refactor wave 1 (decomposition deferred to wave 2, plan D1); +2 wave 8 lane D1 #5158: key-order fallback equality and legacy-hash ordering; lowered to 807 (#5988: screen and sanity config peeled to core/import-screen.ts); +1 #6007: the prepared apply reports its written page and seal (PreparedImportApplied) so put_page skips a re-read and a second seal; +1 #5333: embed-skip transition defeats the unchanged fast paths (the stale-marker clear stays inside the sanity block); +3 #6188: Tier 1 fence step in place before the hidden-row merge (logic in fence-repair/import-step.ts); -146 #5575: content-sanity/write-gate disposition moved to import-screen.ts settleContentDisposition; +4 TODO: large-pages A6/T33: a page over PAGE_INLINE_MAX_BYTES commits with NULL vectors and embeds through the metered stale sweep; +1 #6722: an embed_skip page is chunked and never embedded (noEmbed folds the marker); +16 Wave B lane 1d (TODO wave-b PR 1): a body above the inline threshold takes the segmented stage and generation flip at the storage step (logic in persistence/segmented-apply.ts); +3 Wave B review: reuseSegments option (a rename re-preparation reuses the staged segmented body) and the remote fence merge over fenceBody; +2 Wave B gem A: a coordinated demotion versions the segmented page before demoting it; +2 #8523 B3a: the screened body runs as the importScreened closure, entered in an embedded engine's scope after the engine-free screen and the source check; +1 GBRA-217 #7798 (memory train #8481): the history option (a sync import's Git reason and history-gap marker) on the opts type; +3 GST-2112: the expectedBaseRevision option (opts type) and its base check, so a webhook capture writes only over the revision its readers check readsrc/core/import-file.ts importFromContent>importScreened 570 #8523 B3a: importFromContent's body after the engine-free screen and the source check, run in an embedded engine's scope (seed: W5 baseline, refactor wave 1; decomposition deferred to wave 2, plan D1); +1 GST-2112: the expectedBaseRevision base checksrc/core/minions/handlers/subagent-oneshot.ts runSubagentOneshot 378 seed: W5 baseline, refactor wave 1 (decomposition deferred to wave 2, plan D1); +1 fix wave 9 lane B #4921: the oneshot sub-budget is passed as the call timeoutMs so the 300 s gateway backstop cannot cut itdiff --git a/scripts/page-body-readers-baseline.tsv b/scripts/page-body-readers-baseline.tsvindex d8efd29ede..f8143f6899 100644--- a/scripts/page-body-readers-baseline.tsv+++ b/scripts/page-body-readers-baseline.tsv@@ -232,6 +232,7 @@ src/core/facts/fence-fact-append.ts prepareFenceFactAppend call:serializePageToMsrc/core/facts/fence-fact-append.ts prepareFenceFactAppend field SEGW assertInlineBody before the fence writesrc/core/facts/fence-fact-append.ts prepareFenceRowRetirement field SEGW the body materializedPage read back within PAGE_MAX_BYTES; a segmented page over the ceiling refuses (segmentedOverCeiling) firstsrc/core/facts/fence-fact-append.ts prepareFenceRowRetirement call:serializePageToMarkdown SEGW materializedPage within PAGE_MAX_BYTES; a segmented page over the ceiling refuses (segmentedOverCeiling) before rendering, as prepareFenceFactAppend's remember write does+src/core/facts/fence-write.ts writeFactsToFence field NONE reads compiled_truth back from the object withHeldFactsFence returns for the file text already in hand; a segmented page returned database-only (page_body_segmented) before the file was comparedsrc/core/facts/file-body-guard.ts fileBodyMatchesStored field SEGW a segmented page reads NULL inline columns, never matches, and the caller holds it (nothing written)src/core/facts/file-body-guard.ts mirroredBody field NONE the parsed checkout file body, not a page rowsrc/core/facts/file-body-guard.ts readStoredBody sql SEGW reads the inline columns only; a segmented page reads NULL and every caller holds it@@ -266,7 +267,9 @@ src/core/facts/retire.ts retireFactsFromPage field INLINE a segmented page is sksrc/core/facts/subject-infer-write.ts linkAllowed field STREAMsrc/core/facts/unfenced-facts.ts auditUnadoptableFacts call:serializePageToMarkdown SEGWsrc/core/facts/unfenced-facts.ts fenceDatabaseOnlyPage call:serializePageToMarkdown SEGW+src/core/facts/unfenced-facts.ts planFence field NONE reads compiled_truth from the object withHeldFactsFence returns for the body string its caller passed; no stored page body is read heresrc/core/facts/unfenced-facts.ts planManagedPage call:serializePageToMarkdown SEGW+src/core/facts/unfenced-facts.ts withHeldFactsFence field NONE the body object its caller passes (file text or an inline snapshot); no stored page body is read heresrc/core/facts/withdrawal-discovery.ts discoverWithdrawalTargets field STREAM inline rows onlysrc/core/facts/withdrawal-discovery.ts discoverWithdrawalTargets sql STREAM page scan reads inline bodies (NULL never matches); segmented pages are found by the chunk scan and their mirror writers refuse or skip (per-segment discovery, PR 2)src/core/fence-repair/census.ts judgePages field STREAM@@ -566,6 +569,11 @@ src/core/repair/fences.ts afterBytes field STREAMsrc/core/repair/fences.ts fencesRepair field STREAMsrc/core/repair/frontmatter.ts analyzeFile field LEADsrc/core/repair/frontmatter.ts pagesByOrigin sql LEAD+src/core/repair/lost-fence-rows.ts lostIn field NONE walks the history scanLostFenceRows built (inline page_versions bodies and a materialized snapshot); no stored page body is read here+src/core/repair/lost-fence-rows.ts plannedPage call:serializePageToMarkdown SEGW materializedSnapshot within the single-string ceiling; over it counts as fence_unreadable (segmentedOverCeiling, checked before the read)+src/core/repair/lost-fence-rows.ts plannedPage field SEGW materializedSnapshot within the single-string ceiling; over it counts as fence_unreadable (segmentedOverCeiling, checked before the read)+src/core/repair/lost-fence-rows.ts scanLostFenceRows field SEGW materializedSnapshot within the single-string ceiling; over it counts as fence_unreadable (segmentedOverCeiling, checked before the read)+src/core/repair/lost-fence-rows.ts scanLostFenceRows sql INLINE page_versions rows that hold a body copy (compiled_truth IS NOT NULL); a segmented version has none and is not readsrc/core/repair/orphan-children.ts PROBE_SQL sql METAsrc/core/repair/overwritten-edits.ts previewEdit call:serializePageToMarkdown SEGW only high-confidence edits (live page and version both inline at scan time) are previewed; a page whose revision moved since the scan is skipped before it is serializedsrc/core/repair/overwritten-edits.ts versionMarkdown call:serializePageToMarkdown SEGW inline versions only: a segmented version has no lost_digest and is never previewed; the restore goes through revert_version, which refuses a segmented page or version