From 0ce3c9d6a15ab161d9e18026be1531be75901dce Mon Sep 17 00:00:00 2001 From: appdevelopsk Date: Sat, 14 Nov 2026 11:10:55 +0900 Subject: [PATCH 1/4] monitor: include BrainBurst and both AI debate guides in public source-vs-live inventory --- scripts/diagnose_growth_deploy.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/diagnose_growth_deploy.py b/scripts/diagnose_growth_deploy.py index 1da9d25c..8008b106 100644 --- a/scripts/diagnose_growth_deploy.py +++ b/scripts/diagnose_growth_deploy.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -"""Read-only compare of twelve deployed growth HTML pages against this checkout. +"""Read-only compare of fifteen deployed growth HTML pages against this checkout. Exit 0 requires HTTP 200 and byte-identical HTML on all configured pages. Hosts that rewrite HTML can cause false mismatches; inspect alongside growth smoke. @@ -14,8 +14,10 @@ from urllib.parse import urljoin, urlparse from urllib.request import Request, urlopen -SLUGS = ("debate-me", "tappitsu-battle", "future-me", "twotaku", "instant-judge") -PAGE_FILES = {"/": "index.html", "/apps": "apps.html"} +SLUGS = ("debate-me", "brain-burst", "tappitsu-battle", "future-me", "twotaku", "instant-judge") +PAGE_FILES = {"/": "index.html", "/apps": "apps.html", + "/guides/ai-debate-practice/": "guides/ai-debate-practice/index.html", + "/guides/ai-debate-practice/ja/": "guides/ai-debate-practice/ja/index.html"} PAGE_FILES.update({f"/support/{s}/": f"support/{s}/index.html" for s in SLUGS}) PAGE_FILES.update({"/press/": "press/index.html", "/press/es/": "press/es/index.html", "/press/pt-br/": "press/pt-br/index.html", "/press/ja/": "press/ja/index.html", "/press/id/": "press/id/index.html"}) STAMP = re.compile(rb' Date: Sat, 14 Nov 2026 11:11:21 +0900 Subject: [PATCH 2/4] test: enable offline diagnostic unit tests and guard 15 released growth routes --- scripts/test_diagnose_growth_deploy.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/scripts/test_diagnose_growth_deploy.py b/scripts/test_diagnose_growth_deploy.py index 6e8352f3..983d2ba7 100644 --- a/scripts/test_diagnose_growth_deploy.py +++ b/scripts/test_diagnose_growth_deploy.py @@ -2,7 +2,7 @@ import tempfile import unittest from pathlib import Path -from diagnose_growth_deploy import PAGE_FILES, compare, fetcher, inspect, stamp +from scripts.diagnose_growth_deploy import PAGE_FILES, compare, fetcher, inspect, stamp class DeploymentDiagnosisTests(unittest.TestCase): @@ -18,6 +18,16 @@ def setUp(self): dest.parent.mkdir(parents=True, exist_ok=True) dest.write_bytes(data) + def test_critical_new_and_stale_app_pages_are_in_release_inventory(self): + self.assertEqual(len(PAGE_FILES), 15) + for path, source in { + "/support/brain-burst/": "support/brain-burst/index.html", + "/guides/ai-debate-practice/": "guides/ai-debate-practice/index.html", + "/guides/ai-debate-practice/ja/": "guides/ai-debate-practice/ja/index.html", + }.items(): + with self.subTest(path=path): + self.assertEqual(PAGE_FILES[path], source) + def test_same_pages_pass(self): result = inspect(self.root, lambda p: (self.contents[p], 200)) self.assertTrue(result['all_identical']) From bf8011a50e9f6c458a8f8f9fafb851b78b9e25ce Mon Sep 17 00:00:00 2001 From: appdevelopsk Date: Sat, 14 Nov 2026 11:11:25 +0900 Subject: [PATCH 3/4] test: enable offline diagnostic unit tests and guard 15 released growth routes --- scripts/test_diagnose_growth_routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/test_diagnose_growth_routes.py b/scripts/test_diagnose_growth_routes.py index 7e4907e3..3c46960e 100644 --- a/scripts/test_diagnose_growth_routes.py +++ b/scripts/test_diagnose_growth_routes.py @@ -1,6 +1,6 @@ import unittest from urllib.error import URLError -from diagnose_growth_routes import diagnose, origin_from_url, summarize_response +from scripts.diagnose_growth_routes import diagnose, origin_from_url, summarize_response ORIGIN = "https://appdevelopsk.com" BODY = b'' From a209b4069e6883546386e14e9ba632c730fe9392 Mon Sep 17 00:00:00 2001 From: appdevelopsk Date: Sat, 14 Nov 2026 11:11:42 +0900 Subject: [PATCH 4/4] ci: run previously dormant public growth diagnostic tests on source and workflow changes --- .github/workflows/app-discovery-qa.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/app-discovery-qa.yml b/.github/workflows/app-discovery-qa.yml index b61f77e1..9ee93c71 100644 --- a/.github/workflows/app-discovery-qa.yml +++ b/.github/workflows/app-discovery-qa.yml @@ -31,6 +31,10 @@ on: - scripts/test_sitemap_route_integrity.py - scripts/test_sitemap_growth_freshness.py - scripts/test_live_smoke_diagnostics.py + - scripts/diagnose_growth_routes.py + - scripts/diagnose_growth_deploy.py + - scripts/test_diagnose_growth_routes.py + - scripts/test_diagnose_growth_deploy.py - scripts/test_live_smoke_source_parity.py - scripts/preflight_app_discovery.py - scripts/test_preflight_app_discovery.py @@ -78,6 +82,10 @@ on: - scripts/test_sitemap_route_integrity.py - scripts/test_sitemap_growth_freshness.py - scripts/test_live_smoke_diagnostics.py + - scripts/diagnose_growth_routes.py + - scripts/diagnose_growth_deploy.py + - scripts/test_diagnose_growth_routes.py + - scripts/test_diagnose_growth_deploy.py - scripts/test_live_smoke_source_parity.py - scripts/preflight_app_discovery.py - scripts/test_preflight_app_discovery.py @@ -113,6 +121,8 @@ jobs: run: python3 -m unittest scripts.test_sitemap_route_integrity scripts.test_sitemap_growth_freshness -v - name: Verify live failure inventory stays read-only and fail-closed run: python3 -m unittest scripts.test_live_smoke_diagnostics -v + - name: Verify 15 public deployment diagnostic routes and failure handling + run: python3 -m unittest scripts.test_diagnose_growth_routes scripts.test_diagnose_growth_deploy -v - name: Verify public smoke string assertions match current source run: python3 -m unittest scripts.test_live_smoke_source_parity -v - name: Verify multilingual press and real local rsync release staging