Skip to content

Commit eabdfd9

Browse files
committed
feat(conversation): persist graph context across exports
1 parent 184676a commit eabdfd9

12 files changed

Lines changed: 577 additions & 50 deletions

docs/diataxis/en/explanation/development-progress-dashboard.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ The key result is that the current code has moved further than the old plan word
1515
- workflow-artifact review follow-up is part of the runtime surface,
1616
- graph focus can render original markdown with matched-span highlighting,
1717
- a dedicated evidence pane now carries grounding inspection plus durable `knowledge_run` and `flashcard_batch` inspection,
18-
- grouped conversation knowledge points now retain relation-path and temporal-validity signals, and the composer uses them in structured explanation/next-action text.
18+
- grouped conversation knowledge points now retain relation-path and temporal-validity signals,
19+
- the composer now materializes an explicit `graphContext`,
20+
- and that `graphContext` now survives through conversation trace, snapshot persistence, and workspace export.
1921

2022
At the same time, the product surface is still behind the intended final behavior:
2123

@@ -34,12 +36,12 @@ Code-vs-plan reconciliation for this slice:
3436
| Answer area contraction to a single targeted answer | `agent_workspace.js` now keeps the full conversation result in runtime state while only rendering user-facing answer blocks (`structured_answer`, `main_markdown`, `html_artifact`) in the main chat surface. | Implemented current slice |
3537
| Hide developer-heavy evidence from the primary hit list | `workspace_panes.js` no longer renders inline knowledge previews or visible typed capability buttons in the left-side hit list; those flows now route into graph focus or the dedicated evidence pane. | Implemented current slice |
3638
| Durable evidence/claim inspector | `workspace_panes.js` now exposes a dedicated evidence pane for grounding metadata, `knowledge_run`, `knowledge_run_history`, `knowledge_run_compare`, and `flashcard_batch`; `agent_workspace.js` wires the API status strip into grounding inspection. | Implemented current slice |
37-
| DAG-native answer planning | `AgentConversationKnowledgePoint` now carries grouped `relationPath`, `relationKinds`, `relationPathAtomIds`, and `temporalValidity`, and `conversationComposer.ts` now uses those signals in overview, explanation, and next-action guidance. | Implemented partial slice |
39+
| DAG-native answer planning | `AgentConversationKnowledgePoint` now carries grouped `relationPath`, `relationKinds`, `relationPathAtomIds`, and `temporalValidity`; `conversationComposer.ts` now materializes an explicit `graphContext`; `KnowledgeLearningPlatform.ts` and `WorkspaceExportBundle.ts` now preserve it through trace, persistence, and export surfaces. | Implemented partial slice |
3840

3941
Immediate next direction from this point:
4042

41-
1. Extend the new DAG-aware conversation slice into a dedicated graph-conditioned context-assembly layer instead of relying on grouped relation hints alone.
42-
2. Preserve the new primary answer / right-pane-first interaction contract while growing the evidence pane toward a broader durable evidence ledger.
43+
1. Extend the new DAG-aware conversation slice into a dedicated graph-conditioned context-assembly layer instead of relying on grouped relation hints and a thin `graphContext` alone.
44+
2. Preserve the new primary answer / right-pane-first interaction contract while growing the evidence pane and `graphContext` toward a broader durable evidence ledger and graph explanation surface.
4345
3. Continue ownership reduction across `src/server.ts`, `KnowledgeLearningPlatform.ts`, `agent_workspace.js`, and `workspace_panes.js`.
4446

4547
Verification for the current code-backed alignment:
@@ -50,6 +52,7 @@ Verification for the current code-backed alignment:
5052
- `npm.cmd exec -- jest src/learning/conversationComposer.test.ts src/learning/KnowledgeLearningPlatform.test.ts src/learning/KnowledgeLearningPlatform.persistence.test.ts src/learning/KnowledgeLearningPlatform.program-f.test.ts src/agent_workspace.frontend.test.ts src/knowledge.api.contract.test.ts src/routes/registry.contract.test.ts src/pathbridge.handshake.contract.test.ts src/server.port.fallback.contract.test.ts src/workflows/WorkflowArtifactStore.test.ts --runInBand --no-cache`
5153
- `npm.cmd exec -- jest src/agent_workspace.frontend.test.ts src/agent_workspace.locale.contract.test.ts src/agent_workspace.contract.parity.test.ts src/agent_workspace.runtime.behavior.test.ts --runInBand --no-cache`
5254
- `npm.cmd exec -- jest src/export/WorkspaceExportBundle.test.ts --runInBand --no-cache`
55+
- `npm.cmd exec -- jest src/learning/conversationComposer.test.ts src/learning/KnowledgeLearningPlatform.test.ts src/export/WorkspaceExportBundle.test.ts src/learning/KnowledgeLearningPlatform.persistence.test.ts src/learning/KnowledgeLearningPlatform.program-f.test.ts --runInBand --no-cache`
5356
- `npm.cmd run test:agent-workspace:contracts`
5457
- `npm.cmd run build`
5558

