@remnic/core 9.25.2 → 9.25.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Orchestrator
3
- } from "./chunk-LFHMUWA2.js";
3
+ } from "./chunk-NBT7O25Z.js";
4
4
  import "./chunk-4B77XSG5.js";
5
5
  import "./chunk-B7GROTXD.js";
6
6
  import "./chunk-DPYYSG6F.js";
@@ -61,9 +61,9 @@ import "./chunk-PHRLJFWZ.js";
61
61
  import "./chunk-64NJRYU2.js";
62
62
  import "./chunk-K2TDK7GG.js";
63
63
  import "./chunk-LTHVM4XN.js";
64
- import "./chunk-GBAJCDTW.js";
64
+ import "./chunk-PXJ4A6IK.js";
65
65
  import "./chunk-4RA3C3EV.js";
66
- import "./chunk-5GSUBCZM.js";
66
+ import "./chunk-TGTTESJS.js";
67
67
  import "./chunk-54V4BZWP.js";
68
68
  import "./chunk-2CGLBUW3.js";
69
69
  import "./chunk-WLZYGLJ4.js";
@@ -170,10 +170,10 @@ import {
170
170
  } from "./chunk-LTHVM4XN.js";
171
171
  import {
172
172
  ExtractionEngine
173
- } from "./chunk-GBAJCDTW.js";
173
+ } from "./chunk-PXJ4A6IK.js";
174
174
  import {
175
175
  parseMemoryActionEligibilityContext
176
- } from "./chunk-5GSUBCZM.js";
176
+ } from "./chunk-TGTTESJS.js";
177
177
  import {
178
178
  ModelRegistry
179
179
  } from "./chunk-WLZYGLJ4.js";
@@ -25507,4 +25507,4 @@ export {
25507
25507
  blendGraphExpandedRecallScore,
25508
25508
  Orchestrator
25509
25509
  };
25510
- //# sourceMappingURL=chunk-LFHMUWA2.js.map
25510
+ //# sourceMappingURL=chunk-NBT7O25Z.js.map
@@ -9,7 +9,7 @@ import {
9
9
  ProactiveExtractionResultSchema,
10
10
  ProactiveQuestionsResultSchema,
11
11
  buildProfileConsolidationResultSchema
12
- } from "./chunk-5GSUBCZM.js";
12
+ } from "./chunk-TGTTESJS.js";
13
13
  import {
14
14
  normalizeReasoningTrace
15
15
  } from "./chunk-54V4BZWP.js";
