- Keep only index, getting-started, invariants, performance, troubleshooting, and file-organization-summary in docs/ root - Add docs/architecture/ (storage, database interfaces, native fetcher) - Add docs/deployment/ (deployment-guide, DEPLOYMENT_CHECKLIST) - Add docs/compliance/ (accessibility, legal, observability) - Move integration guides and host-app docs to docs/integration/ - Move design/planning and prefetch docs to docs/design/ - Move Android consuming-app and comparison docs to docs/platform/android/ - Move DEPLOYMENT_SUMMARY and TODO-CLASSIFICATION to docs/progress/ - Archive deprecated platform-capability-reference to docs/_archive/ - Point platform-capability links to alarms/01-platform-capability-reference.md - Update docs/00-INDEX.md with new sections and paths - Fix cross-references in README, deployment, progress, design, testing, and test-app docs - Remove one-off COMMIT_MESSAGE.txt
4.6 KiB
4.6 KiB
ChatGPT Feedback Response Plan
Purpose: Action plan to address feedback from ChatGPT code review
Owner: Development Team
Last Updated: 2025-12-23
Status: active
Priority 1: Quick Wins (High ROI, Low Risk)
1.1 Repo Hygiene ✅ COMPLETE
- Check what build artifacts are tracked in git
- Remove tracked build artifacts from git (
.gradle/files) - Strengthen
.gitignore(add*.tar.gz,build/reports/,.gradle/nb-cache/,packages/*/dist/) - Verify
package.jsonfilesfield excludes build artifacts - Clean up any nested archives
1.2 Version Unification ✅ COMPLETE
- Update
README.mdversion from 2.2.0 → 1.0.11 - Update
src/definitions.tsversion from 2.0.0 → 1.0.11 - Add CI check script to verify version consistency (
scripts/check-version-consistency.sh) - Integrate version check into
scripts/verify.sh - Document version policy:
package.jsonis source of truth
Priority 2: Structural Improvements (Medium ROI, Medium Risk)
2.1 Native Plugin Refactoring
- Analyze
DailyNotificationPlugin.kt(~2,782 lines) - extract services - Analyze
DailyNotificationPlugin.swift(~2,047 lines) - extract services - Create service extraction plan:
SchedulerServicePermissionServicePower/ExactAlarmServiceReactivationServiceRollingWindowServiceStorage/StateRepositoryFetcherBridge
- Implement refactoring in small, mergeable batches
2.2 TODO Classification ✅ COMPLETE
- Audit all TODOs/FIXMEs/HACKs (found 34 instances)
- Classify into:
- Must ship: 7 items (rolling window logic, TTL validation, database operations)
- Nice-to-have: 2 items (performance metrics/statistics)
- Future (Phase 2/3): 19 items (explicitly deferred features)
- TypeScript Stubs: 3 items (iOS-specific stubs)
- Create comprehensive classification document (
docs/TODO-CLASSIFICATION.md) - Create issues for "must ship" items (7 issues needed)
- Move "Phase 2" items behind feature flags or to planning docs
Priority 3: CI/CD Infrastructure (High ROI, Low Risk)
3.1 CI Workflows ✅ COMPLETE
- Create
.github/workflows/ci.yml:- Node/TS: lint, typecheck, build, local CI,
npm packcheck - Android:
./gradlew test+lint(with graceful fallbacks) - iOS:
xcodebuild test(macOS runner, with graceful fallbacks)
- Node/TS: lint, typecheck, build, local CI,
- Add graceful fallbacks for standalone plugin context
- Add merge gates on CI passing (requires GitHub repo settings)
- Document CI setup in
ci/README.md(already documented)
3.2 Test Coverage
- Identify critical paths needing tests:
- Backoff policy correctness
- Idempotency key behavior
- Watermark monotonicity
- TTL-at-fire logic
- Rolling window / rate-limit counters
- Permission flows (Android 13+, exact alarm, battery optimization)
Priority 4: Packaging & Workspace (Medium ROI, Low Risk)
4.1 Workspace Package Dist ✅ COMPLETE
- Check if
packages/polling-contracts/dist/is committed (not tracked in git) - Add
packages/*/dist/to.gitignoreto prevent future commits - Verify
package.jsonfilesfield controls publishing (already correct) - Add
prepackscript to build subpackage before publish (optional enhancement)
Priority 5: Documentation (Low ROI, Low Risk)
5.1 Documentation Consolidation ✅ COMPLETE
- Update
README.mdwith clear entry points:- Quick Start section with links to getting started guide, examples, troubleshooting
- Install instructions (already in Getting Started guide)
- Minimal usage example (linked to Quick Start guide)
- Platform setup (linked to Getting Started guide)
- Troubleshooting link
- Architecture link (via Documentation Index)
- Add Compatibility Matrix:
- Capacitor versions supported (table with status)
- Android minSdk/targetSdk (23/35, with permission notes)
- iOS min version (13.0)
- Electron requirements (20+)
- Platform support summary table
- Add Behavioral Contracts section:
- Guaranteed behaviors (monotonic watermark, idempotency, TTL, persistence, recovery)
- Best-effort behaviors (delivery in Doze, background fetch timing, battery optimization)
Execution Order
- Week 1: Quick wins (Repo hygiene, Version unification)
- Week 2: CI/CD infrastructure
- Week 3-4: Native plugin refactoring (in batches)
- Week 5: TODO classification and cleanup
- Week 6: Documentation improvements
See also:
- ChatGPT Feedback Package — Original feedback
- System Invariants — Enforced invariants