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.

fix(memory): exclude guarded runtime backup paths from build tracing

Rahman59f627415047
diff --git a/docs/PROGRESS.md b/docs/PROGRESS.md
index ed04cb88..00b39d09 100644
--- a/docs/PROGRESS.md
+++ b/docs/PROGRESS.md
@@ -1,4 +1,4 @@
-## 2026-09-26 — Memory safety and second-brain visibility candidate (not released)
+## 2026-09-26 — Memory safety and second-brain visibility
Implemented fail-closed session-source preservation, preview/confirmation-first
owner cleanup, private local server-memory snapshots with isolated restore
@@ -6,7 +6,10 @@ verification, owner-only cross-principal graph discovery, paginated archived
learning with explicit errors and graph-persistence warnings, and bounded
Organization/workflow/recipe links in the pinned Memory app.
-This is a candidate, not a deployed or browser-verified release. Full resumable
+Full source verification passes 3,528 tests across 607 files with type, lint,
+coverage, architecture, documentation, contrast and high/critical audit gates.
+Runtime deployment and browser acceptance require the normal release proof.
+Full resumable
backup, source-release review UI, cache-only cleanup separation and Jev memory
admission remain open. No session, archive, memory, evidence or Docker volume was
deleted by this work. See [Memory safety](./MEMORY-SAFETY.md) for behavior,
diff --git a/lib/memory-backup/io.ts b/lib/memory-backup/io.ts
index ede2bbae..f56c6cee 100644
--- a/lib/memory-backup/io.ts
+++ b/lib/memory-backup/io.ts
@@ -11,7 +11,8 @@ export async function existing(file: string) {
if (!path.isAbsolute(file) || file.split(path.sep).includes("..")) throw new Error("unsafe path");
let current = "/";
for (const part of file.split("/").filter(Boolean)) {
- current = path.join(current, part);
+ // Host-owned runtime paths are guarded below, not deployable build assets.
+ current = path.join(/* turbopackIgnore: true */ current, part);
if ((await fs.lstat(current)).isSymbolicLink()) throw new Error("unsafe path");
}
}
diff --git a/lib/memory-backup/sources.ts b/lib/memory-backup/sources.ts
index 79aa3b3f..94f6f46b 100644
--- a/lib/memory-backup/sources.ts
+++ b/lib/memory-backup/sources.ts
@@ -10,7 +10,7 @@ export async function memorySources(): Promise<{ sources: Source[]; incomplete:
const home = path.join(os.homedir(), ".mso");
const recipes = workflowStorePath();
const sources: Source[] = [
- { key: "memory", path: path.resolve(process.env.OS_AGENT_MEMORY_DIR || path.join(home, "agent-memory")) },
+ { key: "memory", path: path.resolve(/* turbopackIgnore: true */ process.env.OS_AGENT_MEMORY_DIR || path.join(home, "agent-memory")) },
{ key: "session-archive", path: agentSessionArchiveRoot() },
{ key: "recipes", path: recipes },
{ key: "active-workflows", path: recipes + ".active.json" },