refactor!(memory): Streamline memory terminology and architecture

This commit is contained in:
2026-07-19 07:03:03 +05:30
parent b4bf70dbae
commit 1ed1edf4cf
15 changed files with 59 additions and 17 deletions

View File

@@ -4,7 +4,7 @@ import { Intent } from "@omnia/intent";
export interface BufferEntry {
id: string;
ownerId: string; // Whose subjective memory buffer this lives in
ownerId: string; // Whose Cognitive Buffer this entry lives in
timestamp: string; // WorldClock.get().toISOString() at write time
locationId: string | null; // Actor's location when this happened

View File

@@ -33,7 +33,7 @@ export function getMemorySectionLength(
now: Date,
): number {
if (entries.length === 0) {
return `=== COGNITIVE BUFFER ===\n(No recent events recorded.)`.length;
return `=== COGNITIVE BUFFER ===\n(No entries recorded.)`.length;
}
const groupedLines: string[] = [];
@@ -246,7 +246,7 @@ Instructions:
Subject Entity ID: ${entity.id}
Current Time: ${now.toISOString()}
Working Memory Candidates for Handoff:
Cognitive Buffer Candidates for Handoff:
${candidatesList}
`.trim();