r/GoogleAppsScript • u/simonchai • Oct 14 '26
Guide v1.0.0: Apps Script two-way sync engine (Google Tasks ↔ Microsoft To Do) — 549 tests, adversarial-reviewed
Building in public here, so here's the engineering update: my Apps Script sync engine between Google Tasks and Microsoft To Do just hit v1.0.0.
What changed since the early version I posted:
- Five-axis adversarial review of the engine: state machines, fuzzing, concurrency, mutation testing, static consistency. Every finding had to reproduce against shipped code before it was accepted; every fix ships with a regression test.
- Fail-closed everywhere it matters: ambiguous creates use correlation markers instead of guessing, deletions take two rounds with live revalidation, state has checksums with previous-generation restore.
- Time Bridge: Google Tasks has no time-of-day, so [TTS-TIME:HH:mm] markers in notes become the canonical time record, rendered to Microsoft reminders plus optional Calendar projection.
- 549/549 tests passing, CI + CodeQL green.
The interesting constraint is the Apps Script execution budget — the whole thing runs on a 10-minute trigger inside ~6 minutes of runtime, so everything is checkpointed and resumable.
Scope: ~300 task pairs recommended, personal Microsoft accounts for the easy path.
MIT, self-hosted in your own Apps Script project. Roast the design if you'd do it differently — I'm here for that.
1
u/simonchai Oct 21 '26
A week on, a question for the Apps Script folks: the engine keeps its state gzipped in User Properties and stays fail-closed on ambiguous state. If you've built sync on Apps Script, I'd like to compare notes — and if my approach smells off, say so.
1
u/NinjaConsultingLLC Oct 25 '26
For Time Bridge, what should 09:00 mean if the user's timezone changes between two sync runs? A test that changes timezone between checkpoint and resume would be useful: the note marker can stay identical while the reminder's actual meaning changes. Make the expected wall-clock versus fixed-instant behavior explicit.
1
u/[deleted] 25d ago
[removed] — view removed comment