muse-crew 0.13.1 → 0.13.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.
@@ -663,8 +663,8 @@ try {
663
663
  } catch (e) {
664
664
  return { __hatchWorkflowControl: "blocked", result: { blocked_reason: "Scheduler identity unreadable", message: String(e.message || e) } };
665
665
  }
666
- var cronOwner = inputs.cronOwner || ("cli:" + instanceId);
667
- log("Scheduler identity: instanceId=" + instanceId + " owner=" + cronOwner +
666
+ var cronOwner = inputs.cronOwner || null;
667
+ log("Scheduler identity: instanceId=" + instanceId + " owner=" + (cronOwner || "(omitted; instance-local)") +
668
668
  (identityFacts.registryJson ? " (kept from existing registry)" : " (first init; crew-home basename)"));
669
669
  var cronsResult;
670
670
  try {
@@ -673,13 +673,13 @@ try {
673
673
  "Manifest: " + crewRepoPath + "/seed/crons.json\n" +
674
674
  "crewHome: " + crewHome + "\n" +
675
675
  "Instance id (cron id suffix): " + instanceId + "\n" +
676
- "Cron owner: " + cronOwner + "\n" +
676
+ "Cron owner: " + (cronOwner || "(omitted)") + "\n" +
677
677
  "Id overrides (manifest id -> live id): " + JSON.stringify(cronIds) + "\n\n" +
678
678
  "Steps:\n" +
679
679
  "1. Read the manifest at " + crewRepoPath + "/seed/crons.json and parse it as JSON.\n" +
680
680
  " Fail closed (return passed: false) if the file is missing, is not valid JSON,\n" +
681
681
  " or any entry lacks a required field (id, title, enabled, mode, schedule,\n" +
682
- " owner, body_template).\n" +
682
+ " body_template).\n" +
683
683
  "2. For each manifest entry, in order:\n" +
684
684
  " a. The live id is the override for entry.id when present (inputs.cronIds[entry.id]).\n" +
685
685
  " Otherwise, the live id is entry.id + '-' + \"" + instanceId + "\" (instance-safe by\n" +
@@ -692,7 +692,7 @@ try {
692
692
  " - id: the live id\n" +
693
693
  " - title, enabled, mode from the entry\n" +
694
694
  " - schedule: the entry's schedule object\n" +
695
- " - owner: " + cronOwner + "\n" +
695
+ " - owner: omit (instance-local; do not pass owner)\n" +
696
696
  " - timeout_secs: the entry's timeout_secs when present\n" +
697
697
  " - body: the resolved template text\n" +
698
698
  " Record action 'created' with no updated fields.\n" +
@@ -708,7 +708,7 @@ try {
708
708
  "3. Write the cron registry at " + crewHome + "/.cron-registry.json — the exact\n" +
709
709
  " record a later uninstall uses to find these jobs. Build this JSON (one entry\n" +
710
710
  " per manifest entry, in manifest order, using the live ids from step 2):\n" +
711
- " {\"version\":1,\"instanceId\":\"" + instanceId + "\",\"owner\":\"" + cronOwner + "\",\n" +
711
+ " {\"version\":1,\"instanceId\":\"" + instanceId + "\",\n" +
712
712
  " \"crons\":[{\"id\":<live id>,\"manifestId\":<entry.id>}, ...]}\n" +
713
713
  " Write it with printf '%s' and a single-quoted heredoc so the shell\n" +
714
714
  " interpolates nothing, then read it back to confirm it parses.\n" +