Repository navigation
impl(011): increment 2, the boundary check extension - #442
Conversation
rustev-boundaries refuses the local inference runtime family outside the embed-linear backend, in the contract and core graphs, and refuses hf-hub and ort's download features everywhere (011 3.18, 001 3.4.6).
AI review (findings)Looking at the two changed files, I'll examine the boundary-check logic and spec updates for concrete defects. Spec ( Code ( Finding —
|
Summary
Spec 011, increment 2: the boundary check extension (3.18), adding rule 3.4.6 to spec 001's checker.
tools/rustev-boundaries/src/lib.rsgains the local inference runtime family, matched by package name (ort,ort-sys,onnxruntime,onnxruntime-sys,tokenizers,tract-*,candle-*,tch,torch-sys), andhf-hubas a model hub client.rustev-contractandrustev-core(001 3.4.1's message).backends/rustev-backend-embed-linear/may depend on a family member; any other workspace crate reaching one, including through a helper, is refused, and a dependency on the backend crate withoutoptional = trueis refused (001 3.4.6).hf-hubandort'sdownload-binaries,copy-dylibsandfetch-modelsfeatures, declared or resolved, are refused everywhere, the backend included.Spec: a dated increment 2 paragraph in 011's implementation record.
Verification
cargo test -p rustev-boundaries --locked(47 tests; 8 new:local_inference_family_matches_exact_names_and_prefixes,local_inference_is_forbidden_in_contract_and_core_graphs,local_inference_direct_edges_require_the_backend_directory,local_inference_cannot_bypass_backend_through_a_helper,node_optional_local_backend_passes_but_required_dependency_fails,hf_hub_is_forbidden_even_in_the_backend_or_external_packages,every_ort_download_feature_is_forbidden_declared_or_resolved,direct_local_inference_purity_violation_needs_no_confirmation), clippy-D warnings,cargo fmt --all --check,cargo run -p rustev-boundaries,make gate,scripts/check-authored-content.sh.