Pointer Hierarchy

loom-sprint-scaffoldsourcetypescript
Path: loom-sprint-scaffold/loom/src/memory/core/pointer-hierarchy.tsRelative: loom/src/memory/core/pointer-hierarchy.tsSubproject: loom-sprint-scaffoldCategory: other
Lines: 119Bytes: 3,691Imports: 4Exports: 3

Content Preview

  1. /**
  2. * H4.4 — Pointer Hierarchy.
  3. *
  4. * topic → summary → episodic_ref (R2 key).
  5. *
  6. * memoryExpand(record_id): resolve episodic_ref through BlobStore,
  7. * return the full text. This is the handler behind the memory_expand tool
  8. * exposed in execution envelopes.
  9. *
  10. * Exports:
  11. * - PointerHierarchy class with expand() method
  12. * - createMemoryExpandHandler(): factory for a ToolExecutor-compatible
  13. * function matching the shape used by src/execution/harness.ts
  14. */
  15. import { createLogger } fr