11a full environment) ``_dbg()`` becomes a no-op so callers never crash.
12
13Responsibilities
14----------------
15- Expose ``_dbg`` re-bound from ``oc_diagnostics`` when importable.
16- Fall back to a no-op stub whose signature is EXACTLY ``oc_diagnostics._dbg``'s
17 (names, kinds, defaults) - no extra tolerance, so code that only ever ran
18 against the stub cannot silently depend on laxness the real callable
19 rejects (the plan-213 E0 lesson).
20- Never raise on import.
21
22Diagnostics
23-----------
24Domain: OCT-CORE
25Levels:
26 L2 - reserved (this module provides the plumbing and emits nothing itself)
27 L3 - reserved
28 L4 - reserved
29
30Contracts
31---------
32- Every OCT module that needs ``_dbg`` must import from here rather than
33 duplicating the try/except stub.
34- Signature must match ``oc_diagnostics._dbg`` so swap is transparent.
35
36Dependencies
37------------
38- oc_diagnostics (the real _dbg, re-exported when the package is importable)
39"""
40
41# OCT-LINT: disable-file=dbg_import reason="Plan 263: this module IS the fail-soft _dbg source, and a module-level self-import would resolve before the definition and raise ImportError"
42# OCT-LINT: disable-file=dbg_usage reason="Plan 263: the shim provides the plumbing and emits nothing itself, as its reserved-level Diagnostics profile states"