Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save nhtahoe/214621e194080ccd3f99da88085fedb8 to your computer and use it in GitHub Desktop.

Select an option

Save nhtahoe/214621e194080ccd3f99da88085fedb8 to your computer and use it in GitHub Desktop.
PaintScratch SSR live regression audit 2026-04-04
[
{
"request_url": "https://www.paintscratch.com/touch-up-paint-codes/paint-code.html",
"page_type": "1) /touch-up-paint-codes/paint-code.html",
"expected_controller": "ColorCodesController",
"actual_controller": "ColorCodesController",
"status_code": 200,
"final_url": "https://www.paintscratch.com/touch-up-paint-codes/paint-code.html",
"result": "Pass",
"reason": "headers, raw HTML token scan, and rendered DOM checks passed",
"canonical": "https://www.paintscratch.com/touch-up-paint-codes/paint-code.html",
"token_count": 0
},
{
"request_url": "https://www.paintscratch.com/touch-up-paint-codes/aston-martin.htm",
"page_type": "2) /touch-up-paint-codes/{make}.htm",
"expected_controller": "MakeColorCodesController",
"actual_controller": "MakeColorCodesController",
"status_code": 200,
"final_url": "https://www.paintscratch.com/touch-up-paint-codes/aston-martin.htm",
"result": "Pass",
"reason": "headers, raw HTML token scan, and rendered DOM checks passed",
"canonical": "https://www.paintscratch.com/touch-up-paint-codes/aston-martin.htm",
"token_count": 0
},
{
"request_url": "https://www.paintscratch.com/touch_up_paint/",
"page_type": "3) /touch_up_paint/",
"expected_controller": "MakeIndexController",
"actual_controller": "MakeIndexController",
"status_code": 200,
"final_url": "https://www.paintscratch.com/touch_up_paint/",
"result": "Pass",
"reason": "headers, raw HTML token scan, and rendered DOM checks passed",
"canonical": "https://www.paintscratch.com/touch_up_paint/",
"token_count": 0
},
{
"request_url": "https://www.paintscratch.com/touch_up_paint/Aston-Martin/",
"page_type": "4) /touch_up_paint/{make}/",
"expected_controller": "MakeController",
"actual_controller": "MakeController",
"status_code": 200,
"final_url": "https://www.paintscratch.com/touch_up_paint/Aston-Martin/",
"result": "Pass",
"reason": "headers, raw HTML token scan, and rendered DOM checks passed",
"canonical": "https://www.paintscratch.com/touch_up_paint/Aston-Martin/",
"token_count": 0
},
{
"request_url": "https://www.paintscratch.com/touch_up_paint/Aston-Martin/2024.html",
"page_type": "5) /touch_up_paint/{make}/{subpath}.html (make-year)",
"expected_controller": "MakePageController",
"actual_controller": "MakePageController",
"status_code": 200,
"final_url": "https://www.paintscratch.com/touch_up_paint/Aston-Martin/2024.html",
"result": "Pass",
"reason": "headers, raw HTML token scan, and rendered DOM checks passed",
"canonical": "https://www.paintscratch.com/touch_up_paint/Aston-Martin/2024.html",
"token_count": 0
},
{
"request_url": "https://www.paintscratch.com/touch_up_paint/Ford/Bronco.html",
"page_type": "5) /touch_up_paint/{make}/{subpath}.html (make-model)",
"expected_controller": "MakePageController",
"actual_controller": "MakePageController",
"status_code": 200,
"final_url": "https://www.paintscratch.com/touch_up_paint/Ford/Bronco.html",
"result": "Pass",
"reason": "headers, raw HTML token scan, and rendered DOM checks passed",
"canonical": "https://www.paintscratch.com/touch_up_paint/Ford/Bronco.html",
"token_count": 0
},
{
"request_url": "https://www.paintscratch.com/touch_up_paint/Ford/2021-ford-bronco.html",
"page_type": "5) /touch_up_paint/{make}/{subpath}.html (make-year-model)",
"expected_controller": "MakePageController",
"actual_controller": "MakePageController",
"status_code": 200,
"final_url": "https://www.paintscratch.com/touch_up_paint/Ford/2021-ford-bronco.html",
"result": "Warning",
"reason": "canonical points to /Ford/Bronco.html;",
"canonical": "https://www.paintscratch.com/touch_up_paint/Ford/Bronco.html",
"token_count": 0
},
{
"request_url": "https://www.paintscratch.com/colors/aston-martin/balintyre-blue-metallic-9564/",
"page_type": "6) /colors/{make}/{slug}/",
"expected_controller": "ColorHubController",
"actual_controller": "ColorHubController",
"status_code": 200,
"final_url": "https://www.paintscratch.com/colors/aston-martin/balintyre-blue-metallic-9564/",
"result": "Pass",
"reason": "headers, raw HTML token scan, and rendered DOM checks passed",
"canonical": "https://www.paintscratch.com/colors/aston-martin/balintyre-blue-metallic-9564/",
"token_count": 0
},
{
"request_url": "https://www.paintscratch.com/colors/aston-martin/balintyre-blue-metallic-9564/pen",
"page_type": "7) /colors/{make}/{slug}/... non-kit",
"expected_controller": "ColorProductsController",
"actual_controller": "ColorProductsController",
"status_code": 200,
"final_url": "https://www.paintscratch.com/colors/aston-martin/balintyre-blue-metallic-9564/pen",
"result": "Pass",
"reason": "headers, raw HTML token scan, and rendered DOM checks passed",
"canonical": "https://www.paintscratch.com/colors/aston-martin/balintyre-blue-metallic-9564/pen",
"token_count": 0
},
{
"request_url": "https://www.paintscratch.com/colors/aston-martin/balintyre-blue-metallic-9564/kit-bottle",
"page_type": "8) /colors/{make}/{slug}/kit-*",
"expected_controller": "KitProductsController",
"actual_controller": "KitProductsController",
"status_code": 200,
"final_url": "https://www.paintscratch.com/colors/aston-martin/balintyre-blue-metallic-9564/kit-bottle",
"result": "Warning",
"reason": "kit page canonical points to hub URL;",
"canonical": "https://www.paintscratch.com/colors/aston-martin/balintyre-blue-metallic-9564/",
"token_count": 0
},
{
"request_url": "https://www.paintscratch.com/colors/ford/",
"page_type": "Control: /colors/{make}/ fallback",
"expected_controller": "(no SSR controller)",
"actual_controller": null,
"status_code": 404,
"final_url": "https://www.paintscratch.com/colors/ford/",
"result": "Pass",
"reason": "expected fallback_no_route_match with no SSR controller",
"canonical": "https://www.paintscratch.com/404",
"token_count": 0
},
{
"request_url": "https://www.paintscratch.com/collections/all",
"page_type": "Control: /collections/all non-worker",
"expected_controller": "(not worker SSR)",
"actual_controller": null,
"status_code": 200,
"final_url": "https://www.paintscratch.com/collections/all",
"result": "Pass",
"reason": "non-worker control; placeholder tokens present but out of SSR scope",
"canonical": "https://www.paintscratch.com/collections/all",
"token_count": 3
},
{
"request_url": "https://www.paintscratch.com/touch_up_paint/Ford/2021-ford-bronco-carbonized-gray-metallic-m7m7458.html",
"page_type": "Redirect control legacy year-model-color",
"expected_controller": "301 -\u003e /colors/... then ColorHubController",
"actual_controller": "ColorHubController",
"status_code": 200,
"final_url": "https://www.paintscratch.com/colors/ford/carbonized-gray-metallic-m7m7458/",
"result": "Pass",
"reason": "legacy path 301-redirects to /colors/... before final render",
"canonical": "https://www.paintscratch.com/colors/ford/carbonized-gray-metallic-m7m7458/",
"token_count": 0
}
]

