# Changelog

All notable changes to Siteline are recorded here, newest first. Format based on
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/).

Two changelogs exist by design and must not drift:

- `changelog.json` (served at `/api/v1/changelog.json`) is the machine-readable
  version summary for API/agent consumers. It is scanner- and rubric-version
  centric and only carries releases that change the scan API or scoring.
- This file is the fuller human history. It mirrors every `changelog.json`
  version and additionally records commerce and infrastructure work that shipped
  without changing the scan API (so it has no `changelog.json` version).

`test/doc-consistency.test.mjs` asserts every `changelog.json` version appears
here.

## [Unreleased] - candidate [3.2.0]

### Security remediation (2026-10-26, local candidate)

- Reserve checkout capacity through the shared limiter before Stripe session creation (10 requests/IP/hour); bound the Stripe response to five seconds and 64 KiB.
- Reuse expiry-aware, bounded result lookup for OG images. Missing/expired/unavailable stored reports return non-cacheable 404s; stored-result images use no-store.
- Replace outreach URL/localStorage credentials with explicit password-field entry, clearing after use and page lifecycle transitions, legacy-copy cleanup and a native POST form. Historical URL/log exposure and deployed acceptance remain unverified.
- Add regression coverage for concurrent reservations, spoofed forwarding headers, provider stalls, expired OG rows, direct cards and credential lifetime.

Maintenance changes accumulated since 3.1.2, including additive report persistence
status and collision-resistant scan IDs. Frozen rubric weights are unchanged.
This section has not been promoted as a release in the human or machine changelog. The code deployed on 2026-09-17 at `d2b5f97`; scanner 2.1.0 and rubric 2.4.0 are in that revision, while scan-envelope contract 2.0.0-v2-preview is unchanged. Sam chose to leave 3.2.0 unpromoted in this delivery; any later promotion requires a separate decision and publication verification.

### Added
- Unit tests for `/.well-known/security.txt`: RFC 9116 required fields, served canonical URL, an `Expires` that has not lapsed and is at most a year ahead, and a `Policy` that points at the published `SECURITY.md` naming every contact.
- Database integration coverage on pinned Supabase PostgreSQL 17 alongside PostgreSQL 15, plus a maintained read-only Supabase CLI preflight adapter with explicit project selection and fail-closed response handling.
- Explicit legacy production-schema reconciliation prerequisite, preserving identity-generated IDs while aligning column constraints, score precision and service-role policies; disposable fixtures cover preservation, rejection and rollback.
- Pre-merge assurance: populated database migration/reapplication regressions, a read-only schema preflight with explicit target selection, and byte-parity/isolated-handler checks for emitted deployment artifacts.
- Whole OpenAPI 3.1 and JSON Schema validation, real PostgreSQL migration/concurrency checks, and portable browser acceptance fixtures with CI smoke coverage.
- Report-email retry guards preserve uncertain outcomes and report reminder scheduling separately; remaining footer links are identifiable without color alone.
- Blocked and timeout scan enablement details now match the published object schema.
- September 8 maintenance: atomic rate reservations; recoverable outbox leases and idempotent delivery; explicit accepted, queued, rejected, and uncertain email outcomes.
- Visible resource/protocol evidence, typed blocked-scan explanations, and keyboard focus transitions.
- Deterministic `check:agent-surfaces` gate for the self-guide metadata, the documented Vercel rewrite, and skill-bundle hashes, run in CI and required by the release checklist.
- Hosted-site assessment acceptance records scanner/rubric identity, cache state, finding dispositions, and post-deployment evidence separately from local checks and full standards conformance.
- The passive GuideCheck panel explicitly reports its shape-only scope and that full conformance was not assessed, while retaining its existing `conformant` compatibility field.
- A portable `siteline-remediation-handoff` skill in the canonical skills monorepo builds a versioned evidence packet, validates findings against repository and deployed state, and writes only confirmed target work to temporary ignored handoffs.
- Product-level `INTENT.md` records Siteline's active maintenance operating mode and separates required maintenance from parked product, growth, and marketing investment.
- `SECURITY.md` adds a repo-local private vulnerability reporting policy.
- `/history/` carries an evidence-gated category priority claim and a "How
  Siteline compares" table. Every competitor cell states what that tool says
  about itself on its own live public pages, read on a stated verification date;
  absence from a public feature list reads "not a listed check", never "cannot
  do it". Backing evidence in `docs/category-priority.md` and
  `docs/competitor-comparison.md`.
