Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

test(trust): exempt the sweep's two placement writers from the write gate with reasons

garrytanb6d6dbc4c8e7
diff --git a/test/trust-write-gate-drift.test.ts b/test/trust-write-gate-drift.test.ts
index bf82621ca0..c9c43740ef 100644
--- a/test/trust-write-gate-drift.test.ts
+++ b/test/trust-write-gate-drift.test.ts
@@ -33,6 +33,7 @@ const EXEMPT: Record<string, string> = {
'src/core/extract/receipt-writer.ts': 'gbrain-generated extraction receipt page (counts, cost, model id); no external text',
'src/core/facts/derivation-inputs.ts': 'derivation edge ledger; ids only',
'src/core/facts/forget.ts': 'withdrawal strike (lifecycle)',
+ 'src/core/facts/ontology-rekey.ts': 'drops duplicate copies of existing ontology rows before a re-key (placement)',
'src/core/facts/proposal-supersede.ts': 'checked supersede of existing rows (lifecycle)',
'src/core/facts/purge.ts': 'purge deletes rows',
'src/core/facts/relink-publish.ts': 'relinks existing facts to an entity (placement)',
@@ -53,6 +54,7 @@ const EXEMPT: Record<string, string> = {
'src/core/persistence/memory-mutations.ts': 'forget (lifecycle); remember is gated in memory-prepare.ts',
'src/core/repair/captured-facts.ts': 'owner repair of existing rows',
'src/core/repair/extractor-facts.ts': 'owner repair of existing rows',
+ 'src/core/repair/facts-rehome.ts': 'owner repair moving existing facts onto their entity page (placement)',
'src/core/repair/frontmatter.ts': 'owner repair of existing frontmatter',
'src/core/repair/ghost-pages.ts': 'retires an owner-approved ghost page (version + soft delete, lifecycle); no new text',
'src/core/repair/ontology-facts.ts': 'owner repair restoring existing ontology rows',