Quality and releases

Run `flox activate` before installing dependencies or running checks. The committed Flox manifest and lock provide Bun, Node 24, Python, pre-commit, and ShellCheck on macOS and Linux. The manifest use

One development environment

Run flox activate before installing dependencies or running checks. The committed Flox manifest and lock provide Bun, Node 24, Python, pre-commit, and ShellCheck on macOS and Linux. The manifest uses schema 1.15, supported by Flox 1.15 and newer; package versions remain pinned in the lockfile. Use flox activate --start-services to start the development server, then flox services stop web to stop it. CI activates the same environment.

The React Hooks ESLint plugin remains pinned to the existing 7.0.1 ruleset; upgrading compiler diagnostics is a separate refactoring task.

Vercel uses the commands in vercel.json and detects Bun from bun.lock. The packageManager field is omitted because the existing Vercel Corepack setting does not support Bun. Flox supplies the development/CI version.

Bun installs from bun.lock; Node runs Next.js and Vitest through their normal entry points. Update dependencies deliberately and commit the lockfile.

The portfolio and documentation app both pin Next.js to 16.4.6, including the November 2026 security fixes. Keep the portfolio's @next/mdx and eslint-config-next packages aligned with its Next.js version. Update both lockfiles and run bun run ci when upgrading the framework so the portfolio and documentation builds are checked together. The docs configuration omits the former experimental viewTransition flag, which is no longer recognized by this release.

Local gates

bun install enables Husky. bun run check runs ESLint, TypeScript, Prettier, Markdown lint, Mermaid parsing, the LOC budget, and tests. Pre-commit runs this same command; pre-push builds production output. The hooks clear inherited RUST_LOG filters so Flox activation errors remain visible. If activation fails, run env -u RUST_LOG flox -vv activate -- true to diagnose it before changing project dependencies. Use the locked Bun version inside Flox for frozen installs; a different globally installed Bun can interpret the lockfile differently. Users of the Python pre-commit runner can run pre-commit run --all-files with the supplied configuration; keep Husky as the installed Git hook to avoid competing hook managers.

.loc-budget.json counts nonblank JavaScript and TypeScript lines in src/ and scripts/, including tests. New files have a 300-line limit. Existing larger files have explicit limits. The total leaves a small growth allowance. Simplify or split responsibilities before increasing a limit; justify changes during review.

The initial budget includes the developer resources, versioned API, and MCP implementation already landed on main before this quality gate was merged. Their existing large modules have fixed baselines; the 300-line default still applies to new files. The total allowance is 23,750 lines including the mobile navigation card redesign, shared-scene integration, and opt-in ASCII weather. Navigation metadata is separated from rendering so both remain under the unchanged per-file limit.

CI and releases

CI runs on pull requests and pushes. Formatting, security auditing, documentation, and shell checks are blocking. Coverage is generated once and retained as an artifact. Documentation runs its own content, source-integrity, lint, test and Next.js build checks.

The release workflow runs only after successful push CI on main, checks out the exact tested SHA, and skips it if main has moved. It reuses a tag already pointing to that SHA, otherwise increments the latest stable patch tag (starting at v0.1.0). Releases contain generated notes. Concurrent releases are serialized; rerunning the workflow recovers a tag whose release creation was interrupted.

Branch CI never publishes a release. Repository administrators should require CI before merging. Documentation deploys through its separate Vercel project with Root Directory docs; the old GitHub Pages deployment has been replaced.

Dependency audit

bun run audit checks all dependencies and fails on high and critical advisories without exceptions. The former braces exception for CVE-2026-93687 was removed after the upstream advisory was withdrawn on October 23, 2026 because it was not practically exploitable.

The ASCII weather feature allowance includes the fixed-location endpoint, validated weather state, procedural glyph renderer, and tests for opt-in and failure behavior.