From 642a53b716b43a4f61a7c0cd410a06edc585c735 Mon Sep 17 00:00:00 2001 From: Godopu Date: Tue, 13 Oct 2026 10:02:08 +0000 Subject: [PATCH] docs(delegate-job): the audit log is next to the registry unless DELEGATE_JOB_LOGS_DIR moves it Co-Authored-By: Claude Fable 5.1 --- .agents/skills/multi-agent-mux-delegate-job/SKILL.md | 9 +++++---- .agents/skills/multi-agent-mux-delegate-job/registry.md | 3 ++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.agents/skills/multi-agent-mux-delegate-job/SKILL.md b/.agents/skills/multi-agent-mux-delegate-job/SKILL.md index e00da6b..211193d 100644 --- a/.agents/skills/multi-agent-mux-delegate-job/SKILL.md +++ b/.agents/skills/multi-agent-mux-delegate-job/SKILL.md @@ -134,10 +134,11 @@ Which tree wins, by execution context: `python -m`: for `-m` the current directory precedes `PYTHONPATH`, so a frozen loop whose working directory happened to contain a `lib_py` package would have silently executed live code. The working directory is left untouched; the -registry and audit-log paths resolve to `MAM_JOBS_DIR` / `DELEGATE_JOB_LOGS_DIR` -when set, otherwise to `$WORKSPACE_ROOT/.mam/jobs` and -`$WORKSPACE_ROOT/.mam/delegate_job_logs` (the workspace `lib.sh` exports), and -only without either to the cwd-relative `.mam/...` (Issue #15 — this is what +registry path resolves to `MAM_JOBS_DIR` when set, otherwise to +`$WORKSPACE_ROOT/.mam/jobs` (the workspace `lib.sh` exports), and only without +either to the cwd-relative `.mam/jobs`; the audit log is the +`delegate_job_logs` next to the registry in use unless `DELEGATE_JOB_LOGS_DIR` +names another root (Issue #57, Issue #15 — this is what stops a caller whose cwd is not the workspace, such as the pytest suite, from registering jobs into a foreign registry). diff --git a/.agents/skills/multi-agent-mux-delegate-job/registry.md b/.agents/skills/multi-agent-mux-delegate-job/registry.md index afe4148..6fe063f 100644 --- a/.agents/skills/multi-agent-mux-delegate-job/registry.md +++ b/.agents/skills/multi-agent-mux-delegate-job/registry.md @@ -150,7 +150,8 @@ that session. Separate from the registry, every job is also mirrored to a durable append-only audit log at `.mam/delegate_job_logs//` (override with -`DELEGATE_JOB_LOGS_DIR`, default `/.mam/delegate_job_logs`). The registry +`DELEGATE_JOB_LOGS_DIR`, an audit-log root that is **not** next to the +registry; default: the `delegate_job_logs` next to the registry in use). The registry is **live state** mutated in place; the audit log is **history** that survives even after the registry dir is cleaned up. It is git-ignored.