|
| None | add_roadmap_subcommands (argparse._SubParsersAction subcommands) |
| int | _cmd_import (argparse.Namespace args) |
| int | _cmd_render (argparse.Namespace args) |
| None | _emit_render_envelope (Exception error, bool as_json) |
| int | _cmd_reconcile (argparse.Namespace args) |
| JoinWriteResult | _write_links (argparse.Namespace args, object report) |
| None | _print_reconcile (object report, dict[str, object] payload, *, bool show_all, int limit) |
| int | _cmd_audit (argparse.Namespace args) |
| int | _cmd_bump (argparse.Namespace args) |
| int | _cmd_status (argparse.Namespace args) |
| tuple[object, SQLiteBackend, Registry] | _open (str|None registry_path) |
| None | _print_result (dict[str, object] payload, bool as_json) |
CLI commands for registry-backed ROADMAP data.
Purpose
-------
Expose roadmap import, export, audit, bump, and status commands.
Responsibilities
----------------
- Resolve registry and workspace paths through standard discovery.
- Dispatch roadmap corpus ingest, artifact export, and drift audit helpers.
- Dispatch the Plan 205 reconciliation check, which sits beside ``render
--check`` and answers a different question from it.
- Emit compact human or JSON command output.
Diagnostics
-----------
Domain: OC_CHAT.MAIN
Levels:
L2 - CLI lifecycle
L3 - command argument summaries
L4 - subcommand dispatch details
Contracts
---------
- Mutating bump operations route through the registry seam.
- Export writes only to the requested output directory.
Dependencies
------------
- argparse (CLI parsing)
- oc_chat.registry.roadmap.reconcile (the Plan 205 claims-vs-state check)
- oc_chat.registry.api (Registry facade over the live registry backend)
- oc_chat.registry.backends.sqlite (SQLiteBackend for the live registry and the status counts)
- oc_chat.registry.cli.source (source and hash-preimage subcommand wiring)
- oc_chat.registry.discovery (registry and workspace path discovery)
- oc_chat.registry.regenerate.envelope (error envelope and exit code for render failures)
- oc_chat.registry.render.roadmap (render check and living set writer)
- oc_chat.registry.roadmap.audit (audit_corpus for the audit command)
- oc_chat.registry.roadmap.ingest (ingest_corpus for the import command)
- oc_chat.registry.roadmap.operations (roadmap_version_bump for the bump command)
- oc_diagnostics (structured debug logging via _dbg)