Grand Thera Grand Thera Docs
Public documentation

What is Grand Thera?

Grand Thera builds decision-grade AI for environments where critical decisions cannot wait for the next report. The platform connects operational data, analytical models, and specialized AI agents so teams can detect shifts, understand impact, and act before exposure reaches the P&L.

Documentation scope

This page documents Grand Thera's public product narrative, integration surface, and open engineering material. Production source code, production calibration layers, orchestration systems, governance internals, and client-specific decision workflows remain closed.

Why Grand Thera exists

Most enterprise systems can show what happened. Fewer systems can tell decision makers what changed, why it matters, and what should happen next. Grand Thera is designed for decision-critical environments where fragmented information, uncertain signals, and delayed execution create measurable financial risk.

The goal is not another dashboard layer. The goal is a reliable operating layer for direction: one that turns data into interpretable signals, connects those signals to agents, and supports action with traceable context.

Detect Identify regime shifts, anomalies, and KPI movement before they become executive surprises.
Diagnose Connect fragmented ERP, market, operational, and model outputs into one decision context.
Prescribe Surface corrective paths through specialized AIT Agents aligned to business objectives.
Execute Move from insight to coordinated action while preserving governance and operational control.

Core products

Grand Thera's public positioning is organized around a decision-grade ecosystem. The following concepts are safe to reference publicly and provide the vocabulary for this documentation.

Unified data layer

TheraOS

The decision operating system for critical environments. It unifies ERP systems, databases, models, and algorithms into a governed decision layer deployed within the client's infrastructure.

Agent layer

AIT Agents

Purpose-built AI agents that predict, prescribe, and help execute next actions across complex operational and financial workflows.

Financial response

TroIA

An orchestration layer for detecting regime shifts, tracing financial impact, and coordinating corrective responses across decision agents.

Open Engineering

Open engineering artifacts

Small, transparent repositories that share engineering discipline without exposing Grand Thera's closed production stack or client-specific intellectual property.

Open Engineering vs Closed Production

Grand Thera can publish open engineering artifacts while keeping product implementation closed. This separation keeps the public surface useful for developers, investors, and partners without leaking the systems that create the company's operational edge.

Open engineering surface Closed production surface
Documentation pages, API entry points, public GitHub organization, example notebooks, and auditable research demos. Production source code, internal services, client deployments, private data contracts, and orchestration infrastructure.
Transparent modeling examples such as regime detection, stochastic forecasting, and standalone analytical dashboards. Production calibration layers, model selection systems, agent policies, monitoring loops, and enterprise governance workflows.
Reusable vocabulary for how Grand Thera explains decision-grade AI to technical audiences. Client-specific decision logic, integrations, deployment topology, and operational playbooks.

Decision-critical use cases

The ecosystem is built for teams that operate with fragmented data, high uncertainty, and real business consequences. Public examples should describe outcomes and architecture patterns, not private implementation details.

Commercial control

ERP fragmentation to decision visibility

Consolidate commercial, operational, and portfolio indicators into a unified view for faster performance diagnosis.

Risk sensing

Regime-shift monitoring

Detect market or operational state changes and estimate whether current behavior is stable, deteriorating, or entering a new response pattern.

Financial impact

P&L exposure prevention

Trace signals back to likely financial impact and route corrective actions before indicators become lagging losses.

Agentic analytics

Decision execution support

Give specialized agents a governed context for recommending actions, validating assumptions, and closing the loop after execution.

Finance Energy Operations Revenue Executive intelligence AI-enabled workflows

Applied Case

FX Risk · FP&A · Treasury

USD/BRL Forecast and Regime Risk

Within the Grand Thera architecture, TheraOS consolidates governed data and AITs perform the analytical applications. This public case focuses on the application layer: an already prepared daily USD/BRL series is sent directly to AIT Neural SDE and AIT Regimes Detection to produce a 30-day distributional forecast, tail-risk probabilities, current market regime, and regime-transition risk.

For FP&A and treasury teams, the case supports budget-rate assumptions, hedge sizing, covenant headroom, and the probability that unhedged dollar costs exceed plan.

Market input 252 trading days USD/BRL daily close
Forecast horizon 30 calendar days Approximately 21 trading steps
Decision threshold USD +5% BRL depreciation risk
Saved run · 2026-06-03 1.8% P(USD appreciates >5%, final)
90% forecast band -4.58% to +3.84% Terminal return range
Regime-change risk 77.4% Probability within 21 steps
01

Frame the financial decision

Define the planning horizon, tail threshold, and model controls.

THERA_BASE_URL = "https://api.thera-os.com"

LOOKBACK_TRADING = 252
HORIZON_CALENDAR = 30
HORIZON_TRADING = round(HORIZON_CALENDAR * 21 / 30)
THRESHOLD = 0.05

FC_SIMULATIONS = 4000
RG_N_REGIMES = "auto"
RG_AUTO_METHOD = "bic"
02

