@onlineapps/conn-orch-validator 3.2.2 → 3.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onlineapps/conn-orch-validator",
3
- "version": "3.2.2",
3
+ "version": "3.2.3",
4
4
  "description": "Validation orchestrator for OA Drive microservices - coordinates validation across all layers (base, infra, orch, business)",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -230,12 +230,18 @@ class CookbookTestRunner {
230
230
  async _dispatchViaHandler({ step, spec, testConfig, validationTenantId, validationWorkspaceId, result, startTime }) {
231
231
  const stepTimeout = testConfig.timeout || this.timeout;
232
232
  const correlationId = step.correlation_id || crypto.randomUUID();
233
+ // Production ctx (from ContextBuilder) always carries workflow_id + person_id.
234
+ // Handlers check both — mirror them here (person_id nullable per envelope).
235
+ const workflowId = step.workflow_id || correlationId;
236
+ const personId = step.person_id != null ? step.person_id : null;
233
237
 
234
238
  const ctx = {
235
239
  logger: this.logger,
236
240
  tenant_id: validationTenantId,
237
241
  workspace_id: validationWorkspaceId,
242
+ workflow_id: workflowId,
238
243
  correlation_id: correlationId,
244
+ person_id: personId,
239
245
  operation_name: step.operation,
240
246
  service_name: step.service,
241
247
  db: null,
@@ -246,8 +252,8 @@ class CookbookTestRunner {
246
252
  abortSignal: null,
247
253
  headers: {
248
254
  'x-validation-request': 'true',
249
- 'x-tenant-id': validationTenantId,
250
- 'x-workspace-id': validationWorkspaceId,
255
+ 'x-tenant-id': String(validationTenantId),
256
+ 'x-workspace-id': String(validationWorkspaceId),
251
257
  ...resolveHeaders(step.headers)
252
258
  }
253
259
  };
@@ -262,7 +268,9 @@ class CookbookTestRunner {
262
268
  ctx: {
263
269
  tenant_id: ctx.tenant_id,
264
270
  workspace_id: ctx.workspace_id,
265
- correlation_id: ctx.correlation_id
271
+ workflow_id: ctx.workflow_id,
272
+ correlation_id: ctx.correlation_id,
273
+ person_id: ctx.person_id
266
274
  }
267
275
  };
268
276
  result.request = request;