fix(delegation): conflict refusals and legacy claims write next to the registry too

engine._flush computed the registry's audit-log root but did not pass it to
the conflict_refused append, and _pick_pending_legacy did the same for its
status_changed append, so both landed in the workspace default when the
registry was moved and no override was set (review P2, Issue #57).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
GodopuandClaude Fable 5.1 committed 2026-10-13 11:47:17 +00:00
1 parent 642a53b716
commit 6d182b392c
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -399,6 +399,6 @@ def _flush(notifications, registry_dir) -> None:
"reason": note.get("reason"),
"by": note.get("by"),
"timestamp": note.get("timestamp"),
})
}, logs_dir=logs_dir)
except Exception as exc: # pragma: no cover - best effort
logger.warning("audit mirror failed for %s: %s", job_id, exc)
+1 -1
View File
@@ -241,7 +241,7 @@ def _pick_pending_legacy(agent_session: str, registry_dir: str = DEFAULT_REGISTR
"to": "running",
"by": agent_session,
"timestamp": updated_at,
})
}, logs_dir=logs_dir)
return job_id