Skip to content
All research
InvestingStack / ResearchMethodology

Give your AI an investment policy: a worked portfolio example

A proposed purchase can fit an allocation range and still breach an issuer limit. We work through the holdings, denominators and missing data, with a readable policy and executable evidence.

Give your AI rules to check. A fictional portfolio example connects policy, evidence and a review record.
In this article 9 sections

The short read

  1. An €8,000 cash-funded stock purchase takes this fictional portfolio to 68% equities and 2% cash, breaching three known limits.
  2. A smaller purchase can satisfy allocation limits while the issuer check remains unknown. Complete fund contents change what can be concluded.
  3. Explicit constraints change a skfolio weight calculation. They do not establish that an AI follows a policy or that an order is authorized.

“Does this purchase fit my plan?” needs more than a company report. It needs the plan, the current holdings, the proposed amount and a definition of each limit. A persuasive answer can still use the wrong denominator or quietly assume that a fund has no exposure to the company.

This example makes those inputs inspectable. The portfolio is fictional, the limits are arbitrary teaching choices, and every instrument is invented. We executed the arithmetic checks and a small skfolio example. We did not run a separate AI-response evaluation or assess an actual investment.

Start with a decision small enough to inspect

The fictional investor has €100,000: €40,000 in GLOBAL_EQUITY, €20,000 in REGIONAL_EQUITY, €30,000 in BONDS and €10,000 in CASH. These are EUR market values at a single invented snapshot on November 12, 2026. The input is holdings.csv.

The first question is whether buying €8,000 of FICTIONAL_ACME, paid entirely from cash, fits the stated rules. We hold prices and FX constant and model no fees, taxes or pending transactions. Those assumptions keep the arithmetic narrow; an actual review would need to establish them separately.

  1. 01Policy

    Which rules apply, and who owns the decision?

    Readable instructions · versioned numerical limits

  2. 02Evidence

    What do we hold, and what is missing?

    Market values · dates · fund constituents

  3. 03Review record

    Which checks passed, failed or remain unknown?

    Calculations · source references · human decision

The workflow described here. Only the deterministic checks and optimizer examples were executed; no AI reasoning or order path was tested.

Make each rule and denominator explicit

Our readable investing.md and policy.json describe the same example. The file is our teaching format, not a standard or an Investboard export.

Rule

Equities

Inclusive limit
55–65%
Measured against
Total portfolio value

Rule

Bonds

Inclusive limit
25–35%
Measured against
Total portfolio value

Rule

Cash

Inclusive limit
5–15%
Measured against
Total portfolio value

Rule

Any instrument

Inclusive limit
At most 45%
Measured against
Total portfolio value

Rule

Any directly held stock

Inclusive limit
At most 5%
Measured against
Total portfolio value

Rule

Any equity issuer, including funds

Inclusive limit
At most 10%
Measured against
Total equity value

Rule

Holdings and fund snapshot age

Inclusive limit
0–7 calendar days
Measured against
Fixed review date

The difference between the two concentration rules matters. A directly held stock can be 5% of the total portfolio while its combined exposure through funds exceeds 10% of the equity portion. Bond issuers are outside this example’s equity-only issuer rule.

The policy also reserves the decision for a human. A readable file supplies instructions; it does not establish a live data connection, prove that a model obeys them or enforce a broker restriction. Our earlier investor-context comparison explains those separate responsibilities.

Calculate what the purchase changes

Buying from cash transfers value within the portfolio. In this zero-cost example, the total stays €100,000. The €8,000 purchase raises equities from €60,000 to €68,000 and reduces cash from €10,000 to €2,000. The new directly held stock is 8% of the total.

That breaches the 65% equity ceiling, 5% cash floor and 5% direct-stock cap. Missing fund contents do not erase these known breaches.

A €3,000 purchase instead gives 63% equities, 30% bonds, 7% cash and a 3% direct stock position. Those numbers meet their respective limits. The issuer rule still needs fund contents.

Fictional case

Current portfolio; fund contents missing

Equities / cash (% total)
60.00 % / 10.00 %
Largest issuer (% equities)
Unknown
Result
Missing information

Fictional case

Buy €8,000; fund contents missing

Equities / cash (% total)
68.00 % / 2.00 %
Largest issuer (% equities)
Unknown
Result
Rule breach

Fictional case

Buy €3,000; fund contents missing

Equities / cash (% total)
63.00 % / 7.00 %
Largest issuer (% equities)
Unknown
Result
Missing information

Fictional case

Buy €3,000; complete invented fund data

Equities / cash (% total)
63.00 % / 7.00 %
Largest issuer (% equities)
7.94 %
Result
Within these checks

Fictional case

Buy €5,000; complete invented fund data

Equities / cash (% total)
65.00 % / 5.00 %
Largest issuer (% equities)
10.77 %
Result
Rule breach

Fictional case

Buy €3,000; holdings dated October 1

Equities / cash (% total)
63.00 % / 7.00 %
Largest issuer (% equities)
7.94 %
Result
Missing information

The table is rendered from the published results.json, using the cases in scenarios.json. “Within these checks” describes only the enumerated rules, not investment merit or permission to trade.

Resolve fund contents before clearing the issuer limit

Our complete invented fund holdings allocate 4% of GLOBAL_EQUITY and 2% of REGIONAL_EQUITY to FICTIONAL_ACME. The rest is explicitly assigned to other fictional companies; each fund’s weights sum to 100%.

That adds €1,600 plus €400 of indirect ACME exposure. After the €3,000 direct purchase, total ACME exposure is €5,000 out of €63,000 of equities: 7.94%, within the fictional 10% issuer limit.

After a €5,000 purchase, the allocation checks sit exactly on their inclusive boundaries: 65% equities, 5% cash and a 5% direct stock position. But ACME totals €7,000 out of €65,000 of equities: 10.77%. The issuer rule is breached.

Without those complete fund weights, the checker reports missing information. With holdings dated October 1 instead of November 12, it also refuses to clear the snapshot-age check. An incomplete review should state both the known calculations and the unresolved question.

Ask for a review record you can challenge

The packet contains an example request asking an assistant to identify the policy version, cite input files, show before-and-after amounts and label each rule as within, breach or unknown. It tells the assistant not to invent fund constituents or change the policy.

Use the executed reference results to check its arithmetic. They are produced by Python, not a transcript or evidence of any model’s behavior. A model evaluation would require defined versions, repeated runs and a separate assessment of its answers.

The review record should also preserve assumptions about costs, valuation dates and transaction funding. A recorded conclusion can be revisited when those inputs change; a bare “yes” cannot explain its own scope.

Check the optimizer’s boundary

skfolio can express numerical weight bounds and linear constraints. We ran version 1.12.9 with CLARABEL on 240 artificial return observations, then added the allocation and instrument limits from this policy. The source-pinned weight-constraint example documents that interface.

Without our policy constraints, the minimum-variance fit assigns about 99.72% to the artificial cash proxy. With the numerical constraints, it returns approximately 45% global equity, 10% regional equity, 30% bonds and 15% cash. That illustrates how the specified feasible set changes the output. It is not an allocation recommendation, backtest or forecast.

Two failures are preserved. A constant cash series triggers NonPositiveVarianceError in the tested default covariance estimator, so the comparison uses a cash proxy with small artificial variation. A 55% equity floor combined with a 20% cap on each of the two equity funds is infeasible; the solver reports that contradiction.

The fitted weight model does not check holdings age, resolve the funds or authorize orders. Our separate reference checker handles the data rules above. Neither program tested a connection to Investboard.

Reproduce the checks

Download the evidence packet. It contains both policy languages, fictional inputs, full results, pinned dependencies, source revisions and file checksums. The English README and German instructions describe the scope and commands. An archive checksum is published separately.

# After unpacking, in the packet directory:
python3 -m unittest -v test_policy
python3 reproduce.py --policy-only --verify

# Full optimizer reproduction with Python 3.12:
python3.12 -m venv .venv
.venv/bin/python -m pip install -r requirements.lock
.venv/bin/python reproduce.py --verify --output observed-results.json

The ten boundary tests include incomplete fund weights, stale and future-dated snapshots, cash overdrafts and a deposit that changes the denominator. The policy checks use exact fractions. Solver weights are compared with the published output using a tolerance of 0.000001; platform or dependency differences can require investigation.

Try the workflow in a product

To write your own readable policy, Investboard offers a free investing.md builder. Its public demo provides a separate example of holdings beside an investment plan. The portfolio in this article is not that demo portfolio, and we did not import this packet into the product or test file-format compatibility.

David Bartas operates InvestingStack and founded Investboard. These links illustrate a product workflow owned by the publisher; the calculations and reproducible files remain available without using it.

Sources and scope

Prepared with AI assistance and executed offline on November 12, 2026 using Python 3.12.12. The packet records skfolio 1.12.9, CLARABEL 0.11.1, the resolved environment and immutable references to the reviewed README and MeanRisk implementation.

Investboard’s builder and AI toolkit documentation were checked as public product pages. No authenticated API, brokerage, AI model or real portfolio was tested. The executable checker covers this deliberately narrow fixture, not every possible policy, malformed input or financial circumstance.

Cite this research

InvestingStack (2026). Give your AI an investment policy: a worked portfolio example. InvestingStack. https://investingstack.ai/research/investment-policy-worked-example

Published: Nov 12, 2026

Evidence and downloads

Public sources last checked Nov 12, 2026. Capabilities can change after that date.

InvestingStack publishes research for information only. Nothing on this page is investment advice. Disclosures · Methodology

investor context / mandates / reproducibility / skfolio / portfolio policy

Continue reading

Consulting

Agentic systems, designed around your strategy.

Most agent frameworks are built for a demo. A session works through your strategy and current setup and maps it to an architecture: agent roles, data, models, guardrails and an implementation plan you can execute.

Not investment advice. Consulting clients get no placement or ranking influence on this site. Disclosures