# FRONTEND-001 · ADR · version 1.4 **Status:** accepted for the isolated pilot **Scope:** technical foundation only; no production route or public deployment. ## Runtime and stack - Server: `x86_64`, glibc `2.39`. - Project-local Node.js: `v24.21.0` LTS, official Linux x64 binary, extracted only under `/mnt/ssd_projects/apps/dev.mathchast/.runtime/`; verify the published SHA-256 before use. Do not change system Node.js `v18.19.1` or npm `9.2.0`. - Package manager: bundled npm from the project-local Node runtime; exact npm version and lockfile format recorded after installation. - `create-next-app@16.4.0`, `next@16.4.0`, `react@19.3.0`, `react-dom@19.3.0`, `typescript@5.9.3`, `eslint@10.12.0`, `@eslint/js@10.0.1`, `typescript-eslint@8.71.1`. Pin exact versions without caret or tilde ranges and commit the generated lockfile locally. - Full registry compatibility metadata (2026-10-09): `create-next-app@16.4.0` requires Node `>=20.9.0` and reports no peer dependencies. `next@16.4.0` requires Node `>=20.9.0`; peers are `sass: ^1.3.0`, `react: ^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0`, `react-dom: ^18.2.0 || 19.0.0-rc-de68d2f4-20241204 || ^19.0.0`, `@playwright/test: ^1.51.1`, `@opentelemetry/api: ^1.1.0`, and `babel-plugin-react-compiler: *`. `react@19.3.0` requires Node `>=0.10.0` and has no peer dependencies reported; `react-dom@19.3.0` peers with React `^19.3.0`. `typescript@5.9.3` requires Node `>=14.17` and has no peer dependencies reported. `eslint@10.12.0` requires Node `^20.19.0 || ^22.13.0 || >=24` and peers with `jiti: *`. `@eslint/js@10.0.1` peers with ESLint `^10.0.0`. `typescript-eslint@8.71.1` requires Node `^18.18.0 || ^20.9.0 || >=21.1.0` and peers with ESLint `^8.57.0 || ^9.0.0 || ^10.0.0` and TypeScript `>=4.8.4 <6.1.0`. - Framework: Next.js App Router; TypeScript strict; ESLint flat config with `@eslint/js` recommended rules and `typescript-eslint` recommended rules; no `eslint-config-next` or `@next/eslint-plugin-next`, Tailwind, React Compiler, Cache Components, telemetry or anonymized agent feedback. The Next plugin was removed because its `fast-glob -> micromatch -> braces@3.0.3` chain has a high-severity advisory with no patched braces release; Next-specific lint rules are omitted in this pilot, while Next build, TypeScript checks and HTTP smoke tests remain required. - Generate with the official `create-next-app` package at the exact version, `--skip-install`; inspect the generated files, pin dependencies, then install from the lockfile. No template or project files from Fyrre Magazine. ## Routes, checks, and local access - Small original shell, home page, one neutral placeholder route, and framework 404. - Add required `node:test` smoke tests. Against the production build, assert home and placeholder return HTTP 200 with expected text, and an unknown route returns HTTP 404. Missing or skipped smoke tests are FAIL. - Lockfile reproducibility gate: run `npm ci`, record the lockfile SHA-256, independently repeat `npm ci`, and require the same SHA-256 before and after both installations. - Build and runtime listener: `127.0.0.1:3001`. Port 3000 is already occupied by an unrelated listener and must not be changed or stopped. - Owner tunnel: local `127.0.0.1:3031` forwarded to Server2 `127.0.0.1:3001`; browser address `http://127.0.0.1:3031`. - Keep the app process and tunnel alive after automated smoke checks until the owner completes the manual browser review. Stop at `OWNER CHECKPOINT: USER TEST`. ## Evidence used - Next.js installation docs list Node.js `20.9` as the minimum and the current CLI reference documents the selected App Router options: and . - Node.js release table lists v24 as LTS and v26 as Current; this ADR chooses the LTS line: . - Package metadata was read from the npm registry on 2026-10-09. Re-check the official Node checksum and all pinned package metadata during the independent VERIFY before scaffold/install. `eslint@9.39.5` was installed and repeat-verified in plan v1.2, then identified as EOL by ESLint support status (EOL began 2026-08-06). Plan v1.3 used the supported ESLint 10.12.0 and direct Next plugin, but full audit exposed a high-severity, unpatched `braces` dependency. Plan v1.4 removes that plugin and keeps ESLint 10.12.0 with JS/TS recommended rules. The v1.2 and v1.3 receipts remain preserved. ## Out of scope No database, CMS, external API, public bind, reverse proxy, DNS, TLS, firewall, router, system service, container, or production integration. INFRA-001 `public ingress = UNKNOWN` and `[2.1.R1] = BLOCKED` remain unchanged. - ESLint support status: https://eslint.org/version-support - Next ESLint plugin configuration and direct-plugin guidance: https://nextjs.org/docs/app/api-reference/config/eslint - TypeScript ESLint flat-config setup: https://typescript-eslint.io/getting-started/ - GitHub advisory for `braces` (affected through 3.0.3; patched versions: none): https://github.com/advisories/GHSA-vfj7-8cjw-p6xm - TypeScript ESLint flat-config setup: https://typescript-eslint.io/getting-started/ ## Final as-built status (2026-10-09) FRONTEND-001 v1.4 is `COMPLETE_PASS`. FE001-009 and FE001-010 passed; the final checkpoint is PASS. After owner acceptance, the test application and SSH tunnel were stopped normally. FE001-004.R5 is historically superseded by FE001-004.R6 PASS; child FE001-004.R5.R1 remains recorded as FAIL. Public ingress and NAT remain unverified; INFRA-001 `[2.1.R1]` remains BLOCKED.