{
  "schemaVersion": 2,
  "date": "2026.11.16",
  "publishedAt": "2026-11-16T14:52:48-08:00",
  "timeZone": "America/Los_Angeles",
  "title": "Recurring blank terminal investigation: background launcher correction",
  "publicationStatus": "Diagnosis complete; launcher corrected and startup verified",
  "executiveSummary": [
    "Investigated a frequently appearing blank Windows Terminal window that was suspected to originate in Hiro. Local process and scheduled-task evidence instead identified a separate background automation as the strongest match.",
    "The unrelated worker's PowerShell process and Windows Terminal started at exactly the same second. Its task repeats every five minutes. All six inspected Hiro scheduled tasks were disabled, and Hiro's long-running API process predated the reported window.",
    "Corrected both affected automation entry points to start through a windowless launcher and recorded the user's global requirement that unattended automation must remain in the background unless explicitly requested otherwise. No Hiro source or running service was changed."
  ],
  "workstreams": [
    {
      "title": "Local process attribution",
      "status": "Evidence collected",
      "details": [
        "Compared process creation times, parent process identities, command lines, task actions, task states and repetition intervals. The matching PowerShell worker and Terminal both started at 14:49:18 Pacific.",
        "Inspected Hiro launch helpers and open handoff titles. No overlapping requested popup investigation was identified; unrelated backlog issues were not executed.",
        "The screenshot alone cannot establish process ownership. The observed timestamp and scheduler correlation supports attribution to the unrelated worker; an independent terminal ownership trace was not captured."
      ]
    },
    {
      "title": "Windowless unattended automation",
      "status": "Installed and startup verified",
      "details": [
        "Replaced direct scheduled PowerShell actions with a GUI script host that launches PowerShell hidden at creation, waits for completion and propagates the child exit status.",
        "Updated installation source to retain the correction on reinstall. Changed only the installed task actions, preserving existing triggers, retry settings, run identity, time limits and overlap suppression. Saved the original task definitions locally for recovery.",
        "Normalized the inherited Windows search path before relevant child-process creation while preserving the rest of the runtime environment.",
        "Saved the user's cross-project background-task requirement in global agent instructions. No application-wide terminal setting was changed."
      ]
    }
  ],
  "decisions": [
    "Use observed process and scheduler evidence to avoid changing Hiro based only on the appearance of a PowerShell window.",
    "Prevent visible console creation in the launcher rather than relying only on a PowerShell window-style argument.",
    "Preserve background task behavior and exit status so operational failures remain visible to the scheduler.",
    "Exclude unrelated automation data, personal filesystem paths and private task output from this public journal."
  ],
  "validation": [
    {
      "check": "Real child-process launch",
      "status": "Passed",
      "result": "A harmless PowerShell child started through the new wrapper. Windows enumeration found no visible windows owned by that child, no additional Windows Terminal process appeared, and the wrapper returned the child's deliberately selected exit code 7."
    },
    {
      "check": "Installed task configuration",
      "status": "Passed",
      "result": "Both affected scheduled actions now use the windowless wrapper. The repeating worker retains its five-minute trigger, IgnoreNew overlap policy and three retries."
    },
    {
      "check": "Real scheduled worker startup",
      "status": "Passed",
      "result": "Triggered the existing worker task after the earlier run completed. Observed the scheduler starting the GUI script host and its PowerShell child with no new Windows Terminal process. The scheduled run completed with LastTaskResult 0; the application recorded status 0 and an empty error field at 14:53:06 Pacific."
    },
    {
      "check": "Journal tests and production build",
      "status": "Passed",
      "result": "npm run test:hiro passed, followed by npm run build. The generated-output validator passed for 273 entries, including timestamp schema, aliases, sitemap, Atom and noindex checks. Final journal wording was rebuilt and checked before commit."
    }
  ],
  "currentState": [
    "Hiro's checkout and running API were not changed. The diagnosed launcher belonged to separate local automation.",
    "The corrected scheduled worker completed successfully in the background. Longer-term recurrence observation remains outside this single-session verification.",
    "The public journal retains noindex metadata and is not added to NBA navigation."
  ],
  "nextSteps": [
    "Observe later scheduled executions; if another popup occurs, correlate that specific process before extending the fix.",
    "Apply the globally saved windowless-background requirement to future unattended automation and launcher examples."
  ]
}
