Argparse command surface for the registry operator tools.
Purpose
-------
Expose registry operator commands through
``python -m oc_chat.registry`` before the future ``oct agent`` rename.
Responsibilities
----------------
- Parse registry bootstrap command arguments.
- Resolve the target registry and workspace metadata.
- Generate seed identifiers and the initial operator credential fingerprint.
- Call :class:`SQLiteBackend` to apply schema and seed singleton rows.
- Dispatch doctor and db integrity-check commands.
Diagnostics
-----------
Domain: OC_CHAT.MAIN
Levels:
L2 - lifecycle events
L3 - semantic details
L4 - deep tracing
Contracts
---------
- `init` creates the SQLite registry only; doctor/db commands inspect or
repair existing registries.
- Raw secret bytes are used only to derive the stored fingerprint.
Dependencies
------------
- oc_diagnostics (structured debug logging via _dbg)
- oc_chat.registry.backends.sqlite (registry initialization backend)
- oc_chat.registry.cli.db (database maintenance command wiring)
- oc_chat.registry.cli.inspect (read-only inspect command wiring)
- oc_chat.registry.cli.migrate (legacy migration command wiring)
- oc_chat.registry.cli.plan (plan domain command wiring)
- oc_chat.registry.cli.queue (queue domain command wiring)
- oc_chat.registry.discovery (registry path discovery)
- oc_chat.core._version (resolve_version stamps the app version into the init seed)
- oc_chat.registry (Registry facade for the doctor, rotation, handover and auth commands)
- oc_chat.registry.auth.bootstrap (bootstrap-machine install and export-secrets bundle)
- oc_chat.registry.auth.handover (initiate and accept orchestrator handover)
- oc_chat.registry.auth.rotation (start and finalise credential rotation)
- oc_chat.registry.auth.secrets_store (writes the operator's initial secret block at init)
- oc_chat.registry.cli.checkpoint (checkpoint export and import command wiring)
- oc_chat.registry.cli.regenerate (top-level regenerate command wiring)
- oc_chat.registry.cli.roadmap (roadmap command group wiring)
- oc_chat.registry.cli.round (round-close command wiring)
- oc_chat.registry.cli.sync (sync command wiring for registry-backed artefacts)
- oc_chat.registry.doctor (doctor checks and report formatting)