oc_chat
Loading...
Searching...
No Matches
__init__.py
Go to the documentation of this file.
1#!/usr/bin/env python3
2# -*- coding: utf-8 -*-
3# oc_chat/registry/regenerate/__init__.py
4
5# OCT-LINT: disable=tests_exist reason="Covered by oc_chat/tests/registry/regenerate/*"
6"""
7The deterministic source -> store rebuild pipeline (Plan 142 P1.4 — the spine).
8
9Purpose
10-------
11Assemble the P1.1 models + P1.3 scanner/canonical/hashing into the 7-step
12``regenerate`` pipeline (Registry Source & Storage Spec V0.22 §5.3/§5.3.1/§10):
13scan -> parse/load -> local schema -> canonicalisation-check -> source_hash ->
14cross-record -> temp-DB build + derive-verify + verification-stamp publish-gate +
15WAL-safe atomic swap.
16
17Responsibilities
18----------------
19- Home for the build / cross-record / derive-verify / verified-projection /
20 envelope / pipeline modules + the promoted-item load model.
21- Run the P1.3 contracts bootstrap so ``option_c_registry_contracts`` imports.
22
23Diagnostics
24-----------
25Domain: OC_CHAT.MAIN
26Levels:
27 L2 - package lifecycle
28 L3 - submodule wiring
29 L4 - bootstrap details
30
31Contracts
32---------
33- Importing any submodule first runs the P1.3 contracts bootstrap.
34- The pipeline never reads or writes the shared main-repo registry.
35
36Dependencies
37------------
38- oc_diagnostics (structured debug logging via _dbg)
39- oc_chat.registry.source (scanner/canonical/hashing; runs the contracts bootstrap)
40"""
41from __future__ import annotations
42
43import oc_chat.registry.source # noqa: F401 (runs the contracts bootstrap)
44
45from oc_diagnostics import _dbg
46
47_dbg("OC_CHAT.MAIN", "module", "loaded", 4)