docs/diataxis/zh/explanation/development-progress-dashboard.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
- workflow-artifact review follow-up 已进入运行时表面;
1818
- graph focus 已能渲染原始 markdown 并高亮 matched span;
1919
- 独立 evidence pane 现已承接 grounding inspection 以及 durable `knowledge_run` / `flashcard_batch` 检查;
20-
- grouped conversation knowledge point 现已保留 relation-path 与 temporal-validity 信号,composer 也开始把这些 DAG 信号写进结构化 explanation / next actions。
20+
- grouped conversation knowledge point 现已保留 relation-path 与 temporal-validity 信号;
21+
- composer 现在会显式构建 `graphContext`
22+
-`graphContext` 现在也会沿着 conversation trace、snapshot persistence 与 workspace export 一起传播。
2123

2224
但当前产品面仍未完全达到目标行为:
2325

@@ -36,12 +38,12 @@
3638
| 主回答区收缩为单一 targeted answer | `agent_workspace.js` 现在会保留完整 conversation result 到 runtime state,但主聊天面仅渲染用户面的回答块(`structured_answer``main_markdown``html_artifact`)。 | 当前切片已实现 |
3739
| 主命中列表不暴露开发者导向 evidence / action | `workspace_panes.js` 已不再在左侧命中列表中渲染 inline preview 或可见 typed capability button;这些流程现在会路由到 graph focus 或专门的 evidence pane。 | 当前切片已实现 |
3840
| durable evidence / claim inspector | `workspace_panes.js` 现已提供专门的 evidence pane,用于承接 grounding metadata、`knowledge_run``knowledge_run_history``knowledge_run_compare``flashcard_batch``agent_workspace.js` 也已把 API 状态条接成 grounding inspection 入口。 | 当前切片已实现 |
39-
| DAG-native answer planning | `AgentConversationKnowledgePoint` 现已保留 grouped `relationPath``relationKinds``relationPathAtomIds``temporalValidity``conversationComposer.ts` 也已在 overview / explanation / next actions 中消费这些信号| 当前切片已部分实现 |
41+
| DAG-native answer planning | `AgentConversationKnowledgePoint` 现已保留 grouped `relationPath``relationKinds``relationPathAtomIds``temporalValidity``conversationComposer.ts` 现已显式构建 `graphContext``KnowledgeLearningPlatform.ts``WorkspaceExportBundle.ts` 也已在 trace / persistence / export 中保留它| 当前切片已部分实现 |
4042

4143
从这里出发的即时推进方向:
4244

43-
1. 把当前 DAG-aware 对话切片继续扩展成专门的 graph-conditioned context-assembly layer,而不是停留在 grouped relation hint 层。
44-
2. 在保持新的主回答区与 right-pane-first 主交互契约稳定的前提下,把 evidence pane 继续扩展成更广义的 durable evidence ledger。
45+
1. 把当前 DAG-aware 对话切片继续扩展成专门的 graph-conditioned context-assembly layer,而不是停留在 grouped relation hint 与薄 `graphContext` 层。
46+
2. 在保持新的主回答区与 right-pane-first 主交互契约稳定的前提下,把 evidence pane `graphContext` 继续扩展成更广义的 durable evidence ledger / graph explanation surface
4547
3. 继续缩减 `src/server.ts``KnowledgeLearningPlatform.ts``agent_workspace.js``workspace_panes.js` 的所有权压力。
4648

4749
当前代码对齐切片的本地验证:
@@ -52,6 +54,7 @@
5254
- `npm.cmd exec -- jest src/learning/conversationComposer.test.ts src/learning/KnowledgeLearningPlatform.test.ts src/learning/KnowledgeLearningPlatform.persistence.test.ts src/learning/KnowledgeLearningPlatform.program-f.test.ts src/agent_workspace.frontend.test.ts src/knowledge.api.contract.test.ts src/routes/registry.contract.test.ts src/pathbridge.handshake.contract.test.ts src/server.port.fallback.contract.test.ts src/workflows/WorkflowArtifactStore.test.ts --runInBand --no-cache`
5355
- `npm.cmd exec -- jest src/agent_workspace.frontend.test.ts src/agent_workspace.locale.contract.test.ts src/agent_workspace.contract.parity.test.ts src/agent_workspace.runtime.behavior.test.ts --runInBand --no-cache`
5456
- `npm.cmd exec -- jest src/export/WorkspaceExportBundle.test.ts --runInBand --no-cache`
57+
- `npm.cmd exec -- jest src/learning/conversationComposer.test.ts src/learning/KnowledgeLearningPlatform.test.ts src/export/WorkspaceExportBundle.test.ts src/learning/KnowledgeLearningPlatform.persistence.test.ts src/learning/KnowledgeLearningPlatform.program-f.test.ts --runInBand --no-cache`
5558
- `npm.cmd run test:agent-workspace:contracts`
5659
- `npm.cmd run build`
5760

0 commit comments

Comments
 (0)