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(release): bound local dependency audit

Rahman95ec9f87c5c6
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index 1db346f5..ec4b30c9 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -10,6 +10,10 @@ this is the *what*, and it is what Settings → About shows as “What's new”.
- `assistant` turn Alfa into MSO cockpit
+**Fixed**
+
+- `release` bound local dependency audit
+
**Changed**
- `mcp` dedupe ChatGPT CSP metadata
diff --git a/docs/PROGRESS.md b/docs/PROGRESS.md
index b5550432..33118c40 100644
--- a/docs/PROGRESS.md
+++ b/docs/PROGRESS.md
@@ -1,4 +1,5 @@
# mso — Progress Log
+- **Local release audit timeout hardening (2026-09-04):** the tolerant pre-push dependency audit now caps `bun audit --json` at 15 seconds. A registry timeout is reported and skipped only in the local gate, matching its existing network-tolerant policy; CI remains the fail-closed dependency-audit authority. This prevents a slow registry request from holding GitHub's pre-push SSH session open for minutes and failing the otherwise-green release with a transport/SIGPIPE-style exit.
- **MCP Apps CSP metadata dedup / Surface v5 (2026-09-04):** MCP server `1.9.4` / toolset `2026.09.04.5` moves all standard widget CSP fields to the preferred `_meta.ui.csp` surface and leaves legacy `openai/widgetCSP` with only `redirect_domains` for `Open in MSO`. Workflow/Surface resources are cache-busted to `workflow-progress-v3` and `surface-v5`; the reviewed Play Together iframe remains exact-origin under `/embed`, so one external-iframe review advisory is expected from `ui.csp.frameDomains`. Scanner-facing Surface metadata explicitly names `/apps/play-together` and has a regression guard against cross-scope app examples.
- **MCP Apps presentation unification / Surface v4 (2026-09-04):** MCP server `1.9.3` / toolset `2026.09.04.4` retires the specialized `project-status-v2`, `project-diff-v2`, and `vps-status-v2` resources. `project_get`, `project_diff`, and `vps_status` are pure data tools again; `ui://mso/surface-v4.html` is the only general-purpose UI and uses the portable MCP Apps `tools/call` bridge for native monitor/project/diff views. `workflow-progress-v2` remains intentionally separate for live workflow polling. Play Together keeps the exact `game.rahmanef.com/embed` frame boundary, so the external-iframe review advisory remains expected only for the universal Surface.
- **Cognitive Runtime claim audit / public evidence boundary (2026-09-04):** revalidated source/main/origin and loopback/public production on the latest concurrent baseline, then reran the deterministic Cognitive Runtime/memory gates: routing recall 100%, active-schema reduction 96.6%, typed memory 8/8, P9 6/6 at 200 corrections, P10 lifecycle 8/8, lexical/local-semantic 4/6 vs 3/6, and bounded graph fixture 3/3. Raw P6/P7/P8 artifacts were independently re-hashed and their aggregate arithmetic recomputed; the canonical P7 two-run artifact is `mso-p7-repeat-full-2x9.json` (`a0c12961...`), not the similarly named older `mso-p7-repeat-full-2runs.json`. Canonical P7+P8 yields 5/5 perfect full runs for both MSO and Hermes and the documented 74.7% token / 12.8% average-latency / 34.1% p50 observed deltas on that exact nine-scenario matched corpus. P4/P5 exact tables are downgraded to historical release-reported metrics because this audit could not independently recover raw artifacts matching those exact values. README now removes the stale 29-tool ChatGPT count, removes the unsupported "most complete" positioning superlative, and states explicit no-universal-superiority/no-cost/no-cache/no-OpenClaw boundaries. Tool Forge executable evaluation is documented as fail-closed until its explicit local Docker sandbox image is provisioned; that image was absent during this audit.
diff --git a/scripts/audit.mjs b/scripts/audit.mjs
index 5c4dab3f..561fa2d6 100644
--- a/scripts/audit.mjs
+++ b/scripts/audit.mjs
@@ -24,6 +24,7 @@
import { spawnSync } from "node:child_process";
const FLOOR = new Set(["high", "critical"]);
+const AUDIT_TIMEOUT_MS = 15_000;
// GHSA/CVE id -> why it is accepted + the date it was accepted.
// Only for advisories with NO upstream fix. If a fix exists, take the fix (an
@@ -32,9 +33,14 @@ const IGNORE = {
// e.g. "GHSA-xxxx-xxxx-xxxx": "no fixed release upstream; not reachable because <…>. Accepted 2026-08-03, recheck monthly.",
};
-const res = spawnSync("bun", ["audit", "--json"], { encoding: "utf8" });
+const res = spawnSync("bun", ["audit", "--json"], { encoding: "utf8", timeout: AUDIT_TIMEOUT_MS, killSignal: "SIGTERM" });
const raw = (res.stdout ?? "").trim();
+if (res.error?.code === "ETIMEDOUT") {
+ console.warn(`audit: registry timed out after ${AUDIT_TIMEOUT_MS / 1000}s, skipped`);
+ process.exit(0);
+}
+
// Empty stdout = the request never completed (offline, dead registry, proxy refused).
// Warn and pass: a broken network is not evidence of a vulnerability, and this is the
// local gate. CI is the one that fails closed.
diff --git a/scripts/release-lifecycle-contract.test.ts b/scripts/release-lifecycle-contract.test.ts
index 938705f7..bc1dc90f 100644
--- a/scripts/release-lifecycle-contract.test.ts
+++ b/scripts/release-lifecycle-contract.test.ts
@@ -29,4 +29,13 @@ describe("single MSO release lifecycle authority", () => {
expect(restore).toBeGreaterThan(0);
expect(success).toBeGreaterThan(restore);
});
+ it("bounds the tolerant local dependency audit so pre-push cannot hold the remote connection indefinitely", () => {
+ const audit = read("scripts/audit.mjs");
+ expect(audit).toContain('const AUDIT_TIMEOUT_MS = 15_000;');
+ expect(audit).toContain('timeout: AUDIT_TIMEOUT_MS');
+ expect(audit).toContain('res.error?.code === "ETIMEDOUT"');
+ expect(audit).toContain('registry timed out after');
+ expect(audit).toContain('process.exit(0)');
+ });
+
});