feat(data-agent): add evidence-backed autonomous analysis#26
Open
LienJack wants to merge 4 commits into
Open
Conversation
Build a durable analysis ledger and governed worker pipeline around the existing Text2SQL v2 runtime. Add signed outcome release gates, artifact-only replay, bounded research, KnowledgeAsset promotion, and the analyst workspace while preserving HOLD without real evidence.
Regenerate the repository knowledge graph after the Text2SQL accuracy and autonomous analysis architecture changes. The HTML visualization is omitted because the graph now exceeds the configured node limit.
Preserve the architecture review document allowlist while keeping generated graph artifacts ignored after the interrupted stash application.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Text2SQL 现在具备以证据为中心的自治分析闭环:从目标编译、Semantic/RAG 取证、Plan Ledger、受控执行、Validation、Correction 到 runId replay,均可生成可审计的 Artifact 与 Receipt。该能力保留现有 Text2SQL v2 运行缝合点,并把真实业务 Outcome 与合成评测严格分离。
本 PR 同时交付 Data Agent 自治分析平台和 Text2SQL 准确率闭环,因为二者共享同一套可信语义、执行许可、Receipt chain、修正传播与回放一致性边界。
Architecture
关键设计边界:
Text2SQLWorkflowRunner -> RunV2LangGraphStage -> Text2SqlV2LangGraphRunnerService,在其周围补充 Semantic Context Pack、Plan、七层 Receipt、Execution Permit、结果 Oracle 与最多 2 次 allowlisted AST 修复。shadow模式只采集候选证据,enforce才阻断交付。合成 focused/eval 结果不能替代真实签名 Outcome。What changed
/analysis工作台及共享analysis-task-protocol,覆盖任务创建、进度、证据、冲突、报告和控制操作。Verification
format:check、test、build通过。/analysisproduction build 与桌面/375px 浏览器验收通过。direct_v2_go。HOLD:当前仍缺少受信签名的真实 Text2SQL Outcome、代表性 analyst Outcome,以及相应 owner approval;本 PR 不将工程测试结果表述为生产发布批准。