Skip to content

Shopify and Storyblok TOML configurations for regression testing #695

Closed

Description

@deniskern

Would our Shopify and Storyblok TOML configurations help with regression testing the fixes?

They are based on audits across 18 Shopify and 12 Storyblok projects using squirrel v0.0.108. We can provide both stack templates, the inherited global settings, and the rationale with live examples for the relevant exclusions.

Calibration is still ongoing: some existing exclusions are provisional and have not yet been established as unavoidable platform limitations. We would mark those explicitly rather than present the configurations as recommended defaults.

If useful, we can share a sanitized configuration bundle with project URLs and other project-specific settings replaced by placeholders.

Thanks for reviewing our reports and working on the fixes.

Acceptance Criteria

Activity

  1. self-assigned this
    on Oct 12, 2026
  2. added
    documentation
    on Oct 12, 2026
  3. added theissue type on Oct 12, 2026
  4. nc9 commented on Oct 12, 2026

    @nc9
    Contributor

    Yes! it would be perfect - if you could post them here i'll see what we can learn for the docs. Shopify is a common use case

    Thanks

  5. added
    rules
    size: XS
    on Oct 13, 2026
  6. nc9 commented on Oct 13, 2026

    @nc9
    Contributor

    Spec prep

    @deniskern, thanks again, and following up on the reply above with what would help most:

    • Contents: both stack templates (Shopify and Storyblok) plus the inherited global settings, as the TOML files you actually run.
    • Placeholders:
      • replace domains and project names (for example https://shop.example);
      • remove any [crawler] headers values, tokens, cookies, Web Bot Auth signatures and API keys.
    • One comment per exclusion or rule disable:
      • the rule it silences, or the path it skips;
      • the platform reason;
      • whether it is provisional or established. A # provisional marker is enough.
    • Live examples: a public URL per exclusion in your rationale is welcome. We will verify against those, but we will not commit them; the repo keeps only a description.
    • How to send: paste the files here, link a gist, or attach a zip.

    Where they would land:


    Maintainer notes

    When the bundle arrives, verify every TOML fence against loadAllRules() and each rule's options schema before it is documented:

    • unknown keys are silently ignored;
    • squirrel config validate does not check rule_options;
    • rule options accept no globs in exclude patterns;
    • Bun.TOML is lenient where the CLI's parser is strict.

    Each documented exclusion names its rule and the platform reason (criterion 4). Close the issue with the outcome: fixtures, docs, or declined.

    Recommended session: Sonnet, medium effort. Size XS now (the reply), S once the bundle arrives (fixtures, test, docs page, make validate).

  7. deniskern commented on Nov 9, 2026

    @deniskern
    Author

    Thanks for the detailed guidance. Attached are sanitized copies of our effective Shopify and Storyblok configurations, including the inherited global defaults. I marked provisional exclusions and disables inline; please treat those as local observations rather than documentation recommendations. We replaced project URLs and names and found no credential values in these source templates.

    Shopify — shopify.toml

    [project]
    name = "Example Shopify store"
    url = "https://myshop.example"
    system = "shopify"
    
    [crawler]
    user_agent = ""
    per_host_concurrency = 1
    per_host_delay_ms = 1000
    max_backoff_ms = 600000
    max_prefix_budget = 0.6
    exclude = ["/cart/**", "/checkout/**", "/account/**", "/orders/**", "/policies/**"]
    allow_query_params = ["page", "sort_by", "filter.v.price", "filter.v.option", "filter.p.tag", "q", "variant"]
    drop_query_prefixes = ["_pos", "_psq", "variant"]
    
    [rules]
    disable = [
      # Established: Shopify controls these response security headers and captcha transport.
      "security/csp",
      "security/hsts",
      "security/http-to-https",
      "security/form-captcha",
      # Provisional: Shopify/app infrastructure controls transport and cache behavior; validate against current rules.
      "perf/cache-headers",
      "perf/preconnect",
      "perf/source-maps",
      "perf/compression",
      "perf/http2",
      "perf/ttfb",
      # Provisional: minified theme bundles and app-owned assets can trigger these checks; confirm against fixed rule behavior.
      "perf/unminified-js",
      "perf/legacy-js",
      "perf/duplicate-js",
      # Established: publisher-authorship and editorial claims do not fit a product storefront; content/legal checks remain enabled.
      "eeat/author-byline",
      "eeat/author-expertise",
      "eeat/affiliate-disclosure",
      "eeat/citations",
      "eeat/disclaimers",
      "eeat/editorial-policy",
      "eeat/ymyl-detection",
      "eeat/content-dates",
    ]
    
    [rule_options."eeat/about-page"]
    paths = ["/pages/ueber-uns", "/pages/uber-uns", "/pages/wer-wir-sind", "/pages/about", "/pages/about-us", "/pages/unsere-geschichte", "/pages/our-story", "/pages/the-team", "/pages/das-team"]
    
    [rule_options."eeat/privacy-policy"]
    paths = ["/policies/privacy-policy", "/policies/datenschutz", "/pages/datenschutz", "/pages/privacy-policy"]
    
    [rule_options."content/word-count"]
    min_words = 150
    warn_threshold = 300
    
    [rule_options."links/dead-end-pages"]
    excludePatterns = ["/products/", "/collections/", "/thank-you", "/confirmation", "/download", "/success", "/submitted"]
    
    # Established: Shopify creates these cookies without HttpOnly/Secure; only those checks are waived.
    [[ignore]]
    rule = "security/cookie-flags"
    items = ["localization", "cart_currency"]
    checks = ["cookie-httponly", "cookie-secure"]
    reason = "Shopify sets these cookies itself"

    Storyblok — storyblok.toml

    [project]
    name = "Example Storyblok site"
    url = "https://example.com"
    system = "storyblok"
    
    [crawler]
    # Established: editor transport, preview/draft URLs and app/API/framework assets are not public rendered pages.
    exclude = [
      "/_storyblok/**", "*?_storyblok=*", "*?_storyblok_tk*", "*?version=draft*", "*?token=*", "*?cv=*",
      "/api/**", "/_api/**", "/_next/**", "/api/revalidate**", "/api/preview**", "/api/exit-preview**", "/api/draft**",
      "/_nuxt/**", "/__nuxt_error**", "/api/_content/**", "/_payload.json", "*.json", "/_astro/**", "/_app/**", "/_ipx/**",
      "/admin/**", "/login/**", "/checkout/**", "/cart/**", "/account/**",
      "*.pdf", "*.zip", "*.tar.gz", "*.js", "*.css", "*.xml",
      "*?preview=*", "*?draft=*", "/search**", "/suche**",
    ]
    allow_query_params = ["page", "seite", "sort", "category", "tag"]
    drop_query_prefixes = ["_storyblok"]
    
    [rules]
    disable = [
      # Established: the editor frames the site; CSP frame-ancestors is the configurable control instead.
      "security/x-frame-options",
      # Established: publisher/editorial trust claims are not generic requirements for this CMS site.
      "eeat/affiliate-disclosure",
      "eeat/ymyl-detection",
      "eeat/disclaimers",
      "eeat/editorial-policy",
      "eeat/citations",
      "eeat/author-expertise",
      "eeat/trust-signals",
      # Established: this general-purpose content site has no product, review or local-business catalog.
      "schema/product",
      "schema/review",
      "schema/local-business",
    ]
    
    [rule_options."eeat/about-page"]
    paths = ["/ueber-uns", "/uber-uns", "/wer-wir-sind", "/about", "/about-us", "/agentur", "/agency", "/team", "/das-team", "/our-story"]
    
    [rule_options."eeat/privacy-policy"]
    paths = ["/datenschutz", "/datenschutzerklaerung", "/privacy-policy", "/privacy"]
    
    [rule_options."content/article-links"]
    short_min_external = 1
    medium_min_external = 1
    long_min_external = 1
    
    [rule_options."perf/ttfb"]
    good_threshold = 800
    poor_threshold = 1500
    
    [rule_options."content/word-count"]
    min_words = 200
    warn_threshold = 400

    Inherited global settings

    These apply to both configs and are part of the requested effective configuration. Values retained from _globals.toml; credentials and customer identifiers were absent in inspected files.

    [internal_links]
    max_targets = 100
    [external_links]
    max_links = 100
    [storage]
    keep_audits = 3
    content_store_max_bytes = 10737418240
    [crawler]
    max_pages = 100
    delay_ms = 500
    per_host_delay_ms = 750
    timeout_ms = 60000
    concurrency = 4
    per_host_concurrency = 2
    breadth_first = true
    max_prefix_budget = 0.25
    respect_robots = true
    follow_redirects = true
    disable_discovery_probes = false
    headers = { Accept = "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8" }
    drop_query_prefixes = ["utm_", "gclid", "fbclid", "mc_", "_ga", "ref", "source", "pk_", "mtm_"]
    [lighthouse]
    templates = [{ label = "home", path = "/" }]
    [rules]
    enable = ["*"]
    time_budget_ms = 5000
    # Global established disables: thumbnails are upload detail; schema/video duplicates video-schema;
    # AAA identical links are a mega-menu pattern; library audit is covered by vuln-libs/techstack;
    # weak links overlap orphan-pages; keyword stuffing remains noisy on shop cards/newsletter;
    # adblock/social outcomes are visitor/marketing choices; ax discovery checks require intrusive path probes;
    # URL style rules are not defects on established URLs.
    disable = ["video/video-thumbnail", "schema/video", "a11y/identical-links-same-purpose", "perf/js-libraries", "links/weak-internal-links", "content/keyword-stuffing", "adblock/*", "social/share-buttons", "social/social-profiles", "ax/llms-txt", "ax/agents-md", "ax/markdown-response", "ax/well-known-agent", "ax/api-discovery", "ax/rsl-license", "url/stop-words", "url/length", "url/special-chars", "url/lowercase"]
    [gsc]
    property_type = "url"
    property_override = ""
    cwv_urls = []
    [[ignore]]
    rule = "a11y/label-content-name-mismatch"
    selectors = ["select"]
    reason = "Option texts are values, not the visible label of a select"
    [[ignore]]
    rule = "a11y/label-content-name-mismatch"
    items = ['regex:^[a-z][\\w-]*: visible="[.#][\\w-]+[^"{}]*\\{\\s*-?[a-z][\\w-]*\\s*:[^"{}]*[;}][^"]*" vs aria-label="']
    reason = "Embedded CSS source is not rendered label text"

    Global disable list entries are established except content/keyword-stuffing, which is provisional pending the referenced upstream rule coverage; the Storyblok preview/API exclusions are established platform/build artifacts, while broad file-extension and search exclusions are provisional site-specific crawl choices (confirm before documenting as general guidance). The Storyblok wildcard query patterns preserve the source config verbatim. One exclusion, *?token=*, filters tokenized URLs; no secret value is present in the pattern.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentationrulessize: XS

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions