# generative-computing/steerability architecture

> Architecture diagram of the GitHub repository generative-computing/steerability, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/generative-computing/steerability
- Repository: https://github.com/generative-computing/steerability

## Overview

Steerability is a Python toolkit for constructing and evaluating large-language-model steering methods. The principal workflow composes input, structural, state, and output controls into a pipeline, runs it through a supported inference backend, and returns generated outputs; evaluation can measure pipeline performance and side effects. Pipelines can also be serialized as recipe or frozen .spipe bundles. The map reflects README capabilities and available source-index references; several control families and evaluation details are represented at subsystem level because their implementation was not sampled.

Main entry points: [`steerability/algorithms/core/steering_pipeline.py`](https://github.com/generative-computing/steerability/blob/main/steerability/algorithms/core/steering_pipeline.py) (Steering pipeline), [`steerability/spipe/spipe.py`](https://github.com/generative-computing/steerability/blob/main/steerability/spipe/spipe.py) (SPipe bundle), [`steerability/evaluation/runner.py`](https://github.com/generative-computing/steerability/blob/main/steerability/evaluation/runner.py) (Task evaluation), [`steerability/evaluation/provider.py`](https://github.com/generative-computing/steerability/blob/main/steerability/evaluation/provider.py) (Pipeline provider)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_composition["Pipeline composition"]
  node_pipeline["Steering pipeline"]
  node_execution["Execution contracts<br/>[contracts.py]"]
  node_result["Generated output<br/>[output.py]"]
end

subgraph group_controls["Model control surfaces"]
  node_input["Input controls"]
  node_structural["Structural controls"]
  node_state["State controls"]
  node_output["Output controls"]
end

subgraph group_inference["Inference backends"]
  node_hf["Hugging Face backend<br/>[backend.py]"]
  node_vllm["vLLM backend<br/>[backend.py]"]
end

subgraph group_evaluation["Evaluation"]
  node_evaluation["Task evaluation<br/>[runner.py]"]
  node_provider["Pipeline provider<br/>[provider.py]"]
end

subgraph group_serialization["Pipeline bundles"]
  node_spipe["SPipe bundle<br/>[spipe.py]"]
  node_codec["Value codec<br/>[codec.py]"]
  node_store[("Artifact store<br/>[store.py]")]
end

node_user(("Toolkit user"))

node_user -->|"configures"| node_pipeline
node_pipeline -->|"composes"| node_input
node_pipeline -->|"composes"| node_structural
node_pipeline -->|"composes"| node_state
node_pipeline -->|"composes"| node_output
node_pipeline -->|"checks support"| node_execution
node_pipeline -.->|"runs through"| node_hf
node_pipeline -.->|"runs through"| node_vllm
node_pipeline -->|"returns"| node_result
node_user -->|"evaluates"| node_evaluation
node_evaluation -->|"uses"| node_provider
node_provider -->|"runs"| node_pipeline
node_user -->|"saves or loads"| node_spipe
node_spipe -->|"reconstructs"| node_pipeline
node_spipe -->|"encodes values"| node_codec
node_codec -->|"stores artifacts"| node_store

click node_pipeline "https://github.com/generative-computing/steerability/blob/main/steerability/algorithms/core/steering_pipeline.py"
click node_execution "https://github.com/generative-computing/steerability/blob/main/steerability/algorithms/core/execution/contracts.py"
click node_input "https://github.com/generative-computing/steerability/tree/main/steerability/algorithms/input_control"
click node_structural "https://github.com/generative-computing/steerability/tree/main/steerability/algorithms/structural_control"
click node_state "https://github.com/generative-computing/steerability/tree/main/steerability/algorithms/state_control"
click node_output "https://github.com/generative-computing/steerability/tree/main/steerability/algorithms/output_control"
click node_hf "https://github.com/generative-computing/steerability/blob/main/steerability/backends/huggingface/backend.py"
click node_vllm "https://github.com/generative-computing/steerability/blob/main/steerability/backends/vllm/backend.py"
click node_result "https://github.com/generative-computing/steerability/blob/main/steerability/algorithms/core/output.py"
click node_evaluation "https://github.com/generative-computing/steerability/blob/main/steerability/evaluation/runner.py"
click node_provider "https://github.com/generative-computing/steerability/blob/main/steerability/evaluation/provider.py"
click node_spipe "https://github.com/generative-computing/steerability/blob/main/steerability/spipe/spipe.py"
click node_codec "https://github.com/generative-computing/steerability/blob/main/steerability/spipe/codec.py"
click node_store "https://github.com/generative-computing/steerability/blob/main/steerability/spipe/store.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_pipeline,node_execution,node_result,node_user toneBlue
class node_input,node_structural,node_state,node_output toneAmber
class node_hf,node_vllm toneMint
class node_evaluation,node_provider toneRose
class node_spipe,node_codec,node_store toneIndigo
```

## Components

### Pipeline composition

- [Steering pipeline](https://github.com/generative-computing/steerability/blob/main/steerability/algorithms/core/steering_pipeline.py): `steerability/algorithms/core/steering_pipeline.py`
- [Execution contracts](https://github.com/generative-computing/steerability/blob/main/steerability/algorithms/core/execution/contracts.py): `steerability/algorithms/core/execution/contracts.py`
- [Generated output](https://github.com/generative-computing/steerability/blob/main/steerability/algorithms/core/output.py): `steerability/algorithms/core/output.py`

### Model control surfaces

- [Input controls](https://github.com/generative-computing/steerability/tree/main/steerability/algorithms/input_control): `steerability/algorithms/input_control`
- [Structural controls](https://github.com/generative-computing/steerability/tree/main/steerability/algorithms/structural_control): `steerability/algorithms/structural_control`
- [State controls](https://github.com/generative-computing/steerability/tree/main/steerability/algorithms/state_control): `steerability/algorithms/state_control`
- [Output controls](https://github.com/generative-computing/steerability/tree/main/steerability/algorithms/output_control): `steerability/algorithms/output_control`

### Inference backends

- [Hugging Face backend](https://github.com/generative-computing/steerability/blob/main/steerability/backends/huggingface/backend.py): `steerability/backends/huggingface/backend.py`
- [vLLM backend](https://github.com/generative-computing/steerability/blob/main/steerability/backends/vllm/backend.py): `steerability/backends/vllm/backend.py`

### Evaluation

- [Task evaluation](https://github.com/generative-computing/steerability/blob/main/steerability/evaluation/runner.py): `steerability/evaluation/runner.py`
- [Pipeline provider](https://github.com/generative-computing/steerability/blob/main/steerability/evaluation/provider.py): `steerability/evaluation/provider.py`

### Pipeline bundles

- [SPipe bundle](https://github.com/generative-computing/steerability/blob/main/steerability/spipe/spipe.py): `steerability/spipe/spipe.py`
- [Value codec](https://github.com/generative-computing/steerability/blob/main/steerability/spipe/codec.py): `steerability/spipe/codec.py`
- [Artifact store](https://github.com/generative-computing/steerability/blob/main/steerability/spipe/store.py): `steerability/spipe/store.py`

### Other components

- **Toolkit user**

## Connections

- Toolkit user → Steering pipeline: configures (evidence: `README.md`)
- Steering pipeline → Input controls: composes (evidence: `steerability/algorithms/core/steering_pipeline.py`)
- Steering pipeline → Structural controls: composes (evidence: `steerability/algorithms/core/steering_pipeline.py`)
- Steering pipeline → State controls: composes (evidence: `steerability/algorithms/core/steering_pipeline.py`)
- Steering pipeline → Output controls: composes (evidence: `steerability/algorithms/core/steering_pipeline.py`)
- Steering pipeline → Execution contracts: checks support (evidence: `steerability/algorithms/core/steering_pipeline.py`)
- Steering pipeline → Hugging Face backend: runs through
- Steering pipeline → vLLM backend: runs through
- Steering pipeline → Generated output: returns (evidence: `steerability/algorithms/core/steering_pipeline.py`)
- Toolkit user → Task evaluation: evaluates (evidence: `README.md`)
- Task evaluation → Pipeline provider: uses (evidence: `steerability/evaluation/runner.py`)
- Pipeline provider → Steering pipeline: runs (evidence: `steerability/evaluation/provider.py`)
- Toolkit user → SPipe bundle: saves or loads (evidence: `steerability/spipe/spipe.py`)
- SPipe bundle → Steering pipeline: reconstructs (evidence: `steerability/spipe/spipe.py`)
- SPipe bundle → Value codec: encodes values (evidence: `steerability/spipe/spipe.py`)
- Value codec → Artifact store: stores artifacts (evidence: `steerability/spipe/codec.py`)