- Search-indexing contract: `scripts/check-search.mjs` (offline) and
  `scripts/check-production-search.mjs` (post-deployment), wired as
  `npm run check:search` and `npm run check:search:production`. The contract
  checks canonical sitemap membership, canonical/noindex agreement, required
  machine files, real 404 behavior, redirect targets, repository-to-production
  sitemap parity, and at least two static inbound source pages per `/learn/` page.
- `ops/search-indexing.md`: index policy, evidence governance, and a repeat-safe
  Google Search Console action ledger, so a console action is never repeated
  without evidence that the prior one completed.
- `npm run build:sitemap` regenerates the sitemap without a Supabase round trip.
- Cross-links between the three `/learn/` pages, giving each one crawlable
  static inbound sources.

### Changed
- Result IDs and same-day recognition use the documented UTC date in every runtime; legacy saved IDs remain readable. Unit-test discovery is scoped to root `test/`, excluding nested historical worktrees.
- Current-version cache reuse and operator-only force permit corrected same-day reports without preserving score history.
- Parsed OpenAPI and security policy quality, truthful private MCP availability, and static-site semantics/discovery/action checks reduce false credits and false failures. SNAP weights and internal result keys remain fixed.
- API documentation is version 1.1.0, the self-guide is 1.0.2, and the portable skill bundle is v4. Paid offer documentation distinguishes advertised capabilities from verified fulfillment.
- Static deployment output now comes from an explicit public-file allowlist; server source, SQL, internal documents, and handoffs are excluded while native API functions retain their dependencies.
- Core and standards probes share public DNS validation, pinned connections, redirect checks, body limits, and cancellation. IPv6 reserved ranges and expanded DNS answers are validated consistently. Supplementary panels and service requests have bounded budgets through response bodies.
- A fresh scan advertises a result ID only after durable storage confirms its write. Unsaved scans retain findings and show an explicit persistence status; share, badge, and report-email controls reflect that status.
- New result IDs include a 96-bit digest of the full URL request identity and normalized site-type hint, preserving distinct hosts, trailing slashes, and queries. Existing stored report IDs remain readable.
- Browser analytics discard submitted URLs, report IDs, and email identity; automatic capture and session recording are disabled. Privacy disclosures now describe actual scan evidence, external assessments, payments, analytics, logs, retention boundaries, and email processing.
- CI now checks the public output boundary, MCP smoke contract, and offline search contract alongside tests and scoring evals.
- Scanner fetches now pin each connection to the public DNS addresses validated during SSRF preflight, including redirect hops, while retaining TLS hostname verification.
- Response bodies honor a declared character encoding with a safe UTF-8 fallback.
- Machine-resource byte caps, charset decoding, HTML-shell rejection, and probe-ledger emission now share the `lib/validated-resource.js` implementation instead of separate scan-engine paths.
- Declared cross-host discovery now follows only the submitted host's explicit descendants, preventing unrelated sites on shared multi-part public suffixes such as `co.uk` from being treated as same-site.
- MCP rubric descriptions and agentic-level explanations now reflect the commerce-only ninth Transactability purpose and its 18-point promise-relative scale.
- Runtime dependencies moved to maintained versions, CI moved to Node 22, and production plus development dependency audits report zero known vulnerabilities.
- The portable Siteline scan skill carries current PAICE ownership, canonical Siteline URLs, and rebuilt integrity metadata.
- The portable Siteline scan skill is now bundle v3 and routes repository-grounded remediation requests to the separate handoff skill while preserving the quick-scan versus deep-audit boundary.
- `INTENT.md` distinguishes the public service and interfaces from the private commercial-product implementation repository.
- `.well-known/mcp.json` is a truthful MCP declaration rather than an
  aspirational one.
