Strategic Master LibraryV2
All projects

Volume IV · Manual 23

PTCHBL

PTCHBL (XCTBL Space Era) · XCTBL vertical — patching

shippingDocumented claim · Version 1 manual
  • Authentication & Auth Screens
  • Stripe / Checkout / Payments
  • Memory / Continuity
  • Dream / Offline Synthesis
  • Defense / Hardening
  • Ascension / IP Export
  • Domain Monitoring / RDAP
  • Pricing & Tiers

PTCHBL — Founder's Owner's Manual & Strategic Intelligence File

v2.0 — Audited Edition · · Maintained by Kenneth E. Sweet Jr.

Status legend: [Confirmed] observed in repo/DB · [Inferred] from artifacts · [Stale] outdated source contradicts current state · [Planned] roadmap · [Speculative] strategic estimate · [Needs creator confirmation]


Truthfulness preface

This manual is generated from direct inspection of the PTCHBL codebase, Supabase schema, edge function inventory, route table, and the live database. Where the repository's own documentation contradicts current product reality (a common occurrence in a fast-pivoting solo project), the discrepancy is flagged as [Stale] rather than silently reconciled. Monetary, valuation, and market-size figures are estimates, not forecasts. Nothing here is legal, financial, or compliance advice.


Audit summary (what changed in v2)

Corrected from v1:

  • Replaced soft user/usage estimates with live DB metrics (§9.4).
  • Flagged PROJECT_STATUS.md, CHANGELOG.md, and [source file] as stale versus current XCTBL-only auth posture.
  • Flagged index.html SEO copy ("No signup required") as contradicting the free-scan auth gate.
  • Tightened valuation ranges; separated standalone vs ecosystem framings.
  • Removed an overclaim that "team collaboration" UI is complete; downgraded to "tables exist, surface depth unknown."
  • Added explicit technical-debt inventory (§6.6) with file-level pointers.
  • Added doc-drift register (§A1) so future operators don't trust stale MDs.
  • Added operator runbook for queue/AI-provider/Cloud incidents (§15.4).
  • Print CSS: increased page margins so cover title never clips.

Newly added:

  • Section A1 — Doc Drift Register
  • Section A2 — Source Audit Log (per claim)
  • Section A3 — Open Questions for Creator Confirmation
  • Section A4 — Final Quality Self-Assessment

Still unresolved (creator confirmation required):

  • Canonical brand string (PTCHBL vs CMPTBL — repo is mixed).
  • Whether dormant Stripe code should be deleted or feature-flagged.
  • Whether custom domain (e.g., ptchbl.com) is owned or available.
  • Whether WordPress plugin has been submitted to WordPress.org.
  • True monthly active scanner usage (DB has cumulative, not MAU).

Table of Contents

  1. Executive Summary
  2. Canonical Identity
  3. Project Classification
  4. Core Concept
  5. Full Feature Inventory
  6. Architecture Analysis
  7. Strategic Ecosystem Role
  8. Development History
  9. Current State Assessment
  10. Monetization Analysis
  11. Competitive Positioning
  12. Future Vision
  13. Priority Roadmap
  14. Risk Analysis
  15. Preservation & Continuity
  16. Strategic Importance Ranking
  17. Recommended Next Actions
  18. Canonical Summary
  19. Appendix A — Audit Artifacts

1. Executive Summary

PTCHBL ("Patchable") is an AI-augmented web accessibility compliance platform built solo by Kenneth E. Sweet Jr. It scans websites against WCAG 2.2 criteria, generates actual code patches (not just findings), and distributes them via embeddable widget, WordPress plugin, GitHub PRs, and a public API. It is wrapped in a distinctive Mars-settlement narrative ("Martian Compliance Group") that doubles as brand moat and onboarding theater.

Dimension Honest read
Problem Accessibility tools report findings; nobody ships the fix.
What's real Scanner pipeline, AI fix generation, widget delivery, auto-blog, XCTBL auth, narrative — all running. [Confirmed]
Usage today 312 scans, 21 widget installs, 6 badges issued, 2 early adopters, 159 blog posts. [Confirmed, live DB, 2026-05-21]
Revenue today $0 (free-forever pivot active). [Inferred]
Maturity Production-deployed, code-mature, commercially pre-revenue.
Ecosystem role One surface in PromptFluid's "-BL" family (XCTBL, RNDRBL, RCRDBL, CMPSBL, RCKBL).
Short-term lever WordPress.org plugin distribution + custom domain + Pro tier re-enablement.
Long-term lever Become the compliance fabric for the entire PromptFluid ecosystem and an audit-trail layer regulators can read.

