Portfolio compare (paired Revise-step comparison)
portfolio_compareCompare two portfolios (A = reference, B = candidate revision) on IDENTICAL simulated substrate paths — a paired design, so every delta is attributable to the weights, not seed noise. Returns drawdown-distribution deltas (median/worst/quantiles), probability-weighted scenario summaries, per-scenario outcome deltas, risk-concentration shift (Euler decomposition), and which diversification failures the candidate introduces or resolves. revision_required flags a candidate that deepens the worst-path drawdown or introduces a new diversification failure — the case where a revision made robustness worse. Provide holdings_a / holdings_b as lists of {asset, weight}. Descriptive, not advisory; neither portfolio is recommended or ranked.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| holdings_a | Yes | Reference portfolio A. Portfolio legs: list of {asset, weight} objects, e.g. [{'asset': 'SPY', 'weight': 0.6}, {'asset': 'TLT', 'weight': 0.4}]. Weights are normalised to sum to 1; assets must be in the substrate universe. | |
| holdings_b | Yes | Candidate revision B, same shape — evaluated on paths identical to A's, so every delta is attributable to the weights. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |