Doc boundary: narrative, decisions, backlog, changelog, and runbooks live in this vault under
Projects/lumendev-invoice/. Architecture, data model, API list, feature deep-dives, and testing plans belong in the app repo’sdocs/git submodule (Mode B pillars) once bootstrapped — mirror project-docs-sync.
LumenDev Invoice is a single-service Next.js 16 (App Router) app with MongoDB + Mongoose 9: create and edit invoices, projects, default company settings, mark invoices paid, and export invoice/receipt PDFs client-side via @react-pdf/renderer. Authentication is Auth.js (next-auth v5) with Google OAuth, JWT sessions, and @auth/mongodb-adapter (see [[Projects/lumendev-invoice/changelog/2026-05-17-authjs-shipped|changelog]]; reusable pattern [[Resources/Tech/Auth.js/Auth.js Next.js JWT Google MongoDB adapter pattern|Tech note]]).
src/app/ and API src/app/api/.docs/ submodule in app repo + keep vault hub in syncaccepted (as-built record)p2 / draftp2 / draftInbox/Lumen Invoice app todos again (WAHA + Sentry already on Active Backlog; auth shipped).Inbox/Lumen Invoice app todos (same three bullets as prior triages; WAHA + Sentry already on Active Backlog; auth shipped).Inbox/Lumen Invoice app todos again (same bullets as Active Backlog: WAHA, Sentry; auth already shipped).Inbox/Lumen Invoice app todos (content already on Active Backlog: WAHA, Sentry; auth shipped).Inbox/; WAHA + Sentry remain on Active Backlog; auth is done ([[Projects/lumendev-invoice/backlog/done/p1-implement-authentication|p1 authentication]]).auth.ts, JWT callbacks, requireSession, Mongo adapter). Pairs with app docs/utility/authentication.md.docs/utility/authentication.md (env table, JWT vs adapter, protected routes, secret/OAuth rotation); architecture/API/entities/local-dev cross-links. Vault: [[Projects/lumendev-invoice/runbooks/runbook-auth-failure|runbook — auth failure]].done.backlog/ items from Inbox capture Lumen Invoice app todos (auth, WAHA reminders, Sentry).invoiceactivities + GET activity route; Activity panel in editor; UI Details links for paid cards. See [[Projects/lumendev-invoice/changelog/2026-05-16-paid-lock-activity-log|changelog]] and docs/ in LumenDev-Invoice./receipt/[id], editor server validation mapping, bulk mark paid, receipts list polish. See [[Projects/lumendev-invoice/changelog/2026-05-16-roadmap-gaps-shipped|changelog]] and docs/ submodule in LumenDev-Invoice.MONGODB_URI (see app repo AGENTS.md).AUTH_SECRET, AUTH_URL / AUTH_TRUST_HOST on non-dev hosts, and Google OAuth redirect URIs must be correct or sign-in and session endpoints fail (see AGENTS.md).docs/ under app repo (architecture/, data-model/, features/, testing/, utility/) and link from this hub — mgdocs/ as git submodule and bump vault pointer when tracking matters — mgLumenDev-Invoice (see AGENTS.md, package.json, src/)INVOICE-RECEIPT-FLOW-REPORT.md in app repo (verify claims against code)