← Back to Pull requests

fix(elt): 中断入库对账与连续性长任务锁恢复 #3120

Open
unknown opened this pull request with 89 lines diff across 1 files
View on GitHub
unknown unknown commented on Nov 10, 2026 16:44 UTC
Author

修复范围


  • 批次跨进程工作锁区分活跃任务和中断任务;启动失败明确未启动,运行中断保留已知回执并提示核对,不自动重复入库。

  • 长工具执行释放账本锁,读进度和暂停后续步骤不再被长任务堵住;持久 claim 与迟到结果校验防止重复执行或覆盖暂停。

  • 预算已过期时不启动子进程;执行后超时/异常结果未知,等待对账。
  • 验证


    本地入库后端 141 passed / 3 PostgreSQL 环境 skipped,前端 81 passed;连续性最终 52 passed,另 handoff 17 passed / 2 子进程缺 langgraph 未验证。Ruff、格式、preflight 及增长请求绑定通过。最终远端 CI 待运行,不代表生产部署或客户验收。

    架构审查待完成


  • auto_ingest_service.py 1272→1330(+58)

  • task_continuity.py 2015→2114(+99)

  • config/source_growth_reviews.json 是请求,不是人工批准。
    生产净增 349 行,测试 407 行,更新记录 1 行,共 757 行;main 相对原基线余量 148 行,维护基线显式增加 609 至 2404641。未删无关代码凑数。

    兼容与限制


    暂停只停止后续步骤,不撤回已发生的副作用;没有新增 cancel 协议。无可信预算的 ELT 保持长任务政策,但不再占用账本锁。旧批次没有工作锁协议证据时不自动判死,需要逐笔核对。Windows 未实际执行;复用已有跨平台批次锁。原 JSON ledger 的整体跨进程写入设计不在本次重构范围。

    Diff: 89 lines (+66 / -23) across 1 files Reviewer: github-actions[bot] Review duration: 6m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.30) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.30 · 89 lines diff across 1 files
    0.30
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.269
    Real PR Conversation Timeline
    1 comments
    "Review active on #3120"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 29.9% (LOW) · Higher = larger blast radius
    29.9%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.9% · Safe to merge
    15.9%
    Repository