HMP-01.research

canonical
No value
aliases
No value
tags
hermes/wayfinder hermes/memory wayfinder/research
description
GBrain 0.45.2.0에 대한 2차 출처 기반 역할·통합·운영 계약 연구. MIT/bun≥1.3.10, PGLite 단일-기록자, 한국어 FTS 제약, spend.posture 비용 게이트를 1차 소스 인용으로 확정.
status
No value
project
false
area
false
resource
true
title
HMP-01.research
created
2026-08-12T18:51:06+09:00
updated
2026-08-12T18:51:06+09:00

HMP-01.research — GBrain 역할·Hermes 통합·운영 계약

TL;DR

1. 역할(Role) — 무엇을 맡을 수 있나

2. Hermes 통합 경로

3. five memory verbs surface vs full tool surface (보안·스키마 트레이드오프)

4. 저장 단위 · provenance · 그래프 · 하이브리드 검색 · 종합 · 갭 분석 · forget/delete/export/backup

5. vault/llm-wiki를 소스로 — 중복 소유권, 링크 해석, 한국어 FTS 제약

6. 무-키 모드 vs 외부 전송·비용

7. cron / dream cycle / continuous ingest — 선택사항인가

8. 설치 제거 · 데이터 삭제 · 롤백 · 흔한 운영 실패

비교에 넘기는 사실 (Hindsight 비교용)

  1. 버전/라이선스/런타임: v0.45.2.0, MIT, Bun≥1.3.10 전용(TypeScript), npm 배포 아님(github:garrytan/gbrain만), trusted dep @electric-sql/pglite 0.4.3 [package.json; VERSION; INSTALL_FOR_AGENTS.md].
  2. 엔진: PGLite(기본, 임베디드 WASM Postgres — 단일 프로세스/단일-기록자, 잠금 기반) / Postgres+pgvector(Supabase 등, 스케일) / thin-client(로컬 엔진 없이 원격 MCP) 3토폴로지 [topologies.md; uninstall.ts].
  3. 시스템 오브 레코드 = 마크다운 저장소, DB = 파생 캐시 — 백업 없이 sync + extract all 재구축, 멀티머신 동기화는 git, 프라이버시는 fence 3-layer 스트립 [system-of-record.md].
  4. 다섯 동사 프로토콜(MEMORY_VERBS v1, 동결): recall/remember/entity/synthesize/forget — --surface verbs fail-closed vs full; Hermes 표준 stdio MCP로 연결 [MEMORY_VERBS_v1.md; INSTALL.md].
  5. 한국어 FTS 한계 실재: 기본 english 토크나이저, 브레인당 1언어; PGLite는 v0.32.7 CJK fallback 있음, Postgres는 pgroonga/ngram TODO(v0.42)로 미해결 — 한국어 키워드 검색 품질은 엔진 선택에 의존 [multi-language-fts.md; TODOS.md].
  6. 비용 자세: 무-키 모드로 완전 로컬·무전송 시작 가능; 임베딩·reranker·LLM은 키 추가 시에만 외부 전송. spend.posture(기본 gated) + sync.cost_gate_min_usd $0.50 + backfill 상한($25/24h/소스, $10/잡) + per-call --max-usd가 게이트. 검색 모드 LLM 비용 $40–1,000/월(10K 쿼리, Haiku–Opus) [spend-controls.md; INSTALL_FOR_AGENTS.md].
  7. 운영 최소면: cron/dream/autopilot 모두 선택사항; 최소 자동화는 gbrain sync(크론/--watch) + gbrain embed --stale. 제거는 gbrain bootstrap uninstall(영수증 키, 잠금 보호, config.json 생존) [cron-schedule.md; uninstall.ts].
  8. Hermes 연동 제약: memory.provider 플러그인 미지원(공식 경로는 MCP+스킬 스캐폴딩), turn capture 없음(autopilot/push-context가 근접), 듀얼 오브 레코드(vault/git vs gbrain DB) 계약 준수 필요 [INSTALL.md; system-of-record.md].

Sources

모든 출처는 2026-08-12에 /tmp/gbrain-hmp01-source(클론 스냅샷, HEAD=v0.45.2.0)에서 로컬 열람. 원본 리포: https://github.com/garrytan/gbrain.

  1. package.json / VERSION — 버전 0.45.2.0, MIT, engines.bun >=1.3.10, @electric-sql/pglite@0.4.3 trustedDependencies. (1차)
  2. llms.txt / llms-full.txt — 리포 문서 맵·개요(브레인/GStack mod, 26 스킬). (1차)
  3. docs/INSTALL.md — Hermes/OpenClaw 대상 설치, CLI/MCP 접속, 엔진 전환·migrate, 키 위치. (1차)
  4. INSTALL_FOR_AGENTS.md — 에이전트용 9단계 설치, npm-trap, search-mode 비용 매트릭스. (1차)
  5. docs/architecture/system-of-record.md — 마크다운 오브 레코드/DB 파생 캐시, 3층 프라이버시 스트립, DB-only 예외. (1차)
  6. docs/architecture/brains-and-sources.md — brain/source 이중 축, 소스 분리 라우팅. (1차)
  7. docs/architecture/topologies.md — 단일/원격 thin-client/분할 엔진 3토폴로지, OAuth HTTP MCP. (1차)
  8. docs/protocol/MEMORY_VERBS_v1.md — 동결 5동사 프로토콜, surface 모드, 신뢰 경계, 에러 계약, conformance. (1차)
  9. docs/guides/multi-language-fts.md — GBRAIN_FTS_LANGUAGE(기본 english), 브레인당 1언어, reindex-search-vector. (1차)
  10. docs/guides/source-attribution.md — [Source: …] 인용 계약, 출처 우선순위, 충돌 처리. (1차)
  11. docs/guides/cron-schedule.md — cron/드림/autopilot/jobs 스케줄 표와 선택성. (1차)
  12. docs/guides/live-sync.md — sync + embed --stale 체인, --watch, Supabase 커넥션 함정. (1차)
  13. docs/operations/spend-controls.md — spend.posture, 임베딩 비용 게이트 표, 무-키 모드. (1차)
  14. docs/integrations/embedding-providers.md — 16개 제공자 표(치수·가격·로컬 여부), 치수 불일치 수리 경로. (1차)
  15. docs/incidents/2026-05-20-lsd-cost-explosion.md — 53× 비용 폭발 사건과 후속 가드레일 구현. (1차)
  16. src/commands/export.ts — gbrain export --dir/--restore-only 내보내기 계약. (1차)
  17. src/core/facts/forget.ts — fence 재작성 forget(rebuild 생존) vs 레거시 DB만료 폴백. (1차)
  18. src/core/bootstrap/uninstall.ts — 영수증 키 uninstall, 경로 containment, 잠금 프로브, config.json 생존. (1차)
  19. docs/guides/bootstrap.md — 설치 영수증 위치, bootstrap uninstall 요약. (1차)
  20. TODOS.md — v0.42 Postgres CJK FTS(pgroonga/zhparser/ngram) TODO, v0.32.7 PGLite CJK fallback 기록(src/core/cjk.ts). (1차)
  21. README.md 개요 및 GitHub 리포 메타 — https://github.com/garrytan/gbrain (1차; llms.txt 경유). (2차 요약은 사용 안 함)

검증 한계 (evidence pending)