← Your Files (uploads & deliverables) · source: dunchau-report-engines-handoff/README.md

aeoauditefficiencyfunnellegalresearchscriptstemplateswebsiteyour-files

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)

Built by hand (documents, not code)

NOT built (planned or discussed only)


Scoring methodology — AI Visibility (exact, from score.py and spec §1)

Report format rules (owner-directed, mandatory)

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/)

Sample companies and test data (in 06/)

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)

Known errors, limitations, manual processes

  1. Visibility measurement is Mode E (evidence-layer) — public-evidence proxies, not live in-assistant answers. Reports must disclose this.
  2. Crawl → score handoff is manual (operator transcribes D/E checks).
  3. Free runs score 25 of the model's 45 checks; unmeasured points are disclosed, per the honesty rules.
  4. All report layout work (charts, pagination, Calibri pass) is done by hand-run build scripts per report folder — there is no shared renderer.
  5. 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.
  6. 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.
  7. 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

Owner's standing instructions to any successor developer

  1. Never claim a build, submission, audit, or score is done/running/real until verified the way the owner would see it.
  2. Read the actual source document before quoting any number, title, or price from it. Never guess a document detail.
  3. Website changes go in a batch file; nothing deploys without the owner's release.
  4. Research-first: copy what proven operators already do; build completely; suggestions come after the build.
  5. Every new report gets a Reports Library index row at creation.