Context
The first merge comment for an outside author since the program went live was posted on PR #20981 (run 43662768314, 2026-11-15T01:23Z). It reads "this is your first merged pull request in Neo.mjs" and "Contributor (1 merged)". The author had three merged pull requests here before it: #20704, #20833 and #20933. One day earlier the one-time note on #20933 gave the same account "Contributor (3 merged)".
The Problem
merge-comment.yml counts the merges before the event with a search that ends in a timestamp, merged:<2026-11-15T01:22:06+00:00. The + of the offset reaches GitHub's search as a space. The search then reads 00:00 as a word the pull request must contain, and finds none.
Measured for bfs2021 at the merge's instant. The two runs are dry runs of the workflow dispatched from a branch, under the job's own token:
| Query |
By hand |
In the job |
org:neomjs is:public is:pr is:merged author:bfs2021 merged:<…+00:00 |
3 |
0 (run 43664164287) |
| the same, scoped to the repository |
3 |
0 |
| the same without any scope |
546 |
50 |
by hand with a space in place of the +, scoped |
0 |
|
by hand with a space in place of the +, unscoped |
50 |
|
org:neomjs is:public is:pr is:merged author:bfs2021 merged:<…Z |
3 |
3 (run 43664300061) |
org:neomjs is:public is:pr is:merged author:bfs2021 (the claim responder's query) |
4 |
4 (run 43664300061) |
The job's 0 and 50 are exactly what a space gives by hand. A stamp that ends in Z counts right in the job.
Corrected on Nov 15, 02:45 CET. This ticket first suspected the org: qualifier under the job's token and said the claim limit was affected too. Both were wrong: the first dry run showed every scoped form at zero, and the second showed the claim responder's query, which carries no timestamp, counting right.
One consequence, live since the merge comment shipped: every merge of a returning outside author is greeted as a first one, at the lowest rung, with the first-merge badge paragraph.
The Architectural Reality
.github/workflows/merge-comment.yml:96: stamp turns the ISO string's Z into +00:00.
:107: mergedBefore is the search's total_count. An incomplete answer throws; a complete zero does not, and nothing logs the count.
test/playwright/unit/buildScripts/util/contributorStanding.spec.mjs runs the workflow's script against a fake client and pins the query's text, offset included. A text check cannot see what the transport does to a +.
The Fix
stamp keeps the Z.
- The run logs the count it read, so the next wrong comment is diagnosable from its log.
- The spec expects the
Z form and fails on any search query that carries a +.
- #20981's comment is corrected by a maintainer's reply. Earlier merges are covered by their one-time notes.
Acceptance Criteria
Out of Scope
- The rungs, the badge art and the wording of the comment.
- The claim responder: its query has no timestamp and counts right (run 43664300061).
- The badge generator in
neomjs/pages. Whether it builds a search with an offset is unread; a finding there is its own ticket.
Avoided Traps
- Changing the query on a hypothesis. By hand every form answers 3; only a run under the job's token separated them, and it refuted the first suspect.
- Encoding the
+ by hand. The client builds the URL; a Z needs no encoding at all.
Related
Parent: #20892 · #20893 (the merge comment) · #20967 (the token's scopes)
Live latest-open + closed sweep: checked the latest 20 open issues in neomjs/neo (#20892 to #20987) and an all-state search (merge comment first merged standing count) at 2026-11-15T01:40Z; no equivalent found. Backlog: 50 open, orange band; the owning epic #20892 cannot be a close target, so this leaf is filed under it.
A2A in-flight claim sweep: latest 30 messages, all read-states, at 01:33Z; no claim on the merge comment or the claim responder.
MC sweep: query_raw_memories on "merge comment says first merged pull request for a returning contributor; standing count zero", 5 results, none on this.
Own-assignment sweep: #20892, #20895, #20527, #20532 open in neomjs/neo; none covers the count.
Structure map: N/A (one workflow file and one existing spec).
Origin Session ID: 0bb3dc6b-4cd8-4925-8430-0e58a7ecf26b
Retrieval Hint: "merge comment first merged returning contributor count zero plus sign offset timestamp search"
Context
The first merge comment for an outside author since the program went live was posted on PR #20981 (run 43662768314, 2026-11-15T01:23Z). It reads "this is your first merged pull request in Neo.mjs" and "Contributor (1 merged)". The author had three merged pull requests here before it: #20704, #20833 and #20933. One day earlier the one-time note on #20933 gave the same account "Contributor (3 merged)".
The Problem
merge-comment.ymlcounts the merges before the event with a search that ends in a timestamp,merged:<2026-11-15T01:22:06+00:00. The+of the offset reaches GitHub's search as a space. The search then reads00:00as a word the pull request must contain, and finds none.Measured for
bfs2021at the merge's instant. The two runs are dry runs of the workflow dispatched from a branch, under the job's own token:org:neomjs is:public is:pr is:merged author:bfs2021 merged:<…+00:00+, scoped+, unscopedorg:neomjs is:public is:pr is:merged author:bfs2021 merged:<…Zorg:neomjs is:public is:pr is:merged author:bfs2021(the claim responder's query)The job's 0 and 50 are exactly what a space gives by hand. A stamp that ends in
Zcounts right in the job.Corrected on Nov 15, 02:45 CET. This ticket first suspected the
org:qualifier under the job's token and said the claim limit was affected too. Both were wrong: the first dry run showed every scoped form at zero, and the second showed the claim responder's query, which carries no timestamp, counting right.One consequence, live since the merge comment shipped: every merge of a returning outside author is greeted as a first one, at the lowest rung, with the first-merge badge paragraph.
The Architectural Reality
.github/workflows/merge-comment.yml:96:stampturns the ISO string'sZinto+00:00.:107:mergedBeforeis the search'stotal_count. An incomplete answer throws; a complete zero does not, and nothing logs the count.test/playwright/unit/buildScripts/util/contributorStanding.spec.mjsruns the workflow's script against a fake client and pins the query's text, offset included. A text check cannot see what the transport does to a+.The Fix
stampkeeps theZ.Zform and fails on any search query that carries a+.Acceptance Criteria
merge-comment.ymldispatched from the fix branch for #20981 logs three merges before the event, under the job's token. The run id is in the pull request.Zform and refuses a+in any search query.Out of Scope
neomjs/pages. Whether it builds a search with an offset is unread; a finding there is its own ticket.Avoided Traps
+by hand. The client builds the URL; aZneeds no encoding at all.Related
Parent: #20892 · #20893 (the merge comment) · #20967 (the token's scopes)
Live latest-open + closed sweep: checked the latest 20 open issues in
neomjs/neo(#20892 to #20987) and an all-state search (merge comment first merged standing count) at 2026-11-15T01:40Z; no equivalent found. Backlog: 50 open, orange band; the owning epic #20892 cannot be a close target, so this leaf is filed under it. A2A in-flight claim sweep: latest 30 messages, all read-states, at 01:33Z; no claim on the merge comment or the claim responder. MC sweep:query_raw_memorieson "merge comment says first merged pull request for a returning contributor; standing count zero", 5 results, none on this. Own-assignment sweep: #20892, #20895, #20527, #20532 open inneomjs/neo; none covers the count. Structure map: N/A (one workflow file and one existing spec).Origin Session ID: 0bb3dc6b-4cd8-4925-8430-0e58a7ecf26b
Retrieval Hint: "merge comment first merged returning contributor count zero plus sign offset timestamp search"