feat(investigation): publish incremental reference graphs
Publish graph deltas using the Server-owned cumulative graph contract. Validate historical comparison chart publications and consolidate Agent documentation.
This commit is contained in:
@@ -60,6 +60,12 @@ describe("task publication bridge", () => {
|
||||
expect(published[1]?.args).toEqual([contexts[0], taskId, {
|
||||
requestId, sourceSessionId: "client-0", evidence: undefined, executionPlan: undefined, report: undefined, progress,
|
||||
}]);
|
||||
const incremental = { summary: "失败后沿新路径继续", graph_update: {
|
||||
nodes: [{ node_id: "attempt_1", label: "查询", status: "failed", detail: "接口超时" }],
|
||||
edges: [],
|
||||
} };
|
||||
expect((await post("artifacts", { session_id: contexts[0], request_id: requestId, progress: incremental })).status).toBe(200);
|
||||
expect(published.at(-1)?.args[2]).toMatchObject({ progress: incremental });
|
||||
const report = { title: "报告", current_conclusion: "核验结束", conclusion_boundary: "授权数据范围",
|
||||
stage: "final", outcome: "concluded", stop_reason: null, data_gaps: [] };
|
||||
expect((await post("artifacts", { session_id: contexts[1], request_id: requestId, report })).status).toBe(200);
|
||||
|
||||
Reference in New Issue
Block a user