You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(sync+metadata): bypass CF on cache-invalidate, restore scatter-basic created dates
Cache invalidation via api.anyplot.ai was returning HTTP 403 because
Cloudflare's bot-fight mode served a JS challenge to the GitHub Actions
curl call. Workaround: point the sync-postgres invalidate step at the
direct Cloud Run URL (https://anyplot-api-r3tvmejsmq-ez.a.run.app),
which is not behind Cloudflare. The CF-fronted api.anyplot.ai stays
unchanged for public reads.
Also bound the CACHE_INVALIDATE_TOKEN Secret Manager entry to the
anyplot-api Cloud Run service via `gcloud run services update
--update-secrets`. Without that, the endpoint returned 503 ("not
configured") even when the CF bypass worked. Verified: the direct URL
now returns 401 on a wrong token and 200 on the real one.
Separately, patched the 9 scatter-basic metadata YAMLs that were just
regenerated — their `created` had been stomped with today's timestamp
by the old impl-generate.yml behaviour (the immutable-created fix
landed in 7a33c0d AFTER the regen ran). Restored them all to the
original 2025-12-10 first-commit date pulled from git log.
generated_by also switched from the frozen 'claude-opus-4-5-20251101'
to the family alias 'claude-opus' so the metadata doesn't lie about
which opus version actually ran.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments