Skip to content

Connect consented registration and first-edit reporting - #2231

Open
BlueHotDog wants to merge 2 commits into
feat/ads-reporting-backendfrom
feat/ads-conversion-hooks
Open

BlueHotDog wants to merge 2 commits into
feat/ads-reporting-backendfrom
feat/ads-conversion-hooks

Conversation

@BlueHotDog

@BlueHotDog BlueHotDog commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Review and deployment order

This is an ordered stack replacing #2227. Each stage compiles and is deployable after its predecessor; do not apply the patches in arbitrary order.

  1. Add inactive server-side conversion reporting #2230 — additive storage and inactive worker; no application producers or UI.
  2. Connect consented registration and first-edit reporting #2231 — consent UI, authentication and conversion hooks; feature remains off by default.

Description

  • Capture the original opaque oppref only with separate advertising permission; analytics consent never grants it.
  • Carry the signed API cookie through authentication and associate it using Scope-first APIs.
  • Claim registration only inside the actual new-user transaction, not on login or identity linking.
  • Claim a first successful editing conversion from persisted successful terminals and editing results in the same turn; hosted MCP uses a completed editing-operation boundary, not the external assistant's whole task.
  • Restrict credentialed attribution requests to the exact marketing Origin, bound JSON input, and clear public parameter maps before error telemetry.

Deployment safety and order

  1. Merge/deploy Report confirmed edits directly from tool results #2229: inactive eligibility queries.
  2. Merge/deploy Add inactive server-side conversion reporting #2230 and its additive migration: inactive reporting backend and worker.
  3. Merge/deploy this PR: consent UI and conversion hooks.

This is the first stage that connects production event producers. The tables, worker and query APIs are supplied by the earlier stages, so no future PR is needed for this stage to compile or run. Leave OPENAI_ADS_ATTRIBUTION_ENABLED off until the complete stack is deployed, then configure the real Pixel ID and server-side CAPI key before enabling it in the API and marketing build. No deployment or campaign settings are changed by this PR.

The PRs are an ordered stack, not three patches intended to be applied in arbitrary order.

Revised first-edit eligibility

Only accounts with a recorded registration milestone qualify. The completed operation must report a top-level changed: true; there is no historical backfill. Consent, feature flags, and deduplication still govern delivery.

The revised database integration tests have not run locally because PostgreSQL was unavailable.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T20:24:16.353729Z 175d044 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Devin Review

@BlueHotDog
BlueHotDog added this pull request to stack #2234 November 20, 2026 19:09

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant