Fund Reporting and Factsheets with AI: Numbers Stay in Code

Fund reporting and factsheets can be automated with AI if the language model never calculates anything. All figures, from performance and risk indicators to costs and holdings, come from the systems that produce them today and are frozen in a dated data snapshot. The model only drafts the commentary from that snapshot and the portfolio manager’s notes. Code then checks every number in the draft against the snapshot before a second person approves the release, and data, calculation code, template, prompt and model version are recorded for each document, so every factsheet can be traced and reproduced. This matters because ESMA’s guidelines on fund marketing communications explicitly include factsheets and require figures to be consistent with the fund’s legal documents, using the same methodology. This guide shows the pipeline, a number check in Python and the limits, as of November 2026.

Note: This article describes the legal situation in general terms as of the date below. It is not legal or tax advice and does not replace a review of your specific case by a lawyer or tax advisor. All information without guarantee of completeness or timeliness.

Why the LLM must not do the math in fund reporting

A language model predicts text. It can write “the fund returned 3.2% in October” whether or not 3.2 is the right figure, in the same confident tone either way. BaFin’s non-binding guidance on ICT risks in the use of AI (German version of December 18, 2025, English version of January 23, 2026), aimed mainly at CRR institutions and insurers, calls this a hallucination: a convincing statement that appears to be correct but is actually wrong. In fund reporting, three things make that unacceptable:

  • Consistency duties: ESMA’s guidelines on marketing communications under the regulation on cross-border distribution of funds name factsheets among the examples of marketing communications. Indicators and figures on risks and rewards, costs and past performance must be consistent with the fund’s legal and regulatory documents, and the methodology and values must be the same, even if the presentation differs.
  • Fixed presentation rules: past performance must state the reference period and the data source, be based on complete 12-month periods and be preceded by the statement “Past performance does not predict future returns”.
  • Reproducibility: a figure that cannot be traced to a calculation cannot be defended in an audit or a complaint.

The division of labor follows from that: systems calculate, the model writes, code checks and a person approves.

The pipeline: from systems of record to an approved factsheet

  1. Snapshot: export all figures for the reporting date from fund accounting, the performance and risk systems and master data into a frozen, dated snapshot with an ID. Nothing in the document may come from anywhere else.
  2. Calculations in code: derived values, such as the difference to the benchmark or sector weights, are computed by tested code and added to the snapshot, never by the model.
  3. Inputs for the text: the portfolio manager’s notes on the period and approved standard wording, for example risk descriptions taken from the prospectus.
  4. Draft: the model writes the commentary from the snapshot and the notes only, in a fixed structure, and names the snapshot fields it uses.
  5. Automated checks: every number in the draft is matched against the snapshot; required statements, benchmark name and reference periods are checked; forecasts and promises are flagged.
  6. Four-eyes review: a second person reads the draft against the snapshot and approves it or returns it with comments.
  7. Layout and release: the approved text and the figures go into the layout template, and the final PDF is archived with all version information.

The snapshot is the anchor of the whole process. In practice it is one file per fund and reporting date, written once by an export job, signed off by fund accounting or the performance team and never edited afterwards. A late correction means a new snapshot with a new ID and a new draft. That rule keeps the approved figures, the text and the final PDF aligned.

Typical example: a fund company produces monthly factsheets in English and German. Both drafts come from the same snapshot; the number check runs on each language, and the reviewer reads one version in full and the second against the check results and a glossary. Whether that is sufficient is a decision for the firm’s own sign-off rules.

Source-bound drafts: what the model sees and what it may say

The quality of the commentary depends less on the model than on what it is allowed to use. A source-bound draft follows four rules:

  • Closed input: the prompt contains the snapshot values, the manager’s notes and approved wording, nothing else. No web search, and no memory of earlier months unless the earlier factsheet is supplied as a document.
  • Placeholders instead of numbers: where possible, the model writes field names such as {perf_1m} and code fills in the formatted values. Where free text with numbers cannot be avoided, the number check catches mismatches.
  • Excluded content: forecasts, return expectations and comparisons not backed by the snapshot are excluded in the instructions and flagged by the checks.
  • Structured output: the draft comes back as separate fields, for example market review and portfolio activity, so each block can be checked on its own.

