The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
docs(cron): drop stale mirror-scope wording left by the home lane
kshitijk4poor4a76e99f8764
diff --git a/cron/scheduler_delivery.py b/cron/scheduler_delivery.pyindex 84532f0552a..92f99b4c9e8 100644--- a/cron/scheduler_delivery.py+++ b/cron/scheduler_delivery.py@@ -112,9 +112,9 @@ def _cron_mirror_delivery_enabled(job: dict, cfg: Optional[dict] = None) -> booldef _target_matches_origin(origin: dict, platform_name: str, chat_id: str,thread_id: Optional[str]) -> bool:- """True when a delivery target is the job's own origin conversation. Mirroring is scoped to- the origin session (guaranteed to exist); fan-out targets are broadcasts, deliberately NOT- mirrored. A pinned origin thread_id must match — a target without it is a different lane."""+ """True when a delivery target is the job's own origin conversation. A pinned origin+ thread_id must match — a target without it is a different lane. Mirror eligibility for+ non-origin targets is decided by ``_target_mirror_eligible``."""if (not originor str(origin.get("platform", "")).lower() != str(platform_name).lower()diff --git a/tests/cron/test_mirror_origin_fallback.py b/tests/cron/test_mirror_origin_fallback.pyindex ef58a172184..9e3f3dd0af9 100644--- a/tests/cron/test_mirror_origin_fallback.py+++ b/tests/cron/test_mirror_origin_fallback.py@@ -64,11 +64,6 @@ class TestMirrorEligibilityResolution:job = {"deliver": "all", "origin": None}targets = _resolve_delivery_targets(job)assert targets, "home channel should expand from 'all'"- from cron.scheduler_delivery import _expand_routing_tokens-- # Expansion is string-only routing, independent of mirror eligibility.- assert "slack" in _expand_routing_tokens("ALL")- assert _expand_routing_tokens("slack") == ["slack"]for t in targets:assert not _target_mirror_eligible(job, t, global_mirror=True)assert not _target_mirror_eligible(diff --git a/website/docs/user-guide/features/cron.md b/website/docs/user-guide/features/cron.mdindex cffcf448a6d..c20852630d9 100644--- a/website/docs/user-guide/features/cron.md+++ b/website/docs/user-guide/features/cron.md@@ -589,8 +589,8 @@ Behaviour is **thread-preferred**, scoped to the job's own conversation:recurring job (e.g. a daily brief) opens a fresh thread per run, keeping eachdelivery's follow-up discussion isolated.- **DM-only platforms** (WhatsApp, Signal, SMS): no threads exist, so the brief- is mirrored into the origin DM session instead — the DM itself is the- continuation surface.+ is mirrored into the target DM session instead (the origin DM, or the home DM+ for fallback and bare-platform jobs) — the DM itself is the continuation surface.Only the job's **own conversation** is ever touched: