Operator CLI for registry artifact rendering.
Purpose
-------
Expose `python -m oc_chat.registry sync` for re-rendering registry-backed
filesystem artifacts.
Responsibilities
----------------
- Resolve the registry and workspace root through standard discovery.
- Acquire the compatibility write lock while rendering artifacts.
- Emit one `sync.run` audit operation through the registry seam.
Diagnostics
-----------
Domain: OC_CHAT.MAIN
Levels:
L2 - sync command lifecycle events
L3 - artifact action summaries
L4 - argparse/dispatch tracing
Contracts
---------
- All registry mutations go through `Registry.execute_domain_command`.
- Drift warnings are reported to stderr before human output.
Dependencies
------------
- oc_diagnostics (structured debug logging via _dbg)
- oc_chat.registry.discovery (path resolution)
- oc_chat.registry.render (artifact renderer)
- oc_chat.registry (Registry seam for the write lock and the sync.run audit)
- oc_chat.registry.backends.sqlite (SQLiteBackend over the discovered registry path)
- oc_chat.registry.domain (plan_reimport for kept local plan-status files)
- oc_chat.registry.render._common (RenderResult and plan_for_worktree lookup)