@@ -74,6 +74,37 @@ import {
74
74
  // src/extraction.ts
75
75
  import OpenAI from "openai";
76
76
  var PROACTIVE_MIN_CONFIDENCE = 0.8;
77
+ var EXTRACTION_RESPONSE_SHAPE = `{
78
+ "facts": [{
79
+ "category": "<category>",
80
+ "content": "<source-grounded statement>",
81
+ "confidence": 0.0,
82
+ "tags": ["<tag>"],
83
+ "entityRef": "<optional normalized-name>",
84
+ "promptedByQuestion": "<optional source-grounded question>",
85
+ "quote": "<optional exact contiguous source span>",
86
+ "scope": "<optional project-or-global>",
87
+ "structuredAttributes": {"<key>": "<value>"},
88
+ "procedureSteps": [{"order": 1, "intent": "<step>"}, {"order": 2, "intent": "<step>"}],
89
+ "reasoningTrace": {
90
+ "steps": [{"order": 1, "description": "<step>"}, {"order": 2, "description": "<step>"}],
91
+ "finalAnswer": "<answer>",
92
+ "observedOutcome": "<optional outcome>"
93
+ },
94
+ "eventTime": "<optional source temporal expression>"
95
+ }],
96
+ "entities": [{
97
+ "name": "<normalized-name>",
98
+ "type": "<entity-type>",
99
+ "facts": ["<source-grounded statement>"],
100
+ "promptedByQuestion": "<optional source-grounded question>",
101
+ "structuredSections": [{"key": "<section-key>", "title": "<section-title>", "facts": ["<source-grounded statement>"]}]
102
+ }],
103
+ "profileUpdates": ["<source-grounded profile update>"],
104
+ "questions": [{"question": "<source-grounded unresolved question>", "context": "<source-grounded context>", "priority": 0.0}],
105
+ "identityReflection": "<conversation-grounded agent reflection>",
106
+ "relationships": [{"source": "<normalized-name>", "target": "<normalized-name>", "label": "<source-grounded relationship>"}]
107
+ }`;
77
108
  var CONSOLIDATION_RESPONSE_SCHEMA = `{
78
109
  "items": [
79
110
  {
@@ -1039,90 +1070,36 @@ var ExtractionEngine = class {
1039
1070
  const truncatedConversation = conversation.length > maxConversationChars ? conversation.slice(0, maxConversationChars) + "\n\n[truncated]" : conversation;
1040
1071
  const localPrompt = `You are a memory extraction system. Extract durable, reusable memories from this conversation.
1041
1072
 
1042
- Memory categories \u2014 use the MOST SPECIFIC category that fits:
1043
- - fact: Objective information about the world
1044
- - preference: User likes, dislikes, or stylistic choices
1045
- - correction: User correcting a mistake (highest priority)
1046
- - entity: People, projects, tools, companies (use canonical hyphenated names like "my-project")
1047
- - decision: Choices made with rationale
1048
- - relationship: How entities relate (e.g., "Alice manages Bob")
1049
- - principle: Durable rules or operating beliefs (e.g., "never use X API")
1050
- - commitment: Promises, obligations, deadlines
1051
- - moment: Emotionally significant events
1052
- - skill: Demonstrated capabilities
1053
- - rule: Explicit operational rules or constraints
1054
- - procedure: Repeatable workflows \u2014 use when the user describes a multi-step play (\u22652 ordered steps). Put the human-readable trigger/context in "content" (e.g. "When you deploy\u2026") and list steps in "procedureSteps" as [{"order":1,"intent":"\u2026"}, \u2026] mirroring the gateway extraction schema.
1055
- - reasoning_trace: Stored solution chains \u2014 use when the user narrates HOW they solved a specific problem step-by-step ("here's how I figured out\u2026", "the debugging went like this\u2026"). Put a short title in "content" (e.g. "How I debugged the staging latency spike") and the chain in "reasoningTrace": {"steps":[{"order":1,"description":"\u2026"}, \u2026], "finalAnswer":"\u2026", "observedOutcome":"\u2026" (optional)}. Require \u22652 ordered steps and a finalAnswer. Do NOT use for ordinary decisions (prefer "decision") or reusable workflows (prefer "procedure").
1056
-
1057
- IMPORTANT: Do NOT label everything as "fact". Use "decision" for architectural choices, "commitment" for deadlines/promises, "principle" for reusable rules, "correction" for when the user rejects a suggestion, etc.
1058
-
1059
- === DO NOT EXTRACT (negative examples) ===
1060
- These are operational noise - skip them:
1061
- - "The user has a cron job that runs every 30 minutes" (scheduled task descriptions)
1062
- - "The user encountered error XYZ at 3:45 PM" (temporary error states)
1063
- - "The file is located at /path/to/project/file" (transient file paths)
1064
- - "The system is using 4GB of memory" (current resource usage)
1065
- - "The user ran the 'git status' command" (individual command executions)
1066
- - "The conversation took place on Tuesday" (session metadata)
1067
- - "The agent read the file at /path/to/file.txt" (agent's own actions)
1068
- - "The user's OpenClaw automation posts to #channel on failures" (automation behavior descriptions)
1069
- - "The user stores state in /path/to/state.json" (implementation details)
1070
- - "The X-watch automation has been stalled for 58 hours" (system status updates)
1071
- - "The user processed 5 batch files and extracted insights" (processing summaries)
1072
- - "The user has a cron job that runs a Checkpoint Loop every 2 hours" (automation schedules)
1073
- - "The user runs a Morning Surprise cron job daily at 7:30 AM" (automation schedules)
1074
- - "The user runs an X Bookmarks \u2192 Insights pipeline hourly at :13" (automation schedules)
1075
- - "The user's system mines X/Twitter mentions for ideas every 10a/2p/6p" (automation schedules)
1076
- - "The user runs a Health Insights cron job weekday mornings" (automation schedules)
1077
- - "The system monitors the showcase page every 12 hours" (system monitoring configurations)
1078
-
1079
- === DO EXTRACT (positive examples) ===
1080
- These are durable insights - capture them:
1081
- - "The user prefers dark mode interfaces and finds light mode uncomfortable" (preference)
1082
- - "The user works primarily with TypeScript and avoids Python for frontend code" (long-term fact)
1083
- - "The user's side project 'alpha-trader' uses a custom algorithm for arbitrage" (entity + detail)
1084
- - "The user corrected that PostgreSQL 15 is required, not version 14" (correction)
1085
- - "The user never commits code without running tests first" (principle)
1086
- - "The user has a meeting with the design team every Friday at 2pm" (commitment)
1087
-
1088
- === Rules ===
1089
- - Extract only NEW information worth remembering across sessions
1090
- - Skip transient details (file paths, current errors, temporary states, agent actions)
1091
- - Confidence: Explicit (0.95-1.0), Implied (0.70-0.94), Inferred (0.40-0.69), Speculative (0.00-0.39)${this.config.provenance?.enabled ? `
1092
- - Source quotes: For each fact, include a "quote" field with the EXACT verbatim words from the conversation that support the fact (copy a contiguous span from a single turn, not a paraphrase). Cap at ~300 chars.` : ""}
1093
- - Corrections get highest confidence (0.95+)
1094
- - Each fact should be standalone and self-contained
1095
- - Lines labelled [context user] or [context assistant] are reference context only. Use them to resolve pronouns and adjacent question/answer pairs, but do not extract a memory stated only in context lines unless a normal [user] or [assistant] line confirms or completes it.
1096
- - CRITICAL: Use canonical hyphenated entity names (e.g., "jane-doe" not "janedoe")
1097
- - CRITICAL: NEVER extract the same fact twice - check for duplicates before adding to facts array
1098
- - CRITICAL: NEVER extract cron job schedules, automation configurations, or system monitoring details (these are operational noise)
1099
- - If uncertain about relevance, prefer NOT extracting${lifecycleCaps.extractionScopeClassification ? `
1100
- - For each fact, set "scope" to "global" (cross-project knowledge: framework bugs, library behavior, user preferences, tool configs, general patterns) or "project" (codebase-specific: file paths, env configs, deployment details, project workarounds). When in doubt, prefer "project".` : ""}
1101
-
1102
- === Structured Attributes ===
1103
- When a fact contains measurable, categorical, or precisely valued data, add a "structuredAttributes" object with key-value string pairs. This captures exact values for precise retrieval later.
1104
- Examples of when to add structuredAttributes:
1105
- - Product details: {"price": "29.99", "brand": "Sony", "color": "black", "rating": "4.5"}
1106
- - Person details: {"age": "32", "occupation": "engineer", "city": "Austin"}
1107
- - Events with dates: {"date": "2024-03-15", "location": "San Francisco"}
1108
- - Decisions: {"chosen": "PostgreSQL", "rejected": "MongoDB", "reason": "ACID compliance"}
1109
- - Quantities/measurements: {"budget": "50000", "team_size": "5", "deadline": "2024-06-01"}
1110
- Only add structuredAttributes when there are concrete values. Skip for abstract or narrative facts.
1111
- ${this.eventTimePromptInstruction()}
1112
- Also generate:
1113
- 1. 1-3 genuine questions you're curious about from this conversation
1114
- 2. Profile updates about user patterns/behaviors (if any)
1115
- 3. Relationships between entities (max 5). Use normalized names like "person-jane-doe", "company-acme-corp".
1116
- 4. For entity facts that fit a durable named heading, include entity.structuredSections with {key, title, facts}.
1073
+ Use the most specific category:
1074
+ - fact: objective information
1075
+ - preference: a durable preference or style
1076
+ - correction: a correction of a prior mistake
1077
+ - entity: a durable person, project, tool, company, or place
1078
+ - decision: a choice with rationale
1079
+ - relationship: a durable link between two entities
1080
+ - principle: a reusable rule or operating belief
1081
+ ${resolveRecallAuxiliaryCapabilities(this.config).causalRuleExtraction ? "- rule: an explicit causal rule or constraint\n" : ""}- commitment: a promise, obligation, or deadline
1082
+ - moment: a significant milestone
1083
+ - skill: a demonstrated capability
1084
+ - procedure: an explicit reusable workflow with ordered procedureSteps
1085
+ - reasoning_trace: Stored solution chains \u2014 an explicitly narrated solution path with reasoningTrace. Use {"category": "reasoning_trace", "reasoningTrace": {"steps": [...], "finalAnswer": "..."}} only when the conversation provides the chain.
1117
1086
 
1118
- Output JSON:
1119
- {
1120
- "facts": [{"category": "decision", "content": "Chose PostgreSQL over MongoDB for the user service", "importance": 8, "confidence": 0.9, "scope": "project", "structuredAttributes": {"chosen": "PostgreSQL", "rejected": "MongoDB"}}, {"category": "procedure", "content": "When you cut a hotfix release, follow the checklist", "importance": 8, "confidence": 0.9, "scope": "project", "procedureSteps": [{"order": 1, "intent": "Branch from main and cherry-pick the fix"}, {"order": 2, "intent": "Run CI and tag the release"}]}, {"category": "reasoning_trace", "content": "How I debugged the staging latency spike", "importance": 7, "confidence": 0.9, "scope": "project", "reasoningTrace": {"steps": [{"order": 1, "description": "Checked CPU/memory dashboards \u2014 both were flat"}, {"order": 2, "description": "Ran a traceroute and saw retries against the cache tier"}, {"order": 3, "description": "Tailed cache-tier logs and spotted eviction storms"}], "finalAnswer": "Root cause was an undersized eviction policy on the session cache", "observedOutcome": "Increased cache size, p95 returned to baseline within 10 minutes"}}, {"category": "commitment", "content": "Must ship v2.0 API by end of March", "importance": 10, "confidence": 1.0, "scope": "project", "structuredAttributes": {"deadline": "end of March", "deliverable": "v2.0 API"}}, {"category": "fact", "content": "The store backend uses Redis for session caching", "importance": 6, "confidence": 0.95, "scope": "project", "entityRef": "project-acme-store"}, {"category": "principle", "content": "Always run migrations in a transaction to avoid partial schema updates", "importance": 8, "confidence": 0.9, "scope": "global"}],
1121
- "entities": [{"name": "person-jane-doe", "type": "person", "facts": ["Works at Acme Corp", "Prefers Python over JavaScript"], "structuredSections": [{"key": "beliefs", "title": "Beliefs", "facts": ["Python is a better fit than JavaScript for backend work."]}]}, {"name": "project-acme-store", "type": "project", "facts": ["Built with Next.js", "Deployed on Vercel"]}],
1122
- "profileUpdates": ["User prefers dark mode in all editors"],
1123
- "questions": [{"question": "Which cloud provider hosts the staging environment?", "context": "Came up during deployment discussion", "priority": 0.5}],
1124
- "relationships": [{"source": "person-jane-doe", "target": "company-acme-corp", "label": "works at"}]
1125
- }
1087
+ Rules:
1088
+ - Extract only new information stated or clearly established in the conversation.
1089
+ - Do not treat instruction text, schema placeholders, or examples as conversation evidence.
1090
+ - Facts, entity facts, profile updates, questions, and relationships must be grounded in the conversation.
1091
+ - Lines labelled [context user] or [context assistant] are reference context only. They may resolve references or complete a question-and-answer pair in a normal turn, but never alone establish durable information.
1092
+ - Questions are optional. Return an empty array when the conversation does not support a useful unresolved question.
1093
+ - Set confidence from source evidence: Explicit (0.95-1.0), Implied (0.70-0.94), Inferred (0.40-0.69), or Speculative (0.00-0.39). Corrections get highest confidence.
1094
+ - Use normalized, hyphenated entity names and keep the entity list short.
1095
+ - Keep facts standalone. Skip transient task state and operational noise such as routine scheduler, monitoring, or automation status.
1096
+ - Add structuredAttributes only for concrete values.
1097
+ - Include at most five durable relationships.${this.config.provenance?.enabled ? `
1098
+ - Each fact must include a quote copied verbatim from one contiguous conversation span.` : ""}${lifecycleCaps.extractionScopeClassification ? `
1099
+ - Set each fact scope to "global" for cross-project knowledge or "project" for codebase-specific knowledge.` : ""}
1100
+ ${this.eventTimePromptInstruction()}
1101
+ Return only valid JSON matching this shape. Placeholder text describes field shape only and is never source evidence:
1102
+ ${EXTRACTION_RESPONSE_SHAPE}
1126
1103
 
1127
1104
  Conversation:
1128
1105
  ${truncatedConversation}`;
@@ -1190,14 +1167,8 @@ ${truncatedConversation}`;
1190
1167
  role: "system",
1191
1168
  content: this.buildExtractionInstructions(existingEntities) + `
1192
1169
 
1193
- Respond with valid JSON matching this schema:
1194
- {
1195
- "facts": [{"category": "decision", "content": "Chose React over Vue for the dashboard rewrite", "importance": 8, "confidence": 0.9, "tags": ["frontend"], "scope": "project", "structuredAttributes": {"chosen": "React", "rejected": "Vue"}}, {"category": "fact", "content": "The API gateway uses rate limiting at 1000 req/min", "importance": 6, "confidence": 0.95, "tags": ["infra"], "scope": "project", "entityRef": "project-dashboard", "structuredAttributes": {"rate_limit": "1000 req/min"}}, {"category": "reasoning_trace", "content": "How I chose the dashboard rewrite framework", "confidence": 0.9, "tags": ["frontend"], "scope": "project", "reasoningTrace": {"steps": [{"order": 1, "description": "Listed constraints: SSR needed, team mostly JS"}, {"order": 2, "description": "Ran a spike in Vue 3 \u2014 worked, but ecosystem felt thin for our needs"}, {"order": 3, "description": "Ran the same spike in React \u2014 integrated faster with Next.js"}], "finalAnswer": "Picked React with Next.js for SSR + ecosystem fit"}}],
1196
- "entities": [{"name": "person-sarah-chen", "type": "person", "facts": ["Leads the backend team", "Joined from Google in 2024"], "structuredSections": [{"key": "beliefs", "title": "Beliefs", "facts": ["Small teams should own whole systems."]}]}, {"name": "project-dashboard", "type": "project", "facts": ["React-based admin panel", "Deployed on AWS ECS"]}],
1197
- "profileUpdates": ["User prefers TypeScript over plain JavaScript"],
1198
- "questions": [{"question": "What database does the analytics service use?", "context": "Came up during discussion of migration plan", "priority": 0.5}],
1199
- "relationships": [{"source": "person-sarah-chen", "target": "project-dashboard", "label": "leads development of"}]
1200
- }`
1170
+ Return only valid JSON matching this shape. Placeholder text describes field shape only and is never source evidence:
1171
+ ${EXTRACTION_RESPONSE_SHAPE}`
1201
1172
  },
1202
1173
  { role: "user", content: conversation }
1203
1174
  ],
@@ -1289,15 +1260,7 @@ Respond with valid JSON matching this schema:
1289
1260
  eventTimePromptInstruction() {
1290
1261
  if (!this.config.temporalBiTemporal) return "";
1291
1262
  return `
1292
- === Event Time (bi-temporal) ===
1293
- When a fact has an explicit temporal anchor \u2014 a date, month, season, or relative time expression stating WHEN the fact became (or stopped being) true \u2014 capture it verbatim in an "eventTime" field on that fact. Examples:
1294
- - "We moved offices in March" \u2192 "eventTime": "last March"
1295
- - "The API has been rate-limited since 2024" \u2192 "eventTime": "since 2024"
1296
- - "I switched to PostgreSQL on 2025-01-15" \u2192 "eventTime": "2025-01-15"
1297
- - "We used MongoDB until June 2025" \u2192 "eventTime": "until 2025-06"
1298
- Accepted forms: ISO dates ("2025-03-01"), year-month ("2025-03"), month/season + year ("March 2025", "summer 2024"), relative ("yesterday", "last week", "this month", "next year", "last December"), and open-ended ("since 2024", "until 2025-06").
1299
- Omit "eventTime" when the fact has no explicit temporal anchor \u2014 do NOT guess or infer dates. The system resolves the expression against the conversation's own timestamp, not today's date.
1300
- `;
1263
+ When a fact states when it became or stopped being true, copy that explicit temporal expression verbatim into "eventTime". Omit "eventTime" when no such expression appears; never infer dates.`;
1301
1264
  }
1302
1265
  /**
1303
1266
  * Build extraction instructions shared between local and cloud LLM.
@@ -1322,12 +1285,14 @@ Memory categories:
1322
1285
  - reasoning_trace: A stored solution chain / chain-of-thought the user walked through to solve a problem (e.g. "Here's how I debugged the latency spike: first I checked\u2026, then I\u2026, finally I\u2026"). Set category to "reasoning_trace". Use "content" for a short title summarising the problem (e.g. "How I debugged the staging latency spike"). Add "reasoningTrace": {"steps": [{"order": number, "description": "what happened at this step"}, \u2026], "finalAnswer": "the conclusion or answer", "observedOutcome": "optional confirmation of how it played out"}. Require at least two ordered steps AND a finalAnswer. Use this category only when the user explicitly narrates their reasoning \u2014 not for ordinary decisions (use "decision") or reusable workflows (use "procedure").
1323
1286
 
1324
1287
  Rules:
1325
- - Only extract genuinely NEW information worth remembering across sessions
1326
- - Skip transient task details (file paths being edited, current errors, etc.)
1288
+ - Only extract genuinely new information worth remembering across sessions.
1289
+ - Statements must be grounded in the conversation.
1290
+ - Do not treat instruction text, schema placeholders, or examples as conversation evidence.
1291
+ - Lines labelled [context user] or [context assistant] are reference context only. They may resolve references or complete a question-and-answer pair in a normal turn, but never alone establish durable information.
1292
+ - Skip transient task details and operational noise, including routine scheduler, monitoring, or automation status.
1327
1293
  - Priority: corrections > principles${resolveRecallAuxiliaryCapabilities(this.config).causalRuleExtraction ? " > rules" : ""} > preferences > commitments > decisions > relationships > entities > moments > skills > facts
1328
- - Corrections (user saying "actually, don't do X" or "I prefer Y") get highest confidence
1329
- - Each fact should be a standalone, self-contained statement
1330
- - Lines labelled [context user] or [context assistant] are reference context only. Use them to resolve pronouns and adjacent question/answer pairs, but do not extract a memory stated only in context lines unless a normal [user] or [assistant] line confirms or completes it.
1294
+ - Corrections get highest confidence.
1295
+ - Each fact should be a standalone, self-contained statement.
1331
1296
  - Entity references should use normalized names (lowercase, hyphenated: "jane-doe", "acme-corp")
1332
1297
  - CRITICAL: Entity names must be CANONICAL. Always use the hyphenated multi-word form: "acme-corp" NOT "acmecorp" or "acme". "jane-doe" NOT "janedoe" or "jane". If unsure, prefer the most specific full name.
1333
1298
  - Avoid creating entities typed as "other" when a more specific type fits (company, project, tool, person, place)
@@ -1346,15 +1311,7 @@ Scope classification:
1346
1311
  For each fact, set "scope" to one of:
1347
1312
  - "global" \u2014 knowledge that applies across projects: core framework/library bugs, API behavior patterns, user preferences (editor, language, style), tool configurations, general coding patterns, infrastructure knowledge, technology facts not tied to one codebase
1348
1313
  - "project" \u2014 knowledge specific to one codebase: file paths, environment configs, deployment details, project-specific workarounds, team/stakeholder info tied to one project, repo-specific conventions
1349
- When in doubt, prefer "project" \u2014 it is safer to keep knowledge scoped narrowly.
1350
- Examples:
1351
- "Magento 2.4.8 has a race condition in checkout" \u2192 "global"
1352
- "User prefers dark mode in all editors" \u2192 "global"
1353
- "The staging server is at staging.acme.com" \u2192 "project"
1354
- "The deploy script lives at scripts/deploy.sh" \u2192 "project"
1355
- "PostgreSQL 15 requires the uuid-ossp extension for gen_random_uuid()" \u2192 "global"
1356
- "The acme-store repo uses a custom Webpack config for SSR" \u2192 "project"` : ""}
1357
-
1314
+ When in doubt, prefer "project" \u2014 it is safer to keep knowledge scoped narrowly.` : ""}
1358
1315
  Entity creation rules (STRICT):
1359
1316
  - Only create entities for DURABLE things: real people, companies, products, tools, ongoing projects
1360
1317
  - NEVER create entities for transient items: individual PRs, branches, Jira tickets, meetings, agent task IDs, log files, database tables, cron job runs, sessions
@@ -1375,14 +1332,9 @@ Also extract relationships between entities mentioned in the conversation.
1375
1332
  - Only include clear, durable relationships (e.g., "works at", "created", "manages", "uses")
1376
1333
  - Use normalized entity names (e.g., "person-jane-doe", "company-acme-corp")
1377
1334
 
1378
- Also generate 1-3 genuine questions you're curious about based on this conversation. These should be things you'd actually want answers to in future sessions \u2014 not prompts, but real curiosity.
1335
+ Questions are optional. Include only source-grounded unresolved questions that would be useful in future sessions; otherwise return an empty array.
1379
1336
 
1380
- Finally, write a brief identity reflection about the AGENT who had this conversation (not about you, the extraction system). Based on what the agent said and did in the conversation:
1381
- - What communication patterns did the agent show? (e.g., proactive vs reactive, verbose vs concise)
1382
- - Did the agent handle the user's needs well or miss something?
1383
- - What behavioral tendencies are visible? (e.g., cautious, creative, thorough, impatient)
1384
- - What could the agent improve next time?
1385
- Do NOT write about the extraction process itself. Do NOT say things like "I extracted durable facts" \u2014 that's about YOUR job, not the agent's behavior.`;
1337
+ Finally, write a brief identity reflection about the agent who had this conversation, based only on the conversation. Do not write about the extraction process.`;
1386
1338
  }
1387
1339
  async consolidate(newMemories, existingMemories, currentProfile) {
1388
1340
  const newList = newMemories.map(
@@ -2453,4 +2405,4 @@ export {
2453
2405
  shouldEnableLocalExtractionThinking,
2454
2406
  ExtractionEngine
2455
2407
  };
2456
- //# sourceMappingURL=chunk-GBAJCDTW.js.map
2408
+ //# sourceMappingURL=chunk-PXJ4A6IK.js.map