Skip to main content

Flywheel

One platform: routing, verification, the lane layer, the closed loop, and the projected world. The native desktop surface for accountable AI infrastructure.

Flywheel is the engine and native client for a verified-inference loop: a model perceives only through witnessed organs, acts only through a gate it cannot talk past, journals everything, and verifies its own work by re-perceiving.

The flagship tools (gather, crucible, index, forum, learn, telos) are lanes inside Flywheel, each a provisioned, health-checked organ reachable through one surface. Every agent tool call carries a sealed, chain-linked receipt a third party re-verifies offline.

Proof before trust.

What is in this repo

This is a monorepo containing both halves of the platform:

  • harness/ is the Python engine: the gateway (localhost HTTP API), the agent loop, the receipt discipline, the lane layer, the verified-inference loop, the tool-call receipt system. Zero runtime dependencies (stdlib only).
  • desktop/ is the Flutter native client: 24 views, 50 widgets, zero webview embedding. Talks to the gateway over localhost. Launches a bundled frozen engine by absolute path on a clean machine (no Python, no PATH, no network).
  • site/ is a dev/CI fallback browser shell (not the primary UI).

Run it now

Start the gateway (the engine keeps the loop, receipts, lanes, and routing):

flywheel app --port 8799

The native surface is Flywheel Desktop. From a dev checkout:

cd desktop
flutter run -d windows --release

The gateway also serves a /site/index.html shell as a dev/CI fallback.

The lane model

Flywheel encompasses the tool family. Each flagship is a lane:

Lane Repo Role
gather gather Research intake + provenance receipts
crucible crucible Falsifiable verification (MATCH / DRIFT / UNVERIFIABLE)
index index Workspace map + symbol graph + context envelopes
forum forum Witnessed causal ledger + model-agnostic routing
learn learn Accountable learning forge
telos telos The reconciliation lane

Check their health through one surface:

flywheel lanes
flywheel lanes --probe    # live MCP handshake per lane

The receipt discipline

Every agent tool invocation carries a sealed receipt binding:

  • what the tool was (capability class: read / write / exec / external-mcp)
  • what it was allowed to do (admission decision from the gate)
  • what it actually did (witnessed args + output sha256 digests, never raw content)
  • whether a stranger can re-walk it (offline-verifiable, chain-linked)

Receipts compose into a transitive-witness DAG where a drifted action degrades exactly its downstream dependents. The five flagships emit organ-bundle entries on a shared proof-surface spine so cross-tool receipts compose end-to-end.

The organizational learning loop

The layer above audit. The receipt discipline records what happened at machine resolution. The learning loop feeds forward: it derives lessons from witnessed divergences (an allowed action that rolled back, a memory whose source drifted, a graded failure), stores them in a durable, hash-chained, append-only memory, and surfaces recurring patterns as improvement candidates for human admission. A lesson is not a note an operator wrote; it is a claim bound by hash to its evidence, re-checkable offline, fail-closed when the evidence is gone. See docs/LESSON-LOOP.md.

Offline-first

The Flutter desktop GUI launches a bundled engine by absolute path and serves its UI menu on localhost only. No external web address is contacted to show the GUI. The gateway serves /api/* and the UI on http://127.0.0.1:8799.

Install

pip install flywheel-verify
flywheel up

flywheel-verify is the PyPI distribution name (the bare flywheel name is an unrelated package); the installed command is flywheel. Zero runtime dependencies, stdlib only.

No model download required. The engine is ready for real work the moment it installs: point it at any hosted provider you hold a key for (the roster reports credential presence only, never values) and every route carries the same receipt discipline. Local models get the same support and stay optional: ollama needs no extras at all (the gateway talks to it over HTTP), the published 14B and 32B weights are separate downloads for when you want them, and the local HF serve/training stack installs with pip install "flywheel-verify[local]". Receipt signing and egress monitoring have their own extras ([signing], [monitor]); receipt verification stays stdlib-only.

Subscription sign-in is wired in: flywheel auth login <provider> runs a stepwise flow (documented PKCE where the provider sanctions it, the provider's own official tool where it does not), stores the token in the OS credential store, and the router picks it up with no further setup. See GETTING-STARTED.md.

Or from source:

git clone https://github.com/HarperZ9/flywheel.git
cd flywheel
pip install -e .
python scripts/run_harness_cli.py app --port 8799

The native desktop app ships as a Windows installer with the engine bundled (no Python needed): download Flywheel-Setup-<version>-x64.exe from the releases page and verify it against the release's SHA256SUMS.txt.

Documentation

License

FSL-1.1-MIT (Functional Source License). See LICENSE.

Release files for flywheel-verify 0.3.10

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

Source distribution (sdist)

Source distribution for flywheel-verify 0.3.10
File Size Uploaded
flywheel_verify-0.3.10.tar.gz 1.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for flywheel-verify 0.3.10
File Interpreter ABI Platform
flywheel_verify-0.3.10-py3-none-any.whl Python 3 none any Details

Total release size: 2.5 MB

Release files / flywheel_verify-0.3.10.tar.gz

Download URL flywheel_verify-0.3.10.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
2bf215212be613569cbfa47104f7c474f4739a5522462aacce88738239256862
BLAKE2b-256 checksum
How to use checksums
b7a7541b286d44fd1669e04119404a7bea08f60afdb4fd55f9e795b102c04b88
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 18, 2026.

Transparency log

Release files / flywheel_verify-0.3.10-py3-none-any.whl

Download URL flywheel_verify-0.3.10-py3-none-any.whl
Size 1.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
3565c37bc7c721d7461e710d5606e578c0cc886efecf97584e32c40b462119dd
BLAKE2b-256 checksum
How to use checksums
5e58d5f4f5f17c6386b9fde242416b53a3e48b80ef973f039a8954a09ff405c6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 18, 2026.

Transparency log

Release history Release notifications | RSS feed

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.1

2 release files

0.4.0

2 release files

This release

0.3.10 This release

2 release files

0.3.9

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

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