mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2026-06-17 23:09:35 +00:00
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
18 lines
575 B
Python
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
|