@akagilnc/pi-workflow-roles 0.1.4239 → 0.1.4259

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.
@@ -338,6 +338,16 @@ export function createPiRoleTurnHost(config) {
338
338
  delete env.AK_ROLE_COURT_ATTEMPT;
339
339
  else
340
340
  env.AK_ROLE_COURT_ATTEMPT = request.courtAttemptId;
341
+ // Public-invocation scope (#537): omit must not inherit a parent env value.
342
+ if (request.invocationScopeId === undefined)
343
+ delete env.AK_ROLE_INVOCATION_SCOPE;
344
+ else
345
+ env.AK_ROLE_INVOCATION_SCOPE = request.invocationScopeId;
346
+ // Selected host axis (#537 / ADR 0082): omit must not inherit a parent env value.
347
+ if (request.host === undefined || request.host.trim() === "")
348
+ delete env.AK_ROLE_HOST;
349
+ else
350
+ env.AK_ROLE_HOST = request.host.trim();
341
351
  applyEngineChildEnv(env, request.engine);
342
352
  // Nested auditor dossier tool binds the parent run pointer when published.
343
353
  if (typeof process.env.AK_ROLE_AUDITOR_SOURCE_RUN === "string"