Skip to content

Portfolio Horizon

Portfolio analysis on one rule: deterministic code computes the figures, the model narrates them

Live portfolio revaluation, risk analysis and probabilistic scenario reading, with the Central Bank of Brazil's dated PTAX rate and every public claim bounded by scope and date.

Portfolio Horizon landing page on desktop: the headline Your portfolio, with every figure traceable, above three traits, traceable wealth, official PTAX exchange rate and explainable AI. It shows the promise the system is built around.
Screenshot at desktop width
Portfolio Horizon landing page on a phone: the same headline and the three traits wrapped over two rows, showing that the public page reads at phone width.
Screenshot at phone width

The problem

A wealth report is a list of numbers, and most of those numbers arrive without a source, a date or a method. A rate may be yesterday's. A valuation may rest on a price nobody can trace. When a language model is placed in front of such a report, the risk grows: the model can produce a fluent sentence with a figure that no calculation supports.

Portfolio Horizon, described on its own page as a Private Wealth Intelligence System, is built on one rule: the language model is never asked to compute a figure, only to narrate the figures it receives. What has been verified is bounded: within the scope of the operational results verified on 31 July 2026, the figure shown states its function, provider and reference time.

Portfolio Horizon is not investment advice and makes no performance claim.

What was built

The public page states what the system does: live portfolio revaluation, risk analysis and probabilistic scenario reading. Its headline is "Your portfolio, with every figure traceable." It names three traits: traceable wealth, the official PTAX exchange rate and explainable AI.

Six commitments are listed on the page: source and time on the figure shown; a dated official PTAX exchange rate; horizon and limits per forecast; unavailability declared; explicit suitability; probabilistic reading. Four tiles repeat the idea in shorter form: PTAX, the dated official rate; sources, with origin and time visible; gaps, declared rather than hidden; code, meaning deterministic calculations.

The portfolio shown on the public page is an illustrative example. Its composition is labelled fictitious and the demonstration runs on synthetic data. No client portfolio is shown and none is claimed.

How it works

The project's design rule is that every number shown comes from deterministic functions in its quantitative core, and that the language model only narrates the figures it receives. What has been measured is narrower: exposures, concentration, liquidity, parametric value at risk and the scenario engine are covered by tests to the cent (run of 31 July 2026). The language model sits after that stage: it receives the computed figures and writes the narrative around them.

Portfolio Horizon: deterministic core computes, the language model narrates, the output boundary checksPTAXCentral BankMarket dataProvider, timePortfolioPositionsDeterministic coreExposureConcentrationLiquidityParametric VaRScenariosCovered by testsFiguressource, date, methodLLMnarrates onlyOutput gatefail closedby designReportfigures, trailINPUTSCOMPUTENARRATEOUTPUT
Scroll sideways to see the whole diagram.
Portfolio Horizon: deterministic core computes, the language model narrates, the output boundary checks

The exchange rate follows a resolution chain. The exchange rate service asks the Central Bank of Brazil for the closing PTAX of the day; if there is none, it walks back up to four previous business days; if that also fails, it serves a labelled local reference. The label shown declares what the number is, with its date and its source. On 24 September 2026 the public page showed the previous business day state, with the words "Latest available PTAX. Official close from the last available business day. Not an intraday quote."

Between the model and the reader there is an output boundary designed to fail closed. Across the documented adversarial suite executed on 31 July 2026, that boundary released zero unsupported financial numbers under the specified threat model: adversarial prompt payloads against the orchestration lane, with the model output never rendered directly to the client. The public profile interview route is outside that bound and carries no claim.

Within the scope of the operational results verified on 31 July 2026, the figure shown states where it came from: its function, provider and reference time. Within the scope verified on the same date, the figure shown in the report opens the evidence trail that produced it. Forecasts are treated with the same discipline. Within the scope verified on 31 July 2026, the forecast shown comes with a horizon, methodology and limits. The page puts it in five words: the AI justifies, you decide.

Evidence

The project keeps an external claims allowlist, decided on 31 July 2026, and a withheld register that records every statement taken out and why; the live page's footer points to that allowlist. The enforcement is mechanical: a lint fails if a permitted wording is missing from the allowlist or if a withheld formulation reappears on a public surface, and every reproduction command in the allowlist is re-run and its result recorded.

The numbers that survive that process are test counts, each tied to a command and a date. On 31 July 2026 the run behind the deterministic core claim passed 67 tests across 6 files; that run covers the quantitative core, the PTAX chain and the landing claims. The PTAX resolution chain on its own passed 11 tests, which are part of those 67. The adversarial suite behind the fail-closed output boundary passed 415 tests across 11 files, and the boundary released zero unsupported financial numbers under the specified threat model.

The page's own footer states the limit of what it claims: "A forecast is not a promise. Within the scope verified on 31/07/2026, the predictive screen states horizon, confidence and limits." No performance, return or forecast accuracy figure is published, because none is in the allowlist.

  • 415tests passed in one adversarial run against the fail-closed output boundary, 11 filesSource: Portfolio Horizon claims register, run of 31 July 2026
  • 67tests passed on the run that covers the quantitative core, the PTAX chain and the landing claims, 6 filesSource: Portfolio Horizon claims register, run of 31 July 2026
  • 11tests passed on the PTAX resolution chain from the Central Bank of BrazilSource: Portfolio Horizon claims register, run of 31 July 2026
  • 0unsupported financial numbers released by the output boundary in that suite, under the specified threat modelSource: Portfolio Horizon claims register, run of 31 July 2026

Built with

Portfolio Horizon is a web application written in TypeScript: React 19 with Vite on the client, Express on the server, Tailwind CSS for styling and Zod for validation. The server includes a PostgreSQL client (pg) and the Supabase client. Vitest runs the unit tests named in the allowlist and Playwright runs the end-to-end tests. The live site runs the same stack: the response header names Express and the page loads one Vite bundle.

  • React 19
  • TypeScript
  • Vite
  • Express
  • Tailwind CSS
  • Zod
  • PostgreSQL client (pg)
  • Supabase
  • Vitest
  • Playwright

What it demonstrates

Define. The page states the aim in its own words, "a wealth reading with provenance, horizon and limits", with gaps declared rather than hidden, and the part of that aim that was verified is bounded by scope and date.

Instrument. The evaluation exists in two layers. The quantitative core is covered by unit tests to the cent and the exchange rate chain by its own unit tests, both on a run dated 31 July 2026. The output boundary is covered by an adversarial suite with a stated threat model. Above the code, the claims themselves are instrumented: an allowlist of exact wordings, a withheld register, and a lint that fails when either is breached.

Integrate. The official PTAX rate, the provenance label on the figure shown, the evidence trail and the declared unavailability are part of the product, not of a slide about it.

Hand over. The allowlist and the withheld register are the runbook for what may be said. They outlive the build and they can be re-run by anyone with the repository, which is how NASCIA prefers to leave a system: with the tests, the limits and the words all written down.

Not investment advice. Nothing on this page is a recommendation to buy or sell any asset.

More work

  • Careers Studio

    From a scheme of work to UK careers guidance a teacher can review

    Read the case study
  • Enterprise finance agents

    A monthly income statement's first line, from raw ERP data, validated against six months of history

    Read the case study

Bring us the process that keeps breaking.

One conversation is usually enough to tell whether a system like this belongs in your operation, what it should be measured against, and what it would take to keep it running.