feat(ingest): board webhook arm — fan-out sink + hydrating ingest queue (RIG-2883) - #706
Open
rigel-mintaka wants to merge 1 commit into
Open
feat(ingest): board webhook arm — fan-out sink + hydrating ingest queue (RIG-2883)#706rigel-mintaka wants to merge 1 commit into
rigel-mintaka wants to merge 1 commit into
Conversation
…ue (RIG-2883)
T1 of the board-ingestion forge poll→webhook cutover: `BoardWebhookArm`, a second consumer behind the one GitHub ingress.
`Enqueue` satisfies `server.ForgeEventSink`'s non-blocking contract — it filters to board-relevant issue events (`Change ∈ {OPENED, STATE, UPDATE} ∧ Kind == ISSUE`; PR-kind and COMMENT-change dropped) then channel try-sends; a full queue DROPS the event with an exported `expvar` drop metric + Warn (the T3 reconciler heals it).
`Run` drains until ctx cancel (returns nil, driver.go:95-99 idiom). Each drain COALESCES per NORMALIZED `(repo, number)` coordinate first, so an N-event edit storm on one issue costs ONE hydrate GET. Per coordinate: lowercase the event repo (Global Constraint 8), `IsEnabledRepo` gate, unconditional `GetIssueConditional(repo, number, "")`, then `IngestIssues` through the shared owner-strip/translate/stamp pipeline. Per-event errors log-and-continue; `ErrBudgetExhausted` pauses the drain until the client gate reopens.
Interfaces (`issueHydrator`, `TargetChecker`) are defined LOCALLY — structural seams the concrete `*forge.GitHub` and `*store.Store` satisfy at T5 wiring; this package imports no store and no concrete forge client on the hydrate path.
Refs RIG-2883
Co-authored-by: Matt Wilkinson <matt@rigel.build>
|
Compass engineering docs preview: https://compass-forge-rig-2883-t1-bo.compass-eng-docs.pages.dev Deployed from |
rigel-mintaka
marked this pull request as ready for review
August 28, 2026 05:41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
T1 of the board-ingestion forge poll→webhook cutover:
BoardWebhookArm, a second consumer behind the one GitHub ingress.Enqueuesatisfiesserver.ForgeEventSink's non-blocking contract — it filters to board-relevant issue events (Change ∈ {OPENED, STATE, UPDATE} ∧ Kind == ISSUE; PR-kind and COMMENT-change dropped) then channel try-sends; a full queue DROPS the event with an exportedexpvardrop metric + Warn (the T3 reconciler heals it).Rundrains until ctx cancel (returns nil, driver.go:95-99 idiom). Each drain COALESCES per NORMALIZED(repo, number)coordinate first, so an N-event edit storm on one issue costs ONE hydrate GET. Per coordinate: lowercase the event repo (Global Constraint 8),IsEnabledRepogate, unconditionalGetIssueConditional(repo, number, ""), thenIngestIssuesthrough the shared owner-strip/translate/stamp pipeline. Per-event errors log-and-continue;ErrBudgetExhaustedpauses the drain until the client gate reopens.Interfaces (
issueHydrator,TargetChecker) are defined LOCALLY — structural seams the concrete*forge.GitHuband*store.Storesatisfy at T5 wiring; this package imports no store and no concrete forge client on the hydrate path.Refs RIG-2883
Co-authored-by: Matt Wilkinson matt@rigel.build