@onlineapps/conn-orch-validator
v2.0.13
Published
Validation orchestrator for OA Drive microservices - coordinates validation across all layers (base, infra, orch, business)
Maintainers
Readme
@onlineapps/conn-orch-validator
Validation Orchestrator for OA Drive Microservices
Coordinates validation across ALL layers (base, infra, orch, business) to ensure service + connectors work correctly together.
Purpose
This is NOT a development testing tool. This is a production validation orchestrator that:
- Validates service structure - directories, files, configuration
- Validates configuration - config.json, operations.json compliance
- Validates business logic - cookbook tests with mocked infrastructure
- Validates HTTP API - endpoints respond correctly
- Validates connector integration - all connectors work with service
- Generates validation proof - cryptographic SHA256 proof for registry
Used in Tier 1 Pre-Validation (offline, before registration) and invoked automatically by ServiceWrapper.
Quick Start
You don't use this directly! ServiceWrapper handles validation automatically:
// services/my-service/index.js
const { ServiceWrapper } = require('@onlineapps/service-wrapper');
const wrapper = new ServiceWrapper({
service: app,
serviceRoot: __dirname
});
// Validation happens automatically
await wrapper.initialize();No test files needed in business service!
Validation Process (6 Steps)
- Service Structure - directories and files exist
- Config Files - valid JSON, required fields
- Operations Compliance - follows OPERATIONS.md standard
- Cookbook Tests - business logic + integration (MOCKED infra)
- Service Readiness - HTTP API works
- Connector Integration - all connectors functional
Output: Validation proof saved to conn-runtime/validation-proof.json
Runtime Directory Structure
services/my-service/
├── conn-config/ ← Static (gitignored: NO)
│ ├── config.json
│ └── operations.json
├── conn-runtime/ ← Runtime (gitignored: YES)
│ ├── validation-proof.json
│ └── cache/
└── .gitignoreValidation Proof Structure
Location: conn-runtime/validation-proof.json
{
"validationProof": "sha256-hash-of-validationData",
"validationData": {
"serviceName": "hello-service",
"version": "1.0.0",
"validator": "@onlineapps/conn-orch-validator",
"validatorVersion": "2.0.6",
"validatedAt": "2025-10-22T10:30:45.123Z",
"testsRun": 15,
"testsPassed": 15,
"testsFailed": 0,
"durationMs": 234
}
}Proof Lifecycle:
- Valid for: 30 days OR until service fingerprint changes
- Fingerprint: SHA256 hash of (version + operations + dependencies + config)
- Revalidation: Automatic if proof missing/invalid/expired
- Registry: Accepts service with valid proof (skips Tier 2 validation)
Related Documentation
- SERVICE_REGISTRATION_FLOW.md
- /docs/architecture/validator.md
- /docs/standards/OPERATIONS.md
- @onlineapps/service-validator-core
Last updated: 2025-10-22