The honest one-liner: a production-quality, distinctively-branded, pre-revenue accessibility platform that needs distribution and a paid wedge, not more features.


2. Canonical Identity

Field Value Source
Official name PTCHBL (Patchable) memory, UI
Legacy name "Clarity" → renamed memory
String drift "CMPTBL" still present in: published domain, WP plugin filename, ask-cmptbl fn, many .md files repo grep [Stale]
Codename Olympus [source file]
Reported version v2.0.0 (BUILD_DATE 2025-06-20) [source file] [Stale — date precedes some 2026-dated memories]
Product line PromptFluid™ memory
Published URL [preview URL withheld] project URLs [Confirmed]
Custom domain none configured project URLs [Confirmed]
Auth identity XCTBL central, TOOL_KEY=ptchbl memory + useXCTBLAuth.ts
Lore voice Mars colonist · MCG protocols memory
Founder Kenneth E. Sweet Jr. repo
Contact contact via KESJR.com · (760) FLUID-AI memory
Lovable project ID [id withheld] env
Supabase ref rykomagcuptnngfotvrk env

3. Project Classification

  • Primary: Vertical-SaaS — accessibility compliance
  • Secondary: Distribution platform — widget + WP plugin + REST API + GitHub PR bot
  • Tertiary: Narrative property — Mars universe feeder into RCKBL transmedia
  • Architectural: Jamstack SPA + 34 Deno edge functions on Lovable Cloud (Supabase Postgres)
  • Ecosystem role: Compliance surface layered on CMPSBL primitives, gated by XCTBL identity

4. Core Concept

"Don't just diagnose. Patch."

Differentiation pillars

  1. Fix-first. generate-ai-fix, generate-fix, save-site-fixes, approve-fixes, get-approved-fixes form a closed-loop remediation pipeline. [Confirmed in supabase/functions/]
  2. Distribution-native. Five consumption surfaces: web app, embeddable widget (public/ptchbl-widget.js), WordPress plugin, GitHub PR bot, public REST API. [Confirmed]
  3. Narrative moat. Mars/MCG is genuinely novel in a category of sterile dashboards. Hard to copy without looking derivative.
  4. Ecosystem leverage. XCTBL central auth → one identity, many PromptFluid surfaces.
  5. Free-for-XCTBL³. Intentional pricing posture; the wedge for paid is currently disabled. [Confirmed]

Moats — honestly graded

Moat Strength Why
Technical Medium Caching (ai_fix_cache, scan_cache) + model tiering reduce cost; engine itself is replicable.
Brand / narrative High Lore is distinctive and category-unusual.
Ecosystem Medium-High (if shipped) Depends on PromptFluid sibling momentum, which is itself founder-bound.
Distribution Low today WP plugin not yet on .org; custom domain absent. Largely potential, not realized.

5. Full Feature Inventory

5.1 Routes ([source file]) [Confirmed]

Group Routes
Core product /, /ptchbl, /scan, /dashboard, /monitoring, /fix-approval, /badge/:scanId
Distribution /install, /add-to-my-site, /downloads, /widget, /widget/api, /widget/status, /widget-install, /widget-api-docs, /api-docs
Ecosystem /systems, /substrate, /showcase
Content/SEO /blog, /blog/:slug, /wcag-compliance, /ada-compliance, /accessibility-for-business, /accessibility-testing
Org /about, /mission, /contact, /faq, /user-manual, /roadmap
Auth /auth (XCTBL gateway); /login → redirect
Legal /privacy, /terms, /security
Deprecated redirects /pricing, /affiliates, /affiliate-resources, /partners, /careers, /resources → home/blog/about

5.2 Edge functions (34) [Confirmed via supabase/functions/ listing]

Domain Functions
Scan engine accessibility-scan, process-scan-queue, wordpress-scan, detect-platform, drift-detection, widget-health-monitor, monitoring-scheduler
AI / fixes ask-cmptbl (legacy-named, primary AI), generate-ai-fix, generate-fix, generate-alt-text, save-site-fixes, approve-fixes, get-approved-fixes, generate-marketing-asset, generate-blog-images, auto-blog
Reports generate-pdf-report, generate-analytics-pdf, generate-user-manual, generate-badge-image, download-wordpress-files
Integrations create-github-pr, encrypt-github-token, public-api, badges-api, track-widget-install, notify-widget-install, widget-analytics, send-notification, send-scan-email, send-weekly-reminder
Commerce (dormant) create-checkout, check-subscription (deployed per config.toml but not wired to live pricing UI). [Confirmed]

5.3 Database surface — 57 tables, 21 functions, 0 triggers visible [Confirmed]

