Three PRD gaps closed in one coherent batch — all were cosmetic or
scaffold-shaped, now real files:
Phase 39 (PRD:57):
+ config/providers.toml — provider registry (name/base_url/auth/
default_model) for ollama, ollama_cloud, openrouter. Commented
stubs for gemini + claude pending adapter work. Secrets stay in
/etc/lakehouse/secrets.toml or env, NEVER inline.
Phase 41 (PRD:115):
+ crates/vectord/src/activation.rs — ActivationTracker with the
PRD-named single-flight guard ("refuse new activation if one is
pending/running"). Per-profile granularity — activating A doesn't
block B. 5 tests cover the full state machine. Handler body stays
in service.rs for now; tracker usage integration is a follow-up.
Phase 41 (PRD:113):
+ crates/shared/src/profiles/ with 4 submodules:
* execution.rs — `pub use crate::types::ModelProfile as
ExecutionProfile` (backward-compat rename per PRD)
* retrieval.rs — top_k, rerank_top_k, freshness cutoff,
playbook boost, sensitivity-gate enforcement
* memory.rs — playbook boost ceiling, history cap, doc
staleness, auto-retire-on-failure
* observer.rs — failure cluster size, alert cooldown, ring
size, langfuse forwarding
All fields `#[serde(default)]` so existing ModelProfile files
load unchanged.
Still open from the same phases:
- Gemini + Claude provider adapters (Phase 40 — 100-200 LOC each)
- Full activate_profile handler extraction into activation.rs
(Phase 41 — module-structure refactor)
- Catalogd CRUD endpoints for retrieval/memory/observer profiles
(Phase 41 — exists at list level, no create/update/delete yet)
- truth/ repo-root directory for file-backed rules (Phase 42 —
TOML loader + schema)
- crates/validator crate (Phase 43 — full greenfield)
Workspace warnings still at 0. 5 new tests, all green.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
29 lines
1.0 KiB
Rust
29 lines
1.0 KiB
Rust
//! Phase 41 profile types.
|
|
//!
|
|
//! The existing `ModelProfile` (Phase 17) is aliased as
|
|
//! `ExecutionProfile` here — it continues to carry the model +
|
|
//! bindings + HNSW config needed to run inference. Three new profile
|
|
//! types land alongside: `RetrievalProfile`, `MemoryProfile`,
|
|
//! `ObserverProfile` — each owns a distinct slice of what used to be
|
|
//! bundled.
|
|
//!
|
|
//! Backward-compat rule (PRD Phase 41): existing `ModelProfile` on
|
|
//! disk continues to deserialize unchanged. New fields on the new
|
|
//! profile types are `#[serde(default)]` so old payloads load with
|
|
//! empty defaults.
|
|
//!
|
|
//! These are the canonical shapes — downstream code converts via
|
|
//! `From<ModelProfile> for ExecutionProfile` (they're the same struct
|
|
//! today, just named differently) and constructs the other three
|
|
//! as needed.
|
|
|
|
pub mod execution;
|
|
pub mod retrieval;
|
|
pub mod memory;
|
|
pub mod observer;
|
|
|
|
pub use execution::ExecutionProfile;
|
|
pub use memory::MemoryProfile;
|
|
pub use observer::ObserverProfile;
|
|
pub use retrieval::RetrievalProfile;
|