Skip to content

[BUG/METRICS] llm_recorder.py's "House of Cards" report section is always empty -- real key is "fragile_dependency_chain" #370

Closed

Description

@squid-protocol

🛑 Problem Statement

Found by the dead key auditor (#325). gitgalaxy/recorders/llm_recorder.py:1179:

hoc = sys_bots.get("house_of_cards", [])

sys_bots is forensic_report.get("systemic_bottlenecks", {}), whose real keys are set in signal_processor.py:

bottlenecks = {
    "cascading_state_mutation": [],
    "fragile_dependency_chain": [],
    "undocumented_critical_path": [],
}

There is no "house_of_cards" key -- the closeness/error-risk bottleneck (fragile_dependency_chain, thematically the same concept as "a house of cards": high closeness centrality + high error risk) was apparently renamed at some point in signal_processor.py without updating this read site. The "🃏 House of Cards" section of the LLM markdown brief is always empty, silently hiding real fragile-dependency-chain bottlenecks from that report (even though the same data correctly appears wherever fragile_dependency_chain is read directly elsewhere).

🎯 Objective

The "House of Cards" report section should show the real fragile-dependency-chain bottleneck data.

🛠️ Proposed Implementation

Change sys_bots.get("house_of_cards", []) to sys_bots.get("fragile_dependency_chain", []), and confirm the rest of that report block's field names (c["score"], c["btw"], c["state_mutation"] per the nearby cascading_state_mutation block) actually match fragile_dependency_chain's entry shape (score, close, err per signal_processor.py) -- the field names likely need adjusting too, not just the top-level key.

✅ Acceptance Criteria

  • A repo with a real fragile-dependency-chain bottleneck produces a non-empty "House of Cards" section in the LLM brief, proven by a test.
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

    bugmetricspriority: medium

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions