Repository navigation
Conversation
AI review (findings)Reviewing the PR, which adds Finding 1 — Route function early-exits the function instead of advancing to the next operation In let end = template.find('}')?;Because the enclosing function returns Finding 2 — Panic in blocking thread misreported as In let (prefix, relative) = reference.as_str().split_once(':').unwrap();If the match tokio::time::timeout(limit.saturating_sub(started.elapsed()), work).await {
Ok(Ok(r)) => r,
_ => Reply::refusal(RefusalCode::QueueDeadline),
}A No other concrete defects were found. The bearer-token constant-time comparison (HMAC-SHA256 of digests), the inode check in root confinement, the Sigstore inclusion-proof requirement, and the {"head": "15c24b57083afc5485b453445bb2925544180ed6", "verdict": "findings", "findings": [{"path": "integrations/rustev-serve/src/transport.rs", "line": 333, "summary": "Inside the for-loop over operation_table(), `template.find('}')` uses `?` which returns None from the entire route() function rather than skipping to the next operation, so any template with `{` but no `}` silently disables all routing."},{"path": "integrations/rustev-serve/src/offline.rs", "line": 26, "summary": "After the Reference guard, `reference.as_str().split_once(':').unwrap()` can panic in the spawn_blocking thread; the JoinError is indistinguishable from a timeout and is reported to callers as RefusalCode::QueueDeadline."}]}Subject: 25ef0f0...15c24b5, diff digest 9ddb6ce4bf6668cce27a89d8914a88514a51baf22daa691e1e7fb5e65a4615b6, 1 call(s). An AI comment is not an approval. |
15c24b5 to
cc1288d
Compare
25ef0f0 to
7b4d23c
Compare
cc1288d to
1380df6
Compare
AI review (findings)Finding 1 — per-connection rate limiter ( The Finding 2 — delivery error string missing
Finding 3 — internal sources re-exported as public API (
{"head": "1380df60ae833fe69f04c12cedeedc378ad1d1d5", "verdict": "findings", "findings": [{"path": "integrations/rustev-serve/src/transport.rs", "line": 481, "summary": "The requests_per_second rate limiter is scoped per accepted connection (a new Arc<Mutex<Connection>> is allocated on each accept), not per service; a client that opens N connections can send N times the configured limit per second before any refusal."}, {"path": "integrations/rustev-serve/src/sinks.rs", "line": 261, "summary": "The ? operator on report_component_health propagates a &'static str error that lacks the '; may_have_received: <bool>' suffix appended by every other error path in sinks.rs; callers that parse that suffix to classify delivery uncertainty will misclassify this failure."}, {"path": "integrations/rustev-serve/src/lib.rs", "line": 18, "summary": "Internal source files of rustev-remote-http are re-exported as pub mod via #[path], making their full APIs part of rustev-serve's public surface without a crate boundary or versioned contract; changes to the included files silently change rustev-serve's public API."}]}Subject: 7b4d23c...1380df6, diff digest a8fffbb1818f8ce70b16bc9b6dc08672e93d53d135a9027a4c0f62ead340f02d, 1 call(s). An AI comment is not an approval. |
7b4d23c to
c398021
Compare
1380df6 to
cbe69b4
Compare
c398021 to
6003e86
Compare
cbe69b4 to
15be979
Compare
AI review (findings){"head": "15be9797e5f916f654676eed858cc0052d64de43", "verdict": "findings", "findings": [{"path": "integrations/rustev-serve/src/service.rs", "line": null, "summary": "Registration idempotency is broken: the idempotency check compares registration_id() values derived from the full PlanRegistration record including registered_at_ms (the current wall-clock time), so the newly-constructed record always has a different registration_id() than the stored one, causing every re-registration attempt to return RegistrationConflict instead of 200 OK."}]}Subject: 6003e86...15be979, diff digest 5adafa40f4dff1d5160898d71a56ff0174ddf85b0d2beeff5a7d1f8c3e69c557, 1 call(s). An AI comment is not an approval. |
15be979 to
3fcef4c
Compare
AI review (findings)Reviewing the PR which adds AnalysisSecurity and correctness reviewBearer token comparison ( Path traversal ( DER subject extraction ( Sigstore verification ( Admission/shutdown logic, idempotency, progress observer delivery ( Concrete defect — health state clobber in In crate::health::ComponentHealth {
described: true,
degraded: result.is_err(),
..Default::default() // ← resets invalidation_degraded, queue_depth, refusals, …
}
{"head": "3fcef4cc814c1ec78f166b1c3ff1ea4422437a0e", "verdict": "findings", "findings": [{"path": "integrations/rustev-serve/src/sinks.rs", "line": null, "summary": "Sinks::deliver calls report_component_health with ..Default::default(), which performs a full health struct replacement and silently resets host-reported fields (invalidation_degraded, queue_depth, refusals, etc.) to zero/false after every delivery attempt."}]}Subject: 6003e86...3fcef4c, diff digest 696a087e84854eef6a464b42b41e2bd30a1ad9e1e3487810ad05655f744693bc, 1 call(s). An AI comment is not an approval. |
3fcef4c to
9b1fb2c
Compare
9b1fb2c to
1102e6b
Compare
AI review (findings){"head": "1102e6b1ed336cd9c14eed8a6b6144d80a6aeb93", "verdict": "findings", "findings": [{"path": "integrations/rustev-serve/src/service.rs", "line": null, "summary": "The ticket-settlement task busy-polls for entry.reply with yield_now() instead of awaiting entry.finished.notified(), which the outer decide task notifies immediately after setting entry.reply; this causes repeated mutex acquisitions and unnecessary CPU consumption on every queued-delivery decision."}]}Subject: 3728c53...1102e6b, diff digest caa4b81d5ce7020be4fdb4d9ab7d3295b09730062184e5e206bcb6c4561a324a, 1 call(s). An AI comment is not an approval. |
98938d0 to
8448653
Compare
AI review (findings)ReviewFinding 1 — SSE stream silently truncated when decision task panicsFile: In the streaming request path, after tokio::spawn(async move {
let reply = service_task
.decide_stream(&id, principal, &bytes, deadline, Some(events))
.await;
let result = if let Ok(d) = Embedded::<ServeDecision>::parse(&reply.body) {
FinalResult::Decision(d)
} else if let Ok(r) = Embedded::<ServeRefusal>::parse(&reply.body) {
FinalResult::Refusal(r)
} else {
return; // ← drops `finish` without sending
};
finish.send(result);
});When the inner decision task panics, Finding 2 — Sigstore error-code misclassification for partially valid bundlesFile: if sigstore_verify::verify(
input.as_slice(),
&bundle,
&VerificationPolicy::any_identity(),
root,
)
.is_ok()
{
intact_but_untrusted = true;
}The first verification loop (with the configured identity/issuer policy) correctly checks {"head": "8448653b354234e6400227c7c2b8a3c744ee1406", "verdict": "findings", "findings": [{"path": "integrations/rustev-serve/src/transport.rs", "line": 550, "summary": "In the streaming path, when the decision task panics and decide_stream returns an empty body, the finish sender is dropped without calling finish.send(), causing the SSE stream to close without emitting a final event."}, {"path": "integrations/rustev-serve/src/signatures.rs", "line": 127, "summary": "The any_identity() call used to distinguish SignatureUntrusted from SignatureInvalid does not check certificate_verified() or tlog_verified(), so a bundle with an invalid certificate chain but valid message signature is misclassified as SignatureUntrusted instead of SignatureInvalid."}]}Subject: e735b7f...8448653, diff digest fdb3d1a6e2da4fe9e2f921815b6941d7e38243d8d1ce1a184209391a46774001, 1 call(s). An AI comment is not an approval. |
8ba10a9 to
26b32cb
Compare
AI review (no-findings)Review
|
26b32cb to
6548ee2
Compare
AI review (findings){"head": "6548ee2f8660ed8d139e52b62957ea625066998e", "verdict": "findings", "findings": [{"path": "tools/rustev-release/release-set.json", "line": null, "summary": "The new rustev-serve crate exclusion entry is missing the \"kind\" field (expected \"crate\") present on every other exclusion entry in the file; the replaced entry had it, and its absence may cause the release tooling to ignore or misparse this record."}]}Subject: c2d800e...6548ee2, diff digest edcee2817a7986ec9ca1f82792db390d794ac74beecefce49ebd1897acae8e58, 1 call(s). An AI comment is not an approval. |
6548ee2 to
889b307
Compare
889b307 to
54a3f06
Compare
Pull request was closed
Split from #186 (its AI review timed out repeatedly). Spec 042 3.7.3: `ProgressObserver` and `Runtime::decide_observed`; events carry step id, instance ids, outcome and the derivation class the compiled step determines, never a value; observer panics are contained and counted. With no observer, every runtime test, golden and conformance case is byte-identical. Checks: rustev-runtime tests and clippy, rustev-release archives, make gate, couple.
Split from #186, stacked on #189. The rustev-serve crate sources under the approved binding record (A-47): HTTP/1.1 and HTTP/2 over TLS 1.3 with required client certificates, Unix sockets, the handler layer, signed plan registration (Ed25519, offline Sigstore), decisions, the 042 3.5.1 refusal table, idempotency, lookup, cancellation, SSE streaming, health/readiness/metrics, shutdown and standalone sinks. Every review finding raised on #186 is already fixed here. Tests and fixtures follow in the next PR. Checks: build, clippy, make gate, couple.
…191) Split from #186, stacked on the sources PR. The loopback handler and transport tests, committed test certificates and synthetic Sigstore fixtures (with their regeneration script), and the section 5 coverage map. Checks: rustev-serve tests (all pass locally including socket tests), clippy, make gate, couple.
Spec 042 3.9 and 3.18, stacked on #186. The .proto is generated from the rustev.serve/1 operation table and the Rust gRPC code from it with tonic-prost-build 0.14.6 at development time (both committed, drift-checked, no build script). Messages carry the canonical JSON document as bytes; refusals use the 3.5.1 gRPC codes with rustev-refusal-bin; evidence_not_delivered is INTERNAL with rustev-decision-id. Same mTLS listeners and handler layer as HTTP; a loopback differential test shows byte-identical documents across transports. Adds the integration-only gRPC and Sigstore families to rustev-boundaries. Checks: rustev-serve (57 tests incl. socket tests, run outside the sandbox), rustev-boundaries, make boundaries, clippy, fmt, make gate, couple.
Spec 010 3.7 via spec 042, under the approved binding record (A-47), stacked on #183. HTTP/1.1 and HTTP/2 over TLS 1.3 with required client certificates, Unix sockets, the handler layer, signed plan registration (Ed25519 via ring; Sigstore verified offline via sigstore-verify), decisions, the 042 3.5.1 refusal table, idempotency, lookup, cancellation, SSE progress streaming via a new optional runtime observer (no-observer bytes unchanged), health/readiness/metrics, graceful shutdown, standalone sinks. gRPC, the image and shared conformance cases follow. Checks: rustev-serve, rustev-runtime, rustev-conformance and rustev-release tests; workspace clippy; fmt; boundaries; make gate; couple.