Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

1.2 KB
Raw Blame
import { describe, expect, it } from "vitest";
import { runMemoryRetrievalCalibration } from "./bench-memory-retrieval-calibration.mjs";

describe("memory v3 retrieval evidence gate", () => {
  it("compares the existing local semantic encoder against lexical retrieval without adding a memory vector index", () => {
    const result = runMemoryRetrievalCalibration();
    expect(result.retrieval.passed).toBe(6);
    expect(result.retrieval.total).toBe(6);
    expect(result.semanticCandidate.encoder).toBe("mso-local-hybrid-v1");
    expect(result.semanticCandidate.passed).toBe(3);
    expect(result.semanticCandidate.total).toBe(6);
    expect(result.semanticCandidate.deltaPassedVsLexical).toBe(-3);
    expect(result.semanticCandidate.networkCalls).toBe(0);
    expect(result.semanticCandidate.persistedMemoryVectors).toBe(0);
    expect(result.semanticEvidenceGate.candidateImprovesRecall).toBe(false);
    expect(result.semanticEvidenceGate.vectorLayerRequired).toBe(false);
    expect(result.contextProjection.passed).toBe(4);
    expect(result.contextProjection.total).toBe(4);
    expect(result.graph.passed).toBe(3);
    expect(result.graph.total).toBe(3);
    expect(result.graph.graphStorageRequired).toBe(false);
  });
});