feat(intelligence): add self-evolution UI for identity change proposals

P1.1: Identity Change Proposal UI
- Create IdentityChangeProposal.tsx with diff view for SOUL.md changes
- Add approve/reject buttons with visual feedback
- Show evolution history timeline with restore capability

P1.2: Connect Reflection Engine to Identity Proposals
- Update ReflectionLog.tsx to convert reflection proposals to identity proposals
- Add ReflectionIdentityProposal type for non-persisted proposals
- Auto-create identity proposals when reflection detects personality changes

P1.3: Evolution History and Rollback
- Display identity snapshots with timestamps
- One-click restore to previous personality versions
- Visual diff between current and proposed content

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
iven
2026-03-24 00:51:03 +08:00
parent 6c64d704d7
commit bfad61c3da
5 changed files with 526 additions and 6 deletions

View File

@@ -146,10 +146,19 @@ export interface ImprovementSuggestion {
priority: 'high' | 'medium' | 'low';
}
// Reflection identity proposal (from reflection engine, not yet persisted)
export interface ReflectionIdentityProposal {
agent_id: string;
field: string;
current_value: string;
proposed_value: string;
reason: string;
}
export interface ReflectionResult {
patterns: PatternObservation[];
improvements: ImprovementSuggestion[];
identity_proposals: IdentityChangeProposal[];
identity_proposals: ReflectionIdentityProposal[];
new_memories: number;
timestamp: string;
}

View File

@@ -118,6 +118,7 @@ export type {
ReflectionResult,
ReflectionState,
ReflectionConfig,
ReflectionIdentityProposal,
IdentityFiles,
IdentityChangeProposal,
IdentitySnapshot,