Prepare the USD/BRL input series

Load public market data and convert it into the price and date arrays sent directly to the AIT applications.

CLOSE, LOGRET, DATA_SOURCE = load_usdbrl()

S0 = float(CLOSE.iloc[-1])
PRICES = [float(x) for x in CLOSE.values]
DATES = [d.strftime("%Y-%m-%d") for d in CLOSE.index]

vol_annual = float(LOGRET.std()) * math.sqrt(252) * 100
03

Call the AIT applications

Use the public API to call AIT Regimes Detection and AIT Neural SDE directly.

THERA = TheraOSClient(THERA_BASE_URL)

raw_regime = THERA.regime_analyze(
    PRICES, DATES, RG_N_REGIMES, RG_WINDOW, RG_AUTO_METHOD
)

targets = [
    round(S0 * (1 + THRESHOLD), 6),
    round(S0 * (1 - THRESHOLD), 6),
]

raw_fc = THERA.forecast_run(
    PRICES, HORIZON_TRADING, FC_SIMULATIONS, targets,
    FC_DRIFT_SCALE, FC_DIFFUSION_SCALE,
    FC_MEAN_REVERSION, FC_ROLLING_WINDOW,
)
04

Translate forecast output into exposure risk

Normalize the terminal distribution and separate final probability from barrier-touch probability.

FORECAST = parse_forecast_response(raw_fc, S0, THRESHOLD)

print("P(USD appreciates >5%, final):",
      FORECAST["p_above_threshold"])
print("P(touches +5% during horizon):",
      FORECAST["p_above_reached"])
print("90% terminal band:",
      FORECAST["q05"], FORECAST["q95"])
05

Measure regime-transition risk

Read the current state, horizon transition probabilities, and expected dwell time.

REGIME = parse_regime_response(raw_regime, LOGRET.values)

P_BULL_H, P_TO_BULL_NEXT, DWELL = regime_horizon_probs(
    REGIME, HORIZON_TRADING
)

CHANGE = regime_change_probs(REGIME, HORIZON_TRADING)
print(REGIME["current_label"], CHANGE["p_change_h"])
06

Produce the decision output

Generate the quant report and the three analytical views used in the notebook.

print_report(
    S0, HORIZON_CALENDAR, HORIZON_TRADING, THRESHOLD,
    DATA_SOURCE, REGIME, FORECAST, CHANGE,
    P_BULL_H, P_TO_BULL_NEXT, DWELL, LOGRET.values,
)

plot_dashboard(
    CLOSE, LOGRET.values, S0, HORIZON_CALENDAR,
    HORIZON_TRADING, THRESHOLD,
    REGIME, FORECAST, CHANGE, P_BULL_H,
)

Architecture pattern

The public architecture can be described as a decision loop. Each layer has a clear role, and production details can stay abstract while the engineering intent remains understandable.

1
Unify the decision context Bring fragmented operational data, financial indicators, models, and business rules into TheraOS.
2
Model the current state Detect regimes, anomalies, uncertainty, and signal movement with transparent analytical outputs.
3
Route to specialized agents Use AIT Agents to interpret the signal, evaluate options, and propose corrective actions.
4
Coordinate response Use TroIA-style orchestration to connect actions to financial impact, ownership, and follow-up.
5
Learn from the outcome Feed execution results back into the decision layer so signals and actions become more useful over time.

Deployment posture

Public material should keep deployment claims precise. Grand Thera describes TheraOS as deployable within client infrastructure, with critical data and decision workflows kept under client control. The docs should avoid exposing topology, credentials, data schemas, private integration contracts, or production diagrams.

Security note for public docs

Write about governance, traceability, and deployment posture at the pattern level. Do not include internal URLs, secrets, customer identifiers, private endpoint shapes, or implementation-specific architecture diagrams.

Getting started

Use the public surface to understand the ecosystem, inspect the open engineering material, and explore the API documentation entry point.

1
Read the product overview Start with Grand Thera's public website to understand the decision-grade AI positioning.
2
Explore the Open Engineering APIs Open the API docs to inspect the current public API surface for the Open Engineering demonstrations.
3
Install the Python SDK Use the public thera-os package to call forecast, regime, and symbolic endpoints directly from Python.
4
Review the GitHub organization Use the public repositories as open engineering references, not as a disclosure of production systems.
5
Run a local demo Generate the standalone dashboard or call the API through the SDK to inspect the analytical workflow.

Python SDK quick start

The public Python client is available as the thera-os package. Install it, create a client, and call the same forecast, regime, symbolic, and upload endpoints shown in the API documentation.

python -m venv .venv
        source .venv/bin/activate
        python -m pip install thera-os
from thera_os import TheraOSClient

client = TheraOSClient()

forecast = client.forecast_run(
    series=[100.0, 101.0, None, 102.5, 103.2],
    steps=30,
    simulations=500,
    targets=[110.0],
)

