@@ -1070,6 +1070,51 @@ def test_format_integration_markdown_lists_active_operator_queue():
10701070 assert "activepieces/activepieces#13985" not in active_queue
10711071
10721072
1073+ def test_format_integration_markdown_lists_manual_handoff_gates ():
1074+ module = load_growth_metrics_module ()
1075+ metrics = {
1076+ "collected_at_utc" : "2026-07-02T00:00:00+00:00" ,
1077+ "integrations" : [
1078+ {
1079+ "pr" : "punkpeye/awesome-mcp-servers#7153" ,
1080+ "html_url" : "https://github.com/punkpeye/awesome-mcp-servers/pull/7153" ,
1081+ "state" : "open" ,
1082+ "mergeable_state" : "clean" ,
1083+ "repo_stars" : 90_000 ,
1084+ "repo_forks" : 12_000 ,
1085+ "updated_at" : "2026-06-16T04:21:55Z" ,
1086+ "updated_age_days" : 16 ,
1087+ "next_action" : "submit Glama" ,
1088+ "known_review_gate_reason" : "Glama listing and score badge required before review" ,
1089+ "checks" : {"state" : "success" , "failed_check_runs" : [], "pending_check_runs" : []},
1090+ },
1091+ {
1092+ "pr" : "huggingface/optimum-intel#1801" ,
1093+ "html_url" : "https://github.com/huggingface/optimum-intel/pull/1801" ,
1094+ "state" : "open" ,
1095+ "mergeable_state" : "unstable" ,
1096+ "repo_stars" : 600 ,
1097+ "repo_forks" : 240 ,
1098+ "updated_at" : "2026-06-30T04:20:02Z" ,
1099+ "updated_age_days" : 0 ,
1100+ "next_action" : "review gate" ,
1101+ "checks" : {"state" : "unknown" , "failed_check_runs" : [], "pending_check_runs" : []},
1102+ },
1103+ ],
1104+ }
1105+
1106+ output = module .format_integration_markdown (metrics )
1107+
1108+ active_queue = output .split ("## Active operator queue" , 1 )[1 ].split ("## Manual handoff gates" , 1 )[0 ]
1109+ manual_gates = output .split ("## Manual handoff gates" , 1 )[1 ].split ("## Manual review gates" , 1 )[0 ]
1110+ assert "punkpeye/awesome-mcp-servers#7153" not in active_queue
1111+ assert (
1112+ "- [punkpeye/awesome-mcp-servers#7153](https://github.com/punkpeye/awesome-mcp-servers/pull/7153): "
1113+ "submit Glama; Glama listing and score badge required before review"
1114+ ) in manual_gates
1115+ assert "huggingface/optimum-intel#1801" not in manual_gates
1116+
1117+
10731118def test_format_integration_markdown_lists_known_review_gates ():
10741119 module = load_growth_metrics_module ()
10751120 metrics = {
0 commit comments