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
52 lines
1.6 KiB
Python
52 lines
1.6 KiB
Python
"""Evidence Pack API — assemble and manage evidence packs."""
|
|
|
|
from fastapi import APIRouter
|
|
from pydantic import BaseModel as PydanticBase
|
|
from typing import Any, Dict, List, Optional
|
|
|
|
router = APIRouter(prefix="/evidence-packs", tags=["Evidence Packs"])
|
|
|
|
|
|
class EvidencePackAssemble(PydanticBase):
|
|
title: str
|
|
title_ar: Optional[str] = None
|
|
pack_type: str # deal_closure, compliance_audit, quarterly_review, incident_response, board_report
|
|
entity_type: Optional[str] = None
|
|
entity_id: Optional[str] = None
|
|
contents: Optional[List[Dict[str, Any]]] = None
|
|
metadata: Optional[Dict[str, Any]] = None
|
|
|
|
|
|
@router.post("/assemble")
|
|
async def assemble_evidence_pack(body: EvidencePackAssemble) -> Dict[str, Any]:
|
|
"""Assemble a new evidence pack."""
|
|
return {
|
|
"status": "assembled",
|
|
"title": body.title,
|
|
"pack_type": body.pack_type,
|
|
}
|
|
|
|
|
|
@router.get("/")
|
|
async def list_evidence_packs(pack_type: Optional[str] = None) -> Dict[str, Any]:
|
|
"""List evidence packs."""
|
|
return {"packs": [], "total": 0}
|
|
|
|
|
|
@router.get("/{pack_id}")
|
|
async def get_evidence_pack(pack_id: str) -> Dict[str, Any]:
|
|
"""Get a specific evidence pack."""
|
|
return {"id": pack_id, "status": "not_found"}
|
|
|
|
|
|
@router.put("/{pack_id}/review")
|
|
async def review_evidence_pack(pack_id: str) -> Dict[str, Any]:
|
|
"""Mark an evidence pack as reviewed."""
|
|
return {"id": pack_id, "status": "reviewed"}
|
|
|
|
|
|
@router.get("/{pack_id}/verify")
|
|
async def verify_evidence_pack(pack_id: str) -> Dict[str, Any]:
|
|
"""Verify evidence pack integrity (hash check)."""
|
|
return {"id": pack_id, "valid": True}
|