docs(impact): add affiliate tracking spec and implementation plan#1761
Draft
jeanduplessis wants to merge 1 commit intomainfrom
Draft
docs(impact): add affiliate tracking spec and implementation plan#1761jeanduplessis wants to merge 1 commit intomainfrom
jeanduplessis wants to merge 1 commit intomainfrom
Conversation
b8c4e80 to
f7e8405
Compare
f7e8405 to
01b3026
Compare
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
Adds the spec and implementation plan for Impact.com affiliate tracking integration for KiloClaw subscriptions. This replaces the existing Rewardful integration.
.specs/impact-affiliate-tracking.md— Business rules spec defining attribution semantics, conversion events (SIGNUP, TRIAL_START, TRIAL_END, SUBSCRIPTION_START), reliability requirements, and GDPR handling.plans/impact-affiliate-tracking.md— Implementation plan covering Rewardful removal,user_affiliate_attributionstable, Impact.com API client, UTT installation, click ID capture through OAuth flow, and server-side conversion tracking in Stripe webhook handlers.No code changes — docs only. Implementation will follow in subsequent PRs.
Verification
oxfmt)Visual Changes
N/A
Reviewer Notes
The spec and plan were developed based on Impact.com's integration docs and the technical recommendations from their Solutions Architect (Pierluigi Stasi). Key architectural decisions:
user_affiliate_attributionstable rather than a column onkilocode_users, to support multiple affiliate providers over time.AffiliateProviderenum withenumCheckconstraint, following existing schema patterns.(user_id, provider).Open items that require Impact.com account setup are listed at the end of the plan.