#!/usr/bin/env python3
# Copyright (c) 2026 PULSE Contributors. Proprietary. All rights reserved.
# See LICENSE file for details.
"""
Backward-compatibility shim for dispatcher lifecycle symbols.
Logic has been split per Law 7:
  - dispatcher_maintenance.py — check_stale_claims, unblock_dependents,
                                archive_completed, gc_stale_dispatches
  - dispatcher_routing.py     — apply_capability_routing, score_agent,
                                score_agents_for_task, should_rotate,
                                _detect_agent_divergence

All original public names are re-exported here so existing imports are unaffected.
"""
from pulse.tasks.dispatcher_maintenance import (  # noqa: F401
    STALE_THRESHOLD,
    COMPLETED_DIR,
    DAEMON_AGENTS,
    ALLOWED_AGENTS,
    ALLOWED_AGENT_PREFIXES,
    check_stale_claims,
    unblock_dependents,
    archive_completed,
    gc_stale_dispatches,
)
from pulse.tasks.dispatcher_routing import (  # noqa: F401
    apply_capability_routing,
    score_agent,
    score_agents_for_task,
    should_rotate,
    _detect_agent_divergence,
)
