Semantic Meaning & Agreement Protocol. The missing layer for global AI coordination. Because 'fraud' in Amsterdam ≠ 'fraud' in Johannesburg.
Project description
SEMA Protocol
Semantic Meaning & Agreement Protocol
The missing layer for global AI coordination.
The Problem
'Fraud' in Amsterdam ≠ 'Fraud' in Johannesburg
When AI systems communicate across borders, they face a fundamental problem: the same word means different things in different contexts.
- Legal definitions vary by jurisdiction
- Cultural context affects interpretation
- Regulatory requirements differ between regions
- Intent can be lost in translation
Current AI coordination assumes shared understanding. SEMA provides that understanding.
The Solution
SEMA (Semantic Meaning & Agreement) provides:
- Shared vocabulary across jurisdictions
- Context preservation (cultural, regulatory, temporal)
- Intent clarity beyond literal meaning
- Regulatory mapping (GDPR ↔ APPI ↔ POPIA)
- Cultural awareness in AI communication
Installation
pip install sema-protocol
With JIS (Jasper Identity Standard) integration:
pip install sema-protocol[jis]
Quick Start
Basic Term Translation
from sema_protocol import translate_term, RegulatoryRegion
# Translate "personal data" from EU to US context
result = translate_term(
"personal data",
RegulatoryRegion.EU,
RegulatoryRegion.US,
domain="compliance"
)
print(result)
# {
# "status": "found",
# "source_term": "personal data",
# "target_term": "personal information",
# "confidence": 0.95,
# "regulatory_refs": ["CCPA 1798.140(o)"]
# }
Context-Aware Communication
from sema_protocol import SemanticContext, RegulatoryRegion, CulturalContext, align_contexts
# Dutch bank communicating with Japanese partner
nl_context = SemanticContext(
region=RegulatoryRegion.EU,
culture=CulturalContext.DIRECT,
domain="finance",
language="en"
)
jp_context = SemanticContext(
region=RegulatoryRegion.JP,
culture=CulturalContext.INDIRECT,
domain="finance",
language="en"
)
alignment = align_contexts(nl_context, jp_context)
print(alignment)
# {
# "compatible": False,
# "differences": [
# {"aspect": "regulatory_region", "source": "eu", "target": "jp"},
# {"aspect": "cultural_style", "source": "direct", "target": "indirect"}
# ],
# "adjustments": [
# {"type": "communication_style", "guidance": "Soften direct statements..."}
# ],
# "risk_level": "medium"
# }
Domain-Specific Vocabulary
from sema_protocol import get_finance_domain, RegulatoryRegion
finance = get_finance_domain()
# Get fraud definition for South Africa
za_fraud = finance.get_fraud_definition(RegulatoryRegion.ZA)
print(za_fraud.definition)
# "Unlawful and intentional making of a misrepresentation resulting in prejudice"
print(za_fraud.regulatory_refs)
# ["Prevention of Organised Crime Act", "FIC Act"]
JIS Integration (Semantic Identity)
from sema_protocol import semantic_identity, SemanticContext, RegulatoryRegion
# Enrich a JIS identity with semantic context
jis_identity = {
"actor_id": "bank_nl_001",
"trust_score": 0.95,
"intent": "Requesting fraud check on transaction",
"capabilities": ["query", "alert"]
}
enriched = semantic_identity(
jis_identity,
context=SemanticContext(
region=RegulatoryRegion.EU,
domain="finance"
)
)
print(enriched["semantic_layer"])
# {
# "intent_clarity": {...},
# "cross_border_ready": False,
# "sema_version": "0.1.0"
# }
The Stack
SEMA is part of the HumoticaOS protocol stack:
┌─────────────────────────────────────┐
│ SEMA - Semantic Meaning Layer │ <- You are here
├─────────────────────────────────────┤
│ JIS - Identity + Trust + Intent │
├─────────────────────────────────────┤
│ TIBET - Provenance + Audit │
├─────────────────────────────────────┤
│ AInternet - Network + Discovery │
└─────────────────────────────────────┘
- SEMA: What things mean in context
- JIS: Who is acting and their intent
- TIBET: Complete provenance chain
- AInternet: How agents find each other
Supported Regions
| Region | Code | Key Regulations |
|---|---|---|
| EU | RegulatoryRegion.EU |
GDPR, AI Act, AMLD6, PSD2 |
| US | RegulatoryRegion.US |
CCPA/CPRA, State laws |
| Japan | RegulatoryRegion.JP |
APPI |
| Singapore | RegulatoryRegion.SG |
PDPA |
| South Africa | RegulatoryRegion.ZA |
POPIA, FIC Act |
| Australia | RegulatoryRegion.AU |
Privacy Act |
| Brazil | RegulatoryRegion.BR |
LGPD |
| Global | RegulatoryRegion.GLOBAL |
Cross-border default |
Cultural Contexts
| Style | Code | Examples |
|---|---|---|
| Direct | CulturalContext.DIRECT |
Dutch, German, Israeli |
| Indirect | CulturalContext.INDIRECT |
Japanese, Korean, Thai |
| Contextual | CulturalContext.CONTEXTUAL |
Chinese, Arabic |
| Neutral | CulturalContext.NEUTRAL |
International business |
Use Cases
Cross-Border Banking
AI systems from different banks need to coordinate on fraud detection. SEMA ensures "suspicious activity" means the same thing to both.
Global Compliance
Multinational companies need AI systems that understand GDPR in Europe, CCPA in California, and APPI in Japan simultaneously.
International Law Enforcement
When investigating cross-border crime, SEMA helps AI systems understand jurisdiction-specific legal definitions.
AI-to-AI Communication
As AI agents communicate globally, they need shared semantic understanding. SEMA provides the vocabulary.
Contributing
Contributions welcome! Please see our contribution guidelines.
License
AGPL-3.0-or-later - Because semantic infrastructure should be open.
Links
- Homepage: humotica.com
- Documentation: github.com/Humotica/sema-protocol
- Related: JIS | AInternet
Part of HumoticaOS - One love, one fAmIly!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sema_protocol-0.1.0.tar.gz.
File metadata
- Download URL: sema_protocol-0.1.0.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a48d55b78b4f9a781a6d2183967f8a265dc0b0a523728706da3f34706e7cbf7
|
|
| MD5 |
7c301e5c1fde5461f61adebd7a88ed9e
|
|
| BLAKE2b-256 |
6665f85fbc995c14aeaeb210e5efce3b608bbc6638b071073c197cb50c89818a
|
File details
Details for the file sema_protocol-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sema_protocol-0.1.0-py3-none-any.whl
- Upload date:
- Size: 16.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5bf9707d8cac7176dcfd5970e120bb059625da19d381ce589e314567cab68ce9
|
|
| MD5 |
484c3fd64eb68e0017b59cfe383456ad
|
|
| BLAKE2b-256 |
b4954506a0e750fbad9dd98f2571acec5fc7784e09eb6fe379bed6aa83c3564e
|