Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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

Metadata

Release files for stackwright-pro-raft 1.0.0a14

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stackwright-pro-raft 1.0.0a14
File Size Uploaded Provenance Actions
stackwright_pro_raft-1.0.0a14.tar.gz 178.9 kB Without provenance Details for stackwright_pro_raft-1.0.0a14.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for stackwright-pro-raft 1.0.0a14
File Interpreter ABI Platform Actions
stackwright_pro_raft-1.0.0a14-py3-none-any.whl Python 3 none any Details for stackwright_pro_raft-1.0.0a14-py3-none-any.whl

Total release size: 197.1 kB

Release files / stackwright_pro_raft-1.0.0a14.tar.gz

Download URL stackwright_pro_raft-1.0.0a14.tar.gz
Size 178.9 kB
Tags Source
SHA-256 checksum
How to use checksums
06059c68e133aa44c5dc36e558e3d6b6f46bd2586ab28229fa4b9280426f2099
BLAKE2b-256 checksum
How to use checksums
df36111fe9859b13051d865a59fc683f5bb9b649d4d4a8922ed26685ebc2a28a
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / stackwright_pro_raft-1.0.0a14-py3-none-any.whl

Download URL stackwright_pro_raft-1.0.0a14-py3-none-any.whl
Size 18.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c6f6fdcdaccc59fcc5ccc912e8365a660878b9c644d305fdb59349ff97ca3d5e
BLAKE2b-256 checksum
How to use checksums
a66f50153941bf5f0dcafe7a106eab1cca30fc6fb9a8840306d208f46bcbd06b
Upload date
Uploaded using Trusted Publishing?
What is 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}

Security for stackwright-pro-raft 1.0.0a14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page