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
"""
7
Retired ``ROADMAP-EXEC-ORDER.md`` export path (Plan 142 P1.6, §6.1 / [OP-1]d).
8
9
Purpose
10
-------
11
The execution-order view is **retired as an output** ([OP-2]; DESIGN §7 — it was
12
fully 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
14
superset rebuild); no active renderer export path emits it (AC §8.24). This
15
module remains as an explicit retirement marker so a stale caller fails loudly
16
rather than silently re-emitting the legacy file.
17
18
Responsibilities
19
----------------
20
- ``render(*args, **kwargs)`` — always raise ``ExecOrderRetiredError``.
21
22
Diagnostics
23
-----------
24
Domain: OC_CHAT.MAIN
25
Levels:
26
L2 - module load / retirement guard
27
L3 - (none — no active render path)
28
L4 - (none — no active render path)
29
30
Contracts
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
35
Dependencies
36
------------
37
- oc_diagnostics (structured debug logging via _dbg)
38
"""
39
from
__future__
import
annotations
40
41
from
typing
import
Any
42
43
from
oc_diagnostics
import
_dbg
44
45
_dbg(
"OC_CHAT.MAIN"
,
"module"
,
"loaded"
, 4)
46
47
48
class
ExecOrderRetiredError
(RuntimeError):
49
"""``ROADMAP-EXEC-ORDER.md`` is retired; do not render it (AC §8.24)."""
50
51
52
def
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"
]
oc_chat.registry.render.roadmap.exec_order.ExecOrderRetiredError
Definition
exec_order.py:48
oc_chat
registry
render
roadmap
exec_order.py
Generated by
1.15.0