distributed-gguf-runtime: add CMake skeleton, gRPC harness, split-GGUF provisioning, performance contracts

DGR-019  Lock alpha/beta performance contracts (evidence + contract framework)
DGR-020  Run controlled whole-model GGUF baseline (benchmark results & contracts)
DGR-024  Real generated-gRPC protocol harness (shard_runtime_server.py + tests)
DGR-026  split-GGUF provisioning outside /home (provision script + manifest + tests)
DGR-028  Numbered patch-stack apply & verify (llama_cpp_dependency.py + UPSTREAM_LOCK.json)
DGR-029  Native CMake skeleton + deterministic CPU lane (UPSTREAM_LOCK.json + cmake gating)

New modules:
  packages/node/meshnet_node/dgr_performance/  — performance contract framework
  packages/node/meshnet_node/split_gguf/        — split-GGUF manifest & provisioning
  scripts/provision_split_gguf.py               — artifact provisioning CLI
  tests/test_dgr_performance_contract.py        — contract validation tests
  tests/test_split_gguf_manifest.py             — manifest tests
  tests/test_split_gguf_provision.py            — provisioning tests
  tests/test_shard_runtime_harness.py           — gRPC harness tests
This commit is contained in:
Dobromir Popov
2026-07-23 09:55:00 +03:00
parent 47bad0b7e1
commit 966aa10854
36 changed files with 7225 additions and 374 deletions

View File

@@ -19,6 +19,7 @@ fails the test.
from __future__ import annotations
import contextlib
import hashlib
import json
import os
import socket
@@ -371,6 +372,20 @@ def test_shard_runtime_real_subprocess_harness():
assert [bytes.fromhex(h) for h in relay_capture["requests"]] == relay_req_bytes
assert direct_capture["requests"] == relay_capture["requests"]
# Wire-frame hashes: the server-persisted SHA-256 over the exact
# captured request/response frame bytes must match independently
# computed hashes over what the client sent/received, and must be
# identical between the direct hop and the opaque relay carry.
expected_req_sha256 = hashlib.sha256(b"".join(direct_req_bytes)).hexdigest()
expected_resp_sha256 = hashlib.sha256(b"".join(direct_resp_bytes)).hexdigest()
assert direct_capture["requests_sha256"] == expected_req_sha256
assert direct_capture["responses_sha256"] == expected_resp_sha256
assert relay_capture["requests_sha256"] == expected_req_sha256
assert relay_capture["responses_sha256"] == expected_resp_sha256
print(
f"wire-frame sha256: requests={expected_req_sha256} responses={expected_resp_sha256}"
)
channel.close()
finally:
proc.terminate()