CYA-WP-0005 T01 done (ralph iter 1): add Agentic Memory Research & Profile Directions (2026-05) section to MemoryVision.md

- New section after Success Criteria, before 0002 contract.
- References the persisted research doc (history/2026-05-28-CYA-Agentic-Memory-Research-Variations.md).
- Short outline of Profiles 1 (Reflexion verbal), 2 (hierarchical synthesis), 3 (procedural/meta-policy) + how they build on Profile 0 + 0003 retrospect/activation.
- Forward links to T02 (Profile 0 baseline) and T03 (full defs + matrix) in the workplan.
- Addresses several Open Questions from the vision.
- T01 task block updated to done in workplan.

Per ralph-workplan for CYA-WP-0005. Next: T02 formalize Profile 0.
This commit is contained in:
2026-05-27 18:57:11 +02:00
parent c1aee5087e
commit 2bcbe50607
2 changed files with 29 additions and 2 deletions

View File

@@ -108,6 +108,31 @@ This is the correct starting point. Real integration will be done as a subsequen
---
## Agentic Memory Research & Profile Directions (2026-05)
**Date:** 2026-05-28 (ralph start for CYA-WP-0005)
**Related:** `history/2026-05-28-CYA-Agentic-Memory-Research-Variations.md`, CYA-WP-0003 (activation + retrospection), CYA-WP-0005
Building directly on the 0002 integration contract (below), the 0003 contextual activation + `cya retrospect` continuous optimization loop, and the post-0004 gap analysis (memory moved from large gap to small-medium), deep research into agentic/self-improving memory architectures was performed and persisted.
The research synthesizes three canonical patterns for closed self-improving loops in LLM agents (Trial → Evaluation/Feedback → Reflection/Synthesis → Memory Update → Improved future behavior):
- **Profile 1 — Reflexion-style verbal self-improvement** (lightweight, high-explainability): Store natural-language self-reflections/lessons (leveraging existing `KIND_RETROSPECTION` + `remember_retrospection_outcome` + `cya retrospect`). Preferentially activate them via kinds + activation_context in future turns. Plain-English "verbal reinforcement" that users can inspect and edit.
- **Profile 2 — Generative-Agents-style hierarchical synthesis**: Treat assistance outcomes, retrospections, and explicit remembers as an episodic stream. Periodic (user-triggered or planner-driven) LLM synthesis produces higher-order abstractions (project conventions, workflow patterns, "in this scope we always...") with citations, stored in stabilized phases. Multi-factor retrieval (recency + importance + relevance + profile/scope match) + the existing activation boost.
- **Profile 3 — Procedural / meta-policy evolution** (highest leverage, highest guardrail needs): First-class evolvable "how I should behave" rules and procedures as a distinct tier. Meta-reflection (after retrospection or explicit "improve my rules") proposes patches to the procedural layer. Strong dry-run + user veto + safety impact analysis required; changes can only tighten (or maintain) the rule-based risk posture by default.
Detailed definitions, cya-specific implementation mappings (ports, kinds, orchestrator wiring, safety invariants), capability matrix, and phase-memory interface requirements live in the persisted research document and are executed via CYA-WP-0005 tasks T02T05.
This directly addresses several Open Questions above (profile authoring, granularity of project memory, safety signals as first-class memory, observability of memory influence, participation in planning/compaction) while preserving all cya invariants (user control, full provenance/explainability, rule-based safety that memory can only strengthen).
**Next in this workplan:** T02 formalizes the current post-0003 implementation as explicit **Profile 0** baseline (the stable foundation everything else builds on). T03 adds the full profile definitions + matrix. T04 delivers the concrete optimization suggestions for the phase-memory sister repo.
See also the full research artifact and CYA-WP-0005 for acceptance criteria and cross-links.
---
## cya ↔ phase-memory Integration Contract (CYA-WP-0002 T01)
**Date:** 2026-05-26 (ralph iter 1)

View File

@@ -4,7 +4,7 @@ type: workplan
title: "Agentic Memory Profiles (03) and phase-memory Interface Optimization"
domain: capabilities
repo: can-you-assist
status: proposed
status: active
owner: grok
topic_slug: foerster-capabilities
created: "2026-05-28"
@@ -52,9 +52,11 @@ This workplan turns the research into an executable, reviewable plan while keepi
```task
id: CYA-WP-0005-T01
status: todo
status: done
priority: high
state_hub_task_id: "69f8a82d-4e3d-4590-bdf9-d59a5fff00c6"
started: "2026-05-28 ralph iter 1"
completed: "2026-05-28 ralph iter 1"
```
**Description**: Ensure the deep agentic memory research is first-class and referenceable. Create (or confirm) the persisted research document and add a short "Agentic Memory Research" section to MemoryVision.md that introduces the three profile directions with links.