[Atlas] Backfill KG edges for analyses flagged by quality gates

← All Specs

Goal

Backfill knowledge graph edges for analyses repeatedly flagged by the no_kg_edges quality gate. The task should select a concrete batch from analyses with zero linked KG edges, extract or attach defensible entity and relationship edges, and verify that the selected batch no longer contributes to the gate count.

Acceptance Criteria

☐ At least 25 analyses from the no_kg_edges backlog are inspected
☐ Each selected analysis receives KG edges or an explicit exception note explaining why extraction is not appropriate
☐ The post-change no_kg_edges count is recorded
☐ Relevant API or database checks pass

Approach

  • Query analyses contributing to the no_kg_edges gate, ordered by recency and scientific value.
  • Reuse existing KG extraction/linking helpers rather than ad hoc inserts.
  • Add edges with provenance to the source analysis and referenced entities.
  • Re-run the quality gate query and record before/after counts.
  • Dependencies

    • 6da303b5-62fc-4c88-9aff-9345784b5e8a - Failed quality gate triage

    Dependents

    • Senate quality gate backlog reduction
    • Atlas world-model coverage metrics

    Work Log

    2026-04-21 - Created from quality gate triage

    • Triage source: no_kg_edges had 463 fail rows in quality_gate_results; latest system-check payload reported 54 current affected analyses.

    File: qg_no_kg_edges_backfill_spec.md
    Modified: 2026-04-28 03:24
    Size: 1.5 KB