Shared contracts for Seitiate ecosystem (Seitiate, ClosedClaw, Sakme)
Project description
Shared Contracts (seitiate-contracts)
Cross-layer contracts between Seitiate, ClosedClaw, and Sakme.
Keep this layer product-neutral and stable. Per BOUNDARY.md:
shared/imports nothing — it is the foundation- All other layers may import from
shared/
Contract Modules
| Module | Purpose | Used By |
|---|---|---|
governor.py |
Detection → Enforcement handoff (N1-N6, binary gates) | ClosedClaw |
crypto.py |
Encryption interface for user-held keys | Seitiate, ClosedClaw |
llm.py |
LLM response types and provider info | All layers |
tenant.py |
Multi-tenant context types | All layers |
Usage
# Import specific types
from shared.schemas import GovernorViolation, LLMResponse, TenantContext
from shared.schemas.crypto import CryptoProvider, EncryptedBlob
# Or import from specific modules
from shared.schemas.governor import EnforcementAction
from shared.schemas.llm import TokenUsage
from shared.schemas.tenant import SubscriptionTier
Step 5 Decoupling Support
These contracts unblock the following Step 5 decoupling work:
- 5c: llm_service.py — Use
TokenUsage,LLMResponsefrom shared instead of local - 5d: governor_detector.py — Already using
shared.schemas.governor - Step 7: Codex encryption — Use
CryptoProviderinterface from shared
Versioning
This package will become seitiate-contracts on PyPI (Step 11).
Semantic versioning — the contracts ARE the platform API.
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 seitiate_contracts-0.1.0.tar.gz.
File metadata
- Download URL: seitiate_contracts-0.1.0.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4fbd0fdebad5228633d44a268393da045b88d964997c3f20d75fcca3fedb2d1
|
|
| MD5 |
d3c2d2edb84612c3b753ef262df4b9a5
|
|
| BLAKE2b-256 |
40bcdd5a1c0a26879327ed427580dbe8ba18b79b69126241006b64e0d8d5941e
|
File details
Details for the file seitiate_contracts-0.1.0-py3-none-any.whl.
File metadata
- Download URL: seitiate_contracts-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
afc25359ad5e92aada9d99311f8c9ac594fa13f677aea0597d9f48facb0596f0
|
|
| MD5 |
3fb5061c7f5ed0c6d3a469c4f4a96dbf
|
|
| BLAKE2b-256 |
006ae026f031a8f143361122a3c89b8e3540af831bc17724295fd7041f33055e
|