PaintScratch SSR Regression Audit (Live)

Run Date (America/Los_Angeles): 2026-04-04 Report Generated: 2026-04-04 10:53:11 PM PDT Run Time Window (this run): 2026-04-04 10:42:45 PM PDT to 2026-04-04 10:53:11 PM PDT

A) High-Level Summary

  • Scope checked: all 8 in-scope SSR route families + 3 controls
  • Page types checked: 8 SSR types
  • URLs checked: 13 required baseline URLs (no replacements required)
  • Overall result: Pass with warnings
  • Hard failures: 0
  • Warnings: 2 (canonical alignment on two pages)
  • SSR token leakage on SSR-managed pages: none detected in raw HTML or rendered DOM

B) Key Takeaways

  • All sampled SSR-managed routes matched expected controllers and emitted expected SSR headers (x-ps-router-match: true + expected x-ps-controller).
  • No unresolved bracket tokens were detected in SSR-managed raw source (\[[A-Z][A-Z0-9_ ]{1,}\] scan + high-value token families).
  • Known high-risk leakage zones from prior runs are clean on this sample (/touch-up-paint-codes/{make}.htm, /touch_up_paint/{make}/, /touch_up_paint/{make}/{subpath}.html).
  • Legacy year-model-color control URL still performs 301 redirect to /colors/.../ before final render.
  • /colors/ford/ control behaves as expected fallback (404 + x-ps-worker-status: fallback_no_route_match).

