Repository navigation
impl(011): increment 6, the Node binding's local-embed feature and synthetic conformance parity - #485
Conversation
9bea9a1 to
3cff723
Compare
|
Local checks on darwin-arm64 at 3cff723:
|
|
Held until the 0.4.0 candidate commit is cut: merging adds |
AI review (no-findings)Reviewing the diff for bugs, security problems, and inconsistencies.
The
The Spec edits Spec 011 Increment 6 and spec 027 revision notes are consistent with each other and with the code. The No concrete defects found. {"head": "3cff7239c2736197e3776aae44bfb1c4a2d92a5c", "verdict": "no-findings", "findings": []}Subject: 2f7b8e6...3cff723, diff digest 93ac2f1837c18b2954204a39f0b5ac9f9e0741896aabba1d815ac86f1baf4fc9, 1 call(s). An AI comment is not an approval. |
3cff723 to
6666751
Compare
AI review (findings)Reviewing the diff for bugs, security issues, and inconsistencies. Core logic (Rust)
JavaScript (index.js / run.mjs)
Missing committed artifact
Consequence 1: Consequence 2: {"head": "6666751b6b08f19607447f33f724be67c70dea1f", "verdict": "findings", "findings": [{"path": "backends/rustev-backend-embed-linear/tests/support_routing/conformance.rs", "line": 177, "summary": "The case file tools/rustev-conformance/cases/local-embed/local-embed.support-routing.json is not committed: keep() panics in non-bless mode because every fixture file the case must reference by SHA-256 is new in this PR, so the file cannot pre-exist with correct content, breaking both make conformance and cargo test -p rustev-conformance."}]}Subject: 5d9923e...6666751, diff digest c7319e4d2eed595223ce3a3cec1d52fc670e6fd6880559bbb5d74ed3c1e649d3, 1 call(s). An AI comment is not an approval. |
6666751 to
8cc1075
Compare
AI review (findings)Reviewing the diff for bugs, security problems, and inconsistencies. Spec / governance changes (specs/011, specs/027): The
Missing committed case file — concrete defect:
{"head": "8cc1075033652608d36e8eb2039e6ea8ec4dc724", "verdict": "findings", "findings": [{"path": "tools/rustev-conformance/src/lib.rs", "line": 111, "summary": "aggregate() now iterates 'local-embed' and treats a missing directory as an error, but tools/rustev-conformance/cases/local-embed/local-embed.support-routing.json (generated by the bless path of every_local_embed_case_produces_its_expected_bytes) is absent from the PR, causing cargo test -p rustev-conformance --locked and the manifest test to fail."}]}Subject: 52dd6b1...8cc1075, diff digest e8dd81a9d07977f0f76ee9deeeffe158fa911909dffb839d456b313c0ba4dcee, 1 call(s). An AI comment is not an approval. |
|
Review note on 8cc1075: the finding on |
AI review (findings)Reviewing the diff for bugs, security problems, and inconsistencies. Missing case file
keep(
&format!("cases/local-embed/{ID}.json"),
&line(serde_json::to_vec_pretty(&case_file).unwrap()),
);That path (
No other concrete defects found. The JS-layer validation of {"head": "8cc1075033652608d36e8eb2039e6ea8ec4dc724", "verdict": "findings", "findings": [{"path": "backends/rustev-backend-embed-linear/tests/support_routing/conformance.rs", "line": null, "summary": "The case file `tools/rustev-conformance/cases/local-embed/local-embed.support-routing.json` is absent from the PR; `keep()` writes it alongside the committed fixtures and expected outputs, but it is not in the changed paths, so both conformance tests fail in non-bless CI: `every_local_embed_case_produces_its_expected_bytes` panics reading the missing file and `the_manifest_local_embed_cases_pass_through_the_rust_api` fails at `assert!(ran >= 1)`."},{"path": "tools/rustev-conformance/src/local_embed.rs", "line": 109, "summary": "`run` creates a `new_current_thread` Tokio runtime and calls `block_on`, which panics if the caller is already inside a Tokio runtime; the function is `pub` with no guard or documentation against async callers."}]}Subject: 52dd6b1...8cc1075, diff digest e8dd81a9d07977f0f76ee9deeeffe158fa911909dffb839d456b313c0ba4dcee, 1 call(s). An AI comment is not an approval. |
8cc1075 to
640dd2f
Compare
…nthetic conformance parity rustev-node gains spec 011's optional local-embed feature (3.17.1): LocalEmbedBackend.open, features() and the localEmbedBackends option of Engine.create, which registers an opened local backend like the rules backend. Without the feature open rejects ConfigRefused feature_disabled. The shared conformance suite gains the local-embed.support-routing case (3.17.5), compared byte for byte through the Rust API and the native binding built with the feature; make bindings builds it last.
640dd2f to
d31f55e
Compare
AI review (no-findings)Reviewing the diff for bugs, security issues, and inconsistencies. Governance / spec claims
Security / principle-VI conformance The No concrete defects found. {"head": "d31f55eaa532767c7aa3b77a92eea71612fefa6c", "verdict": "no-findings", "findings": []}Subject: 52dd6b1...d31f55e, diff digest 99066c201f6f16c024013cbf091caaa8ff11ed231e0d29f6018d97e707af7753, 1 call(s). An AI comment is not an approval. |
Spec 011 increment 6 (3.17.1, 3.17.5): the Node binding's optional
local-embedfeature and synthetic conformance parity. 011 staysimplementation: pending; no platform is qualified and nothing joins the release family (release-set.jsonis unchanged).What changes
integrations/rustev-node: Cargo featurelocal-embed, off by default, an optional path dependency onrustev-backend-embed-linearwith itssyntheticfeature (a synthetic bundle constructs on any target, A-73; anonnxbundle is still refusedunqualified_platform). The package exportsLocalEmbedBackend.open(config)(bundle verified off the JavaScript thread),features(), andEngine.create({ localEmbedBackends }), which registers an opened backend like the rules backend. Setup refusals areConfigRefusedwith the 011 3.7.2 code and the item; without the featureopenrejectsfeature_disabled. Unknown config members are refused (soembeddingCacheis refused until the backend's config takes the cache, 3.14).tools/rustev-conformance: alocal_embedcase block and runner (src/local_embed.rs) that takes the opened backend as a seam, so the suite never depends on the backend crate. New caselocal-embed.support-routing: the increment 5 synthetic bundle, four package cases and one blank message (text_empty->backend_unavailable), judgments and run records compared byte for byte.run.mjs nativeruns it; on a build without the feature it checksfeature_disabled(so every native matrix target checks 3.17.1's negative case), and--local-embedruns the parity.tests/support_routing/conformance.rs, which also blesses the case), added tomake conformance.make bindingsbuilds the binding with the feature last (after platform staging) and runstest/local-embed.test.mjsandrun.mjs native --local-embed.extendsedges forintegrations/rustev-node/andtools/rustev-conformance/(as 011 section 2 says the feature change declares them); a 027 record bullet (no 027 text change).Generated, review the source rather than the bytes:
tools/rustev-conformance/cases/**(fromtests/support_routing/conformance.rsandtests/manifest.rs),tools/rustev-conformance/expected/local-embed/**andfixtures/local-embed/**(same test),.statecraft/derived/**.Not in this change
local-embedon each native matrix target (011 3.2.3, counts toward qualifying a platform) needs abindings.ymlchange, which goes in its own pull request with the owner's Environment approval. Here it was built ondarwin-arm64only.rustev-servelocal-embed).Checks run locally (darwin-arm64)
See the follow-up comment for the full list and results.