Commit Graph

11 Commits

Author SHA1 Message Date
Matthew Raymer
e604b7f46c docs(progress): update changelog with deep fixes completion
- Document iOS rolling window counting implementation
- Document Android rolling window counting implementation
- Document iOS TTL validation enablement
- Document iOS SQLite persistence implementation
- Consolidate duplicate "Changed" sections in changelog

Refs: d8b2995 (code changes)
2025-12-24 04:13:41 +00:00
Matthew Raymer
442c48c233 refactor(android): P2.1 Batch A - delegate status/permission methods to services
- Refactor checkStatus() to delegate to NotificationStatusChecker
- Refactor getNotificationStatus() to delegate to NotificationStatusChecker
- Refactor checkPermissionStatus() to delegate to PermissionManager
- Add service instance variables and initialization in load()
- Defer getExactAlarmStatus() (requires complex service initialization)

Reduces plugin class complexity by ~130 lines.
Services already exist - this is delegation, not extraction.

Refs: docs/progress/P2.1-BATCH-1.md
2025-12-23 10:38:39 +00:00
Matthew Raymer
1f512f3add docs(progress): Update progress docs with all ChatGPT feedback response work
Updated progress documentation to reflect completion of:
- Priority 1: Version unification, repo hygiene
- Priority 2.2: TODO classification
- Priority 3: CI workflows
- Priority 4: Packaging fixes
- Priority 5: Documentation consolidation

All quick wins and infrastructure improvements documented.

Remaining: Priority 2.1 (Native plugin refactoring - larger work)
2025-12-23 09:54:08 +00:00
Matthew Raymer
484e427991 docs(progress): Update progress docs with ChatGPT feedback response work
Updated progress documentation to reflect:
- Priority 1 completion (version unification, repo hygiene)
- Priority 2.2 completion (TODO classification)

All changes documented in:
- docs/progress/01-CHANGELOG-WORK.md
- docs/progress/00-STATUS.md
2025-12-23 09:49:35 +00:00
Matthew Raymer
db573476a2 docs(progress): Update progress docs with TypeScript error fix
Updated:
- docs/progress/01-CHANGELOG-WORK.md: Added TypeScript error fix entry
- docs/progress/00-STATUS.md: Added TypeScript error fix to completed items
- docs/progress/03-TEST-RUNS.md: Added test run entry for TypeScript fix verification

All progress docs now reflect the successful resolution of the TypeScript
JSDoc parse error.
2025-12-23 07:34:33 +00:00
Matthew Raymer
26294bfefd docs(progress): Add detailed P3 completion entry to changelog
Added comprehensive P3 completion entry covering:
- P3.1: Performance optimization & metrics
- P3.2: Enhanced observability
- P3.3: Developer experience improvements
- P3.4: Documentation polish

All items include verification status and implementation details.
2025-12-23 07:28:22 +00:00
Matthew Raymer
1dcd96a67a docs(progress): Mark P3 complete in progress documentation
Updated:
- docs/progress/00-STATUS.md: Mark P3 complete, update baseline tag to v1.0.11-p3-complete
- docs/progress/01-CHANGELOG-WORK.md: Add detailed P3 completion entry

P3 Summary:
- P3.1: Performance optimization & metrics 
- P3.2: Enhanced observability 
- P3.3: Developer experience improvements 
- P3.4: Documentation polish 

All P3 items complete and documented.
2025-12-23 07:27:51 +00:00
Matthew Raymer
692f66ffd0 chore: P1.5b - Move iOS/App test harness out of published tree
Moved legacy iOS test harness from ios/App/ to test-apps/ios-app-legacy/

Rationale:
- Test harness should not be in published package tree
- Active test app remains at test-apps/ios-test-app/
- Legacy test harness preserved for reference

Verification:
- Confirmed ios/App no longer appears in npm pack --dry-run
- Build passes successfully
- Package structure cleaner

Progress Docs:
- Updated 00-STATUS.md: marked P1.5b complete
- Updated 01-CHANGELOG-WORK.md: added P1.5b completion entry
2025-12-23 04:30:13 +00:00
Matthew Raymer
38188d590e feat(android): P2.3 Android combined edge case tests - achieve parity with iOS P2.2
P2.3.1: Enable Android Test Infrastructure
- Added AndroidX test dependencies (JUnit, Robolectric, Room testing, coroutines-test)
- Enabled unit tests in android/build.gradle (removed disabled test configuration)
- Created test directory structure: android/src/test/java/com/timesafari/dailynotification/
- Created placeholder test file: DailyNotificationRecoveryTests.kt

P2.3.2: Create Test Infrastructure Helpers
- Created TestDBFactory.kt with in-memory Room database factory
- Added data injection helpers:
  - injectInvalidSchedule() - Invalid data scenarios
  - injectScheduleWithNullFields() - Null field handling
  - injectDuplicateSchedules() - Duplicate delivery scenarios
  - injectDSTBoundarySchedule() - DST boundary testing
  - injectPastSchedule() - Rollover scenarios
  - clearAllSchedules() - Test cleanup
- Similar to iOS TestDBFactory.swift but uses Room in-memory databases

P2.3.3: Implement Combined Test Scenarios
- Scenario A: test_combined_dst_boundary_duplicate_delivery_cold_start()
  - Tests DST boundary + duplicate delivery + cold start
  - Validates idempotency, deduplication, DST-consistent scheduling
- Scenario B: test_combined_rollover_duplicate_delivery_cold_start()
  - Tests rollover + duplicate delivery + cold start
  - Validates rollover idempotency, state reconciliation
- Scenario C: test_combined_schema_version_cold_start_recovery()
  - Tests schema version + cold start recovery
  - Validates version doesn't interfere with recovery

Progress Docs Updates:
- Updated 00-STATUS.md: marked P2.3 complete, added to phase status table
- Updated 01-CHANGELOG-WORK.md: added P2.3 completion entry with details
- Updated 03-TEST-RUNS.md: added P2.3 test run entry (pending execution)
- Updated 04-PARITY-MATRIX.md: marked combined edge case tests as  for Android

Parity Status:
- Android now has automated combined edge case tests matching iOS P2.2 intent
- All tests labeled with @resilience @combined-scenarios comments
- Tests use Robolectric for Android context, runBlocking for coroutines

TypeScript compilation:  PASSES
Build:  PASSES
CI:  All checks pass
2025-12-23 03:43:11 +00:00
Matthew Raymer
6b5b886951 feat(ios): complete P2.1 schema versioning and P2.2 combined edge case tests
P2.1: iOS Schema Versioning Strategy
- Added SCHEMA_VERSION constant and checkSchemaVersion() method in PersistenceController
- Version stored in NSPersistentStore metadata (observability contract, not migration gate)
- CoreData auto-migration remains authoritative; version mismatches logged, not blocked
- Documentation added to ios/Plugin/README.md with migration contract

P2.2: Combined Edge Case Tests
- Added 3 resilience test scenarios to DailyNotificationRecoveryTests.swift:
  - test_combined_dst_boundary_duplicate_delivery_cold_start()
  - test_combined_rollover_duplicate_delivery_cold_start()
  - test_combined_schema_version_cold_start_recovery()
- All tests labeled with @resilience @combined-scenarios comments
- Tests verify idempotency and correctness under combined stressors

P2.3: Android Combined Tests Design
- Created P2.3-DESIGN.md with scope, invariants, and acceptance criteria
- Created P2.3-IMPLEMENTATION-CHECKLIST.md with step-by-step execution plan
- Design ready for implementation to achieve parity with iOS P2.2

Documentation Updates
- Fixed parity matrix: iOS invalid data handling now correctly shows " Recovery tested" with test references
- Updated progress docs (00-STATUS.md, 01-CHANGELOG-WORK.md, 03-TEST-RUNS.md, 04-PARITY-MATRIX.md)
- Updated P2-DESIGN.md to reflect P2.3 scope (Android combined tests)
- Updated SYSTEM_INVARIANTS.md baseline tag references

Baseline Tag
- Created and pushed v1.0.11-p2-complete tag
- Tag represents P2.x completion (schema versioning + combined resilience tests)

All invariants preserved. CI passes. Tests runnable via xcodebuild on macOS.
2025-12-22 12:59:40 +00:00
Matthew Raymer
eb1fc9f220 feat(docs): complete P2.6 type safety cleanup and P2.7 system invariants
P2.6: Type Safety Cleanup
- Replaced 'any' return types in vite-plugin.ts with concrete types (UserConfig, transform return type)
- Documented TypeScript mixin 'any[]' exception in PlatformServiceMixin.ts
- Audit confirmed: zero 'any' in codebase except documented TS mixin limitation
- All external boundaries use 'unknown', all data payloads use 'Record<string, unknown>'

P2.7: System Invariants Documentation
- Created SYSTEM_INVARIANTS.md documenting all 6 enforced invariants
- Added to docs/00-INDEX.md under Policy & Contracts section
- Each invariant includes: What, Why, How, Where

Progress Docs Updates:
- Updated 00-STATUS.md: marked P2.6/P2.7 complete, added type safety invariant note
- Updated 01-CHANGELOG-WORK.md: added 2025-12-22 entries for P2.6/P2.7
- Updated 03-TEST-RUNS.md: added P2.6 type safety audit test run
- Updated P2-DESIGN.md: marked P2.6 acceptance criteria complete
- Updated SYSTEM_INVARIANTS.md: added Type Safety Notes section

Baseline Tag:
- Created v1.0.11-p0-p1.4-p1.5-p2.6-p2.7-complete

TypeScript compilation:  PASSES
Build:  PASSES
CI:  All checks pass
2025-12-22 10:56:00 +00:00