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.

871 B
Raw Blame
import { describe, expect, it } from "vitest";
import { runMemoryCalibration } from "./bench-memory-calibration.mjs";

describe("P9 memory calibration", () => {
  it("keeps repeated corrections, temporal replacement, authority, and forget semantics deterministic", async () => {
    const result = await runMemoryCalibration({ correctionDepth: 12 });
    expect(result).toMatchObject({ calibrationVersion: "mso-memory-calibration-v1", scenarioCount: 6, passed: 6, accuracyPct: 100, deterministic: true, graphMemoryRequiredByCalibration: false });
    expect(result.scenarios.find((row) => row.id === "forget-no-future-resurrection")?.pass).toBe(true);
    expect(result.projection).toMatchObject({ correctionDepth: 12, ledgerRecords: 12, resolvedRecords: 1, finalValue: "Runtime-12" });
    expect(result.projection.projectionReductionPct).toBeGreaterThan(50);
  });
});