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(', ');
}