diff --git a/.agents/skills/multi-agent-mux-status/scripts/status.sh b/.agents/skills/multi-agent-mux-status/scripts/status.sh index 23d2711..f291b9c 100755 --- a/.agents/skills/multi-agent-mux-status/scripts/status.sh +++ b/.agents/skills/multi-agent-mux-status/scripts/status.sh @@ -167,6 +167,10 @@ def get_job_status(s): for r in (os.environ.get('MAM_JOBS_DIR'), cp.get('mam_jobs_dir')) if r] candidates += [os.path.join(r, jid, 'status.json') for r in (os.environ.get('DELEGATE_JOB_LOGS_DIR'), cp.get('delegate_job_logs_dir')) if r] + # Issue #57: the audit log lives next to the registry unless moved explicitly + from lib_py.delegation.mqtt_common import sibling_logs_dir + candidates += [os.path.join(sibling_logs_dir(r), jid, 'status.json') + for r in (os.environ.get('MAM_JOBS_DIR'), cp.get('mam_jobs_dir')) if r] candidates += [ os.path.join('.mam', 'jobs', f"{jid}.json"), os.path.join(project_root, '.mam', 'jobs', f"{jid}.json"), @@ -375,6 +379,10 @@ def get_job_status(s): for r in (os.environ.get('MAM_JOBS_DIR'), cp.get('mam_jobs_dir')) if r] candidates += [os.path.join(r, jid, 'status.json') for r in (os.environ.get('DELEGATE_JOB_LOGS_DIR'), cp.get('delegate_job_logs_dir')) if r] + # Issue #57: the audit log lives next to the registry unless moved explicitly + from lib_py.delegation.mqtt_common import sibling_logs_dir + candidates += [os.path.join(sibling_logs_dir(r), jid, 'status.json') + for r in (os.environ.get('MAM_JOBS_DIR'), cp.get('mam_jobs_dir')) if r] candidates += [ os.path.join('.mam', 'jobs', f"{jid}.json"), os.path.join(project_root, '.mam', 'jobs', f"{jid}.json"),