Skip to content

Hydration Profiles (agent/compact/audit/full) #40

Description

@valiantone

Summary

Add Hydration Profiles so different consumers get appropriately sized memory views: agent (small context), compact (minimal metadata), audit (full provenance), full (complete reconstruction).

Scope

  • Add profile= to the hydrate path (CLI + API where applicable), defaulting to current behavior.
  • Define per-profile inclusion rules:
    Profile Context Metadata Provenance Files
    agent small/summarized core only none none
    compact minimal minimal none none
    audit full full full refs only
    full complete full full refs + payload (lazy)
  • agent truncates/summarizes long content to a bounded context size; audit/full include byte ranges, checksums, timestamps, source type.
  • File-backed memories: agent/compact return metadata only; audit returns references; full may hydrate payload lazily.
  • Backwards compatible: callers with no profile get the current payload shape.

Acceptance Criteria

  • All four profiles produce distinct, documented payloads
  • agent output is bounded (context size cap) and contains no file payloads
  • audit includes full provenance + file references, no payloads
  • full can lazily hydrate file payloads
  • Default (no profile) matches v0.1 output shape
  • Profile selection has no measurable cost when payload is not requested

Migration

Additive query param/flag. No schema change. Default behavior preserved.

Testing

  • Unit: each profile returns the expected field set for inline + file-backed memories.
  • Unit: agent respects the context cap; full hydrates only on request.
  • Unit: default profile == current payload shape (golden test).

Depends on

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:hydrationHydration profiles and zero-copy/reference hydrationv0.2.0HotMem v0.2.0: file-native memory sidecar

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions