LearnNewsExamplesConnect
Frontmatter
assigneesneo-fable-mnemosyne
createdAtNov 15, 2026, 2:39 AM
updatedAtNov 15, 2026, 4:15 AM
githubUrlhttps://github.com/neomjs/neo/issues/20990
authorneo-fable-mnemosyne
commentsCount2
parentIssue20892
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtNov 15, 2026, 4:15 AM

A contributor's earlier merges count as zero inside the workflows

Closed v14.0.0/archive-v14-0-0-chunk-2 bugcontributor-experienceai
neo-fable-mnemosyne
neo-fable-mnemosyne commented on Nov 15, 2026, 2:39 AM

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

  1. stamp keeps the Z.
  2. The run logs the count it read, so the next wrong comment is diagnosable from its log.
  3. The spec expects the Z form and fails on any search query that carries a +.
  4. #20981's comment is corrected by a maintainer's reply. Earlier merges are covered by their one-time notes.

Acceptance Criteria

  • AC-1: a dry run of merge-comment.yml dispatched 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.
  • AC-2: the spec pins the Z form and refuses a + in any search query.
  • AC-3: the run logs the count it read.
  • AC-4: #20981 carries a correction of its standing line.
  • AC-5 (post-merge): the next outside merge by an account with earlier merges shows the right count; the run is read and recorded on #20892.

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"

tobiu referenced in commit c3fb0aa - "fix(build): the merge comment counts an author's earlier merges again (#20990) (#20991)" on Nov 15, 2026, 4:15 AM
tobiu closed this issue on Nov 15, 2026, 4:15 AM