Repository navigation
feat(board): derive board refs, PR gates and stacks from stored rows (RIG-5171) - #2231
Merged
mattwilkinsonn merged 1 commit intoOct 15, 2026
Conversation
rigel-mintaka
changed the base branch from
compass-server/rig-5170-board-store
to
compass-comms/rig-5173-ask-ref
October 12, 2026 04:59
Contributor
Author
Review result: head ab9ea29Review-lead fan-out (correctness, security, design, style).
Dismissed with reasons: tracker_status (a later task adds its columns), per-ref recovery from corrupt stored rows (failing closed is intended), and the Linear fallback URL route (unspecified). No open findings. |
|
Compass engineering docs preview: https://compass-server-rig-5171-boar.compass-eng-docs.pages.dev Deployed from |
rigel-mintaka
marked this pull request as ready for review
October 12, 2026 05:37
mattwilkinsonn
added this pull request to stack #2242
October 12, 2026 19:18
mattwilkinsonn
approved these changes
Oct 12, 2026
rigel-mintaka
force-pushed
the
compass-server/rig-5171-board-derive
branch
from
October 12, 2026 20:53
ab9ea29 to
1b9db2f
Compare
Contributor
Author
…(RIG-5171) DeriveRefs resolves each task ref against stored pull request and issue rows in one batched read per kind, with no forge calls. PrGate applies the gate order (merged, closed, queue states, draft, conflicts, checks, changes requested, awaiting review, awaiting enqueue). An approval on an older commit is stale, and an unresolved thread holds a PR at awaiting review. StackOf orders an agent's open PRs by base/head ref. Issue reads now carry forge_updated_at for observed_at. Ledger-impact: none Co-authored-by: Matt Wilkinson <matt@rigel.build>
rigel-mintaka
force-pushed
the
compass-server/rig-5171-board-derive
branch
from
October 13, 2026 08:43
1b9db2f to
0d78f52
Compare
Contributor
Author
|
Rebase note: rebased onto |
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.
This PR is part of a stack containing 5 PRs:
mainSummary
Status board T3: derive board refs, PR gates and stacks from stored rows, with no forge calls. It is stacked on T5 (#2228) and T2 (#2212).
DeriveRefsresolves each task ref with one batched read per kind: PRs, issues, open authored refs, and authored coordinates.owner/repo#N: a PR row wins, then an issue row.KEY-Nmaps to provider 4 /linear.app.UNSPECIFIED, with no error.ownedcomes from the authorship row regardless of forge state.untracked_refslists open authored artifacts that no task names, matched on the full coordinate plus kind.observed_at_unix_mscomes fromforge_updated_at.PrGate, first match wins: merged, closed, queued / queue-failed / queue-removed, draft, conflicts, checks failed or pending, changes requested, awaiting review, awaiting enqueue.commentedreviews never replace a decision, anddismissedclears one.StackOf: bottom-up positions, and the PR with no child is the tip. At a fork, each leaf is a tip and a shared ancestor takes the lexically first leaf. DeriveRefs calls it per provider and host.Issue.ForgeUpdatedAtis threaded through every issue read.AuthoredCoordsForAgentquery.Not here:
tracker_statusstays empty; T12 adds its columns.commit_idand PRhead_shaingestion is T14 (RIG-5182, feat(forge): carry PR head SHA, mergeable state and review commit id (RIG-5182) #2194). Until that lands, approvals read as current.Tests
TestDeriveRefsFromStoreruns on seeded rows, including issueobserved_at.TestBoardCoordinateReadsAndOpenAuthoredRefs.pgtesttag), build, vet,sqlc-drift,inline-sql-gate, and themoon cipre-push gate.Refs RIG-5171
Ledger-impact: none