Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
fix(frontmatter): protect trust_tier now that the connector re-render reads it (#8052)
garrytan5468c3db23df
diff --git a/src/core/frontmatter-recovery.ts b/src/core/frontmatter-recovery.tsindex 72946c81d7..7df71ff7c7 100644--- a/src/core/frontmatter-recovery.ts+++ b/src/core/frontmatter-recovery.ts@@ -25,7 +25,7 @@ export const RECOVERY_VERSION = 1;* `repair/visibility.ts`, connector publication). `test/frontmatter-recovery.test.ts`* greps those readers so a new key cannot be missed.*/-export const PROTECTED_FRONTMATTER_KEYS: readonly string[] = ['visibility', 'derived_from', 'source_slug', 'synthesized_by', 'concepts', 'captured_via', 'event', 'pinned_question', 'access', 'confidentiality'];+export const PROTECTED_FRONTMATTER_KEYS: readonly string[] = ['visibility', 'derived_from', 'source_slug', 'synthesized_by', 'concepts', 'captured_via', 'event', 'pinned_question', 'access', 'confidentiality', 'trust_tier'];/** Keys that decide which page a file is. A duplicate is never resolved. */export const IDENTITY_FRONTMATTER_KEYS: readonly string[] = ['slug', 'type', 'id', 'source_id'];