mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2026-06-18 15:29:36 +00:00
Governance layer (14 docs): - MASTER_OPERATING_PROMPT.md — operating constitution (five planes, six tracks, policy classes) - docs/ai-operating-model.md — five-plane architecture (Decision/Execution/Trust/Data/Operating) - docs/dealix-six-tracks.md — six strategic tracks (Revenue/Intelligence/Compliance/Expansion/Operations/Trust) - docs/governance/execution-fabric.md — OpenClaw execution plane deep dive - docs/governance/trust-fabric.md — trust plane with contradiction engine + evidence packs - docs/governance/saudi-compliance-and-ai-governance.md — PDPL/ZATCA/SDAIA/NCA live controls - docs/governance/technology-radar-tier1.md — Core/Strong/Pilot/Watch/Hold classification - docs/governance/partnership-os.md — alliance lifecycle management - docs/governance/ma-os.md — M&A corporate development lifecycle - docs/governance/expansion-os.md — geographic and vertical growth - docs/governance/pmi-os.md — post-merger integration framework - docs/governance/executive-board-os.md — executive decision surfaces - docs/execution-matrix-90d-tier1.md — 90-day sprint execution plan - docs/adr/0001-tier1-execution-policy-spikes.md — 8 architectural decisions Backend (3 models, 6 services, 8 API routes): - Contradiction Engine — detect/track system conflicts - Evidence Pack System — tamper-evident audit proof with SHA256 - Saudi Compliance Matrix — live PDPL/ZATCA/SDAIA/NCA controls - Executive Room — unified executive decision surface - Connector Governance — integration health monitoring - Model Routing Dashboard — LLM provider metrics - Forecast Control Center — actual vs forecast across tracks - Approval Center — enhanced approval queue with SLA Frontend (9 components): - Executive Room, Evidence Pack Viewer, Approval Center - Connector Governance Board, Saudi Compliance Dashboard - Actual vs Forecast Dashboard, Risk Heatmap - Policy Violations Board, Partner Pipeline Board Tooling: - scripts/architecture_brief.py — preflight validation (40/40 checks pass) - Updated CLAUDE.md and AGENTS.md with governance references https://claude.ai/code/session_01W1rJthWDkasijTdXCfxVHs
58 lines
1.7 KiB
Python
58 lines
1.7 KiB
Python
"""Approval Center API — enhanced approval queue with SLA tracking."""
|
|
|
|
from fastapi import APIRouter
|
|
from pydantic import BaseModel as PydanticBase
|
|
from typing import Any, Dict, Optional
|
|
|
|
router = APIRouter(prefix="/approval-center", tags=["Approval Center"])
|
|
|
|
|
|
class ApprovalAction(PydanticBase):
|
|
note: Optional[str] = None
|
|
|
|
|
|
@router.get("/")
|
|
async def list_approvals(
|
|
category: Optional[str] = None,
|
|
priority: Optional[str] = None,
|
|
status: Optional[str] = "pending",
|
|
) -> Dict[str, Any]:
|
|
"""List pending approvals with SLA status."""
|
|
return {"approvals": [], "total": 0}
|
|
|
|
|
|
@router.get("/stats")
|
|
async def approval_stats() -> Dict[str, Any]:
|
|
"""Get approval velocity and SLA compliance."""
|
|
return {
|
|
"total_pending": 0,
|
|
"sla_compliant": 0,
|
|
"sla_warning": 0,
|
|
"sla_breach": 0,
|
|
"avg_approval_time_hours": 0.0,
|
|
}
|
|
|
|
|
|
@router.get("/my-pending")
|
|
async def my_pending_approvals() -> Dict[str, Any]:
|
|
"""Get approvals assigned to current user."""
|
|
return {"approvals": [], "total": 0}
|
|
|
|
|
|
@router.post("/{approval_id}/approve")
|
|
async def approve(approval_id: str, body: ApprovalAction) -> Dict[str, Any]:
|
|
"""Approve a request."""
|
|
return {"id": approval_id, "status": "approved", "note": body.note}
|
|
|
|
|
|
@router.post("/{approval_id}/reject")
|
|
async def reject(approval_id: str, body: ApprovalAction) -> Dict[str, Any]:
|
|
"""Reject a request."""
|
|
return {"id": approval_id, "status": "rejected", "note": body.note}
|
|
|
|
|
|
@router.post("/{approval_id}/escalate")
|
|
async def escalate(approval_id: str, body: ApprovalAction) -> Dict[str, Any]:
|
|
"""Escalate a request."""
|
|
return {"id": approval_id, "status": "escalated", "note": body.note}
|