Quality Gates
Quality gates keep Prox OS safe while humans and AI agents move quickly. They
Purpose
Quality gates keep Prox OS safe while humans and AI agents move quickly. They are feedback controls, not ceremony.
Standard Checks
For non-trivial code changes:
pnpm lint
pnpm typecheck
pnpm arch:check
pnpm check:cjkFor branch-scoped validation in the Nx-first monorepo:
pnpm affected:qualityFor broad migrations:
pnpm nx run-many -t lint typecheck --exclude=prox-os
pnpm nx run-many -t build --exclude=prox-osFor structural refactors, package moves, app extraction, state model changes, API boundary changes, or large UI splits:
pnpm check:file-sizeFor docs changes that should appear in the Fumadocs app:
pnpm docs:sync
pnpm check:cjkTask-specific Gates
| Change type | Add these checks |
|---|---|
| Shell layout, desktop, window chrome, responsive UI | Browser inspection or screenshots when practical. |
| UI primitives or shared visual components | Storybook/UI Workshop story or explicit note explaining why not. |
| App registry, route groups, app manifests | pnpm arch:check, docs update for app registry or OS apps. |
| App contract or runtime context | pnpm typecheck, pnpm arch:check, manual human review. |
| API worker, OpenAPI, MSW, data flow | API/data-flow docs update and relevant package build/typecheck. |
| Package boundary or dependency graph | pnpm arch:check, pnpm check:file-size, architecture docs update. |
| Deployment, Cloudflare, domains, Access | Deployment docs update and explicit human approval before production action. |
| Docs, prompts, app copy, mock data | pnpm check:cjk. |
Reporting Results
Every agent summary or PR should include:
- Commands run.
- Pass/fail status.
- Exact skipped commands and reasons.
- Known pre-existing failures.
- Residual risk.
Do not hide skipped checks behind "not run" without an explanation.
Docs App Sync
Root docs/ is canonical. apps/docs/content/docs is generated by:
pnpm docs:syncRun it after adding, renaming, deleting, or materially changing docs that should
be browseable in the docs app. Do not edit generated apps/docs/content/docs
files directly unless debugging the docs app itself.