From 80771a4d2c71288a503a645400ae916859756c48 Mon Sep 17 00:00:00 2001 From: lorentz Date: Sat, 11 Jul 2026 11:45:02 -0400 Subject: [PATCH] docs(phase-13): evolve PROJECT.md after phase completion --- .planning/PROJECT.md | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.planning/PROJECT.md b/.planning/PROJECT.md index 354050e..5321c1d 100644 --- a/.planning/PROJECT.md +++ b/.planning/PROJECT.md @@ -158,15 +158,27 @@ future milestone that will consume this data once it exists. 16 no-match, 22 ambiguous), idempotent across re-syncs (resolved matches never overwritten). Validated in Phase 12: Orders/Invoices & Company Matching (PAX8-06, PAX8-10, PAX8-11) +- ✓ Daily scheduled sync + admin disable toggle — idempotent `pax8-daily` + cron row (`migrations/096_pax8_daily_schedule.sql`, disabled by default), + dual-guarded scheduler branch (`lib/services/sync-scheduler.ts`) that + skips `Pax8SyncService.fullSync('scheduled')` when PAX8 is unconfigured + or disabled via `integration_settings`, PAX8 registered as a toggleable + `/admin/integrations` row (`checkConfigOnly` in `integration-health.ts`), + and a 403 disabled-gate on `POST /api/pax8/sync`. Live-verified: scheduled + tick fires and runs the full sync (30,385 rows upserted), disable causes a + skip log with no new sync_history row, re-enable resumes on the next tick + with no restart. Admin-UI row rendering and the manual-route 403/200 still + need a human browser session (tracked in `13-HUMAN-UAT.md`). Validated in + Phase 13: Scheduler & Admin Toggle (PAX8-07, PAX8-09) ### Active -- New `/pax8` page, daily sync cadence — v2.0 PAX8 Integration milestone (see - above); client/auth/schema foundation (Phase 10), current-state sync - (Phase 11), and historical orders/invoices + company matching (Phase 12) - now validated above +- New `/pax8` page — v2.0 PAX8 Integration milestone (see above); client/auth/ + schema foundation (Phase 10), current-state sync (Phase 11), historical + orders/invoices + company matching (Phase 12), and scheduler/admin toggle + (Phase 13) now validated above ### Out of Scope @@ -254,4 +266,4 @@ This document evolves at phase transitions and milestone boundaries. 4. Update Context with current state --- -*Last updated: 2026-07-11 — Phase 12: Orders/Invoices & Company Matching complete* +*Last updated: 2026-07-11 — Phase 13: Scheduler & Admin Toggle complete*