8The ``oct test`` v1.0 SEED (Plan 189, spec-10 slice 2): the §9
9workspace/package discovery + selection layer as a pure library. The
10frozen v0.x ``oct test`` CLI is untouched (ADR-T-14); the v1.0 CLI
11cutover will consume this package. The oc_chat stand-in
12(``oc_chat/oc_chat/testing/``) stays independent until the §20.4
13retirement - the two trees share naming, never imports.
17- Re-export the public surface: the §12.4 error taxonomy as data
18 (``errors``), the §9 manifest test view (``manifest``), and the §9
19 precedence + ADR-T-12 walk (``discovery``).
20- No CLI, no entry point, no ``sys.exit`` anywhere in the package -
21 exits are data the future CLI slice maps at its boundary.
33- ``oct.core.workspace`` is a read-only dependency; this package
34 layers on top of the v0.25 loader without modifying it.
35- Import surface is stable for the v1.0 CLI slice: everything in
36 ``__all__`` here is the consumable API.
40- oct.testing.errors (re-exported: the §12.4 error taxonomy as data)
41- oct.testing.manifest (re-exported: the §9 manifest test view)
42- oct.testing.discovery (re-exported: the §9 precedence and ADR-T-12 walk)
43- oct.core.diagnostics (_dbg structured logger; imported but never called here)
46from __future__
import annotations
49 CWD_RESOLUTION_MESSAGE,
59 CWD_RESOLUTION_FAILED,
60 EXIT_CONFIGURATION_ERROR,
61 EXIT_ORCHESTRATOR_ERROR,
62 IMPLEMENTATION_CODE_CATALOG,
66 MANIFEST_TEST_BLOCK_INVALID,
71 WORKSPACE_AND_PACKAGE_BOTH_PASSED,
72 WORKSPACE_FILE_NOT_FOUND,
73 WORKSPACE_MANIFEST_INVALID,
84from oct.core.diagnostics
import _dbg
87 "CWD_RESOLUTION_FAILED",
88 "CWD_RESOLUTION_MESSAGE",
89 "DEFAULT_TEST_PROFILE",
91 "EXIT_CONFIGURATION_ERROR",
92 "EXIT_ORCHESTRATOR_ERROR",
93 "IMPLEMENTATION_CODE_CATALOG",
97 "MANIFEST_TEST_BLOCK_INVALID",
98 "MODE_SINGLE_PACKAGE",
109 "WORKSPACE_AND_PACKAGE_BOTH_PASSED",
110 "WORKSPACE_FILE_NOT_FOUND",
111 "WORKSPACE_MANIFEST_INVALID",
113 "exit_code_for_kind",
114 "load_test_manifest",