| 41 | }; |
| 42 | |
| 43 | static int profile_has_mutator(const char *profile) { |
| 44 | static const char *const mutators[] = { |
| 45 | "index_repository", |
| 46 | "delete_project", |
| 47 | "manage_adr", |
| 48 | "ingest_traces", |
| 49 | }; |
| 50 | for (size_t i = 0U; i < sizeof(mutators) / sizeof(mutators[0]); i++) { |
| 51 | if (strstr(profile, mutators[i])) { |
| 52 | return 1; |
| 53 | } |
| 54 | } |
| 55 | return 0; |
| 56 | } |
| 57 | |
| 58 | TEST(agent_profiles_stable_tier_identity) { |
| 59 | ASSERT_STR_EQ(cbm_graph_tier_slug(CBM_GRAPH_TIER_SCOUT), "codebase-memory-scout"); |