C) Key Actions

  • Review canonical strategy for:
    • https://www.paintscratch.com/touch_up_paint/Ford/2021-ford-bronco.html (canonical points to model page /Ford/Bronco.html)
    • https://www.paintscratch.com/colors/aston-martin/balintyre-blue-metallic-9564/kit-bottle (canonical points to hub URL)
  • Keep this audit as a release-gate smoke check; rerun after router/template changes.

D) Details

Route-By-Route Result Table

URL Page Type Expected Controller Actual Controller Status Final URL Result Short Reason
https://www.paintscratch.com/touch-up-paint-codes/paint-code.html 1) /touch-up-paint-codes/paint-code.html ColorCodesController ColorCodesController 200 same Pass Headers/controller/source/DOM checks passed
https://www.paintscratch.com/touch-up-paint-codes/aston-martin.htm 2) /touch-up-paint-codes/{make}.htm MakeColorCodesController MakeColorCodesController 200 same Pass JSON-LD + ps-slide-* present; no token leaks
https://www.paintscratch.com/touch_up_paint/ 3) /touch_up_paint/ MakeIndexController MakeIndexController 200 same Pass Make index/top color structure present; no token leaks
https://www.paintscratch.com/touch_up_paint/Aston-Martin/ 4) /touch_up_paint/{make}/ MakeController MakeController 200 same Pass Grid + #ps-pagination + clean attributes/source
https://www.paintscratch.com/touch_up_paint/Aston-Martin/2024.html 5) make-year subtype MakePageController MakePageController 200 same Pass Subtype-correct content + window.PS_SSR present
https://www.paintscratch.com/touch_up_paint/Ford/Bronco.html 5) make-model subtype MakePageController MakePageController 200 same Pass Subtype-correct content + window.PS_SSR present
https://www.paintscratch.com/touch_up_paint/Ford/2021-ford-bronco.html 5) make-year-model subtype MakePageController MakePageController 200 same Warning Canonical points to /touch_up_paint/Ford/Bronco.html
https://www.paintscratch.com/colors/aston-martin/balintyre-blue-metallic-9564/ 6) /colors/{make}/{slug}/ ColorHubController ColorHubController 200 same Pass Hub structure + rewritten kit links verified
https://www.paintscratch.com/colors/aston-martin/balintyre-blue-metallic-9564/pen 7) non-kit product route ColorProductsController ColorProductsController 200 same Pass Product-route structure/canonical clean
https://www.paintscratch.com/colors/aston-martin/balintyre-blue-metallic-9564/kit-bottle 8) kit route KitProductsController KitProductsController 200 same Warning Canonical points to hub URL; kit wrapper selection still correct
https://www.paintscratch.com/colors/ford/ Control: fallback (none) (none) 404 same Pass x-ps-worker-status: fallback_no_route_match
https://www.paintscratch.com/collections/all Control: non-worker route (not worker SSR) (not worker SSR) 200 same Pass Placeholder tokens present but out of worker SSR scope
https://www.paintscratch.com/touch_up_paint/Ford/2021-ford-bronco-carbonized-gray-metallic-m7m7458.html Redirect control 301 -> /colors/... then ColorHubController ColorHubController (final) 301 -> 200 https://www.paintscratch.com/colors/ford/carbonized-gray-metallic-m7m7458/ Pass Legacy redirect behavior confirmed

