system-prompts-and-models-o.../salesflow-saas/backend/app/api/governance_http.py
Sami Assiri 1ceeea9004 feat(tier1): finalize production activation and revenue execution pack
Complete Tier-1 closure follow-through by wiring docs governance gates, RC release readiness checks, source-of-truth enforcement, executive weekly contract surface, and go-live severity notes.
Add full go-live revenue execution documentation set (production activation, real production playbook, trust expansion, first 3 clients, live deployment, and automated revenue engine) and register all canonical paths.

Made-with: Cursor
2026-04-17 14:13:57 +03:00

18 lines
575 B
Python

"""HTTP helpers for Class B decision bundle enforcement (Tier-1 runtime)."""
from __future__ import annotations
from typing import Any, Dict
from fastapi import HTTPException
from app.services.core_os.decision_plane_contracts import validate_class_b_bundle
def http_validate_class_b_bundle(bundle: Dict[str, Any]) -> None:
"""Raise 422 if bundle fails Tier-1 Class B gate (including correlation for external_*)."""
try:
validate_class_b_bundle(bundle)
except ValueError as exc:
raise HTTPException(status_code=422, detail=str(exc)) from exc