011-semantic-backend

Local semantic backend: frozen embeddings and a linear head

Lifecycle approvedImplementation completeVerification unknownQualification unknown

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

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

  1. 011: Local semantic backend: frozen embeddings and a linear head
  2. 1. Purpose
  3. 2. Territory
  4. 2.1 Binding principles of #76
  5. 3. Behavior
  6. 3.1 Position, authority and provenance
  7. 3.2 The feasibility gate
  8. 3.3 Selections
  9. 3.4 The bundle and manifest
  10. 3.5 Identity
  11. 3.6 Runtime loading and platforms
  12. 3.7 Setup and refusals
  13. 3.8 Text, tokenization and truncation
  14. 3.9 Encoder, pooling and the linear head
  15. 3.10 Capabilities and the descriptor
  16. 3.11 Resources: workers, queue, memory and cost
  17. 3.12 Deadlines and cancellation
  18. 3.13 Numerical repeatability
  19. 3.14 Embedding cache
  20. 3.15 Evidence, replay and evaluation
  21. 3.16 Relationship to remote backends
  22. 3.17 Optional features in bindings, service and facade
  23. 3.18 Boundary check extension
  24. 3.19 Synthetic encoder and test bundles
  25. 3.20 Compatibility
  26. 4. Out of scope
  27. 5. Observable negative cases
  28. Facts relied on
  29. Acceptance
  30. Verification
  31. Implementation record
  32. Decisions at approval

Frozen anchors

No frozen anchors declared.