- The dev MCP server is dual-era, handling spec revision 2026-07-28 alongside
  the prior revision.
- Sitemap `lastmod` now reflects substantive page change. The weekly cache
  refresh previously rewrote every entry to the job date, which asserted a
  change that had not happened.
- `CLAUDE.md` and `PROJECT_CONTEXT.md` follow the portfolio repo standard.
- Runtime documentation now consistently identifies `/api/og` as a Vercel Node function rather than an edge endpoint.
- Vitest was updated from 4.1.4 to 4.1.11 within the existing major-version range.

### Fixed
- Search-audit validators use upstream asset v7 to decode XML entities once, including apostrophes and numeric references, trim sitemap locations, and decode live canonical URLs before comparison. Invalid code points remain encoded; search contract v4 is unchanged.
- Uncapped executive summaries no longer join a finding title to a verb ("... is working well") or name a weakest pillar when every pillar scores the same. Only blocked, failing, or warning findings are named as the clearest issue; a not-applicable check is not. Scanner identity advances to 2.1.2 so same-day cached results pick up the corrected wording. Grades, scores, and findings are unchanged.
- Desktop result pages no longer stretch finding rows to the height of the left column, which left a large empty gap under the findings heading. An all-passing finding group is labelled "Working well". An invalid `url` input now explains what to enter and marks the field `aria-invalid`.
- The homepage recent-scans strip excludes four throwaway domains that did not represent real site owners.
- `/.well-known/security.txt` pointed its `Policy` at https://paice.work/security-policy, which returns 404. `SECURITY.md` is now published at https://siteline.to/SECURITY.md through the reviewed public-file allowlist, and `Policy` points there.
- Self-guide revision 1.0.1 adds the required title and truthful repository metadata, refreshes review/applicability to public API 1.0.0, and preserves the declared legacy GuideCheck profile 0.7.0 and single-source rewrite.
- Passive guide inspection no longer reports literal placeholders such as `<pattern>` as HTML. Renderer-sensitive tags remain rejected; SNAP scoring and grade caps are unchanged.
- HTML signal extraction now accepts standards-compliant unquoted attributes for anchors, JSON-LD scripts, metadata, canonical links, feed discovery, and other machine-discovery links. This prevents valid minified pages from losing navigation and structured-data evidence.
- Same-scope result lookup now uses an exact-length dated ID pattern and validates returned IDs, preventing longer URL or site-type scopes from colliding by prefix.
- Stored results with a `siteTypeHint` now reconstruct the same scoped result ID when determining whether the result is from today.
- Probe evidence now rejects an HTML application shell consistently with scoring instead of recording a fetched shell as a passing machine resource.
- Dynamic OG generation now uses Vercel's default Node runtime and fetch-style `GET` function signature, loads the ESM-only `@vercel/og` package dynamically from Siteline's CommonJS application, and accepts both Web and Node request-header shapes. The dependency is pinned to the directly verified 1.0.1 release because the published 1.0.2 package omits a HarfBuzz WASM asset required at render time.

### Removed
- Processed and removed the March AI Tool Watch bot-accessibility handoff after confirming its durable recommendations are covered by transient-WAF classification, evidence excerpts, provenance, and tests. The tracked history remains recoverable from Git.
- `/white-label/report-link/` from the sitemap. It is served `noindex, follow`
  by design, so listing it contradicted its own directive.

## [3.1.2] - 2026-07-08

Documentation architecture and served-surface link fixes. No behavior change;
scanner 2.0.0 and rubric 2.3.0 unchanged.

### Added
- This file (CHANGELOG.md) as the backward-looking history, split from ROADMAP.md.
- Guardrail in `test/doc-consistency.test.mjs`: CHANGELOG.md must mirror every
  `changelog.json` version.

### Changed
- ROADMAP.md is now future-only — no current-state or delivered-product content.
- `/history/` timeline enriched (April paid-services launch, v2.5.0, v3.1.x); intro
  corrected to note the source repository is private, so the first-commit hash is
  stated provenance, not a public link.
