MyCodex

MyCodex

PWA
Navigation
Master IndexIndex
Maintenance TasksOps Infrastructure GuideOwner Action ItemsPending Implementation AuditPRODUCTION TESTING GUIDEPROJECT MEMORY FOR CHATGPT FEATURESPROJECT MEMORY FOR CHATGPT OVERVIEWPROJECT MEMORY FOR CHATGPT TECHNICALPROJECT MEMORY FOR CHATGPTSurface Maturity Index
v2.2 Stablemenulist.ai
docspending implementation audit

Pending Implementation Audit — Full docs vs Codebase Cross-Check

Date: February 24, 2026 (Session 13) Method: Scanned all 41 _impl.md files + READMEs + specs across 75 feature directories. Cross-checked every pending item against actual codebase (src/, functions/src/). Key Finding: 9 features that docs mark as "not started" or "awaiting implementation" are actually already built in the codebase. Docs are stale.


CRITICAL FINDING: Stale Documentation (Docs Say "Not Done" But Code Is Built)

These docs need updating — the features ARE implemented but docs still say otherwise:

#FeatureDoc SaysCodebase RealityFiles Found
1Cost Self-Protection (SAFE_MODE)"DOCUMENTED — Awaiting implementation"✅ FULLY BUILT22 files: lib/ops/safeMode.ts, api/ops/safe-mode/route.ts, database/ops/, integrated in 13 AI routes
2Internal Feedback System"28 tasks, 0% complete"✅ FULLY BUILT30 files: GuestFeedbackForm, api/public/feedback/submit/route.ts, database/guestFeedback/, types/guestFeedback.ts, hooks/useFeedback.ts, mobile screens
3Menu Command CenterDoc implies partial✅ FULLY BUILT21 files: CommandCenterModal/, ActionEngine.tsx, ImpactPreview.tsx, bulkOperations.ts, 5 action types
4Special Menu SwitchingScheduler "not implemented"✅ FULLY BUILT (except nightly scheduler)17 files: useSpecialMenus.ts, SpecialMenuCard.tsx, CreateSpecialMenuModal.tsx, specialMenuConfig.ts, mobile screen
5Ops Alerting Delivery"DOCUMENTED — Awaiting implementation"✅ BUILT14 files: lib/ops/alerts.ts, api/ops/mute-alerts/route.ts, opsControlRoom/, lib/messaging/
6Menu Kit—✅ BUILT11 files: 6 templates (counter sticker, Google Maps, Instagram story, placement guide, table tent, WhatsApp status), menuKitGenerator.ts
7Health Signals (Loyalty/Trust/Risk)—✅ PARTIALLY BUILT7 files: HealthSignalCards.tsx, BehaviorNudgeCard.tsx, feature flags, store types
8Continuous Menu Intelligence"Needs building"✅ PARTIALLY BUILTCloud Function exists: functions/src/intelligence/menuIntelligence.ts, integrated in decisionBlocksScoring.ts, DAL at src/lib/intelligence/dal.ts
9Store Onboarding UI"DAL 100%, UI 0%"✅ UI BUILT15 files: AddOutletModal/, api/outlets/create/route.ts, api/outlets/deactivate/route.ts, locations/page.tsx, mobile MobileLocationsScreen.tsx

Action needed: Update these 9 doc sets to reflect actual codebase state.

Additional Stale Docs Found in Deep Cross-Check (Session 13b)

#FeatureDoc SaysCodebase RealityEvidence
10E5: Block outlet delete of inherited project"❌ Not implemented"✅ IMPLEMENTEDdeleteProject() at src/database/projects/index.ts:1078-1086 blocks deletion if masterProjectId exists
11BE1: Billing revert on outlet creation failure"❌ Not implemented"✅ IMPLEMENTEDapi/outlets/create/route.ts:237-249 reverts Razorpay quantity on failure
12BE3: Double-click outlet creation lock"❌ Not implemented"✅ IMPLEMENTEDapi/outlets/create/route.ts:79-92 uses atomic outletCreationLock transaction with 5-min TTL
13BE8: Server-side subscription check"❌ Need guard"✅ IMPLEMENTEDapi/outlets/create/route.ts:71-75 checks sub.status !== 'active' + max outlet count at line 61-69
14Special Menu Nightly Scheduler"❌ Not implemented"✅ FULLY BUILTfunctions/src/decisionBlocksScoring.ts:801-920 — activates/deactivates special menus, sets temp status banners. Flag: ENABLE_SPECIAL_MENU_SWITCHING: false

Total stale doc count: 14 features/edge cases where docs say "not implemented" but code is fully built.


GENUINELY NOT IMPLEMENTED (Docs + Code Agree)

Priority 1 — Pre-Launch Blockers

#FeatureDoc ReferenceWhat's MissingCodebase Evidence
1AI Enhancement Packs Re-Architectureai-enhancement-packs_impl.md25 tasks: rename CreditPack → AIEnhancementPack, new capacity gate UI, remove credit exposure from 7+ components, new pack modal, billing history labelsHas basics (capacityCheck.ts, unitCosts.ts, capacityError.ts) but full re-architecture NOT done. CreditPackCard.tsx and CreditsPackModal.tsx still use old naming.
2MCE Firestore Security Rulesmenu-correctness-engine_impl.md_mce field spoofing protectionLow risk: owner can only spoof own data, _mce stripped by sanitizeForClient(). Added structural note in rules.
3menuSnapshots / menuChangeLog Firestore RulesNew (Session 13)New collections need security rules✅ FIXED (Session 13b) — added append-only rules in firestore.rules

Priority 2 — Post-Launch Important

#FeatureDoc ReferenceWhat's MissingCodebase Evidence
4Holiday/Exception Hours (#2B)hours-holiday-accuracy_impl.mdHoliday scheduling, exception hours, special day overridesZero code for holidayHours or holiday.*exception
5Ownership Transferownership-transfer/README.mdFull feature: transfer store ownership between usersZero code matches for ownershipTransfer
6Presence Dominance Scoringpresence-dominance_impl.mdScoring system for measuring physical+digital presence per storeZero code matches for presenceDominance or presenceScore
7Razorpay International Paymentsrazorpay_impl.md5 Razorpay dashboard steps: enable international, KYC, approval, test payment, verifyAll 5 steps marked ⬜ Pending

Priority 3 — Future / Deferred

#FeatureDoc ReferenceWhat's MissingNotes
8POS Webhook Sync Phase 4pos-webhook-sync_impl.mdPublic docs page + email templateLow priority, infrastructure complete
9SEO/AEO Phase 3seo-aeo-discovery-infrastructure/README.mdReal SMB data testing, multi-platform distribution researchWaiting for real stores
10System Strengthening Audit Findingssystem-strengthening_impl.mdAudit findings documented but "AWAITING IMPLEMENTATION APPROVAL"Needs review of specific findings

BLOCKED ON EXTERNAL DEPENDENCY

#FeatureDoc ReferenceBlockerInfrastructure Status
1GBP Syncgbp-sync_impl.mdGoogle Business Profile API access not granted🔶 Spec locked, implementation blocked
2Reviews & Reputationreviews-reputation_impl.mdGoogle Business Profile API access not granted✅ Infrastructure built (types, schema, DAL plan). Flip flag when API granted.

PARTIALLY IMPLEMENTED (Significant Gaps in Edge Cases)

Multi-Outlet Store Onboarding Edge Cases

Doc: store-onboarding_impl.md

IDEdge CaseStatus
E1Master project created after outlets exist — auto-propagate❌ Not implemented
E4Outlet creation fails mid-process — rollback/retry❌ Not implemented
E5Outlet tries to delete inherited project — block in DAL❌ Not implemented
E13Orphan outlet project (invalid masterProjectId) — periodic check❌ Not implemented
E16Master project archive (soft archive)❌ Not implemented
E18Billing succeeds but internal creation fails❌ Not implemented
E19Outlet removal (quantity -1, deactivate)❌ Not implemented
E20Orphan outlet integrity check (periodic job)❌ Not implemented
E21Master project archive → outlets inherit deactivated❌ Not implemented
E22Outlet user creates project matching master name — block❌ Not implemented

Store Onboarding Billing Edge Cases

Doc: store-onboarding-billing_impl.md

IDEdge CaseStatus
BE1Payment succeeds but outlet creation fails — provisioning state❌ Not implemented
BE2Enforce billing-first flow order❌ Not implemented
BE3Double-click outlet creation lock❌ Not implemented
BE5subscription.updated webhook handler❌ Not implemented
BE7Quantity mismatch detection (reconciliation)❌ Not implemented
BE8Server-side guard: quantity <= activeStores❌ Not implemented
BE10-15Outlet removal, shutdown, reactivation, billing adjustments❌ Not implemented (future feature)

Special Menu Switching — Nightly Scheduler

Doc: special-menu-switching_impl.md

TaskStatus
Nightly scheduler to auto-activate/deactivate special menus❌ Not in decisionBlocksScoring.ts
Client-side DAL for same-day precisionNeeds verification

Multi-Chain Permissions — Firestore Rules

Doc: multi-chain-permissions/README.md

TaskStatus
Firestore Rules for permission enforcement❌ "Not yet implemented (API is primary gatekeeper)"

Messaging Onboarding Edge Cases

Doc: messaging-onboarding_impl.md

Core flow is built (12 files) but several edge cases documented as not implemented.


SUMMARY: Action Items by Priority (Updated Feb 24, 2026 — Session 13b)

✅ COMPLETED This Session (Session 13b)

  1. ✅ cost-self-protection_impl.md — marked as IMPLEMENTED with codebase evidence
  2. ✅ internal-feedback-system_impl.md — updated from 0% to 100% with codebase evidence
  3. ✅ ops-alerting-delivery_impl.md — marked as IMPLEMENTED with codebase evidence
  4. ✅ menu-health-monitor_impl.md — marked as IMPLEMENTED with codebase evidence
  5. ✅ store-onboarding_impl.md — updated E4, E5, E18 edge cases to ✅
  6. ✅ store-onboarding-billing_impl.md — updated BE1, BE2, BE3, BE8 to ✅
  7. ✅ store-onboarding_spec.md — updated UI status from 0% to BUILT
  8. ✅ continuous-menu-intelligence_impl.md — marked Cloud Function as BUILT
  9. ✅ special-menu-switching_impl.md — marked nightly scheduler as IMPLEMENTED
  10. ✅ menu-correctness-engine_impl.md — updated phases to DONE, added _mce risk note
  11. ✅ firestore.rules — added security rules for menuChangeLog and menuSnapshots

Pre-Launch Must-Do (Code Still Needed)

  1. AI Enhancement Packs re-architecture — ✅ DONE (Session 14, Feb 24 2026). Backend was already 100% built. Frontend rename + doctrine compliance completed: 13 files updated, all credit labels → AI enhancement labels, ActiveSubscriptionCard transformed to AI status panel. 5 minor tasks remain (AICapacityGate, pack status API, PlatformFeaturesList "Included" label, security audit, Firestore rules for capacity fields).
  2. Multi-chain Permissions Firestore rules — API is primary gatekeeper, rules are secondary

Post-Launch (Genuinely Not Built)

  1. Holiday/Exception Hours (#2B) — zero code exists
  2. Ownership Transfer — zero code exists
  3. Presence Dominance scoring — zero code exists
  4. Razorpay International Payments — 5 Razorpay dashboard steps pending
  5. POS Webhook Phase 4 — public docs + email template
  6. System Strengthening audit findings — awaiting implementation review

Blocked (External Dependency)

  1. GBP Sync — waiting for Google API access
  2. Reviews & Reputation — waiting for Google API access

REVISED TOTALS (after deep cross-check):

  • Stale docs fixed this session: 14 features/edge cases that docs claimed "not implemented" but code was fully built
  • Genuinely not built: 7 features (4 post-launch, 1 pre-launch, 2 blocked)
  • Code changes this session: Firestore security rules for 2 new collections
  • The codebase is in much better shape than the docs suggested.
On This Page
  • Pending Implementation Audit — Full **docs** vs Codebase Cross-Check
  • CRITICAL FINDING: Stale Documentation (Docs Say "Not Done" But Code Is Built)
  • Additional Stale Docs Found in Deep Cross-Check (Session 13b)
  • GENUINELY NOT IMPLEMENTED (Docs + Code Agree)
  • Priority 1 — Pre-Launch Blockers
  • Priority 2 — Post-Launch Important
  • Priority 3 — Future / Deferred
  • BLOCKED ON EXTERNAL DEPENDENCY
  • PARTIALLY IMPLEMENTED (Significant Gaps in Edge Cases)
  • Multi-Outlet Store Onboarding Edge Cases
  • Store Onboarding Billing Edge Cases
  • Special Menu Switching — Nightly Scheduler
  • Multi-Chain Permissions — Firestore Rules
  • Messaging Onboarding Edge Cases
  • SUMMARY: Action Items by Priority (Updated Feb 24, 2026 — Session 13b)
  • ✅ COMPLETED This Session (Session 13b)
  • Pre-Launch Must-Do (Code Still Needed)
  • Post-Launch (Genuinely Not Built)
  • Blocked (External Dependency)