Skip to content

# [REFACTOR] Upgrade SignalProcessor Risk Equations for Class-Level Aggregation #109

Description

@squid-protocol

🎯 Objective

Modify the core execution loop in signal_processor.py to aggregate Function-level risks into their parent Classes before normalizing them into File-level scores.

🛠️ Implementation

  • prism.py already successfully links functions to classes (func["parent_class_name"] = cls["name"]).
  • Update the _calc_* methods (e.g., _calc_algorithmic_dos, _calc_cognitive_load) to iterate through classes first.
  • Sum the function impacts within the class boundary, generate a Class-level risk score, and then pass those Class aggregates up to the File-level Sigmoid normalizer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    metricsHeuristics, risk exposures, and topological math updatesrefactorStructural cleanup or optimization without altering behavior

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions