Commit Graph

40 Commits

Author SHA1 Message Date
Youzini-afk
13ccc33f0d fix: allow extraction with recoverable pending persist 2026-04-23 02:34:06 +08:00
Youzini-afk
2bf231cfaf fix: 持久化未接受时仍在内存中推进 lastProcessedAssistantFloor
当提取核心成功但持久化未被接受时,之前不推进楼层会导致同一
会话内 pending 模式重复提取已处理的楼层。现在即使持久化未
接受也在内存中推进楼层(不追加 batchJournal,保持回滚完整性)。
重载时 floor 和图谱都会回退到最后持久化状态,保持一致。
2026-04-23 01:52:26 +08:00
Youzini-afk
1125ebb390 fix: 重新提取回滚点不可用时自动执行历史恢复并降级为 pending 模式
当提取/整合被中断后手动重新提取(rerun 模式)失败时,不再显示
死胡同错误,而是自动尝试历史恢复后继续提取未处理内容。
2026-04-23 01:37:10 +08:00
Youzini-afk
fb4dabeaf1 perf: add dirty persist and hydrate/layout optimizations 2026-04-22 22:27:51 +08:00
Youzini-afk
cfc122244a perf: optimize persist/load P1 hot paths 2026-04-22 18:34:56 +08:00
Youzini-afk
d2c3d1f5dd Add persistence and retrieval observability with native delta gating 2026-04-21 20:32:20 +08:00
Youzini-afk
4fd4786983 perf: reduce graph load memory and clone overhead 2026-04-21 16:57:42 +08:00
Youzini-afk
d3c199fee1 feat: 同批次节点默认弱关联边 + LLM 可增强/移除 + prompt 更新
- extractor: 批次操作完成后统一处理 links,再补默认弱 related 边(0.25)
- extractor: 支持 remove/delete/unlink/invalidate 语义显式移除边
- extractor: update 操作现在也能处理 links
- extractor: 边计数改为仅统计真正新增的边
- prompt: 输出格式示例加 links 字段,补 links/remove 语法说明
- prompt: 行为规则加关联边使用规范段落
- tests: 3 条回归覆盖默认弱边、显式覆盖、显式移除
2026-04-20 20:27:30 +08:00
Youzini-afk
fbaadddae3 fix: surface rerun preparation failures 2026-04-16 01:27:23 +08:00
Youzini-afk
622f00620c fix: restore luker llm priority order 2026-04-16 01:05:14 +08:00
Youzini-afk
e3b268bb04 fix: surface rerun extraction progress 2026-04-16 00:14:17 +08:00
Youzini-afk
c12956f674 feat: promote opfs v2 as default local store 2026-04-14 19:34:44 +08:00
Youzini-afk
47ffd5413d refactor(terminology): 层级总结为主路径,synopsis 标记为旧式全局概要
- README: 明确 summaryState 为主总结体系,legacy synopsis 为兼容兜底
- prompt-profiles: synopsis 任务标签改为「小总结」
- schema/task-graph-stats/panel: synopsis 节点显示为「全局概要(旧)」
- index.js: fallback 状态文案改为「旧式全局概要生成/更新中」
- p0-regressions: 同步更新断言字符串
2026-04-12 17:58:05 +08:00
Youzini-afk
ea105104a5 chore: 提取默认预设 event.title 字数要求从 6-18 改为 6-10 字
- prompting/prompt-profiles.js: FALLBACK_DEFAULT_TASK_BLOCKS extract role/rules
- prompting/default-task-profile-templates.js: extract default-role / default-rules 模板
- maintenance/extractor.js: buildDefaultExtractPrompt 规则说明
- graph/schema.js: event.title hint
2026-04-12 17:00:03 +08:00
Youzini-afk
96b43c7860 feat: migrate compress/consolidation/reflection graphStats to shared ranking core + prompt node refs
- New maintenance/task-graph-stats.js: shared helper wrapping rankNodesForTaskContext + createPromptNodeReferenceMap
- extractor.js: extract and reflection graphStats now use buildTaskGraphStats
- compressor.js: compression graphStats uses shared helper, excludes current batch from relevant ranking
- consolidator.js: consolidation graphStats uses shared helper, excludes new nodes from relevant ranking
- index.js: passes schema + embeddingConfig into generateReflection
- p0-regressions.mjs: added graphStats assertions for compress/consolidation/reflection (prompt-facing refs, no raw UUIDs)
2026-04-12 15:27:22 +08:00
Youzini-afk
dc5051f2ef feat: shared ranking core + prompt node references; recall reuses shared core for base query/vector/diffusion; remove retriever-local duplicate helpers; add regression tests 2026-04-12 14:59:37 +08:00
Youzini-afk
f40b03c306 feat: hide assistant card names in extraction transcript, split sectioned recentMessages into 2 system messages 2026-04-12 13:33:41 +08:00
Youzini-afk
a8e3169002 feat: add isContextOnly flag to extraction messages to prevent repeated extraction
- buildExtractionMessages marks messages with isContextOnly (seq < startIdx)
- formatExtractionTranscript inserts section dividers for mixed context/target
- extractor.js Layer 1 prompt splits context review vs extraction target with guidance
- Add tests/extraction-context-only-flag.mjs (7 test cases)
2026-04-12 12:46:05 +08:00
Youzini-afk
322752bb43 feat: improve shujuku-compatible extraction and recall input 2026-04-11 16:05:34 +08:00
Youzini-afk
1834bc1d24 refactor: stabilize persistence delta commit flow 2026-04-11 13:57:03 +08:00
Youzini-afk
f37c5de761 Fix persistence pending gating and add repair actions 2026-04-11 00:21:16 +08:00
Hao19911125
965e5dff0a Merge branch 'main' into main 2026-04-10 18:43:42 +08:00
Hao19911125
4423034007 Fix stale pending persistence gate 2026-04-10 18:42:15 +08:00
Youzini-afk
517abc6a30 Refactor rerun and summary rebuild ranges 2026-04-10 18:38:54 +08:00
Youzini-afk
ef154b5950 Fix hidden-message leakage into plugin prompts 2026-04-10 14:06:26 +08:00
Youzini-afk
bbb44e7022 Fix multi-device sync after persistence refactor 2026-04-10 13:53:21 +08:00
Youzini-afk
f88a6cc0af Fix pending persistence confirmation deadlocks 2026-04-10 01:46:48 +08:00
Youzini-afk
7faa9cfc7f Refactor extraction persistence into two-stage status model 2026-04-10 01:19:56 +08:00
Youzini-afk
8bf01e6ff3 Tighten extraction persistence success gating 2026-04-10 00:01:55 +08:00
Youzini-afk
5c9a8a9df1 Normalize mistaken user owners across extraction and cognition 2026-04-09 23:38:40 +08:00
Youzini-afk
e891b35c00 fix: delay automatic summary rollup until above threshold 2026-04-09 21:32:16 +08:00
Youzini-afk
e4feda5471 Add hierarchical summary frontier system 2026-04-09 14:50:52 +08:00
Youzini-afk
922b716ff6 Fix host regex reuse for extraction inputs 2026-04-09 00:28:29 +08:00
Youzini-afk
323e1fd5b0 feat: add story timeline layer 2026-04-08 22:41:49 +08:00
Youzini-afk
d7989303d9 feat: support multi-owner scene recall anchors 2026-04-08 21:29:36 +08:00
Youzini-afk
a4fed87e6e feat(cognition): finish multi-character knowledge and monitor workflow 2026-04-08 18:21:38 +08:00
Youzini-afk
9b057ebdfb fix(extract): 收紧智能探测条件 — 要求数组中至少一个元素含 action/op/type 字段才接受 2026-04-08 13:45:31 +08:00
Youzini-afk
b0cd52b1cc fix(extract): 增强 JSON 解析容错 + 扩充容器键白名单 + 单操作兜底 + 诊断改善
- extractJSON: 新增 trailing comma 容错和截断 JSON 自动闭合修复
- extractOperationsPayload: 容器键白名单从 5 扩充到 13,新增智能探测和单操作对象包装
- 错误日志现在会输出 result 的类型、键名和预览,方便排查
2026-04-08 13:38:31 +08:00
Youzini-afk
9939734bcb Harden post-refactor test and check guardrails 2026-04-08 03:03:09 +08:00
Youzini-afk
feec17f3e3 Reorganize modules into layered directories 2026-04-08 01:17:57 +08:00