| 1438 | } |
| 1439 | |
| 1440 | static const char *ha_active_tier(yyjson_val *root, const char *event) { |
| 1441 | if (!event || strcmp(event, "SubagentStart") != 0) { |
| 1442 | return "Tier 2 verification"; |
| 1443 | } |
| 1444 | const char *agent_type = ha_obj_str(root, "agent_type"); |
| 1445 | if (!agent_type) { |
| 1446 | agent_type = ha_obj_str(root, "agentType"); |
| 1447 | } |
| 1448 | if (agent_type && |
| 1449 | (strcmp(agent_type, "scout") == 0 || strcmp(agent_type, "codebase-memory-scout") == 0)) { |
| 1450 | return "Tier 1 quick scout"; |
| 1451 | } |
| 1452 | if (agent_type && (strcmp(agent_type, "auditor") == 0 || |
| 1453 | strcmp(agent_type, "codebase-memory-auditor") == 0)) { |
| 1454 | return "Tier 3 full graph verification"; |
| 1455 | } |
| 1456 | return "Tier 2 verification"; |
| 1457 | } |
| 1458 | |
| 1459 | static const char *ha_no_project_index_guidance(const char *event) { |
| 1460 | return event && strcmp(event, "SubagentStart") == 0 |
no test coverage detected