feat(P-001, P-002): 0pt→N0D quality delegation + internal OpenAPI
Security Scan (SIAX Cloud) / security (push) Successful in 14s
CI (SIAX Cloud) / security (pull_request) Successful in 18s
Security Scan (SIAX Cloud) / security (pull_request) Successful in 18s
CI (SIAX Cloud) / quality (pull_request) Failing after 20s
CI (SIAX Cloud) / quality (push) Failing after 23s
CI (SIAX Cloud) / integration (pull_request) Failing after 26s
CI (SIAX Cloud) / integration (push) Failing after 29s
CI (SIAX Cloud) / security (push) Successful in 29s
Security Scan (SIAX Cloud) / security (push) Successful in 14s
CI (SIAX Cloud) / security (pull_request) Successful in 18s
Security Scan (SIAX Cloud) / security (pull_request) Successful in 18s
CI (SIAX Cloud) / quality (pull_request) Failing after 20s
CI (SIAX Cloud) / quality (push) Failing after 23s
CI (SIAX Cloud) / integration (pull_request) Failing after 26s
CI (SIAX Cloud) / integration (push) Failing after 29s
CI (SIAX Cloud) / security (push) Successful in 29s
P-001 (owner-seam): - Add runDataQuality(input: RunDataQualityInput) to N0dClient → POST /v1/n0d/quality/run (n0dRunDataQuality operation) - Replace generic createJob in quality-service.ts with runDataQuality — N0D OWNS quality execution; 0pt delegates via the specific route - MockN0dClient + HttpN0dClient implementations - Add contract test: runDataQuality → /v1/n0d/quality/run P-002 (internal OpenAPI): - Add 5 quality operations to contracts/openapi.yaml: 0pt.quality.run, 0pt.quality.list_runs, 0pt.quality.bridge_run, 0pt.quality.checks, 0pt.quality.reports - Add 0pt.n0dGetJobResult (P-001 retrieval endpoint) - Add P-002 fixture verifying n0dGetJobResult registration + round-trip delegation (runDataQuality → getJobResult) 29 operations in catalog (was 21). 0pt now has a complete quality-internal OpenAPI with honest N0D delegation boundary.
This commit is contained in:
@@ -164,22 +164,14 @@ export class QualityService {
|
||||
|
||||
const allLocal = rules.every((r) => this.engine.supports(r.expectation.expectation_type));
|
||||
if (!allLocal || input.rows === undefined) {
|
||||
// DELEGATE to the GE backend (0pt-motor) via N0D — contract only here;
|
||||
// the run stays "delegated" until results are posted back. NEVER faked.
|
||||
const job = await this.n0d.createJob({
|
||||
// DELEGATE to the GE backend (0pt-motor) via N0D — owner-seam:
|
||||
// n0dRunDataQuality (POST /v1/n0d/quality/run), NOT the generic
|
||||
// createJob. N0D OWNS quality execution; 0pt only requests it.
|
||||
const job = await this.n0d.runDataQuality({
|
||||
tenant_id: input.tenant_id,
|
||||
project_id: input.project_id,
|
||||
job_type: "0pt.quality.ge_run",
|
||||
capability_id: "0pt.quality.run.v1",
|
||||
requested_by_app_id: "0pt",
|
||||
requested_by_actor_id: "svc_0pt",
|
||||
output_artifact_type: "quality_result",
|
||||
requires_backbone: false,
|
||||
requires_gpu: false,
|
||||
required_node_roles: ["compute_general"],
|
||||
resource_profile: "standard",
|
||||
risk_level: "L2",
|
||||
correlation_id: input.correlation_id,
|
||||
dataset_id: input.dataset_id,
|
||||
quality_rule_set_id: input.dataset_id,
|
||||
idempotency_key: `dq:${input.dataset_id}:${input.dataset_version ?? "latest"}:${runId}`,
|
||||
});
|
||||
const run: DataQualityRun = {
|
||||
|
||||
Reference in New Issue
Block a user