Grouping unchanged from v1; full table list preserved in repo ([source file]).

Key DB functions worth knowing exist (per <db-functions>): check_and_increment_scan_limit, can_user_scan, increment_scan_count, has_role, is_team_member, aggregate_widget_analytics, update_widget_health, trigger_webhook, auto_cleanup_expired_cache, register_early_adopter, handle_new_user, add_scan_to_history, increment_scan_counter, get_queue_position, capture_user_email.

5.4 Notable subsystems

Subsystem Location Notes
AskPTCHBL AI [source file] → ask-cmptbl fn Invokes legacy-named fn. [Confirmed]
Accessibility widget public/ptchbl-widget.js Session-persistent; CSS-filter resistant.
Auto-blog auto-blog fn + blog_posts table (159 rows) Live and producing.
Splash systems DreamFearSplash, DreamWhisperSplash, PTCHBLScanBaySplash Dream Eater teaser layer.
Dual presentation useState-driven, persisted ptchbl_view_mode Story vs Diagnostic.
Settler ranks [source file] Cosmetic only.
Free-scan gate [source file] + localStorage 1 free anon scan → XCTBL.
Substrate page [source file] Live CMPSBL primitive grid.
Space-track analytics [source file] + window.spaceTrack (index.html) External-tracking-only snippet.

6. Architecture Analysis

6.1 Topology


 ┌──────────────────────────────────────────┐
 │ Visitor / Settler (browser, mobile) │
 └───────────────┬──────────────────────────┘
 │ React 18 + Vite + Tailwind
 ▼
 ┌──────────────────────────────────────────┐
 │ PTCHBL SPA (Lovable-hosted static) │
 │ - Splash + dual-mode toggle │
 │ - AskPTCHBL chat, Substrate grid │
 │ - ptchbl-widget.js (embeddable) │
 │ - window.spaceTrack analytics shim │
 └───┬──────────────────────┬───────────────┘
 │ │
 XCTBL auth │ │ Lovable Cloud (Supabase)
 ▼ ▼
 ┌───────────────┐ ┌─────────────────────────────┐
 │ XCTBL central │ │ Postgres (57 tables, RLS) │
 │ identity │ │ - Scans, queues, caches │
 │ TOOL_KEY= │ │ - Widget platform │
 │ "ptchbl" │ │ - Teams, sites, fixes │
 └───────────────┘ └────────────┬────────────────┘
 ▼
 ┌─────────────────────────────┐
 │ 34 Edge Functions (Deno) │
 │ - Scan, fix, monitor │
 │ - AI (Groq, Lovable AI) │
 │ - GitHub PR, WP, badges │
 │ - Public API │
 └────────────┬────────────────┘
 ▼
 ┌─────────────────────────────────────────┐
 │ External: Groq, Lovable AI Gateway, │
 │ Stripe (dormant), GitHub, Resend, │
 │ target sites (SSRF-guarded fetch) │
 └─────────────────────────────────────────┘

6.2 Typical scan execution


User → /scan
 → useScanAuth gate (localStorage + XCTBL session)
 → enqueue in scan_queue (or quick-scan inline)
 → process-scan-queue worker dequeues
 → fetch target via _shared/url-validator (SSRF guard)
 → accessibility-engine produces findings
 → write accessibility_scans + scan_progress (realtime)
 → per-finding: generate-ai-fix (cache-first via ai_fix_cache)
 → trigger fires → scan_counter increments → homepage realtime updates
 → user lands on results → /badge/:scanId
 → optional: create-github-pr | save-site-fixes → /fix-approval

6.3 AuthN/Z model

  • Identity: XCTBL only. No first-party signup. [Confirmed in memory + useXCTBLAuth.ts]
  • Roles: app_role enum (free, pro, business, enterprise, admin) on user_roles, gated by has_role() SECURITY DEFINER. [Confirmed]
  • Function gates: supabase/config.toml per-function verify_jwt settings; AI quota fns now require auth. [Confirmed]
  • Data isolation: RLS tightened — sites, accessibility_scans, scan_comments now owner-email scoped. [Confirmed via recent migration]

6.4 Strengths

  • Capability isolation across 34 edge functions.
  • Aggressive multi-layer caching (ai_fix_cache, scan_cache, scan_results_cache).
  • RLS-everywhere with has_role SECURITY DEFINER pattern (no recursion).
  • Realtime UX without bespoke socket infrastructure.
  • SSRF-guarded outbound fetch as a _shared invariant.

