⚙️

BAKR Command Centre

Business & Accountants Knowledge Resource — Document Generation & Knowledge Base

1 Source → 2 Expert Papers → 3 Universes & Q Books → 4 BAKR Generation → 5 GuideMe Quiz → 6 Advisor Quiz → 7 Advice │ 8 Marketing 9 Maintenance
⭐ Latest Versions — Current Tool Set The canonical build of each tool with usage instructions · updated 9 July 2026 · these supersede the standard Sourcer and World Builders below
How we work — the standing process (Ken & Fleur):
Per topic world (repeat for every world): ① Write the scope statement — 2–3 sentences with explicit in/out boundaries; use the identical text in every tool → ② Document Sourcer — topic + scope, accept Analyze's category suggestions, read the firm coverage report → ③ Schema Advisor — same topic + scope, BEFORE uploading papers; obey the banner (🛑 none needed / ⚠ consolidate = don't create; a newly written extension auto-pins itself) → ④ Expert Papers Admin — upload the sourced papers → ⑤ World Builder — same topic + scope, pick World Type, resolve ⚠ collision badges, Match Papers, gap-fill, approve. Health rhythm: Library Health after each world batch & monthly (dark inventory) and after any embedding/model change (golden queries) · Schema Advisor 🔍 Audit after any batch of new extensions · Library Cleanup when a sweep is needed. Right now (July 2026): library dedup DONE 9 July (1,164 duplicates quarantined — purge early August; dedup keys live across all three doors: Sourcer, Admin, upload check) → golden queries to confirm retrieval quality post-quarantine → 2,000 tax-paper batch → dark inventory baseline → GIGECONOMY pilot world, then AGEDCARE, then the remaining 18 in roadmap order.
🔍 Document Sourcer v3.5
Use for: sourcing expert papers for every topic — professional, consumer & life. How: enter topic + scope statement → Analyze (accept its category suggestions; it auto-enables consumer regulators/advocacy for consumer topics) → run. The firm discovery pipeline runs automatically each time — read the firm coverage report at the end before reviewing results. v3.5: the library check now matches on the v3.12 dedup keys — rulings by canonical number ("filename-keyed" badge; catches ATO re-downloads whose bytes differ every time) and pages by normalised title (catches Moneysmart/ASIC guides with no ruling ID, even when the library copy has no recorded URL) — and correctly ignores quarantined papers. When: first step of every topic world.
Open Sourcer v3.5 →
🌍 Expert Topic World Builder v3.2
Use for: building topic worlds from sourced papers. How: same topic + scope as the Sourcer → pick World Type (Consumer Money for launch worlds / Professional for tax) → generate structure → resolve ⚠ collision badges (delete/merge duplicates of existing library docs) → Match Papers → gap-fill thin topics → approve. If interrupted at matching: Resume Draft → Match Papers → OK continues with only the unmatched topics. When: second step of every world, straight after the Sourcer.
Open World Builder v3.2 →
🎓 Academy DOC Builder v1.0 NEW
Use for: BAKR Academy CPD curricula — apex-tier structured education for finance professionals (Senior CPD & Graduate Pathway). Derived from World Builder v3.3, so drafts, matching, resume and the verification pipeline all work identically. How: define the curriculum (subject + dictated teaching guidelines + product) → Fable proposes chapters with narrative arcs and richly described modules (150–250 word descriptions, assessable outcomes, level, prerequisites, class 1 authorities, traps, seeds) → curate by voice: 🎤 on every field, 💬 Discuss on every module and chapter (Opus revises the whole proposal; your dictation is kept verbatim as curator notes) → record 📝 Ken's Brief per module (it steers decomposition and generation) → Match Sources (🏛 = class 1 authority, ⚠ = open source; apex rule: no claim rests on class 2 alone) → approve → generate apex DOCs (six-digit 9xxxxx numbers, identity doctrine enforced: interpreters and educators, never commentators — no opinion, ever). Voice: launch Voice-to-Text.app first for local Whisper; falls back to browser speech. When: every Academy CPD topic — pilot is Family Trust Elections (3–5 chapters × 3–5 modules). Drafts save to their own collections; nothing touches world drafts.
Open Academy DOC Builder v1.0 →
📚 Expert Papers Admin V4.3
Use for: uploading expert papers into the library (single or batch). How: drag files in — 6 parallel workers handle hashing, duplicate skip, Phase A extraction, currency cross-ref, Wave 9 extensions and embedding automatically; offline-resilient (pauses and resumes on connection loss). V4.3: the duplicate check now skips by canonical ruling/section ID and by decoration-stripped filename as well as hash and URL — re-dropping an ATO ruling already in the library is refused at the door with a log line naming the existing paper (if yours is a NEWER consolidation, delete the old paper first, then re-upload); the same keys are checked within a batch, so two prints of one ruling can't race past parallel workers. Plus V4.2's stale-handle protections: files read once, dead handles fail fast as "missing", extended retries cap at ~7.5 h. For big overnight batches run caffeinate -dims so the Mac can't sleep. Watch score lines as papers complete; export any record via Library Health → Paper Finder. When: step ④ of every world, after the Schema Advisor and before the World Builder.
Open Expert Papers Admin V4.3 →
🧹 Library Cleanup v1.1
Use for: the one-off fix-first cleanup before the 2,000-paper upload. How: work top-to-bottom — Step 1 dry-run the extension triage (scans all ~4,115, changes nothing), review the shadow-only count, then Execute; Step 2 same rhythm for the retro-gate across ~9,000 papers. Dry runs are always safe and repeatable; executes are reversible. When: now, once; re-run any time the library needs a health sweep.
Open Library Cleanup →
🪞 Library Dedup v1.6.1
Use for: finding and removing duplicate papers across the whole library in one pass (the July sweep found ~1,200 — mostly ATO rulings re-downloaded per topic world with fresh bytes each time, invisible to hash dedup). How: Scan (server-side, safe at 10,000+ papers) → groups arrive tiered and ALL preselected: byte-identical hash · "copy"-filenames · same ruling/section number in every filename · near-identical filenames (site decorations stripped) · junk prints beside a good copy · title-only matches. Scan for the exceptions and UNTICK them: journal columns from different monthly issues, draft vs final rulings, obviously different documents sharing a title. Volume/part-extract groups are guarded and stay unticked automatically. Keeper = highest quality copy (overridable) → Quarantine, not delete: papers vanish from search instantly but stay one-click restorable. 🔑 Backfill dedup keys (run once after any functions redeploy that adds key fields; idempotent) powers the upload-time and Sourcer duplicate checks. Rhythm: scan after any large upload batch; purge quarantine after ~30 days clean (current batch of 1,164 due for purge early August 2026). Purge is the only destructive step (Firestore + PDF + .txt + Pinecone vectors) and needs the v3.12 Cloud Functions.
Open Library Dedup v1.6.1 →
🧬 Schema Advisor v2.2
Use for: creating/checking metadata extension schemas for new domains, and auditing the whole extension library. How: paste a domain description → respect the recommendation banner (🛑 none needed / ⚠ consolidate means don't create) → review → write. 🔍 Audit All Extensions (header button, ~5 min) reports duplicates, shadows and siblings — run it after the cleanup and after any batch of new extensions. New extensions now auto-pin to Wave 9's domain tier on write. Never bulk-publish gap-discovery proposals (token-gated in the Cloud Function).
Open Schema Advisor v2.2 →
🏥 Library Health v1.1
Use for: three plain-English check-ups on the library, plus looking up any paper. How: the page explains itself — a "read me first" box at the top, and every button says what it does before you press it. Paper Finder = look anything up (use daily). Dark Inventory = which papers no world has used yet (run monthly — tells us where to build worlds next). Golden Queries = a self-test proving search still finds our best papers (run after any search-machinery change). Nothing on the page can change or break data.
Open Library Health v1.1 →
☁️ Cloud Functions — Deployed Set v3.12
The deploy checklist, not a link. Server code the tools above depend on: expertPapers.js v3.12 (dedup keys — every paper stores instrument_ids, filename_core and title_core, written at upload and backfilled across all 11,184 papers on 9 July; checkDuplicateExpertPaper refuses same-ruling and same-filename-core uploads; searchV2 rerank now builds its Voyage inputs from the FILTERED candidate list — the v3.11 filter left empty strings for quarantined papers, which 500'd searches in heavily-deduped areas like family trust elections; quarantine-aware retrieval joins; deleteExpertPaper removes Pinecone vectors and needs the PINECONE_API_KEY secret; plus all v3.7–v3.11 fixes) · documentSourcer.js v3.5 (auto-retries "Overloaded" API errors — categories wait and retry instead of failing; a run during heavy load is slower, not half-empty). A delivered file is not a deployed file — after any update, deploy and verify one log line before trusting it. If a tool misbehaves, check this version FIRST.

⚠ THE DEPLOY RULE (Ken & Fleur — we run tools independently, so this always applies): never run bare firebase deploy --only functions — it redeploys every function, including whatever the other person has running (e.g. a paper batch). Always deploy only the functions you changed, and this project uses a named codebase, so every function needs the document-generator: prefix or the CLI says "No function matches":
firebase deploy --only functions:document-generator:searchDocumentSources,functions:document-generator:refineSourceResults (comma-separate every function you changed, each with the prefix). Before confirming, check the list the CLI prints — it must show ONLY your functions. Sourcer set = analyzeSearchCategories, searchDocumentSources, searchATODirect, refineSourceResults, checkTopicCollisions, downloadSourceDocuments, getSourcerRuns, getSourcerRunDetail, deleteSourcerRun. Dedup/quarantine set (v3.12) = scanExpertPapersForDedup, backfillDedupKeys (both need index.js export lines), checkDuplicateExpertPaper, processExpertPaper, deleteExpertPaper, searchExpertPapersV2, designTopicWorld, bespokeRetrievalPipeline. After deploying key-field changes, run 🔑 Backfill in Library Dedup, then verify by dropping a known-duplicate ruling on the Admin — expect "⏭ SKIPPED: ruling/section … already in library".
Plain-English glossary (the words these tools use): Expert paper = a source document we collect (a firm article, ATO page, journal piece) — raw material, never shown to the public. Document = what BAKR writes FROM the papers — what the public actually reads. Topic world = a organised set of ~80 related topics (e.g. aged care) that we turn into documents. Metadata = the detailed catalogue card the system writes about each paper/document so it can be found and used. Extension / knowledge template = extra catalogue-card fields for a subject area (e.g. trusts get "practitioner position spectrum" fields). Created by the Schema Advisor; new ones pin themselves automatically. Embedded = the paper is in the search index and findable. Gated = we deliberately kept a dated paper OUT of search (its record is intact; reversible). Superseded = a newer paper in our library covers the same ground; partially superseded = parts updated, still useful. Dark inventory = papers no world has used yet — waiting stock, not waste. Golden queries = our self-test questions proving search finds the right papers. Dry run = a rehearsal that reports what WOULD happen but changes nothing — always safe to press.
🤝 Client Programs Products clients use directly (or that produce client-facing deliverables) — distinct from internal pipeline tools · added 9 August 2026
💼 BAKR Business V0.1.1 NEW
Use for: turning a client's document pack (financials, returns, GL, deeds) into a group profile — clickable SVG structure map, plain-English commentary per entity, Educate explainer panels, an issues review (Div 7A, UPEs, reconciliation gaps, dormant entities), and an Ask tab grounded in the client's own documents with source references. The "group handbook" for owners, new EAs and bookkeepers. How: select/create a client → drag PDFs in (TFNs redacted in-browser before upload; ABN/ACN protected) → accept extraction proposals into the group model → generate commentary → run rule checks + deep review. Every fact carries a source ref (doc + page); extraction never writes to the model without your acceptance. Tenant-isolated Firestore (australia-southeast1) under firms/CFA — built to split into client/firm editions later. Requires the four bb* Cloud Functions deployed. When: client onboarding, new staff/EA handover, annual refresh at year-end, pre-estate-planning structure review. First shakedown clients: laundry group + Keirran.
Open BAKR Business →
📒 BAKR Books V1
Use for: cash-basis bookkeeping for small clients — complete standalone engine in one file. How: open, select the client set, and work the books; no external dependencies beyond Firebase. When: small-client bookkeeping where a full ledger package is overkill. Status: built, pending Decent Slice shakedown before wider client rollout.
Open BAKR Books →
⚖️ Advisor Tools Client-facing advisory documents — Letters of Advice and Information Memoranda
⚖️ BAKR Advisor Studio NEW
Conversational advisory workspace for Letters of Advice and Information Memoranda. Voice-first collaboration with Opus — enter BAKR DOC numbers, brief Opus on the matter, and generate polished advisory documents with Senior Reviewer cycle, ML links, ⓘ preview buttons, and Further Reading appendix. Both output types from one session. Auto-saves to Firestore. Requires local Whisper for voice (~/BAKR_Tools/start-whisper.sh).
Open Advisor Studio →
📋 Estate Planning Advisor V2
Estate planning advisory tool with voice input, document tray, and save/resume. Upload client financial statements + structure diagrams → Opus pre-infers 30-50 of 89 triggers automatically. Exclusion-only scoring (everything included unless Opus can justify removing it). Extended library discovery + ad-hoc briefing notes for gap topics. Voice conversation with Opus throughout. Four audience-specific documents (client, lawyer, family, executor) with voice-dictated editing. Sessions auto-save to Firestore — resume any client anytime. Requires local Whisper server for voice (~/BAKR_Tools/start-whisper.sh).
Open Estate Planning Advisor →
🧰 Other Recent Tools Often-used tools, reviewed as current — gradually migrating here from the sections below · updated 17 July 2026
🔎 BAKR Library Search v1.0 NEW
Use for: finding any topic in the library fast, and reviewing world coverage for gaps. How: two tabs. Topic Search — type a subject → results grouped by topic world, sorted Ch:T, each row with click-links to the DOC and all eight human variants (AE · DK · FF · ML · CL · SU · RK · UR); missing variants show greyed. Metadata-weighted scoring (keywords/topics/summary rank above title/PH-ref fallback) with a badge per result showing metadata vs name match — a live view of metadata coverage. Discarded docs hidden by default. World Review — every world from bakr_topic_worlds with per-topic DOC + variant chips, coverage counts, and a "show gaps only" filter for identifying topics with no document or missing variants. When: Ken — finding topics on demand; Fleur — gap review after any world generation or variant run.
Open Library Search v1.0 →
🔗 BAKR Link Builder v1.0 NEW
Use for: emailing document links to clients without Outlook mangling the URL (the %27 apostrophe in the storage path breaks pasted links — 403 Permission denied). How: enter DOC numbers → pick the variant (SU default; per-doc dropdown shows only variants that exist) → titles and live token URLs resolve from Firestore → Copy for email puts the linked titles on the clipboard as rich text — paste straight into the Outlook message body and the blue linked titles just appear. Never use Outlook's Insert Hyperlink dialog for storage URLs. "Copy plain URLs" gives title + bare URL lines instead. When: any time a document link goes to a client by email.
Open Link Builder v1.0 →
📜 Paper to DOC Builder v1.0 NEW
Use for: turning up to 5 uploaded papers straight into 5,000-word DOCs with full World-Builder rigour — no world, no matching step. How: enter a group code (≤15 chars, stamped on every DOC; Sheets sourceId P2DOC:CODE) → upload papers → approve topics (⚠ collision badges are advisory only, checked against the library AND concurrently running sessions) → check abstracts → pre-flight → run. Thin topics run first and pause once each for a gap-targeted expert-paper decision (semantic matches, currency-current, credibility ≥ 80); after those the batch is unattended. Pipeline: Fable decomposition → synthesis → Fable draft + expansion (guardrail + voice doctrine, gaps stay silent) → source verify → Opus polish → fidelity → dual Opus review → register review → web-verified currency notes → Fable-xhigh completeness audit (one auto-regeneration, never stops the batch). Every DOC saves the moment it completes (crash-proof; resume from login) with reviewStatus pending — Stage 5 queue: "Approve all 🟢", per-DOC preview/revise chat with a mandatory faithfulness check, regenerate/accept/refuse for audit-blocked. Doc numbers are allocated atomically (bakr_doc_numbers transactions) so concurrent sessions can never clash. Approval writes DOC_REVIEWED to Sheets. When: any time good papers are in hand and you want DOCs without building a world.
Open Paper to DOC Builder v1.0 →
✂️ BAKR Selective Variant Replacer V2.0
Use for: regenerating specific variants on existing documents — all 19 types: Human (AE · CL · DK · FF · ML · SU · RK · UR), AI equivalents, Education (ED · EDAI with audience selector), and Discovery (DS · PG · GM). How: enter DOC numbers → tick the variants to replace → run. Failures are always shown explicitly with error detail — no silent fails; GM failure is always fatal. Concurrent-safe: variantUrls writes use Firestore dot-notation field updates, so two variants finishing at once can't overwrite each other, and runs are fine alongside other sessions. Safari sign-in and long batches are stable (Firebase 10.11.0 + long-polling). When: any time a document's variants need refreshing after a prompt/doctrine upgrade, or a specific variant came out wrong.
Open Replacer →
🩺 Diagnostic Tools Library health, scoring and schema operations — read-only checks and controlled backfills · updated 20 July 2026
🧭 Schema v4.0 Tools v1.0 NEW
Use for: rolling out the Life-Wide schema (v4.0) across the existing library, and re-checking library health any time after. How: three steps, in order, top to bottom. Step 1 — Census: read-only, changes nothing; counts every active paper by category, group, durability, authority and health flags (papers in 'other', salvaged extractions, missing situation descriptors, not embedded). Download the JSON every run and keep it — it is the before/after evidence. Step 2 — Recompute Scores: no AI calls; re-runs credibility + date scoring from stored metadata with the v4.0 tables and writes each paper's category group. ALWAYS dry-run first and read the before→after examples (Moneysmart / Choice / university / CLC papers should rise; tax papers unchanged) before "Run all batches" — it loops the whole library in 400s, is stoppable, and resumes automatically if interrupted. Step 3 — Reclassify: one small Sonnet call per paper (stored summaries only, ~cents each) moves papers out of 'other' and fixes mushy durability typing; dry-run shows every proposed move with reasoning; category changes keep the previous category on the paper so they are reversible. When: the v4.0 rollout now; then re-run the Census after any large upload batch as a health check. Safe to leave mid-way — every step resumes.
Open Schema v4.0 Tools →
1 Document Sourcing Pipeline entry point — find and stage quality source documents
🔍 Document Sourcer New
AI-powered document discovery across 8 source categories — ATO rulings, legislation, professional bodies, specialist firms, case law, academic, and government reviews. Opus 4.6 assesses advisory value, dual ATO search for complete ruling coverage. Filter, expand, and reassess results. Downloads PDFs and converts web pages to PDF for staging.
Open Sourcer →
🔍 Document Sourcer — Life & Finance Life & Finance
Life-primary fork of the Sourcer for holistic and developmental topics (child development, health, psychology, relationships) that also carry financial aspects. Keeps every finance category untouched and adds five life categories — Peer-Reviewed Research, Child Development & Education, Health & Wellbeing, Psychology & Behaviour, and Government & Community Services — off by default, tick on for life topics. Judges each topic's primary domain instead of defaulting to finance.
Open Life & Finance Sourcer →
2 Expert Papers Knowledge base — upload, extract metadata, search
📤 Expert Papers Admin V4.3
Upload and process expert papers. Opus extracts 20+ metadata field groups. Wave 9 domain extensions run automatically. Re-extract tab for backfilling existing papers.
Open Admin →
🧬 Schema Advisor V2.0
Define domain schema extensions for Wave 9 extraction. Paste a topic description (or upload a sample PDF) and Opus proposes fields — including universal intelligence fields (situation_triggers, user_types, business_types, urgency_signals) that power the unknown-unknowns discovery engine. Write to Firestore in one click.
Open Advisor →
🏥 Library Health V1.0
Audit the expert-papers library for metadata coverage, gaps, and outdated extractions. Dashboard shows overall health (green/amber/red); coverage matrix surfaces which schemas have the biggest gaps; papers view filters by health tier. Read-only audit — Session 4B will add one-click remediation.
Open Library Health →
🔎 Expert Papers Search
Search the knowledge base by topic, keyword, author, legislation, or ruling. View full metadata, summaries, examples. Download original PDFs or extracted text.
Open Search →
🌐 Subject Matter Universe Builder V2
Build subject matter universes with three-tier source matching. Integrates expert papers, V9 documents, and LawCyborg reviews into a unified knowledge pipeline.
Open Builder →
3 Topic Universes & Q Books Build structured topic hierarchies and adaptive books
🔬 Expert Paper Diagnostic WAVE EP
Investigative tool for designing the production extension-tagging pipeline. Runs Wave EP — editorial-judgment tagging via Opus — on any paper from the library and shows the full diagnostic: candidates, ratings, extracted fields, and gap proposals. Used to refine prompts and identify missing extensions before the production rebuild.
Open Diagnostic →
🌐 Topic World Builder V2 V2
Extension-aware world builder on the Intelligence Layer. Opus designs right-sized topic structures from your live library (dual retrieval — extension-filtered + semantic), refine conversationally, then per-topic enrich + source-paper selection with frozen provenance for QC. Replaces the original builder.
Open Builder →
🌍 Expert Topic World Builder NEW
Build document worlds from expert papers. Opus analyses your library, proposes chapters and topics with paper assignments, generates DOCs using only expert paper facts. Optional Opus review and LawCyborg integration.
Open Builder →
🌍 Expert Topic World Builder — Life & Finance Life & Finance
Life-primary fork of the World Builder for holistic/developmental subjects that still carry financial aspects. Anchors each topic in its true construct (developmental, psychological, health, practical or financial) rather than defaulting to money, and its web-search query builder surfaces peer-reviewed research and recognised experts for life topics instead of discarding academic sources. Use for mini-series subjects like "Habits of Highly Effective Children."
Open Life & Finance Builder →
📋 Document Builder NEW
Three modes: Generate — upload old docs, drafts, or transcripts and produce world-best documents sourced from expert papers. Search — find papers across 20+ metadata dimensions with gap analysis. Scout — discover reputable web sources for new topics.
Open Builder →
📚 Source-to-DOCs Builder NEW
Upload up to 5 expert papers (PDFs) — Opus extracts up to 25 topics suitable for individual 5,000-word DOCs. You approve which topics, preview abstracts, then the full six-stage QA pipeline generates each DOC. Provided papers are the primary source; the expert papers library is consulted only with your per-topic approval. No facts from outside these two pools.
Open Builder →
🌌 Topic Universe Builder V2
Generate comprehensive topic universes with Opus. Smart planning suggests topic counts per chapter based on complexity — review and adjust before generation.
Open Builder →
📖 Topic & Chapter Universe Builder
Build topic universes AND generate full V9 chapter documents (~8,000 words each). Export creates structured JSON with quizzes and search index.
Open Builder →
📚 Topic Universe with Book Export
Topic universe generation with full book export. Builds universes and exports as structured book format.
Open Builder →
🎯 Topic Limiter Builder
Build constrained Topic Universes with specific topic counts per chapter. AI selects the most essential topics within your limits.
Open Builder →
⬆️ Topic Universe Uploader
Upload generated topic universes to Firebase. Validates structure and stores for use by downstream systems.
Open Uploader →
📚 Q Book Creator New
Build Q Books from existing Firebase documents. Search by subject, select documents, organize into chapters, generate Q Book JSON with quiz questions. Includes gap analysis and V9 prompt generation.
Open Creator →
🔨 Q Book Builder
Convert Q Book JSON into interactive HTML books. Master quiz for personalisation, chapter navigation, floating buttons, responsive design. Pure client-side rendering.
Open Builder →
🌐 Q Universe Creator
Complete content generation pipeline for NEW topics. Analyse any Australian financial topic, generate adaptive books, quiz packages, and V9 documents. Saves to Firebase with full variant generation.
Open Creator →
📝 Placeholder DOC Generator V2
Bulk generate V9 documents for placeholder topics. Topic selection, parallel processing, and retry for filling coverage gaps.
Open Generator →
4 BAKR Document Generation Generate educational documents across 19 variants — Human · AI · Education · Discovery
🔍 BAKr Document Search NEW
Search the generated BAKr document library by topic, situation, or query. Opus understands the query, scores candidates against title / description / triggers / humanMoments, ranks results with relevance tiers, and offers full DS preview plus variant downloads (AE · CL · DK · FF · ML · SU · RK · UR · AI equivalents). Voice input supported. Selected-tray export builds a Letter of Advice from chosen documents. Reads BAKR_documents_with_refs collection.
Open Search →
⚡ BAKR Queue Processor Core
Submit and manage multi-variant generation jobs. Queue-based processing with status tracking, retry, and recovery for stale jobs.
Open Processor →
📄 BAKR DOC Creator with Refs V2.0
Generate DOC documents from authoritative reference PDFs — facts sourced exclusively from uploaded PDFs, not Claude's training knowledge. Upload up to 4 reference PDFs and batch-process instruction .md files. Includes LawCyborg fact-check review step before finalising. Metadata handled separately by the Metadata Regenerator.
Open Creator →
🎧 Budget Briefings Audio Player NEW
Hands-free voice-controlled audio player for the 2026 Budget series. Plays through 73 Missing Lessons across Wills, CGT, Bucket Companies, and Discretionary Trust Losses. Voice commands ("play", "skip", "pause", "resume", "stop") for driving use. Auto-plays after 10s silence. Matilda Premium voice preferred. Glossary terms read inline with their definitions. Wake Lock keeps screen on. Resume from last session.
Open Player →
🔥 BAKR Variant Forge
Generate specific BAKR variants for individual topics. Covers all human variants (AE, DK, FF, ML, CL, SU, RK, UR). Use Batch Variant Creator v2 for Education (ED · EDAI) and Discovery (DS · PG · GM).
Open Forge →
🌐 BAKR Batch DOC WEB Generator
Batch generate DOC and WEB format variants across multiple topics. Parallel processing with progress tracking.
Open Generator →
🔄 BAKR Batch V9 to WEB Opus
Convert V9 documents to WEB format using Opus. Batch processing with quality assurance.
Open Converter →
🔁 BAKR Q Variant Creator
Create Q-series variants — quiz-enhanced versions of BAKR documents with integrated questions.
Open Creator →
📊 BAKR Q DOC Converter
Convert standard BAKR documents to Q DOC format with embedded quiz content.
Open Converter →
🔄 BAKR Q DOC Updater
Update existing Q DOC documents with refreshed content or quiz data.
Open Updater →
🌐 BAKR Q DOC WebSearch Generator
Generate Q DOC documents enriched with web search data for current information.
Open Generator →
🔎 BAKR Q Source Analyser
Analyse source quality and coverage for Q DOC generation. Identifies gaps and source authority.
Open Analyser →
📚 BAKR Q Multi DOC Source Analyser
Multi-document source analysis — cross-reference coverage across multiple Q DOCs for a subject area.
Open Analyser →
📖 BAKR Q V9 to DOC with WEB & Opus
Convert V9 documents to full DOC format with web enrichment using Opus.
Open Converter →
✅ BAKR FactCheck DOC WebSearch
Fact-check generated BAKR documents against current web sources. Flags outdated or incorrect content.
Open FactChecker →
📂 BAKR Document Library Core
Browse, search, and manage all generated BAKR documents. View by topic, variant type, and generation status.
Open Library →
🔍 BAKR Estate Planning Discovery
Specialised discovery tool for estate planning topics. Searches and maps estate planning documents.
Open Discovery →
🔀 BAKR Batch Transformer
Batch transform documents between formats. Bulk conversion operations across the document library.
Open Transformer →
🔁 BAKR Batch Variant Creator V2.1
Full overnight batch pipeline — generates all 19 variants (AE, CL, DK, FF, ML, SU, RK, UR + AI equivalents + ED, EDAI + DS, PG, GM) for new documents. Queue-based with real-time status, audience selector for ED/EDAI, and storage scan before submission.
Open Creator →
➕ BAKR Variant Adder New
Add Discovery (DS · PG · GM) and Education (ED · EDAI) variants to existing documents without touching human or AI variants. Audience selector for ED/EDAI. Runs independently of the Batch Creator.
Open Adder →
📦 BAKR Q Batch Processor DOC WEB
Batch process Q-series documents to DOC and WEB formats. Parallel processing pipeline.
Open Processor →
5 GuideMe Quiz System Interactive discovery quiz — 196 questions, personalised reports
🛠️ Quiz Builder
Build and manage quiz question pools. Edit questions, configure branching logic, and manage the 196-question discovery pool including state/territory questions.
Open Builder →
🎯 Quiz Engine (Admin Preview)
Preview the live quiz engine. Test question flow, scoring, and report generation before publishing.
Open Preview →
🧩 Adaptive Quiz Builder
Build adaptive quiz sequences that adjust questions based on previous answers. AI-powered question generation and confidence checking.
Open Builder →
🏷️ Batch Categorise V2
Bulk categorise documents into topic groups for the quiz system. Maps BAKR documents to quiz categories.
Open Tool →
📊 Topic Request Analyser
Analyse incoming topic requests to determine quiz coverage and identify gaps in the question pool.
Open Analyser →
6 Advisor Quiz System AI-powered professional advisory reports — opt-out trigger library · four-document output
➕ Add BAKR Docs to Estate Advisor New
Type a BAKR document number → it looks up the record, finds the variant files in the same folder automatically, and drafts a one-line hook with Sonnet (fully editable). Creates the estate-advisor library entry in one step, ready to map. Run this before the Trigger Mapper when adding new documents to the advisor.
Open Add Docs →
🗺️ Advisor Quiz Trigger Mapper New
Maintenance tool for the advisor quiz trigger library. Maps new documents to existing triggers, extends the vocabulary when new topics emerge, and shows coverage across all 89 triggers. Run after each batch of ~100 new documents. Four tabs: Map New, Review Mappings, Trigger Library, Extend Vocabulary.
Open Trigger Mapper →
🎯 Advisor Quiz Library Curator New
Opus reviews all estate planning documents and sorts them into three groups: confirmed for the advisor quiz, doubtful (needs your review), and deferred to a different quiz. Run after each batch of new documents. Shows curation status — approved count, doubtful items, and last run date. The advisor quiz shows a live banner linking here when the library needs attention.
Open Curator →
🎯 Estate Planning Discovery Quiz (Public)
Consumer-facing estate planning discovery quiz. Shorter flow (~22 questions), Opus opt-in scoring, tiered results, compiled report. Lives at document-generator-system.web.app/guideme/ — kept intact as the public-facing version.
Open Public Quiz →
📖 Quiz System Manual New
Comprehensive documentation for the advisor quiz system — written for Fleur and future collaborators. Covers the opt-out trigger architecture, how to build a new quiz from scratch, the trigger generator process, the four-document framework, the "looks human" standard, and the decision log. Essential reading before building a new quiz.
Download Manual →
7 Letters of Advice Client-specific advisory output
🔗 ML Link Builder NEW
Type a topic / reference ID and get the ready-to-paste ML hyperlink (the full bakr-ml anchor with its Firebase token) for insertion into a client brief or Letter of Advice. Paste a new Firebase URL to auto-extract its ID and title and save it for next time. Seeded with 78 ML documents; saved links persist in the browser and can be exported to JSON.
Open Link Builder →
📜 Letter of Advice Generator V2
Earlier iteration — voice-first LOA tool with conversational briefing, pre-inference, and topic curation. Superseded by BAKR Advisor Studio (see Advisor Tools section at the top).
Open LOA V2 →
✉️ Letter of Advice Generator (V1)
Original form-based LOA generator. 8-phase workflow with direct API calls. Being superseded by V2 above.
Open V1 →
🧠 Knowledge Review Tool
Review and verify knowledge base content for accuracy before use in advisory outputs.
Open Review →
💰 Budget Studio
Client budget analysis and modelling tool. Supports advisory planning with financial projections.
Open Studio →
8 Marketing & Campaigns Email campaigns, signup management, analytics
📧 Email Signup Manager
Manage email signups from quizzes. View subscriber lists and configure delivery.
Open Manager →
🎯 Targeted Email Campaigns
Create and manage targeted email campaigns with personalised sequences.
Open Campaigns →
📊 Quiz Analytics Planned
View quiz completion rates, popular topics, and user journey insights.
Coming Soon
9 Maintenance & Utilities Document management, auditing, repair tools
📋 BAKR Document Manager
Manage, organise, and update documents in the BAKR library. Bulk operations and status tracking.
Open Manager →
🩺 BAKR Document Triage New
Find older documents likely to be inaccurate or incomplete without rerunning them. Tier 0 reads metadata only (free); promote doubtful docs to Tier 1 (cheap error scan) and Tier 2 (source-grounded check). Soft-discard keeps files but flags the doc so nothing downstream picks it up again.
Open Triage →
📝 BAKR Document Editor
Edit individual BAKR documents. Make corrections, update content, and adjust formatting.
Open Editor →
🔍 BAKR Document Review Tool
Quality review tool for generated documents. Flag issues, approve content, track review status.
Open Review →
🏷️ BAKR Document Renamer
Batch rename documents in the library. Standardise naming conventions across the collection.
Open Renamer →
🔧 BAKR Document Repair Tool
Repair corrupted or incomplete documents. Fix metadata, regenerate missing fields, recover content.
Open Repair →
🔗 BAKR Document Reconciliation
Reconcile documents across Firestore and Storage. Identify orphaned records, missing files, and inconsistencies.
Open Reconciliation →
🗺️ Advisor Quiz Trigger Mapper New
Maps new estate planning documents to the advisor quiz trigger library. Run after each batch of document generation to ensure new docs appear in advisor quiz results. Shows unmapped count, triggers coverage stats, and full trigger vocabulary.
Open Mapper →
🔬 BAKR Metadata Audit
Audit metadata quality across the document library. Identify incomplete, inconsistent, or outdated metadata.
Open Audit →
♻️ BAKR Metadata Regenerator
Regenerate metadata for existing documents using current extraction models. Refresh outdated metadata.
Open Regenerator →
🔄 BAKR Batch Reprocessor
Reprocess batches of documents through the generation pipeline. Useful after model or template upgrades.
Open Reprocessor →
🧹 BAKR Variant Cleanup
Clean up orphaned, duplicate, or outdated variant documents. Reclaim storage and maintain library hygiene.
Open Cleanup →
🌙 BAKR Overnight Batch Review
Review results of overnight batch processing jobs. Check completion status, errors, and output quality.
Open Review →
📊 BAKR Batch DOC Review
Review batch-generated documents. Quality check, approve or reject, and flag for revision.
Open Review →
🛠️ BAKR Document Tools
Miscellaneous document utility functions — format conversion, export, and bulk operations.
Open Tools →
🗑️ BAKR Job Queue Cleanup
Delete all documents from the BAKR_job_queue Firestore collection. Use when stale or orphaned jobs have accumulated. Counts jobs first, then batch-deletes with progress tracking. Run only when no active batch processing is in progress.
Open Cleanup →
10 Legacy / Superseded Older tools — kept for reference, use current versions above
📖 Book Builder (Legacy)
Original adaptive book builder. Superseded by Q Book Builder.
Open →
🌌 Topic Universe Builder v1
Original topic universe generator. Superseded by v2.
Open →
🔧 Quiz Generator (Legacy)
Original quiz generator. Superseded by Q Book system.
Open →
📂 Document Library (Old)
Original document library interface. Superseded by BAKR Document Library.
Open →
📖 BAKR Book Builder (Legacy)
Original BAKR book builder. Superseded by Q Book system.
Open →

☁️ Cloud Functions — document-generator-system — 37 exports

Document Sourcer documentSourcer.js
  • searchDocumentSources
  • searchATODirect
  • refineSourceResults
  • downloadSourceDocuments
  • getSourcerRuns
  • getSourcerRunDetail
  • deleteSourcerRun
Expert Papers expertPapers.js
  • processExpertPaper
  • searchExpertPapers
  • getPaperContent
  • updatePaperStatus
  • getCategoryStats
  • checkDuplicateExpertPaper
  • deleteExpertPaper
  • scoutReviewSchema
BAKR Queue bakr-queue-functions.js
  • processBAKRJob
  • submitBAKRJob
  • getBAKRJobStatus
  • cancelAllBAKRJobs
  • retryBAKRVariants
  • recoverStaleBAKRJobs
  • quizOpusScore
  • mapNewDocuments
Standalone index.js
  • extractPDFText
  • generateDocument
  • guideMeAI