Repository navigation
feat(comms): carry an optional issue or PR ref on asks (RIG-5173) - #2228
Merged
mattwilkinsonn merged 1 commit intoOct 15, 2026
Merged
mattwilkinsonn merged 1 commit into
mattwilkinsonn merged 1 commit into
Conversation
Contributor
Author
|
Review at head
|
|
Compass engineering docs preview: https://compass-comms-rig-5173-ask-r.compass-eng-docs.pages.dev Deployed from Changed pages: |
rigel-mintaka
marked this pull request as ready for review
October 12, 2026 04:42
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-comms/rig-5173-ask-ref
branch
from
October 12, 2026 20:53
0888150 to
7ab717a
Compare
Contributor
Author
|
Rebased onto #2212 at |
Contributor
Author
|
Rebase note: restacked on #2212 ( |
Ask gains ref = 4: the issue or pull request the ask concerns, in the board ref grammar (RIG-12 or owner/repo#12). askFromWire canonicalizes it with refs.Parse and refuses anything that is not exactly one ref with invalid_argument; askToWire returns it. The store already persists Ask.Ref in the ask JSONB, so it survives ListMessages and AnswerAsk, which copies the ask (ref included) into the answer snapshot. The product spec gains the requirement and two scenarios. Co-authored-by: Matt Wilkinson <matt@rigel.build>
rigel-mintaka
force-pushed
the
compass-comms/rig-5173-ask-ref
branch
from
October 13, 2026 08:43
7ab717a to
2484fb6
Compare
Contributor
Author
|
Rebase note: rebased onto |
mattwilkinsonn
approved these changes
Oct 15, 2026
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:
mainWhat
First half of status-board T5:
Ask.reffrom end to end.Askgainsstring ref = 4, the issue or PR the ask concerns, in the board ref grammar (RIG-12orowner/repo#12). Go and both TS clients are regenerated.askFromWirecanonicalizes the ref withrefs.Parse(forge owner and repo lowercased). It refuses anything that is not exactly one ref withinvalid_argument, and nothing is stored.askToWirereturns the ref.Ask.Refin the ask JSONB, andAnswerAskcopies the ask, ref included, into the answer snapshot.docs/specs/product/compass.mdgains "An ask may name the issue or pull request it concerns", with two scenarios.blocksFromWire→askFromWire:PostMessage,PostAsAccountandPostAsAccountByName. The test-only agent-update helper uses it too.Not in this PR: the board's asks section
T5's other half fills
AgentBoard.asksfromAsksByAuthor. Its only caller is T4'sListBoardsAsAccount(RIG-5172), which doesn't exist yet. Without that caller the function fails theunusedlint and would do nothing. compass-server (T4 owner) and I agreed the interface:func (c *Comms) boardAsks(ctx, viewer, agent store.AccountID) ([]*compassv1.BoardAsk, error)(24h window, max 20, newest first, viewer-clipped). It lands with or right after T4, together with its viewer-clip test. RIG-5173 stays open until then.The
comms_post_askrefparameter is T8 (agent lane).Tests
TestAskFromWireRef,TestAskRefRoundTripandTestPostMessageRejectsMalformedAskRefwere written before the mapping.TestAskRefRoundTripfollows the ask through post →ListMessages→RespondToAsk→ListMessages. The ask and the answer snapshot both carry the canonical ref.internal/commspgtest suite: 217 PASS, 0 FAIL, 0 SKIP. golangci-lint (with and without thepgtesttag) reports 0 issues. nilaway is clean.rumdlis clean, and design-ledger-gate passes.Stacked on #2212 (T2, compass-server). Its head is unchanged.
Spec-impact: docs/specs/product/compass.md (new ask-ref requirement)
Ledger-impact: none
Refs RIG-5173
Co-authored-by: Matt Wilkinson matt@rigel.build