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(security): one patched minimatch, a working scanner lane, and an honest perf baseline (#215)

Abdurrahman Fakhrul32e887bc2ccc
diff --git a/.github/workflows/security-core.yml b/.github/workflows/security-core.yml
index 84c45ded..20115962 100644
--- a/.github/workflows/security-core.yml
+++ b/.github/workflows/security-core.yml
@@ -86,7 +86,7 @@ jobs:
- name: Scan lockfiles with OSV-Scanner 2.5.1
run: >-
- docker run --rm -v "$PWD:/src:ro"
+ docker run --rm --user "$(id -u):$(id -g)" -v "$PWD:/src:ro"
ghcr.io/google/osv-scanner@sha256:8108ae94eadea5a02c9bec6e646909d5b790b44bd62d7f5b7f0b1d6d0ffc7734
scan source --recursive /src
@@ -102,7 +102,7 @@ jobs:
- name: Scan JavaScript/TypeScript and OWASP rules
run: >-
- docker run --rm -v "$PWD:/src:ro"
+ docker run --rm --user "$(id -u):$(id -g)" -e HOME=/tmp -v "$PWD:/src:ro"
semgrep/semgrep@sha256:f1f7b71861c7b28b6e0f661225a2c4f58a484f5d0f182465c6d6b3b22f972ade
semgrep scan --metrics=off
--config=p/javascript --config=p/typescript --config=p/owasp-top-ten
@@ -126,6 +126,6 @@ jobs:
args=()
for file in "${files[@]}"; do args+=("/src/$file"); done
((${#args[@]} > 0)) || { echo "No shell entrypoints found"; exit 0; }
- docker run --rm -v "$PWD:/src:ro" \
+ docker run --rm --user "$(id -u):$(id -g)" -v "$PWD:/src:ro" \
koalaman/shellcheck-alpine@sha256:9955be09ea7f0dbf7ae942ac1f2094355bb30d96fffba0ec09f5432207544002 \
shellcheck --severity=warning -e SC1090,SC2034 "${args[@]}"
diff --git a/.gitleaksignore b/.gitleaksignore
index b6dfc5c1..d4950e52 100644
--- a/.gitleaksignore
+++ b/.gitleaksignore
@@ -62,3 +62,9 @@ ab663bb5ea26be4fb3e4f640e7224c46c23fa7f7:lib/infra/convex-migrate.test.ts:generi
1c323375d11dc3a31b9269047a417641715ee146:lib/infra/convex-migrate.test.ts:generic-api-key:149
1b38855e6bd1c0c15de2246bf7b77600758fdccc:lib/infra/connection-registry.test.ts:generic-api-key:43
1b38855e6bd1c0c15de2246bf7b77600758fdccc:lib/infra/convex-migrate.test.ts:generic-api-key:149
+
+# Reviewed socket-policy route-test fixture. A 48-char string that only ever reaches the
+# route's own header/body assertions; the route module is mocked in the same file, so no
+# request leaves the process. Scoped to the exact commit, file, rule and line.
+3bf32e81b7f4fcae1acfc2daf2dd6e09672125f1:app/api/internal/socket-policy/route.test.ts:generic-api-key:13
+f7191783360a273a874d99a2caf456ce149ec39a:app/api/internal/socket-policy/route.test.ts:generic-api-key:13
diff --git a/bun.lock b/bun.lock
index b33914cc..6ea2a410 100644
--- a/bun.lock
+++ b/bun.lock
@@ -72,8 +72,9 @@
"overrides": {
"js-yaml": "^4.3.2",
"micromatch": "npm:[email protected]",
+ "minimatch": "^11.0.3",
"nanoid": "^3.3.18",
- "postcss": "^8.5.10",
+ "postcss": "^8.5.29",
"zod": "^4.6.6",
},
"packages": {
@@ -217,6 +218,8 @@
"@imgly/background-removal": ["@imgly/[email protected]", "", { "dependencies": { "lodash-es": "^4.17.21", "ndarray": "~1.0.0", "zod": "^3.23.8" }, "peerDependencies": { "onnxruntime-web": "1.21.0" } }, "sha512-/1ZryrMYg2ckIvJKoTu5Np50JfYMVffDMlVmppw/BdbN3pBTN7e6stI5/7E/LVh9DDzz6J588s7sWqul3fy5wA=="],
+ "@isaacs/nonrecursive-glob-match": ["@isaacs/[email protected]", "", {}, "sha512-SI7kyKHq4XXDRozw+r9GlRZkia1ZkFrpLW98r2IC2Bpr8YkFGE3fvjzmxCG0x78A++69HmDNrDvSMYBZmHGpKA=="],
+
"@jridgewell/gen-mapping": ["@jridgewell/[email protected]", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.0", "@jridgewell/trace-mapping": "^0.3.24" } }, "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA=="],
"@jridgewell/remapping": ["@jridgewell/[email protected]", "", { "dependencies": { "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.24" } }, "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ=="],
@@ -617,8 +620,6 @@
"color-name": ["[email protected]", "", {}, "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="],
- "concat-map": ["[email protected]", "", {}, "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg=="],
-
"convert-source-map": ["[email protected]", "", {}, "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg=="],
"cross-spawn": ["[email protected]", "", { "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", "which": "^2.0.1" } }, "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA=="],
@@ -967,7 +968,7 @@
"micromatch": ["[email protected]", "", {}, "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA=="],
- "minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "^1.1.7" } }, "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w=="],
+ "minimatch": ["[email protected]", "", { "dependencies": { "@isaacs/nonrecursive-glob-match": "^1.0.3", "brace-expansion": "^5.0.12" } }, "sha512-iny/40PEGkNJQ5/Pv6z3nm6FbRAby32GeZRjCUJk2WnNDbgPSTcdI+DDvLqsgBdD4cD5sMtMheqPPnehCCa8Nw=="],
"minimist": ["[email protected]", "", {}, "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA=="],
@@ -1277,8 +1278,6 @@
"@typescript-eslint/eslint-plugin/ignore": ["[email protected]", "", {}, "sha512-BAg6QkE8W+TuQLrrw0Ugr7HegXduRuuj8/ti2kSOc+jz1dmx8/WNcjr6XGnq5YpDWxFwwaavqD0+jIUOKelTsw=="],
- "@typescript-eslint/typescript-estree/minimatch": ["[email protected]", "", { "dependencies": { "brace-expansion": "^5.0.8" } }, "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A=="],
-
"@typescript-eslint/visitor-keys/eslint-visitor-keys": ["[email protected]", "", {}, "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA=="],
"@unrs/resolver-binding-wasm32-wasi/@emnapi/runtime": ["@emnapi/[email protected]", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA=="],
@@ -1301,8 +1300,6 @@
"loose-envify/js-tokens": ["[email protected]", "", {}, "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ=="],
- "minimatch/brace-expansion": ["[email protected]", "", { "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, "sha512-9zeA+KLZNNzglF2TPKRQEDyx6Yby7daAkuy8MiPzpXPsYDWi/DRM8jmwUDxokQjYqBpv5DgPiwD4h4ZZSy1Ujw=="],
-
"node-exports-info/semver": ["[email protected]", "", { "bin": { "semver": "bin/semver.js" } }, "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA=="],
"protobufjs/@types/node": ["@types/[email protected]", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-EANqOCF9QFyra+4pfxUcX9STKJpCLjMbObVzljIJomAWSnuSIEAvyzEU53GaajbXJEgdh0iEcPL+DGvpUd4k1Q=="],
@@ -1334,7 +1331,5 @@
"@tailwindcss/node/lightningcss/lightningcss-win32-x64-msvc": ["[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q=="],
"@tailwindcss/node/magic-string/@jridgewell/sourcemap-codec": ["@jridgewell/[email protected]", "", {}, "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og=="],
-
- "minimatch/brace-expansion/balanced-match": ["[email protected]", "", {}, "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="],
}
}
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index 042907a9..1e3009d0 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -11,11 +11,27 @@ this is the *what*, and it is what Settings → Account → About shows as “Wh
- `ci` three security scanners that actually run, and lanes that fail closed (#210)
- `tui` the panel is the default, and the banner lives in the transcript (#209)
+**Fixed**
+
+- `tui` an approval prompt must leave the alternate screen, or it is erased before it is read (#213)
+- `tooling` align the postcss override with its devDependency, so npx runs
+- `ci` give semgrep a writable HOME, which --user removed
+- `ci` run every security scanner as the runner's uid, not root
+- `deps` one minimatch, the patched one, via the existing override block
+
+**Faster**
+
+- `baseline` regenerate on an idle host, which the old one was not
+
+**Docs**
+
+- `dev` regenerate the changelog before the commit, not after the gate
+- `progress` correct why CI looks silent on a feature branch
+
## 2026-10-31
**Added**
-- `tui` a suspended panel really leaves the alternate screen, so an approval is readable
- `tui` install the print sink the last change forgot, and migrate the modules that still print (#206)
- `tui` a suspended panel really leaves the alternate screen, so an approval is readable (#205)
- `tui` mid-turn writes go into the panel, and prompts suspend it instead of fighting it (#204)
@@ -30,6 +46,7 @@ this is the *what*, and it is what Settings → Account → About shows as “Wh
**Fixed**
+- `security` allow the socket-policy route-test fixture in the history scan
- `tui` the two bugs a real pty found, and the test that found them (#201)
- `ci` apply the same parser workaround to the last two mock call sites (#196)
- `ci` stop the semgrep scan failing on a generic argument in a test mock (#195)
@@ -45,6 +62,7 @@ this is the *what*, and it is what Settings → Account → About shows as “Wh
**Docs**
+- `progress` record the LCP measurement, the eager-graph trim and the traps
- `tui` a handover for the panel track, so a pause costs nothing (#208)
- handover for the next session, plus the entry this session was missing
- `tui` name the four things between here and an alternate screen default (#199)
diff --git a/docs/DEVELOPMENT.md b/docs/DEVELOPMENT.md
index f065eb76..0878ab60 100644
--- a/docs/DEVELOPMENT.md
+++ b/docs/DEVELOPMENT.md
@@ -179,6 +179,27 @@ TypeScript 7. Remove an ignore only after the isolated candidate passes typechec
checks, and the out-of-tree production build. This is a compatibility hold, not a permanent version
pin and not an exemption from Dependabot security updates.
+### Security scanners run as your own uid, never as root
+
+Every `docker run` in `.github/workflows/security-core.yml` and any local reproduction of one needs
+`--user "$(id -u):$(id -g)"`. This is not tidiness.
+
+This repository is a **partial clone** (`blob:none` in `.git/config`). Run gitleaks as root against
+a read-write mount and its `git` sees missing blobs, decides the repo is corrupt, promisor-fetches
+during the scan, and rewrites refs and logs — as root. Observed once: 67 files under `.git` became
+root-owned, `git commit` then failed with `unable to append to '.git/logs/HEAD': Permission denied`,
+and `sudo` here needs an interactive password.
+
+Recovery, without sudo, when it does happen:
+
+```
+docker run --rm -v "$PWD/.git:/g" alpine chown -R "$(id -u):$(id -g)" /g
+git fsck --no-progress --connectivity-only # dangling commits are normal; errors are not
+```
+
+Prefer `:ro` on the mount for scanners that only read, and `--network=none` for gitleaks, which
+never needs the network once the clone is complete.
+
## Deploy — and the build hazard ⚠️
mso deploys via **systemd on the VPS**, not `git push` (no webhook, no Dokploy/
@@ -202,6 +223,19 @@ tail -f ~/.mso/self-update.log # success ends with UPDATE OK
A direct manual build-and-replace remains available for recovery, but it bypasses the
release gates and should not be the normal path.
+**Committing by hand instead of through `ship`.** The changelog lists commit subjects, so it
+can only be regenerated *after* the commit exists — which means any commit touching `docs/`
+leaves `docs/CHANGELOG.md` stale by default. Run `node scripts/gen-changelog.mjs` and commit
+the result **before** considering the change finished, not after the gate tells you: every
+`docs/` commit here has cost an extra round trip for forgetting exactly this. `ship` does it
+for you by folding the regenerated file into the same commit with `--amend`; if you commit by
+hand, expect two commits or one extra `--amend`.
+
+A `docs/`-only commit is not exempt. The generator lists every commit subject except the ones
+that only regenerate this file, so a commit that edits prose still adds a line and still leaves
+`docs/CHANGELOG.md` stale. That is precisely how this rule got written: three separate
+`docs/`-only commits in one session each needed a second commit to regenerate the file.
+
**`bun run build` now refuses when a live Next/MSO runtime serves the same checkout.**
`next start` loads the build manifest at boot; overwriting `.next` under the live
process makes the already-served HTML reference chunk hashes that no longer exist on
diff --git a/docs/PROGRESS.md b/docs/PROGRESS.md
index a670fea5..7184fedc 100644
--- a/docs/PROGRESS.md
+++ b/docs/PROGRESS.md
@@ -41,7 +41,151 @@ you just ran. The same is true of `pgrep -f "gates-12.sh"`. Use
`pgrep -af "node .*vitest" | grep -v "bash -c"` to see what is actually running, or the check will
insist the worktree is busy forever.
+## 2026-10-31: the LCP lever in the handover was the wrong lever
+The handover said the cheapest untried LCP lever was taking wallpaper artwork off the critical
+path. Measured first, and it is not a lever at all. Mobile's LCP element is
+`IMG.shell-artwork-macos` — app-icon artwork, 60x60 — while the wallpaper is a CSS background.
+Emptying **every** image byte on the live build (artwork + wallpaper, 331 KB) moved LCP
+3020 -> 2996 ms, inside the noise band. LCP is bound to `lastJs` (~2.75 s) plus mount cost.
+
+Method note that cost a run: `route.abort()` on image requests makes the browser retry, so the
+first experiment showed 47 -> 179 requests and looked like a regression. `route.fulfill()` with a
+1x1 body measures what was intended.
+
+### What the images actually cost
+
+Three `<img>` per app tile (default, macOS, Windows), two always hidden by CSS. Mobile: **231**
+artwork `<img>` in the DOM for **77** displayed, **370,926** bytes across **47** requests, with
+`/app-icons` 71,526 + `/app-icons/macos` 159,258 + `/app-icons/windows` 81,784 — two of three
+families never painting.
+
+The three-variant markup was justified by a comment claiming SSR would guess the shell.
+`curl /` returns **zero** `shell-artwork` occurrences, so none of it is server-rendered and
+`useActiveShell()` already knows the answer at render time. Now one `<img>` per tile: 77/29 in
+the DOM, 19 image requests, 217,616 bytes mobile. No CSS change.
+
+### Eager graph: -26.7 KiB gzip
+
+Three things sat in the first-load bundle without being needed to paint:
+
+| What | Why it was dead weight |
+|---|---|
+| Alfa/chat surface re-exported from `appshell/index.ts` | all 14 consumers are lazy (`chat-panel`, `chat-transcript`, `inspector`, `alfa-sheet`, `use-host-commands`, `os-settings`) |
+| auth panels in `auth/index.ts` | consumed only by `/login`, `install`, `login-page`, `os-settings` |
+| widgets + shortcut-help via static imports | `search`/`control-center`/`inspector` already used `DeferredSurface` |
+
+Moved to `@/features/appshell/alfa` and `frontend/slices/auth/panels.ts`; widgets and
+shortcut-help now defer through the same primitive while their hooks (registry, context menu,
+command palette, the ⌘/ wrapper handler) stay eager.
+
+```
+entry 141.2 -> 114.5 KiB gzip (416.8 -> 326.5 KiB raw, 13 -> 12 files)
+initial 270.8 -> 244.0 KiB gzip (850.5 -> 760.2 KiB raw, 18 -> 17 files)
+```
+
+**Lock-screen was deliberately not deferred.** `organization/bundle-boundary.test.ts` pins it
+because it owns the idle auto-lock timer; deferring it means auto-lock does not arm until someone
+opens the lock screen. A security regression is not worth ~4 KiB.
+
+### LCP, against a pristine-HEAD control build
+
+Both sides under `releaseFixture`, 5 interleaved runs. Comparing against the live `:4005` first was
+misleading: it serves real data, and fixture-vs-fixture is the only honest pair.
+
+| surface | head | this branch | delta |
+|---|---|---|---|
+| desktop | 3332 ms | 3160 ms | -172 ms |
+| mobile | 3076 ms | 2872 ms | -204 ms |
+| mounted | 2592 / 2562 | 2409 / 2439 | -183 / -123 ms |
+
+`lastJs` reads *higher* (2846 -> 3105) because deferred chunks now download after mount instead
+of before it. Behaviour re-checked against the old build: ⌘/ still opens the cheat sheet and
+closes on both Escape and a second ⌘/, mobile still renders 4 widget cards, desktop 3, CLS
+unchanged (0.0005 vs 0.001 desktop, 0 both mobile).
+
+### The gate could not read the new budget
+
+Tightening the budget exposed a gate reading the wrong tree. `.next` is never built in place
+here, so it belongs to whatever was built last — usually a different commit. `gates-12.sh full`
+ran `check-bundle` *before* `verify-build.sh`, and fast mode ran it with no build at all, so a
+lowered budget failed against bytes describing history and read like a regression.
+
+Fixed: `check-bundle` now detects a stale build and says so; fast mode reports bytes without
+enforcing; full mode leaves enforcement to `verify-build.sh` against its own out-of-tree build;
+`bundle-budget.json` drops to entry 119,540 / initial 252,219 with the same +2.0 % arithmetic.
+
+### Two security jobs were red on `main` before this branch
+
+Both fail identically on `main` (`41214069060`):
+
+- **Gitleaks** — two findings, same fixture line of
+ `app/api/internal/socket-policy/route.test.ts`:
+ `"test-secret-at-least-32-characters-long-policy-key"`. The route module is mocked in that same
+ file, so nothing leaves the process. Allowlisted by exact commit/file/rule/line after verifying
+ with the pinned scanner the workflow uses: `leaks found: 2` -> `no leaks found`.
+- **OSV** — `[email protected]` and `@10.2.6`, one medium advisory (GHSA-g3hv-75wg-m249, glob-parts
+ amplification, CVSS 6.9). **Left unfixed on purpose:** the patch is `[email protected]`, which is
+ ESM-only, and `@typescript-eslint/typescript-estree` needs the 10.x line. Forcing it is a
+ breaking dependency change and does not belong in a perf PR.
+
+### Traps that cost real time, again
+
+1. **Worked on someone else's branch.** The working tree was on `fix/tui-pty-bugs`, not `main`, and
+ three commits landed there. Recovered: that branch was reset to its original `0425ec8c` (its
+ TUI work was already identical to `origin/main` #201, so nothing was lost) and the commits moved
+ to `perf/eager-graph-artwork` rebased onto `origin/main`.
+2. **A `git add` in a shared working tree swept six throwaway probe scripts into another track's
+ commit** (`80adb801`). Removed in `860b4c07`. The lesson is not "commit faster" — it is that a
+ second track committing in the same tree will `add` whatever is lying around.
+3. **`/tmp` filled to 99 %** with three out-of-tree builds at 2.3 GB each. `production build`
+ failed with `Failed to write upload` in the 200 MiB E2E, which looks exactly like a code bug.
+ The pristine-HEAD control failed identically until `/tmp` was cleaned. The handover warned
+ about this one.
+4. **Running the gitleaks container with `-v "$PWD:/repo"` left 67 files in `.git` owned by root**,
+ because it is a partial clone (`blob:none`) and git inside the container promisor-fetched and
+ rewrote refs. `sudo` needs a password here. Fixed with
+ `docker run --rm -v "$PWD/.git:/g" alpine chown -R 1000:1000 /g`; `git fsck --connectivity-only`
+ clean afterwards. Use `-v "$PWD/.git:/repo/.git:ro"` next time, or a `--user "$(id -u)"` flag.
+
+### Why CI looks silent on a feature branch — it is not broken
+
+I recorded "the missing workflow triggers on the latest head are unexplained". That was wrong,
+and worth correcting rather than leaving in the record: it was a misread trigger configuration,
+not a GitHub fault.
+
+`.github/workflows/ci.yml` triggers on `push.branches: [main, "security/**"]` and on
+`pull_request.branches: [main]`. A push to any other branch therefore fires **nothing**. Every CI
+run this branch ever got arrived through the `pull_request` event, one per PR head push. Over the
+last 30 CI runs on the repo, 13 are `push` and all 13 are `main`.
+
+So "CI stopped firing after `b2cffa6a`" means exactly one thing: no PR head was pushed after that
+commit. Local commits that are not pushed are not part of any PR, so there is nothing for GitHub
+to test. Nothing is stuck. The corollary is the useful part: **the only way to get CI on a
+non-main branch is to move that branch's PR head**, and a rebase that stays local changes nothing.
+
+`workflow_dispatch` exists in the same file, but it **cannot stand in for push-triggered CI here**:
+a dispatched run executes against the workflow file on the ref you dispatch *at* — which for
+GitHub UI and the API means a ref that already exists on the remote. Since the whole point is to
+test commits that have not been pushed, dispatching can only ever test what is already visible to
+GitHub, i.e. the same `7c4569ae` the PR already shows. It is useful to re-run a flaky job on an
+existing ref, not as evidence for unpushed work. The `pull_request` run is the proof, and it needs
+the push first.
+
+### Open
+
+- **PR #207** — branch `perf/eager-graph-artwork`. Remote head is `7c4569ae` (7 commits, CI green
+ on `Verify`, `Native host` macOS + Windows, `CodeQL`, `Dependency Review`); local is rebased
+ further onto `origin/main` and **not pushed**, so the PR still reports the older head and stays
+ `mergeable_state: dirty` against a `main` that has moved. Pushing it is a force-push and needs
+ the owner's explicit go-ahead.
+- **`perf-baseline.json` was regenerated after all** (commit `ba13b20b`), on an idle host: desktop
+ LCP 3222 → 3044 ms / TBT 164 → 81 ms, mobile LCP 3054 → 2740 ms / TBT 132 → 81 ms. An earlier
+ revision of this entry said it had been skipped because load sat between 7 and 19; the harness
+ was then taught to wait for load1 < 1.5 and to discard runs whose own recorded load exceeded it,
+ one of four attempts was discarded that way, and the median of the three clean runs is what is
+ committed.
+- Phase 5 (full SvelteKit swap) untouched, still needs the owner's 8-12 month decision.
## 2026-10-31: every route has a test, and the workflow conflict that made each PR slow
diff --git a/package.json b/package.json
index 92b46168..a0cc7f7e 100644
--- a/package.json
+++ b/package.json
@@ -108,11 +108,12 @@
"node-pty"
],
"overrides": {
- "postcss": "^8.5.10",
+ "postcss": "^8.5.29",
"nanoid": "^3.3.18",
"js-yaml": "^4.3.2",
"micromatch": "npm:[email protected]",
- "zod": "^4.6.6"
+ "zod": "^4.6.6",
+ "minimatch": "^11.0.3"
},
"devDependencies": {
"@axe-core/playwright": "^4.13.0",
diff --git a/scripts/perf-baseline.json b/scripts/perf-baseline.json
index 67351038..e2b5ba37 100644
--- a/scripts/perf-baseline.json
+++ b/scripts/perf-baseline.json
@@ -1,7 +1,7 @@
{
"schemaVersion": 1,
- "note": "Committed measured baseline for the catch-all shell, Slow 4G + 4x CPU, commit 1c74603 (2026-10-28). Values are the median of 3 runs against the synthetic releaseFixture (the path CI takes); the first run of a session is discarded as warm-up because a cold page cache inflates TBT by ~2x. Observed spread across the stable runs: desktop TBT 150-184 ms, mobile 99-148 ms, LCP 3.02-3.22 s, so host load moves these by roughly +/-25%. Only the 2x blowup guard reads them, which is why they are allowed to be approximate; bundle bytes are gated deterministically elsewhere (check-bundle.mjs). Regenerate with: node scripts/perf-probe.mjs --json. TBT here is the standard definition: sum over long tasks of max(0, duration - 50ms), NOT the raw sum of task durations. host records the machine the baseline was taken on: TBT is wall-clock and scales with core count as well as load, so a run on a different core count is not comparable and the gate skips it. The GitHub runner is ubuntu-latest (2-4 cores) and measured 271-321 ms against this 16-core baseline of 164/132 ms.",
- "commit": "1c74603",
+ "note": "Committed measured baseline for the catch-all shell, Slow 4G + 4x CPU, commit b2cffa6a (2026-10-31). Values are the median of 3 runs against the synthetic releaseFixture (the path CI takes); the first run of a session is discarded as warm-up because a cold page cache inflates TBT by ~2x. Every accepted run was measured on an idle box: the harness waited for load1 < 1.5 and discarded any run whose own recorded loadAvg1 exceeded that, because a baseline taken on a busy host is worse than no baseline when the gate compares TBT against it. Observed spread across the accepted runs: desktop TBT 66-152 ms, mobile 75-89 ms, LCP 3036-3100/2740-2760 ms. Only the 2x blowup guard reads these, which is why they are allowed to be approximate; bundle bytes are gated deterministically elsewhere (check-bundle.mjs). Regenerate with: node scripts/perf-probe.mjs --json, on an idle host, taking the median of 3. TBT here is the standard definition: sum over long tasks of max(0, duration - 50ms), NOT the raw sum of task durations. host records the machine the baseline was taken on: TBT is wall-clock and scales with core count as well as load, so a run on a different core count is not comparable and the gate skips it. The GitHub runner is ubuntu-latest (2-4 cores) and measured 271-321 ms against the previous 16-core baseline of 164/132 ms, so that skip is the normal case in CI, not an anomaly.",
+ "commit": "b2cffa6a",
"profile": {
"name": "cold-slow4g-4xcpu",
"latencyMs": 150,
@@ -16,15 +16,15 @@
"width": 1440,
"height": 900
},
- "fcpMs": 1180,
- "lcpMs": 3222,
- "tbtMs": 164,
- "cls": 0.001,
- "longTasks": 4,
- "maxLongTaskMs": 128,
- "firstLoadJsBytes": 964362,
- "firstLoadJsFiles": 21,
- "domNodes": 870
+ "fcpMs": 1168,
+ "lcpMs": 3044,
+ "tbtMs": 81,
+ "cls": 0.0005,
+ "longTasks": 5,
+ "maxLongTaskMs": 111,
+ "firstLoadJsBytes": 869797,
+ "firstLoadJsFiles": 22,
+ "domNodes": 813
},
{
"label": "mobile",
@@ -32,21 +32,21 @@
"width": 390,
"height": 844
},
- "fcpMs": 1166,
- "lcpMs": 3054,
- "tbtMs": 132,
+ "fcpMs": 1164,
+ "lcpMs": 2740,
+ "tbtMs": 81,
"cls": 0,
- "longTasks": 4,
- "maxLongTaskMs": 126,
- "firstLoadJsBytes": 947790,
+ "longTasks": 3,
+ "maxLongTaskMs": 119,
+ "firstLoadJsBytes": 847979,
"firstLoadJsFiles": 21,
- "domNodes": 1165
+ "domNodes": 1011
}
],
"host": {
"cpus": 16,
"node": "26.7.0",
"platform": "linux",
- "loadAvg1AtMeasure": 0.32
+ "loadAvg1AtMeasure": 1.43
}
}