fix(report): bind v2 chart cap to CHART_IDS.length

Five-theme personal_full assembled nine charts after health vargas landed, but the document schema still capped at six. Bind the count to the enum, align JSON/Python contracts, and log final-parse paths without values.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Jesse_Chen
2026-09-04 21:33:27 +08:00
co-authored by Cursor
parent d2955c6280
commit 6119469069
13 changed files with 279 additions and 21 deletions
@@ -109,10 +109,13 @@
"enum": [
"D1",
"D2",
"D6",
"D8",
"D9",
"D10",
"D11",
"D24"
"D24",
"D30"
]
},
"title": {
@@ -736,7 +739,8 @@
"$ref": "#/definitions/chart"
},
"minItems": 1,
"maxItems": 6
"maxItems": 9,
"description": "maxItems must equal CHART_IDS.length in frontend/src/lib/personal-report-contract.ts"
},
"thematicNarrative": {
"type": "array",