What it does
Two-phase commit coding harness that stages diffs, runs sandboxed tests, and applies atomically.
- Connects パソコンで動く
- Account or key No key needed
- Category 開発者ツール
一緒に使える
この種の作業を AI に教える Skill。これと一緒に使えます
andrej-karpathy-skills
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
graphify
Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.
この順位の理由
一覧は利用スコア(100 点満点)で並びます。内訳は次のとおり
| 人気 | 0/80 | GitHub スターか週間ダウンロード数。大きい方を 60、小さい方を 20 で数えます |
|---|---|---|
| 新しさ | 12/12 | 30 日以内のリリースかコード更新で満点 |
| 応答中 | 0/8 | 前回の確認でクラウドのエンドポイントが応答 |
| 利用スコア | 12/100 |
品質: 基本チェック 3/3 項目に合格(表示のみ、並び順には不使用) · 勢い: データなし (「急上昇」タブでのみ使用)
インストール
使っているAIアプリを選んで、設定をコピーしてください。
ひとことで AI にインストールしてもらう
Krusch Coding Harness をインストールして。https://mcp.popnx.com/i/krusch-coding-harness.md に従い、コマンドを見せて、私が OK するまで実行しないで。パソコンで作業できる AI(Claude Code や Cursor など)に貼り付けます。手順を読み、コマンドを見せて、あなたの OK を待ちます。キー不要・登録不要。 · AI が読む全文を見る
チェック 3/3 合格 · あなたのパソコンで動きます · ✓ コマンド確認済み 2026年11月19日
まず:どの AI を使っていますか?
使っているアプリを選ぶと、下に手順が表示されます。
Claude につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
AI にインストールしてもらう
このメッセージを Claude のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。
このパソコンの Claude に MCP server Krusch Coding Harness を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "krusch-coding-harness": { "command": "npx", "args": [ "-y", "krusch-coding-harness", "mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Krusch Coding Harness のツールが本当に表示されるか確認する。このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。
Node.js を入れる(まだなければ)
もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter
node -v- バージョン番号(例 v26.13.1)が出る = 入っています。この手順は飛ばせます
- "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
ターミナルの開き方
Mac:⌘ + Space を押し、Terminal と入力して Enter
Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」
まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です
入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です:
node -v一度入れれば、Node.js を使うすべてのツールで使えます
パソコン版 Claude アプリの設定ファイルを開く
SettingsDeveloperEdit Config
この設定を貼り付けて保存
{ "mcpServers": { "krusch-coding-harness": { "command": "npx", "args": [ "-y", "krusch-coding-harness", "mcp" ] } } }Claude を終了してもう一度開く
試してみる
Krusch Coding Harness を使って、私に何ができるか教えて、1 つやってみせて✓ Claude が Krusch Coding Harness を使っていると言うか、回答に Krusch Coding Harness のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
ChatGPT はまだ Krusch Coding Harness につなげません
Krusch Coding Harness はパソコンに入れて使うものですが、ChatGPT は Web 上で動くサーバーにしかつなげません
代わりにできること
A · Krusch Coding Harness につなげるアプリを使う
- 先にパソコンへ Node.js を入れてください(1 回だけ) · パソコン版 Claude アプリ(Windows または Mac)のみ。Web やスマホでは使えません
- 先にパソコンへ Node.js を入れてください(1 回だけ)
- 先にパソコンへ Node.js を入れてください(1 回だけ)
- 先にパソコンへ Node.js を入れてください(1 回だけ)
B · 開発者ツール の中で ChatGPT につなげる別のサーバー
同じカテゴリでよく使われているものから、キーなしでアドレスだけでつなげるものを選びました
- Sentry✓ ChatGPT
- Compiler Explorer✓ ChatGPT
- GitDiagram✓ ChatGPT
Claude Code につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ)
AI にインストールしてもらう
このメッセージを Claude Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。
このパソコンの Claude Code に MCP server Krusch Coding Harness を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):claude mcp add --scope user krusch-coding-harness -- npx -y krusch-coding-harness mcp 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Krusch Coding Harness のツールが本当に表示されるか確認する。このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。
Node.js を入れる(まだなければ)
もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter
node -v- バージョン番号(例 v26.13.1)が出る = 入っています。この手順は飛ばせます
- "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
ターミナルの開き方
Mac:⌘ + Space を押し、Terminal と入力して Enter
Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」
まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です
入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です:
node -v一度入れれば、Node.js を使うすべてのツールで使えます
ターミナルを開く
Mac:Command+スペースで Terminal と入力 · Windows:PowerShell を開く
このコマンドを貼り付けて Enter
claude mcp add --scope user krusch-coding-harness -- npx -y krusch-coding-harness mcpClaude Code で /mcp と入力
Krusch Coding Harness が一覧にあり、接続済みと表示されれば OK です
試してみる
Krusch Coding Harness を使って、私に何ができるか教えて、1 つやってみせて✓ Claude Code が Krusch Coding Harness を使っていると言うか、回答に Krusch Coding Harness のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Anthropic のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
Cursor につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ)
AI にインストールしてもらう
このメッセージを Cursor のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。
このパソコンの Cursor に MCP server Krusch Coding Harness を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "mcpServers": { "krusch-coding-harness": { "command": "npx", "args": [ "-y", "krusch-coding-harness", "mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Krusch Coding Harness のツールが本当に表示されるか確認する。このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。
Node.js を入れる(まだなければ)
もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter
node -v- バージョン番号(例 v26.13.1)が出る = 入っています。この手順は飛ばせます
- "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
ターミナルの開き方
Mac:⌘ + Space を押し、Terminal と入力して Enter
Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」
まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です
入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です:
node -v一度入れれば、Node.js を使うすべてのツールで使えます
Cursor の AI チャットを Agent モードで開く
試してみる
Krusch Coding Harness を使って、私に何ができるか教えて、1 つやってみせて✓ Cursor が Krusch Coding Harness を使っていると言うか、回答に Krusch Coding Harness のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に Cursor のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
VS Code につなげますが、先に準備が必要です
先にパソコンへ Node.js を入れてください(1 回だけ)
AI にインストールしてもらう
このメッセージを VS Code のチャットに貼り付けます。AI がパソコンを確認し、変更するファイルを伝え、毎回あなたの了承を待ちます。
このパソコンの VS Code に MCP server Krusch Coding Harness を入れてください。順番に:1) node -v で Node.js があるか確認。なければ https://nodejs.org/en/download から入れるよう私に伝え、自分では入れない。2) この設定だけを使う(PopNx MCP の確認済み):{ "servers": { "krusch-coding-harness": { "type": "stdio", "command": "npx", "args": [ "-y", "krusch-coding-harness", "mcp" ] } } } 3) 変更するファイルのフルパスか実行するコマンドを伝えて、私の了承を待つ。4) キーは不要。5) 了承した内容を実行し、Krusch Coding Harness のツールが本当に表示されるか確認する。このメッセージにあなたのキーは含まれません。キーが必要な場合は、AI がファイルやアプリの入力欄にご自身で貼るよう案内します。
Node.js を入れる(まだなければ)
もう入っていますか?先に確認 · ターミナルを開き、このコマンドを入力して Enter
node -v- バージョン番号(例 v26.13.1)が出る = 入っています。この手順は飛ばせます
- "command not found"(Windows では "is not recognized")が出る = まだ入っていないか、入れた直後でターミナルを開き直す必要があります
ターミナルの開き方
Mac:⌘ + Space を押し、Terminal と入力して Enter
Windows:スタートメニューを開き、Windows PowerShell と入力して「開く」
まだ入っていない場合: 公式ダウンロードページで LTS 版と、クリックで進むインストーラーを選びます:Mac は .pkg、Windows は .msi。ダブルクリックして最後まで進めるだけで、curl コマンドは不要です
入れ終わったらターミナルを閉じて開き直し、同じコマンドをもう一度実行します。バージョン番号が出れば完了です:
node -v一度入れれば、Node.js を使うすべてのツールで使えます
VS Code の AI チャットを Agent モードで開く
試してみる
Krusch Coding Harness を使って、私に何ができるか教えて、1 つやってみせて✓ VS Code が Krusch Coding Harness を使っていると言うか、回答に Krusch Coding Harness のツール名が出れば接続成功です
メニュー名は 2026年11月11日 に VS Code のヘルプページで確認 · アプリのバージョンにより画面が少し違うことがあります
開発者向け:ターミナルのコマンドと JSON 設定
パソコンにインストール
Claude Code
claude mcp add --scope user krusch-coding-harness -- npx -y krusch-coding-harness mcpClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"krusch-coding-harness": {
"command": "npx",
"args": [
"-y",
"krusch-coding-harness",
"mcp"
]
}
}
}Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"krusch-coding-harness": {
"command": "npx",
"args": [
"-y",
"krusch-coding-harness",
"mcp"
]
}
}
}VS Code (mcp.json)
{
"servers": {
"krusch-coding-harness": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"krusch-coding-harness",
"mcp"
]
}
}
}この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
ひと目でわかる
使えるアプリ
このサーバーのつなぎ方と、各アプリの公式ドキュメントに基づきます。2026年11月10日に確認。
パソコン上で動かせるアプリ
ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast
できること
パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。
基本チェックi
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月19日にチェック
- ✓ 合格
作者とリポジトリが一致
レジストリ名はドメイン krusch.dev で確認済みです(レジストリがドメインの所有を確認しています)
- ✓ 合格
今もメンテナンスされている
コードの最終更新:今日
- ✓ 合格
ライセンスがある
MITを使用
- – 対象外
エンドポイントが応答する
これはパソコンで動くため、インターネット上のエンドポイントはありません
- – 対象外
OAuthでサインイン
パソコンで動き、代わりにローカルの設定を使います
- … 未チェック
ツールの説明に隠れた指示がない
パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです
公開済みの脆弱性(OSV.dev)
OSV.dev に krusch-coding-harness@0.2.1 の登録はありません
このバージョンのパッケージ本体のみ確認。すべての依存関係ではありません · 確認日 2026年11月19日
作者の方へ:再確認の依頼・情報の誤りの報告
作者向け:README にバッジを付ける
作者の方は、このコードを README に貼れます。バッジはこのページにリンクします。
[](https://mcp.popnx.com/en/servers/krusch-coding-harness)話し合い
質問、コツの共有、使えないことの報告ができます。「役に立った」の多い順です。
ユーザーレビュー
まだレビューはありません
開発者ツールのほかのサーバーとの比較i
- このカテゴリのほかの6116件のうち0%よりスターが多い
- このカテゴリのほかの6116件のうち99%より最近レジストリに公開
- 基本チェックの結果が、このカテゴリのほかの6116件のうち99%と同じかそれ以上
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
よくある質問
Krusch Coding Harnessは安全ですか?
当てはまる基本チェック3項目のうち3項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
どんなキーやコードが必要ですか?
レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。
パソコンで動きますか、それともクラウドですか?
あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。
今もメンテナンスされていますか?
GitHubリポジトリの最終更新は今日、最新バージョン(0.2.1)がレジストリに届いたのは今日です。
どのアプリで使えますか?
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。
代わりに使えるものは?
同じカテゴリには:GitDiagram, Appllama, Cloudflare MCP, Omnara, Repowise
似た働きのほかの候補
同じカテゴリでほかの作者のもの。コマンドは確認済み。公式を先に、次にスター順。
カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
GitDiagram
Architecture diagrams, explanations and Mermaid source for public GitHub repositories.
Appllama
Study screens, flows and paywalls from top-earning iOS apps, then build from what wins.
Omnara
Deploy durable AI agents with Omnara, an open-source managed-agent platform.
Repowise
Codebase intelligence for AI coding agents: graph, git history, docs, decisions, code health.
| これ Krusch Coding Harness | GitDiagram | Appllama | Cloudflare MCP | Omnara | Repowise | |
|---|---|---|---|---|---|---|
| 動く場所 | パソコンにインストールが必要 | クラウドで動き、インストール不要 | クラウドで動き、インストール不要 | クラウドで動き、インストール不要 | クラウドで動き、インストール不要 | クラウドでもパソコンにインストールでも使える |
| キーが必要 | いいえ | いいえ | いいえ | いいえ | いいえ | いいえ |
| Claude で + から追加 | いいえ | いいえ | いいえ | はい | いいえ | いいえ |
| 基本チェック | 3/3 | 4/4 | 4/4 | 4/4 | 4/4 | 5/5 |
| ライセンス | MIT | MIT | MIT | Apache-2.0 | Apache-2.0 | AGPL-3.0 |
| 料金 | 登録情報に費用の記載なし | 登録情報に費用の記載なし | 登録情報に費用の記載なし | 登録情報に費用の記載なし | 登録情報に費用の記載なし | 登録情報に費用の記載なし |
作者のREADME
READMEを開く
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
KRUSCH CODING HARNESS (v0.2.0)
PostgreSQL-backed coding harness ( krusch-coding-harness ) that stages diffs, runs sandboxed tests, and only then writes to disk. Models are ephemeral workers.
Core Thesis: *Models are ephemeral compute; PostgreSQL is the brain. Keep workflow, context, tests, and approvals consistent while making models interchangeable. Deterministic gates do not guarantee that a model's plan is semantically right; they bound blast radius, block repeatable defect classes, and guarantee clean rollback when verification fails.*
⚡ 5-Minute External Engineer Verification & Recorded 5-Step Demo
▶️ [Watch 20s Recorded Live Execution (`720p` MP4)](https://krusch.dev/assets/video/harness-loop-demo.mp4) · [Raw Terminal Output (`.txt`)](https://krusch.dev/assets/video/harness-loop-demo.txt) · [Source (`scripts/demo-full-harness-loop.mjs`)](scripts/demo-full-harness-loop.mjs) · [15s `SIGKILL`-Only Clip](https://krusch.dev/assets/video/crash-recovery-demo.mp4)
Real execution against
PostgreSQL 16andBubblewrap(bwrap --unshare-net) with zero mocks: (1) stages a flawed AI billing patch inkrusch_staged_diffswithout touching disk, (2) fails isolated sandbox tests (exitCode=1) and rejects the diff (status=REJECTED), (3) stages and sandbox-verifies the repaired 2-file integer-cent fix (exitCode=0), (4) killsapplyDiffBatch()mid-apply withSIGKILLafter file 1 is renamed and rolls back torn state via cold-workerrecoverInFlightApplies(), and (5) cleanly applies both files (status=APPLIED).
Agent-Assisted Setup
Ask your coding agent (Claude Code, Codex, Cursor, Windsurf, or Antigravity):
Read https://raw.githubusercontent.com/kruschdev/krusch-coding-harness/main/INSTALL.md and set up krusch-coding-harness on this machine.
Path A: Zero-Postgres, Zero-API-Key Verification (<30 seconds)
Runs in-process using built-in PGlite and deterministic fixtures (no Docker, no database server, no API keys):
git clone https://github.com/kruschdev/krusch-coding-harness.git
cd krusch-coding-harness npm ci
1. Run 52 fast unit tests (AST indexer, router gate, Slack HITL, cost kill-switch, SSRF fallback, policy floor)
npm run test:unit
2. Replay all 100 golden trajectories across 10 failure categories
npm run eval:trajectories
3. Verify TypeScript .d.ts declarations and run a complete ephemeral PGlite task
npm run typecheck ./bin/krusch-coding-harness.js run "Verify arithmetic module fix" --mock --ephemeral --auto-approve
Path B: Full PostgreSQL 16 + Bubblewrap 5-Step Crash-Recovery Loop (<3 minutes)
# 1. Start PostgreSQL 16 (defaults to postgresql://postgres:postgres@localhost:5432/krusch)
docker compose up -d
2. Apply all 11 SQL schema & row-lock invariant migrations
npm run migrate
3. Run all 118 unit, ephemeral, and PostgreSQL integration tests (includes real SIGKILL crash test)
npm test
4. Run the live 5-step stage -> fail -> repair -> SIGKILL recovery -> apply loop
node scripts/demo-full-harness-loop.mjs
When simpler suffices: For a single interactive developer session, an isolated
git worktree, staged diff, and sandboxed test run (the zero-Docker SQLite default inkrusch-stack) achieves practical safety with less operational surface. PostgreSQL write-ahead journaling targets unattended background daemons and multi-worker queues where crash recovery, file-lease concurrency, and durable audit state justify a database.
What You Get If You Only Clone krusch-coding-harness
When you clone this repository, you get a fully functional, self-contained headless execution engine with zero external cloud API dependencies:
┌────────────────────────────────────────────────────────────────────────┐
│ IN-TREE CAPABILITIES IN THIS REPO │ ├────────────────────────────────────────────────────────────────────────┤ │ ✓ Pre-Commit Staging Engine: SHA-256 content-addressed blobs │ │ ✓ PostgreSQL FSM: Row-locked phase transitions (INIT ➔ COMMITTED) │ │ ✓ Isolated VERIFY Sandbox: Bubblewrap (bwrap) / process jail │ │ ✓ Capability Allowlist: Test runners only; freeform shells blocked │ │ ✓ "2PC" Apply Journal: crash-recoverable fsync + per-file rename │ │ ✓ In-Memory Postgres: Zero-setup local evaluation via PGlite │ │ ✓ AST Symbol Indexer: JS, TS, Python, Go, Rust structural symbols │ │ ✓ Async HITL Slack Gate: 72h lease + fail-closed HMAC-SHA256 resume │ │ ✓ $0.50 Cost Kill-Switch: Loop-depth & local Ollama fallback router │ │ ✓ API-to-Browser Fallback: SSRF-hardened REST ➔ GUI failover │ │ ✓ Golden DAG CI Gate: 100-trajectory PR blocker across 10 categories │ │ ✓ OpenTelemetry Spans & Cost Ledger: Audit trace JSON per task │ │ ✓ Unified Control Plane: Doctor, :3778 HTTP Bridge & 7-Tool MCP │ └────────────────────────────────────────────────────────────────────────┘
[!NOTE]
Decoupled Architecture: Sibling packages (
krusch-pre-router,krusch-cascade-router,krusch-context-mcp,krusch-git) are dynamically resolved adapters. This repository includes its own in-tree regex heuristic gate and deterministic mock adapter that run out of the box with zero external git dependencies or cloud keys.
Architecture Diagram
flowchart TD
subgraph ControlPlane ["Unified Headless Control Plane"] CLI["CLI (bin/krusch-coding-harness.js | bin/krusch.js: doctor / ci / serve / bench)"] Bridge["HTTP Control Bridge (127.0.0.1:3778)"] MCP["MCP Server (stdio - 7 tools)"] end
subgraph Workflow ["Workflow & Safety Engine"] FSM["KruschStateMachine (Row-Locked FSM)"] Guard["TrajectoryGuard (Loop & Escalation)"] Classifier["ModularRSI (Failure Attribution)"] end
subgraph StorageEngine ["PostgreSQL Brain (ACID State)"] Tasks["krusch_tasks (Budgets & Revisit Caps)"] Blobs["krusch_blobs (Content-Addressed Deduplication)"] Diffs["krusch_staged_diffs (Leases & Pre-Commit Hashes)"] Journal["krusch_apply_journal (2PC State & Preimages)"] Runs["krusch_verification_runs (Replay Tokens & Envs)"] end
subgraph Sandbox ["Isolated VERIFY Sandbox"] Bwrap["Bubblewrap (bwrap) / Process Jail"] BaseRO["Base Tree (Read-Only Bind)"] Overlay["Overlay / Staged Tree Copy"] Allowlist["Capability Allowlist (Test Runners Only)"] Bwrap --> BaseRO Bwrap --> Overlay Bwrap --> Allowlist end
subgraph Disk ["Physical Working Tree"] WorkingTree["Physical Disk Files"] end
CLI --> FSM MCP --> FSM FSM --> StorageEngine FSM --> Sandbox Sandbox -->|Record Results & Exit Code| Runs StorageEngine -->|Verified & Approved: 2PC Crash-Recoverable Apply| WorkingTree
🧭 System Principles & Invariants
- State Lives in PostgreSQL: Primary task state, turns, events, and proposed file edits never live in transient scratchpads. All state persists to relational tables.
- Pre-Commit Staging Invariant: File edits generated by models are staged into
krusch_staged_diffswith SHA-256 validation. Physical disk files are never touched until tests pass and approval is granted. - Hard Sandbox Isolation: Verification does not run unconstrained on the user's checkout. It executes in an unprivileged Bubblewrap container (or process jail) with a read-only base tree, network isolation (
--unshare-net), scrubbed credentials (cleanEnv), memory/time limits, capability allowlisting, and process group termination. - Actionable Failure Attribution: Failures are classified into specific modules (
ContextManagement,ToolUse,ObservationManagement,AgentLoop) usingKruschFailureClassifierrather than blind re-prompting. - Storage-Engine-Grade Apply Journal: the 2PC apply journal (my name for a journaled, crash-recoverable multi-file apply protocol) provides per-file atomic replacement, upfront drift detection, and idempotent crash recovery. It does not make a multi-file batch atomically visible: other processes can observe a partly-applied batch until it completes or is rolled back.
📊 Empirical Benchmarks (95/95 Clean-Room SHA-256 Gates, Self-Run in Lab)
Evaluation Provenance & Third-Party Reproduction Status: Every benchmark below uses a public external dataset run in my lab, with `49` SHA-256-pinned raw audit log bundles (`64` files) across `335,000+` queries/traces and `14` external suites published openly on Hugging Face at `krush420/sovereign-g4-benchmarks` and interactively at `krush420/sovereign-router-arena` (including the maintainer-merged
RouteWorks/RouterArenaPR #169 receipt bundle onmain @ 844e93b). No outside party has yet re-run these harness evaluations; reproduction issues and independent verification attempts are welcome.
1. Aider Polyglot (225 / 225 Multi-Language Coding Tasks)
Evaluated hermetically across all `225` official `Aider-AI/polyglot-benchmark` tasks (cpp, go, java, javascript, python, rust with mandatory upstream test un-skipping: --include-ignored, xtest → test, -DEXERCISM_RUN_ALL_TESTS=1, @Disabled stripped, pristine test-hash verification, and clean-workspace .meta/.docs/test exclusion) pairing open-weights gpt-oss:120b with isolated bwrap sandbox test execution + evaluateVerifyOnStop:
| Track | Exercises | 1-Shot Pass@1 | `krusch-coding-harness` 2PC `Verify-on-Stop` `Pass@2` | Tasks Self-Healed | Multiplier |
|---|---|---|---|---|---|
| Overall (`Aider Polyglot`) | `225` | 19.56% (44/225) | `51.56%` (`116/225`) | `+72` | `2.64x` (`+32.00 pp`) |
Rust (cargo test -- --include-ignored) | 30 | 36.67% (11/30) | `66.67%` (`20/30`) | +9 | 1.82x |
JavaScript (npm test, xtest unskipped) | 49 | 18.37% (9/49) | `59.18%` (`29/49`) | +20 | 3.22x |
| Go (go test ./...) | 39 | 25.64%