011-semantic-backend
Local semantic backend: frozen embeddings and a linear head
The first local model backend, `backends/rustev-backend-embed-linear/`: an ordinary `DecisionBackend` that embeds projected text with a frozen, host-provisioned sentence encoder run by ONNX Runtime through `ort`, and answers `classify`, `proposition` and `rubric` with logits from an externally produced, identified task-specific linear head. One canonical `rustev.embed-linear/1` manifest binds checkpoint, graph, tokenizer, preprocessing, truncation, pooling, precision, runtime, heads, labels, cost and tolerance into the artifact identity. Implementation is gated by a staged feasibility record (`rustev.embed-feasibility/1`) that passes or refuses each selection of #69 against measured limits before any inference dependency lands. No network, no download, no training, no provider; repeatability is a declared tolerance, not bitwise. Optional `local-embed` features in the Node binding, the service and the facade, and an opt-in in-process embedding cache. Amends spec 001 only by adding a local inference runtime family and one placement rule to the boundary check. Ratified (A-28) under R-36, which amends R-17 for this spec; R-43 authorizes the feasibility stages and pins the revision that ships an ONNX graph; implemented and complete (2026-11-06).
Read the full pinned specification ↗Relationships
depends on
depended on by
Claimed units
- establishes
{ "kind": "directory", "path": "backends/rustev-backend-embed-linear/" } - extends
{ "nature": "additive", "spec": "001-boundaries-and-authority", "unit": { "kind": "file", "path": "Cargo.toml" } } - extends
{ "nature": "additive", "spec": "001-boundaries-and-authority", "unit": { "kind": "file", "path": "Cargo.lock" } } - extends
{ "nature": "additive", "spec": "001-boundaries-and-authority", "unit": { "kind": "file", "path": "Makefile" } } - extends
{ "nature": "additive", "spec": "001-boundaries-and-authority", "unit": { "kind": "directory", "path": "scripts/acceptance/" } } - extends
{ "nature": "additive", "spec": "001-boundaries-and-authority", "unit": { "kind": "directory", "path": "tools/rustev-boundaries/" } } - extends
{ "nature": "additive", "spec": "031-public-api-and-release-family", "unit": { "kind": "directory", "path": "tools/rustev-release/" } } - extends
{ "nature": "additive", "spec": "027-node-and-wasm-bindings", "unit": { "kind": "directory", "path": "integrations/rustev-node/" } } - extends
{ "nature": "additive", "spec": "027-node-and-wasm-bindings", "unit": { "kind": "directory", "path": "tools/rustev-conformance/" } } - extends
{ "nature": "additive", "spec": "010-integrations", "unit": { "kind": "directory", "path": "integrations/rustev-serve/" } }
Source headings
- 011: Local semantic backend: frozen embeddings and a linear head
- 1. Purpose
- 2. Territory
- 2.1 Binding principles of #76
- 3. Behavior
- 3.1 Position, authority and provenance
- 3.2 The feasibility gate
- 3.3 Selections
- 3.4 The bundle and manifest
- 3.5 Identity
- 3.6 Runtime loading and platforms
- 3.7 Setup and refusals
- 3.8 Text, tokenization and truncation
- 3.9 Encoder, pooling and the linear head
- 3.10 Capabilities and the descriptor
- 3.11 Resources: workers, queue, memory and cost
- 3.12 Deadlines and cancellation
- 3.13 Numerical repeatability
- 3.14 Embedding cache
- 3.15 Evidence, replay and evaluation
- 3.16 Relationship to remote backends
- 3.17 Optional features in bindings, service and facade
- 3.18 Boundary check extension
- 3.19 Synthetic encoder and test bundles
- 3.20 Compatibility
- 4. Out of scope
- 5. Observable negative cases
- Facts relied on
- Acceptance
- Verification
- Implementation record
- Decisions at approval
Frozen anchors
No frozen anchors declared.