weichen and Cursor
687f930f40
feat(trace): deliver recheck and impact notices in chat
...
A new recheck mark is posted into the actor's existing project session, and a downstream-impact event does the same. Asking about what a change affects still resolves to impact analysis.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-21 05:19:43 +00:00
weichen and Cursor
37fb1ba44e
merge: feature/capability-enablement-impact-plan; renumber chat_summaries to 00058
...
Absorb stalled capability fixes and avoid goose out-of-order on schema 57 DBs by shipping chat_summaries as 00058.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-20 10:38:12 +00:00
weichen and Cursor
18a323c4dc
test: cover asset raw round-trip and harden cross-user session upsert
...
Deny foreign user_id upsert without manage rights (403); unique project
names in ctxmgr PG fixture for global name index; add test-env data repair SQL.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-20 09:18:36 +00:00
weichen and Cursor
848a0457a0
fix(chat): stop treating failed summary writes as durable
...
新增 chat_summaries 迁移。数据库写失败会返回错误并标明仅本进程可见。test_manager 血缘改用文档版本,不再写死 1。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-20 04:02:41 +00:00
weichen and Cursor
6c61a5bc37
docs(ctxmgr): seal SEMANTIC_SUMMARY_REPLACE with decision link (X-2)
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-18 04:02:18 +00:00
weichen and Cursor
e25a197410
fix(ctxmgr): memTurns 改为实例作用域并加 TTL/容量淘汰(R-4)
...
消除跨 ContextManager 实例共享;超过容量时淘汰 2h 陈旧回合。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-18 03:44:08 +00:00
weichen and Cursor
b53a97b36d
fix(ctxmgr): 补齐 rows.Err() 检查(R-2,ctxmgr 包)
...
A 类硬失败返回;manager 降级读路径用 slog.Warn 保持既有容忍语义。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-18 03:40:24 +00:00
weichen and Cursor
426af51365
fix(ctxmgr): EnsureChatSession 归属 COALESCE 改为已有值优先(R-1c)
...
防止跨用户通过 upsert/消息落库覆盖已绑定的 chat_sessions.user_id;新增 EnsureChatSessionOwned。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-18 03:39:08 +00:00
weichen and Cursor
f3351ce750
fix(chat): drop thin semantic_shadow stub after agent PU6 merge
...
Keep applySemanticShadow path from feature/pu6-semantic-summary.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-16 15:46:01 +00:00
weichen and Cursor
003bc7a5b9
merge: origin/feature/pu6-semantic-summary
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-16 15:45:45 +00:00
weichen and Cursor
8fdf50ab2a
feat(chat): SEMANTIC_SUMMARY_SHADOW optional deterministic annotate
...
Default off; unauthorized views skipped; facts preserved.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-16 15:40:25 +00:00
weichen and Cursor
d86528b45b
test(chat): characterize semantic summary shadow and auth negatives
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-16 15:37:50 +00:00
weichen and Cursor
209c997b22
feat(ctxmgr): add SEMANTIC_SUMMARY_SHADOW with deterministic fallback
...
Shadow evaluates a no-tool summarizer on caller-supplied messages; served
narrative stays deterministic and REPLACE remains unwired.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-16 15:37:50 +00:00
weichen and Cursor
fbda195b7f
fix(db): retire demo chat sessions with projects in 00046
...
Extend unapplied migration to mark 6001–6010 sessions demo_retired
and filter them (and retired projects) out of ListChatSessions.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-16 03:12:25 +00:00
weichen and Cursor
18d40fa8a9
feat(chatflow): add ChatLog and ContextAssembler ports
...
Keep ctxmgr as table owner and filter the authorized visible set in-process so window, stats, restore, digest, and prompt assembly share one Principal-scoped collection without a package move.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-15 04:11:16 +00:00
weichen and Cursor
7be873073c
feat(taskrun): finalize RunManifest in one unit of work
...
CAS the unique terminal status with the assistant turn, frozen manifest, envelope and FAV staging, and join ctxmgr writes through the same UoW instead of a process mutex.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-15 02:05:58 +00:00
weichen and Cursor
1abafa3176
fix(chat): add message scope columns and write-path resolution
...
Persist workflow_instance_id, stage_instance_id, scope_kind on chat
messages and task runs; resolve scope from live instance for chat and
document tasks so refresh can apply consistent stage authorization.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-13 03:06:08 +00:00
weichen
d6f5e0e28a
feat(projectcontext): bizdev 注入项目对话并完成 PG 治理 E2E
...
新增 ctxmgr 项目对话采集并接入 PM/TE BuildSnapshot;PG 测试统一 TEST_DATABASE_URL 并使用三正式工作流 key。
2026-09-13 02:50:23 +00:00
weichen and Cursor
4b168854ba
feat(abac): filter blended squad context and add PG governance E2E
...
Route BuildBlendedSquadContext through stage access gate, and add PG integration test covering activate, doc approval hook, notifications, ABAC, and stage advance.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-13 02:50:23 +00:00
weichen and Cursor
d9f3d40423
feat(abac): enforce stage access on chat, search and SSE streams.
...
Tag messages with stage_key metadata, block sends for unauthorized roles, and filter history/search/case results by allowed stages.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-13 02:50:23 +00:00
WeiCHEN and Cursor
f4e4357ddb
fix(agent): Chat Agent 全链路 P0-P5 整改
...
封堵鉴权旁路与导出 IDOR,DocGov 改服务端身份;对话层 PendingAction 接真实 docgov/taskrun;修复流式租约假死与会话级任务流;加固配置/doc_id/NULL;补齐 slog 与测试;前端 ErrorBoundary 与受控文档重试。
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-13 02:50:22 +00:00
WeiCHEN and Cursor
238f1d9346
feat(agent): unify async task FinalizeTaskRun projection to chat and runs
...
Extend taskrun executors to return full TaskRunResult, finalize assistant
placeholder content with artifact metadata, and map quality_failed terminal
state instead of metadata-only updates.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-13 02:50:22 +00:00
WeiCHEN and Cursor
e139b2b267
feat(api): observer task runs decoupled from SSE lifecycle
...
Add POST/GET/POST cancel task run APIs, background worker with event replay,
workspace reconcile, runner child cancel, and chat message metadata updates.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-13 02:50:22 +00:00
WeiCHEN and Cursor
c887bc0480
feat(db): add chat_turns idempotency table
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-13 02:50:21 +00:00
WeiCHEN and Cursor
0d395f2bf2
fix(ctxmgr): normalize dismissed_unread_ids for Postgres array insert
...
Ensure nil dismissed ID slices serialize as empty bigint arrays and
preallocate compressDismissed output to avoid NULL write failures.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-13 02:50:21 +00:00
WeiCHEN
c0d6ef7d80
feat(workflow): Phase 3 Coordinator 上下文、动作路由与工作流运行 API 集成
2026-09-13 02:50:21 +00:00
WeiCHEN
1fc7d0d01f
feat(export): 实现单次智能体回复导出、私密文档保存与隐私防泄露全套闭环 (Phase 0 - Phase 2)
...
- Phase 0: 实现服务端回复导出策略矩阵引擎 (replyexport.EvaluatePolicy)、数据库迁移 (2026-09-11-message-export-policy.sql)、SSE done 事件挂载与能力探测 API
- Phase 1: 构建前端 ReplyDocumentIR 语法树解析与渲染管道,支持 Markdown / DOCX 文件下载及带格式富文本剪贴板复制
- Phase 2: 实现私密自由文档 (freeform_documents) 领域服务、PostgreSQL 乐观锁版本管理、ACL 隐私隔离、一键共享与右侧栏编辑联动
- 专项修复:
1. 修复后台 API 路由注册并加入双向拉取同步,确保私密保存实时进入我的私密列表
2. 实现轻量回复专属 DOCX 生成与静默下载逻辑 (downloadDocxReply)
3. 将 LaTeX 公式转为标准 MathML 矢量标记,支持粘贴到 Microsoft Word / WPS 自动识别为原生公式
2026-09-13 02:50:21 +00:00
WeiCHEN
e8002b2243
feat(category): implement recategorize backfill engine and fallback mapping (Spec §3.4-3.5 A4-A5)
2026-09-13 02:50:20 +00:00
WeiCHEN
7d293833bf
feat(chat): 完成分类锚点坞(CategoryDock)与双轨制未读重构 (含方案A轮次归一化与起始位置居中)
2026-09-13 02:50:20 +00:00
WeiCHEN
487dc072f5
feat(history): 实现三模历史搜索、每日智能协同摘要与时间轴侧栏 (Phase P2)
2026-09-13 02:50:20 +00:00
WeiCHEN
54f1c88791
feat(history): 实现多级历史导航、分类筛选、日历联动与消息双向引用 (Phase P1)
...
- 后端核心与 API:
- 实现 ChatCategoryStat 结构体与 ListChatCategories 统计引擎 (Postgres + In-Memory 内存降级双轨)
- 注册 GET /api/v1/chat/categories 聚合接口
- 增强 GetChatDayMessages 支持自动根据 anchor_id 逆查 day_key,实现免猜测跨日检索
- 前端锚点导航引擎:
- 实现 anchorNavigator 模块 (快路径 DOM scrollIntoView + 1.8s 发光脉冲、慢路径跨日拉取、深链 Hash 解析)
- 编写 anchorNavigator.test.ts 单元测试并 100% 通过
- 分类过滤与轻量月历:
- 实现 CategoryFilterBar 水平分类筛选栏 (8 类业务标签,暗淡/高亮模式)
- 实现 HistoryCalendar 零依赖原生悬浮月历组件 (热度点与消息数,jumpToDate 快速定位)
- 消息引用与双向追溯:
- 消息气泡悬浮“引用”入口,点击提取发言人与摘要至输入框
- 实现 QuoteChip 待发引用标签与 QuoteCard 已发引用卡片
- 引用卡片点击直连锚点定位,快慢路径自动回溯
2026-09-13 02:50:20 +00:00
WeiCHEN
fb8f57398c
feat(history): 实现超长对话历史按日归档与滑动窗口 (Phase P0)
2026-09-13 02:50:20 +00:00
WeiCHEN
645bd06519
feat(prompt+cache): implement 10-section prompt template, true KB regulation recall, behavior rules and multi-level caching (P4)
2026-09-13 02:50:20 +00:00
WeiCHEN
1635ad0007
feat(coordinator): implement determinism-first query rewrite with ellipsis completion and pronoun resolution (P3)
2026-09-13 02:50:20 +00:00
WeiCHEN
640b672e8b
feat(ctxmgr): implement chat memory vectorization, privacy dual-gate retrieval and memory composer (P2)
2026-09-13 02:50:20 +00:00
WeiCHEN
c58d33b853
feat(ctxmgr): implement sliding window, rolling summarizer and DST task state (P1)
2026-09-13 02:50:20 +00:00
WeiCHEN
be659cba11
feat(chat): wire multi-turn dialogue broken links (G1/G2/G3/G9) with session restore
2026-09-13 02:50:20 +00:00
WeiCHEN
e5e80a6fc6
feat(core): update backend coordinator, docgov lease, squad workflow and web governance integration
2026-09-13 02:50:20 +00:00
WeiCHEN and Cursor
46b955f30d
feat(cli): 终端自推荐标杆案例渲染与全业务链 E2E 端到端回归实操
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-13 02:50:19 +00:00
WeiCHEN and Cursor
fb8232639b
feat(ctxmgr): 增加已批准受控文档自动切片向量化与标杆案例语义检索
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-13 02:50:19 +00:00
WeiCHEN and Cursor
db3dc282ba
feat(ctxmgr): 增加历史多轮会话列表查询、消息拉取与会话重构引擎
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-13 02:50:19 +00:00
WeiCHEN and Cursor
edf2f759ae
feat(ctxmgr): 增加离线确定性高维嵌入生成器与向量字面量工具
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-13 02:50:19 +00:00
WeiCHEN and Cursor
c290f3104b
feat(ctxmgr): 支持跨阶段项目事实黑板与成熟度状态持久化
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-13 02:50:19 +00:00
WeiCHEN and Cursor
96be8fdd94
feat(service): 实现单用户/项目多级上下文模型、时间衰减与用户习惯偏好管理
...
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-09-13 02:50:19 +00:00