# TS41 — Critical SEO invariants are replayed automatically before and after deployment.

> Practical guide and complete protocol wording; fictional examples, without a website assessment.

Version: 0.3.0-draft.9 — published draft release.

Commit: `d6a6e73f5c21d52131d3f4e39cde309d97385cbc`.

SHA-256 (spec/protocol.json): `3af55b64677ccd74d3ccfcc49f3dbf469c90fb214844fe13c5f10773a11d9041`.

Attribution: Edikka. Protocol text and data: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).

[Normative JSON source](https://github.com/web-evidence/tsep/blob/v0.3.0-draft.9/spec/protocol.json).

[Canonical HTML control page](https://tsep-protocol.org/en/controls/TS41).

## SEO tests. Before and after deployment.

A useful SEO pipeline detects regressions and responds to unknown results. TS41 checks the retained plan, executions and deployment decisions.

Editorial responsibility: Edikka. Guide updated 2026-10-28 · 2026-10-28.2

### 01 · Understand

A green dashboard is insufficient if a route is missing or an errored test is ignored. Define project invariants: HTTP responses, allowed indexing, canonicals or critical content, then check their replay before and after application.

The criterion concerns regression prevention and its decision process. A correctly blocked defect does not automatically fail TS41; its first native profile does not allow overrides.

- **SEO invariant** — An expected property within a defined scope, checkable on each change. It must specify inputs and the acceptable result.
- **Checking process** — The plan, executions and decisions together. Its quality is separate from a defect in the tested release.

This process is a TSEP governance proposal. No single Google document prescribes this whole pipeline. [Versioned TSEP protocol](https://github.com/web-evidence/tsep/blob/v0.3.0-draft.9/spec/protocol.json).

### 02 · Check — Declare the invariant. Check its failure.

Choose a precise invariant, such as no meta robots noindex on a public page. Before release, deliberately inject that defect into a local copy and verify both the test and pipeline reaction.

1. Declare population, environments, invariants and blocking policy before attempts. The native profile provides no silent exception for failure.
2. Run the project command on the candidate version and retain inputs, outputs, exit code, version and timestamp. Do not replace failure with only the last successful attempt.
3. Replay the intentional defect in an isolated environment: it must be detected and trigger the planned reaction. Also verify return to a healthy state after the fix.
4. Reconcile before/after-release events against the same invariants. Retain the negative exercise and decisions without presenting local evidence as a remote CI run.

#### A minimal invariant to replay locally

**Python 3 · local HTML file test**

```python
# Python 3 — save as check_fixture.py
# Illustrative local measurement, not a TSEP assessment.
import sys
from pathlib import Path
from html.parser import HTMLParser

class Robots(HTMLParser):
    def __init__(self):
        super().__init__()
        self.tokens = []
    def handle_starttag(self, tag, attrs):
        a = dict(attrs)
        if tag.lower() == "meta" and a.get("name", "").lower() == "robots":
            self.tokens.extend(a.get("content", "").lower().replace(",", " ").split())

parser = Robots()
parser.feed(Path(sys.argv[1]).read_text(encoding="utf-8"))
blocked = any(t in {"noindex", "none"} for t in parser.tokens)
print("FAIL: robots meta blocks indexing" if blocked else "PASS: no blocking robots meta found")
raise SystemExit(1 if blocked else 0)

```

**Two fixtures to save in separate files**

```html
<!-- clean.html -->
<!doctype html><html lang="en"><head><meta charset="utf-8"><title>Example</title></head><body><h1>Public page</h1></body></html>
<!-- blocked.html: same document with this meta added inside head -->
<meta name="robots" content="noindex, follow">
```

**Local execution · expected exit codes 0 then 1**

```sh
python3 check_fixture.py clean.html
python3 check_fixture.py blocked.html
```

The script only reads meta name=robots in one file. It checks neither X-Robots-Tag, agent-specific directives, HTTP access nor indexing. Its result is not a TS41 conclusion; it illustrates the negative-fixture mechanism.

In the reference text, JSONL means one JSON object per line; release-invariants-v1 names the native evidence contract. The TSEP engine reads supplied traces and does not execute your commands.


#### An accidental noindex must block release

Fictional example, illustrative values.

Before

```text
Candidate release: noindex on a public page
Test: fail
Pipeline: warning ignored, deployment launched
```

After

```text
Prior negative rehearsal: defect detected
Candidate release: failure retained, application blocked
Fix: new tests and recorded decision
```

The SEO defect remains a defect. A process that detects and correctly blocks it can qualify under TS41 if all its other expectations are established.

#### Evidence to retain

Prior plan and review, matrix, native receipts, process codes, negative rehearsal, JSONL journal and before/after artifact identities.

#### Scope of the conclusion

The first native profile is strict, without overrides. The reader never executes commands; runner, clocks and reviews are supplied, not authenticated. C qualifies the declared process, not global SEO health or a remote CI service.

#### Continue in TSEP Control

Prepare the evidence described in this guide. The application shows available workflows and required inputs: a control’s presence in the catalogue does not mean its automatic assessment is available.

[TSEP Control](https://app.tsep-protocol.org/?lang=en)

### 03 · Act — A detected defect. A verifiable response.

#### Unknown output ignored

Retain the inconclusive result and apply the planned policy. Do not replace it with success to get a green pipeline.

#### Incomplete population

Reconcile routes, variants and attempts with the plan. A different sample after failure does not establish a fix for the original scope.

#### Decision without a bound artifact

Bind the decision to the actually applied version and post-application evidence. A review comment alone does not replace this chain.

Who acts: Pipeline, deployment and SEO requirements owners.

### 04 · Recheck — New release. Same rule replayed.

Repeat healthy and intentionally defective cases with the same rule. Separately verify that the real pipeline honours the exit code.

1. Replay the planned matrix on the fixed release and retain previous failures.
2. Check post-application results and the final decision; date and justify every plan change.

### Frequently asked questions

#### Can the control pass when an SEO test fails?

Yes, if the process detects the defect, retains the result and reacts correctly, with all other expectations established. This does not turn the defect into SEO success. [Reference](https://github.com/web-evidence/tsep/blob/v0.3.0-draft.9/spec/protocol.json).

#### Does TS41 accept a release with reservations?

Not in the first strict native profile without overrides. A broader acceptance policy may allow reservations, but it does not replace this control’s versioned rules. [Reference](https://github.com/web-evidence/tsep/blob/v0.3.0-draft.9/spec/protocol.json).

### Statuses, sources and related controls

- **C · Conforming** — The applicable rules are evidenced within the declared scope. Read this control’s scope: C certifies neither the whole site nor a search engine outcome.
- **NC · Nonconforming** — Attributable evidence contradicts an applicable expectation. An unknown on another point does not erase that contradiction.
- **NT · Not tested or inconclusive** — Required evidence, context or review is missing or unresolved. The detailed rules specify the conditions for a conclusion.
- **NA · Not applicable** — No relevant deployment or pipeline within the scope and period.

- [Versioned TSEP protocol](https://github.com/web-evidence/tsep/blob/v0.3.0-draft.9/spec/protocol.json) · accessed 2026-10-28
- [Prevent indexing with noindex](https://developers.google.com/search/docs/crawling-indexing/block-indexing) · accessed 2026-10-28

- [TS07 — Detect indexing restrictions.](https://tsep-protocol.org/en/controls/TS07)
- [TS27 — Check deep routes after deployment.](https://tsep-protocol.org/en/controls/TS27)
- [TS36 — Organize post-change monitoring.](https://tsep-protocol.org/en/controls/TS36)

### Practical reading · Edikka

[Website acceptance testing before launch](https://www.edikka.com/en/insights/web-development/website-acceptance-testing-before-launch)

To organize responsibilities, evidence and launch decisions. Reservations in this broader method do not replace TS41’s strict native profile.

Article by TSEP’s initiator · accessed 2026-10-28


---

## Complete protocol wording

Domain: Performance and monitoring.

Rule version: 0.2.0-rc.1.

## Required inputs

configuration, ci-output, change-history, intent

## Applicability

Deployments subject to project-defined SEO invariants.

## Procedure

Fix the population, matrix and policy before attempts; replay native inputs/outputs, bound events and negative rehearsal under release-invariants-v1.

## Expectation

Reviewed representative plan, covered executions and correct failure/unknown handling; all three rules pass. A correctly blocked SEO defect stays visible without failing the process.

## Evidence

Bound plan/reviews, identified command/environment, native input/output receipts, process exit codes, JSONL journal and artifacts around application.

## Non-applicability

No relevant deployment or pipeline within the scope and period.

## Limitations

First strict native TSEP profile without overrides; supplied commands are never executed. Reviews, completeness, clocks and runner are supplied, not authenticated. C qualifies the declared process, not global SEO health, causality or remote CI.

## Outcome clarification

C requires all expectations across the declared scope. NC requires evidenced contradiction; otherwise NT. NA requires evidence of non-applicability.

## Reference scope

Edikka governance and non-regression control; no single official document prescribes this complete pipeline.

## Atomic rules

### TS41-A01 — Prior plan and representativeness

#### Required inputs

configuration, intent

#### Applicability

Deployments subject to project-defined SEO invariants.

#### Procedure

Check the window, attempts, matrix, strict policy and bound representativeness review before the window.

#### Expectation

Complete plan and supported review; explicit bound rejection = fail.

#### Evidence

Bound plan/reviews, identified command/environment, native input/output receipts, process exit codes, JSONL journal and artifacts around application.

#### Assumptions

Supplied population, comparable context, artifact identities and reviews; their truth remains to qualify.

#### Inconclusive outcome

Missing, unbound, late or incomplete plan/review; unsupported profile, threshold or scope.

#### Non-applicability

No automatic atomic exemption.

#### Limitations

First strict native TSEP profile without overrides; supplied commands are never executed. Reviews, completeness, clocks and runner are supplied, not authenticated. C qualifies the declared process, not global SEO health, causality or remote CI.

### TS41-A02 — Execution coverage and output fidelity

#### Required inputs

configuration, ci-output, change-history, intent

#### Applicability

Deployments subject to project-defined SEO invariants.

#### Procedure

Recalculate retained inputs; check matrix, artifacts, command, triggers and chronology without executing argv.

#### Expectation

Exact population and faithful outputs including retained unknowns; conclusive binding or output contradiction = fail.

#### Evidence

Bound plan/reviews, identified command/environment, native input/output receipts, process exit codes, JSONL journal and artifacts around application.

#### Assumptions

Supplied population, comparable context, artifact identities and reviews; their truth remains to qualify.

#### Inconclusive outcome

Missing receipt, cell, review, event or runtime; ambiguous journal, extra execution or differing inconclusive recalculation.

#### Non-applicability

No automatic atomic exemption.

#### Limitations

First strict native TSEP profile without overrides; supplied commands are never executed. Reviews, completeness, clocks and runner are supplied, not authenticated. C qualifies the declared process, not global SEO health, causality or remote CI.

### TS41-A03 — Negative rehearsal and process response

#### Required inputs

configuration, ci-output, change-history, intent

#### Applicability

Deployments subject to project-defined SEO invariants.

#### Procedure

Check prior negative failure, distinct pass/fail/inconclusive exit codes and explicit block/apply or accept/hold event.

#### Expectation

Effective negative rehearsal and phase-correct responses; masked failure/unknown, wrong action or observed override = fail.

#### Evidence

Bound plan/reviews, identified command/environment, native input/output receipts, process exit codes, JSONL journal and artifacts around application.

#### Assumptions

Supplied population, comparable context, artifact identities and reviews; their truth remains to qualify.

#### Inconclusive outcome

Missing/unqualified rehearsal, process exit, binding or action; journal absence cannot establish a block.

#### Non-applicability

No automatic atomic exemption.

#### Limitations

First strict native TSEP profile without overrides; supplied commands are never executed. Reviews, completeness, clocks and runner are supplied, not authenticated. C qualifies the declared process, not global SEO health, causality or remote CI.

