Business & Accountants Knowledge Resource — Document Generation & Knowledge Base
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.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".document-generator-system — 37 exportsdocumentSourcer.jsexpertPapers.jsbakr-queue-functions.jsindex.js