Garry Tan
|
446a4dce80
|
feat(brain): gstack-core@1.0.0 schema pack (T1 / Phase 0)
Defines 8 typed page kinds for the brain entity model:
gstack/user-profile, gstack/product, gstack/goal,
gstack/developer-persona, gstack/brand, gstack/competitive-intel,
gstack/skill-run, gstack/take
Each declares frontmatter shape (typed fields with required/optional flags),
retention policy (immutable / archive-after-90d / never-archive), and
emits_links graph for mcp__gbrain__schema_graph rendering.
getSchemaPackMutationPayload() returns JSON in the shape accepted by
mcp__gbrain__schema_apply_mutations. Idempotent registration: gbrain
skips when pack+version already installed.
test/gstack-schema-pack.test.ts: 16 invariants on pack shape, retention
policies, link verb consistency, JSON serializability.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-26 23:00:48 -07:00 |