| 1105 | } |
| 1106 | |
| 1107 | static const char *ha_active_tier(yyjson_val *root, const char *event) { |
| 1108 | if (!event || strcmp(event, "SubagentStart") != 0) { |
| 1109 | return "Tier 2 verification"; |
| 1110 | } |
| 1111 | const char *agent_type = ha_obj_str(root, "agent_type"); |
| 1112 | if (!agent_type) { |
| 1113 | agent_type = ha_obj_str(root, "agentType"); |
| 1114 | } |
| 1115 | if (agent_type && |
| 1116 | (strcmp(agent_type, "scout") == 0 || strcmp(agent_type, "codebase-memory-scout") == 0)) { |
| 1117 | return "Tier 1 quick scout"; |
| 1118 | } |
| 1119 | if (agent_type && (strcmp(agent_type, "auditor") == 0 || |
| 1120 | strcmp(agent_type, "codebase-memory-auditor") == 0)) { |
| 1121 | return "Tier 3 full graph verification"; |
| 1122 | } |
| 1123 | return "Tier 2 verification"; |
| 1124 | } |
| 1125 | |
| 1126 | static const char *ha_no_project_index_guidance(const char *event) { |
| 1127 | return event && strcmp(event, "SubagentStart") == 0 |
no test coverage detected