Sprint 3: timed events + lifecycle webhooks - #9
Merged
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…hment, webhook ports
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ints, live demo event seed
…ts endpoint Wire activeMultiplier into POST /v1/events (fail-open to 1 on config-plane error), activeEventIds into GET /v1/placements/:slug/offer (fail-closed to an empty set), and add GET /v1/events/live mapping timedEventState to scheduled/live/ending_soon with countdowns. Also fixes a latent break in offers.test.ts's fixture (missing timedEventId) exposed once the offer route started passing a real active-events set. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
… webhooks Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ate secret, multiplier docs) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements the Sprint 3 plan (
docs/superpowers/plans/2026-07-07-sprint-3-timed-events.md): the TimedEvent primitive — Promocean's market differentiator — plus the webhook system.draft → scheduled → live → ending_soon → endedlifecycle computed on read (no cron for correctness), max-winsactiveMultiplier(clamped at achievement targets), offer-to-event attachment (fail-closed), webhook portsprivate: true), three config-plane endpoints, live-seeded "Double Progress Weekend" (×2)GET /v1/events/livewith server-computed countdownsgetLiveEvents(),<EventCountdown />(wall-clock recompute), demo integrationTest plan
Review notes
Ten tasks through implement → review → fix → re-review, plus a final whole-branch review (verdict: ready with fixes; applied in
3f6e1b5and re-approved: webhook fetch timeout, orphan-event guard, private secret field, multiplier docs). Follow-ups: #8 (webhook delivery hardening: redelivery/retention/shutdown/replay/SSRF), #4 and #3 extended with Sprint 3 scope notes.🤖 Generated with Claude Code