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 1f (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