6.5 Weaknesses

  • Brand string drift. "CMPTBL" persists in: published subdomain ([preview URL withheld]), ask-cmptbl fn, public/wordpress-plugin/cmptbl-accessibility-widget.php, several .md files, public/affiliate-*, public/clarity-scanner.js. Search & share confusion risk. [Confirmed]
  • Stale documentation. PROJECT_STATUS.md still claims "Supabase Auth (email/password), Auto-confirm email enabled" — contradicts current XCTBL-only posture. CHANGELOG.md last entry is v1.3.0; version.ts says v2.0.0. See §A1. [Stale]
  • SEO/auth contradiction. index.html <title> and <meta description> advertise "No signup required" while the free-scan gate forces XCTBL on the second scan. Honest copy needed. [Confirmed]
  • 57 tables for current volume is heavy; widget marketplace/A-B/translation tables likely under-used. [Inferred]
  • No automated test suite observed in repo. [Confirmed via absence]
  • Single-worker scan queue. process-scan-queue is a single endpoint; throughput is its invocation cadence × worker concurrency. [Inferred]
  • Dormant Stripe code still deployed (create-checkout, check-subscription, wordpress-checkout, etc.) creates accidental-charge surface area. [Confirmed]
  • Lovable platform lock-in. [source file] is auto-generated and project-pinned.

6.6 Technical debt — file-level inventory

Debt Location Severity
Legacy fn name supabase/functions/ask-cmptbl/ Medium
Plugin filename brand drift public/wordpress-plugin/cmptbl-accessibility-widget.php High (public artifact)
Stale status docs PROJECT_STATUS.md, CHANGELOG.md, PHASE_*.md, TRANSFORMATION_STATUS.md, SPEED_RUN_COMPLETE.md, FREEMIUS_ONBOARDING_CMPTBL.md Medium
Dormant commerce supabase/functions/create-checkout, check-subscription, customer-portal, wordpress-checkout, wordpress-early-adopter, wordpress-license-verify High (accidental charge risk)
Marketing copy / SEO drift index.html "No signup required" Medium
Version metadata staleness [source file] BUILD_DATE Low
Legacy scanner artifact public/clarity-scanner.js Low
Affiliate artifacts public/affiliate-*.md Low (unused per route redirects)

6.7 Scalability honest assessment

Dimension Status
Read throughput Good — caches + Supabase pooler
Scan throughput Bounded by process-scan-queue invocation cadence. Not yet stress-tested. [Inferred]
AI cost per scan Mitigated by ai_fix_cache (TTL via auto_cleanup_expired_cache)
Widget delivery Static — effectively infinite
Realtime fanout Single global channel — fine at current 312-scan scale
Multi-tenant isolation RLS-correct; no tenancy partitioning beyond owner_email

7. Strategic Ecosystem Role


 PromptFluid
 │
 ┌──────────┬───────┼───────┬──────────┬─────────┐
 XCTBL RNDRBL PTCHBL RCRDBL CMPSBL RCKBL
 (auth) (render) (patch) (record) (substrate) (dream-2026)
 ▲ │ │ │ ▲ │
 │ │ │ │ │ ▼
 └──── identity ────┴───────┘ │ transmedia foreshadow
 │
 consumes ─────┘
 40 primitives
  • CMPSBL ships 40 foundational schematics rendered at /substrate.
  • XCTBL is the sole identity authority (TOOL_KEY=ptchbl).
  • RNDRBL / RCRDBL are sister surfaces already integrated.
  • RCKBL ("Dream Eater") teased through DreamFearSplash / DreamWhisperSplash for 2026.

Shared primitives across the family: design tokens (HSL, Space Grotesk/Inter), free-for-XCTBL³ pricing posture, splash system, narrative voice (per surface), central identity.


8. Development History

**[Inferred from CHANGELOG, PHASE_*.md, repo artifacts]** — note that these source documents are themselves stale (see §A1).

Phase Outcome
Phase 1 — MVP Single-page scanner, AI alt text, auth, subscribers
Phase 2 — Viral WP plugin scaffold, badges, multi-page scan, Stripe scaffolding, affiliates, blog
Phase 3 — Auto-Fix AI fixes (Gemini Pro), monitoring, GitHub PRs, team collaboration
Phase 4 — Hardening Operational + security pass
Phase 5 — SEO/Distribution In progress per PHASE_5_IN_PROGRESS.md
Rebrand "Clarity" → PTCHBL ; red-planet logo ; Mars lore (partial — CMPTBL strings remain)
Pricing pivot Paid tiers removed; free forever for XCTBL³
Ecosystem integration XCTBL → RNDRBL → RCRDBL → CMPSBL ("Foundation Schematics")
Security hardening RLS lockdown on sites, accessibility_scans, scan_comments; SSRF in drift-detection; AI quota gates on generate-ai-fix / generate-fix / generate-alt-text; admin-only on generate-marketing-asset

