Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
docs(resolve-path): metafile_pages in the skip guide and the off-mode why
garrytan3ef61b150c5f
diff --git a/docs/guides/resolve-paths.md b/docs/guides/resolve-paths.mdindex 4a314dfeac..e056f65dee 100644--- a/docs/guides/resolve-paths.md+++ b/docs/guides/resolve-paths.md@@ -10,7 +10,8 @@ ask gbrain what it did with each file, not re-implement gbrain's rules. A copieddelete looks failed because the twin's page is live. Checked by origin (the page that records the file as its`source_path`), it is a clean delete.- **Skipped scaffolding.** Sync skips folder scaffolding names (`index.md`, `README.md`, `schema.md`, `log.md`, `RESOLVER.md`; root- `AGENTS.md` and `CLAUDE.md`). Waiting for a page there waits forever.+ `AGENTS.md` and `CLAUDE.md`) unless the file sits below the source root and its frontmatter has `type:` or `title:`+ (`sync.metafile_pages`, default `typed`; `off` skips them all). Waiting for a page on a skipped file waits forever.## The commanddiff --git a/src/core/persistence/resolve-paths.ts b/src/core/persistence/resolve-paths.tsindex e8506c13d1..216e199493 100644--- a/src/core/persistence/resolve-paths.ts+++ b/src/core/persistence/resolve-paths.ts@@ -181,7 +181,7 @@ export async function resolveSourcePaths(engine: BrainEngine, sourceId: string,if (skippedBy) {const typed = skippedBy === 'metafile' && content !== undefined ? frontmatter.type != null || frontmatter.title != null : undefined;push('skipped', live ? liveSearch : false, skippedBy === 'metafile'- ? `Sync never imports ${p.rootPath.split('/').pop()} files: they are folder scaffolding (SYNC_SKIP_FILES), so this path has no page by design${typed ? ', even though its frontmatter has a type: or title:' : ''}.`+ ? `Sync never imports ${p.rootPath.split('/').pop()} files: they are folder scaffolding (SYNC_SKIP_FILES), so this path has no page by design${typed ? ', even though its frontmatter has a type: or title: (sync.metafile_pages is off; gbrain config set sync.metafile_pages typed imports it)' : ''}.`: `Sync does not import this path (${skippedBy}); it has no page by design.`, null, { skipped: { reason: skippedBy, ...(typed !== undefined ? { typed_frontmatter: typed } : {}) } });continue;}