Skip to main content

Otter Raft orchestration

Project description

Stackwright Pro - Otter Raft Python SDK

Python orchestration layer implementing the Clarification Protocol for Pro Otter Raft.

Hybrid Architecture

The otter raft uses a Python + code-puppy hybrid approach:

┌─────────────────────────────────────────────────────────────┐
│                   CLI Adapter (Python)                       │
│                                                              │
│   --spawn (default)  →  Spawns code-puppy with foreman prompt │
│   --phases           →  Executes via ForemanSession (debug)  │
└─────────────────────────────────────────────────────────────┘

SPAWN mode (default) gives you the full interactive code-puppy experience with:

  • Rich TUI for asking questions
  • Specialist otter coordination
  • Certificate pinning for approved tools only

PHASES mode is a legacy debugging mode that runs the Python state machine directly.

Installation

cd python
pip install -e .

Or with uv:

cd python
uv pip install -e .

Quick Start

from stackwright_pro.raft import ClarificationOrchestrator, ClarificationConfig

config = ClarificationConfig(
    defaults={"brand.tone": "Professional"},
    allow_dont_know=True,
)

orchestrator = ClarificationOrchestrator(config=config)

# Ask user for clarification
response = orchestrator.router.ask(request)

Components

  • Clarification Protocol: Human-in-the-loop for LLMs
  • Channel Router: TUI → CLI args → Config → Defaults
  • Conflict Detector: Detects preference vs. choice conflicts
  • Escalation Handler: Handles stubborn users

Documentation

Development

# Install dev dependencies
pip install pytest pydantic rich

# Run tests
cd python
python -m pytest tests/ -v

License

Proprietary - Per Aspera LLC

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

stackwright_pro_raft-1.0.0a11.tar.gz (171.2 kB view details)

Uploaded Source

Built Distribution

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

stackwright_pro_raft-1.0.0a11-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file stackwright_pro_raft-1.0.0a11.tar.gz.

File metadata

  • Download URL: stackwright_pro_raft-1.0.0a11.tar.gz
  • Upload date:
  • Size: 171.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for stackwright_pro_raft-1.0.0a11.tar.gz
Algorithm Hash digest
SHA256 fafb364c9cfcb116ada0637a544e99c9e2a51a891b6aeb71bc444b2e8d16886b
MD5 e7b1bb4f71a43f0ee5dda30084a873ad
BLAKE2b-256 e5c6dc7ceaf5c728c9422fdda479b006b74c9bb30a807fad5466c554d5b95e12

See more details on using hashes here.

File details

Details for the file stackwright_pro_raft-1.0.0a11-py3-none-any.whl.

File metadata

  • Download URL: stackwright_pro_raft-1.0.0a11-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for stackwright_pro_raft-1.0.0a11-py3-none-any.whl
Algorithm Hash digest
SHA256 ef7a299e8fad33f96ba2dc1592f1797fcb5759be305dbedd62c4290354b14479
MD5 f2147e7fdf929ef1db00a13f73e498ce
BLAKE2b-256 2e34305fc4e9146ebefd445e09405fbc4ebb16dae81bb045d5b9c9789637ea42

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