chore: drop hive-mind provenance notes from comments (P2.2)

Comments that pointed at hive-mind-core files, the hive-mind OSS
mirror and its drift triage now describe the code as it is. The
in-process reranker caches its model in ~/.waggle/models, like the
embedder, when the caller passes no directory; the sidecar always
passes one.
This commit is contained in:
shumeiko.it
2026-11-01 00:42:48 +01:00
parent 613b23be17
commit c098f20872
20 changed files with 30 additions and 73 deletions

View File

@@ -4,7 +4,7 @@
* Before this module the vocabulary was redeclared in five places that had
* drifted apart — trust-model.ts (RiskLevel without 'critical'), confirmation.ts
* (a hardcoded ApprovalClass mapper), install-audit.ts (the widest set, plus a
* hand-duplicated SQLite CHECK in hive-mind-core/schema.ts), and
* hand-duplicated SQLite CHECK in the memory schema), and
* team-capability-governance.ts (a 4th set keyed on 'none'). A producer narrower
* than its store meant a `critical` risk could only ever be hand-written, and the
* FE modal couldn't represent the `critical`/`blocked` levels the audit recorded.
@@ -95,8 +95,8 @@ export function riskAtLeast(level: RiskLevel, threshold: RiskLevel): boolean {
}
/** Build a SQLite `CHECK (col IN (...))` clause body from a const value list, so
* the DDL constraint and the TS union can never drift (A3 single-sources both
* install-audit.ts and hive-mind-core/schema.ts from these arrays). */
* the DDL constraint and the TS union can never drift (install-audit.ts builds
* its CHECK from these arrays). */
export function sqlInList(values: readonly string[]): string {
return values.map((v) => `'${v}'`).join(', ');
}

View File

@@ -544,7 +544,7 @@ export interface McpInstance {
/**
* PRD §15.3 workspace contract — the normalized shape the sidecar route layer
* exposes to the new UI. The PERSISTED struct lives in `@waggle/hive-mind-core`
* exposes to the new UI. The PERSISTED struct lives in `@waggle/core`
* (`workspace-manager.ts` `WorkspaceConfig`, a superset carrying legacy fields).
* A route-layer normalizer (Phase 1) bridges the struct to this contract, filling
* defaults for pre-V2 workspaces (type from templateId/group, status 'active',