# SEO release checks: working template

This educational example covers two local HTTP pages, rather than a complete website acceptance audit. The server has stopped. Retained 127.0.0.1 URLs are not public endpoints. For your project, collect fresh facts and agree an expected URL list.

## Before changes

- Agree expected URLs and justified exceptions.
- Retain timestamp, build version, environment, and capture method.
- Capture actual HTTP responses and HTML, without filling in expected observations.
- Save the inventory JSON and Reproleaf report.

## After deployment

- Repeat the same capture across the same URL set.
- Check HTTP, nonblank titles, and agreed canonical declarations.
- Match exact URLs, rather than only comparing page counts.
- Separate verified fixes from missing conditions.
- Test forms and critical journeys independently.
- Assign release, observation, and recovery responsibilities.

One H1 is a condition of this example contract, rather than a universal Google ranking rule. HTTP 200 and a zero finding count do not establish indexing.

## Executed Node.js contract

```js
import fs from 'node:fs';
const inventory=JSON.parse(fs.readFileSync(process.argv[2],'utf8'));
const expectedUrls=JSON.parse(fs.readFileSync(process.argv[3],'utf8')).sort();
const urls=inventory.pages.map(p=>p.url).sort();
const accepted=JSON.stringify(urls)===JSON.stringify(expectedUrls)&&inventory.pages.every(p=>p.metadata.httpStatus===200&&p.metadata.htmlFacts.titlePresent===true&&p.metadata.htmlFacts.canonicalCount===1&&p.metadata.htmlFacts.h1Count===1);
console.log(JSON.stringify({accepted,observedPages:urls.length,expectedPages:expectedUrls.length}));
process.exitCode=accepted?0:1;
```

Expected URLs of the retained local example:

```json
[
  "http://127.0.0.1:59836/en/release",
  "http://127.0.0.1:59836/ru/release"
]
```

```sh
node release-gate.mjs inventory.json expected-urls.json
```

Actual execution results:

```json
[
  {
    "label": "before",
    "exitCode": 1,
    "accepted": false,
    "observedPages": 2,
    "expectedPages": 2
  },
  {
    "label": "after",
    "exitCode": 0,
    "accepted": true,
    "observedPages": 2,
    "expectedPages": 2
  },
  {
    "label": "partial",
    "exitCode": 1,
    "accepted": false,
    "observedPages": 1,
    "expectedPages": 2
  },
  {
    "label": "wrong-url",
    "exitCode": 1,
    "accepted": false,
    "observedPages": 2,
    "expectedPages": 2
  }
]
```

## Agree for your project

Website URL: ...
Environment: ...
Version: ...
Capture time and timezone: ...
Checks and exceptions: ...
Release decision owner: ...
Recovery procedure and its test: ...
Unverified conditions: ...
