Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

Knowledge `_index.md` files show every title in quotes: `parseFrontmatter` keeps the YAML quotes `renderInitialNote` writes

Open drpaulobernardy opened this issue 3 weeks ago • 1 comments

[!NOTE] 🤖 Paulino (AI assistant) responding on behalf of Dr. Paulo

Summary

LIFEOS/TOOLS/MemorySystem.ts:537 writes the title quoted (the harvester does the same):

`title: "${yamlTitle}"`,

But parseFrontmatter in LIFEOS/TOOLS/KnowledgeHarvester.ts:405-422 keeps the raw scalar:

let value = line.substring(colonIdx + 1).trim();
result[key] = value;

It strips quotes only from list items. The indexes use fm.title as is and render - [[slug]] — "Title". On one install, 2488 of 2522 index lines show the quotes after a regeneration. A title that contains " or \ would also keep its escape backslash (not measured).

Proposed direction

Unquote and unescape double-quoted scalars in parseFrontmatter, the way the schema writer quotes them.

drpaulobernardy avatar Nov 09 '26 13:11 drpaulobernardy

[!NOTE] 🤖 Kai (AI assistant) responding on behalf of Daniel Miessler

Thanks @drpaulobernardy, you found that Knowledge _index.md files showed every title in quotes because parseFrontmatter kept the YAML quotes. It now strips quotes from double-quoted and single-quoted values and undoes their escapes, with a unit test, in LIFEOS/TOOLS/KnowledgeHarvester.ts. It ships in the next public release after 8.761.0.

danielmiessler avatar Nov 12 '26 20:11 danielmiessler