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.

test: validate PR integration and maintenance safety boundaries

Rahman48a11fa65646
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index 2ad26b24..d57fae22 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -6,15 +6,29 @@ this is the *what*, and it is what Settings → About shows as “What's new”.
## 2026-09-05
+**Added**
+
+- add safe local maintenance and visual README
+- `mcp` preserve restricted project service bridge
+
**Fixed**
- `security` close exec expansion gap and exact test discovery
- `security` harden share audit and release verification
+- `update` handle diverged checkout explicitly
**Changed**
- remove unused symbols and enforce compiler checks
+**Tests**
+
+- validate PR integration and maintenance safety boundaries
+
+**Docs**
+
+- `mcp` document service tokens and update reconciliation
+
## 2026-09-04
**Added**
@@ -170,6 +184,7 @@ this is the *what*, and it is what Settings → About shows as “What's new”.
- `cli` clarify version and update labels
- `agent` stabilize terminal banner navigation
- `cli` make updates visible and idempotent
+- `9router` proxy over internal Docker network
- `mcp` preserve app-only workflow status schema
## 2026-08-31
diff --git a/docs/PROGRESS.md b/docs/PROGRESS.md
index e20faa67..b14f1f03 100644
--- a/docs/PROGRESS.md
+++ b/docs/PROGRESS.md
@@ -1,4 +1,5 @@
# mso — Progress Log
+- **PR integration validation (2026-09-05):** preserve the reviewed PR36/PR37 ancestry while repairing PR38 glob escaping/native Bun audit checks and PR37 code-generating visual-test fixtures. Direct-image boundary tests now cover malformed content and size/type limits. MCP server 1.11.0 / toolset 2026.09.05.1 records the compatible restricted-service-token/direct-image contract; widget resources and ordinary OAuth token behavior are unchanged. Publication still requires complete current-head local and remote gates, including late CodeQL findings—not only the workflow completion status.
- **Reviewed 9Router network boundary (PR36, 2026-09-05):** reuse the configured internal proxy network only when it already exists; Docker host publishing remains loopback-only unless explicitly enabled. This supports a containerized reverse proxy without opening the application port to the public interface. The update adds no automatic network creation or DNS mutation. The old PR lifecycle-test failure must be rechecked against the combined current baseline before publication.
## 2026-09-05 — Restricted MCP service tokens + truthful diverged self-update
diff --git a/docs/generated/MCP-CATALOG.md b/docs/generated/MCP-CATALOG.md
index 3bdfbd99..bbac5dd7 100644
--- a/docs/generated/MCP-CATALOG.md
+++ b/docs/generated/MCP-CATALOG.md
@@ -4,13 +4,13 @@
## Full MSO catalog
-<!-- mcp-toolset: server=1.10.0 version=2026.09.04.7 tools=88 read=44 write=25 exec=19 -->
+<!-- mcp-toolset: server=1.11.0 version=2026.09.05.1 tools=88 read=44 write=25 exec=19 -->
| Fact | Current source value |
|---|---:|
-| MCP server | `1.10.0` |
-| Toolset | `2026.09.04.7` |
-| Toolset changed at | `2026-09-04T10:25:00Z` |
+| MCP server | `1.11.0` |
+| Toolset | `2026.09.05.1` |
+| Toolset changed at | `2026-09-05T11:15:00.000Z` |
| Transport tools | **90** |
| Model/operator tools | **88** |
| Read | **44** |
@@ -122,7 +122,7 @@
## ChatGPT static profile
-<!-- mcp-chatgpt-profile: server=1.10.0 version=2026.09.04.7 tools=64 read=35 write=17 exec=12 app-only=2 total=66 -->
+<!-- mcp-chatgpt-profile: server=1.11.0 version=2026.09.05.1 tools=64 read=35 write=17 exec=12 app-only=2 total=66 -->
The ChatGPT profile is a fail-closed static projection defined by `CHATGPT_TOOL_NAMES`. OAuth scope is still enforced independently; project-owned MCP tool names remain dynamic data behind the generic project bridge.
diff --git a/lib/mcp/project-function-content.test.ts b/lib/mcp/project-function-content.test.ts
new file mode 100644
index 00000000..6e164eac
--- /dev/null
+++ b/lib/mcp/project-function-content.test.ts
@@ -0,0 +1,28 @@
+import { describe, expect, it } from "vitest";
+import { projectFunctionContent } from "./project-function-content";
+
+const image = { type: "image", mimeType: "image/png", data: Buffer.from([137, 80, 78, 71, 13, 10, 26, 10]).toString("base64") };
+const envelope = (content: unknown[]) => ({ code: 0, stdout: JSON.stringify({ protocol: "mso.project-function-content.v1", content }), stderr: "" });
+
+describe("project-function direct content boundary", () => {
+ it("promotes exactly one signature-matched supported image", () => {
+ const result = projectFunctionContent(envelope([image, { type: "text", text: "fixture" }]));
+ expect(result).toHaveProperty("content"); expect(result).toHaveProperty("code", 0);
+ });
+ it.each([
+ [], [image, image], [{ ...image, mimeType: "image/svg+xml" }], [{ ...image, data: "not_base64" }],
+ [{ ...image, data: Buffer.from("not an image").toString("base64") }],
+ [image, { type: "text", text: "x".repeat(32769) }],
+ [image, ...Array.from({ length: 4 }, () => ({ type: "text", text: "extra" }))],
+ [{ ...image, data: Buffer.alloc(621 * 1024).toString("base64") }],
+ ].map((content) => [content]))("keeps malformed or oversized content as the original process envelope %#", (content) => {
+ const original = envelope(content); expect(projectFunctionContent(original)).toBe(original);
+ });
+ it("does not promote nonzero exits, stderr, wrong protocols or non-JSON output", () => {
+ for (const original of [
+ { ...envelope([image]), code: 1 }, { ...envelope([image]), stderr: "warning" },
+ { code: 0, stdout: "not-json", stderr: "" },
+ { code: 0, stdout: JSON.stringify({ protocol: "other", content: [image] }), stderr: "" },
+ ]) expect(projectFunctionContent(original)).toBe(original);
+ });
+});
diff --git a/lib/mcp/toolset.ts b/lib/mcp/toolset.ts
index caefbc83..7f1ac1ba 100644
--- a/lib/mcp/toolset.ts
+++ b/lib/mcp/toolset.ts
@@ -3,9 +3,9 @@ import type { Scope } from "./scope";
import type { McpTool } from "./tool-kit";
import { toolDescriptor, type McpToolProfile } from "./tool-contract";
-export const MCP_SERVER_VERSION = "1.10.0";
-export const MCP_TOOLSET_VERSION = "2026.09.04.7";
-export const MCP_TOOLSET_CHANGED_AT = "2026-09-04T10:25:00Z";
+export const MCP_SERVER_VERSION = "1.11.0";
+export const MCP_TOOLSET_VERSION = "2026.09.05.1";
+export const MCP_TOOLSET_CHANGED_AT = "2026-09-05T11:15:00.000Z";
export type McpToolsetInfo = {
serverVersion: string;
diff --git a/scripts/lib/maintenance-plan.mjs b/scripts/lib/maintenance-plan.mjs
index 73084460..cb5e9e5f 100644
--- a/scripts/lib/maintenance-plan.mjs
+++ b/scripts/lib/maintenance-plan.mjs
@@ -78,7 +78,8 @@ export function maintenancePlan(context, options) {
}
if (options.removeCode) {
if (!statOrNull(path.join(repo, ".git"))?.isDirectory()) blockers.push("Code removal requires a standalone Git clone, not a linked worktree");
- const git = (args) => spawnSync("git", ["-C", repo, ...args], { encoding: "utf8", timeout: 10000, maxBuffer: 1024 * 1024 });
+ const git = (args) => spawnSync("git", ["-C", repo, ...args], { encoding: "utf8", timeout: 10000, maxBuffer: 1024 * 1024,
+ env: Object.fromEntries(Object.entries(process.env).filter(([key]) => !key.startsWith("GIT_"))) });
const dirty = git(["status", "--porcelain", "--untracked-files=all"]), trees = git(["worktree", "list", "--porcelain"]);
if (dirty.status !== 0 || dirty.stdout.trim()) blockers.push("Code removal refuses a dirty/unverified checkout");
if (trees.status !== 0 || (trees.stdout.match(/^worktree /gm) ?? []).length !== 1) blockers.push("Code removal refuses shared linked worktrees");