mirror of
https://github.com/garrytan/gbrain.git
synced 2026-07-27 22:15:33 +00:00
getHealth's entity_pages CTE and the top-linked-pages query only match the legacy 'person' and 'company' types, so brains using the gbrain-base-v2 pack's 'entity' type report 0% entity link/timeline coverage in `gbrain health` even when doctor's graph_coverage shows real coverage. Add 'entity' to both queries in both engines (PGLite + Postgres, in lockstep per the engine-parity rule) and extend the getHealth graph-metrics test with an entity-typed page. Validation: bun test test/pglite-engine.test.ts --test-name-pattern 'getHealth graph metrics' (5 pass).