| |
| title: "Deduct Situation" |
| description: "Ask the AI analyst to deduce the timeline and impact of a hypothetical or current event, with a configurable analytical framework and geo scope." |
| |
|
|
| The **Deduct Situation** panel (internal id `deduction`) is a one-shot AI analysis surface: you write a scenario prompt (hypothetical or current), optionally scope it to a region, and the analyst returns a structured deduction of likely timeline and impact, framed by whichever analytical framework is active. |
|
|
| |
|
|
| A form with three inputs and a result area: |
|
|
| - **Query textarea** β free-form scenario prompt. |
| - **Geo input** β optional region / country scope applied to the analysis. |
| - **Framework selector** β the panel's `FrameworkSelector` binds `panelId: 'deduction'` so the user can switch between active analytical frameworks for this run. |
| - **Submit button** β disabled while a call is in flight. |
| - **Result container** β renders the response as Markdown β sanitised HTML. |
|
|
| A 5-second cooldown (`COOLDOWN_MS = 5_000` in `src/components/DeductionPanel.ts`) prevents accidental back-to-back submissions. |
|
|
| The panel can consume the latest-news feed via an optional `getLatestNews` hook passed by the host at mount time β the news context is folded into the request so the deduction reflects today's state of the world. |
|
|
| When the analyst text includes a source probability, the panel extracts a compact badge from the rendered Markdown. Rough ranges are preserved as ranges, for example `40-55%`; single values render with an approximate marker, for example `~55%`. Badge tooltips label these as rough or approximate source probabilities, and the value is parsed from the analyst text rather than computed by the UI. Alternative-path badges are only extracted from leading percentages so incidental percentages later in a sentence do not become false precision. |
|
|
| Panel id is `deduction`; canonical component is `src/components/DeductionPanel.ts`. Title "Deduct Situation" per `src/config/panels.ts:111`. |
|
|
| |
|
|
| - **Cmd+K**: type *deduce*, *situation*, or *what if*. |
| - **Availability by variant**: registered in the **full/geopolitical** variant only, and **disabled by default** (`enabled: false, premium: 'locked'` at `src/config/panels.ts:111`). PRO users must opt into it. Not present in the tech, finance, commodity, or happy variants. |
|
|
| |
|
|
| The panel calls the **Intelligence service** via the generated `IntelligenceServiceClient` (`getRpcBaseUrl()` + `/api/intelligence/v1/*`). Under the hood it composes news context via `buildNewsContext(latestNews)` and submits the prompt with the active framework metadata from `getActiveFrameworkForPanel('deduction')`. |
|
|
| |
|
|
| Each submission is a fresh LLM call β no caching. A 5-second cooldown applies between submissions. |
|
|
| |
|
|
| **PRO (hard-locked) and opt-in.** `enabled: false, premium: 'locked'` in `src/config/panels.ts:111`. `isPanelEntitled` unlocks it when **either** a valid `WORLDMONITOR_API_KEY` is present **or** `isPro` is true (`deduction` is in the `apiKeyPanels` allowlist at `src/config/panels.ts:973`). Per the render path, `hasPremiumAccess()` is also checked before submit. |
|
|
| |
|
|
| - [Intelligence service](/api/IntelligenceService.openapi.yaml) β generated client used by the panel. |
| - Related MCP tool: [`analyze_situation`](/mcp-overview |
|
|