Internal Service β This is not an HTTP endpoint. Itβs called directly by the
generate-all orchestrator.Purpose
Copies the pre-payment ranking score to thevisibility_score_history table. This preserves the initial score so users can see their progress over time.
Runs in GROUP 1e (parallel with scrape, fire-and-forget). Doesnβt need scraped pages.
Function Signature
Parameters
| Parameter | Type | Description |
|---|---|---|
url | str | The website URL |
org_slug | str | The Clerk organization slug |
Returns
What It Does
- Fetches the pre-payment ranking score from the ranking database
- Creates a history entry in
visibility_score_history - This becomes the βDay 0β baseline for tracking improvement