Skip to content

Commit 71eff22

Browse files
authored
Merge pull request #33 from Cyning12/task/engineering-tech-graph-v2-query-coverage-v1
feat(tech-graph): 闸口 C P3 文档 + T002 graph_v2 查询可达性 follow-up
2 parents 90b7c5d + 1fcf51c commit 71eff22

20 files changed

Lines changed: 1305 additions & 93 deletions

docs/_tech_graph/00_main.ai.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,17 @@ flowchart TD
1717
U1 --"::branches"--> T2S[[Text2SQL 子流程]]
1818
U2 --"::branches"--> T2S
1919
20+
U1 --"->"--> U2
21+
// → api/index.py#L576 unified_chat_stream_route(姊妹 SSE 入口)
22+
U2 --"->"--> U1
23+
// → api/index.py#L561 unified_chat_route
24+
U1 --"->"--> AUTH
25+
// → api/chatbi_principal.py::require_chatbi_principal
26+
U2 --"->"--> AUTH
27+
// → api/chatbi_principal.py::require_chatbi_principal
28+
U2 --"->"--> EV_TYPES
29+
// → api/unified_chat.py::_event
30+
2031
RAG --"加载"--> RAG_DOC[>10_flow_rag.md]
2132
T2S --"加载"--> T2S_DOC[>11_flow_text2sql.md]
2233

docs/_tech_graph/graph.json

Lines changed: 70 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,21 @@
266266
"to": "T2S_DOC",
267267
"type": "depends_on"
268268
},
269+
{
270+
"anchors": [
271+
{
272+
"path": "api/chatbi_principal.py",
273+
"symbol": "require_chatbi_principal"
274+
}
275+
],
276+
"from": "U1",
277+
"graph_id": "00_main",
278+
"label": "",
279+
"mark": "->",
280+
"sync": true,
281+
"to": "AUTH",
282+
"type": "depends_on"
283+
},
269284
{
270285
"anchors": [],
271286
"from": "U1",
@@ -286,6 +301,46 @@
286301
"to": "T2S",
287302
"type": "branches"
288303
},
304+
{
305+
"anchors": [],
306+
"from": "U1",
307+
"graph_id": "00_main",
308+
"label": "",
309+
"mark": "->",
310+
"sync": true,
311+
"to": "U2",
312+
"type": "depends_on"
313+
},
314+
{
315+
"anchors": [
316+
{
317+
"path": "api/chatbi_principal.py",
318+
"symbol": "require_chatbi_principal"
319+
}
320+
],
321+
"from": "U2",
322+
"graph_id": "00_main",
323+
"label": "",
324+
"mark": "->",
325+
"sync": true,
326+
"to": "AUTH",
327+
"type": "depends_on"
328+
},
329+
{
330+
"anchors": [
331+
{
332+
"path": "api/unified_chat.py",
333+
"symbol": "_event"
334+
}
335+
],
336+
"from": "U2",
337+
"graph_id": "00_main",
338+
"label": "",
339+
"mark": "->",
340+
"sync": true,
341+
"to": "EV_TYPES",
342+
"type": "depends_on"
343+
},
289344
{
290345
"anchors": [],
291346
"from": "U2",
@@ -306,6 +361,16 @@
306361
"to": "T2S",
307362
"type": "branches"
308363
},
364+
{
365+
"anchors": [],
366+
"from": "U2",
367+
"graph_id": "00_main",
368+
"label": "",
369+
"mark": "->",
370+
"sync": true,
371+
"to": "U1",
372+
"type": "depends_on"
373+
},
309374
{
310375
"anchors": [
311376
{
@@ -2133,8 +2198,8 @@
21332198
"type": "depends_on"
21342199
}
21352200
],
2136-
"freeze_id": "TECH_GRAPH_S2_FREEZE_20260517_V2_2",
2137-
"generated_at": "2026-05-17T11:20:32Z",
2201+
"freeze_id": "TECH_GRAPH_S2_FREEZE_20260519_V2_3",
2202+
"generated_at": "2026-05-18T07:07:16Z",
21382203
"graphs": [
21392204
{
21402205
"id": "00_main",
@@ -2194,9 +2259,9 @@
21942259
"label": "assistant.message"
21952260
},
21962261
{
2197-
"graph_id": "10_flow_rag",
2262+
"graph_id": "00_main",
21982263
"id": "AUTH",
2199-
"label": "鉴权"
2264+
"label": "AUTH"
22002265
},
22012266
{
22022267
"graph_id": "10_flow_rag",
@@ -2374,7 +2439,7 @@
23742439
"label": "event: chain"
23752440
},
23762441
{
2377-
"graph_id": "15_e2e_boundary",
2442+
"graph_id": "00_main",
23782443
"id": "EV_TYPES",
23792444
"label": "EV_TYPES"
23802445
},

docs/diary/jsonPKmermaid/fixtures/gate_ctx_c_v1/payloads/CTX_DUAL_MD/T001_embedding_dim_default.dual_track.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
schema: gate_ctx_c_dual_md_main_v1
33
arm: CTX_DUAL_MD
44
task_id: T001_embedding_dim_default
5-
freeze_id: TECH_GRAPH_GATE_C_FREEZE_20260518_V1_0
5+
freeze_id: TECH_GRAPH_QUERY_COVERAGE_FREEZE_20260519_V1_0
66
---
77

88
<!-- gate_ctx_c dual_track role=ai path=docs/_tech_graph/10_flow_rag.ai.md -->

docs/diary/jsonPKmermaid/fixtures/gate_ctx_c_v1/payloads/CTX_DUAL_MD/T002_unified_sse_chain_contract.dual_track.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
schema: gate_ctx_c_dual_md_main_v1
33
arm: CTX_DUAL_MD
44
task_id: T002_unified_sse_chain_contract
5-
freeze_id: TECH_GRAPH_GATE_C_FREEZE_20260518_V1_0
5+
freeze_id: TECH_GRAPH_QUERY_COVERAGE_FREEZE_20260519_V1_0
66
---
77

88
<!-- gate_ctx_c dual_track role=ai path=docs/_tech_graph/15_e2e_boundary.ai.md -->

docs/diary/jsonPKmermaid/fixtures/gate_ctx_c_v1/payloads/CTX_DUAL_MD/T003_ingest_admin_rpc.dual_track.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
schema: gate_ctx_c_dual_md_main_v1
33
arm: CTX_DUAL_MD
44
task_id: T003_ingest_admin_rpc
5-
freeze_id: TECH_GRAPH_GATE_C_FREEZE_20260518_V1_0
5+
freeze_id: TECH_GRAPH_QUERY_COVERAGE_FREEZE_20260519_V1_0
66
---
77

88
<!-- gate_ctx_c dual_track role=ai path=docs/_tech_graph/13_flow_supabase_rpc.ai.md -->

docs/diary/jsonPKmermaid/fixtures/gate_ctx_c_v1/payloads/CTX_V2_QUERY/T001_embedding_dim_default.subgraph.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"schema": "gate_ctx_c_v2_query_main_v1",
33
"arm": "CTX_V2_QUERY",
44
"task_id": "T001_embedding_dim_default",
5-
"freeze_id": "TECH_GRAPH_GATE_C_FREEZE_20260518_V1_0",
5+
"freeze_id": "TECH_GRAPH_QUERY_COVERAGE_FREEZE_20260519_V1_0",
66
"query": {
77
"op": "downstream",
88
"node_id": "ENV",
@@ -11,7 +11,7 @@
1111
"subgraph": {
1212
"schema_version": "graph_query_result_v1",
1313
"graph_schema_version": "graph_v2",
14-
"freeze_id": "TECH_GRAPH_S2_FREEZE_20260517_V2_2",
14+
"freeze_id": "TECH_GRAPH_S2_FREEZE_20260519_V2_3",
1515
"query": {
1616
"op": "downstream",
1717
"root": "ENV",

0 commit comments

Comments
 (0)