Structured outputs help with the last point but do not guarantee correct content. Anthropic’s documentation, as of November 2026, describes them as constraining responses to a specific schema so that the output is valid and parseable, and lists numerical constraints such as minimum and maximum among the unsupported schema features. Range and plausibility checks therefore stay in the firm’s own code, whichever provider is used.

A number check in Python

The script below extracts every number from a draft and compares it with the values in the snapshot, allowing for thousands separators, a decimal comma in a German version and rounding to the displayed precision. Anything it cannot match is reported for review. It is a minimal example, tested with Python 3.9 and 3.12 using the standard library only; it reads two local files and changes nothing.

# number_check.py: lists numbers in a draft that do not match the data snapshot.
# Standard library only; reads two local files and changes nothing.
import json
import re
import sys
from decimal import ROUND_HALF_UP, Decimal

NUM = re.compile(r"\d+(?:[.,]\d+)*")
DATE = re.compile(r"\b\d{4}-\d{2}-\d{2}\b|\b\d{1,2}\.\d{1,2}\.\d{4}\b")  # dates are checked separately


def read_number(raw, decimal_comma):
    """'1,234.5' in English or '1.234,5' in German becomes Decimal('1234.5')."""
    thousands, point = (".", ",") if decimal_comma else (",", ".")
    s = raw.replace(thousands, "")
    if s.count(point) > 1:
        return None, 0
    places = len(s.split(point)[1]) if point in s else 0
    return Decimal(s.replace(point, ".")), places


def snapshot_numbers(node):
    """All numbers in the snapshot; percentages are stored as displayed (3.2, not 0.032)."""
    if isinstance(node, dict):
        for value in node.values():
            yield from snapshot_numbers(value)
    elif isinstance(node, list):
        for value in node:
            yield from snapshot_numbers(value)
    elif isinstance(node, bool):
        return
    elif isinstance(node, (int, float)):
        yield abs(Decimal(str(node)))
    elif isinstance(node, str):
        for digits in re.findall(r"\d+", node):  # e.g. the reporting date
            yield Decimal(digits)


def check(draft, snapshot, decimal_comma=False):
    known = list(snapshot_numbers(snapshot))
    issues = []
    for match in NUM.finditer(DATE.sub(" ", draft)):
        value, places = read_number(match.group(), decimal_comma)
        if value is None:
            issues.append(f"cannot read '{match.group()}'")
            continue
        step = Decimal(1).scaleb(-places)
        if not any(k.quantize(step, rounding=ROUND_HALF_UP) == value for k in known):
            issues.append(f"'{match.group()}' is not in the snapshot")
    return issues


if __name__ == "__main__":
    with open(sys.argv[1], encoding="utf-8") as f:
        draft = f.read()
    with open(sys.argv[2], encoding="utf-8") as f:
        snapshot = json.load(f)
    issues = check(draft, snapshot, "--decimal-comma" in sys.argv)
    print(f"{len(issues)} unmatched numbers")
    for issue in issues:
        print(" -", issue)
    sys.exit(1 if issues else 0)

Run it with python3 number_check.py draft.txt snapshot.json, adding --decimal-comma for German drafts. Exit code 1 signals unmatched numbers, so the check can block the next pipeline step. Typical example: a snapshot with a one-month return of −1.24% for the fund and −0.9% for the benchmark, and a draft claiming the fund “outperformed by 0.5 points”. The script flags 0.5, because the difference was never calculated and stored in the snapshot.

Know the limits of such a check. It matches values, not fields, so a correct number in the wrong place passes. It ignores signs, so “gained” and “lost” need the reviewer or a field-level check. It rounds half up, which must match the rounding rule of the reporting system, and it skips dates, which need their own check.

Four-eyes approval and versioning

The reviewer should approve a fixed object, not a moving draft. For each document, the pipeline records:

ItemWhat is storedWhy
Data snapshotID, timestamp, source systems, file hashProves which figures were used
Calculation codeVersion of the scriptsReproduces derived values
Template and standard wordingVersion of layout and approved text blocksShows which disclaimers were current
Prompt and modelPrompt version, provider, model name and versionExplains changes in wording between periods
Draft and checksRaw model output, number check result, flagged phrasesShows what the automation caught
ReviewReviewer, comments, changes, approval timeMakes the four-eyes principle verifiable
Final documentPDF, hash, publication dateLinks what investors saw to all of the above

