Docs Index
cardinality preflight.md

Proof Card: Cardinality preflight and activation gate

Status: beta Last verified: 2026-07-26 ยท git sha f4a0bc4d26

Claim

The cardinality preflight surface analyzes a trusted mapping-plan projection and optional bounded samples before activation. The same coordinator is used by the editor preflight route and the authoritative configuration activation gate; blocking findings require a current durable audited override, while an inability to determine evidence fails closed as a service-unavailable outcome. Runtime fan-out, aggregation, and select-one resolutions are not advertised as executable in this delivery.

Source

Tests

Live vs Fixture

Known Gaps

Verification (60-second AI-reviewer recipe)

npm test -- tests/unit/services/cardinality tests/unit/services/ConfigurationService.cardinalityGate.test.ts
npm run typecheck
npm run audit-proof-cards
npm run audit-html-whitelist-sync
PLAYWRIGHT_SKIP=0 npx playwright test -c tests/e2e ai-field-mapping-editor.spec.ts --grep "cardinality preflight"

Review the endpoint and gate with:

rg -n "cardinality-preflight|runForPlan|saveConfiguration" src/routes/configuration.ts src/services/ConfigurationService.ts