oc_chat
Loading...
Searching...
No Matches
exec_order.py
Go to the documentation of this file.
1#!/usr/bin/env python3
2# -*- coding: utf-8 -*-
3# oc_chat/registry/render/roadmap/exec_order.py
4
5# OCT-LINT: disable=tests_exist reason="Covered by oc_chat/tests/registry/roadmap/test_render_living_set.py"
6"""
7Retired ``ROADMAP-EXEC-ORDER.md`` export path (Plan 142 P1.6, §6.1 / [OP-1]d).
8
9Purpose
10-------
11The execution-order view is **retired as an output** ([OP-2]; DESIGN §7 — it was
12fully derivable from phase order + priority, no unique data). The ``file_kind``
13``roadmap_exec_order`` is kept in the schema CHECK as ``active=0`` only (the L-a
14superset rebuild); no active renderer export path emits it (AC §8.24). This
15module remains as an explicit retirement marker so a stale caller fails loudly
16rather than silently re-emitting the legacy file.
17
18Responsibilities
19----------------
20- ``render(*args, **kwargs)`` — always raise ``ExecOrderRetiredError``.
21
22Diagnostics
23-----------
24Domain: OC_CHAT.MAIN
25Levels:
26 L2 - module load / retirement guard
27 L3 - (none — no active render path)
28 L4 - (none — no active render path)
29
30Contracts
31---------
32- This module produces no output artifact; parser support for the legacy file is
33 historical/import-only (lives in ``registry/roadmap/parser.py``).
34
35Dependencies
36------------
37- oc_diagnostics (structured debug logging via _dbg)
38"""
39from __future__ import annotations
40
41from typing import Any
42
43from oc_diagnostics import _dbg
44
45_dbg("OC_CHAT.MAIN", "module", "loaded", 4)
46
47
48class ExecOrderRetiredError(RuntimeError):
49 """``ROADMAP-EXEC-ORDER.md`` is retired; do not render it (AC §8.24)."""
50
51
52def render(*_args: Any, **_kwargs: Any) -> str:
53 """Refuse to render the retired execution-order artifact."""
54 raise ExecOrderRetiredError(
55 "ROADMAP-EXEC-ORDER.md is retired (Plan 142 / [OP-2]); the lean ROADMAP.md "
56 "milestone table + priority subsumes it. Use 'oct agent roadmap render'."
57 )
58
59
60__all__ = ["ExecOrderRetiredError", "render"]