The reviewer should not be the person who wrote the commentary notes, and approval rights belong in the access system rather than in an email thread. BaFin’s AI guidance notes that version control systems make it possible to trace errors and reproduce results; applying the same discipline to prompts and templates makes a change in wording between two months explainable. ESMA’s 2024 statement on AI in investment services points the same way: it expects investment firms to keep records on the use of AI, including data sources and modifications over time.

Limits and risks of AI-assisted fund reporting

  • Wrong source data: the pipeline faithfully reproduces errors in the snapshot. Data checks before drafting matter more than any check afterwards.
  • Meaning, not just numbers: a draft can contain only correct numbers and still mislead, for example by calling a month strong in which the fund lost less than its benchmark. The reviewer reads for meaning.
  • Model changes: a provider update can change tone and structure. A small test set of past months, run before switching to a new model version, shows the difference.
  • Translations: a second language adds room for subtle errors in risk wording; fixed approved blocks for risks and disclaimers reduce it.
  • Confidential data: holdings and flows are confidential until published; only approved tools and data paths should see them.
  • Labeling: since August 2, 2026, Article 50(4) of the AI Act requires deployers to disclose AI-generated text that is published to inform the public on matters of public interest. Whether a fund factsheet, which is product information, falls under this at all is doubtful. In any case, the duty does not apply where the text has undergone human review or editorial control and a natural or legal person holds editorial responsibility for the publication. A documented review and approval by a named person is therefore the relevant point, and the firm should record its position.
  • Approval stays human: automating the release itself would remove the control that makes the process defensible.

Next steps: from one factsheet to a reporting pipeline

  1. Pick one document type and one fund range with stable data, for example monthly factsheets.
  2. Map every figure on the document to its source system and field; that list becomes the snapshot schema.
  3. Collect the approved standard wording and the presentation rules that apply to the document, such as those for past performance.
  4. Build the snapshot export and the number check before writing the first prompt.
  5. Run the pipeline in parallel with the manual process for a few reporting cycles and record every correction the reviewer makes.
  6. Decide on the switch together with the people who sign off today, based on that correction record.

The same pattern of figures from code and text from the model works for investor letters and board reports. Research questions follow similar rules, as shown in the article on an AI research assistant for portfolio managers.

Frequently asked questions

Can AI write fund factsheets?

AI can draft the commentary, provided the figures come from the systems that calculate them and code checks every number in the draft. The model works only from an approved data snapshot and the portfolio manager’s notes, and a second person approves the result. ESMA’s guidelines name factsheets among the examples of marketing communications, so their figures must be consistent with the fund’s legal documents.

Why should a language model not calculate fund performance?

Because a language model generates plausible text and can state a wrong figure with full confidence. Performance, risk and cost figures in fund documents must match the methodology and values of the legal documents and must be reproducible in an audit. Calculation systems and tested code deliver that; a language model does not. Let the model describe figures that code has calculated and verified.

What does the four-eyes principle mean for AI-generated reports?

A second, independent person reviews the AI-assisted draft against the data snapshot and approves it before release. To make that review meaningful, the approver needs a fixed version of the draft, the number check result and the list of flagged phrases, and the approval should be recorded with name and time. The approver should not be the person who supplied the commentary notes.

What should be versioned in an AI reporting pipeline?

Everything that can change the output: the data snapshot, the calculation code, the layout template and approved text blocks, the prompt, the model provider and version, the raw draft, the check results, the review with its changes and approval, and the final document with its hash. With these records, any published factsheet can be traced and reproduced, and changes in wording between periods can be explained.

Sources and status

As of November 2026. Third-party rules, prices and APIs may have changed since; the providers' current documentation and the official texts are authoritative.

This article is also available in German: Fondsreporting mit KI: Factsheets prüfbar automatisieren.

Want to automate fund reporting without losing control of the figures? Get in touch — a free intro call clarifies data sources, checks, approval steps and a realistic pilot. More: AI consulting for financial services.