# Architecture

Version 6 separates the public client from the private audit service.

- `src/orchestrator.ts` sends authenticated requests to the fixed AX Rush audit endpoint. It contains no checks, HTML parsers, target fetcher or offline fallback.
- `src/license.ts` reads the account key and defines actionable client errors. Local validation is only for usability; the server owns authorization.
- `src/metadata.ts` holds check descriptions and aliases, without executable `run` functions.
- `src/reporter/`, `src/baseline.ts` and `src/scorer.ts` format, compare and summarize existing results locally.
- The private AX Rush application owns check implementations, safe outbound HTTP, server-side API-key and billing checks, and shared abuse limits. Authorization runs for every audit.

Only URL, check selection, profile, request timeout and retry count are sent in the request body. The account key travels in the Authorization header only. There is no endpoint override or bypass flag. Private network targets are not supported.

`npm test` checks the public API, report rendering, baselines and the remote transport, including denied access and unavailable service. Engine check tests live with the private server. `npm run prepublishOnly` builds from a clean `dist` and verifies the package allowlist so check implementations cannot accidentally ship.

The server must be deployed and verified before publishing a client version that relies on it.