- `docs/project-memory.md` product table: Monitoring "Live (self-serve Stripe)",
  Hosted API "Not self-serve (contact-gated)".

### Fixed
- Removed three `github.com/snapsynapse/siteline` links from the served
  `assistant-guide.txt` (private repo returns 404). The guide stays GuideCheck
  shape-conformant.

## [3.1.1] - 2026-07-08

Documentation and copy reconciliation to canon. No behavior change; scanner
2.0.0 and rubric 2.3.0 unchanged.

### Changed
- `agents.json` (+ `.well-known` copy) Hosted API now reads "$49/mo, not
  self-serve yet" (price set, offer contact-gated), replacing "candidate pricing".
- Reconciled prices and product state across internal repo docs, external
  agent-facing files, and site copy against the LocalBrain Master Pricing List
  (single source of truth). Every customer- and agent-facing surface was already
  correct on all six prices; drift was confined to internal docs and the vault.

### Fixed
- Stale internal claims: Monitoring $9→$19 in the self-assessment doc; Monitoring
  status planned→live and de-hardcoded test counts in project-memory; the stale
  rubric-roadmap "Current Gap" (docs/oss/portfolio overlays ship).

### Added
- `test/doc-consistency.test.mjs`: no retired prices on customer/agent surfaces,
  Monitoring priced at $19 where priced, no hardcoded test counts in durable docs.

## [3.1.0] - 2026-07-08

Additive served-surface and documentation fixes from the 2026-07-08 review.
Scanner 2.0.0 and rubric 2.3.0 unchanged.

### Added
- The OpenAPI specs document the `siteType` query parameter (11 public
  site-family values), covered by a contract test.

### Fixed
- `/api/v1/changelog.json` and `/api/v1/index.json` now serve JSON where they
  previously 404'd (files under `api/` are treated as functions). Moved to root
  paths with Vercel rewrites matching `/api/v1/openapi.json`.

### Changed
- Agent-facing docs reconciled: `llms.txt` lists Monitoring as a first-class
  service; `agents.json` no longer states a live $49/mo Hosted API price.

## [3.0.0] - 2026-07-07

Composite scan and grade-integrity release. Scanner 1.6.0→2.0.0; rubric held at
2.3.0 (weights, caps, and level thresholds identical).

### Added
- Composite scan: every result carries an attributed Cloudflare Agent Readiness
  protocol baseline (`external.cloudflare`) and open-standards conformance checks
  (`standards`: Graceful Boundaries passive evidence, GuideCheck
  `assistant-guide.txt` shape validation) alongside the SNAP judgment. Both
  panels are informational and never feed the score, grade, or level.
- First-claim history page at `/history/`.
- `/api/limits` carries proactive RateLimit headers.

### Fixed (grade integrity — changes grades for affected sites, hence major)
- `http://` input that 301-redirects to https is graded on the final URL (no
  more false F).
- HTML-shell responses at machine-resource paths count as absent instead of
  inflating agentic level.
- WAF classification is word-bounded and gated on thin pages.
- `robots.txt` is parsed into RFC 9309 user-agent groups so per-bot rules no
  longer leak into the `*` group.

### Security
- Endpoint auth hardened: unconditional `CRON_SECRET`, constant-time token
  compares, rate-limited outreach.

## [2.6.0] - 2026-05-30

### Security
- SSRF validation covers IPv4-mapped private IPv6 literals, DNS preflight for
  initial and redirect targets, and broader reserved/internal address ranges.
- Checkout return URLs canonicalized to https://siteline.to; hostile forwarded
  hosts fail closed before Stripe is called.
- Scanner response bodies byte-capped before parsing (`bodyTruncated` metadata).

## [2.5.0] - 2026-05-26

### Added
- Finding evidence: CTA ambiguity findings can include matched label text, href,
  selector, element type, and ambiguity rule.
- Static semantic-resource detection: `assistant-guide.txt`, `ontology.json`,
  `relationships.yaml`, and HTML service-desc/security/alternate machine links,
  reported under `informational.semanticResources` (no score impact).

### Changed
- Commerce profile precision: `Offer`/`SoftwareApplication` schema no longer
  imply ecommerce for portfolio/static sites without stronger transaction evidence.

## [2.4.0] - 2026-05-18

### Added
- F1 probe-evidence ledger: `result.evidence.probes[]` records
  url/status/content-type/duration/verdict/reason plus SHA-256 and a 512-byte
  excerpt for every check. Additive, no scoring change.

## [2.3.0] - 2026-05-18

### Added
- Standards Library v1: RFC 8288 Link headers, RFC 9727 api-catalog, RFC
  8414/9728 OAuth discovery + 401 WWW-Authenticate, MCP server-card, `/index.md`,
  Web Bot Auth signatures directory. Each is a content-validated,
  protocol-agnostic alternate folded into an existing Layer 2 purpose by
  best-score-wins. Layer 1 untouched, parity preserved.

## [2.2.0] - 2026-05-18

### Added
- Promise-relative Layer 2 with commerce-gated Transactability (9th purpose, max
  18) via a declarative content-validated pattern registry with site-declared
  subdomain following. Precision-gated to genuine purchase intent.

### Fixed
- Access-gate soft-block false positive (substantive-page guard).

## [2.1.0] - 2026-03-26

### Added
- Two-layer scoring model: SNAP fundamentals (floor) + Agentic Enablement
  (ceiling). 11 resources scored 0/1/2; level 0–4 caps grade at D/D/C/B/A.
- All non-success API responses include structured error/detail/why fields per
  Graceful Boundaries; proactive RateLimit headers on all endpoints.

## Commerce, monetization & infrastructure — 2026-04-20 to 2026-04-29

Shipped between 2.1.0 and 2.2.0. This work did not change the scan API, so it has
no `changelog.json` version, but it is the bulk of the paid-product and
operational surface.

### Added
- Stripe Checkout Sessions for one-time Audit ($899) and Workshop ($2,499); `/checkout-success/` noindex page; `/contact/` fallback.
- White-Label Reports as a contextual $499/mo founding agency subscription:
  `/white-label/` segmented page, subscription checkout, branded report-link
  helper at `/white-label/report-link/` (`?brand=&accent=` with validated hex).
- Monitoring launched as a $19/mo (or $199/yr) subscription offer for one public
  website.
- Embeddable SVG badges at `/badge/{resultId}.svg` (default, horizontal, dark,
  social variants); badge snippet in the report email.
- Homepage example chips + "Recently scanned" strip (weekly-refreshed cache) and
  "X sites scanned this week" counter; weekly benchmark scan of 50 curated
  domains; `/benchmark/` public page.
- Three SEO learn pages (`/learn/agent-readiness-scanner/`,
  `/learn/llms-txt-validator/`, `/learn/make-your-site-agent-usable/`);
  `/developers/` API docs page.
- Feedback loop: result-page NPS widget, exit-intent survey, monthly review
  ritual, founder-operated agency outreach composer.
- Rubric site-type overlays: profile framework plus evidence-gated `docs`,
  `oss-project`, and `portfolio` profiles; optional public site-type selector;
  `siteType` hint accepted/validated/logged; `force`/`refresh` cache bypass;
  rubric-delta in result envelope.

### Added (infrastructure)
- PostHog instrumentation (15 events) + Sentry on all serverless functions;
  `email_outbox` + retry drain + 30-day self-rescan email; Supabase migrations
  0001–0005 + RLS + pg_cron purge.
- CSP hardening (no `'unsafe-inline'` in `script-src`/`style-src`) + full
  security header suite; inline JS/CSS extracted; `X-Robots-Tag: noindex,follow`
  on `/results/*`.

## [2.0.0] - 2026-03-22

### Added
- V2: dynamic OG images, PDF export, MCP server, batch scanning, remediation
  routing, content-model signal, scan provenance, confidence scoring, CLI,
  durable records with Supabase.

## [1.0.0] - 2026-03-19

### Added
- Initial release: 4-pillar SNAP scoring (Signal, Navigate, Absorb, Perform),
  REST API, single-page scanner.
