Skip to content

github repo-events stream can miss PullRequestEvent.opened for newly opened PRs #397

Description

@jolestar

Summary

When opening holon-run/agentinbox PR #179 on 2026-04-20, the shared github_repo source in AgentInbox did not receive a PullRequestEvent.opened event. I checked the backing UXC stream directly and the event is missing there as well, even though adjacent repo events for the same branch and time window are present.

This appears upstream of AgentInbox inbox matching/delivery and likely needs investigation in the GitHub repo-events collection path used by UXC.

Reproduction Context

What I Observed

1. The PR exists normally on GitHub

{
  "number": 179,
  "createdAt": "2026-04-20T13:10:52Z",
  "headRefName": "issue-178",
  "headRefOid": "a98bcd1c315547e4d575ceb49ffc412c4508a703",
  "state": "OPEN"
}

Command:

gh pr view 179 --repo holon-run/agentinbox --json number,title,state,createdAt,headRefName,headRefOid,url

2. AgentInbox repo source is healthy and checkpoint has advanced

  • source status: active
  • runtime status: running
  • checkpoint: afterOffset=68214
  • lastError: null

So this does not look like a local source crash or stalled consumer.

3. The UXC stream near the PR creation time does not contain PullRequestEvent.opened for #179

I read the backing stream around the relevant time window:

uxc stream read stream_affb0dc10c5977f1 --after-offset 68150 --limit 120

Relevant events present in that slice:

  • offset 68210: CreateEvent for branch issue-178, created_at=2026-04-20T13:10:31Z
  • offset 68211: PushEvent on main, created_at=2026-04-20T13:21:45Z
  • offset 68212: ReleaseEvent, created_at=2026-04-20T13:22:33Z
  • offset 68213: PushEvent on issue-178, created_at=2026-04-20T13:22:15Z
  • offset 68214: PushEvent on issue-178, created_at=2026-04-20T13:35:22Z

The expected PullRequestEvent.opened for PR #179 is not present in the stream.

4. GitHub repo events API showed the same omission in the current event window

I also checked:

gh api "repos/holon-run/agentinbox/events?per_page=30"

The result still included the branch CreateEvent at 2026-04-20T13:10:31Z and later PushEvents, but there was no PullRequestEvent.opened for #179.

Why I am filing this in UXC

AgentInbox is consuming the shared repo-events stream from UXC. Since the event is already missing in the upstream stream itself, this seems like either:

  • a GitHub repo events API omission that UXC currently cannot compensate for, or
  • a UXC repo-events collector gap around PR-open detection / polling / dedupe / pagination

Request

Please investigate whether the GitHub repo-events source in UXC can miss PR-open events like this, and whether we should add mitigation or fallback logic for PR creation detection.

Useful follow-up questions from my side:

  • Are we relying solely on repos/{owner}/{repo}/events for PR open detection?
  • If GitHub omits a PR-open event from that feed, do we have any secondary recovery path?
  • Is there any polling race, dedupe, or retention edge in the UXC collector that could drop this event even when adjacent events are preserved?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions