PromptVeil
Browse documentation

Project reference

Testing and evaluation

Use Node.js 22.18 or later and Python 3 for packaging. Shared tests and evaluation inputs must be synthetic.

pnpm install --frozen-lockfile
pnpm typecheck
pnpm test
pnpm test:security
pnpm build
pnpm eval
pnpm release:check

For npm, use npm test, npm run test:security, npm run build, npm run eval, and npm run release:check. Read actual results and status codes before making claims.

Fixture and integration checks

Run both installed agent clients against isolated synthetic settings with node tests/e2e/native.mjs claude-code codex. Use node tests/e2e/codex.mjs to verify the pinned Codex client against the local mock in an environment that permits loopback sockets. CI also runs the packaged Playwright browser checks.

Multilingual and configuration coverage

The security CI job runs the same deterministic matrix as npm run test:security. Its fixtures use synthetic text and assert both sensitive-value removal and preservation of unrelated text.

Release checks

Test the unpacked extension on Chrome and Edge and record insertion versus copy separately for ChatGPT, Claude, Gemini, Grok, DeepSeek, and Perplexity. Install the web app on Android and iPhone and verify airplane-mode reload, protection, and clipboard use. Run both native guard smoke tests and a configured live Codex relay smoke test with synthetic inputs. Record observed versions, auth modes, results, and limitations in the compatibility run log.

Image redaction checks

The security suite checks OCR box mapping, pixel masks, uncertainty, and bounds. Packaged Chromium CI synthesizes light PNG and dark JPEG screenshots, runs offline web OCR and extension OCR, and runs the built terminal command against a generated fixture. It checks the sensitive regions, verifies that nearby refund text survives, and exercises unsupported input, manual masks, and exported PNGs. Release checks enforce the existing 3 MB extension and CLI archive budget.

The pinned Codex executable attaches a synthetic PNG through the real client protocol. The mock upstream checks masked pixels and verifies that unreadable images cause zero upstream calls.