Structurally ill-posed examples: 27% of the corpus
Independent of the metric question, and actionable now. Inspecting predictions against references showed several examples no model could answer, so the whole corpus was profiled:
Independent of the metric question, and actionable now. Inspecting predictions against references showed several examples no model could answer, so the whole corpus was profiled:
First run of the whole measurement path over real examples rather than toy ones. Qwen2.5-Coder-1.5B, 30 real OpenStack hunks, 12 changes, no adapter:
research(2026-09))Checked before running a pilot power analysis, and it changes how the result may be reported.
urlopen raises on 5xx, which bypassed the retry budgethttp_transport originally let urllib raise. urlopen raises HTTPError on 4xx and
5xx, so a retryable 500 from Qt propagated as a fatal exception and the retry logic in
gerrit._get never saw it, despite 500 being in its retryable set. The transport now
returns (status, headers, body) for error responses too, which is what makes the budget
and Retry-After handling real rather than decorative.
| instance | n=25 |
n=100 |
n=500 |
|---|---|---|---|
| OpenStack | - | 100 | - |
| Qt | 10 | 10 | 10 |
Qt caps a page at 10 changes regardless of n. Both months now fetched for real:
| organization | changes | pages | dropped as pre-cutoff |
|---|---|---|---|
| OpenStack, 2024-10 | 2,350 | 24 | 672 (29%) |
| Qt, 2024-10 | 3,863 | 387 | 527 (14%) |
Sixteen times the round trips for 1.6x the changes. Both totals match the figures the direction spec quotes, so the queries select what they were meant to.
The pre-cutoff drop rates differ substantially between the two organizations, 29% against
14%. That is worth reporting rather than averaging away: it means the after: operator's
update-time semantics bite the two instances differently, presumably because their review
cadences differ.
The paging loop is already robust to this because it advances by len(page) rather than by
the requested size, so nothing breaks; it is a cost and pacing fact, not a bug. It does mean
the two organizations cannot be fetched on the same assumptions, and a Qt fetch wants to be
resumable rather than one long run.
| OpenStack | Qt | |
|---|---|---|
| changes kept after cutoff | 1,678 | 3,336 |
| examples per change | 0.437 | 0.331 |
| projected examples, October 2024 | ~733 | ~1,103 |
Qt yields fewer examples per change but more in total, because it has twice the changes. Over a ten-month training window that is roughly 7,000 for OpenStack against 11,000 for Qt.
This is a sampling constraint, not just a statistic. Matched training set size is a controlled variable: without it the larger organization's adapter could win for reasons unrelated to conventions. So the usable per-organization corpus is bounded by the smaller, OpenStack, and Qt gets downsampled to match. The number to plan against is therefore OpenStack's, not the total.
Drop profiles differ too. Qt shows no final-patch-set drops in this sample and a higher rate of comments with no line anchor. Worth reporting per organization rather than pooled.
research(2026-09))A Stage 1 pre-registration item rather than a tuning knob: if the budget differed between arms, the comparison would measure the budget rather than the organization.
research(2026-09))Hunks now carry surrounding context. arXiv:2607.25851 (Rethinking Training Data for Generating Code Review Comments, read 2026-09-14) names three sources of misalignment between a code change and its review comment: semantic ambiguity, lack of actionability, and context dependence. The third is a real gap here, and it is the same root cause as a failure already measured: a bare hunk gave the model no way to know its indentation level, so a rewrite that was otherwise exactly right lost strict exact match. Context is prompt material only; the target stays the hunk and scoring compares only the hunk.
o=ALL_FILES returns only metadata
(lines_deleted, old_sha, size_delta). Hunks now come from Gerrit's own diff
endpoint, which also keeps hunk boundaries identical to what the reviewer saw.after: filters on last update, not creation. after:2024-10-01 before:2024-10-03
returned a change created 2024-08-26. The post-cutoff contamination argument rests on
creation date, so created_on_or_after enforces it client-side.build run against the real October 2024 OpenStack snapshot, 476 of 1,678 changes
processed in 95 seconds before a time cap.
Measured on live OpenStack data, 62 code-file comments:
| changes returned by the query | 2,350 in 24 pages, 13s |
| dropped as created before the cutoff | 672 (29%) |
| kept | 1,678 |
| snapshot size | 503 KB gzipped NDJSON |
| owners reduced to a pseudonym only | 1,678 / 1,678 |
The 2,350 matches the figure the direction spec quotes for October 2024, so the query is
selecting what it intended. The 29% is the after: bug measured rather than argued:
without the client-side created_on_or_after filter, 672 changes created before the
base model's release date would have entered the corpus, and the contamination argument
would have been false while appearing to hold.
The first real fetch. Numbers the Stage 1 report's sampling section needs, and which no amount of reading the API docs would have produced.
Wire fetch, build, dedup, split and freeze to real artifacts under
datasets/gerrit/<org>/.
The corpus and measurement code was built inside phalanx-fl and moved here. It had grown to
80% of that repo's test suite while importing exactly one function from it, in a repo whose
stated purpose is a Flower testbed.