feat(proto): canonical Issue/PullRequest type family + SubscribeEvents variant (SEA-1727 S1a) - #145
Merged
Merged
Conversation
seal-agent
force-pushed
the
compass-repo-1727-issue-pr-model
branch
from
August 5, 2026 00:58
377af56 to
6588bb4
Compare
…s variant (SEA-1727) S1a read contract: the canonical Issue/PullRequest type family, IssueState enum, and the SubscribeEventsResponse.issue oneof variant. Per Matt (2026-08-04) the issue-state WRITE path is agent-primary (UI read-only), pending a design amendment, so no UpdateIssueState RPC ships here. Refs SEA-1727
seal-agent
force-pushed
the
compass-repo-1727-issue-pr-model
branch
from
August 5, 2026 01:25
6588bb4 to
8f4a276
Compare
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.
SEA-1727 — S1a proto: canonical Issue/PullRequest type family + SubscribeEvents variant (read contract)
Proto half of S1 of the frozen
compass-issue-modelrecord (#1018, Active), reconciled by the two Active sibling amendments (compass-server-ownership-layer-amendment: single canonical wire family, no raw forge shape on the wire;compass-attribution-simplification: attribution is a plain display fact). The forge/tracker integration contract for the dogfood cut. Gates S1b (compass-server, SEA-1728) and S1c (compass-ui, SEA-1729) on the read path.Proto-only. Authored by compass-repo (sole proto writer).
Scope note — write path deferred (Matt, 2026-08-04)
This PR ships the read contract only. Matt ruled the issue-state write model is agent-primary: the UI is read-only for issue state, agents drive the board lifecycle, and users change issue state via the issue tracker, not Compass. That amends the frozen record's DL-031 (board was human-primary) and DL-032 (tracker was a downstream projection) and is pending a design amendment before any write surface ships. So the
UpdateIssueStateRPC that the frozen record specified is NOT in this PR — it is held for the amendment (which will place an agent-facing lifecycle path onAgentGateway, notCompassService, since egress-sealed agents cannot reachCompassService). The type family + read path here are needed under any write model, so they land now to unblock S1b/S1c.What's in it
proto/compass/v1/compass.proto:Issue(18 fields),PullRequest(15),IssueStateenum (UNSPECIFIED..ARCHIVED, 0-8),AgentAttribution,ForgeProvider/ForgeRef,ChecksSummary/Check,ChangedStats,TrackerRef,Review/ReviewThread/Comment.Issue issue = 16variant on theSubscribeEventsResponseoneof — the read/delivery surface; canonical objects reach the UI as snapshot + live fan-out off the server projection (design.md:349-450). OnlyIssue(PRs nest inIssue.prs = 17).AgentAttributionis the slimmed shape percompass-attribution-simplification(DL-094):{ string agent_handle = 1; reserved 2, 3; reserved "owner_handle", "verified"; }.Verification
compass-proto:ci5-green: buf lint (STANDARD;ENUM_ZERO_VALUE_SUFFIXarmed — both enums carry_UNSPECIFIED = 0), buf breaking (additive-only), gen drift (regen matches committed), gen-fence (canonical types are public — correctly unfenced).compass-go:testall packages OK (no classifier tripwire — no new RPC on the gated services).compass-client:ci(22 pass + typecheck),compass-agent:typecheckgreen.Sequencing
S1a (this, read contract) → S1b (SEA-1728, server ingestion/projection over the read types) → S1c (SEA-1729, UI reads the board). The agent-primary write path follows in a design amendment.
Refs SEA-1727.