|
| argparse.ArgumentParser | _parser () |
| int | main (Sequence[str]|None argv=None) |
| dict[str, object] | _run_project (ProbeProject project, *, Path repo_root, Path data_dir, Path python_executable) |
| dict[str, object] | _suite_record (CoverageRun suite) |
| dict[str, object] | _relativize_row (dict[str, object] row, Path repo_root) |
| dict[str, object] | _relativize_error (dict[str, object] row, Path repo_root) |
| str | _relative_path (str filename, Path repo_root) |
| str | _render_markdown (dict[str, object] payload, *, Path data_dir) |
| str | _probe_command (dict[str, object] payload, Path data_dir) |
| list[str] | _render_project (dict[str, object] project) |
| str | _escape_cell (object value) |
| Path | _instrument_root () |
| str | _command_text (Sequence[str] command) |
| str | _joined_output (*str parts) |
Purpose
-------
Run the Plan 214 worst-first CRAP probe over the Option C monorepo.
Responsibilities
----------------
- Execute each required MAIN-tree subproject suite under coverage.py.
- Invoke ``python -m oct.complexity`` against MAIN sources through worktree PYTHONPATH.
- Preserve failed suites as UNMEASURED with their captured output.
- Generate the full JSON artifact and top-25-per-project Markdown report.
Diagnostics
-----------
Domain: OCT-COMPLEXITY
Levels:
L2 - probe lifecycle
L3 - subproject measurement details
L4 - deep tracing
Contracts
---------
- The probe measures and never gates.
- Failed suites, parse failures, and never-imported functions are never omitted.
- Analyzer commands run against MAIN sources with this worktree's instrument.
Dependencies
------------
- oct.complexity.coverage (coverage suite runner)
- oct.complexity (not imported; run as python -m oct.complexity for the JSON analysis subprocess)