Skip to main content

Official Python SDK for Ascend AI Governance Platform

Project description

ASCEND AI SDK

Official Python SDK for Ascend AI Governance Platform — enterprise AI governance and enforcement for regulated industries.

Govern what your AI agents do — in real time. ASCEND intercepts every agent action, scores risk using CVSS v3.1/NIST 800-30/MITRE ATT&CK, enforces your policies, and maintains an immutable audit trail for compliance.

Built for financial services, healthcare, and government contractors.


Install

pip install ascend-ai-sdk

Quick Start

from ascend import AscendClient, FailMode

client = AscendClient(
    api_key="your_api_key",
    api_url="https://pilot.owkai.app",
    agent_id="my-agent",
    agent_name="My Agent",
    fail_mode=FailMode.CLOSED
)

# Govern an action before it executes
result = client.evaluate_action(
    action_type="database_write",
    resource="customer_db",
    wait_for_decision=False
)

print(result.decision)      # APPROVED / PENDING / DENIED
print(result.risk_score)    # 0-100
print(result.cvss_score)    # CVSS v3.1 base score
print(result.mitre_tactic)  # MITRE ATT&CK tactic

Enforcement Decision Attribution

Inspect why the platform reached its verdict. These fields ship in AuthorizationDecision as of SDK 2.7.0:

# Authoritative governance verdict
print(result.enforcement_decision)
# 'auto_approved' | 'pending_approval' | 'denied' | 'escalated'

# Which signal drove the verdict
print(result.enforcement_decision_source)
# 'threshold' | 'policy' | 'smart_rule' |
# 'code_analysis' | 'prompt_security'

# Which signal contributed the highest risk score
print(result.risk_score_source)
# 'cvss' | 'policy' | 'code_analysis' |
# 'prompt_security' | 'pipeline'

# Shadow scoring — what the system WOULD have decided under
# the org's shadow threshold config. None when no shadow
# config exists (opt-in feature, observational only).
print(result.shadow_enforcement_decision)
print(result.shadow_enforcement_decision_source)

Model Governance (SR-11-7 / EU AI Act Art. 9)

Enforce your model registry at action submit time. Non-compliant or unregistered models are denied.

result = client.evaluate_action(
    action_type="model_inference",
    resource="ml_pipeline",
    model_id="gpt-4-production",  # checked against registry
    wait_for_decision=False
)

print(result.model_governance["registry_checked"])
print(result.model_governance["compliance_status"])

MCP Layer 13 Governance

Govern actions from MCP servers. Unregistered or deactivated servers are denied.

result = client.evaluate_action(
    action_type="tool_call",
    resource="crm_system",
    mcp_server_name="salesforce-mcp",
    wait_for_decision=False
)

print(result.mcp_governance["server_registered"])

Kill-Switch

Block all agent actions in under 500ms.

# Agent side — poll for kill-switch signals
client.start_kill_switch_polling(
    interval_seconds=5
)

# Fail-secure (since 2.6.2): the SDK blocks all actions
# automatically after 3 consecutive polling failures and
# emits a WARNING on each failure with the exception type
# and a running consecutive-failure count. Recovers when
# the kill-switch endpoint becomes healthy again.
if client.is_blocked():
    # Kill-switch active OR polling has failed 3+ times —
    # do not proceed with the agent action.
    pass

Capabilities

Capability Description
Risk Scoring CVSS v3.1, NIST 800-30, MITRE ATT&CK composite
MCP Governance Layer 13 enforcement — unregistered servers denied
Model Governance Registry-backed compliance check — SR-11-7, EU AI Act
Kill-Switch Sub-500ms agent blocking via SNS/SQS
Prompt Injection 21 detection patterns including encoding detection
Code Analysis SQL injection, command injection, credential detection
Supply Chain CVE detection via NVD/OSV, risk scoring
Audit Trail Immutable hash-chain, cryptographic verification
Human Approval Multi-stage workflows with SLA enforcement

Compliance

SOC 2 Type II · PCI-DSS · HIPAA · FedRAMP Compatible NIST AI RMF · SR 11-7 · EU AI Act Art. 9/28


Links


Requirements

Python 3.8+


ASCEND is a product of OW-KAI Technologies, Inc. 9+ years spanning AI/ML governance and cybersecurity.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ascend_ai_sdk-2.7.0.tar.gz (92.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ascend_ai_sdk-2.7.0-py3-none-any.whl (68.1 kB view details)

Uploaded Python 3

File details

Details for the file ascend_ai_sdk-2.7.0.tar.gz.

File metadata

  • Download URL: ascend_ai_sdk-2.7.0.tar.gz
  • Upload date:
  • Size: 92.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for ascend_ai_sdk-2.7.0.tar.gz
Algorithm Hash digest
SHA256 f2122c73e2bce14f5ce8d7f6e3fe4940edeb0f2d69cdfd83fb30ecee25283a7c
MD5 ea79841940f22c375115ed42a9333bd9
BLAKE2b-256 5ebd5777a3ade364dce4e2bc1305cbbb712b3520e51f9d9b11a3bf08f05900ab

See more details on using hashes here.

File details

Details for the file ascend_ai_sdk-2.7.0-py3-none-any.whl.

File metadata

  • Download URL: ascend_ai_sdk-2.7.0-py3-none-any.whl
  • Upload date:
  • Size: 68.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for ascend_ai_sdk-2.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8047573ba2583c08bd045021de76adf648412b682308c6dc352c5351b3ed66e5
MD5 90ef10fe42ac505b48a9cc40a941411c
BLAKE2b-256 5e680f90b0750efcfc5f6fc80508bd2733136cc861d587c563084f5d544cfb8d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page