Files
neuron-tai/tests
Dobromir Popov 5177db25b0 feat: implement real generated-gRPC protocol harness (DGR-024)
Real ShardRuntimeServicer process bound to a real localhost socket, driven
by a generated ShardRuntimeStub over grpc.insecure_channel from a separately
spawned subprocess. Proves direct-hop and opaque-relay (exact captured
request bytes re-sent, no reinterpretation) produce byte-identical server
responses, cross-checked against an independent server-side wire capture.

Fails closed on the required negative paths: stale route epoch, expired
deadline, malformed/non-tiling fragments, checksum failure, exhausted
flow-control credit (with in-band top-up), duplicate idempotency steps
(acked, not re-applied), and cancel — both in-band CancelSignal (single
work item vs whole session) and the out-of-band unary Cancel RPC, including
a Cancel that races ahead of SessionOpen.

Supersedes the earlier in-memory fake-seam approach for this ticket, which
a policy audit rejected under the no-fake-data rule; that code is not
reintroduced. Evidence README rewritten to describe the actual files.

11 passed in tests/test_shard_runtime_harness.py.
2026-07-21 13:39:58 +03:00
..
2026-07-01 10:57:44 +02:00
2026-07-14 12:26:10 +02:00
2026-07-11 22:25:30 +03:00
2026-07-14 12:26:10 +02:00
2026-07-11 22:25:30 +03:00
2026-07-15 13:55:38 +02:00
2026-07-11 22:25:30 +03:00
2026-07-15 12:54:51 +02:00
2026-07-14 12:26:10 +02:00
2026-07-14 12:26:10 +02:00
2026-07-11 22:25:30 +03:00
2026-07-11 22:25:30 +03:00
2026-07-11 22:25:30 +03:00
2026-07-14 12:26:10 +02:00
2026-07-15 12:35:32 +02:00
2026-07-11 22:25:30 +03:00
2026-07-11 22:25:30 +03:00
2026-07-11 22:25:30 +03:00
2026-07-11 22:25:30 +03:00
2026-07-11 22:25:30 +03:00
2026-07-11 22:25:30 +03:00
2026-07-11 22:25:30 +03:00
2026-07-12 02:44:12 +03:00
2026-07-11 22:25:30 +03:00
2026-07-11 22:25:30 +03:00
2026-07-11 22:25:30 +03:00