DGR-023: Make Python and C++ protobuf generation reproducible #7

Closed
opened 2026-07-16 20:36:01 +00:00 by popov · 1 comment
Owner

DGR-023: Make Python and C++ protobuf generation reproducible

  • Status / triage: completed; passes: true
  • Execution mode: AFK
  • Milestone: M1
  • Dependencies: DGR-021
  • Blocks (derived): DGR-024, DGR-037
  • Labels: area:protocol, area:build, type:tooling, priority:p0, ready-for-agent
  • Evidence class: model-free
  • Hardware: none
  • Model: generic
  • Upstream: no

Objective / description

Fresh Ralph session: read .scratch/distributed-gguf-runtime/RALPH-CONTEXT.md, source issue .scratch/distributed-gguf-runtime/issues/023-make-python-and-c-protobuf-generation-reproducible.md, and evidence READMEs for dependencies (DGR-021) before changing code. Inspect live source/tests rather than trusting legacy pass states. Objective: Generate identical Python/C++ protocol bindings without manual copying or checked-in build debris.

Acceptance criteria

  • Pin protoc, gRPC, and plugin versions or declare a verified compatible range.
  • Generate Python and C++ bindings into out-of-tree build/package locations through documented commands.
  • Add Python↔C++ round-trip and descriptor compatibility tests.
  • A clean checkout regenerates bindings deterministically or fails with an actionable toolchain error.
  • Applicable shared quality gates in prd.json pass, and the evidence handoff records exact commands/results, changed files, limitations, and dependency handoff.

Shared quality gates

  • Targeted deterministic tests pass; Python changes also pass python -m compileall packages tests.
  • git diff --check passes.
  • Default tests are model-download-free, API-credit-free, and GPU-free.
  • Evidence README records exact changed files, commands/results, limitations, and dependency handoff; no fabricated evidence or inherited completion credit.

Evidence handoff

Verified evidence: .scratch/distributed-gguf-runtime/evidence/DGR-023/README.md. Legacy evidence remains provenance only and grants no implementation completion credit.

<!-- GENERATED FROM prd.json — DO NOT EDIT AS AN INDEPENDENT SOURCE. prd.json IS AUTHORITATIVE. --> # DGR-023: Make Python and C++ protobuf generation reproducible - **Status / triage:** completed; `passes: true` - **Execution mode:** `AFK` - **Milestone:** `M1` - **Dependencies:** `DGR-021` - **Blocks (derived):** `DGR-024`, `DGR-037` - **Labels:** `area:protocol`, `area:build`, `type:tooling`, `priority:p0`, `ready-for-agent` - **Evidence class:** `model-free` - **Hardware:** `none` - **Model:** `generic` - **Upstream:** `no` ## Objective / description Fresh Ralph session: read `.scratch/distributed-gguf-runtime/RALPH-CONTEXT.md`, source issue `.scratch/distributed-gguf-runtime/issues/023-make-python-and-c-protobuf-generation-reproducible.md`, and evidence READMEs for dependencies (DGR-021) before changing code. Inspect live source/tests rather than trusting legacy pass states. Objective: Generate identical Python/C++ protocol bindings without manual copying or checked-in build debris. ## Acceptance criteria - [x] Pin protoc, gRPC, and plugin versions or declare a verified compatible range. - [x] Generate Python and C++ bindings into out-of-tree build/package locations through documented commands. - [x] Add Python↔C++ round-trip and descriptor compatibility tests. - [x] A clean checkout regenerates bindings deterministically or fails with an actionable toolchain error. - [x] Applicable shared quality gates in `prd.json` pass, and the evidence handoff records exact commands/results, changed files, limitations, and dependency handoff. ## Shared quality gates - Targeted deterministic tests pass; Python changes also pass `python -m compileall packages tests`. - `git diff --check` passes. - Default tests are model-download-free, API-credit-free, and GPU-free. - Evidence README records exact changed files, commands/results, limitations, and dependency handoff; no fabricated evidence or inherited completion credit. ## Evidence handoff Verified evidence: `.scratch/distributed-gguf-runtime/evidence/DGR-023/README.md`. Legacy evidence remains provenance only and grants no implementation completion credit. <!-- ralph-story-id: DGR-023 -->
popov added this to the M1 milestone 2026-07-16 20:36:01 +00:00
popov added status:ready and removed status:blocked labels 2026-07-16 23:35:49 +00:00
deploy added status:in-progress and removed status:ready labels 2026-07-17 19:50:22 +00:00
Collaborator

Controller verification and independent re-review complete. Published verified commit 902ecde to ralph/distributed-gguf-runtime. Exact Protobuf 33.1 / package 33.1.0 and gRPC C++ 1.82.1 at commit acccf84c0df20487d64101f528e5d426541ca4e5; service stubs/library built; CTest 1/1; protocol suite 50 passed, 2 optional skips; independent review PASS.

Controller verification and independent re-review complete. Published verified commit `902ecde` to `ralph/distributed-gguf-runtime`. Exact Protobuf 33.1 / package 33.1.0 and gRPC C++ 1.82.1 at commit `acccf84c0df20487d64101f528e5d426541ca4e5`; service stubs/library built; CTest 1/1; protocol suite 50 passed, 2 optional skips; independent review PASS.
deploy added status:completed and removed status:in-progressready-for-agent labels 2026-07-17 20:44:10 +00:00
popov added the ready-for-agent label 2026-07-21 18:54:11 +00:00
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: popov/neuron-tai#7