Identity fabric verification โ all 20 nodes
A complete, test-by-test verification guide for the @dosfi.ai Secure Identity Fabric across all five systems and all 20 mesh nodes. Run every test before permitting production traffic. All tests must pass.
Identity creation & propagation tests (F.2โF.3)
Verify that a single identity creation event propagates correctly to all five systems and that the resulting OIDC token contains the complete claim set.
Identity verification & cryptographic hardening tests (F.4)
Verify that every node presents valid cryptographic credentials and that the Coordinator verifies them on every connection.
Identity revocation & recovery tests (F.5โF.6)
Verify that revocation propagates within the 5-second SLO and cascades correctly to downstream systems.
Recovery test procedure (manual)
# 1. Create a scratch identity for testing
meshinfer-dev create-test-identity --label recovery-test-001
# 2. Register one test node under this identity
meshinfer-node register --identity recovery-test-001 --platform linux
# 3. Trigger recovery flow at identity.dosfi.ai/recover
# (use the scratch identity email)
# Select: "Recover + revoke all devices"
# 4. Verify: test node is suspended within 1 min (safety window)
meshinfer-node status --node-id <test_node_id>
# Expected: { "status": "suspended", "reason": "post_recovery_safety_window" }
# 5. Verify: 1h later, node auto-resumes (no anomaly detected)
# 6. Clean up: decommission test node + delete test identityPrivacy tier enforcement tests (F.7)
Verify that privacy tiers are enforced at all three layers: SDK, Gateway, and node daemon. These tests must run against a real SDK integration โ not mocked.
Privacy tier verification โ all 20 nodes
# Verify privacy_tier configured correctly on all 20 nodes:
meshinfer-fleet verify-privacy-tiers --org org_mesh20_prod --api-key msk_live_...
# Expected output per node:
# node-d01: privacy_tier=mesh_ok โ
# node-d02: privacy_tier=mesh_ok โ
# node-m01: privacy_tier=local_only โ (mobile nodes: local_only recommended)
# node-m02: privacy_tier=local_only โ
# node-s01: privacy_tier=cloud_ok โ (server tier: cloud relay opt-in)
# ...
# For any node with incorrect privacy_tier:
meshinfer-node config set privacy_tier=<correct_value> --node-id <node_id>privacy_tier: local_only by default. This is a structural safety measure โ mobile devices process personal data and must never serve inference tasks from other organizations unless explicitly opted in by the device owner with informed consent.Identity-bound metering & DIU economics tests (F.8)
Verify that every metering event, DIU spend, DIU issuance, and settlement record carries the correct identity chain. These tests confirm the economic layer is cryptographically attributed to real identities.
Settlement identity log tests (F.9)
Verify that the MeshNativeExchange settlement record is complete for all 20 nodes and carries the full identity chain from the Coordinator metering events.
Settlement identity audit query
# Retrieve last settlement record and verify identity completeness:
curl -s "https://coordinator.meshinfer.ai/v1/admin/settlements/latest" -H "Authorization: Bearer msk_live_..." | jq '.node_settlements[] | {
node_id,
owner_user_id: .owner_user_id,
diu_wallet,
tasks_served,
diu_net,
status
}'
# All 20 records must have non-null owner_user_id.
# All 20 diu_wallet values must match the registered wallet for that NodeID.Agent & enterprise identity tests (F.10โF.11)
Verify agent identity inheritance and enterprise org boundary enforcement.
Cross-org boundary enforcement test
# Test that org boundary blocks cross-org task dispatch:
# 1. Register one node under org_a
# 2. Submit inference request from org_b with route forced to that node
# Expected: 403 privacy_policy_violation from Gateway
curl -s -X POST "https://coordinator.meshinfer.ai/v1/infer" -H "Authorization: Bearer <org_b_token>" -d '{
"model": "llama-3.2-3b-q4",
"prompt": "test",
"routing_override": { "node_id": "<org_a_node_id>" }
}'
# Expected response:
# { "error": "privacy_policy_violation",
# "detail": "node belongs to a different org; cross-org dispatch blocked" }Automated identity verification script
The fleet identity verification script runs all automated tests (V.1โV.7 where automatable) and emits a signed verification report for SOC 2 evidence.
# Run full automated identity verification against 20-node mesh:
meshinfer-fleet verify-identity --org org_mesh20_prod --api-key msk_live_... --node-count 20 --test-suite full --output identity_verification_report_$(date +%Y%m%d).json
# Tests run automatically:
# โ OIDC token claim completeness (all 20 nodes)
# โ Heartbeat signature verification (all 20 nodes)
# โ mTLS DeviceCert validity (all 20 nodes)
# โ Privacy tier configuration (all 20 nodes)
# โ Metering event identity chain completeness (100 test tasks)
# โ DIU spend attribution accuracy (ฮฃ spend vs wallet delta)
# โ DIU issuance attribution accuracy (settlement record vs wallet credit)
# โ Sybil prevention gate (attempt > 50 NodeIDs per UserID)
# Tests requiring manual execution:
# โ v7: Revocation propagation timing (requires scratch identity)
# โ v8: SDK local_only structural enforcement
# โ v9: Gateway mesh_ok cloud block
# โ v16: Agent tier inheritance
# Submit report to AuditLog:
meshinfer-fleet submit-verification-report --report identity_verification_report_$(date +%Y%m%d).json --operator "ops-lead@your-org.com"