Repository Analysis

koala73/worldmonitor

Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface

3.0 Likely human-written View on GitHub
3.0
Adjusted Score
3.0
Raw Score
100%
Time Factor
2026-05-29
Last Push
55,103
Stars
TypeScript
Language
629,134
Lines of Code
1761
Files
1107
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 6HIGH 1MEDIUM 331LOW 769

Pattern Findings

1107 matches across 8 categories. Click a row to expand file-level details.

Decorative Section Separators323 hits · 968 pts
SeverityFileLineSnippet
MEDIUMdocker-compose.yml1# =============================================================================
MEDIUMdocker-compose.yml3# =============================================================================
MEDIUMdocker-compose.yml11# =============================================================================
MEDIUM…r/worldmonitor/intelligence/v1/chat-analyst-context.ts599// ── Keyword extraction (shared by GDELT + digest search) ─────────────────────
MEDIUM…r/worldmonitor/intelligence/v1/chat-analyst-context.ts641// ── GDELT live headlines ──────────────────────────────────────────────────────
MEDIUM…r/worldmonitor/intelligence/v1/chat-analyst-context.ts681// ── Digest keyword search ─────────────────────────────────────────────────────
MEDIUM…r/worldmonitor/intelligence/v1/chat-analyst-context.ts767// ── Source labels ─────────────────────────────────────────────────────────────
MEDIUM…rldmonitor/intelligence/v1/brief-why-matters-prompt.ts55// ── Category-gated context sections ──────────────────────────────────────
MEDIUMserver/worldmonitor/news/v1/list-feed-digest.ts833// ── Story persistence tracking ────────────────────────────────────────────────
MEDIUMserver/worldmonitor/news/v1/_feeds.ts355 // ── Commodity variant (Mining, Metals, Energy) ─────────────────────────────
MEDIUM…rver/worldmonitor/resilience/v1/_indicator-registry.ts52 // ── macroFiscal (4 sub-metrics) ───────────────────────────────────────────
MEDIUM…rver/worldmonitor/resilience/v1/_indicator-registry.ts130 // ── currencyExternal ─────────────────────────────────────────────────────
MEDIUM…rver/worldmonitor/resilience/v1/_indicator-registry.ts204 // ── tradePolicy (3 sub-metrics) ───────────────────────────────────────────
MEDIUM…rver/worldmonitor/resilience/v1/_indicator-registry.ts261 // ── financialSystemExposure (4 sub-metrics) ───────────────────────────────
MEDIUM…rver/worldmonitor/resilience/v1/_indicator-registry.ts354 // ── cyberDigital (3 sub-metrics) ──────────────────────────────────────────
MEDIUM…rver/worldmonitor/resilience/v1/_indicator-registry.ts401 // ── logisticsSupply (3 sub-metrics) ───────────────────────────────────────
MEDIUM…rver/worldmonitor/resilience/v1/_indicator-registry.ts448 // ── infrastructure (3 sub-metrics) ────────────────────────────────────────
MEDIUM…rver/worldmonitor/resilience/v1/_indicator-registry.ts495 // ── energy (7 sub-metrics) ────────────────────────────────────────────────
MEDIUM…rver/worldmonitor/resilience/v1/_indicator-registry.ts668 // ── governanceInstitutional (6 sub-metrics, equal weight) ─────────────────
MEDIUM…rver/worldmonitor/resilience/v1/_indicator-registry.ts760 // ── socialCohesion (3 sub-metrics) ────────────────────────────────────────
MEDIUM…rver/worldmonitor/resilience/v1/_indicator-registry.ts812 // ── borderSecurity / "Conflict & Displacement" (2 sub-metrics) ───────────
MEDIUM…rver/worldmonitor/resilience/v1/_indicator-registry.ts853 // ── informationCognitive (3 sub-metrics) ──────────────────────────────────
MEDIUM…rver/worldmonitor/resilience/v1/_indicator-registry.ts905 // ── healthPublicService (3 sub-metrics) ───────────────────────────────────
MEDIUM…rver/worldmonitor/resilience/v1/_indicator-registry.ts952 // ── foodWater (3 sub-metrics) ─────────────────────────────────────────────
MEDIUM…rver/worldmonitor/resilience/v1/_indicator-registry.ts1019 // ── fiscalSpace (4 sub-metrics) ──────────────────────────────────────────
MEDIUM…rver/worldmonitor/resilience/v1/_indicator-registry.ts1092 // ── reserveAdequacy (RETIRED in PR 2 §3.4) ───────────────────────────────
MEDIUM…rver/worldmonitor/resilience/v1/_indicator-registry.ts1113 // ── liquidReserveAdequacy (1 sub-metric) ─────────────────────────────────
MEDIUM…rver/worldmonitor/resilience/v1/_indicator-registry.ts1134 // ── sovereignFiscalBuffer (1 sub-metric) ─────────────────────────────────
MEDIUM…rver/worldmonitor/resilience/v1/_indicator-registry.ts1173 // ── externalDebtCoverage (1 sub-metric) ──────────────────────────────────
MEDIUM…rver/worldmonitor/resilience/v1/_indicator-registry.ts1197 // ── importConcentration (1 sub-metric) ───────────────────────────────────
MEDIUM…rver/worldmonitor/resilience/v1/_indicator-registry.ts1214 // ── stateContinuity (3 sub-metrics, derived from existing keys) ──────────
MEDIUM…rver/worldmonitor/resilience/v1/_indicator-registry.ts1261 // ── fuelStockDays (1 sub-metric) ─────────────────────────────────────────
MEDIUM…ver/worldmonitor/supply-chain/v1/scenario-templates.ts122// ─── Runtime types shared between MapContainer and DeckGLMap ─────────────────
MEDIUM…nitor/supply-chain/v1/_route-explorer-static-tables.ts16// ─── Transit days per TRADE_ROUTES ID ────────────────────────────────────────
MEDIUM…nitor/supply-chain/v1/_route-explorer-static-tables.ts54// ─── Freight estimate per cargo type ─────────────────────────────────────────
MEDIUM…nitor/supply-chain/v1/_route-explorer-static-tables.ts72// ─── Bypass corridor geometry ────────────────────────────────────────────────
MEDIUM…nitor/supply-chain/v1/_route-explorer-static-tables.ts90 // ── Sea alternatives (use CHOKEPOINT_REGISTRY for endpoints) ───────────
MEDIUM…nitor/supply-chain/v1/_route-explorer-static-tables.ts176 // ── Land-bridge corridors (hand-curated rail/road endpoints) ──────────
MEDIUMserver/_shared/brief-carousel-render.ts61// ── Colour palette (must match magazine's aesthetic) ───────────────────────
MEDIUMserver/_shared/brief-carousel-render.ts73// ── Layouts ────────────────────────────────────────────────────────────────
MEDIUMserver/_shared/brief-carousel-render.ts319// ── Public API ─────────────────────────────────────────────────────────────
MEDIUMserver/_shared/feelgood-classifier.js80// ── CORROBORATING: feel-good tokens (named capture groups) ──────────
MEDIUMserver/_shared/opinion-classifier.js26// ── STRONG: URL path / feed-section segments ─────────────────────────
MEDIUMserver/_shared/opinion-classifier.js49// ── STRONG: explicit headline prefix ─────────────────────────────────
MEDIUMserver/_shared/opinion-classifier.js57// ── STRONG: source-domain allowlist ──────────────────────────────────
MEDIUMserver/_shared/opinion-classifier.js97// ── CORROBORATING: description framing ───────────────────────────────
MEDIUMserver/_shared/opinion-classifier.js103// ── CORROBORATING: whole-headline quote wrap ─────────────────────────
MEDIUMserver/_shared/cache-keys.ts1// ── Story persistence tracking keys (E3) ─────────────────────────────────────
MEDIUMserver/_shared/brief-render.js34// ── Constants ────────────────────────────────────────────────────────────────
MEDIUMserver/_shared/brief-render.js58// ── HTML escaping ────────────────────────────────────────────────────────────
MEDIUMserver/_shared/brief-render.js87// ── Envelope validation ──────────────────────────────────────────────────────
MEDIUMserver/_shared/brief-render.js387// ── Logo symbol + references ─────────────────────────────────────────────────
MEDIUMserver/_shared/brief-render.js432// ── Running head (shared across digest pages) ────────────────────────────────
MEDIUMserver/_shared/brief-render.js447// ── Page renderers ───────────────────────────────────────────────────────────
MEDIUMserver/_shared/brief-render.js758// ── Shell (document + CSS + JS) ──────────────────────────────────────────────
MEDIUMserver/_shared/brief-render.js1366// ── Main entry ───────────────────────────────────────────────────────────────
MEDIUMserver/_shared/bypass-corridors.ts20 // ── Suez Canal bypasses ────────────────────────────────────────────────
MEDIUMserver/_shared/bypass-corridors.ts48 // ── Strait of Hormuz bypasses ─────────────────────────────────────────
MEDIUMserver/_shared/bypass-corridors.ts89 // ── Strait of Malacca bypasses ────────────────────────────────────────
MEDIUMserver/_shared/bypass-corridors.ts130 // ── Bab el-Mandeb bypasses ────────────────────────────────────────────
263 more matches not shown…
Over-Commented Block374 hits · 358 pts
SeverityFileLineSnippet
LOWmiddleware.ts221 // Image-returning API routes that don't end in `.png` also need
LOWnixpacks.toml1# Railway relay build config (root_dir="" — builds from repo root).
LOWdocker-compose.yml1# =============================================================================
LOWdocker-compose.yml101 SRH_CONNECTION_STRING: "redis://:${REDIS_PASSWORD:?REDIS_PASSWORD required — generate with: openssl rand -hex 32}@
LOWpro-test/src/i18n.ts61 set('meta[property="og:title"]', ogTitle);
LOWpro-test/src/services/checkout.ts101 });
LOWpro-test/src/services/checkout.ts281 // mode — ignoring `checkout.redirect_requested` is what stranded
LOWpro-test/src/services/checkout.ts381 // Phase transitions to creating_checkout ONLY here, not in
LOWserver/gateway.ts301 '/api/intelligence/v1/get-country-energy-profile': 'slow',
LOWserver/gateway.ts501 // internal-MCP markers BEFORE any other logic runs. The gateway is the
LOWserver/gateway.ts521 const stripped = new Headers(inboundHeaders);
LOWserver/gateway.ts581 // - verify ⇒ entitlement re-check ⇒ rebuild Request with trusted markers
LOWserver/gateway.ts601 // unaffected because we only enter this branch when the caller
LOWserver/gateway.ts661 if (!verified) {
LOWserver/gateway.ts701 // re-supplied from the bytes we buffered (bodyBytes is null for
LOWserver/gateway.ts841 // Capture identity for telemetry — legacy bearer auth bypasses the
LOWserver/gateway.ts1061 // Skip CDN caching for upstream-unavailable / empty responses so CF
LOWserver/worldmonitor/maritime/v1/get-vessel-snapshot.ts21 chokepoint_congestion: 'AIS_DISRUPTION_TYPE_CHOKEPOINT_CONGESTION',
LOWserver/worldmonitor/intelligence/v1/_risk-config.ts1// ============================================================================
LOW…rldmonitor/intelligence/v1/brief-why-matters-prompt.ts61// passes ALL six bundles for every story, so the LLM has the market /
LOW…rldmonitor/intelligence/v1/brief-why-matters-prompt.ts241 if (contextBlock) {
LOWserver/worldmonitor/intelligence/v1/get-risk-scores.ts821
LOWserver/worldmonitor/intelligence/v1/get-risk-scores.ts861 // CII warm-ping. Pre-2026-05-02 the warm-ping was the SOLE writer of
LOW…/worldmonitor/intelligence/v1/get-regional-snapshot.ts481 req: GetRegionalSnapshotRequest,
LOWserver/worldmonitor/intelligence/v1/_shared.ts1/**
LOWserver/worldmonitor/intelligence/v1/_shared.ts21// institutional pages that previously promoted info-keyword titles to
LOWserver/worldmonitor/news/v1/summarize-article.ts121 CACHE_TTL_SECONDS,
LOWserver/worldmonitor/news/v1/list-feed-digest.ts41const BATCH_CONCURRENCY = 20;
LOWserver/worldmonitor/news/v1/list-feed-digest.ts161 classSource: 'keyword' | 'keyword-historical-downgrade' | 'llm';
LOWserver/worldmonitor/news/v1/list-feed-digest.ts381async function fetchAndParseRss(
LOWserver/worldmonitor/news/v1/list-feed-digest.ts601 // (a) parsedTotal > 0 — we recognized at least one <item>/<entry> block in
LOWserver/worldmonitor/news/v1/list-feed-digest.ts761 // would miss this — `medium` doesn't match — so the brief 2026-04-
LOWserver/worldmonitor/news/v1/list-feed-digest.ts781 item.isAlert = false;
LOWserver/worldmonitor/news/v1/list-feed-digest.ts801 // The L3 marker check above intentionally runs BEFORE this skip so
LOWserver/worldmonitor/news/v1/list-feed-digest.ts1061 // skill: ingest-gate-tightening-leaves-residue-in-read-path.
LOWserver/worldmonitor/news/v1/list-feed-digest.ts1081 // Pre-stamp rows (ingested before this shipped) have no field at
LOWserver/worldmonitor/news/v1/_classifier.ts241//
LOWserver/worldmonitor/news/v1/_classifier.ts261// "Markets See Flashback To 2008 Crisis As Bonds Tumble" — no
LOWserver/worldmonitor/news/v1/_feeds.ts101 // verified path (probed 2026-04-26). Federal Register fallback is
LOW…ver/worldmonitor/resilience/v1/_dimension-freshness.ts1// T1.5 Phase 1 of the country-resilience reference-grade upgrade plan
LOW…ver/worldmonitor/resilience/v1/_dimension-freshness.ts41// 'displacement:summary:v1:{year}' -> 'displacement:summary:v1'
LOW…ver/worldmonitor/resilience/v1/_dimension-freshness.ts61// call.
LOW…ver/worldmonitor/resilience/v1/_dimension-freshness.ts81 // not falsely mark the property datasets as fresh (and vice versa).
LOWserver/worldmonitor/resilience/v1/_shared.ts41//
LOWserver/worldmonitor/resilience/v1/_shared.ts61// re-importing the module. Under Node production the env does not
LOWserver/worldmonitor/resilience/v1/_shared.ts81// published rankings are unchanged.
LOWserver/worldmonitor/resilience/v1/_shared.ts101// re-importing the module.
LOWserver/worldmonitor/resilience/v1/_shared.ts121// Bumped from v9 to v10 in the pillar-combined activation PR. Provides
LOWserver/worldmonitor/resilience/v1/_shared.ts141// deploys. v12→v13 bump in plan 2026-04-25-004 Phase 1 (Ship 1) for the
LOWserver/worldmonitor/resilience/v1/_shared.ts161// for every country (the PR 2 default), which would let ineligible
LOWserver/worldmonitor/resilience/v1/_shared.ts181// readers) decode as `d6` — matching the only formula that existed
LOWserver/worldmonitor/resilience/v1/_shared.ts201// v9 history points with post-fix v15 score points inside the 30-day
LOWserver/worldmonitor/resilience/v1/_shared.ts221// inside the rolling 30-day window with post-fix net-imports points
LOWserver/worldmonitor/resilience/v1/_shared.ts241// plan 2026-04-26-002 §U7 (PR 6). v16 cached rankings include items
LOWserver/worldmonitor/resilience/v1/_shared.ts261const RANK_STABLE_MAX_INTERVAL_WIDTH = 8;
LOWserver/worldmonitor/resilience/v1/_shared.ts381 // T1.7 schema pass: empty string = dimension has any observed data.
LOWserver/worldmonitor/resilience/v1/_shared.ts401// lever that finally pulls median(microstate-territories) below
LOWserver/worldmonitor/resilience/v1/_shared.ts501// coverage >= 0.65 AND
LOWserver/worldmonitor/resilience/v1/_shared.ts541 // entries SHOULD drag the confidence down — that is precisely the
LOWserver/worldmonitor/resilience/v1/_shared.ts621 // domain.weight`) or the pillar-combined penalized form (non-
314 more matches not shown…
Hyper-Verbose Identifiers329 hits · 334 pts
SeverityFileLineSnippet
LOWpro-test/src/services/checkout-intent-url.ts30export function parseCheckoutIntentFromSearch(search: string): CheckoutIntentFromUrl | null {
LOWpro-test/src/services/checkout-intent-url.ts49export function stripCheckoutIntentFromSearch(search: string): string {
LOWpro-test/src/services/checkout.ts533function mountCheckoutInterstitial(): void {
LOWpro-test/src/services/checkout.ts571function unmountCheckoutInterstitial(): void {
LOWpro-test/src/services/checkout.ts637function prereserveBillingPortalTab(): Window | null {
LOWpro-test/src/services/checkout.ts695function resolveProPlanDisplayName(planKey: unknown): string {
LOWpro-test/src/services/checkout.ts708function showProDuplicateSubscriptionDialog(options: ProDuplicateDialogOptions): void {
LOWpro-test/src/services/entitlement-watchdog.ts59export function createEntitlementWatchdog(
LOWplans/forbid-realtime-all-events.md92function assertCompatibleDeliveryMode(pair: { digestMode: string; sensitivity: string }) {
LOWplans/add-debt-sustainability-gap-indicator.md89export function computeDebtSustainabilityGap({ debt, pb, fb, realG, infl }) {
LOWplans/add-debt-sustainability-gap-indicator.md100export function buildFiscalSpaceCountries(perIndicator) {
LOWserver/gateway.ts340function isPostToGetCompatibleBodySize(headers: Headers): boolean {
LOWserver/worldmonitor/maritime/v1/get-vessel-snapshot.ts170async function fetchVesselSnapshotFromRelay(
LOW…tor/consumer-prices/v1/get-consumer-price-freshness.ts10export async function getConsumerPriceFreshness(
LOW…r/consumer-prices/v1/list-consumer-price-categories.ts12export async function listConsumerPriceCategories(
LOW…consumer-prices/v1/get-consumer-price-basket-series.ts14export async function getConsumerPriceBasketSeries(
LOW…er/worldmonitor/intelligence/v1/brief-story-context.ts56export async function assembleBriefStoryContext(
LOW…rldmonitor/intelligence/v1/brief-why-matters-prompt.ts221export function buildAnalystWhyMattersPrompt(
LOWserver/worldmonitor/intelligence/v1/_shock-compute.ts80export function computeEffectiveCoverDays(
LOWserver/worldmonitor/intelligence/v1/_shock-compute.ts108export function deriveChokepointConfidence(
LOW…r/worldmonitor/intelligence/v1/compute-energy-shock.ts125export async function computeEnergyShockScenario(
LOWserver/worldmonitor/intelligence/v1/deduction-prompt.ts75function buildSharedEvidencePrompt(primaryContext: string, recentNews: string[]): string {
LOWserver/worldmonitor/intelligence/v1/deduction-prompt.ts159export function postProcessDeductionOutput(raw: string, mode: DeductionMode): string {
LOWserver/worldmonitor/leads/v1/register-interest.ts45function canonicalizeDesktopAuthPayload(req: RegisterInterestRequest): string {
LOWserver/worldmonitor/leads/v1/register-interest.ts85export async function createDesktopAuthSignature(
LOWserver/worldmonitor/economic/v1/_shared.ts75export function extractAlignedPriceVolume(chart: any): Array<{ price: number; volume: number }> {
LOWserver/worldmonitor/economic/v1/_fred-shared.ts13export function applyFredObservationLimit(series: FredSeries, limit: number): FredSeries {
LOW…dmonitor/conflict/v1/get-humanitarian-summary-batch.ts96export async function getHumanitarianSummaryBatch(
LOWserver/worldmonitor/shipping/v2/deliver-webhook.ts51async function postJsonWithPinnedAddress(
LOWserver/worldmonitor/shipping/v2/deliver-webhook.ts108export async function assertWebhookDeliveryUrlSafe(
LOW…worldmonitor/military/v1/_wingbits-aircraft-details.ts14export async function fetchWingbitsAircraftDetails(
LOWserver/worldmonitor/aviation/v1/_shared.ts545export function mergeNotamWithExistingAlert(
LOW…ldmonitor/aviation/v1/_providers/travelpayouts_data.ts196export async function searchPricesTravelpayouts(opts: {
LOW…ver/worldmonitor/aviation/v1/_providers/demo_prices.ts38function advancePurchaseMultiplier(departureDate: string): number {
LOWserver/worldmonitor/news/v1/list-feed-digest.ts221function hasDiplomacyFlashpointSignal(title: string | undefined): boolean {
LOWserver/worldmonitor/news/v1/list-feed-digest.ts285function createTimeoutLinkedController(parentSignal: AbortSignal): {
LOWserver/worldmonitor/news/v1/list-feed-digest.ts647function normalizeForDescriptionEquality(s: string): string {
LOWserver/worldmonitor/news/v1/list-feed-digest.ts873function computeEntityCorroborationSignals(
LOWserver/worldmonitor/news/v1/list-feed-digest.ts909function computeEntityCorroborationCounts(
LOWserver/worldmonitor/news/v1/list-feed-digest.ts1043function buildStoryTrackHsetFields(
LOW…ver/worldmonitor/resilience/v1/_dimension-freshness.ts148export function classifyDimensionFreshness(
LOWserver/worldmonitor/resilience/v1/_source-failure.ts81export function failedDimensionsFromDatasets(
LOWserver/worldmonitor/resilience/v1/_shared.ts761export async function ensureResilienceScoreCached(countryCode: string, reader?: ResilienceSeedReader): Promise<GetResili
LOWserver/worldmonitor/resilience/v1/_shared.ts875export async function getCachedResilienceScores(countryCodes: string[]): Promise<Map<string, GetResilienceScoreResponse>
LOWserver/worldmonitor/resilience/v1/_shared.ts1018export async function warmMissingResilienceScores(
LOWserver/worldmonitor/resilience/v1/_dimension-scorers.ts928export function readCountryPopulationMillionsForGate(
LOWserver/worldmonitor/resilience/v1/_dimension-scorers.ts1085function getTransitDisruptionScore(raw: unknown): number | null {
LOWserver/worldmonitor/resilience/v1/_dimension-scorers.ts1353function isFinSysExposureEnabledLocal(): boolean {
LOWserver/worldmonitor/resilience/v1/_dimension-scorers.ts1357export async function scoreFinancialSystemExposure(
LOWserver/worldmonitor/resilience/v1/_dimension-scorers.ts1785export async function scoreGovernanceInstitutional(
LOWserver/worldmonitor/resilience/v1/_dimension-scorers.ts1993export async function scoreInformationCognitive(
LOWserver/worldmonitor/resilience/v1/_dimension-scorers.ts2215async function readReexportShareForCountry(
LOWserver/worldmonitor/resilience/v1/_dimension-scorers.ts2227export async function scoreLiquidReserveAdequacy(
LOWserver/worldmonitor/resilience/v1/_dimension-scorers.ts2293export async function scoreSovereignFiscalBuffer(
LOWserver/worldmonitor/resilience/v1/_dimension-scorers.ts2355export async function scoreExternalDebtCoverage(
LOWserver/worldmonitor/resilience/v1/_dimension-scorers.ts2534export function isExcludedFromConfidenceMean(
LOWserver/worldmonitor/resilience/v1/_dimension-scorers.ts2700export function getResilienceDomainWeight(domainId: ResilienceDomainId): number {
LOWserver/worldmonitor/resilience/v1/_language-coverage.ts49export function getLanguageCoverageFactor(iso2: string): number {
LOWserver/worldmonitor/sanctions/v1/lookup-entity.ts61function normalizeOpenSanctionsHit(hit: OpenSanctionsHit): SanctionEntityMatch | null {
LOWserver/worldmonitor/market/v1/stock-news-search.ts36export function resetStockNewsSearchStateForTests(): void {
269 more matches not shown…
Verbosity Indicators65 hits · 107 pts
SeverityFileLineSnippet
LOWserver/worldmonitor/forecast/v1/trigger-simulation.ts56 // Step 1: Pro gate (defense-in-depth).
LOWserver/worldmonitor/forecast/v1/trigger-simulation.ts62 // Step 2: queue-depth backpressure (mirrors run-scenario:50).
LOWserver/worldmonitor/forecast/v1/trigger-simulation.ts68 // Step 3: derive runId from package pointer; no UUID fallback.
LOWserver/worldmonitor/forecast/v1/trigger-simulation.ts82 // Step 4: pre-enqueue idempotency fast-path (D5). Authoritative
LOWserver/worldmonitor/forecast/v1/trigger-simulation.ts105 // Step 5: enqueue.
LOW…/worldmonitor/intelligence/v1/get-regional-snapshot.ts488 // Step 1: resolve latest pointer -> snapshot_id.
LOW…/worldmonitor/intelligence/v1/get-regional-snapshot.ts505 // Step 2: resolve snapshot_id -> full snapshot
LOW…/worldmonitor/intelligence/v1/get-regional-snapshot.ts512 // Step 3: adapt snake_case -> camelCase
LOWserver/_shared/feelgood-classifier.js156 // Step 1: HARD-NEWS VETO. Runs FIRST. Overrides every classification
LOWserver/_shared/feelgood-classifier.js164 // Step 2: STRONG URL pathname segment.
LOWserver/_shared/feelgood-classifier.js169 // Step 3: STRONG headline prefix.
LOWserver/_shared/feelgood-classifier.js172 // Step 4: CORROBORATING ≥3 DISTINCT named-group labels across all
LOWserver/_shared/pro-mcp-token.ts264 // Step 1: negative-cache short-circuit.
LOWserver/_shared/pro-mcp-token.ts267 // Step 2: Convex round-trip.
LOWserver/_shared/pro-mcp-token.ts316 // Step 3: positive — return WITHOUT caching.
LOWserver/_shared/pro-mcp-token.ts320 // Step 4: negative — write sentinel and return revoked.
LOWconvex/notificationChannels.ts86 // Step 1: scan for any existing rows with this endpoint across
LOWconvex/notificationChannels.ts105 // Step 2: upsert the current-user row by (userId, channelType).
LOWconvex/followedCountries.ts495 // Step 2: empty-input guard.
LOWconvex/followedCountries.ts500 // Step 3: defensive upper-bound on input length.
LOWconvex/followedCountries.ts509 // Step 4: ISO-2 registry filter; collect droppedInvalid in input order.
LOWconvex/followedCountries.ts520 // Step 5: canonicalize — dedupe in first-seen order. Without this, a
LOWconvex/followedCountries.ts541 // Step 6: read existing rows; build existingSet. Still required for
LOWconvex/followedCountries.ts550 // Step 7: filter against existing.
LOWconvex/followedCountries.ts568 // Step 10: insert accepted rows + atomic counter +1 each.
LOWconvex/followedCountries.ts589 // Step 12: structured warning when free users overflow cap. No
LOWconvex/followedCountries.ts604 // Step 11: return shape.
LOWconvex/__tests__/checkout.test.ts119 // Step 1: Seed product plans + customer mapping
LOWconvex/__tests__/checkout.test.ts125 // Step 2: Simulate subscription.active webhook (with wm_user_id metadata)
LOWconvex/__tests__/checkout.test.ts134 // Step 3: Query entitlements for the real user (not fallback)
LOWconvex/__tests__/checkout.test.ts140 // Step 4: Assert pro_monthly entitlements
LOWconvex/__tests__/checkout.test.ts150 // Step 1: Seed product plans + customer mapping
LOWconvex/__tests__/checkout.test.ts156 // Step 2: Simulate subscription.active webhook
LOWconvex/__tests__/checkout.test.ts165 // Step 3: Query entitlements
LOWconvex/__tests__/checkout.test.ts171 // Step 4: Assert api_starter entitlements
LOWconvex/__tests__/checkout.test.ts183 // Step 1: Seed product plans + customer mapping
LOWconvex/__tests__/checkout.test.ts189 // Step 2: Simulate webhook with billing dates both in the past (expired)
LOWconvex/__tests__/checkout.test.ts201 // Step 3: Query entitlements -- should return free tier (expired)
LOWconvex/__tests__/checkout.test.ts207 // Step 4: Assert free tier defaults
LOWconvex/broadcast/waveRuns.ts711 // Step 1: claim lease + insert waveRuns row.
LOWconvex/broadcast/waveRuns.ts729 // Step 2: stream registrations + filter (per-page) + reservoir-sample.
LOWconvex/broadcast/waveRuns.ts852 // Step 3: create the Resend segment.
LOWconvex/broadcast/waveRuns.ts866 // Step 4: chunk-persist picked rows. Each chunk is its own mutation so
LOWconvex/broadcast/waveRuns.ts885 // Step 5: mark pick complete + schedule first push batch.
LOWconvex/broadcast/audienceWaveExport.ts293 // Step 1: refuse to overlap with an existing wave.
LOWconvex/broadcast/audienceWaveExport.ts304 // Step 2: stream registrations, dedup, reservoir-sample N.
LOWconvex/broadcast/audienceWaveExport.ts355 // Step 3: create the Resend segment FIRST so we never stamp a
LOWconvex/broadcast/audienceWaveExport.ts363 // Step 4: push picked contacts to the segment, then stamp ONLY on
LOWapi/mcp/registry/rpc-tools.ts39 // Step 1: fetch current geopolitical headlines (budget: 6 s, leaves ~24 s for LLM)
LOWapi/mcp/registry/rpc-tools.ts58 // Step 2: summarize with LLM (budget: 18 s — combined 24 s, well under 30 s edge ceiling)
LOWapi/brief/public/[hash].ts138 // Step 1: resolve pointer → {userId, issueDate}.
LOWapi/brief/public/[hash].ts173 // Step 2: resolve the actual brief envelope.
LOWsrc/components/InsightsPanel.ts234 // Step 1: Signal aggregation (client-side, depends on real-time map data)
LOWsrc/components/InsightsPanel.ts263 // Step 2: Re-sort server stories by ISQ (shallow copy to avoid mutating cache)
LOWsrc/components/InsightsPanel.ts319 // Step 1: Signal aggregation + focal point detection (must run BEFORE ranking)
LOWsrc/components/InsightsPanel.ts388 // Step 2: Analyze sentiment (browser-based, fast)
LOWsrc/components/InsightsPanel.ts397 // Step 3: Generate World Brief (with cooldown)
LOWsrc/components/InsightsPanel.ts442 // Step 4: Wait for parallel analysis to complete
LOWsrc/services/followed-countries.ts734 // Step 1: parse localStorage (corruption recovery is unconditional).
LOWsrc/services/followed-countries.ts758 // Step 2: call mergeAnonymousLocal.
5 more matches not shown…
Hallucination Indicators6 hits · 85 pts
SeverityFileLineSnippet
CRITICALsrc/app/country-intel.ts1020 protests = this.ctx.intelligenceCache.protests.events.filter((e) =>
CRITICALsrc/app/country-intel.ts1030 militaryFlights = this.ctx.intelligenceCache.military.flights.filter((f) =>
CRITICALsrc/app/country-intel.ts1033 militaryVessels = this.ctx.intelligenceCache.military.vessels.filter((v) =>
CRITICALsrc/app/country-intel.ts1036 militaryFlightsInCountry = this.ctx.intelligenceCache.military.flights.filter((f) =>
CRITICALsrc/app/country-intel.ts1039 militaryVesselsInCountry = this.ctx.intelligenceCache.military.vessels.filter((v) =>
CRITICALsrc/app/country-intel.ts1102 thermalEscalations = this.ctx.intelligenceCache.thermalEscalation.clusters.filter(
AI Slop Vocabulary8 hits · 19 pts
SeverityFileLineSnippet
MEDIUMpackage-lock.json20074 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.3.tgz",
MEDIUMserver/worldmonitor/economic/v1/_bis-shared.ts45// Parse BIS CSV using papaparse — robust handling of quoted fields & metadata
MEDIUMserver/worldmonitor/market/v1/analyze-stock.ts310 // recent >= 3 → trust interval (robust to calendar-boundary drift)
MEDIUMpublic/pro/assets/index-cpXKHxXo.js63`).replace(O2,"")}function fy(e,i){return i=uy(i),uy(e)===i}function ke(e,i,s,o,u,d){switch(s){case"children":typeof o==
MEDIUMsrc/components/BreakthroughsTickerPanel.ts65 // Double the content for seamless infinite scroll
MEDIUMsrc/e2e/map-harness.ts154 throw new Error('Missing #app container for map harness');
MEDIUMsrc/e2e/mobile-map-harness.ts33 throw new Error('Missing #app container for mobile popup harness');
MEDIUMsrc/e2e/mobile-map-integration-harness.ts27 throw new Error('Missing #app container for mobile map integration harness');
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippet
HIGHdocs/api/IntelligenceService.openapi.json1{"components":{"schemas":{"ActorState":{"description":"ActorState is one geopolitical actor's leverage score in the regi
Deep Nesting1 hit · 1 pts
SeverityFileLineSnippet
LOWscripts/_gem-geojson-to-canonical.py135