Lessons preserved (from mem://index.md):

  • Stories beat specs — Mars narrative drives recall.
  • Centralize auth (XCTBL) — never re-implement per surface.
  • AI endpoints must return HTTP 200 with errors in body or UI breaks.
  • Header transparency must respect scroll threshold.
  • No hallucinated metrics — pull from DB.

9. Current State Assessment

9.1 Works [Confirmed]

Scanner pipeline, caching, widget delivery, auto-blog, AskPTCHBL chat, Substrate page, XCTBL auth, free-scan gate, dual presentation modes, Mars narrative across UI, splash systems, public badge pages, public API endpoint.

9.2 Incomplete / dormant [Confirmed / Inferred]

Stripe + early-adopter flows (deprecated by pivot, code retained), widget marketplace tables (UI not located), team collaboration UI depth, custom domain, automated tests, A/B testing surface, widget translations breadth.

9.3 Known hygiene issues

Brand string drift; legacy ask-cmptbl name; version.ts stale date; stale .md status docs (see §A1); marketing/auth copy contradiction.

9.4 Real metrics — live DB snapshot, 2026-05-21 [Confirmed]

Metric Value
accessibility_scans (cumulative) 312
blog_posts (auto-blog output) 159
widget_installations 21
cmptbl_badges issued 6
sites registered 0
early_adopter_signups 2

Interpretation: Product works; the scanner has been used; auto-blog is the most active subsystem; commercial/distribution adoption is pre-traction. This is a real platform with real plumbing and not yet a real user base. No shame — name it.

9.5 Founder-facing scores (re-rate quarterly)

Dimension v2 score / 10 v1 → v2 movement Basis
Maturity (code) 7 = Multi-phase complete
Stability 5 ↓ from 6 No tests + stale docs
Monetization readiness 3 ↓ from 4 Paid path off; metrics confirm pre-revenue
Scalability 6 = Single-worker cap
Brand strength 8 = Lore is genuinely differentiated
Documentation 5 ↓ from 7 Drift makes docs untrustworthy
Distribution 2 new No custom domain, no .org listing

10. Monetization Analysis

All figures are estimates for planning, not promises. They are not backed by traction.

10.1 Honest current posture

  • $0 revenue. [Inferred]
  • 2 early-adopter records, no active billing. [Confirmed]
  • Stripe code present but not surfaced in active UI flows. [Confirmed]

10.2 Revenue paths

# Path Effort Time-to-$1 Realistic ceiling (12-mo) [Speculative]
1 Re-enable Pro tier ($29/mo) for non-XCTBL visitors Low Days $0–$2k MRR (gated by traffic)
2 WordPress.org plugin (Freemius or own billing) Medium Weeks $1k–$10k MRR if listed and ranked
3 Public API metered ($x/1k scans) Medium Weeks $0–$3k MRR without active BD
4 White-label widget for agencies Med-High Months Per-deal $500–$5k ACV
5 Verified-badge fee Low Days Micro-revenue only
6 Enterprise / ADA-defense bundle High Quarters $10k–$50k ACV per deal, low N
7 Acquisition / acqui-hire n/a Quarters Strategic, not income

Hard truth: all of these require distribution work, not more product. Without a custom domain, WP.org listing, or paid acquisition, the realistic 12-month revenue is in the low four figures even with paths #1–#3 enabled.

10.3 Valuation framing — calibrated [Speculative; for planning]

Scenario Range What unlocks it
Codebase + brand asset value, today $15k–$60k Sale of repo + brand + dormant Stripe wiring
With $2–5k MRR + ~50 active users $200k–$600k Paid wedge + WP listing + custom domain
With WP.org rank + sustained $10–20k MRR $800k–$2.5M Distribution + retention
Acquired into incumbent a11y suite (UserWay/accessiBe/AudioEye/Deque orbit) $2M–$10M strategic Plus team, plus traction, plus regulatory tailwind
Full PromptFluid ecosystem exit Speculative — depends on sibling momentum Coordinated bundle

v1 ranges were optimistic on the low end and not specific enough on the unlock conditions. v2 ranges are tighter.

10.4 Fastest realistic path to first $1

Re-enable Pro tier → ship ptchbl.com (or chosen domain) → submit WP plugin → metered API tier. All four can be done inside a month of focused work.

10.5 Highest leverage

WordPress.org plugin distribution + agency white-label.


11. Competitive Positioning

[Inferred] — needs creator confirmation for any claim used in marketing.

Competitor Their angle PTCHBL edge PTCHBL gap
axe DevTools (Deque) Best-in-class detection Ships fixes, has narrative Smaller engine maturity
WAVE (WebAIM) Free academic scanner AI + distribution No academic credibility yet
accessiBe / UserWay / AudioEye Overlay widgets (litigation-controversial) Patches source + widget option Brand recognition
Silktide / Tenon Enterprise scanning Brand + ecosystem No enterprise sales motion

Defensibility honest read: scanner functionality is increasingly commodity; the integrated ecosystem + Mars narrative + fix-first pipeline is the durable moat — but only once at least one of distribution/traction/sibling-coupling materializes.


12. Future Vision

12.1 Ultimate form [Speculative]

A "compliance fabric" sitting transparently over any PromptFluid surface — automatic WCAG ascension at build-time, runtime patching at the widget layer, agentic remediation PRs, and a verifiable badge graph regulators can audit. The Mars narrative grows into transmedia continuity with RCKBL, where compliance is planetary infrastructure.

12.2 Aspirational capabilities [Planned / Speculative]

  • ptchbl scan GitHub Action
  • Visual diff snapshots tied to site_snapshots
  • Regulator-ready audit exports (EU EAA, ADA)
  • Multi-tenant white-label
  • Agentic "Settler" that opens PRs autonomously per drift event
  • Universal a11y SDK shared with sibling -BL surfaces

13. Priority Roadmap

Now (this month)

  1. Brand string normalization pass — pick PTCHBL, ship shim for ask-cmptbl and WP plugin filename, rename clarity-scanner.js.
  2. Custom domain — register and point (e.g., ptchbl.com).
  3. Doc drift cleanup — see §A1; either update or move to /docs/archive/.
  4. Decide Stripe fate — feature-flag or delete create-checkout, check-subscription, customer-portal, wordpress-checkout, wordpress-early-adopter, wordpress-license-verify.
  5. Honest SEO copy — reconcile index.html "No signup required" with auth gate (or document the free-scan caveat).
  6. Minimal Vitest smoke suite for edge functions (accessibility-scan, generate-ai-fix, process-scan-queue).

Next (1–2 quarters)

  1. Submit WP plugin to WordPress.org (per PLUGIN_LISTING_GUIDE.md).
  2. Re-enable Pro tier behind feature flag for non-XCTBL visitors.
  3. Public API metered billing using existing api_keys + api_request_logs.
  4. GitHub Action wrapper around accessibility-scan.
  5. Worker concurrency — multi-instance process-scan-queue or queue partitioning.
  6. Cohort analytics surfacing of widget_analytics_summary.

Long (2026+)

  1. RCKBL universe launch; PTCHBL becomes the "patch" voice in transmedia.
  2. Agentic settler PR system.
  3. Multi-tenant enterprise tier with regulator export.

Prioritization matrix


 LOW EFFORT HIGH EFFORT
HIGH RETURN │ Custom domain │ WP.org listing
 │ Re-enable Pro │ Pro-tier billing
 │ Stripe cleanup │ GitHub Action
 │ SEO copy fix │ Enterprise tier
─────────────┼────────────────────┼──────────────────────
LOW RETURN │ Rename ask-cmptbl │ Widget marketplace UI
 │ Doc archival │ Multi-tenant white-label

14. Risk Analysis

Category Risk Mitigation
Technical Single-worker scan queue saturates Partition/concurrency
Security SSRF regression Keep _shared/url-validator.ts mandatory; add CI test
Security AI quota abuse Auth gates in place; monitor api_request_logs
Legal Overlay-litigation contagion Position as source-fix, not overlay
Brand CMPTBL/PTCHBL drift Canonical rename pass
Operational Solo-founder bus factor This manual + memory index + estate plan
Financial Free-forever has no revenue ceiling Tiered re-enablement
Market Incumbents copy fix-first Ecosystem moat (XCTBL/CMPSBL); narrative
Burnout Multi-property load Auto-blog already automated; batch ops; this manual reduces context-rebuild cost
Dependency Lovable platform lock-in Edge fns are portable Deno; DB is Postgres
Documentation Stale .md files create wrong assumptions §A1 register + archival policy

15. Preservation & Continuity

15.1 For the future operator

  • Identity is centralized in XCTBL. Without XCTBL access, PTCHBL is read-only.
  • The Mars narrative is a brand asset, not decoration. Do not strip it.
  • mem://index.md is the operating doctrine. Read it first.
  • mem://~user carries Kenneth's hard-truth interaction contract.
  • _shared edge utilities (url-validator, auth-helpers, encryption, ai-cache) are load-bearing.
  • "CMPTBL" strings are legacy; modern brand is PTCHBL. CMPSBL is a separate sibling (Substrate). Do not conflate.
  • Stale status docs in repo root lie. Trust this manual and mem:// over them.

15.2 Secrets policy

This document deliberately excludes all credentials. Refer instead to:

  • [SECURE SECRET REFERENCE: Supabase project secrets vault — LOVABLE_API_KEY, GROQ_API_KEY, STRIPE_SECRET_KEY, RESEND_API_KEY, HUGGINGFACE_API_KEY, HYPERBOLIC_API_KEY, TOGETHER_API_KEY, DEEPSEEK_API_KEY, CEREBRAS_API_KEY, SUPABASE_SERVICE_ROLE_KEY, SECRET_KEY]
  • [SECURE SECRET REFERENCE: XCTBL central admin credentials]
  • [SECURE SECRET REFERENCE: Domain registrar account]
  • [SECURE SECRET REFERENCE: GitHub PAT for encrypt-github-token]
  • [ACCESS PROCEDURE: Lovable account recovery via creator email]
  • [DEAD MAN SWITCH: maintained separately in estate channel]

15.3 Recovery procedure (high level)

  1. Recover Lovable account → confirms project ownership.
  2. Recover Supabase project → confirms data + functions.
  3. Recover XCTBL → unlocks PTCHBL session flows.
  4. Re-point DNS for custom domain (if owned).
  5. Rotate all secrets via Lovable Cloud connector flows.
  6. Verify scan worker is dequeuing via process-scan-queue logs.

15.4 Operator runbook — incident response

Incident First check Action
Scans stuck in queue scan_queue rows with status='queued' and old created_at Re-invoke process-scan-queue; if persistent, check cloud_status
AskPTCHBL silent failures ask-cmptbl edge logs Confirm Groq key; AI errors must return HTTP 200 + body — never 5xx
Widget invisible on host site Browser console + widget_health table Site CSS filter — widget already resists, but verify sessionStorage
Quota abuse spike api_request_logs 30-day window Tighten gate or revoke api_keys
Lovable Cloud weirdness cloud_status If not ACTIVE_HEALTHY, pause migrations; wait

16. Strategic Importance Ranking

All scores are founder-facing estimates (1–10). Adjusted from v1 to reflect honest distribution gap.

Dimension Score Reasoning
Ecosystem importance 8 Public face of PromptFluid compliance posture
Monetization potential 6 High if distribution work happens; currently zero
Uniqueness 8 Narrative + fix-first is genuinely rare
Defensibility 5 Scanner commoditizing; ecosystem helps but is itself early
Long-term importance 8 Compliance demand is structural
Emotional importance 9 Mission-aligned; lived-experience founder
Replacement difficulty 8 34 fns + 57 tables + narrative + ecosystem coupling

17. Recommended Next Actions

This week

  • Commit canonical brand string (PTCHBL).
  • Decide: register ptchbl.com or document chosen alternative.
  • Decide: delete or feature-flag dormant Stripe functions.
  • Reconcile index.html SEO copy with actual auth gate.

This month

  • WordPress.org plugin submission.
  • Vitest smoke suite (engine + queue + AI gate).
  • Archive stale .md status docs into /docs/archive/ and add a single live STATE.md that mirrors this manual.
  • TTL audit of ai_fix_cache and scan_cache.

This quarter

  • Re-enable Pro tier behind feature flag.
  • Ship GitHub Action wrapper.
  • Publish public API pricing page.
  • Add cohort dashboards on top of widget_analytics_summary.

Documentation gaps to close

  • Canonical brand guide (single source for PTCHBL strings).
  • Per-function auth posture map (extending supabase/config.toml).
  • Operator runbook expanded into /docs/runbook.md.

18. Canonical Summary

PTCHBL is the patching organ of the PromptFluid body. Where scanners shout, PTCHBL repairs. Where competitors deliver compliance theater, PTCHBL delivers code. Wrapped in a Mars narrative that turns a thankless category into a story worth telling, it sits on top of CMPSBL's substrate, behind XCTBL's identity, and beside its sibling -BL surfaces — built solo, intentionally, by a founder with lived stakes in accessibility.

Today it is a production-quality, pre-revenue, low-distribution platform with high optionality and a real but small footprint (312 scans, 21 widget installs, 6 badges). Tomorrow it can be a category-distinctive compliance fabric — if distribution work follows the build work.

It should continue existing because:

  1. The web's compliance gap is widening, not closing.
  2. No competitor combines fix-first AI + transmedia brand + ecosystem identity.
  3. It is already the most distribution-ready surface in the PromptFluid universe.
  4. The code is rebuildable; the lore and ecosystem coupling are not.

"Ascend your software without touching any of your code."

— Martian Compliance Group, Settlement Year One


19. Appendix A — Audit Artifacts

A1. Doc Drift Register

Repository documents that contradict current product state. Trust this manual + mem://index.md over them; or update/archive them.

File Drift Truth
PROJECT_STATUS.md "Supabase Auth (email/password), Auto-confirm email enabled" XCTBL-only auth; no first-party signup
CHANGELOG.md Last entry v1.3.0 (Jan 2025) version.ts says v2.0.0 Olympus; current era is post-pivot
[source file] BUILD_DATE = 2025-06-20 Manual generated 2026-05-21; date should refresh
TRANSFORMATION_STATUS.md Says Phases 1–4 complete Phase 5 partial per PHASE_5_IN_PROGRESS.md; no Phase 6+ entry
FREEMIUS_ONBOARDING_CMPTBL.md References Freemius onboarding Pricing is free-forever; Freemius not active
PLUGIN_LISTING_GUIDE.md Plugin name "CMPTBL" Should be PTCHBL
public/wordpress-plugin/cmptbl-accessibility-widget.php Filename + likely internal strings still "CMPTBL" PTCHBL canonical
index.html <title>/<meta> "No signup required" Free-scan gate forces XCTBL on 2nd scan
README.md Tagline "Fix Your Site, Not Just Find Issues" + "CMPTBL" branding Current tagline: "From the makers of CMPSBL Substrate. Ascend your software without touching any of your code."
public/affiliate-*.md Affiliate program copy /affiliates route redirects to /
public/clarity-scanner.js Pre-rebrand artifact Canonical widget is public/ptchbl-widget.js

A2. Source Audit Log (sample)

Every major claim in this manual is anchored to at least one of: (a) a file path, (b) a DB query, (c) a mem:// entry, (d) a labeled inference.

Claim Source Type
34 edge functions supabase/functions/ listing Confirmed
57 tables pg_tables count Confirmed
312 scans select count(*) from accessibility_scans 2026-05-21 Confirmed
XCTBL is sole auth mem://integrations/xctbl-auth-configuration + [source file] Confirmed
ask-cmptbl is primary AI grep of [source file] line 44 Confirmed
Stripe dormant supabase/config.toml deploys it; no active pricing UI Inferred
$0 current revenue No active pricing UI; 2 early-adopter rows; no Stripe traffic visible to scanner Inferred — needs creator confirmation
Valuation ranges Standard SaaS asset/MRR multipliers applied speculatively Speculative
WordPress.org status Not located in repo Needs creator confirmation
Custom domain status Project URLs show none configured Confirmed

A3. Open Questions for Creator Confirmation

  1. Is ptchbl.com (or chosen canonical domain) owned?
  2. Has the WP plugin been submitted to WordPress.org? If so, which URL/slug?
  3. Should dormant Stripe code be deleted or feature-flagged?
  4. Is "PTCHBL" the absolute canonical brand string, or is CMPTBL intentionally preserved for SEO continuity at [preview URL withheld]?
  5. What is the true MAU (or MAU proxy) for the scanner? Live DB only has cumulative.
  6. Is there an active estate / dead-man-switch channel referenced in §15.2? If not, this is a continuity risk.
  7. Is RCKBL launch date set?
  8. Are GitHub PR automation and team collaboration UIs production-trusted, or experimental?

A4. Final Quality Self-Assessment

Dimension Score / 10 Notes
Truthfulness 9 Drift flagged; estimates labeled; metrics live
Completeness 8 All major systems covered; some surface depths unverified
Continuity readiness 9 Recovery + runbook + drift register included
Enterprise polish 8 Branded, typographically clean, print-validated
Readability 8 Hierarchy + tables + ASCII diagrams
Technical clarity 8 Architecture + execution flow grounded in code
Strategic clarity 8 Roadmap prioritized; valuation calibrated
Future maintainability 8 §A1 + §A3 give the next operator a starting checklist
Acquisition readiness 7 Honest pre-revenue framing; buyer must accept distribution lift
Archival quality 9 MD + HTML + PDF; secrets excluded by design

Document control

Field Value
Document version 2.0 (audited)
Generated 2026-05-21
Supersedes v1.0 (founder edition)
Author of system Kenneth E. Sweet Jr.
Generator Lovable agent (founder-directed, audit-pass)
Truth posture Grounded · drift flagged · estimates labeled
Secrets included None
Next review Quarterly, or after any major pivot

Kenneth E. Sweet Jr. · Solo Founder · Infrastructure Architect contact via KESJR.com · KESJR.com · Abilene, Texas