Files
ruvnet--RuView/v2/crates/homecore-assist/Cargo.toml
T
ruv d79c22e03a fix(homecore-assist): exact in-memory cosine k-NN, drop fragile :memory: HNSW
The semantic recognizer built a ruvector-core VectorDB at ":memory:"; under
full-workspace feature unification the file-storage backend is enabled and
":memory:" is an invalid Windows filename (os error 123), panicking via
.expect(). Replace the external index with an exact in-memory cosine k-NN over
the enrolled exemplars (embeddings are L2-normalised, so cosine = dot product).
For HOMECORE's small intent vocabularies this is faster, fully deterministic,
and removes the storage backend + cross-crate feature coupling entirely.
ruvector-core dropped from the crate (only used here). Workspace 3122 passed/0 failed.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-06-11 22:13:04 -04:00

56 lines
1.8 KiB
TOML

# HOMECORE-ASSIST — Voice/intent pipeline + ruflo agent bridge.
# Implements ADR-133 (HOMECORE-ASSIST), P1 scaffold:
# - IntentName, Intent, IntentResponse types
# - IntentRecognizer trait + RegexIntentRecognizer (P1)
# - IntentHandler trait + 5 built-in HA-mirroring handlers
# - RufloRunner trait + NoopRunner (P1 stub; real subprocess in P2)
# - AssistPipeline: utterance → recognizer → handler → response
[package]
name = "homecore-assist"
version = "0.1.0-alpha.0"
edition = "2021"
license = "MIT"
authors = ["rUv <ruv@ruv.net>", "HOMECORE Contributors"]
description = "HOMECORE voice/intent pipeline + ruflo agent bridge (ADR-133 P1 scaffold)"
repository = "https://github.com/ruvnet/RuView"
[lib]
name = "homecore_assist"
path = "src/lib.rs"
[dependencies]
# HOMECORE state machine — local path (ADR-127).
homecore = { path = "../homecore", version = "0.1.0-alpha.0" }
# Async runtime — same feature set as workspace.
# tokio::process is used by the P2 runner; included now so the trait compiles.
tokio = { version = "1", features = ["full"] }
# Async trait support for IntentRecognizer, IntentHandler, RufloRunner.
async-trait = "0.1"
# Error handling.
thiserror = "1"
# Serialisation (intents, slots, ruflo request/response payloads).
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# Regex for P1 intent pattern matching.
regex = "1"
# Structured logging.
tracing = "0.1"
[features]
default = ["semantic"]
# Enables SemanticIntentRecognizer's embedding-based exact cosine k-NN match.
# Self-contained: deterministic feature-hash embeddings + an in-memory cosine
# scan, with no external index/storage dependency (the small intent vocabularies
# make an exact scan faster and far more robust than an ANN backend).
semantic = []
[dev-dependencies]
tokio = { version = "1", features = ["full", "test-util"] }