mirror of
https://gitee.com/mateos/mateclaw.git
synced 2026-09-13 11:13:43 +08:00
Wire memory-facing events (turn-started, turn-completed, session-ended, memory-written) through a single MemoryLifecycleMediator so MemoryProvider implementations can hook into the agent conversational flow without spreading side-effects across the runtime. Ten atomic steps shipped under feat/dream-v2-p1-lifecycle: - A.1 + A.2: MemoryLifecycleMediator class + TurnContext value object - A.3: TurnStartedEvent / TurnCompletedEvent domain events - A.4: MemoryLifecycleEventListener bean for Spring event plumbing - A.5: MemoryProvider.onMemoryWrite default method (backward compatible) - A.7: wire the mediator into AgentService at the right hook points - A.8: LifecycleFlagGuardTest — feature flag must gate every hook - A.9: MemoryLifecycleMediatorTest — unit coverage per hook - A.10: LifecycleRecallCountIT — F4 regression across the stack Feature flags (all default OFF; enable per phase after staging): - mate.memory.lifecycle-mediator-enabled - mate.memory.dream.focused-enabled - mate.memory.dream.archive-enabled This is Phase 1 foundation only — focused-dream and archive-dream providers arrive in later phases.
12 lines
558 B
Markdown
12 lines
558 B
Markdown
## Dream v2 PR Checklist
|
|
|
|
- [ ] Only modifies current Phase scope; no future Phase undecided designs introduced
|
|
- [ ] Feature flag defaults to off
|
|
- [ ] `scripts/rfc-lint.sh` passes locally
|
|
- [ ] New Flyway migrations exist in both h2/ and mysql/ directories
|
|
- [ ] New `@Scheduled` cron expressions documented in application.yml with stagger rationale
|
|
- [ ] Phase 1 PR: `recall_count / daily_count` regression test passes
|
|
- [ ] Phase 3 PR: `mate_fact` two-write-path SQL-level guard test passes
|
|
|
|
Related RFC: <!-- rfc-035 P1-S{x} / rfc-037 P1-S{x} / ... -->
|