Skip to content

feat: add snapshot peer registration and policy fields to proto#3307

Open
rguliyev wants to merge 2 commits into
mainfrom
feat/p2p-proto-fields
Open

feat: add snapshot peer registration and policy fields to proto#3307
rguliyev wants to merge 2 commits into
mainfrom
feat/p2p-proto-fields

Conversation

@rguliyev

Copy link
Copy Markdown
Contributor

Adds SnapshotSourcePolicy (Create request) and SnapshotPeerRegistration (Pause response) plus their enums. Pure API-contract addition, no callers yet — orchestrator.pb.go regenerated via protoc, verified byte-identical to a fresh codegen run against this proto.

Adds SnapshotSourcePolicy (Create request) and SnapshotPeerRegistration
(Pause response) plus their enums. Pure API-contract addition, no
callers yet — orchestrator.pb.go regenerated via protoc, verified
byte-identical to a fresh codegen run against this proto.
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@cla-bot cla-bot Bot added the cla-signed label Jul 17, 2026
@rguliyev
rguliyev requested a review from bchalios July 17, 2026 21:34
@codecov

codecov Bot commented Jul 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good — pure additive proto/codegen change with no callers yet.

Extended reasoning...

Overview

Adds two new proto messages/enums (SnapshotSourcePolicy on SandboxCreateRequest, SnapshotPeerRegistration on SandboxPauseResponse) plus their supporting enums, and the corresponding regenerated orchestrator.pb.go. Confirmed via grep that no Go code outside the generated file references these new types yet — this is a pure API-contract addition with zero behavioral wiring in this PR.

Security risks

None. No new code paths execute; the fields are inert until a future PR wires them into the orchestrator/API. New field numbers (4 on SandboxCreateRequest, 2 on SandboxPauseResponse) don't collide with existing ones, and enum zero values default sensibly (AUTO, UNSPECIFIED).

Level of scrutiny

Low. This is generated code plus a proto schema change with no logic to review — the correctness question is really "does the .pb.go match the .proto," which is externally verifiable (protoc-generated, and the diff shows consistent field/message-index renumbering throughout).

Other factors

The bug-hunting system found nothing, and the sole flagged candidate (ambiguous zero-value for SnapshotPeerFailureReason) was already checked by the finder/verifier pipeline and ruled out — not something I need to re-litigate. Since there are no callers, there's no runtime behavior to test.

@rguliyev
rguliyev requested review from tvi and wj-e2b July 18, 2026 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant