docs/Docs_To_Review/todo_docs.md
Purpose: Comprehensive task list to bring project documentation to production-grade quality for AI agent-assisted development. Each task is scoped, self-contained, and AI-actionable.
Status legend:
[ ]Not started ·[-]In progress ·[x]Done
.env.exampleprocess.env / import.meta.env references across the codebase.env.example with every environment variable, grouped by serviceVITE_VARIANT, variant-conditional env vars)CONTRIBUTING.mdfeat/, fix/, docs/, etc.)SECURITY.mddocs/ARCHITECTURE.mdVITE_VARIANT controls config tree-shaking and panel registrationdocs/DATA_MODEL.mdsrc/types/index.ts (1,297 lines) with prose descriptionsEntity, EntityType, multi-index lookup strategySignal, SignalType, correlation rules, aggregationVariantConfig, base → override chaindocs/STATE_MANAGEMENT.mdApp.ts state properties and their lifecycle (4,332 lines — needs mapping)urlState.ts) — query params for sharingruntime-config.ts)activity-tracker.ts)docs/API_REFERENCE.md_cors.js, _cache-telemetry.js, _ip-rate-limit.js, _upstash-cache.jsdocs/EXTERNAL_APIS.mddocs/COMPONENTS.mdsrc/components/:
Panel base class: drag, resize, collapse, persistenceDeckGLMap.ts: layer registration, WebGL rendering, interaction handlersMap.ts and MapContainer.ts: MapLibre setup, region controls, popup systemVirtualList.ts: virtual scrolling implementation detailsSearchModal.ts: Cmd+K search, fuzzy matching, result rankingdocs/PANELS.mdsrc/config/panels.ts)docs/SERVICES.mdsrc/services/:
analysis-core, signal-aggregator, correlation, focal-point-detector, hotspot-escalation, trending-keywords, threat-classifierrss, conflicts, earthquakes, climate, ais, markets, etc.ml-worker, ml-capabilities, summarization, entity-extraction, clusteringcountry-geometry, geo-convergence, geo-activity, geo-hub-index, reverse-geocodemilitary-flights, military-surge, military-vesselsinfrastructure-cascade, cable-activity, outages, data-freshnessruntime, tauri-bridge, runtime-config, i18n, persistent-cache, storagestory-data, story-renderer, story-share, meta-tagsclustering.ts): Jaccard + semantic similarity, threshold tuningthreat-classifier.ts): hybrid keyword + LLM pipelinecorrelation.ts): cross-source pattern matching logichotspot-escalation.ts): 4-signal scoring methodologycountry-instability.ts): 22-country CII computationtemporal-baseline.ts): Welford's online algorithm for anomaly detectiontrending-keywords.ts): 2h vs 7d window spike detectioninfrastructure-cascade.ts): BFS propagation modelgeo-convergence.ts): 1°×1° cell multi-source convergencemacro-signals.js): 7-signal radar BUY/CASH methodologyutils/circuit-breaker.ts): per-feed failure tracking, 5-min cooldowndocs/CONFIGURATION.mdsrc/config/variant.ts): detection logic, hostname → variant mappingvariants/base.ts → variants/full.ts / tech.ts / finance.tsentities.ts (600+ entries, multi-index)feeds.ts (150+ RSS feeds, tier/type/propaganda risk)geo.ts (hotspots, conflict zones, nuclear sites, cables, waterways)bases-expanded.ts (220+ military bases)finance-geo.ts (92 exchanges, 19 centers, 13 CBs, 10 commodity hubs)airports.ts (monitored airports + FAA data)pipelines.ts (88 oil/gas pipelines)ports.ts (83 strategic ports)ai-datacenters.ts (111 AI datacenter locations)ai-regulations.ts, ai-research-labs.ts, startup-ecosystems.ts, tech-companies.tsgulf-fdi.ts (64 Saudi/UAE FDI investments)irradiators.ts (gamma irradiator locations)markets.ts (symbols, sectors, commodities)military.ts (military entity data)ml-config.ts (ML model configuration)panels.ts) per variantbeta.ts feature flag systemdocs/DESKTOP_CONFIGURATION.mddocs/DEPLOYMENT.mddocs/RELEASE_PACKAGING.mddocs/SELF_HOSTING.mddeploy/nginx-worldmonitor.conf)deploy/worldmonitor-api.service)docs/I18N.mdrtl-overrides.css) for Arabicdocs/TESTING.mdtest:e2e, test:e2e:tech, test:e2e:finance)src/e2e/, tests/map-harness.html)test:data)_cors.test.mjs, cyber-threats.test.mjsdocs/MAP_SYSTEM.mdMapPopup.ts): click handling, content generationdocs/PWA.mdpublic/offline.html)bootstrap/chunk-reload.ts)docs/DEVELOPER_GUIDE.mdnpm run dev → dev:tech → dev:financenpm run build variants, output structurenpm run preview and Vercel preview deploymentsdocs/AI_AGENT_GUIDE.md@/ alias, barrel exports)App.tsmain.cssdocs/DOCUMENTATION.mdsrc/components/ directoryETFFlowsPanel, MacroSignalsPanel, StablecoinPanel, InvestmentsPanel, RegulationPanel, TechEventsPanel, TechHubsPanel, TechReadinessPanel, PlaybackControl, RuntimeConfigPanelCHANGELOG.mdfeat/ui-customizations-worldmonitor branchdocs/local-backend-audit.md — Verify sidecar handler parity matrix is currentdocs/NEWS_TRANSLATION_ANALYSIS.md — Mark as implemented or still pendingdocs/TAURI_VALIDATION_REPORT.md — Update with latest Tauri 2 findingsdocs/GLOSSARY.mddocs/DATA_SOURCES.mddata-freshness.ts)docs/TROUBLESHOOTING.mddocs/DOCS_STYLE_GUIDE.md — formatting, tone, naming, linking conventionsdocs/INDEX.md) linking all documentation files.mmd files or inline in relevant docs| Priority | Tasks | Rationale |
|---|---|---|
| P0 — Critical | 1.2 .env.example, 2.1 Architecture, 12.2 AI Agent Guide | Unblocks AI agent development immediately |
| P1 — High | 1.3 Contributing, 3.1 API Reference, 5.1 Services, 6.1 Configuration | Core reference for any code changes |
| P2 — Medium | 2.2 Data Model, 4.1 Components, 9.1 Testing, 10.1 Map System, 12.1 Dev Guide | Deeper understanding for complex changes |
| P3 — Standard | 7.1 Deployment, 8.1 i18n, 11.1 PWA, 13.x Updates, 14.2 Data Sources | Operational completeness |
| P4 — Nice to Have | 1.4 Security, 14.1 Glossary, 14.3 Troubleshooting, 15.x Infrastructure | Polish and maintenance |
src/types/index.ts as the single source of truth for data modelssrc/config/ as the source of truth for all static data and variant configurationApp.ts (4,332 lines) for how services and components are wired together