oc_chat
Loading...
Searching...
No Matches
hub_file.py
Go to the documentation of this file.
1#!/usr/bin/env python3
2# -*- coding: utf-8 -*-
3# oc_chat/core/hub_file.py
4
5# OCT-LINT: disable=tests_exist reason="Re-export shim; the module it names is covered by oc_orchestrator/tests/, and this path by test_272_hub_shims.py"
6"""
7The hub's default backend. — moved to :mod:`oc_orchestrator.hub_file`.
8
9Purpose
10-------
11Plan 272 P4. This module's code now lives in the standalone
12``oc_orchestrator`` package; this file keeps ``oc_chat.core.hub_file``
13working for every importer that has always spelled it that way —
14``tests/unit/test_259_dispatch_hooks.py`` and
15``tests/unit/test_272_hub_bus_carrier.py`` among them.
16
17It is a REBINDING, not a wrapper, for the reason ``core/hub.py`` gives:
18one object reachable by two names is what keeps ``isinstance``,
19``monkeypatch`` and every private name honest across the seam.
20
21Responsibilities
22----------------
23- Bind the moved module to this path. Nothing else.
24
25Diagnostics
26-----------
27Domain: OC_CHAT.MAIN
28Levels:
29 L2 - lifecycle events
30 L3 - semantic details
31 L4 - deep tracing (the rebinding)
32
33Contracts
34---------
35- Retirement rule (plan 272 P4): this path stays until an explicit
36 retirement plan retargets its importers. New code names
37 ``oc_orchestrator.hub_file`` directly.
38- Adds no behaviour of its own, so it can never drift from the module
39 it names.
40
41Dependencies
42------------
43- oc_diagnostics (structured debug logging via _dbg)
44- oc_orchestrator.hub_file (the moved module this path binds)
45"""
46
47from __future__ import annotations
48
49import sys
50
51from oc_diagnostics import _dbg
52
53from oc_orchestrator import hub_file as _moved
54
55_dbg("OC_CHAT.MAIN", "module", "hub_file shim -> oc_orchestrator.hub_file", 4)
56
57sys.modules[__name__] = _moved