Repository navigation
impl(042): increment 4 part 2, the remote context client - #405
Conversation
AI review (no-findings)Reviewing the five changed paths: the new
Tests — cover: successful fetch with per-call attempt-id sequencing and exchange records; greedy source returning unrequested fields; undescribed source and zero in-flight at construction; full-queue refusal; abandon-and-cancel with late-answer counting; baseline+incremental invalidation polling. Scenarios match the implementation.
Spec increment — the prose accurately describes the implementation: SeamQueue fail-fast, transit-margin subtraction, attempt-id format, cancel-on-abandon, local-only/unrequested-field rejection, late-discard counting, exchange-record emission, invalidation-sequence validation. No concrete bugs, security defects, or inconsistencies found. {"head": "3d4a2496a6a8bf3f0bcf273d45aa6141a96b2e6f", "verdict": "no-findings", "findings": []}Subject: 6a428f8...3d4a249, diff digest 7ed9dddcb2f840a08109e23997f2323586e5fd5968d94e21152ff70fe3b66e4f, 1 call(s). An AI comment is not an approval. |
3d4a249 to
30f9934
Compare
AI review (no-findings)Reviewing the new
No concrete defects found. {"head": "30f9934ff6a37542eae6eb241430499b9e4d4fc8", "verdict": "no-findings", "findings": []}Subject: 8cd9c0c...30f9934, diff digest 7ed9dddcb2f840a08109e23997f2323586e5fd5968d94e21152ff70fe3b66e4f, 1 call(s). An AI comment is not an approval. |
30f9934 to
34a34b0
Compare
AI review (no-findings)Reviewing the five changed paths for bugs, security issues, and spec inconsistencies.
No concrete defects found. {"head": "34a34b0f1bda042e3e2a04723720d70994759d9f", "verdict": "no-findings", "findings": []}Subject: 0f2440a...34a34b0, diff digest fc0b8a1d00e29986827c32f47a53b4e48657495f5093e1cc01c8947ae76fb0e5, 1 call(s). An AI comment is not an approval. |
Spec 042 3.10 and 3.12, part 2: the
rustev.remote-context/1client inrustev-remote-http. Builds on part 1 (#403, merged).src/context_client.rs:RemoteContextClientimplementsContextSource. It describes the endpoint once at construction (capability failure on an unknown version, an undescribed source or an endpoint class other thanhost_operated). Every fetch goes through the boundedSeamQueue(immediateremote_seam_queue_full). A fetch sends the budget less the transit margin, the describe digest, the principal reference (spec 020) and the attempt id<escaped decision id>/context/<n>, at most once. An unrequested field or a local-only code ismalformed_response. When the caller stops waiting, the client asks the endpoint to cancel; an answer that still arrives is discarded, counted as late and recordedlate: true. The exchange records are digest-only, and a failure of the exchange sink is counted, never propagated.cancelandinvalidations(poll: baseline, increasing sequences) as public methods for the service.tests/context_client.rs: success with per-decision attempt numbering and exchange records, an unrequested field, an undescribed source, a full queue, abandonment with cancel and late counting, and polling.archive-policy.json: lists the file. The crate's unpacked bound goes from 320 KiB to 384 KiB (it now unpacks to 332.6 KiB), as impl(021): rustev-runtime unpacked bound for the next family version #330 did forrustev-runtime.Local:
cargo test -p rustev-remote-http --test context_client(6 pass), clippy-D warningsclean,cargo test -p rustev-release --test archivespasses.