From cbd87734c29c9e304b99f32a7be25b0800b87547 Mon Sep 17 00:00:00 2001 From: Godopu Date: Tue, 13 Oct 2026 09:57:42 +0000 Subject: [PATCH] fix(status): look for the audit log next to the registry Both get_job_status implementations (JSON and text) try the delegate_job_logs next to MAM_JOBS_DIR and the row's mam_jobs_dir after the explicit log roots, so a job whose registry record was cleaned up still shows its audit-only terminal status when the registry was moved. Co-Authored-By: Claude Fable 5.1 --- .agents/skills/multi-agent-mux-status/scripts/status.sh | 8 ++++++++ 1 file changed, 8 insertions(+) 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"),