Skip to main content

AISA - Agentic AI Systems Architecture Compliance Checker. Evaluate agentic AI projects against the AISA 7-layer reference architecture.

Project description

AISA - Agentic AI Systems Architecture Compliance Checker

PyPI version License: MIT

Evaluate your agentic AI system against the AISA reference architecture.

AISA checks your project across 7 architectural layers and 4 cross-layer contracts, identifying gaps in governance, evaluation, safety, and operational readiness that most agentic AI frameworks miss.

Quick Start

pip install aisa

Pattern-Based Scan (fast, no API key)

aisa check ./my-agent-project

AI-Powered Analysis (deep, requires API key)

# Option 1: Pass API key directly
aisa ai-check ./my-agent-project --api-key sk-...

# Option 2: Use environment variable
export OPENAI_API_KEY=sk-...    # or ANTHROPIC_API_KEY or GOOGLE_API_KEY
aisa ai-check ./my-agent-project

# Option 3: Choose provider
aisa ai-check ./my-agent-project --provider anthropic --api-key sk-ant-...

Full Analysis (best accuracy - combines both)

aisa full-check ./my-agent-project --report

Interactive Assessment (works for any system)

aisa assess

What It Evaluates

AISA evaluates your project across the complete agentic AI lifecycle:

Layer What's Checked
L1: LLM Foundation Model adapters, prompt templates, context management, safety filters
L2: Tool & Environment Tool schemas, validation, sandboxing, permissions, MCP, error handling
L3: Cognitive Agent Planning, memory, goal tracking, reflection, feedback integration
L4: Infrastructure Orchestration, state management, multi-agent, tracing, logging
L5: Evaluation Component tests, trajectory eval, behavioral monitoring, regression tests
L6: Dev & Deployment Versioning, CI/CD, A/B testing, benchmarking, staged rollout
L7: Governance Policy-as-code, privacy, fairness, accountability, human oversight

Plus 4 cross-layer contracts: Policy, Telemetry, Versioning, Budget.

Scoring Modes

Mode Speed Accuracy API Key
check Fast Good No
ai-check Slow Better Yes
full-check Slowest Best Yes
assess Manual Depends on answers No

How Scoring Works

  • Pattern scan (check): Searches for 200+ code signatures (imports, function calls, config patterns) mapped to AISA criteria. Fast and deterministic.
  • AI analysis (ai-check): Sends your code to an LLM that semantically analyzes architecture, not just keywords. Catches patterns that regex misses.
  • Combined (full-check): Runs both, takes the higher score per criterion. Most accurate.
  • Assessment (assess): 55 yes/no/partial questions. Works for any system, including non-Python or proprietary.

Output

Terminal Report

  LAYER COVERAGE:
  --------------------------------------------------------
  L1 LLM Foundation         ██████░░░░░░░░░░░░░░  33.3%  [Minimal]
  L2 Tool & Environment     ██░░░░░░░░░░░░░░░░░░  14.3%  [Absent]
  L3 Cognitive Agent        ███░░░░░░░░░░░░░░░░░  16.7%  [Absent]
  L4 Infrastructure         ░░░░░░░░░░░░░░░░░░░░   0.0%  [Absent]
  L5 Evaluation             ░░░░░░░░░░░░░░░░░░░░   0.0%  [Absent]
  L6 Dev & Deployment       ██░░░░░░░░░░░░░░░░░░  14.3%  [Absent]
  L7 Governance             ░░░░░░░░░░░░░░░░░░░░   0.0%  [Absent]

  OVERALL AISA SCORE: 9/100
  GRADE: F - Significant Gaps

Markdown Report (--report)

Generates a detailed aisa_report.md with:

  • Per-criterion scores with evidence
  • Prioritized gap list
  • Actionable recommendations per gap
  • Framework detection results

Supported Frameworks

Auto-detects and evaluates projects using:

  • LangChain / LangGraph
  • CrewAI
  • Microsoft AutoGen
  • OpenAI Assistants / Agents SDK
  • Anthropic Claude SDK
  • LlamaIndex
  • Microsoft Semantic Kernel
  • Google ADK

LLM Providers (for ai-check / full-check)

Provider Environment Variable Default Model
OpenAI OPENAI_API_KEY gpt-4o
Anthropic ANTHROPIC_API_KEY claude-sonnet-4-20250514
Google GOOGLE_API_KEY gemini-2.0-flash
# Override provider and model
aisa ai-check ./project --provider anthropic --model claude-sonnet-4-20250514

Grading Scale

Grade Score Meaning
A 80-100 Production Ready
B 60-79 Maturing
C 40-59 Developing
D 20-39 Early Stage
F 0-19 Significant Gaps

About AISA

AISA (Agentic AI Systems Architecture) is a unified layered reference architecture for designing, deploying, evaluating, and governing agentic AI systems. Proposed by Tuwaiq Academy (TRDC), it provides a shared vocabulary and design blueprint for building production-grade autonomous AI systems.

Paper: Nacar, O., Alquffari, D., & Alkhalifa, M. (2026). "AISA: A Unified Architecture for Agentic AI Systems."

Resources: HuggingFace | Paper PDF

Contributing

Contributions welcome! Areas we'd love help with:

  • Additional detection patterns for frameworks
  • New layer criteria based on real-world deployments
  • Integration with CI/CD platforms
  • Support for additional LLM providers

License

MIT License - see LICENSE for details.

Citation

@misc{nacar2026aisa,
  title={AISA: A Unified Architecture for Agentic AI Systems},
  author={Nacar, Omer and Alquffari, Deema and Alkhalifa, Mohammed},
  year={2026},
  institution={TRDC - Tuwaiq Academy},
}

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

aisa_checker-0.1.1.tar.gz (38.6 kB view details)

Uploaded Source

Built Distribution

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

aisa_checker-0.1.1-py3-none-any.whl (42.3 kB view details)

Uploaded Python 3

File details

Details for the file aisa_checker-0.1.1.tar.gz.

File metadata

  • Download URL: aisa_checker-0.1.1.tar.gz
  • Upload date:
  • Size: 38.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for aisa_checker-0.1.1.tar.gz
Algorithm Hash digest
SHA256 623c6186dc3fe364cdd217d5bd327dd1934af143df86accdba0bb6a2f549df35
MD5 52ed017de38957cbaf145e30bdbbeadd
BLAKE2b-256 41a704a580d90394e480cb4570725b587e16de11f691c243dd6f6c53b3dce7cf

See more details on using hashes here.

File details

Details for the file aisa_checker-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: aisa_checker-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 42.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for aisa_checker-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5f36f64dc47030e429595df74f8c4e3715c90892f8537246f14c46a1dc11aa85
MD5 447563dc4dd48587c40f97a19bc3c184
BLAKE2b-256 cb97427bcac5f4fee1429bf85ade33efde2bdf0bf0847895bb2096b13c933920

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