Findings By Page Type

    1. /touch-up-paint-codes/paint-code.html
    • Header: expected controller matched.
    • Raw HTML: canonical/title/meta coherent; required make links present.
    • Token leakage: none.
    • Rendered DOM: coherent index/support structure; no visible bracket tokens.
    1. /touch-up-paint-codes/{make}.htm
    • Header: expected controller matched.
    • Raw HTML: make-specific content + JSON-LD + ps-slide-* present.
    • Token leakage: none in source, script blocks, or JSON-LD.
    • Rendered DOM: coherent make-specific color code page; no visible bracket tokens.
    1. /touch_up_paint/
    • Header: expected controller matched.
    • Raw HTML: make index links and /colors/.../ links present.
    • Token leakage: none.
    • Rendered DOM: make index coherent; no visible bracket tokens.
    1. /touch_up_paint/{make}/
    • Header: expected controller matched.
    • Raw HTML: make-specific grids/links and #ps-pagination present.
    • Token leakage: none in source or attributes.
    • Rendered DOM: make hub coherent; no visible bracket tokens.
    1. /touch_up_paint/{make}/{subpath}.html
    • Header: expected controller matched for all 3 subtype samples.
    • Raw HTML: subtype-correct content; window.PS_SSR present on all subtype samples.
    • Token leakage: none in source/attributes.
    • Rendered DOM: subtype content coherent for year, model, year-model.
    • Warning: 2021-ford-bronco.html canonical points to /Ford/Bronco.html.
    1. /colors/{make}/{slug}/
    • Header: expected controller matched.
    • Raw HTML: hub structure and rewritten kit links (kit-pen, kit-bottle, kit-spray) present.
    • Token leakage: none.
    • Rendered DOM: coherent hub layout; no visible bracket tokens.
    1. /colors/{make}/{slug}/... non-kit
    • Header: expected ColorProductsController matched.
    • Raw HTML: product-route canonical/title/meta coherent.
    • Token leakage: none.
    • Rendered DOM: coherent product page; no visible bracket tokens.
    1. /colors/{make}/{slug}/kit-*
    • Header: expected KitProductsController matched (kit precedence correct).
    • Raw HTML: kit route structure present; id="ps_kits_basecoat" present; id="ps_kits_tricoat" absent for this sample.
    • Token leakage: none.
    • Rendered DOM: coherent kit page; no visible bracket tokens.
    • Warning: canonical points to hub URL.

Failures and Severity

  • No critical/high SSR token leakage or controller-dispatch failures found in sampled SSR-managed pages.
  • Medium severity warning:
    • URL: https://www.paintscratch.com/touch_up_paint/Ford/2021-ford-bronco.html
    • Signal: canonical points to /touch_up_paint/Ford/Bronco.html
    • Where: raw HTML canonical tag
    • Why it matters: may blur subtype canonical intent and SEO clarity for year-model route.
  • Medium severity warning:
    • URL: https://www.paintscratch.com/colors/aston-martin/balintyre-blue-metallic-9564/kit-bottle
    • Signal: canonical points to hub URL instead of kit route
    • Where: raw HTML canonical tag
    • Why it matters: may collapse kit-specific indexing/signals to hub page.

Regression Checklist Outcome

    1. /touch-up-paint-codes/paint-code.html: Pass
    1. /touch-up-paint-codes/{make}.htm: Pass
    1. /touch_up_paint/: Pass
    1. /touch_up_paint/{make}/: Pass
    1. /touch_up_paint/{make}/{subpath}.html: Pass with warnings
    1. /colors/{make}/{slug}/: Pass
    1. /colors/{make}/{slug}/... non-kit: Pass
    1. /colors/{make}/{slug}/kit-*: Pass with warnings

Evidence Sources

  • Header/source captures and metadata: analysis-output/run-ssr-audit/*.(headers.txt|html|metadata.json)
  • Consolidated machine summary: analysis-output/run-ssr-audit/summary.json
  • Code expectations cross-check (latest main): ps-cloudflare-router/src/routes.js, src/redirects.js, src/controllers/makePageController.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment