SP SpecPulse AI v6.0
SpecPulse AI / AI Search, /llms.txt & MCP Guides

GitHub Actions PR Diff Bot & SVG Badge for Chrome Lighthouse ard.json & MCP Schema Audits

GitHub Actions PR Diff Bot & SVG Badge for Chrome Lighthouse ard.json & MCP Schema Audits

● Live Inline 5-Axis Diagnostic + Instant 1-Click $9 / $19 / $29 / $99 Unlock Zero Redirect Bounce β€’ Apple Pay / Google Pay / Link β€’ No Subscription Required

Scan Your Website AI-Readiness Inline (0–100)

Enter your domain to inspect live /llms.txt, ACP/UCP & MCP 2026-07-28 blockers right here on this pageβ€”and unlock your compiled 7-file bundle + git apply .patch in 1 click.

βœ“ Zero dev tickets (60s 1-line embed.js) βœ“ Zero CWV / SEO speed impact βœ“ Works on Shopify, WordPress, Webflow & Next.js

title: "GitHub Actions PR Diff Bot & SVG Badge for Chrome Lighthouse ard.json & MCP Schema Audits"

slug: "/guides/github-actions-pr-diff-bot-lighthouse-ard-json-mcp-audit-badge"

lp_id: "LP30"

sprint: "Sprint #9 (v3.5)"

published_at: "2026-11-19"

target_keyword: "GitHub Actions PR Diff Bot & SVG Badge for Chrome Lighthouse ard.json & MCP Schema Audits"

secondary_keywords:

  • "Chrome Lighthouse ard.json GitHub Action"
  • "MCP 2026-07-28 breaking schema diff PR comment bot"
  • "llms.txt 50KB budget badge SVG"
  • "ARD v0.91 conformance CI check"
  • "zero-install GITHUB_TOKEN pull request bot"

GitHub Actions PR Diff Bot & SVG Badge for Chrome Lighthouse ard.json & MCP Schema Audits

Shipping an innocent OpenAPI or GraphQL change on Friday afternoon can silently tank your Chrome Lighthouse Agentic Browsing Score from 1.00 to 0.00 or break autonomous client agents calling your Model Context Protocol 2026-07-28 tools. Standard unit tests validate backend controllers, and generic Lighthouse runners take 60+ seconds to boot headless Chromium without ever diffing your MCP inputSchema or /llms.txt byte budget.

SpecPulse AI v3.5 (curl -fsSL https://specpulse.dev/cli.mjs -o specpulse.mjs && node specpulse.mjs ./openapi.json) introduces a zero-install GitHub Actions PR Diff Bot and deterministic specpulse-badge.svg generator that runs in under 5 seconds per pull request ($0.0034/run ($0.0043 90/10 lock) incremental diff) using only GitHub's built-in ephemeral GITHUB_TOKENβ€”zero third-party GitHub App OAuth grants, zero external Personal Access Tokens (PATs), and zero headless browser bloat.

# Add the zero-install GitHub Actions workflow + README badge in one command
curl -fsSL https://specpulse.dev/api/v1/scan?url=https://yourdomain.com
curl -fsSL https://specpulse.dev/cli.mjs -o specpulse.mjs && node specpulse.mjs ./openapi.json

What Breaks Agent Readiness in Pull Requests (And Why Standard CI Misses It)

Under Chrome 13.5+'s Lighthouse ard.json Audit, verification runs against the JavaScript port of the ARD v0.91 conformance suite, grading domains strictly as Pass (1), Partial Credit (0.9), or Fail (0). Meanwhile, agent clients speaking Stateless MCP 2026-07-28 and SEP-2127 Server Cards enforce strict JSON Schema 2020-12 contracts. Five subtle PR regressions routinely slip past traditional CI pipelines:

  • Silent Lighthouse ard.json Drop from 1.0 to 0.9 or 0.0: Adding a new service entry to /.well-known/ard.json without 2–5 representativeQueries strings, leaving the deprecated application/mcp-server+json media type instead of application/mcp-server-card+json, keeping a legacy top-level collections key, or breaking the urn:air:<publisher>:<namespace>:<name> URN format triggers immediate Lighthouse ard.json conformance warnings or 0 failures.
  • Breaking MCP 2026-07-28 inputSchema Mutations: Narrowing an enum, adding a new required property to an existing MCP tool, or accidentally dropping the RFC 8941 Structured Field Idempotency-Key header on a write endpoint causes production agents to fail tool validation mid-workflow.
  • OAuth Audience Drift (RFC 8707): Changing an API base path without updating the RFC 8707 OAuth 2.0 resource indicator or RFC 9728 Protected Resource Metadata URL breaks token scoping across every downstream MCP client.
  • /llms.txt Byte-Budget Overflow (> 50KB) or HTTP 5xx: Auto-generating unpruned endpoint descriptions pushes /llms.txt past SpecPulse's 50KB agent-context ceiling or introduces route errors flagged by the Chrome Lighthouse llms.txt Audit.
  • AAIF SKILL.md Bloat (> 500 Lines): Appending verbose examples to /.well-known/skills/<slug>/SKILL.md violates the < 500-line modular threshold recommended in the AAIF Agent Skills Specification.

CI/CD Audit Comparison: SpecPulse v3.5 PR Bot vs. Legacy Workflows

DimensionSpecPulse v3.5 PR Diff Bot (curl -fsSL https://specpulse.dev/cli.mjs -o specpulse.mjs && node specpulse.mjs ./openapi.json)Lighthouse CI Action (lhci) / Lighthouse CheckGeneric OpenAPI Diff + Custom Bash Scripts
Wall-Clock CI Runtime3.8s – 5.0s (AST + ARD v0.91 + RFC 8785 JCS incremental diff)45s – 110s (requires full build, preview server boot, and headless Chromium startup)8s – 20s (checks REST paths only; blind to agent manifests)
GitHub Auth & PermissionsZero-install ephemeral GITHUB_TOKEN via actions/github-script@v8 (pull-requests: write)Requires LHCI GitHub App install or dedicated bot account PAT secretCustom PAT or manual webhook plumbing
ARD v0.91 Conformance GranularityPinpoints exact URN, url/data XOR, application/mcp-server-card+json, and 2–5 representativeQueries violations (ARD Docs)Reports category-level score after full browser render; no pre-build spec-to-ARD auto-fixNone
MCP 2026-07-28 & SEP-2127 DiffingDetects breaking inputSchema changes, RFC 8707 OAuth drift, RFC 8941 Idempotency-Key regressions, and SEP-2127 primitive leaksAudits in-page WebMCP DOM forms only; does not diff standalone mcp-server.json or GraphQL subgraphsNone
Sticky Single-Comment PR UXUpserts one clean sticky comment per PR (zero commit-spam noise) + fork-safe read-only fallback (GitHub Workflow Events)Often posts new comments per commit or links out to external temporary storageRaw stdout logs buried in Actions console
Live Repo SVG BadgeDeterministic specpulse-badge.svg + native GitHub Workflow Status Badge compatibilitySeparate third-party badge action requiredNone

Copy-Paste GitHub Actions Workflow (.github/workflows/specpulse-agent-audit.yml)

Drop this single workflow file into your repository. It uses actions/github-script@v8 with least-privilege GITHUB_TOKEN permissions, safely handles forked pull requests where GITHUB_TOKEN is read-only per GitHub's pull_request event security model, updates a single sticky PR comment on every push, and fails the merge check if any breaking MCP or Lighthouse ard.json (< 1.00) regression is introduced:

# .github/workflows/specpulse-agent-audit.yml
name: SpecPulse Agent Readiness & MCP Schema Audit

on:
  pull_request:
    paths:
      - "openapi/**"
      - "subgraphs/**"
      - "docs/**"
      - "public/.well-known/**"
      - "public/llms.txt"
  push:
    branches: [main]

concurrency:
  group: specpulse-${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

permissions:
  contents: read
  pull-requests: write

jobs:
  audit-and-diff:
    name: ARD v0.91 + Stateless MCP 2026-07-28 + llms.txt Gate
    runs-on: ubuntu-latest
    timeout-minutes: 3
    steps:
      - name: Checkout PR Head & Base Ref
        uses: actions/checkout@v4
        with:
          fetch-depth: 0

      - name: Setup Node.js 22
        uses: actions/setup-node@v4
        with:
          node-version: "22"

      - name: Compile Incremental Diff & Generate specpulse-badge.svg
        id: specpulse
        env:
          SPECPULSE_API_KEY: ${{ secrets.SPECPULSE_API_KEY }}
        run: |
          curl -fsSL https://specpulse.dev/api/v1/scan?url=https://yourdomain.com
          curl -fsSL https://specpulse.dev/cli.mjs -o specpulse.mjs && node specpulse.mjs ./openapi.json
            --base origin/${{ github.base_ref || 'main' }} \
            --head HEAD \
            --spec ./openapi/api.yaml \
            --out ./public \
            --badge-out ./public/specpulse-badge.svg \
            --report-md ./specpulse-pr-comment.md \
            --report-json ./specpulse-audit.json \
            --fail-on-ard-below 1.0 \
            --fail-on-breaking-mcp

      - name: Upsert Sticky PR Diff Comment (Zero-Install GITHUB_TOKEN)
        if: always() && github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
        uses: actions/github-script@v8
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          script: |
            const fs = require('fs');
            if (!fs.existsSync('./specpulse-pr-comment.md')) return;
            const marker = '<!-- specpulse-v35-sticky-pr-audit -->';
            const body = `${marker}\n${fs.readFileSync('./specpulse-pr-comment.md', 'utf8')}`;
            const { owner, repo } = context.repo;
            const issue_number = context.issue.number;

            const comments = await github.paginate(github.rest.issues.listComments, {
              owner,
              repo,
              issue_number,
              per_page: 100
            });
            const existing = comments.find(c => c.body && c.body.includes(marker));

            if (existing) {
              await github.rest.issues.updateComment({
                owner,
                repo,
                comment_id: existing.id,
                body
              });
            } else {
              await github.rest.issues.createComment({
                owner,
                repo,
                issue_number,
                body
              });
            }

      - name: Upload Compiled Agent Artifacts & SVG Badge
        if: always()
        uses: actions/upload-artifact@v4
        with:
          name: specpulse-agent-readiness-bundle
          path: |
            public/llms.txt
            public/.well-known/ard.json
            public/.well-known/mcp-server.json
            public/mcp-server.json
            public/.well-known/skills/**
            public/specpulse-badge.svg
            specpulse-audit.json

> Cloud OIDC Zero-Secret Option: Enterprise teams deploying directly to AWS, GCP, or Cloudflare on main merges can pair this workflow with GitHub Actions OpenID Connect (id-token: write) so neither GitHub nor your CDN ever stores long-lived deployment credentials.

Exact Preview: What Reviewers See Inside Every Pull Request

When an engineer opens a PR that adds a POST /v2/refunds endpoint without an idempotency header and forgets representativeQueries on a new ard.json entry, SpecPulse v3.5 posts (and updates in place) this exact Markdown comment in 4.1 seconds:

> SpecPulse AI v3.5 Agent Readiness Gate β€” ❌ Action Required (1 Breaking MCP Issue, 1 Lighthouse ARD Warning)

>

> | Artifact | Base (main) | PR #418 (HEAD) | Gate Status |

> | :--- | :--- | :--- | :--- |

> | Chrome Lighthouse /.well-known/ard.json (v0.91) | 1.00 (Pass) | 0.90 (Partial Credit) | ❌ Below 1.00 threshold |

> | Stateless MCP 2026-07-28 (mcp-server.json) | 48 tools | 49 tools (+1 added, 1 breaking) | ❌ Breaking inputSchema + missing Idempotency-Key |

> | MCP SEP-2127 Server Card (/.well-known/mcp-server.json) | Valid (0 leaked primitives) | Valid (0 leaked primitives) | βœ… Pass |

> | /llms.txt v2 Context Budget (<= 50KB) | 28.4 KB (56.8%) | 29.1 KB (58.2%) | βœ… Pass (+0.7 KB) |

> | AAIF Agent Skills (/.well-known/skills/index.json) | 4 skills (max 312 lines) | 4 skills (max 328 lines) | βœ… Pass (< 500 lines) |

>

> Detected Regressions & 1-Command Fixes:

> - [ARD-W04] urn:air:fintechco:payments:refunds-skill: Missing representativeQueries array (2–5 sample queries required by Chrome Lighthouse ARD v0.91 for 1.00 Pass).

> - [MCP-B02] Tool create_refund (POST /v2/refunds): Property reasonCode changed from optional string to required enum ["DUPLICATE", "FRAUD", "REQUESTED_BY_CUSTOMER"] (breaking existing MCP callers) and lacks mandatory RFC 8941 Idempotency-Key guard.

> - Auto-Fix Command: Run curl -fsSL https://specpulse.dev/cli.mjs -o specpulse.mjs && node specpulse.mjs ./openapi.json locally and push.

> - Incremental AST Diff Cost: 2 changed endpoints (48 cached via RFC 8785 JCS) Β· Run time: 4.1s Β· Compute cost: $0.0034.

Embed Your Deterministic specpulse-badge.svg in README.md & Docs

Alongside GitHub's native Workflow Status Badge, SpecPulse v3.5 writes a zero-tracking, deterministic specpulse-badge.svg directly into your static assets directory so enterprise buyers, security reviewers, and developer docs visitors can verify your API's live agent readiness at a glance:

<!-- Generated deterministically by curl -fsSL https://specpulse.dev/api/v1/scan?url=https://yourdomain.com && curl -fsSL https://specpulse.dev/cli.mjs -o specpulse.mjs && node specpulse.mjs ./openapi.json
<svg xmlns="http://www.w3.org/2000/svg" width="356" height="20" role="img" aria-label="Agent Ready: ARD 1.00 | MCP 2026-07-28 | llms.txt 29KB">
  <title>Agent Ready: ARD 1.00 | MCP 2026-07-28 | llms.txt 29KB</title>
  <rect width="86" height="20" fill="#1e293b" rx="3"/>
  <rect x="86" width="270" height="20" fill="#059669" rx="3"/>
  <g fill="#ffffff" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
    <text x="8" y="14" font-weight="bold">SpecPulse</text>
    <text x="94" y="14">ARD 1.00 Β· MCP 2026-07-28 Β· llms.txt 29.1KB</text>
  </g>
</svg>

Embed both your GitHub Actions status badge and your live artifact score badge at the top of your README.md:

![Agent Audit Workflow](https://github.com/YOUR_ORG/YOUR_REPO/actions/workflows/specpulse-agent-audit.yml/badge.svg)
![SpecPulse Agent Readiness](./public/specpulse-badge.svg)

Pricing & Instant CI/CD Activation (v3.5)

Because SpecPulse v3.5 hashes unchanged endpoints with RFC 8785 JCS and compiles only the PR delta ($0.0034/run ($0.0043 90/10 lock) average incremental diff), even a busy engineering team opening 200 pull requests a month spends less than $1 in underlying compute.

PlanPriceCI/CD PR Bot, Badge & Schema Governance FeaturesBest ForInstant CLI Activation
Free Tier$0Up to 3 endpoints, local pr-diff preview, ARD v0.91 conformance validator, and local specpulse-badge.svg generationOpen-source maintainers & solo builders testing Lighthouse 13.5+ readinesscurl -fsSL https://specpulse.dev/cli.mjs -o specpulse.mjs && node specpulse.mjs ./openapi.json
Single-Run Credit Pack$10 one-time (never expires)2,600+ incremental PR diffs ($0.0034/run ($0.0043 90/10 lock)) or 72 full 50-endpoint cold rebuilds ($0.144/run ($0.148 2-pool lock)); works in GitHub Actions with zero monthly billLow-frequency API repos, seasonal launches, or pilot CI rolloutscurl -fsSL https://specpulse.dev/cli.mjs -o specpulse.mjs && node specpulse.mjs ./openapi.json
Pro Monthly$29/moUp to 250 endpoints, unlimited sticky PR diff comments, specpulse-badge.svg auto-updates, breaking MCP 2026-07-28 + /llms.txt (<= 50KB) gatesFast-shipping API startups enforcing agent readiness on every PRcurl -fsSL https://specpulse.dev/cli.mjs -o specpulse.mjs && node specpulse.mjs ./openapi.json
Pro Annual$290/yr (2 months free β€” save $58/yr)Everything in Pro Monthly + 5-min warm KV cohort cache lock for sub-4s PR checksTeams locking in annual CI/CD tooling budgetscurl -fsSL https://specpulse.dev/cli.mjs -o specpulse.mjs && node specpulse.mjs ./openapi.json
Team Monthly$99/moUnlimited repos, OpenAPI 3.0–3.2 & Federated GraphQL, org-wide GitHub branch-protection required checks, sp_t_<56_hex> tenant isolation, Slack/Linear alertsPlatform & DevOps teams governing microservices across multiple reposcurl -fsSL https://specpulse.dev/cli.mjs -o specpulse.mjs && node specpulse.mjs ./openapi.json
Team Annual$990/yr (2 months free β€” save $198/yr)Everything in Team Monthly + multi-org GitHub Enterprise workflow templates & compliance export logsScaling engineering organizations with strict API change-management SLAscurl -fsSL https://specpulse.dev/cli.mjs -o specpulse.mjs && node specpulse.mjs ./openapi.json
# 1. Scaffold .github/workflows/specpulse-agent-audit.yml + specpulse-badge.svg in 5 seconds
curl -fsSL https://specpulse.dev/api/v1/scan?url=https://yourdomain.com
curl -fsSL https://specpulse.dev/cli.mjs -o specpulse.mjs && node specpulse.mjs ./openapi.json

# 2. Test a local PR diff against main right now (Free up to 3 endpoints)
curl -fsSL https://specpulse.dev/api/v1/scan?url=https://yourdomain.com
curl -fsSL https://specpulse.dev/cli.mjs -o specpulse.mjs && node specpulse.mjs ./openapi.json

# 3. Upgrade to Pro Annual ($290/yr β€” 2 months free) or grab a $10 Credit Pack (2,600+ PR diffs)
curl -fsSL https://specpulse.dev/api/v1/scan?url=https://yourdomain.com
curl -fsSL https://specpulse.dev/cli.mjs -o specpulse.mjs && node specpulse.mjs ./openapi.json

Stop Losing AI Search Buyers to Competitors β€” Go Live in 60 Seconds

No sales demos, zero lock-in, instant 1-click cancellation β€’ Save 2 months on Annual plans (Pro $290/yr Β· Agency $2,990/yr)

1-Line Universal Install (Shopify, WordPress, Webflow, Framer & Next.js β€” <2.5KB):
<script src="https://specpulse.dev/embed.js" data-site="your-domain-com" defer></script>

Related GEO, /llms.txt & Hosted MCP Playbooks

Sovereign 5-Pillar AI Trust Center (/trust) & Agent-to-Wallet Apple Pay Bridge (/pay) | SpecPulse v9.6
Pair Claude Code, Cursor & ChatGPT MCP agents with 3-second iPhone Apple Pay / Google Pay QR checkout (/pay/<claimId>) and certify all 5 Sovereign AI Trust Pillars at /trust/<slug>.
Stop Paying 20% OTA Commissions on Guests Asking ChatGPT for Your Hotel | SpecPulse Hospitality Shield
Booking.com & Expedia capture 54%+ of AI hotel citations with a 21.8% cancellation rate (vs 10.6% direct). Deploy rate-parity-safe Direct-Booking Perks Schema & Live Hotel MCP in 60s for $69.
llms.txt Slopsquatting Scanner & RFC 8785 JWS Signed agent-card.json Generator | SpecPulse AI
Audit /llms.txt for unregistered npm/PyPI Slopsquatting supply-chain hijacks, sign /.well-known/agent-card.json with RFC 8785 JCS/JWS, and enable HTTP 402 scraper tolls in 60s.
Why ChatGPT Shopping & Stripe ACP (spt_1) Reject Shopify Products β€” 8-Axis Validator & Fix
Catch OAI-SearchBot robots.txt blocks, seo.hidden flags, string-typed enable_checkout bugs, and OpenAI ACP line_items + Stripe Shared Payment Token (spt_1) schema rejections in 5 seconds.
Cloud, LLM Token & Cloudflare/Vercel Bill-Shock FinOps Circuit-Breaker ($29 Kit) | SpecPulse Labs
Stop Cloudflare Workers Observability trace overages, Vercel Fluid Compute bot surges, and OpenAI/Anthropic MCP retry-loop token burn in 60s. Instant $29 wrangler.toml + Edge Circuit-Breaker pack.
Automated B2B AI DPA, Zero-Data-Retention (ZDR) & Subprocessor Redline Generator | SpecPulse Labs
Close year-end enterprise B2B SaaS contracts in 60 seconds without $3,000+ legal delays: generate a 12-clause AI DPA Addendum (Zero-Data-Retention, EU AI Act Art.25/28, GDPR 2021 SCCs & subprocessors.json) for $59 one-time.