Skip to main content

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, LLMResponse from shared instead of local
  • 5d: governor_detector.py — Already using shared.schemas.governor
  • Step 7: Codex encryption — Use CryptoProvider interface from shared

Versioning

This package will become seitiate-contracts on PyPI (Step 11). Semantic versioning — the contracts ARE the platform API.

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

seitiate_contracts-0.1.0.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

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

seitiate_contracts-0.1.0-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

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

Hashes for seitiate_contracts-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f4fbd0fdebad5228633d44a268393da045b88d964997c3f20d75fcca3fedb2d1
MD5 d3c2d2edb84612c3b753ef262df4b9a5
BLAKE2b-256 40bcdd5a1c0a26879327ed427580dbe8ba18b79b69126241006b64e0d8d5941e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for seitiate_contracts-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 afc25359ad5e92aada9d99311f8c9ac594fa13f677aea0597d9f48facb0596f0
MD5 3fb5061c7f5ed0c6d3a469c4f4a96dbf
BLAKE2b-256 006ae026f031a8f143361122a3c89b8e3540af831bc17724295fd7041f33055e

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