Writing Backfill — Missing Days, One Push

The Jul 30 engineering AI and security tabs post closed a documentation gap. The next gap was editorial: if my PC sleeps for three days, I still want three articles with the correct calendar dates — not three posts stamped today. Hourly catch-up solved wake-up for a single day. It did not solve backlog.

This week I rewired the local writing workflow around a backfill plan. Task Scheduler fires at 09:00 and 18:00 Europe/Berlin. scripts/writing-catchup.cjs pairs every missing day since the latest article with a pending topic, writes scripts/.writing-backfill-plan.json, and leaves the heavy lifting to one local Agent session that ends in npm run writing:finalize-batch.

Hourly cron from 08:00 to 22:00 assumed one article per day and todayBerlin() as the only date that mattered. That works when you open Cursor every morning. It fails when you travel, when Docker is down at 09:00, and when you come back three days later wanting Jul 31, Aug 1, and Aug 2 as separate posts.

← Rafael González Albes