The Two Leased Headless Engines: scan_engine and build_engine.
Locked Headless API Boundary · Licence, Never Ownership
Website Factory Score exposes exactly two headless production engines to accredited white-label partners (partner_id ≥ 3) and reference tenants (N=1, N=2). Every lease contract rejects attempts to delegate retail pricing, voice or customer service desks, billing, or customer support back to the platform.
Engine 1: scan_engine — Deterministic Home-Page Scanner (2026-11-10-r14)
An unmodified, version-pinned evaluation pipeline that scores a public business or nonprofit home page from its served response and raw HTTP headers without manual tuning or subjective grading.
27-Lane Three-Area Evaluation
Rule Version: aa-plus-verdict/v1+b1d5cee1b171
- Accessibility (11 lanes): Machine-checkable WCAG 2.1/2.2 Level AA checks covering text alternatives, contrast, keyboard operability, form labels, headings/landmarks, link/button names, language/title, captions, zoom/targets, reduced motion, and ARIA roles.
- AI Readiness (12 lanes): AI crawler permission, static HTML readability without JavaScript, semantic hierarchy, Organization & Offering JSON-LD, entity links, answer-ready Q&A blocks, metadata, author signals, trust signals, and freshness.
- Trust & Legal Presence (4 lanes): Automated link and page-presence checks for Privacy notice, Terms of sale, Refund/return policy, and Cookie/consent notice.
QoS Container Split & Fail-Closed Admission
WFS-ScanBot/1.0 (+https://websitefactoryscore.com/bot/)
- 15% / 85% Container QoS: Each scan droplet reserves
15% of container slots exclusively for Real-Time Requested & Partner SLA scans (≤ 90s target), allocating 85% to Bulk Overture/Places corpus crawling with instant preemption on partner queue arrival.
- Dual-Bot RFC 9309 Policy: Evaluates
robots.txt before any page fetch, honoring both WFS-ScanBot and legacy DFD-ScanBot rules under stricter-wins fail-closed semantics.
- Hard Cohort Exclusions: Blocks
.gov, .mil, .fed.us, state government .us (preserving *.pvt.k12.<state>.us), brand store-locator subdomains, private IPs, and owner opt-out domains.
Engine 2: build_engine — Autonomous AA+ Whole-Site Rebuild Factory
A deterministic, zero-human-touch static site synthesis engine governed by Ops Control Console ops.rebuild_control, converting verified origin facts into fast, accessible, self-contained HTML/CSS bundles.
Deterministic Build & Verification Gates
Zero External Fonts, Scripts, or Runtime CDNs
- Fact-Grounded Synthesis: Extracts verified business facts, hours, offerings, and contact routes from the scored Before (B) snapshot without inventing unverified claims.
- AA+ Accessibility Floor: Every generated route must pass
a11y-lint.php across base, extended, and aa_plus rules — enforcing ≥ 7.0:1 declared token contrast, non-skipped distinct headings, 44px hit targets, visible focus rings, and zero timer-driven DOM mutations.
- Paired BA Score Proof: Every autonomous After (A) build is re-scanned by the exact same
2026-11-10-r14 scan_engine to compute its verified BA Score delta.
Ops Control Console Governance (ops.rebuild_control)
Kill-Switch · Daily Budget Cap · Bottom-1% Queue
- Instant Kill-Switch: Setting
ops.rebuild_control.kill_switch = true halts autonomous rebuild dispatch immediately across all workers without interrupting active read-only scans.
- Bounded Daily Cap: Enforces a strict UTC daily rebuild ceiling (
daily_cap) and targets the bottom-1% highest-defect public home pages on the active regional clock.
- Sandbox Watermarking: Partner evaluation builds carry the mandatory
WFS-SANDBOX-EVALUATION-WATERMARK tag until a commercial lease is executed.
Headless Partner API v1/v2 Endpoints & Security Controls
All partner endpoints authenticate exclusively via Authorization: Bearer <raw_key>, hashed at the edge to a lowercase 64-character SHA-256 hex digest and compared in constant time. Raw keys are displayed once at issuance and never persisted or written to audit logs.
| Endpoint |
Auth & Isolation |
Contract Summary |
POST /api/v1/scans |
Partner Bearer (SHA-256) |
Validates { url, clock_id, private_cohort_only }, enforces per-minute rate limit and daily fair-share quota, checks fail-closed robots.txt, and enqueues a scan tagged to the caller's partner_id. |
GET /api/v1/scans/:id |
Partner Bearer (Tenant-Isolated) |
Returns three-area automated check counts and verdicts for a scan_id owned by the authenticated partner; cross-tenant lookups return 404 scan_not_found. |
GET /api/v1/partners/me/counters |
Partner Bearer (Tenant-Isolated) |
Returns the authenticated partner's clean public scan count, isolated private cohort count, queued count, and remaining UTC daily quota; ignores any spoofed query or header tenant IDs. |
GET /api/v1/counters |
Public (10s Edge Cache) |
Serves the reconciled wfs.clock/v2 Dual-Column telemetry envelope (clock_id, N, sigma_b, sigma_a, unique_sites, ba_score, day_1_b_threshold, set_id). |