--- title: "Test ladder and protection" slug: "build-ai-ready-systems-validate-test-test-ladder-protection" description: "When to run protection, governance, and certification after Connected System tests. Overlay for integrators — not the connectivity ladder itself." tags: ["Integration", "Developer", "Integrator"] updated: 2026-11-30T18:58:55Z published: 2026-11-17T07:08:17Z canonical: "docs.aifabrix.ai/build-ai-ready-systems-validate-test-test-ladder-protection" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.aifabrix.ai/llms.txt > Use this file to discover all available pages before exploring further. # Test ladder and protection Run the **right overlay command at the right phase** — protection, governance, and certification wrap Connected System proof. Connectivity layers (structure, pipeline, live E2E, gold rows) live on [Connected System tests](/docs/build-ai-ready-systems-validate-test-connected-system-tests). Role Assistant prove is a different family: [Role Assistant tests](/docs/build-ai-ready-systems-validate-test-role-assistant-tests). ## Prerequisites - Datasource JSON passes `aifabrix validate <systemKey>` - Credentials resolved (`aifabrix auth status`) - Upload completed for integration/E2E against live dataplane ## Where it runs | Layer | Typical command | Proves | | --- | --- | --- | | Local schema | `aifabrix validate`, `aifabrix datasource validate` | JSON matches schemas | | Connected System connectivity | See [Connected System tests](/docs/build-ai-ready-systems-validate-test-connected-system-tests) | Structure, pipeline, live E2E | | Operations cert | `aifabrix verify-operations <systemKey>` | Validate → test → integration → E2E ladder | | Agent metadata | `aifabrix verify-trust <systemKey>` | Business metadata trust for agents | | Governance | `aifabrix verify-governance <systemKey>` | ABAC/protection visibility for subjects (or **NOT APPLICABLE** when datasources declare `accessControl.abac.applicability: notApplicable`) | ## How to set 1. **After every JSON edit** — local validate only: ``` aifabrix validate aifabrix datasource validate ``` 1. **After upload** — run Connected System pipeline and E2E (see that page), then return here for protection: ``` aifabrix upload --probe ``` 1. **After dimensions + protection uploaded** — governance verification (not a substitute for E2E): ``` aifabrix protection validate aifabrix protection upload aifabrix verify-governance --subject-email user@example.com ``` See [Configure business policies](/docs/build-ai-ready-systems-business-entities-configure-business-policies) and [Protection manifests and upload](/docs/build-ai-ready-systems-build-reference-protection-manifests-upload). For a focused governance test walkthrough, see [Test protection and governance](/docs/build-ai-ready-systems-build-reference-test-protection-governance). 1. **Before production AI** — certification pillars: ``` aifabrix verify-operations aifabrix verify-trust aifabrix verify-governance --subject-email user@example.com aifabrix lifecycle ``` ## Defaults and examples Recommended order for a **new external system**: ``` validate → upload → Connected System tests (pipeline / E2E) → (govern: dimensions, protection upload) → verify-governance → verify-operations → verify-trust → lifecycle ``` | If this fails… | Check… | | --- | --- | | validate | Schema required fields, resourceType catalog, externalId | | test-integration | Credentials, upload drift, sync config | | test-e2e | Vendor sandbox data, primaryKey, exposed operations | | verify-governance | Protection manifests, dimension bindings, subject membership | Example **validate output** you should see before upload (sanitized): ``` { "success": true, "systemKey": "example-crm", "checks": ["schema", "resourceType", "externalId"] } ``` Governance verification uses real subjects — configure dimension membership before expecting scoped row counts. ## Validate Do not skip integration and jump to E2E — integration catches upload and credential issues faster. Do not treat wizard success as governance pass — run `verify-governance` after protection is in place. Keep a written record of which datasource **`key`** and **`systemKey`** each test command targeted — mixed keys are a frequent source of false “green” E2E on the wrong entity. ## Common mistakes | Mistake | Fix | | --- | --- | | E2E only once at end | Run integration after each upload | | verify-governance before protection upload | Upload protection manifests first | | Same subject for all scenarios | Use scoped governance packs | | Confusing test-e2e with verify-operations | Operations cert wraps the full ladder | | Wrong datasource **`key`** in E2E | Pass `--app <systemKey>` and correct datasourceKey | ## Limits Governance scenarios require realistic subjects and dimension data in your tenant — empty ABAC dimensions produce passes that do not reflect production. Manual scenario packs may need trainer-supervised setup. The ladder assumes **`systemKey`**, datasource **`key`**, and root identity fields are already valid — rerun `validate` after any JSON edit even when you only changed protection YAML. **`displayName`** and **`entityType`** on each datasource must match the scenario you test — mixed record and document paths need separate E2E runs. Log files under `integration/<systemKey>/logs/` supplement CLI output when **`--verbose`** is enabled on E2E. ## Related - [CLI workflow reference](/build-ai-ready-systems-validate-test-cli-workflow.md) - [Connected System tests](/build-ai-ready-systems-validate-test-connected-system-tests.md) - [Role Assistant tests](/build-ai-ready-systems-validate-test-role-assistant-tests.md)