{"messages":[{"content":"You are a constitutional council ranking individual git commits for ownership allocation.\n\nCompare these two commits. Decide which contributed more lasting value to the project.\n\nJudge substance, not spectacle:\n- Prefer correct, lasting design and real bugfixes over churn, formatting, renames, or generated noise.\n- Prefer clarity and necessity over sheer line count. A small precise change can beat a large diffuse one.\n- Do not favor a side merely because its patch is longer or noisier.\n- Weight what the change does for the project, not the contributor's name.\n\nReturn ONLY a JSON object: {\"winner\": \"A\" or \"B\", \"ratio\": \"N:M\", \"explanation\": \"...\"}\nThe explanation must cite concrete differences in the patches (1-3 sentences).\n\nSide A — contributor: tommy-mor\nSide A — commit message:\n[14749a34] Show graph topology with pair suggestions\n\nExpose existing connectivity statistics in CLI output so voters can see sparse or disconnected scopes before adding an edge.\n\nCo-authored-by: Cursor \n\nSide A — unified diff (full patch):\ndiff --git a/cli/src/main.rs b/cli/src/main.rs\nindex 70435b412188a151c5e89e842a5de57f7480ddf2..abb5a55b49f60fe28fbfd4ec02715cb94ea0b4ec 100644\n--- a/cli/src/main.rs\n+++ b/cli/src/main.rs\n@@ -397,6 +397,29 @@ fn print_item_response(resp: &ItemResponse) {\n }\n }\n \n+fn format_connectivity_stats(stats: &ConnectivityStats) -> String {\n+ let density = if stats.pairs_possible == 0 {\n+ 0.0\n+ } else {\n+ stats.pairs_voted as f64 / stats.pairs_possible as f64 * 100.0\n+ };\n+ let component_label = if stats.components == 1 { \"component\" } else { \"components\" };\n+ let connection_status = if stats.comparisons_until_connected == 0 {\n+ \"connected\".to_string()\n+ } else {\n+ let comparison_label = if stats.comparisons_until_connected == 1 {\n+ \"comparison\"\n+ } else {\n+ \"comparisons\"\n+ };\n+ format!(\"{} {comparison_label} to connect\", stats.comparisons_until_connected)\n+ };\n+ format!(\n+ \"graph: {} items, {}/{} pairs ({density:.1}% density), {} {component_label}, {connection_status}\",\n+ stats.items, stats.pairs_voted, stats.pairs_possible, stats.components,\n+ )\n+}\n+\n fn print_pair_response(resp: &PairResponse) {\n println!(\"{} vs {}\", resp.left, resp.right);\n if let Some(b) = &resp.left_body {\n@@ -413,6 +436,10 @@ fn print_pair_response(resp: &PairResponse) {\n println!();\n println!(\"threads: {}\", resp.threads.iter().map(|t| format!(\"#{t}\")).collect::>().join(\" \"));\n }\n+ if let Some(stats) = &resp.connectivity {\n+ println!();\n+ println!(\"{}\", format_connectivity_stats(stats));\n+ }\n println!();\n println!(\"---\");\n println!(\"Before writing your comparison, talk to your human. Ask them about their relationship to these two items — which one has meant more to them, whether their perspective has changed over time, and where they land now. Listen to what they say. Then write a comparison that synthesizes their perspective with your own analysis. The best submissions on slug.social carry both voices — your reasoning and their experience.\");\n@@ -816,6 +843,43 @@ fn write_secret_file(name: &str, contents: &str) -> Result<()> {\n Ok(())\n }\n \n+#[cfg(test)]\n+mod tests {\n+ use super::*;\n+\n+ #[test]\n+ fn connectivity_stats_show_sparse_disconnected_graph() {\n+ let stats = ConnectivityStats {\n+ items: 9,\n+ components: 3,\n+ comparisons_until_connected: 2,\n+ pairs_voted: 8,\n+ pairs_possible: 36,\n+ };\n+\n+ assert_eq!(\n+ format_connectivity_stats(&stats),\n+ \"graph: 9 items, 8/36 pairs (22.2% density), 3 components, 2 comparisons to connect\"\n+ );\n+ }\n+\n+ #[test]\n+ fn connectivity_stats_show_connected_graph() {\n+ let stats = ConnectivityStats {\n+ items: 4,\n+ components: 1,\n+ comparisons_until_connected: 0,\n+ pairs_voted: 3,\n+ pairs_possible: 6,\n+ };\n+\n+ assert_eq!(\n+ format_connectivity_stats(&stats),\n+ \"graph: 4 items, 3/6 pairs (50.0% density), 1 component, connected\"\n+ );\n+ }\n+}\n+\n async fn run_scoped(base: &str, room: &str, sub: ScopedCmd) -> Result<()> {\n let room = room.trim();\n let client = http_client()?;\n\n\nSide B — contributor: tommy-mor\nSide B — commit message:\n[65bce99f] sibling groups #130\n\nSide B — unified diff (full patch):\ndiff --git a/server/src/html/garden.rs b/server/src/html/garden.rs\nindex 82c1b4b4f36ea13a906035a1789ba893222b3695..e3c56d124ab7b0fa08c7f9ae736103e6b7cf5862 100644\n--- a/server/src/html/garden.rs\n+++ b/server/src/html/garden.rs\n@@ -837,7 +837,8 @@ struct SiblingNavGroup {\n links: Vec,\n }\n \n-/// Siblings under the same parent, grouped like child rankings (components then isolates).\n+/// Siblings under the same parent: one group per ranking component (ordered list), then one\n+/// group per isolated unranked sibling (each shows rank `1`, separated like components).\n #[derive(Debug, Clone)]\n struct SiblingNavBar {\n groups: Vec,\n@@ -890,15 +891,12 @@ fn build_sibling_nav(\n groups.push(SiblingNavGroup { links });\n }\n }\n- if !rankings.unranked_items.is_empty() {\n- let links: Vec = rankings\n- .unranked_items\n- .iter()\n- .map(|u| SiblingNavLink {\n+ for u in &rankings.unranked_items {\n+ groups.push(SiblingNavGroup {\n+ links: vec![SiblingNavLink {\n path: u.clone().normalized_storage().to_storage_string(),\n- })\n- .collect();\n- groups.push(SiblingNavGroup { links });\n+ }],\n+ });\n }\n let sibling_total: usize = groups.iter().map(|g| g.links.len()).sum();\n if sibling_total <= 1 {\n@@ -1541,6 +1539,29 @@ mod tests {\n assert_eq!(nav.groups[1].links.len(), 1);\n }\n \n+ #[test]\n+ fn sibling_nav_splits_each_unranked_into_its_own_group() {\n+ let mut reduced = ReducerState::default();\n+ apply_ingest(\n+ &mut reduced,\n+ 1,\n+ \"@00000000-0000-0000-0000-000000000000:test:local/test\\n\\\n+ ~/topic {topic body}\\n\\\n+ ~/topic/a {alpha}\\n\\\n+ ~/topic/b {beta}\\n\\\n+ ~/topic/c {gamma}\\n\\\n+ ~/topic/d {delta}\\n\\\n+ {a beats b}\\n ~/topic/a 2:1 ~/topic/b\\n\",\n+ );\n+\n+ let model = build_item_page_view_model(&reduced, &ScopeId::Public, \"~/topic/a\");\n+ let nav = model.sibling_nav.expect(\"expected sibling nav\");\n+ assert_eq!(nav.groups.len(), 3);\n+ assert_eq!(nav.groups[0].links.len(), 2);\n+ assert_eq!(nav.groups[1].links.len(), 1);\n+ assert_eq!(nav.groups[2].links.len(), 1);\n+ }\n+\n #[test]\n fn item_page_model_builds_ranked_child_components() {\n let mut reduced = ReducerState::default();\n","role":"user"}],"model":"openai/gpt-chat-latest"}