Skip to main content

JadeGate - Deterministic Security for AI Agent Skills

Project description

๐Ÿ’  JadeGate

Deterministic Security for AI Agent Skills

"Code is fluid. Jade is solid."

ไปฅ็މไธบๅฅ‘๏ผŒไธๅฏ็ฏกๆ”นใ€‚

License: MIT Skills Schema crates.io


็พŒ็ฌ›ไฝ•้กปๆ€จๆจๆŸณ๏ผŒๆ˜ฅ้ฃŽไธๅบฆ็މ้—จๅ…ณใ€‚

Malicious code shall not pass the JadeGate.


What is JADE?

JADE (JSON-based Agent Deterministic Execution) is a zero-trust security protocol for AI Agent skills.

Every skill is a pure JSON file โ€” non-Turing-complete, structurally verifiable, mathematically provable safe.

No eval(). No exec(). No import. No exceptions.

๐Ÿ’  JADE Verified    โ€” Passed all 5 security layers
โŒ Rejected          โ€” Blocked: executable code / dangerous patterns detected

Why JADE?

Traditional AI skills (Markdown files, Python scripts) are inherently unsafe:

  • They can contain hidden executable code
  • They can exfiltrate private data
  • They can be prompt-injected

JADE makes safety a structural property, not a behavioral one:

Traditional Skills JADE Skills
Format Markdown / Python Pure JSON (non-Turing-complete)
Safety Review-based (hope for the best) Structural (mathematically proven)
Verification Manual Automated 5-layer validation
Execution Arbitrary code Deterministic DAG

5-Layer Security Validation

Layer 1: JSON Schema โ€” structural integrity
Layer 2: Code Injection โ€” 22 executable patterns blocked
Layer 3: Dangerous Commands โ€” 25+ system commands blocked  
Layer 4: Network & Data โ€” whitelist enforcement + data leak prevention
Layer 5: DAG Safety โ€” cycle detection + reachability proof

All layers pass = ๐Ÿ’ . Any layer fails = โŒ.

Install

# Python
pip install jadegate

# Rust
cargo add jadegate

Quick Start

from jade_core.validator import JadeValidator
from jade_core.client import JadeClient

# Validate a skill
validator = JadeValidator()
result = validator.validate_file("jade_skills/weather_api.json")
print(f"Valid: {result.valid}")  # True

# Load and use skills
client = JadeClient()
skill = client.load_file("jade_skills/weather_api.json")
print(skill.execution_dag.entry_node)

Skill Registry

35 verified skills across 8 categories:

Category Skills Examples
๐ŸŒ Web & Search 6 web_search, webpage_screenshot, rss_reader
๐Ÿ“ก API Integration 5 notion, github, exa, slack, discord
๐Ÿ”ง System & DevOps 6 git_clone, docker, ssh, sqlite, shell
๐Ÿ“ File Operations 4 file_rename, csv_analysis, pdf_parser, hash_verify
๐Ÿ”’ Network & Security 5 dns_lookup, ssl_check, whois, health_check, ip_geo
๐Ÿ’ฌ Messaging 3 slack, discord, telegram
๐Ÿง  AI & NLP 3 translation, sentiment, content_extract
๐Ÿ› ๏ธ Utilities 3 timezone, qr_code, base64, json_transform

Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚           JADE Skill (JSON)             โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚
โ”‚  โ”‚ Trigger  โ”‚โ†’ โ”‚ DAG  โ”‚โ†’ โ”‚  Output   โ”‚  โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                   โ”‚ validate
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚          JadeValidator (5 layers)        โ”‚
โ”‚  Schema โ†’ Injection โ†’ Commands โ†’        โ”‚
โ”‚  Network โ†’ DAG Safety                   โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                   โ”‚
            ๐Ÿ’  or โŒ

MCP Compatible

JADE skills are fully compatible with the Model Context Protocol. Use JADE as the security layer on top of MCP:

"Use MCP to connect. Use JADE to protect."

Project Structure

jade-core/
โ”œโ”€โ”€ jade_core/          # Core Python library
โ”‚   โ”œโ”€โ”€ validator.py    # 5-layer security validator
โ”‚   โ”œโ”€โ”€ security.py     # Zero-trust security engine
โ”‚   โ”œโ”€โ”€ dag.py          # DAG analyzer
โ”‚   โ”œโ”€โ”€ client.py       # Client SDK
โ”‚   โ”œโ”€โ”€ registry.py     # Bayesian confidence registry
โ”‚   โ””โ”€โ”€ models.py       # Data models
โ”œโ”€โ”€ jade_schema/        # JSON Schema + allowed actions
โ”œโ”€โ”€ jade_skills/        # Official verified skills (๐Ÿ’ )
โ”œโ”€โ”€ converted_skills/   # Community skills (โœ…)
โ”œโ”€โ”€ jade_registry/      # Skill index
โ”œโ”€โ”€ tests/              # 135 test cases
โ””โ”€โ”€ tools/              # Converters and utilities

Roadmap

  • v0.1 โ€” Core validator + 35 skills + schema
  • v0.2 โ€” jade list / jade verify / jade install CLI
  • v0.3 โ€” Cryptographic signing (๐Ÿ” JADE Sealed)
  • v0.4 โ€” Bayesian trust routing + global attestation network
  • v0.5 โ€” Rust client for 10ms verification

Contributing

We welcome skill contributions! Every submitted skill must pass all 5 validation layers.

# Validate your skill before submitting
python -c "
from jade_core.validator import JadeValidator
v = JadeValidator()
r = v.validate_file('your_skill.json')
print('๐Ÿ’  Verified' if r.valid else 'โŒ Rejected')
for i in r.errors: print(f'  {i.message}')
"

License

MIT โ€” Free to use, free to build on.


๐Ÿ’  JadeGate โ€” Pass the Gate. Trust the Jade.

GitHub ยท PyPI ยท crates.io ยท Skills ยท Schema

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

jadegate-0.1.0.tar.gz (34.3 kB view details)

Uploaded Source

Built Distribution

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

jadegate-0.1.0-py3-none-any.whl (25.9 kB view details)

Uploaded Python 3

File details

Details for the file jadegate-0.1.0.tar.gz.

File metadata

  • Download URL: jadegate-0.1.0.tar.gz
  • Upload date:
  • Size: 34.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for jadegate-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f411684ea247d6c18606089db38931e06722842b9951653c860d86a56a76a9d7
MD5 a71932183c0534adc8b45e5f757dec10
BLAKE2b-256 ce685bf4082eeb114f18f07164dc18a74c0c55de49c73e89537432697eacbae6

See more details on using hashes here.

Provenance

The following attestation bundles were made for jadegate-0.1.0.tar.gz:

Publisher: publish.yml on JadeGate/jade-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file jadegate-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: jadegate-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 25.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for jadegate-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8e1dc562432ef8c8a74e67fbdf0472da8a8463d804fdea0487bcf7e939d9141f
MD5 6902638eb6ff0db06c046277e639b5e9
BLAKE2b-256 5167f4b89898834503b72009f9c3f9f222b1dde0c21ad925475f86b3ca0425cd

See more details on using hashes here.

Provenance

The following attestation bundles were made for jadegate-0.1.0-py3-none-any.whl:

Publisher: publish.yml on JadeGate/jade-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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