Skip to content

audit_shadow_apis (repo_data) is 99.7% zero with no confirmed producer -- investigate before fixing #1148

Closed

Description

@squid-protocol

🛑 Problem Statement

Found via #1144 (population-scale validation against 718 real repos). repo_data.audit_shadow_apis
is 99.7% zero across all 718 repos in master_db_v247.db. No producer was found via grep for
audit_shadow_apis/shadow_apis in gitgalaxy/core/, gitgalaxy/security/, or
gitgalaxy/metrics/ — the only match anywhere is llm_recorder.py reading a shadow_apis key
out of an unrelated api dict for Markdown report text, not the SQLite column.

Unlike the other findings in #1144, this one is not a clean 100% (99.7%, meaning a handful of
repos do have a nonzero value), so it needs confirmation before assuming "no producer at all" —
either there's a real but very rare producer path that wasn't found by a source grep (e.g.
computed dynamically, or aliased through a different key at some point in the pipeline), or the
nonzero handful are stale/leftover values from an older schema version merged in.

🎯 Objective

Determine whether audit_shadow_apis has a real, working (if rare) producer, or whether it's the
same class of dead weight as #ISSUE_A/#ISSUE_B/#ISSUE_C just with a few incidental nonzero rows.

🛠️ Proposed Implementation

Trace network_risk_sensor.py/full_api_network_map.py (the shadow-API/endpoint-mapping tooling
referenced by the component: shadow-api label) to confirm whether it ever sets
repo_data["audit_shadow_apis"], and if so under what conditions it's nonzero. If no real
producer is found, resolve the same way as #ISSUE_C.

✅ Acceptance Criteria

  • Producer confirmed or confirmed absent.
  • If absent: removed/deprecated per #ISSUE_A/#ISSUE_C precedent.
  • If present but rare: documented why it's expected to be near-zero (similar to the
    sec_/threat_/arch_ sparse-prefix columns already understood to be legitimately rare).

Activity

  1. added
    bug
    data-integrity
    component: shadow-api
    on Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcomponent: shadow-apidata-integritypriority: medium

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions