Flagship case study · SEO engineering · November 2026

Kestrel SEO Operations Lab: building a publishing system that can refuse a bad release.

What happens when someone changes a programme fee, breaks a canonical tag or publishes hundreds of pages with the same technical mistake? I built Kestrel to find out how much of that risk an SEO team could catch automatically, before a visitor ever sees the page.

2026Project owner · SEO automationPython · GitHub Actions · n8n
Engineering proof · 18 November 2026
505 pages.
One quality gate.

500 fictional programme records, 505 unique canonical URLs, zero SEO errors or warnings in the offline benchmark. Inspect the run ↗

Executive summary · verified evidence

A system that makes website publishing safer.

I built Kestrel to check data, generate pages, test the finished website and monitor it after release. The numbers below come from real GitHub Actions test runs using fictional programme data.

505HTML pages checked in one offline run
505Unique canonical URLs in that run
0SEO errors and warnings in that run
26Unit tests passed on 23 November

Scale-test evidence · Unit-test and live-monitoring evidence · Evidence index

Business challenge

Publishing at scale creates a quality problem.

Think about an education website with hundreds of programme pages. Each page has a fee, entry requirements, a duration, an intake date and a source. A small mistake in a spreadsheet can become a public mistake on the website. Checking every field and every generated page by hand also takes time away from work that improves acquisition. I wanted a system that would catch repeatable defects, tell the team exactly what went wrong and protect the release until critical problems were corrected.

What success meant before I wrote the checks

I defined the operational problem in three parts: whether the source data is ready, whether the generated pages satisfy technical requirements, and whether the live website remains healthy after a release. Each part needs its own evidence. I also needed the system to distinguish a definite rule violation from a question only a person could answer.

Protect acquisition

Reduce the risk of misleading programme information or broken landing pages reaching prospects.

Protect staff time

Make repeatable checks executable and return specific findings rather than asking people to search manually for every defect.

System design

How the pipeline works.

  1. Store structured programme records in a CSV file.
  2. Validate required fields and data rules with Python before generation.
  3. Generate HTML pages from reusable templates.
  4. Run technical checks on generated output, including titles, canonicals, internal links and JSON-LD.
  5. Use GitHub Actions to stop a release when critical validation fails and permit deployment only after the configured checks pass.
  6. Run bounded live-site audits and produce actionable reports. Optional GA4, Search Console, Google Sheets and alert integrations require connected credentials.
Architecture · release and feedback loop
  1. 01 · SourceCSV programme facts, status and verification dates
  2. 02 · ValidateRequired fields, country-currency rules and duplicate keys
  3. 03 · GeneratePython templates create pages and SEO metadata
  4. 04 · AuditHTML, canonicals, links, schema and redirect map
  5. 05 · Release gateGitHub Actions evaluates exit status
  6. 06 · ObserveBounded crawl, reports and notification handoff
PASS → deploy
Upload the approved artifact and deploy to GitHub Pages.
FAIL → stop
Skip the release, preserve diagnostics, correct the issue and rerun.
The practice branch validates without deploying. The production workflow deploys only after the build job succeeds. The live crawler checks a different layer of risk.

Inside the first quality gate

Every programme record carries the programme name, country, fee, duration, entry requirements, intake, audience, source, verification date and publication status. The programme-country combination must be unique. Rows marked hold stay out of the generated website. For rows marked publish, blank factual fields and invalid country-currency combinations produce FIX findings.

if fees and expected and not fees.upper().startswith(expected + " "):
    out.append(("FIX", lab(i, r),
                f"fees '{fees}' should start with {expected}"))

This excerpt from pseo_checker.py illustrates the rule. The checker returns exit code 1, a signal that the build must stop, when it finds a FIX issue. A source older than 180 days produces a REVIEW warning. Someone still needs to confirm the source. A valid currency prefix also cannot prove that the numeric fee is correct.

Why check the generated website separately?

Valid data can become invalid HTML when a template changes. The second gate reads the actual files in the build output, checks unique titles and H1s, verifies canonical destinations and internal links, detects leftover placeholders, compares visible FAQ content with its markup, and checks sitemap coverage. The SEO operations audit then validates selected JSON-LD fields and the redirect map. These checks are intentionally independent of the spreadsheet.

Read the HTML QA code · Inspect the SEO audit · Inspect the production workflow.

Which failures stop a release, and which need a person?

SignalActionReason
Wrong country-currency prefix or missing factual fieldFIX · stopA deterministic source-data rule failed.
Old verification date or repeated audience copyREVIEW · investigateThe code cannot establish factual accuracy or editorial value.
Missing canonical or malformed JSON-LDFAIL · stopGenerated output violates a technical acceptance rule.
Canonical mismatchFAIL in generated-page QA; warning in the SEO auditThe two checkers apply different severity rules. The combined release pipeline is stricter.
Intentional hold statusExclude from generationUnapproved content must not enter the public build.

I wanted those decisions to be explicit because the wrong severity can itself become an operational problem. Blocking releases for every review question frustrates editors; allowing definite violations through undermines the purpose of the gate. The severity rules need agreement with the team before rollout.

Design decision: GitHub Actions decides whether the website can go live. n8n receives the results and sends them along the right path. This keeps an external reporting workflow from becoming the sole protection against a defective deployment.

Development journey · November 2026

How Kestrel evolved.

The project began with a structured CSV, a Python checker and a page generator. A working website was only the first milestone. The bigger question was whether I could build an SEO operations process that would remain dependable when someone changed the data or code.

Iteration 1: Make the release reliable

I added checks for generated HTML, metadata, internal links, schema and redirects, then connected the audit to GitHub Actions so critical defects could stop deployment. I separated warnings that need a person's judgment from failures that should stop a release.

Iteration 2: Make the system inspectable

I expanded the site into a multi-page lab with a searchable catalogue, diagnostic views and reports. I also simplified the interface copy so a nontechnical stakeholder could follow the process. The reporting system produces JSON for downstream automation and HTML for people.

Iteration 3: Test at a larger scale

I added an offline generator for 500 fictional programme records and used the same production page generator and QA tools. An actual problem emerged in the local preview: links needed to work with the localhost base address. I corrected the preview navigation and reran the scale workflow. Inspect the preview fix.

Iteration 4: Connect operations and monitoring

I added read-only GA4 and Search Console connection utilities, n8n orchestration and a separate production failure watcher. Practice-branch pushes run their checks without deploying and send the CI status, failed stage and review findings to the configured n8n endpoint. The monitoring and performance integrations are separate from the release gate so a team can distinguish publishing defects from ongoing search performance.

Browse the development history.

What changed between the iterations?

DateChange and rationaleEvidence
17 NovAdded SEO operations modules, strict release checks and a separate bounded crawl. This moved quality assurance into CI.Release gate
18 NovExpanded the UI, API utilities and offline 500-record benchmark. The demo stayed noindex to avoid distributing invented offers.Scale upgrade
18 NovFixed local preview navigation after discovering the localhost base-path issue.Preview fix
19 NovSeparated practice validation from production deployment and added a production failure watcher.Watcher commit

Each change made the system safer, easier to use, able to handle more pages or easier to monitor. The repository history shows the work and the changes, including the corrections.

Engineering evidence

What I implemented and tested.

24Illustrative source records

Fictional eCampus programmes.

26Automated tests passed

Verified in the 23 November 2026 workflow logs.

505HTML pages checked offline

500 synthetic programme pages and five site sections.

Kestrel workflow evidence showing a failed data validation run and a successful configured checks run
Two Kestrel practice runs on 20 November 2026: one stopped at programme-data validation; the other completed the configured checks.

Inspect the implementation: data validator, page generator, HTML checks, and workflow run history.

Fault injection · real workflow evidence

What happened when I deliberately broke things?

I used an isolated practice branch to introduce mistakes on purpose. A green build alone would tell me very little about whether the safeguards actually worked. Here is what the recorded runs showed.

Test 1: A Nigerian MBA fee in the wrong currency

I changed a fictional Nigerian MBA fee from its expected NGN prefix to GHS. The checker returned a FIX finding for row 20, the programme-data validation step failed and the subsequent audit was skipped. The workflow still completed its n8n notification step. After I restored the expected NGN currency, the next run passed validation and the generated SEO audit.

Failed currency test · Successful correction.

Test 2: A source that needed rechecking

I set the fictional record's last-verified date to 1 January 2025. The validator identified it as older than 180 days and returned a REVIEW warning. The practice build completed, but the warning remained visible for human review. I then restored the current verification date. In a real education business, I would require someone to check the underlying source before updating that date.

Review warning run · Restored-date run.

Test 3: A template change that broke the automated tests

A practice commit changed the link tag in the HTML head. Source data passed, but the scale-test harness failed because its generated-output QA returned a nonzero exit status. I restored the canonical link tag and the following practice run passed. This is why I validate rendered output as well as structured input.

Failed template test · Passing correction.

Test 4: An indexability mistake at scale

The 500-record offline test produced 505 HTML pages, 505 unique canonical URLs, zero SEO errors and zero SEO warnings. I also injected an intentionally mismatched indexability expectation and confirmed the audit detected UNEXPECTED_NOINDEX. These were controlled tests; the synthetic pages were never deployed publicly.

Successful scale test and downloadable evidence · Reproduction instructions.

Reading the failures correctly

The currency, stale-source, template and indexability cases were deliberate tests. The localhost navigation defect was a real development issue. The two categories are useful for different reasons: controlled tests show that a safeguard reacts as intended, while actual defects reveal assumptions that needed correction. I keep those distinctions explicit so the evidence is interpretable.

An issue that remains open

The 23 November live-monitoring run checked 30 URLs and reported one error and one warning. Its 26 automated unit tests passed, but the strict live crawl failed and saved its audit report. I have not verified a subsequent resolution. This distinction matters: a successful release gate does not guarantee a permanently healthy live website.

Live-monitoring run and audit artifact.

Beyond publishing

From SEO checks to decisions a team can act on.

Kestrel also includes a robots-aware bounded crawler, a redirect-map checker for duplicate mappings, chains and cycles, a GSC-based refresh queue with a human-review status, and an experiment-planning utility. These modules extend the workflow from preventing defects to prioritising work. GA4 and Search Console extraction, Sheets reporting and external notifications require appropriate credentials and destination configuration.

How the monitoring loop works

Live technical crawl

The crawler follows links within the configured host and path, consults robots.txt, caps visits and applies a request delay. It collects HTTP and HTML findings and writes a human-readable report and JSON output.

Crawler implementation

Failure routing

The independent production watcher listens for a completed unsuccessful main-branch release. It retrieves failed-job details and posts a structured event to the configured n8n webhook. Delivery must be monitored separately.

Failure watcher

Performance data

The documented n8n workflow requests GA4 daily sessions and pageviews, realtime active users and GSC page performance using read-only Google credentials. It also retrieves the published technical audit. A successful API response with zero rows is still valid.

API demonstration and setup

Editorial prioritisation

The refresh queue filters for at least 100 impressions by default, flags positions 4–20 or CTR below 3%, and scores candidates using impression and CTR signals. Every recommendation retains PENDING_HUMAN_REVIEW status.

Refresh logic

What an actionable finding looks like

A useful report needs to tell someone what to investigate without making them read the entire build log. The underlying Python audit represents each finding with a severity, an issue code, a URL and a description. Here is an illustrative finding using the actual field structure and the implemented missing-canonical rule:

{
  "severity": "error",
  "code": "CANONICAL_MISSING",
  "url": "https://example.com/programme/",
  "detail": "Canonical link is missing"
}

That structure lets a reporting workflow route critical items, link to the affected page and preserve a record of the finding. The actual practice workflow captures its first failed stage and source-review warnings; the example above illustrates the separate SEO audit format, rather than a historical incident.

Why performance reporting is a separate layer

The refresh queue defaults to a 100-impression minimum. For an illustrative page with 10,000 impressions, a CTR of 2% and average position 12, the implemented scoring rule produces 300: impressions × (0.05 minus CTR), with the full weight applied for positions at or above the top 20. This puts the page into a human review queue; it does not promise 300 additional clicks. A reviewer still has to examine query intent, ranking context and whether a change is justified.

The Sheets integration includes a script lock, schema-format validation and a fingerprint of sorted error findings, so the same set of errors need not produce repeated email alerts. This module is available to configure; a completed end-to-end notification test for that specific script is not established here. Inspect the Sheets and email integration.

The practice runs verified a CI-to-n8n notification step. The repository also includes a separate production watcher and permissioned analytics modules. I distinguish those implemented components from proof of ongoing end-to-end email delivery or production analytics reliability.

Explore the operations control center · Published technical report · Machine-readable report.

Commercial relevance

Why this matters for SEO teams.

The clearest result is that the system caught mistakes. The wrong-currency and template tests failed at the right steps. After the mistakes were fixed, the tests passed. The 505-page test shows that the same automated checks can cover a much larger set of pages without manually opening each one. A business could use this to reduce repetitive QA, prevent incorrect offers from reaching prospects and direct staff to the exact issues that need attention.

How I would measure the return on investment

For a real business, I would first measure how long manual checks take, how many errors reach the live site, how long fixes take and how much rework costs. Then I would compare equivalent releases after introducing the checks. As an illustrative calculation, inspecting 500 pages manually for two minutes each would require 1,000 minutes, or about 16 hours and 40 minutes. The actual saving would depend on the team's workflow, exception handling and editorial review time. This is a scenario, not measured time savings from Kestrel.

