oc_chat
Loading...
Searching...
No Matches
promoted.py
Go to the documentation of this file.
1#!/usr/bin/env python3
2# -*- coding: utf-8 -*-
3# oc_chat/registry/regenerate/promoted.py
4
5# OCT-LINT: disable=tests_exist reason="Covered by oc_chat/tests/registry/regenerate/test_build.py"
6"""
7Re-export shim for ``PromotedItem`` (Plan 142i [OP-5] relocation).
8
9Purpose
10-------
11The promoted-item source model was relocated to
12``oc_chat.registry.source.promoted_item`` so the ``source`` layer
13(``canonical``/``hashing``) can resolve it for full three-projection hash parity
14without ``source`` importing ``regenerate`` (a forbidden dependency direction).
15
16This module is retained as a **load-bearing re-export shim** so pre-existing
17importers outside Plan 142i's file scope keep working with zero edits
18(``tools/seed_142_ingest.py``; ``oc_chat/registry/regenerate/pipeline.py``; the
19render-refinements test). Do not add logic here — import ``PromotedItem`` from
20its new home for new code.
21
22Responsibilities
23----------------
24- Re-export ``PromotedItem`` from its new home so legacy import paths resolve.
25
26Diagnostics
27-----------
28Domain: OC_CHAT.MAIN
29Levels:
30 L2 - module lifecycle
31 L3 - (n/a — pure re-export)
32 L4 - (n/a — pure re-export)
33
34Contracts
35---------
36- Pure re-export: ``PromotedItem`` is defined in ``source.promoted_item``.
37
38Dependencies
39------------
40- oc_diagnostics (structured debug logging via _dbg)
41- oc_chat.registry.source.promoted_item (the relocated model)
42"""
43from __future__ import annotations
44
45from oc_diagnostics import _dbg
46
47from oc_chat.registry.source.promoted_item import PromotedItem
48
49_dbg("OC_CHAT.MAIN", "module", "loaded", 4)
50
51__all__ = ["PromotedItem"]