diff --git a/plugins/reporting-governance/scripts/package-smoke.mjs b/plugins/reporting-governance/scripts/package-smoke.mjs index 753e72a..603bcfa 100644 --- a/plugins/reporting-governance/scripts/package-smoke.mjs +++ b/plugins/reporting-governance/scripts/package-smoke.mjs @@ -68,8 +68,16 @@ function main() { fs.writeFileSync(artifactPath, `${JSON.stringify(artifact, null, 2)}\n`, 'utf8'); const result = runOrchestratorAdapter({ - profileArtifact: artifact, - repoRootOverride: packageRoot, + runtimeBinding: { + cwd: process.cwd(), + scripts: { + orchestrator: path.join(packageRoot, 'scripts', 'watchdog_auto_notify_orchestrator.mjs'), + watchdog: path.join(packageRoot, 'scripts', 'long_task_watchdog.mjs'), + dispatcher: path.join(packageRoot, 'scripts', 'operator_notify_dispatcher.mjs'), + bridgeSupervisor: path.join(packageRoot, 'scripts', 'operator_notify_bridge_supervisor.mjs'), + senderBinding: path.join(packageRoot, 'scripts', 'operator_notify_sender_binding.mjs'), + }, + }, state, evidenceDir: path.join(workspace, 'evidence'), eventDir: path.join(workspace, 'events'), diff --git a/plugins/reporting-governance/src/adapters/index.mjs b/plugins/reporting-governance/src/adapters/index.mjs index 4255d05..1d161fb 100644 --- a/plugins/reporting-governance/src/adapters/index.mjs +++ b/plugins/reporting-governance/src/adapters/index.mjs @@ -3,8 +3,6 @@ export { runDispatcherAdapter } from './dispatcher.mjs'; export { runBridgeSupervisorAdapter } from './bridge-supervisor.mjs'; export { runSenderBindingAdapter } from './sender-binding.mjs'; export { runOrchestratorAdapter } from './orchestrator.mjs'; -export { createDefaultOrchestratorExecutionArgs, buildSenderCommand, runOrchestratorExecution } from './orchestrator-execution.mjs'; -export { parseOrchestratorCliArgs, formatOrchestratorHelp, runWatchdogAutoNotifyOrchestrator, runOrchestratorCli } from './orchestrator-cli.mjs'; export { createRuntimeBinding } from './runtime-binding.mjs'; export { loadDeploymentProfileArtifact, createDeploymentBindingContract } from '../storage/profile-artifact.mjs'; diff --git a/plugins/reporting-governance/src/adapters/orchestrator.mjs b/plugins/reporting-governance/src/adapters/orchestrator.mjs index 9b1f259..196691b 100644 --- a/plugins/reporting-governance/src/adapters/orchestrator.mjs +++ b/plugins/reporting-governance/src/adapters/orchestrator.mjs @@ -46,6 +46,7 @@ export function runOrchestratorAdapter({ const resolvedWatchdogScript = path.resolve(watchdogScript ?? resolveScriptPath('watchdog', { runtimeBinding: binding })); const resolvedDispatcherScript = path.resolve(dispatcherScript ?? resolveScriptPath('dispatcher', { runtimeBinding: binding })); const resolvedSupervisorScript = path.resolve(supervisorScript ?? resolveScriptPath('bridgeSupervisor', { runtimeBinding: binding })); + const resolvedSenderBindingScript = path.resolve(senderCommand ? (binding?.scripts?.senderBinding ?? resolveScriptPath('senderBinding', { runtimeBinding: binding })) : resolveScriptPath('senderBinding', { runtimeBinding: binding })); const resolvedQueueDir = queueDir ? path.resolve(queueDir) @@ -78,7 +79,7 @@ export function runOrchestratorAdapter({ claim, dryRun, }, { - senderBindingScript: resolveScriptPath('senderBinding', { runtimeBinding: binding }), + senderBindingScript: resolvedSenderBindingScript, }); return { diff --git a/plugins/reporting-governance/test/exports-boundary.integration.test.mjs b/plugins/reporting-governance/test/exports-boundary.integration.test.mjs index 77359f3..9fad154 100644 --- a/plugins/reporting-governance/test/exports-boundary.integration.test.mjs +++ b/plugins/reporting-governance/test/exports-boundary.integration.test.mjs @@ -169,6 +169,7 @@ test('leaf subpath export resolves and can execute through injected runtime bind watchdog: ${JSON.stringify(path.resolve(packageRoot, 'scripts', 'long_task_watchdog.mjs'))}, dispatcher: ${JSON.stringify(path.resolve(packageRoot, 'scripts', 'operator_notify_dispatcher.mjs'))}, bridgeSupervisor: ${JSON.stringify(path.resolve(packageRoot, 'scripts', 'operator_notify_bridge_supervisor.mjs'))}, + senderBinding: ${JSON.stringify(path.resolve(packageRoot, 'scripts', 'operator_notify_sender_binding.mjs'))}, }, }, state: ${JSON.stringify(statePath)},