← Your Files (uploads & deliverables) · source: dunchau-report-engines-handoff/README.md
DunChau.com — Report-Generation Engines: Technical & Operational Handoff
Owner: Dun Chau (brand: Dun Chau; company shell: Chau and Company LLC) Prepared: 2026-11-24 by Simon, Dun's Muse assistant Purpose: preserve all existing work on the report-generation engines for Dun's three services and provide the complete basis for developing a unified, scalable report-generation platform.
SECURITY NOTE: This package contains NO passwords, API keys, access tokens, or credentials of any kind. Where an integration needs a key, the requirement is documented — the key itself is not included and must be provisioned by the owner.
The three services
| # | Service | What the engine produces |
|---|---|---|
| 1 | AI Visibility (AEO) | AI Visibility Audit — full report + 3-page summary + 1-page summary |
| 2 | Business Efficiency | Efficiency Audit — full report built on a 10-category scorecard |
| 3 | AI Risk Shield — "AI Use and Compliance" | Risk Snapshot / Full Assessment — 10-category Covered/Partial/Exposed scorecard |
AI Risk Shield is positioned as the AI-use-and-compliance layer ON TOP of a client's existing security/HIPAA compliance work. It is NOT a security audit.
Folder structure
01-source-code/ Working code that exists today (see status)
02-specs-and-master-instructions/ Engine spec, report-generation prompts, design research
03-questionnaires/ Screener, final questionnaires, employee survey, free forms
04-templates-and-report-builders/ Deliverable templates + every built report (.docx/.pdf + build scripts)
05-reference-reports/ The five reference reports named by the owner
06-sample-companies-and-test-data/ Audit source data and evidence runs
07-reports-library/ The catalog of record (INDEX.md) and filing rules
08-research-and-service-models/ Full research trees for Risk Shield, Efficiency, and the AEO funnel
What has ACTUALLY been built and tested vs. planned — read this first
Built and verified (2026-11-23)
01-source-code/audit-engine/crawl.py(388 lines, Python standard library only; usesrequestsif installed). Website technical checker: HTTP/HTTPS status, robots.txt verdicts per AI bot (GPTBot, ClaudeBot, PerplexityBot, Google-Extended), a live GPTBot user-agent fetch test, sitemap detection, JSON-LD schema parsing (incl. LocalBusiness field completeness), phone/address as real page text, service-page candidates, FAQ presence. Every check returns{status, evidence}. Verified live against foaminggraphics.com (results recorded in the module README).01-source-code/audit-engine/score.py(139 lines). Scoring engine — see "Scoring methodology" below. Verified: running it on the included Foaming Graphics checks file reproduces the published report exactly (Foundation 31/100, Overall 19, Invisible).foaming-graphics-checks.json— worked sample in scoring format (25 checks actually performed in the free run).
Built by hand (documents, not code)
- All reports in
04/and05/were produced by the assistant through document tooling, following the format model (the 23-page plumbing report). Python build scripts inside the report folders regenerate the .docx files; PDFs were produced via LibreOffice conversion and verified by page count. - The audit "engine" as an end-to-end automated pipeline does not exist yet. See the module inventory.
NOT built (planned or discussed only)
- Intake/job-record module, Google Places puller, PageSpeed hookup, Yelp lookup, evidence-run worksheet as code, listing-check worksheets, report renderer/delivery module, live AI prompt harness (Mode L), 90-day re-test automation. Details in the module inventory below.
Scoring methodology — AI Visibility (exact, from score.py and spec §1)
- Foundation score /100, six areas with fixed maxima: A Google Business Profile /20 · B Listings & directories /20 · C Reviews /15 · D Website technical /15 · E Website content /15 · F Authority & mentions /15.
- The full model has 45 checks (spec §10). The free practice run scored the 25 checks actually performed; checks labelled "Not measured"/"N/A" keep their points visible and the unmeasured total is disclosed in the output (spec §16 honesty rules G2/G4) — a score is never silently compared against a full-points run.
- Visibility Index = your AI mention rate ÷ the leading competitor's mention rate × 100, capped at 100 (or supplied directly).
- Overall AI Visibility Score = Visibility × 0.4 + Foundation × 0.6, rounded half up.
- Rating bands: 0–24 Invisible · 25–49 Weak · 50–74 Competitive · 75–100 Leading.
- Test protocol behind the numbers: a standard set of generic buyer questions ("best [service] in [city]") plus name/direct questions, run across AI engines (ChatGPT, Gemini, Perplexity + one), recording whether the business is named, how it is mentioned (§4.4), and where it loses (§4.5). The paid Starter baseline is 20 prompts × 4 engines.
Report format rules (owner-directed, mandatory)
- Mirror the 23-page sample model (
05-reference-reports/01-...pdf) section by section. §4 "AI Visibility Results", §4.4 "How Are You Mentioned", §4.5 "Where You Lose the Most" — titles verified from the document; never guess them. - Font: Calibri throughout, including tables. Action column widest. Paginate; tight white space; graphics show data only.
- Every audit yields TWO documents: full report (paid deliverable) and a summary (free piece). Summary = exactly 3 pages. The 1-page summary format (approved 2026-11-24) is the standard free handout: score headline, KPI tiles, who gets named instead, top 3 problems, foundation breakdown, 3 fastest fixes, method/honesty note — verified to 1 page.
- Banner on Visibility summaries: "AI Visibility (AEO) Audit Report — Summary."
- Report IDs:
DC-YYYY-MMDD-XX(e.g. DC-2026-1123-FG, DC-2026-1123-PP).
Efficiency scoring
No single score. A 10-category scorecard; the 10 category names are
identical across the questionnaire, the report, and the solution map (hard
rule). Categories are rated with full findings or partial. Model:
04-templates-and-report-builders/03-onsite-and-report-model.md and the
08-research-and-service-models/efficiency-audit/ tree.
Risk Shield scoring
10 categories rated Covered / Partially covered / Exposed. The final
questionnaire (03-questionnaires/02d-final-ai-use-questionnaire.md) also
produces a /100 score. Standards alignment: NIST AI RMF is the primary
frame (9 of 10 categories map Exact/Strong; mapping in
08-research-and-service-models/ai-risk-shield/07-standards-alignment.md).
Approved language: "readiness aligned to NIST AI RMF." NEVER "NIST
certified"; never legal advice; never a compliance certification.
Questionnaires (in 03-questionnaires/)
- Risk Shield screener (
19-screener.md): 10 questions, <5 minutes, qualification gate only — asks NO audit questions. - Risk Shield final questionnaire v1.0 (
02d-...md): 34 owner questions in 7 sections + employee survey, scored /100. Merged from the top three commercial security assessments and rewritten AI-use-first. Owner-directed specifics: data question wording "Select the type of customer data below that applies to you" with an Other-reveals-text field; headcount split into separate employees/contractors number fields; tool inventory order used → allowed → not allowed → planning → biggest concern; starred basic questions pivot deeper when the client has no existing compliance. - Insurance question — final approved wording, use verbatim; never say "cyber insurance": "Does your insurance or a client contract require you to document how you use AI?" (Yes by a date / Yes, no date / No / Not applicable.) Appears in the screener and as Q6.3 in the final questionnaire.
- Employee survey v2 (
23-employee-survey-v2-habits.md): anonymous; innocuous personal-use habit questions are deliberately intermixed with work/data questions because direct questions get lied to; includes a "what do you use AI for" checklist and photo/background-exposure items. - Efficiency questionnaire + free form (14 questions live; the revenue question was removed by owner direction).
- Superseded drafts (
02-...,02c-...) are included for history and are labelled as such in03/and08/.
Sample companies and test data (in 06/)
- Fictional (format tests): SunPeak Air & Heat (HVAC, Orlando — used for BOTH Efficiency and Risk Shield), BrightPath Dental Studio (Winter Park), Harbor & Quinn LLP (PI law firm, Tampa), and the unnamed plumbing company in the 23-page model report.
- Real businesses, private practice runs, NOT contacted, NOT clients:
Foaming Graphics (Norcross, GA — 19/100 Invisible, ID DC-2026-1123-FG) and
Payas, Payas & Payas, LLP (Orlando, FL — 43/100 Weak, ID DC-2026-1123-PP).
Source/evidence data for both is in
06/. Never describe either as a client. - No client deliverables exist yet. No report has been sold.
Reports Library (07/)
INDEX.md is the catalog of record (9 documents at last update, plus the
two 2026-11-24 one-pagers filed in 04/). Standing rule: every new report
gets an index row at creation with the controlled vocabulary in that file;
superseded reports keep their row with a note; never silently delete a row.
Module inventory (AEO engine spec: 02-specs-and-master-instructions/aeo-audit-engine-spec.md, 511 lines, 9 v1 modules)
| Module | Status |
|---|---|
| 1. Job record + intake checklist (form → stored job) | Not built. The FormSubmit alert email is the only lead record. |
2. Website crawler (crawl.py) |
Built & verified. |
| 3. Google Places API profile puller | Not built. Needs a Google Places API key (not in this package). |
| 4. PageSpeed API hookup | Not built. |
| 5. Yelp API lookup | Not built. |
| 6. Evidence-run worksheet (Mode E grid, as code) | Not built as code. Runs done by hand; worksheet design exists. |
| 7. Listing-check worksheets (Bing/Apple/BBB/Facebook/directories) | Not built. Human reads today. |
8. Scoring engine (score.py) |
Built & verified. |
| 9. Report renderer + delivery (.docx from store, email) | Not built. Reports produced via document tooling + build scripts. |
| Phase 2: live prompt harness (Mode L, Perplexity API first) | Not started. Until it exists, visibility results are Mode E (evidence-layer) and reports must say so. |
| Phase 3: review-history depth, 90-day re-test automation | Not started. |
Also not wired: crawl.py output does not yet feed score.py
automatically — the operator reads crawl JSON and writes the D/E-area
checks into a checks file manually.
Efficiency and Risk Shield have no code at all — questionnaires, scoring rubrics, templates, and hand-built samples only.
How to run and test what exists
# Crawler (Python 3, standard library only)
python3 01-source-code/audit-engine/crawl.py https://example.com
python3 01-source-code/audit-engine/crawl.py https://example.com --out result.json
# Scoring engine — regression test (must reproduce Foundation 31, Overall 19, Invisible)
python3 01-source-code/audit-engine/score.py \
01-source-code/audit-engine/foaming-graphics-checks.json --visibility-index 0
python3 01-source-code/audit-engine/score.py checks.json \
--mention-rate 9 --leader-mention-rate 41
Report .docx files regenerate via the build_*.py scripts in each
04-templates-and-report-builders/<report>/ folder; PDFs via LibreOffice
headless conversion; verify page counts after every build (summaries:
exactly 3 pages; one-pagers: exactly 1 page).
Deployment (website, for context)
The website (dunchau.com) is a single static HTML file hosted on Cloudflare Pages (project "dunchau"); thedunchau.com 301-redirects to it. UPDATE 2026-11-24 (after this package was first zipped): at the owner's direction the root now serves a splash page only (headshot + name, no services or links); the full site file is published at a secret path, https://dunchau.com/full-a6bba43514/ — the source file itself is unchanged. Free-audit forms use FormSubmit alert emails to the assistant's inbox. Known defect: the original form was a static mockup that generated scores from the business name and stored nothing; FormSubmit wiring was activated 2026-11-23 and Efficiency/Risk Shield test submissions arrived, but a Payas Visibility submission has never been verified landed — end-to-end delivery remains unproven. Website edits are collected in batch files and deployed only on the owner's release (batch rule).
Dependencies and costs (current)
- Python 3 standard library (crawler/scorer) — $0.
requestsoptional. - LibreOffice (docx→PDF) — $0. Document tooling via the assistant.
- Cloudflare Pages hosting — $0. Domains dunchau.com + thedunchau.com — ~$11.17/yr each, auto-renew on.
- FormSubmit form alerts — free tier.
- Required but not provisioned: Google Places API key (pay-as-you-go), PageSpeed API (free with key), Yelp API (free tier available), Perplexity API (paid) for the Phase 2 live prompt harness.
- No database exists yet. The spec's job record/store is unbuilt; today's
"database" is the Reports Library index (Markdown) + the files in
06/.
Known errors, limitations, manual processes
- Visibility measurement is Mode E (evidence-layer) — public-evidence proxies, not live in-assistant answers. Reports must disclose this.
- Crawl → score handoff is manual (operator transcribes D/E checks).
- Free runs score 25 of the model's 45 checks; unmeasured points are disclosed, per the honesty rules.
- All report layout work (charts, pagination, Calibri pass) is done by hand-run build scripts per report folder — there is no shared renderer.
- Risk Shield sample reports carry a
[STANDARDS ALIGNMENT — PLACEHOLDER]in §8; the approved NIST wording (07-standards-alignment.md §4) is dropped in only on the owner's instruction. - Four Risk Shield commercial values are carried at draft values pending owner confirmation: Snapshot headcount ceiling (15), Stay Shielded initial term (12 months), implementation floor ($2,500), and a tension between the 20+-staff guarantee band and the ≤15 Snapshot sweet spot.
- The Risk Shield train-and-certify pricing bundle is intentionally NOT in this package — it is held by the owner and unreleased.
Intellectual property / licensing / third-party notes
- All code in
01/is original, owner-commissioned, Python-standard-library only — no third-party code licenses apply. - The 23-page model report was supplied by the owner as the format model.
- The AEO sales model replicates AEO Engine's PUBLIC funnel methodology
(documented in
08-research-and-service-models/aeo-funnel-replica/) — methodology study only; no AEO Engine code, copy, or assets are included or used. - NIST AI RMF is a public U.S. government framework; alignment language must never claim certification. Competitor questionnaires were studied for structure; the shipped questionnaires are original rewrites.
- "AI Risk Shield" name scan (in
08/.../10-trademark-scan-ai-risk-shield.md): MODERATE risk — the name is used as a service name under the Dun Chau brand, never as a standalone brand; attorney clearance was recommended before major spend. - Incident stories used in training/marketing are documented real cases
with sources (files 22/25/26 in
08/.../ai-risk-shield/); one item is an allegation (note-taker lawsuit) and must always be labelled as such.
Owner's standing instructions to any successor developer
- Never claim a build, submission, audit, or score is done/running/real until verified the way the owner would see it.
- Read the actual source document before quoting any number, title, or price from it. Never guess a document detail.
- Website changes go in a batch file; nothing deploys without the owner's release.
- Research-first: copy what proven operators already do; build completely; suggestions come after the build.
- Every new report gets a Reports Library index row at creation.