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:
@@ -43,7 +43,7 @@ TECHNIQUE_STATUSES = ("verified", "partial", "blocked")
|
||||
CONFLICT_STATUSES = ("unresolved", "partial", "resolved")
|
||||
REPORT_ACTION_PRIORITIES = ("now", "next", "watch")
|
||||
V1_CHART_IDS = ("D1", "D9", "D10")
|
||||
CHART_IDS = ("D1", "D2", "D9", "D10", "D11", "D24")
|
||||
CHART_IDS = ("D1", "D2", "D6", "D8", "D9", "D10", "D11", "D24", "D30")
|
||||
HOUSE_NUMBERS = tuple(range(1, 13))
|
||||
|
||||
FAILURE_CODES = (
|
||||
@@ -797,7 +797,13 @@ def validate_report_document(document: Any) -> ValidationResult:
|
||||
_validate_current_phase(result, document.get("currentPhase"))
|
||||
_validate_action_notes(result, document.get("actionNotes"))
|
||||
|
||||
charts = _check_array(result, "charts", document.get("charts"), 3 if version == V1_SCHEMA_VERSION else 6, 1)
|
||||
charts = _check_array(
|
||||
result,
|
||||
"charts",
|
||||
document.get("charts"),
|
||||
3 if version == V1_SCHEMA_VERSION else len(CHART_IDS),
|
||||
1,
|
||||
)
|
||||
if charts is not None:
|
||||
for index, chart in enumerate(charts):
|
||||
_validate_chart(result, f"charts[{index}]", chart, version)
|
||||
|
||||
Reference in New Issue
Block a user