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.0a12.tar.gz (175.9 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.0a12-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: stackwright_pro_raft-1.0.0a12.tar.gz
  • Upload date:
  • Size: 175.9 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.0a12.tar.gz
Algorithm Hash digest
SHA256 631b2a4c3355ce6adde233093880fe7d1b8b5db55ab68d906556f39bc976d218
MD5 f29117fc1aa4c639e129ca0320305ce2
BLAKE2b-256 353a0c05f3c2d5b361b8d59ab60e3b5e2a03a4246c56f37d5f516bb971b4991c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: stackwright_pro_raft-1.0.0a12-py3-none-any.whl
  • Upload date:
  • Size: 16.8 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.0a12-py3-none-any.whl
Algorithm Hash digest
SHA256 a14d3c5e23291697edbbba214486259cf397db117a528c7a57fa213b2d425731
MD5 d046a282f81534b81f36cf78a4f2c85a
BLAKE2b-256 065db8b06217043bc7865058e85c267097b2d88af9bf04bc1e804e3b510ee61e

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