regime = client.regime_analyze(
    prices=[100.0, 101.0, 102.2, 103.1, 104.4],
    window=5,
    n_regimes="auto",
    auto_method="bic",
)

print(forecast["terminal_summary"])
print(regime["summary"])

Open Engineering

Open Engineering is the public surface for Grand Thera's demonstration APIs, dashboards, Python SDK, and inspectable engineering artifacts. These examples are intentionally transparent: they show how the analytical layer behaves without releasing closed production systems.

APIs in this documentation

The public API documentation is tied to Open Engineering demonstrations. It is the right place to inspect demo endpoints, Python SDK usage, request shapes, and integration examples, not a disclosure of closed production services.

Python SDK + dashboard

AIT Regimes Detection

K-Means initialization, Gaussian Markov Switching, regime probability heatmaps, transition diagnostics, and interactive inspection.

Python SDK
from thera_os import TheraOSClient

client = TheraOSClient()

regime = client.regime_analyze(
    prices=[100.0, 101.0, 102.2, 103.1, 104.4, 105.8],
    dates=["2026-01-01", "2026-01-02", "2026-01-03", "2026-01-04", "2026-01-05", "2026-01-06"],
    window=5,
    n_regimes="auto",
    auto_method="bic",
)

latest = regime["rows"][-1]
print(latest["label"], latest["probabilities"])
print(regime["transition_matrix"])

The SDK wraps regime labels, probabilities, uncertainty, model criteria, and transition matrices.

API request
const response = await fetch(
  "https://api.thera-os.com/open-engineering/regimes/analyze",
  {
    method: "POST",
    headers: { "Content-Type": "application/json" },
    body: JSON.stringify({
      prices: [100.0, 101.0, 102.2, 103.1, 104.4],
      window: 5,
      n_regimes: "auto",
      auto_method: "bic"
    })
  }
);

const result = await response.json();
console.log(result.latest_regime, result.transition_matrix);

Use the API docs for the exact demo endpoint contract as the Open Engineering surface evolves.

Python SDK + dashboard

AIT Neural SDE

Missing-value reconstruction, Neural SDE-style drift and diffusion, Monte Carlo paths, target probabilities, and 2D/3D density views.

Python SDK
from thera_os import TheraOSClient

client = TheraOSClient()

forecast = client.forecast_run(
    series=[100.0, 101.0, None, 102.5, 103.2, 104.0],
    steps=100,
    simulations=1000,
    targets=[112.0, 116.0, 120.0],
)

print(forecast["forecast_mean"][-1])
print(forecast["terminal_summary"])
print(forecast["target_probabilities"])

The SDK returns reconstructed series, forecast bands, simulation paths, terminal distributions, and target probabilities.

API request
const response = await fetch(
  "https://api.thera-os.com/open-engineering/neural-sde/forecast",
  {
    method: "POST",
    headers: { "Content-Type": "application/json" },
    body: JSON.stringify({
      series: [100.0, 101.0, null, 102.5, 103.2],
      steps: 100,
      simulations: 1000,
      targets: [112.0, 116.0, 120.0]
    })
  }
);

const result = await response.json();
console.log(result.forecast_mean, result.target_probabilities);

Use the API docs for the exact demo endpoint contract as the Open Engineering surface evolves.

Symbolic regression

Symbolic Regression Workbench

Interactive variable selection, symbolic model fitting, scenario controls, formula rendering, residual diagnostics, and dependence analysis.

Python SDK
from thera_os import TheraOSClient

client = TheraOSClient()

data = [
    {"price": 10.0, "volume": 120.0, "volatility": 0.18, "margin": 0.31},
    {"price": 11.2, "volume": 132.0, "volatility": 0.21, "margin": 0.34},
    {"price": 9.8, "volume": 118.0, "volatility": 0.16, "margin": 0.29},
]

model = client.symbolic_fit(
    data=data,
    dependent="margin",
    independents=["price", "volume", "volatility"],
    max_terms=6,
)

print(model["formula_latex"])
print(model["metrics"])

The SDK exposes symbolic formulas, selected terms, residuals, fitted values, and model diagnostics.

API request
const response = await fetch(
  "https://api.thera-os.com/open-engineering/symbolic/fit",
  {
    method: "POST",
    headers: { "Content-Type": "application/json" },
    body: JSON.stringify({
      target: "margin",
      features: ["price", "volume", "volatility"],
      maxTerms: 6,
      selectionCriterion: "bic"
    })
  }
);

const model = await response.json();
console.log(model.formula, model.metrics);

Use the API docs for the exact demo endpoint contract as the Open Engineering surface evolves.

python -m venv .venv
        source .venv/bin/activate
        python -m pip install thera-os
        
        python - <<'PY'
        from thera_os import TheraOSClient
        
        client = TheraOSClient()
        print(client.health())
        PY

The generated HTML dashboards can be opened locally or through the public demo links above and used as inspectable examples of modeling assumptions, uncertainty visualization, and engineering care.

Resources