[pr-clusters] Merged PR clusters - 2026-12-02 - run 46846850047/1
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 20/100
- Tipo de issue
- Funcionalidade
- Clareza
- Precisa de esclarecimento
- Status de atividade
- Ativa
- Stack de tecnologia
- github, node.js, typescript
- Domínio
- tooling
Direção de pesquisa
This is a generated report describing merged PR clusters and the clustering program, rather than a request for a code change. If picking up related work, start by reading the generated pr-clusters-triplet.ts program and its strategy notes; the report suggests trying a stratified or adaptive triple sampler, or increasing the number of triples. Done would require a defined change and a way to compare the resulting clusters.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Overview
- Repository: githubnext/rig
- Window (UTC, start-inclusive, end-exclusive): 2026-11-02T09:03:45.976Z → 2026-12-02T09:03:45.976Z
- Total merged PRs: 49; classified: 48; unclassified: 1; clusters: 13
Top three clusters
| Rank | Theme | PRs | % of corpus | Summary |
|---|---|---|---|---|
| 1 | Rig sample additions and maintenance (t00734) |
7 | 14.3% | Automated [rig-tasks] sample additions plus a header refresh and a fast-uri bump. |
| 2 | Fixing Copilot integration workflow failures (t00888) |
7 | 14.3% | Fixes for Copilot CLI install, credentials, and model/routing problems (DeepSeek, Pi, pinned models). |
| 3 | Rig CI, samples, and docs fixes (t00892) |
5 | 10.2% | CI integration coverage, retired-model and stdin sample fixes, and schema/Claude guidance. |
Ranking is by size descending, then cluster ID ascending. The first two clusters tie at 7.
Cluster details
t00734, Rig sample additions and maintenance (7 PRs). Mostly bot PRs that add sample files and refresh the catalog. Its two maintenance PRs, #754 (dependency bump) and #906 (header refresh), are loosely related. Representative PRs: #734, #926, #945, #954, #964.
t00888, Fixing Copilot integration workflow failures (7 PRs). Repairs to Copilot-backed agentic and integration workflows. Representative PRs: #888, #890, #893, #910, #915.
t00892, Rig CI, samples, and docs fixes (5 PRs). A mixed cluster: CI coverage requirement, retired model and stdin sample fixes, and guidance updates. Representative PRs: #892, #933, #949, #973, #977.
Outside the top three: 10 clusters containing 30 PRs: t00831 (4), t00905 (4), t00923 (4), t00770 (3), t00894 (3), t00917 (3), t00744 (2), t00891 (2), t00931 (2), t00955 (2). One PR is unclassified: #961, because its average signed odd-one-out similarity to every group stayed below 0.1. Full membership is in the repo-memory record.
Strategy comparison
- History consulted: all 15 records in
pr-cluster-rigs(strategies, outcomes, and lessons), with full source read for the five most recent and for the most similar older ones. - Nearest prior strategies:
co-association-consensus-clustering(46612481419-1) andpairwise-verified-similarity-graph-components(45553032858-1). - Behavioral difference: prior strategies ask a model for whole partitions, per-PR labels, signatures or placements, or per-edge same/different verdicts on lexically chosen pairs. This one asks only relative odd-one-out comparisons on 272 random triples (17 shuffles of all 49 PRs). TypeScript converts the judgments into signed pairwise votes (positive and negative evidence) and runs average-linkage at similarity ≥ 0.1. The model never names or counts groups. 33 model calls in total.
- Evidence: title plus a 140-character URL-stripped body excerpt.
- Limitations: each pair is seen only about 5 times, so votes are noisy. The 0.1 threshold merged some loosely related PRs, e.g. #754 and #906 into the samples cluster. Several clusters are mixed "fixes" themes.
- Lessons: try a stratified or adaptive triple sampler, or more triples. No measured comparison with other strategies was made, so this strategy is not claimed to be better.
Rig source
SHA-256: 0b989149247c46f64f1fb92be5ee13041b42d763729b32f42b3bfe0175afe901. Repo-memory record: pr-cluster-rigs/46846850047-1.json.
Generated Rig program (pr-clusters-triplet.ts)
import { agent, s, workflow } from "rig";
import { readFileSync } from "node:fs";
type Pr = { number: number; title: string; body?: string };
// Agent role: judge which PR in each triple is the odd one out.
const judgeTriples = agent({
name: "judgeTriples",
model: "small",
input: s.object({ triples: s.string }),
output: s.object({
items: s.array(s.object({ t: s.int, odd: s.enum("A", "B", "C", "all", "none") })),
}),
instructions:
"Each block is 'T<n>' followed by three merged PRs A, B, C ('number | title | excerpt'). For every block decide which PR addresses a different engineering concern from the other two: answer A, B or C. Answer 'all' if all three share one concern, 'none' if all three are about different concerns. Return every listed T exactly once.",
});
// Agent role: name a cluster from its member PRs.
const describeCluster = agent({
name: "describeCluster",
model: "small",
input: s.object({ members: s.string }),
output: s.object({ label: s.string, summary: s.string }),
instructions:
"Each line is 'number | title | excerpt'. Return a short thematic label (max 6 words) and a one-sentence summary grounded only in these members.",
});
const clean = (t = "") => t.replace(/https?:\S+/g, "").replace(/[#>*|`]/g, " ").replace((s/redacted)+/g, " ").trim();
function rng(seed: number) {
let x = seed;
return () => {
x = (Math.imul(x, 1664525) + 1013904223) >>> 0;
return x / 4294967296;
};
}
// Workflow role: odd-one-out triplet judgments build a signed similarity matrix; TypeScript clusters it by average linkage.
export default workflow({
meta: {
name: "odd-one-out-triplet-clustering",
description: "Balanced random triples judged by odd-one-out, signed co-vote similarity, average-linkage clustering, naming",
phases: ["Sample", "Judge", "Cluster", "Describe", "Validate"],
},
body: async ({ call, phase }) => {
const corpus = JSON.parse(readFileSync("/tmp/gh-aw/agent/merged-prs.json", "utf8"));
const prs: Pr[] = [...corpus.prs].sort((a: Pr, b: Pr) => a.number - b.number);
const byNum = new Map(prs.map((p) => [p.number, p]));
if (prs.length < 3 || byNum.size !== prs.length) throw new Error("bad corpus");
const nums = prs.map((p) => p.number);
const line = (n: number) => `${n} | ${byNum.get(n)!.title} | ${clean(byNum.get(n)!.body).slice(0, 140)}`;
phase("Sample");
const rand = rng(20261202);
const triples: number[][] = [];
for (let r = 0; r < 17; r++) {
const perm = [...nums];
for (let i = perm.length - 1; i > 0; i--) {
const j = Math.floor(rand() * (i + 1));
[perm[i], perm[j]] = [perm[j], perm[i]];
}
for (let i = 0; i + 2 < perm.length; i += 3) triples.push([perm[i], perm[i + 1], perm[i + 2]]);
}
const batches: number[][][] = [];
for (let i = 0; i < triples.length; i += 14) batches.push(triples.slice(i, i + 14));
if (batches.length > 22) throw new Error("too many batches");
phase("Judge");
const key = (a: number, b: number) => (a < b ? `${a}-${b}` : `${b}-${a}`);
const score = new Map<string, number>();
const obs = new Map<string, number>();
const vote = (a: number, b: number, v: number) => {
score.set(key(a, b), (score.get(key(a, b)) ?? 0) + v);
obs.set(key(a, b), (obs.get(key(a, b)) ?? 0) + 1);
};
for (let g = 0; g < batches.length; g += 3) {
const group = batches.slice(g, g + 3);
const res = await Promise.all(
group.map((b, i) =>
call(
judgeTriples,
{ triples: b.map((t, k) => `T${k}\nA: ${line(t[0])}\nB: ${line(t[1])}\nC: ${line(t[2])}`).join("\n") },
{ label: `judge${g + i}` },
),
),
);
res.forEach((r, i) => {
if (!r) throw new Error(`missing judgment ${g + i}`);
const b = group[i];
const seen = new Set<number>();
for (const it of r.items) {
if (it.t < 0 || it.t >= b.length || seen.has(it.t)) throw new Error(`batch ${g + i}: invalid T${it.t}`);
seen.add(it.t);
const [x, y, z] = b[it.t];
if (it.odd === "all") { vote(x, y, 1); vote(x, z, 1); vote(y, z, 1); }
else if (it.odd === "none") { vote(x, y, -1); vote(x, z, -1); vote(y, z, -1); }
else {
const [p, q, o] = it.odd === "A" ? [y, z, x] : it.odd === "B" ? [x, z, y] : [x, y, z];
vote(p, q, 1); vote(p, o, -1); vote(q, o, -1);
}
}
if (seen.size !== b.length) throw new Error(`batch ${g + i}: incomplete judgments`);
});
}
phase("Cluster");
const sim = (a: number, b: number) => (score.get(key(a, b)) ?? 0) / ((obs.get(key(a, b)) ?? 0) + 1);
let groups: number[][] = nums.map((n) => [n]);
for (;;) {
let best = 0;
let bi = -1;
let bj = -1;
for (let i = 0; i < groups.length; i++)
for (let j = i + 1; j < groups.length; j++) {
let t = 0;
for (const a of groups[i]) for (const b of groups[j]) t += sim(a, b);
const avg = t / (groups[i].length * groups[j].length);
if (avg > best) { best = avg; bi = i; bj = j; }
}
if (bi < 0 || best < 0.1) break;
groups = groups.filter((_, k) => k !== bi && k !== bj).concat([[...groups[bi], ...groups[bj]]]);
}
const multi = groups.filter((g) => g.length >= 2).map((g) => [...g].sort((a, b) => a - b));
const unclassified = groups
.filter((g) => g.length === 1)
.map((g) => ({ pr: g[0], reason: "Average signed odd-one-out co-vote similarity to every group stayed below 0.1" }))
.sort((a, b) => a.pr - b.pr);
if (batches.length + multi.length > 38) throw new Error("call budget exceeded");
phase("Describe");
const described: ({ label: string; summary: string } | null)[] = [];
for (let g = 0; g < multi.length; g += 3) {
const out = await Promise.all(
multi.slice(g, g + 3).map((m, i) => call(describeCluster, { members: m.map(line).join("\n") }, { label: `describe${g + i}` })),
);
described.push(...out);
}
const clusters = multi
.map((m, i) => {
const d = described[i];
if (!d || !d.label.trim() || !d.summary.trim()) throw new Error("missing cluster description");
return { id: `t${String(m[0]).padStart(5, "0")}`, label: d.label.trim(), summary: d.summary.trim(), prs: m, size: m.length };
})
.sort((x, y) => y.size - x.size || x.id.localeCompare(y.id));
phase("Validate");
const seen = new Set<number>();
for (const n of [...clusters.flatMap((c) => c.prs), ...unclassified.map((u) => u.pr)]) {
if (!byNum.has(n) || seen.has(n)) throw new Error(`invalid or duplicate PR ${n}`);
seen.add(n);
}
if (seen.size !== prs.length) throw new Error("incomplete coverage");
if (new Set(clusters.map((c) => c.id)).size !== clusters.length) throw new Error("duplicate cluster id");
return {
repository: corpus.repository,
window: corpus.window,
strategy:
"Odd-one-out triplet clustering: 272 balanced random PR triples judged by a model, signed co-vote similarity matrix, TypeScript average-linkage at >=0.1, cluster naming",
totalPrs: prs.length,
modelCalls: batches.length + multi.length,
triples: triples.length,
clusters,
topThree: clusters.slice(0, 3).map((c) => c.id),
unclassified,
};
},
});
Validation and attempts
- Attempt 1: lint passed, typecheck passed, and execution succeeded via
run_rigwith 33 model calls. No repairs were needed. Source was 7,433 bytes. - Independent check in Node against the corpus: 49/49 PRs covered, no duplicates or unknown numbers, unique cluster IDs, ranking matches size descending then ID ascending, window matches the corpus.
- Run: https://github.com/githubnext/rig/actions/runs/46846850047
Generated by Monthly PR Clusters · copilot · auto (Claude Sonnet 5.5) · ~182 AIC · ⌖ ~2 AIC · ⊞ 10.7K · history
- Linguagem predominante
- TypeScript
- Estrelas
- 16
- Forks
- 0
- Merge médio
- 2h 7min
- PRs com merge (30d)
- 44
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de githubnext/rig
-
ai-agent automation
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 64/100
githubnext/rig#1013 ·
Mantenedores costumam responder em até 1 dia
-
agentic-workflows
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 25/100
githubnext/rig#1023 ·
Mantenedores costumam responder em até 1 dia
-
agentic-workflows
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
githubnext/rig#1022 ·
Mantenedores costumam responder em até 1 dia
-
ai-agent automation
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 1/100
githubnext/rig#1021 ·
Mantenedores costumam responder em até 1 dia
-
ai-agent automation
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 1/100
githubnext/rig#1020 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de githubnext/rig
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 86/100
ardia-browser/ardia#6391 ·
Mantenedores costumam responder em até 1 dia
-
Feature:Actions/ConnectorTypes Team:ResponseOps
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
elastic/kibana#309028 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
🔨 tool 🧰 library
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Orange-OpenSource/Orange-Boosted-Bootstrap#4035 ·
Mantenedores costumam responder em até 1 dia
-
Ajouter la page Plan du siteAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
DISIC/teleservice-conformite#230 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 90/100
rothgar/rabble.radio#410 ·
Mantenedores costumam responder em até 1 dia