From 9869b28cbe81a16274440517b4e75ba1503e46e9 Mon Sep 17 00:00:00 2001 From: appdevelopsk Date: Sat, 14 Nov 2026 10:55:32 +0900 Subject: [PATCH 1/8] release: include bilingual AI debate practice guide in owner-only VPS rsync allowlist --- scripts/publish_app_discovery.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/publish_app_discovery.sh b/scripts/publish_app_discovery.sh index 8d060fcf..6be8ab9d 100644 --- a/scripts/publish_app_discovery.sh +++ b/scripts/publish_app_discovery.sh @@ -15,7 +15,7 @@ root="${APP_SITE_DEPLOY_ROOT:-/var/www/html}" if [[ ! "$host" =~ ^[a-zA-Z0-9_.@-]+$ || ! "$root" =~ ^/var/www/[a-zA-Z0-9_./-]+$ ]]; then echo 'Invalid APP_SITE_DEPLOY_HOST or APP_SITE_DEPLOY_ROOT' >&2; exit 2 fi -files=(index.html apps.html sitemap.xml robots.txt guides/quick-games/index.html guides/quick-games/ja/index.html guides/daily-habits/index.html guides/decision-helpers/index.html guides/ai-tools/index.html support/brain-burst/index.html support/snaplingo/index.html support/face-reaction-battle/index.html support/twotaku/index.html support/debate-me/index.html support/idea-market/index.html support/blur/index.html support/instant-judge/index.html support/roast-me/index.html support/future-me/index.html support/tappitsu-battle/index.html support/taletime/index.html support/dog-breeds-encyclopedia/index.html press/index.html press/es/index.html press/pt-br/index.html press/ja/index.html press/id/index.html) +files=(index.html apps.html sitemap.xml robots.txt guides/quick-games/index.html guides/quick-games/ja/index.html guides/daily-habits/index.html guides/decision-helpers/index.html guides/ai-tools/index.html guides/ai-debate-practice/index.html guides/ai-debate-practice/ja/index.html support/brain-burst/index.html support/snaplingo/index.html support/face-reaction-battle/index.html support/twotaku/index.html support/debate-me/index.html support/idea-market/index.html support/blur/index.html support/instant-judge/index.html support/roast-me/index.html support/future-me/index.html support/tappitsu-battle/index.html support/taletime/index.html support/dog-breeds-encyclopedia/index.html press/index.html press/es/index.html press/pt-br/index.html press/ja/index.html press/id/index.html) for file in "${files[@]}"; do [[ -s "$file" ]] || { echo "Missing source file: $file" >&2; exit 2; } done From 9f8005805b69f5f98ac7653cd8520e6e43c26f1b Mon Sep 17 00:00:00 2001 From: appdevelopsk Date: Sat, 14 Nov 2026 10:55:44 +0900 Subject: [PATCH 2/8] release: verify bilingual debate guides are included in 46-file owner ZIP --- scripts/build_site_release_bundle.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/build_site_release_bundle.py b/scripts/build_site_release_bundle.py index 16e4efff..f2680f99 100644 --- a/scripts/build_site_release_bundle.py +++ b/scripts/build_site_release_bundle.py @@ -55,7 +55,7 @@ https://appdevelopsk.com and the expected canonical/hreflang, then check the public app catalog and support landing metadata. -This includes 27 app-discovery documents and 17 approved policy documents +This includes 29 app-discovery documents and 17 approved policy documents from current source. It is NOT a complete VPS backup, nginx configuration, database migration, browser test, app-store release, or SEO indexing proof. """ @@ -81,12 +81,13 @@ def release_manifest(root=ROOT): scripts = root / "scripts" apps = shell_array((scripts / "publish_app_discovery.sh").read_text(encoding="utf-8"), "files") policies = shell_array((scripts / "publish_stale_policy_pages.sh").read_text(encoding="utf-8"), "slugs") - if len(apps) != 27 or len(policies) != 17: + if len(apps) != 29 or len(policies) != 17: raise ValueError("publisher manifest count changed; review before bundling") if not PRESS.issubset(set(apps)): raise ValueError("one or more of the five press routes are not in publisher manifest") if not {"index.html", "apps.html", "sitemap.xml", "robots.txt", - "support/brain-burst/index.html", "support/debate-me/index.html"}.issubset(apps): + "support/brain-burst/index.html", "support/debate-me/index.html", + "guides/ai-debate-practice/index.html", "guides/ai-debate-practice/ja/index.html"}.issubset(apps): raise ValueError("critical app discovery/SEO pages missing from publisher manifest") if any(not re.fullmatch(r"[a-z0-9-]+", slug) for slug in policies): raise ValueError("unsafe privacy-policy slug") @@ -147,7 +148,7 @@ def main(): "status": "source_bundle_created_not_deployed", "output": str(output), "sha256": digest, - "appDiscoveryFiles": 27, + "appDiscoveryFiles": 29, "policyFiles": 17, "totalFiles": len(files), "pressRoutes": sorted(PRESS), From b615fb6cb00dd920b0c6d286cec5325c8fbd6322 Mon Sep 17 00:00:00 2001 From: appdevelopsk Date: Sat, 14 Nov 2026 10:55:57 +0900 Subject: [PATCH 3/8] test: ensure 46-file release ZIP includes both AI debate guides and all 5 press locales --- scripts/test_site_release_bundle.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/test_site_release_bundle.py b/scripts/test_site_release_bundle.py index 0e9b41e2..39e46f48 100644 --- a/scripts/test_site_release_bundle.py +++ b/scripts/test_site_release_bundle.py @@ -13,9 +13,13 @@ class AppsiteReleaseBundleTests(unittest.TestCase): def test_exact_publish_manifest_has_five_press_and_seventeen_policies(self): files = bundle.release_manifest() - self.assertEqual(len(files), 44) + self.assertEqual(len(files), 46) self.assertEqual(len(files), len(set(files))) self.assertTrue(bundle.PRESS.issubset(files)) + for guide in ("guides/ai-debate-practice/index.html", + "guides/ai-debate-practice/ja/index.html"): + self.assertIn(guide, files, "published sitemap entry missing from release ZIP") + self.assertEqual(sum(x.startswith("privacy-policy/") for x in files), 17) self.assertNotIn(".env", "\n".join(files)) self.assertFalse(any(".." in Path(x).parts or "." in Path(x).parts for x in files)) From 5d69d863cc7309267e377391435fede5aef84b0a Mon Sep 17 00:00:00 2001 From: appdevelopsk Date: Sat, 14 Nov 2026 10:56:17 +0900 Subject: [PATCH 4/8] ci: verify 46 documented site files plus hashes/instructions in source bundle --- .github/workflows/build-appsite-release-bundle.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-appsite-release-bundle.yml b/.github/workflows/build-appsite-release-bundle.yml index 8633d505..f05abebb 100644 --- a/.github/workflows/build-appsite-release-bundle.yml +++ b/.github/workflows/build-appsite-release-bundle.yml @@ -86,7 +86,7 @@ jobs: assert len(archives) == 1, 'one ZIP per verified source checkout' with ZipFile(archives[0]) as z: names = z.namelist() - assert len(names) == 46, f'44 site documents + hash manifest + instructions; got {len(names)}' + assert len(names) == 48, f'46 site documents + hash manifest + instructions; got {len(names)}' assert z.testzip() is None assert all(n.startswith('site/') or n in ('SHA256SUMS.txt', 'DEPLOY_README.txt') for n in names) PY From c2d2ce2975a801948d96621499119ffe01a4a5a4 Mon Sep 17 00:00:00 2001 From: appdevelopsk Date: Sat, 14 Nov 2026 10:56:21 +0900 Subject: [PATCH 5/8] test: prove English and Japanese AI debate guide paths in real isolated rsync layout --- scripts/test_publish_app_discovery_staging.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/test_publish_app_discovery_staging.py b/scripts/test_publish_app_discovery_staging.py index e72fcc31..becb537c 100644 --- a/scripts/test_publish_app_discovery_staging.py +++ b/scripts/test_publish_app_discovery_staging.py @@ -57,6 +57,8 @@ def test_real_relative_rsync_layout_matches_exact_allowlist(self): self.assertTrue(PRESS.issubset(set(paths)), "Every press locale must deploy") self.assertIn("apps.html", paths) self.assertIn("support/brain-burst/index.html", paths) + self.assertIn("guides/ai-debate-practice/index.html", paths) + self.assertIn("guides/ai-debate-practice/ja/index.html", paths) with tempfile.TemporaryDirectory() as tmp: dest = Path(tmp) / "www" dest.mkdir() From c6570a62ef275e5e97b158b53c683a95e402e6bb Mon Sep 17 00:00:00 2001 From: appdevelopsk Date: Sat, 14 Nov 2026 10:57:13 +0900 Subject: [PATCH 6/8] test: block sitemapped guide pages that are missing from VPS publish manifest --- scripts/test_publish_app_discovery_staging.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/scripts/test_publish_app_discovery_staging.py b/scripts/test_publish_app_discovery_staging.py index becb537c..41f4d7f1 100644 --- a/scripts/test_publish_app_discovery_staging.py +++ b/scripts/test_publish_app_discovery_staging.py @@ -12,6 +12,8 @@ import tempfile import unittest from pathlib import Path, PurePosixPath +from urllib.parse import urlsplit +from xml.etree import ElementTree ROOT = Path(__file__).resolve().parents[1] PUBLISH = ROOT / "scripts" / "publish_app_discovery.sh" @@ -52,6 +54,23 @@ def rsync_to(directory, paths, dry_run=False): class AppPublishStagingTests(unittest.TestCase): + def test_every_sitemapped_growth_guide_is_in_publisher_manifest(self): + # A newly written/indexed guide must not be absent from the VPS + # release manifest (Nov 14: two AI debate guides were initially omitted). + source = ElementTree.parse(ROOT / "sitemap.xml").getroot() + expected = set() + for node in source.iter(): + if node.tag.rsplit("}", 1)[-1] != "loc" or not node.text: + continue + url = urlsplit(node.text.strip()) + if url.scheme == "https" and url.netloc == "appdevelopsk.com": + if url.path.startswith("/guides/"): + self.assertTrue(url.path.endswith("/"), url.path) + expected.add(url.path.lstrip("/") + "index.html") + self.assertGreaterEqual(len(expected), 7) + missing = expected - set(manifest()) + self.assertFalse(missing, "Public sitemap advertises guides not in the VPS rsync manifest: " + ", ".join(sorted(missing))) + def test_real_relative_rsync_layout_matches_exact_allowlist(self): paths = manifest() self.assertTrue(PRESS.issubset(set(paths)), "Every press locale must deploy") From 131a8384b425f2c137532a9014c360d7948ce001 Mon Sep 17 00:00:00 2001 From: appdevelopsk Date: Sat, 14 Nov 2026 10:57:31 +0900 Subject: [PATCH 7/8] release: verify both AI debate guides and tracked Android CTA on actual public VPS --- scripts/check_app_discovery_live.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/scripts/check_app_discovery_live.sh b/scripts/check_app_discovery_live.sh index e86be2b6..4be93e41 100644 --- a/scripts/check_app_discovery_live.sh +++ b/scripts/check_app_discovery_live.sh @@ -154,6 +154,18 @@ grep -Fq 'support_future_me_hero' "$tmp/futureme.html" || { echo 'FAIL FutureMe if grep -Eiq 'Letters to future self|Time capsule feature|FutureMe Premium.*[0-9]+/(month|year)|FutureMe Premium 提供月度|NT\\$150/月' "$tmp/futureme.html"; then echo 'FAIL FutureMe support page contains outdated feature or pricing claims' >&2; exit 1 fi +# Newly indexed bilingual AI debate practice articles must be live and +# point to real Android app destinations, not just appear in sitemap/source. +fetch '/guides/ai-debate-practice/' 'ai-debate-practice.html' +grep -Fq '' "$tmp/ai-debate-practice.html" || { echo 'FAIL English debate guide language is stale' >&2; exit 1; } +grep -Fq 'How to Practice Debating with AI: 3 Exercises | SK Apps' "$tmp/ai-debate-practice.html" || { echo 'FAIL English debate guide source not deployed' >&2; exit 1; } +grep -Fq '' "$tmp/ai-debate-practice.html" || { echo 'FAIL English debate guide canonical missing' >&2; exit 1; } +grep -Fq 'utm_campaign=ai_debate_practice' "$tmp/ai-debate-practice.html" || { echo 'FAIL English debate guide Android referral CTA missing' >&2; exit 1; } +fetch '/guides/ai-debate-practice/ja/' 'ai-debate-practice-ja.html' +grep -Fq '' "$tmp/ai-debate-practice-ja.html" || { echo 'FAIL Japanese debate guide language is stale' >&2; exit 1; } +grep -Fq 'AIでディベートを練習する方法|3つのテーマと反論のコツ | SK Apps' "$tmp/ai-debate-practice-ja.html" || { echo 'FAIL Japanese debate guide source not deployed' >&2; exit 1; } +grep -Fq '' "$tmp/ai-debate-practice-ja.html" || { echo 'FAIL Japanese debate guide canonical missing' >&2; exit 1; } +grep -Fq 'utm_campaign=ai_debate_practice_ja' "$tmp/ai-debate-practice-ja.html" || { echo 'FAIL Japanese debate guide Android referral CTA missing' >&2; exit 1; } fetch '/robots.txt' 'robots.txt' # #53 broadened the allow to /icons/ (covers /icons/apps/). grep -Eq '^Allow: /icons/(apps/)?$' "$tmp/robots.txt" || { echo 'FAIL Google image crawl allow not live' >&2; exit 1; } From 0edba58a9207ec01713d1e18ecb7b63966775f30 Mon Sep 17 00:00:00 2001 From: appdevelopsk Date: Sat, 14 Nov 2026 10:57:42 +0900 Subject: [PATCH 8/8] test: source-validate public smoke checks for both AI debate guide locales --- scripts/test_live_smoke_source_parity.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/test_live_smoke_source_parity.py b/scripts/test_live_smoke_source_parity.py index ae722c8a..803bfd63 100644 --- a/scripts/test_live_smoke_source_parity.py +++ b/scripts/test_live_smoke_source_parity.py @@ -21,6 +21,8 @@ "apps.html": "apps.html", "quick-games.html": "guides/quick-games/index.html", "quick-games-ja.html": "guides/quick-games/ja/index.html", + "ai-debate-practice.html": "guides/ai-debate-practice/index.html", + "ai-debate-practice-ja.html": "guides/ai-debate-practice/ja/index.html", "sitemap.xml": "sitemap.xml", "brain-burst.html": "support/brain-burst/index.html", "taletime.html": "support/taletime/index.html", @@ -92,6 +94,8 @@ def test_expected_app_pages_are_actually_represented(self): self.assertIn("taletime.html", report["files"]) self.assertIn("futureme.html", report["files"]) self.assertIn("sitemap.xml", report["files"]) + self.assertIn("ai-debate-practice.html", report["files"]) + self.assertIn("ai-debate-practice-ja.html", report["files"]) def test_missing_required_marker_is_detected(self): fake = """grep -Fq 'current title' "$tmp/debate-me.html" || exit 1"""