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.
TypeScript browser-shellcontrol-planefile-managerhomelabmobile-firstnextjsptyreactself-hostedserver-managementshadcn-uisysadmintailwindcssterminaltypescriptvpsweb-desktopweb-terminal
test(security): isolate count and identity scans from elapsed deadlines
Rahmanf08ab6ab589d
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.mdindex 6e3851dd..f64fa231 100644--- a/docs/CHANGELOG.md+++ b/docs/CHANGELOG.md@@ -25,6 +25,7 @@ this is the *what*, and it is what Settings → Account → About shows as “Wh**Tests**+- `security` isolate count and identity scans from elapsed deadlines- `store` align standalone assertions with page readiness budget**Docs**diff --git a/docs/PROGRESS.md b/docs/PROGRESS.mdindex 7c35729b..9b4618ad 100644--- a/docs/PROGRESS.md+++ b/docs/PROGRESS.md@@ -1,6 +1,6 @@## 2026-09-30 — Code-scanning filesystem boundary fixes-Closed the shared bounded-reader gap with lexical and real-parent containment against configured read roots (or the explicit root of an already-authorized internal store/skill scan) while retaining final-component O_NOFOLLOW and pre-allocation size limits. Repository-memory project roots use the host read guard and reject a symlinked memory parent before reads or writes. Project knowledge rejects redirected metadata directories, and linked-worktree lookup checks lexical containment before probing a caller path. The memory-backup CLI fixture now executes a fixed Bash file instead of dynamic shell code. Regression fixtures explicitly authorize their temporary roots and exercise traversal, out-of-root access, symlink parents and preserved valid reads. The current lockfile already contains brace-expansion 1.1.21 and 5.0.12, which cover the three advisory IDs in Scorecard alert 118; scanner closure must be verified against the released SHA.+Closed the shared bounded-reader gap with lexical and real-parent containment against configured read roots (or the explicit root of an already-authorized internal store/skill scan) while retaining final-component O_NOFOLLOW and pre-allocation size limits. Repository-memory project roots use the host read guard and reject a symlinked memory parent before reads or writes. Project knowledge rejects redirected metadata directories, and linked-worktree lookup checks lexical containment before probing a caller path. The memory-backup CLI fixture now executes a fixed Bash file instead of dynamic shell code. Regression fixtures explicitly authorize their temporary roots and exercise traversal, out-of-root access, symlink parents and preserved valid reads. The current lockfile already contains brace-expansion 1.1.21 and 5.0.12, which cover the three advisory IDs in Scorecard alert 118; scanner closure must be verified against the released SHA. Release-gate count/identity fixtures now use a fixed clock, keeping their assertions independent of a concurrent build while the dedicated deadline/cursor regression still exercises the real production budget.## 2026-09-30 — Reconciliation takeover verificationdiff --git a/lib/mcp/collision-e2e.test.ts b/lib/mcp/collision-e2e.test.tsindex db5ffe25..4bd32508 100644--- a/lib/mcp/collision-e2e.test.ts+++ b/lib/mcp/collision-e2e.test.ts@@ -1,4 +1,4 @@-import { afterAll, beforeAll, describe, expect, it, vi } from "vitest";+import { afterAll, afterEach, beforeAll, describe, expect, it, vi } from "vitest";vi.mock("server-only", () => ({}));import { createHash } from "crypto";import { promises as fs } from "fs";@@ -58,6 +58,8 @@ beforeAll(async () => {process.env.OS_SKILL_MEMORY_STORE = path.join(ROOT_A, "memory.json");});+afterEach(() => { vi.restoreAllMocks(); });+afterAll(async () => {for (const [key, value] of Object.entries(previous)) {const name = key === "read" ? "OS_FS_READ_ROOTS" : key === "write" ? "OS_FS_WRITE_ROOTS" : "OS_SKILL_MEMORY_STORE";@@ -128,6 +130,8 @@ describe("the 8-hex collision pair stays distinct on every surface", () => {});it("skills_search surfaces both, each carrying its own project id", async () => {+ // Identity is independent of the scanner deadline, covered by catalog deadline tests.+ const now = Date.now(); vi.spyOn(Date, "now").mockReturnValue(now);const { hits } = await searchSkillMemory("deploy the widget service");const deploys = hits.filter((h) => h.kind === "skill" && h.id.endsWith("/deploy"));expect(deploys.map((h) => h.id).sort()).toEqual([`${idA()}/deploy`, `${idB()}/deploy`].sort());diff --git a/lib/skills/catalog-continuation.test.ts b/lib/skills/catalog-continuation.test.tsindex b5c837ed..9e5486c4 100644--- a/lib/skills/catalog-continuation.test.ts+++ b/lib/skills/catalog-continuation.test.ts@@ -1,4 +1,4 @@-import { afterEach, describe, expect, it } from "vitest";+import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";import { mkdir, mkdtemp, rm, writeFile } from "fs/promises";import os from "os";import path from "path";@@ -12,7 +12,7 @@ async function temp() {temps.push(dir);return dir;}-afterEach(async () => { await Promise.all(temps.splice(0).map((d) => rm(d, { recursive: true, force: true }))); });+afterEach(async () => { vi.restoreAllMocks(); await Promise.all(temps.splice(0).map((d) => rm(d, { recursive: true, force: true }))); });const body = (name: string) => `---\nname: ${name}\ndescription: ${name} desc\n---\n\n# ${name}\n`;@@ -45,6 +45,8 @@ async function drain(opts: { appDir: string; homeDir: string; projects: ReturnTy}describe("maxProjectSkills continuation returns the remainder of a partially consumed root", () => {+ // These assertions measure the count cap; the independent deadline is tested below.+ beforeEach(() => { const now = Date.now(); vi.spyOn(Date, "now").mockReturnValue(now); });it("drains 150 + 160 project skills across pages without losing the last 10", async () => {const workspace = await temp();const one = path.join(workspace, "one");