# Website Release Regression Command Center (`practical_ai_lab_jp/pal-website-release-regression-command-center`) Actor

Compare a bounded, robots-permitted sample of your public site against a saved baseline after each release and get severity-ranked regressions with source-linked evidence.

- **URL**: https://apify.com/practical_ai_lab_jp/pal-website-release-regression-command-center.md
- **Developed by:** [Practical AI Lab](https://apify.com/practical_ai_lab_jp) (community)
- **Categories:** E-commerce, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 release regression reports

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Website Release Regression Command Center

Run it before and after a website release. The Actor keeps a bounded baseline of your public site, then reports what got worse since the last run: new broken links, unexpected redirects, missing titles, canonical changes, malformed content types, failing CSS/JS/image files and indexability flips. Every finding is severity-ranked, grouped by buyer outcome and linked to the page that holds the evidence.

It is built for web release managers and QA leads who want a repeatable "did this deploy break anything search or visitors will notice?" check without crawling the whole site.

### Quick start

1. Make sure you are allowed to monitor the site.
2. Run with this input (replace the URL with your own site root):

```json
{
    "startUrl": "https://example.com/",
    "maxPages": 40,
    "minSeverity": "low"
}
```

3. **First run** returns a single dataset row with `findingType: "BASELINE_CREATED"`. Nothing is billable.
4. Deploy your release, then **run the same input again**. You receive `NO_CHANGES` or `CHANGES_DETECTED` with ranked findings.

The only required field is `startUrl`: one public HTTPS site root such as `https://example.com/` (no path, query string, credentials or custom port).

### What it checks

| Finding | Typical severity | Buyer outcome |
| --- | --- | --- |
| `NEW_BROKEN_LINK` – internal link target now fails (4xx/5xx/no response) | medium to critical | link_resource_integrity |
| `RESOURCE_FAILURE` – same-site CSS, script, image or icon now fails | low to high | link_resource_integrity |
| `PAGE_STATUS_REGRESSION` – a baseline page now fails, or a sitemap page is broken | high to critical | link_resource_integrity |
| `UNEXPECTED_REDIRECT` – new, changed or off-site redirect | low to critical | redirect_delivery |
| `MALFORMED_CONTENT_TYPE` – missing/malformed header, or HTML no longer served as HTML | medium to high | redirect_delivery |
| `MISSING_TITLE` – title element missing or lost | medium to high | search_visibility |
| `CANONICAL_CHANGED` – canonical changed, removed, added or pointed off-site | low to critical | search_visibility |
| `INDEXABILITY_FLIP` – indexable page became `noindex` / robots-blocked, or the reverse | medium to critical | search_visibility |
| `SITEMAP_REGRESSION` – a sitemap that used to load is now missing or invalid | high | search_visibility |

Broken-link and resource findings name the broken target in `pageUrl` and the first referring page in `sourceUrl`, with up to three referring pages in `evidence.referringPages`.

### Output

- **Dataset**: one row per finding, most severe first (`rank`, `severity`, `findingType`, `buyerOutcome`, `pageUrl`, `sourceUrl`, `summary`, `baselineValue`, `currentValue`, `evidence`, `recommendedAction`, `detectedAt`, `baselineCapturedAt`, `releaseVerdict`, `domain`). Baseline, no-change and failed runs produce one status row.
- **Key-value store** `OUTPUT`: run summary with finding counts by severity, type and buyer outcome, the `topPriorities` list (the five most severe findings with their recommended actions), coverage numbers, warnings and limitations.
- `REPORT.json` and `REPORT.csv`: the same ranked findings for sharing. CSV cells that start with spreadsheet formula characters are neutralised.

`releaseVerdict` is one of `BASELINE_ONLY`, `CLEAR`, `SHIP_WITH_FOLLOW_UP` (medium/low only), `REVIEW_BEFORE_RELEASE` (any high) or `BLOCK_RELEASE` (any critical). The verdict is a triage aid, not a guarantee.

Severity weights: critical 100, high 60, medium 30, low 10.

### Scheduling

Use Apify Schedules to run the same input daily or after each deploy (for example, via a deploy webhook that starts a run). Keep `stateStoreName` and `startUrl` identical across runs: the baseline is stored per domain in the named key-value store.

Baseline policy (`baselineUpdate`):

- `after_each_run` (default): each regression is reported once, then becomes the new normal.
- `when_no_blocking_findings`: the baseline only advances when a run has no high or critical findings, so serious problems keep being reported until fixed.
- `never`: pin a known-good release; use `resetBaseline: true` once to move it.

If you change scan limits (`maxPages`, `pathPrefixes`, and so on), the run warns that coverage may not be comparable.

### Billing

The code defines one pay-per-event charge named `release-regression-report`, issued at most once per run and only when a comparison run succeeds **and** reports at least one change. Baseline, no-change and failed runs are never charged. This project does not configure a price or payable plan; that is decided outside the code.

### Safety and politeness

- Public HTTPS only. Hosts that are IP addresses, `localhost`, internal suffixes, or that resolve to private, loopback, link-local or reserved addresses are rejected before every request.
- `robots.txt` is read first and obeyed (including `*` and `$` patterns and `Crawl-delay`, capped at 10 seconds). If it blocks the site root, or cannot be read reliably (HTTP 401, 403, 429, 5xx or network error), the run stops and nothing is billed.
- Redirects are followed only inside the same origin over HTTPS, at most three hops. Cross-origin or non-HTTPS redirects are never followed; they are recorded and reported.
- Requests are sequential with a delay, and page, sitemap and robots responses have byte limits. Sitemap indexes are expanded at most one level, with file and URL caps. DTD/entity declarations in sitemaps are rejected.
- No login, cookies, proxies, JavaScript rendering, form submission or contact harvesting. `mailto:` and `tel:` links are ignored, URLs containing `@` are dropped, and e-mail-like text is redacted from titles and outputs. Page bodies are never stored.
- Results contain public page metadata only: URLs, status codes, titles, canonical URLs, content types and indexability state.

### Limitations and sample-size caveats

- **It samples.** At most 200 pages (default 40) and a capped number of link/resource checks are examined per run. Pages are chosen by a stable hash of their URL, so the same pages are usually picked each run, but adding sitemap URLs can change the sample. A clean report means "no regression in the sampled pages", not "the site is healthy".
- Only same-origin internal links and resources are requested. External links and third-party assets are counted (`coverage`) but not checked.
- Pages are fetched as plain HTTP responses. Titles, canonicals, links and `noindex` tags added by JavaScript are not seen. Responses larger than `maxPageBytes` are truncated, and missing-title and removed-canonical findings are skipped for truncated pages.
- Compressed (`.gz`) sitemaps are not read. If no sitemap is usable, the run samples links from the home page instead and warns you.
- Comparison is against a single saved baseline, not a history. It detects change, not whether the change is intentional; a redirect or `noindex` you meant to add will still be reported once.
- Rate limiting, WAF blocks, temporary outages or geo-specific content can look like regressions. Re-run before escalating.
- Indexability reflects meta robots tags, `X-Robots-Tag` headers and robots.txt rules as seen by this bot. It is not a statement about what any search engine has indexed.
- HEAD requests are confirmed with a small GET before a link is called broken, but a flaky origin can still produce false positives.
- Domain resolution is checked immediately before each request; this reduces but cannot fully eliminate DNS-rebinding risk in a shared network stack.

### Input reference

| Field | Default | Notes |
| --- | --- | --- |
| `startUrl` | required | Public HTTPS site root |
| `maxPages` | 40 | 1-200 |
| `pathPrefixes` | none | Restrict sitemap pages, e.g. `/blog/` |
| `minSeverity` | `low` | `info`, `low`, `medium`, `high`, `critical` |
| `baselineUpdate` | `after_each_run` | See Scheduling |
| `resetBaseline` | false | Start over for this domain |
| `stateStoreName` | `pal-release-regression-baselines` | Named store; empty uses the run's default store (not persistent in the cloud) |
| `maxSitemapFiles` / `maxSitemapUrls` | 5 / 2000 | Sitemap bounds |
| `maxLinksPerPage` / `maxLinkChecks` / `maxResourceChecks` | 50 / 150 / 60 | Link and resource bounds |
| `maxPageBytes` | 1000000 | Per-page read limit |
| `requestDelayMs` / `requestTimeoutSecs` | 300 / 15 | Politeness and timeouts |

### Development

The test suite is fully offline (mocked transport and DNS):

```
python -m unittest discover -s tests -t . -v
```

# Actor input Schema

## `startUrl` (type: `string`):

Public HTTPS site root you are authorised to monitor, for example https://example.com/ (no path, query string or credentials).

## `maxPages` (type: `integer`):

Home page plus a stable sample of sitemap pages. More pages means broader coverage and a longer run.

## `pathPrefixes` (type: `array`):

Optional. Limit sitemap pages to paths starting with these prefixes, for example /blog/ or /products/. The home page is always included. Up to 10 entries, each starting with /.

## `minSeverity` (type: `string`):

Findings below this level are hidden from the report.

## `baselineUpdate` (type: `string`):

after_each_run reports each regression once. when_no_blocking_findings keeps the old baseline until a run has no high or critical findings. never pins the baseline until you reset it.

## `resetBaseline` (type: `boolean`):

Discard the saved baseline for this domain and create a fresh one in this run.

## `stateStoreName` (type: `string`):

Named key-value store that keeps baselines between runs (3-63 lowercase letters, digits or hyphens). Leave empty to use the run's default store, which does not persist between cloud runs.

## `maxSitemapFiles` (type: `integer`):

Upper bound on sitemap and sitemap index files fetched in one run (1-20).

## `maxSitemapUrls` (type: `integer`):

Upper bound on page URLs collected from sitemaps before sampling (100-10000).

## `maxLinksPerPage` (type: `integer`):

How many distinct same-site links per page are registered for broken-link checks (1-200).

## `maxLinkChecks` (type: `integer`):

Maximum number of extra requests used to verify internal link targets that are not sampled pages. Use 0 to skip link checks.

## `maxResourceChecks` (type: `integer`):

Maximum number of same-site stylesheets, scripts, images and icons verified per run. Use 0 to skip resource checks.

## `maxPageBytes` (type: `integer`):

Responses larger than this are truncated; missing-title and removed-canonical findings are skipped for truncated pages.

## `requestDelayMs` (type: `integer`):

A larger Crawl-delay in robots.txt overrides this value (capped at 10 seconds).

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout. Slow responses are recorded as no response.

## Actor input object example

```json
{
  "startUrl": "https://example.com/",
  "maxPages": 40,
  "pathPrefixes": [],
  "minSeverity": "low",
  "baselineUpdate": "after_each_run",
  "resetBaseline": false,
  "stateStoreName": "pal-release-regression-baselines",
  "maxSitemapFiles": 5,
  "maxSitemapUrls": 2000,
  "maxLinksPerPage": 50,
  "maxLinkChecks": 150,
  "maxResourceChecks": 60,
  "maxPageBytes": 1000000,
  "requestDelayMs": 300,
  "requestTimeoutSecs": 15
}
```

# Actor output Schema

## `results` (type: `string`):

Download rows from the latest run in JSON/CSV.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrl": "https://example.com/"
};

// Run the Actor and wait for it to finish
const run = await client.actor("practical_ai_lab_jp/pal-website-release-regression-command-center").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "startUrl": "https://example.com/" }

# Run the Actor and wait for it to finish
run = client.actor("practical_ai_lab_jp/pal-website-release-regression-command-center").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrl": "https://example.com/"
}' |
apify call practical_ai_lab_jp/pal-website-release-regression-command-center --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,practical_ai_lab_jp/pal-website-release-regression-command-center"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Ypjv0KjChCtseVyA7/builds/PaeOfHClqSQbNnmaY/openapi.json
