feat(notification-outbox): populate SourceScript on outbound notifications

FU3: thread the executing script identifier from the script-execution
context down to the Notify outbox API so NotifyTarget.Send stamps
NotificationSubmit.SourceScript instead of leaving it null.

- ScriptRuntimeContext / NotifyHelper / NotifyTarget take an optional
  sourceScript value, carried through to NotificationSubmit.SourceScript.
- ScriptExecutionActor supplies "ScriptActor:<scriptName>", matching the
  Site Event Logging "Source" convention used for script error events.
- AlarmExecutionActor builds the context without the S&F engine, so its
  Notify API is inert; sourceScript defaults to null there.
This commit is contained in:
Joseph Doherty
2026-05-19 03:54:09 -04:00
parent a5653b4296
commit 558f9ceb39
3 changed files with 62 additions and 8 deletions

View File

@@ -125,7 +125,10 @@ public class ScriptExecutionActor : ReceiveActor
databaseGateway,
storeAndForward,
siteCommunicationActor,
siteId);
siteId,
// Notification Outbox (FU3): stamp the executing script onto outbound
// notifications using the Site Event Logging "Source" convention.
sourceScript: $"ScriptActor:{scriptName}");
var globals = new ScriptGlobals
{