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
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
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
profile=to the hydrate path (CLI + API where applicable), defaulting to current behavior.agenttruncates/summarizes long content to a bounded context size;audit/fullinclude byte ranges, checksums, timestamps, source type.agent/compactreturn metadata only;auditreturns references;fullmay hydrate payload lazily.profileget the current payload shape.Acceptance Criteria
agentoutput is bounded (context size cap) and contains no file payloadsauditincludes full provenance + file references, no payloadsfullcan lazily hydrate file payloadsMigration
Additive query param/flag. No schema change. Default behavior preserved.
Testing
agentrespects the context cap;fullhydrates only on request.Depends on