- Add 'context' to _COMMAND_REGISTRY for dynamic module loading
- Add context subparser with key (nargs='?'), --domain, --collection, --all
- Dispatch in main() to paperforge.commands.context.run(args)
- D-06: always outputs JSON, no --json flag needed
- Import configure_logging from paperforge.logging_config
- Add --verbose/-v as root parser argument (global flag for all subcommands)
- Remove per-subcommand --verbose from deep-reading and repair subparsers
(users now use 'paperforge -v deep-reading' style instead)
- Call configure_logging(verbose=args.verbose) in main() before command dispatch
- validate: root-level --verbose works across all subcommands
- deviation per Rule 2: subparser --verbose removed; backward compat for
'deep-reading -v' requires root-level style 'paperforge -v deep-reading'
(argparse does not inherit root flags to subparsers)
- Create paperforge/worker/ package with sync.py, ocr.py, repair.py,
status.py, deep_reading.py, update.py, base_views.py
- Update paperforge/commands/*.py to import from new worker modules
- Update paperforge/cli.py _import_worker_functions for new paths
- Update paperforge/config.py ld_deep_script resolution with fallback
- Update setup_wizard.py for new worker/skills paths
- Add function-level imports to break circular dependencies
- Add scripts/consistency_audit.py with 4 automated checks
- Check 1: No old command names in active code/docs
- Check 2: No paperforge_lite references in Python code
- Check 3: No dead internal links in markdown
- Check 4: Command docs have required sections
Fix violations found by audit:
- Update paperforge/ocr_diagnostics.py error messages to use new commands
- Update pipeline/worker/literature_pipeline.py generated content to use /pf-deep
- Update scripts/welcome.py to recommend /pf-deep
- Update skills/literature-qa/prompt_deep_subagent.md title to /pf-deep
- Update skills/literature-qa/scripts/ld_deep.py docstrings to /pf-deep
- Fix dead links in docs/COMMANDS.md and command/*.md
- Update AGENTS.md migration section to reference MIGRATION-v1.2.md
- Update paperforge/cli.py module docstring to use current commands