fix: tolerate malformed wiki frontmatter #5
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/resilient-frontmatter-health"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
/api/healthasindexErrors/api/healthreturning 200 when the wiki root is readable and at least valid pages can be indexed/healthalias because local production verification showed it could return misleading stale output; Docker and docs use/api/healthRoot cause
The container healthcheck reached
/api/healthsuccessfully. The failure was fromgray-matter/js-yamlparsing llm-wiki frontmatter with an unquoted colon, for example:That is invalid YAML unless quoted. Previously one malformed file made
loadWikiSnapshot()throw, causing health to return 503.Testing
/opt/hermes-runtime/wiki/brain:/api/healthreturned 200,pages: 306,indexErrors: 39/api/healthreturned 200,pages: 1,indexErrors: 1Note: Docker bind mounts in this sandbox surfaced the mounted test directories as empty, so actual content-in-container verification used
docker cpinto/tmp/wiki. The app-level local production server was verified against the actual llm-wiki data directly.