validate_portfolio
Validates a BVF portfolio document against the AI BVF v1.0 schema. Returns true if well-formed, or lists JSON path and rule errors for malformed portfolios.
Instructions
Check that a BVF portfolio document conforms to the AI BVF v1.0 schema before you score, store, or share it. Returns { valid: true } when well-formed, or { valid: false, errors: [...] } where each error names the failing JSON path and the rule it broke. Use this to catch malformed portfolios early; use score_initiative to evaluate a single initiative, or score_portfolio to score them all in one call. Schema: https://www.aibvf.com/protocol. Pure deterministic validation — no network, auth, or side effects.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| portfolio | Yes | The portfolio document as a JSON object following the AI BVF v1.0 schema: a top-level object with an "initiatives" array, each initiative carrying the same fields score_initiative expects (industry, revenue_eur, function, ai_tier, readiness, and a scores object). Validated structurally; values are not scored here. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| valid | Yes | True when the portfolio conforms to the schema. | |
| errors | Yes | Empty when valid; otherwise one entry per schema violation. | |
| bvf_version | Yes | AI BVF protocol version validated against. |