mirror of
https://github.com/lllin000/PaperForge.git
synced 2026-07-22 06:50:53 +00:00
- Updated 91 files: paperforge_lite → paperforge - Includes: AGENTS.md, README.md, docs/, command/, skills/, .planning/ - Preserved historical records in Phase 1 artifacts
4.6 KiB
4.6 KiB
Roadmap: v1.2 Systematization & Cohesion
Phase plan for Milestone v1.2. See REQUIREMENTS-v1.2.md for detailed requirements.
Overview
Goal: Transform PaperForge Lite from a functional-but-scattered prototype into a cohesive, user-centric system.
Approach: Two-phase roadmap — first unify commands and simplify CLI, then document and ensure cohesion.
Success Criteria:
- All agent commands use
/pf-*namespace - CLI has user-centric command set
- Documentation is consistent and complete
- Existing tests still pass
- Migration path exists for existing users
Phase 9: Command Unification & CLI Simplification
Goal: Implement unified /pf-* namespace and simplify CLI commands.
Tasks
-
Agent Command Aliases
- Create
/pf-deepas alias for/LD-deep - Create
/pf-paperas alias for/LD-paper - Create
/pf-ocras alias for/lp-ocr - Create
/pf-syncas alias for/lp-selection-sync+/lp-index-refresh - Create
/pf-statusas alias for/lp-status - Add
/pf-doctorcommand - Add deprecation warnings to old commands
- Create
-
CLI Command Simplification
- Implement
paperforge sync(combines selection-sync + index-refresh) - Add
--fulland--dry-runflags tosync - Add "consider using sync" hints to
selection-syncandindex-refresh - Evaluate
ocr run+ocr doctormerger - Update CLI help text to be user-centric
- Implement
-
Command Dispatch Layer
- Create unified command dispatch module
- Ensure
/pf-*and CLI commands share implementation - Add command metadata (description, prerequisites, examples)
-
Backward Compatibility Tests
- Test old commands still work during deprecation
- Test deprecation warnings appear
- Verify no regression in existing smoke tests
Deliverables
command/pf-deep.md,command/pf-paper.md,command/pf-ocr.md,command/pf-sync.md,command/pf-status.md,command/pf-doctor.md- Updated
paperforge/cli.pywith simplified commands tests/test_unified_commands.py
Definition of Done
- All
/pf-*commands work in sandbox - All old commands work with deprecation warnings
paperforge syncworks end-to-end- 17 existing smoke tests still pass
- New unified command tests pass
Phase 10: Documentation & Cohesion
Goal: Document architecture, create migration guide, ensure consistency.
Tasks
-
Architecture Documentation
- Create
docs/ARCHITECTURE.md - Document two-layer design (Worker + Agent)
- Document command dispatch pattern
- Document directory structure rationale
- Create
-
Unified Command Reference
- Create
docs/COMMANDS.md - Include agent ↔ CLI mapping matrix
- Cross-reference related commands
- Update AGENTS.md with unified reference
- Create
-
Migration Guide
- Create
docs/MIGRATION-v1.2.md - Old → new command mapping table
- Deprecation timeline
- FAQ for common issues
- Create
-
Command Doc Restructuring
- Restructure all
command/*.mdfiles - Standard template: purpose, prerequisites, examples, related commands
- Deprecation notices on old command docs
- Restructure all
-
Consistency Audit
- Audit all docs for consistent terminology
- Ensure "PaperForge" branding is consistent
- Verify command examples work in sandbox
- Check cross-references are valid
Deliverables
docs/ARCHITECTURE.mddocs/COMMANDS.mddocs/MIGRATION-v1.2.md- Restructured
command/*.mdfiles - Updated
AGENTS.md
Definition of Done
- All docs use unified
/pf-*naming - Migration guide is complete and tested
- Architecture doc accurately describes current system
- No broken cross-references
- Consistency audit passed
Timeline
| Phase | Estimated Duration | Dependencies |
|---|---|---|
| 9 | 1-2 sessions | v1.1 complete |
| 10 | 1 session | Phase 9 complete |
Total: 2-3 sessions
Risk Register
| Risk | Likelihood | Impact | Mitigation |
|---|---|---|---|
| Users confused by command changes | Medium | Medium | Deprecation warnings, migration guide |
| Tests break during refactoring | Medium | High | Maintain backward compatibility, test both old and new |
| Docs become inconsistent | Medium | Medium | Consistency audit as final task |
| Scope creep (adding features) | Medium | High | Strict "no new features" rule |
Post-v1.2 Ideas (Backlog)
- Remove
/LD-*and/lp-*commands (v1.3) - Add
paperforge configcommand for user settings - Plugin system for OCR providers
- Scheduled/automated worker triggers (if design changes)
Created: 2026-04-24 Milestone: v1.2 Systematization & Cohesion