feat: add reviewer final-report schema MCP validator (Closes #391)
Expose gitea_validate_review_final_report composing the composable final-report validator with review-specific schema gates for legacy fields, merge/issue claims, blocked handoff replay, and narrative drift.
This commit is contained in:
@@ -4859,6 +4859,35 @@ def gitea_get_shell_health() -> dict:
|
||||
return native_mcp_preference.shell_health_status()
|
||||
|
||||
|
||||
@mcp.tool()
|
||||
def gitea_validate_review_final_report(
|
||||
report_text: str,
|
||||
review_decision_lock: dict | None = None,
|
||||
linked_issue_lock: dict | None = None,
|
||||
validation_report: dict | None = None,
|
||||
action_log: list[dict] | None = None,
|
||||
mutations_observed: bool = False,
|
||||
local_edits: bool = False,
|
||||
) -> dict:
|
||||
"""Read-only: machine-validate reviewer final report schema before output (#391).
|
||||
|
||||
Composes the composable final-report validator with review-specific schema
|
||||
gates (legacy fields, mutation categories, merge/issue claims, blocked
|
||||
handoff replay, and narrative/handoff consistency).
|
||||
"""
|
||||
from review_final_report_schema import assess_review_final_report_schema
|
||||
|
||||
return assess_review_final_report_schema(
|
||||
report_text,
|
||||
review_decision_lock=review_decision_lock,
|
||||
linked_issue_lock=linked_issue_lock,
|
||||
validation_report=validation_report,
|
||||
action_log=action_log,
|
||||
mutations_observed=mutations_observed,
|
||||
local_edits=local_edits,
|
||||
)
|
||||
|
||||
|
||||
@mcp.tool()
|
||||
def gitea_get_runtime_context(
|
||||
remote: str = "dadeschools",
|
||||
|
||||
Reference in New Issue
Block a user