Repository navigation
impl(011): the service registers local backends from configuration and joins the local-embed case (3.17.3, 3.17.5) - #535
Conversation
AI review (findings)Reviewing the diff against the governance context and the spec text. Code analysis
Spec update: The new FindingMakefile line 108 — conformance command targets only lib tests, not the transport integration tests. cargo test -p rustev-serve --locked --features local-embed --lib local_embed
The correct invocation to also cover the conformance integration tests would be {"head": "34773443953586e5610964a83a2060805af3e38e", "verdict": "findings", "findings": [{"path": "Makefile", "line": 108, "severity": "medium", "category": "correctness", "summary": "The conformance command uses --lib which only runs src/local_embed.rs unit tests; the transport-level integration tests in tests/conformance/local_embed.rs require --test conformance and are never executed by this target, contrary to the comment and spec text."}]}Subject: 230fa18...3477344, diff digest 63910ef5d50fd5702e8302b28725946ff1605407d1441df6a2a0f4baa5418796, 1 call(s). An AI comment is not an approval. |
AI review (findings)Reviewing the diff for bugs, security issues, and inconsistencies.
No security issues found: the config file is host-controlled, {"head": "95aa4b84555c1c6f06dd455c4c319ea375fb4357", "verdict": "findings", "findings": [{"path": "integrations/rustev-serve/tests/conformance/runner.rs", "line": 913, "severity": "low", "category": "correctness", "summary": "Function is still named every_serve_case_is_a_run_or_a_runtime_case after a third accepted category (local_embed.is_some()) was added, making the name inconsistent with the guard."}]}Subject: 230fa18...95aa4b8, diff digest 55118ffae8e8d9e1f88fc35f591d49c01cd2788a8dd75f2a3a2cced37247a337, 1 call(s). An AI comment is not an approval. |
|
Review note: the low-severity naming finding on |
95aa4b8 to
421d7ab
Compare
AI review (no-findings)Reviewing the diff across all changed files for correctness, security, and consistency with the governance context.
No concrete defects found. {"head": "421d7ab02b3079b974b7b26b6fe0f85f9a1825a6", "verdict": "no-findings", "findings": []}Subject: 101bbd8...421d7ab, diff digest 55118ffae8e8d9e1f88fc35f591d49c01cd2788a8dd75f2a3a2cced37247a337, 1 call(s). An AI comment is not an approval. |
…d joins the local-embed case (3.17.3, 3.17.5) With its `local-embed` feature, `rustev-serve --config FILE --local-embed FILE` opens spec 011's local embedding backend once per entry of the second file (binding name to bundle_dir, runtime_path, expected_artifact, workers, max_queued; unknown members refused), each bound under a `backend_bindings` entry whose backend is the compiled feature `local-embed`. Bundles are verified on a blocking thread before any listener starts; a setup refusal stops startup with its 3.7.2 code. Only the host names a bundle, path or runtime. Without the feature a configured local backend is refused `feature_disabled`, and the resolved graph holds no crate of the local inference family (3.20.2). The case `local-embed.support-routing` now names `serve-http` and `serve-grpc`. The service's conformance runner opens the committed SYNTHETIC bundle through the same code, decides the five requests over both transports and both listeners on the manual clock, and compares each result, judgment and delivered record byte for byte with the case's bytes, the same the Rust API and the native binding produce. `make conformance` runs it with the feature. Spec 011 gains the extends edge on the service and a dated record paragraph.
421d7ab to
a75a1f2
Compare
AI review (no-findings)Reviewing the diff for bugs, security issues, and inconsistencies.
|
Summary
Spec 011 3.17.3 and the service half of 3.17.5. Stacked on #534 (the manifest half: the
local-embedfeature and its optional dependency).local-embed,rustev-serve --config FILE --local-embed FILEopens spec 011's local embedding backend once per entry of the second file: a JSON object from binding name tobundle_dir, optionalruntime_path,expected_artifact,workersandmax_queued(3.7.1's members the backend takes today; unknown members refused, soembedding_cacheis refused until the configuration takes it). Each name must be abackend_bindingsentry ofrustev.serve-config/1whose backend is{"compiled": {"feature": "local-embed"}}, and every such binding must be configured. The service then checks the opened descriptor against the binding's expectedDescriptorId, as for any compiled backend. Bundles are verified on a blocking thread before any listener starts; a setup refusal stops startup, naming the binding and its 3.7.2 code. Embedding hosts uselocal_embed::open_allwithsinks::standalone_with_backends.feature_disabled. The resolved graph holds no crate of the 3.18 family. The image build is unchanged and does not enable the feature.local-embed.support-routingnow namesserve-httpandserve-grpc; the case file and manifest were re-blessed. Only the surfaces list changed; no fixture or expected output changed. The service's conformance runner (tests/conformance/local_embed.rs) opens the committed SYNTHETIC bundle through the samelocal_embed::open. It decides the five requests one after another on the manual clock over the mutual-TLS TCP listener and the Unix socket, through HTTP and gRPC, and compares each result, judgment and delivered run record byte for byte with the case's bytes. Those are the bytes the Rust API and the native binding produce. Per listener the HTTP and gRPC answers are byte-identical. Without the feature the runner checks that the case's backend is refusedfeature_disabled.make conformancerunscargo test -p rustev-serve --locked --features local-embed --lib local_embed.extendsedge onintegrations/rustev-serve/(owned by 010) and a dated 2026-11-06 Implementation record paragraph. Theimplementation:frontmatter is untouched.Checks (local, darwin-arm64)
cargo fmt --all --checkcargo clippy -p rustev-serve --all-targets --locked -- -D warnings, with and without--features local-embedcargo test -p rustev-serve --locked, with and without--features local-embedcargo test -p rustev-conformance --lockedcargo test -p rustev-backend-embed-linear --locked --test bundle support_routing::conformance::make boundaries(cargo run -p rustev-boundaries) andcargo test -p rustev-boundaries --lockedcargo tree -p rustev-serve -e normal,buildwithout the feature: no family crate--local-embedstops startup withfeature_disabled; with it, the bundle opens and the binding's expected descriptor is enforcedmake gate