A concrete way to estimate staff time and payback

Suppose a team reviews 500 changed pages per release, spends two minutes per page on repeatable technical checks, and spends three hours after automation reviewing exceptions and performing the remaining manual checks. The illustrative baseline is 1,000 minutes, and the revised effort is 180 minutes. That would release 820 minutes (13 hours 40 minutes) per release, before accounting for system maintenance. At four comparable releases per month, it would be about 54 hours 40 minutes of capacity. These are assumptions for an ROI model; I have not measured these savings in a client deployment.

Time value

Monthly hours released × fully loaded hourly staff cost, minus maintenance costs.

Risk value

Measure the actual cost of escaped defects and their impact on landing pages, conversions and remediation before making a revenue claim.

What the evidence establishes for a business

Operational outcomeEvidence / measurement plan
Stop a known bad releaseObserved: currency validation failed before generation and subsequent audit. Track defects blocked per release.
Extend QA coverageObserved: 505 HTML pages audited offline with unique canonicals. Measure percentage of changed URLs covered.
Reduce manual checkingPotential: benchmark staff minutes before and after comparable releases, including human review.
Improve resolution speedPotential: measure elapsed time from finding to acknowledgement, assignment and verified correction.
Protect revenue and acquisitionPotential: connect actual landing-page defects and affected conversions to business data. No measured revenue recovery is claimed.

For a client rollout, I would first run the checks in observation mode against representative templates, agree on critical rules with the business owner, measure the baseline, and then enable the release gate in staging before production. I would track false positives so the system does not turn into a source of unnecessary interruptions.

Evidence library · reproduce the work

Don't just take my word for it.

These links allow a technical reviewer to inspect the actual source, test history and generated audit. Start with the public demo if you want the visual experience, then follow the workflow and code.

Source repository

CSV, Python scripts, integration examples and test suite.

Browse Kestrel on GitHub

Live demonstration

Fictional education catalogue and SEO operations views.

Open the live demo

500-record benchmark

Successful workflow with 505 HTML pages, summary JSON and audit artifact.

Open scale test run

Failure and recovery

Inspect the wrong-currency failure, followed by a passing correction.

Failed run · Passing run

Run the core checks yourself

Python 3.10 or later and Git are sufficient for the core offline workflow. Run from the repository root. These commands use the lab's fictional data.

git clone https://github.com/graceomolola001-cmyk/kestrel-pseo.git
cd kestrel-pseo
python -m unittest discover -s seo_ops/tests -v
python pseo_checker.py data/pages.csv
python build.py --base-url https://graceomolola001-cmyk.github.io/kestrel-pseo
python qa.py dist
python -m seo_ops.scale_test --count 500

Interview demonstration runbook · Offline benchmark instructions. GitHub Actions artifacts are subject to retention limits; the repository contains the commands to reproduce the test.

Engineering judgment

What I would improve next.

My next priority is to investigate the live-monitoring finding and rerun the crawl. I would also connect issue ownership to a team's ticketing or CRM system where it adds value, with deduplication, retry logic and an explicit verification step before closing an incident. Those are future production extensions, rather than completed capabilities of this lab. I would then benchmark operational savings using a real publishing workload.

The limits of the current implementation

Python validation identifies patterns and broken rules; only an authoritative source establishes the truth of a programme fact. The crawler inspects HTML without executing client-side JavaScript, so it is not a substitute for a rendered-browser audit. The fictional demo is deliberately noindex, the offline scale test does not measure rankings, and no client traffic, revenue or actual staff-hours savings are claimed. The next step is to test the system on a real website and measure the results.

How I would take this into a real team

I would begin with an inventory of page templates, source owners and conversion paths, then sample the existing website to identify which defects are recurring. The first pilot would run in observation mode. Once the team agrees on acceptable false-positive rates and severity rules, I would enable the critical checks in staging and expand to production. A technical owner would receive a failing run with its diagnostics; a content owner would receive a source-review task; and the same check would run again before either issue is closed. I would keep the analytics permissions read-only and the publishing authority in the deployment pipeline.

What this project says about my approach

I care about the operational consequences of SEO decisions. A good automation should make a real task more reliable, give the next person a useful diagnostic and fail visibly when its assumptions no longer hold. Kestrel gave me a concrete way to demonstrate that approach across code, content, analytics and release engineering.

Read the technical case study or reproduce the workflow using the public repository.

Building more reliable SEO operations?

Explore my work or contact me about technical SEO and automation roles.