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
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.
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.jsonDrop from1.0to0.9or0.0: Adding a new service entry to/.well-known/ard.jsonwithout2β5representativeQueriesstrings, leaving the deprecatedapplication/mcp-server+jsonmedia type instead ofapplication/mcp-server-card+json, keeping a legacy top-levelcollectionskey, or breaking theurn:air:<publisher>:<namespace>:<name>URN format triggers immediate Lighthouseard.jsonconformance warnings or0failures. - Breaking MCP
2026-07-28inputSchemaMutations: Narrowing an enum, adding a newrequiredproperty to an existing MCP tool, or accidentally dropping the RFC 8941 Structured FieldIdempotency-Keyheader 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
resourceindicator or RFC 9728 Protected Resource Metadata URL breaks token scoping across every downstream MCP client. /llms.txtByte-Budget Overflow (> 50KB) or HTTP5xx: Auto-generating unpruned endpoint descriptions pushes/llms.txtpast SpecPulse's50KBagent-context ceiling or introduces route errors flagged by the Chrome Lighthousellms.txtAudit.- AAIF
SKILL.mdBloat (> 500Lines): Appending verbose examples to/.well-known/skills/<slug>/SKILL.mdviolates the< 500-line modular threshold recommended in the AAIF Agent Skills Specification.
CI/CD Audit Comparison: SpecPulse v3.5 PR Bot vs. Legacy Workflows
| Dimension | SpecPulse 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 Check | Generic OpenAPI Diff + Custom Bash Scripts |
|---|---|---|---|
| Wall-Clock CI Runtime | 3.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 & Permissions | Zero-install ephemeral GITHUB_TOKEN via actions/github-script@v8 (pull-requests: write) | Requires LHCI GitHub App install or dedicated bot account PAT secret | Custom PAT or manual webhook plumbing |
ARD v0.91 Conformance Granularity | Pinpoints 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-fix | None |
MCP 2026-07-28 & SEP-2127 Diffing | Detects breaking inputSchema changes, RFC 8707 OAuth drift, RFC 8941 Idempotency-Key regressions, and SEP-2127 primitive leaks | Audits in-page WebMCP DOM forms only; does not diff standalone mcp-server.json or GraphQL subgraphs | None |
| Sticky Single-Comment PR UX | Upserts 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 storage | Raw stdout logs buried in Actions console |
| Live Repo SVG Badge | Deterministic specpulse-badge.svg + native GitHub Workflow Status Badge compatibility | Separate third-party badge action required | None |
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:


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.
| Plan | Price | CI/CD PR Bot, Badge & Schema Governance Features | Best For | Instant CLI Activation |
|---|---|---|---|---|
| Free Tier | $0 | Up to 3 endpoints, local pr-diff preview, ARD v0.91 conformance validator, and local specpulse-badge.svg generation | Open-source maintainers & solo builders testing Lighthouse 13.5+ readiness | curl -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 bill | Low-frequency API repos, seasonal launches, or pilot CI rollouts | curl -fsSL https://specpulse.dev/cli.mjs -o specpulse.mjs && node specpulse.mjs ./openapi.json |
| Pro Monthly | $29/mo | Up to 250 endpoints, unlimited sticky PR diff comments, specpulse-badge.svg auto-updates, breaking MCP 2026-07-28 + /llms.txt (<= 50KB) gates | Fast-shipping API startups enforcing agent readiness on every PR | curl -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 checks | Teams locking in annual CI/CD tooling budgets | curl -fsSL https://specpulse.dev/cli.mjs -o specpulse.mjs && node specpulse.mjs ./openapi.json |
| Team Monthly | $99/mo | Unlimited repos, OpenAPI 3.0β3.2 & Federated GraphQL, org-wide GitHub branch-protection required checks, sp_t_<56_hex> tenant isolation, Slack/Linear alerts | Platform & DevOps teams governing microservices across multiple repos | curl -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 logs | Scaling engineering organizations with strict API change-management SLAs | curl -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)
<script src="https://specpulse.dev/embed.js" data-site="your-domain-com" defer></script>