Skip to content

Add report-only mediator boundary demo - #945

Merged
japan1988 merged 1 commit into
mainfrom
tasukeru-mediator-boundary-demo-20261006
Oct 7, 2026
Merged

japan1988 merged 1 commit into
mainfrom
tasukeru-mediator-boundary-demo-20261006

Conversation

@japan1988

Copy link
Copy Markdown
Owner

目的と不足していた点

メディエーターの提案が「分かりやすい」「安全そう」というだけで、実行権限や最終的な安全判断にならないことを、現在のTasukeru部品と組み合わせて確認する独立デモを追加します。

既存の証拠検証ゲートは、事実・出所の一致を確認する役割です。その契約内の不具合や権限回避を発見したという意味ではありません。証拠照合の外側にある、元の目的・対象・範囲・権限・操作の組合せ・未解決状態を一緒に検証するデモが不足していました。

追加機能

  • 調停前後の案を、同じ独立ルールで機械検証する32シナリオ。
  • 元の目的、対象、範囲、報告先と、入力・模擬状態のハッシュ結び付けを照合。
  • 「承認済み」「安全」という調停役の文章を非信頼テキストとして扱い、実行許可へ変換しない。
  • 模擬履歴を含む禁止組合せと累積予算を確認。
  • 不明・停止・却下を維持し、元の依頼、提案、観測事実、UNKNOWNを分けて人間へ表示。
  • 既存16ファイルを固定し、不一致時は検証条件を弱めず停止。

3つの手書きの模擬案は範囲を狭めて人間のレビュー待ちへ戻します。元ログの修復ではありません。全シナリオで実行権限は付与しません。

新規ファイルのみ

ファイル 役割
.github/workflows/tasukeru-mediator-boundary-demo.yml 独立した手動実行。合成データ・標準ランナー・7日保存
scripts/tasukeru_mediation_demo/run_mediator_boundary_demo.py 既存部品を変更せず読み込み、境界検証とレポート生成
tests/test_tasukeru_mediator_boundary_demo.py 18件の独立・起動経路・停止テスト
docs/tasukeru-mediator-boundary-demo.md 不足点、追加内容、起動方法、限界の日本語説明

既存の236ファイルのGit blobが基準コミット 4cc1e5e0a0575ad26879a2bd98639543648314c1 と同じことを確認しました。既存解析・Observer・承認草案・ワークフロー・判定条件は変更しません。新規YAMLは3,516バイトで、500 KB未満です。

ローカル確認

  • 新規テスト18/18、既存確認テスト114/114、承認記録読み取り草案テスト114/114。
  • 合成データの比較32/32、既存自己テスト20/20、既存模擬シナリオ10/10。
  • 前回のローカル入力パケットでも32/32。2件の観測差異は維持。ただし出所の実認証は行っていません。
  • YAML読み取り、シェル構文、環境変数の引き継ぎを含む実行ブロックのローカル確認。
  • Python 3.10/3.11/3.12の構文解析。実行はローカルPython 3.12。
  • 既存16ファイルの前後ハッシュ一致。

未検証・接続しない範囲

実AI、実ユーザー承認、共有台帳、認証付きイベントバス、実際の外部操作、自動修復、最終採用は接続しません。自然言語の隠れた目的を見抜く性能や、実AIが自力で案を修正する能力は未検証です。出所・承認者・時刻・履歴・停止状態は模擬入力であり、ハッシュは本人確認を代替しません。

ローカル環境では有効なactionlintとpytestが利用できず、Actions専用構文検証・pytestによる全体実行は未実施です(標準unittestの上記246件は実行済み)。GitHubの既存PR CIと、この新規ワークフローの手動実行は別途確認が必要です。

このPRの準備でマージ、auto-mergeの設定、手動workflow_dispatchは行いません。ユーザーが確認して手動マージした後に、main から手動実行できます。成功は本番承認やシステム全体の安全性の証明ではありません。

Add an independent manual fixture workflow and mechanical checks for declared purpose, scope, provenance binding, composition, and unresolved states. Preserve existing Tasukeru files and authority boundaries.

No real AI, live approval, ledger writes, repairs, merge, or workflow dispatch are enabled. Local tests and simulations passed; GitHub manual runtime remains unverified.

japan1988 commented Oct 6, 2026 •

Copy link
Copy Markdown
Owner Author

Additional independent checks and features added to the mediation experiment

A mediator may organize a proposal, but its own statement that the proposal is "safe" cannot establish that the original purpose, target, and authority were preserved, or that the combined operations are acceptable. The existing evidence comparison gate does not cover these outer conditions, so a separate verification demo has been added.

The added features are:

  • Fixed purpose, target, and scope.
  • Binding between the input and the simulated host state.
  • Separation of mediator text from execution authority.
  • Checks for prohibited combinations and cumulative budgets, including simulated history.
  • Preservation of UNKNOWN, stop, and rejection states.
  • Separate presentation of the original request, proposal, evidence, and unresolved issues for human review.

These checks operate on typed fixture inputs only and never grant execution permission.

Local validation passed: 18 new tests, 228 existing tests, 32 comparison scenarios, 20 existing self-tests, and 10 existing mock scenarios. All three GitHub PR checks also succeeded: Python 3.10, Python 3.11, and Tasukeru advisory analysis.

Only four new files were added. The existing 236 files were unchanged. The new YAML file is 3,516 bytes.

Unverified or unconnected: execution of this new manual workflow on GitHub, real AI mediation performance, live approval, a durable ledger and event bus, and enforcement boundaries for external operations. CI success does not verify these capabilities or establish whole-system safety.

No merge, auto-merge configuration, or manual dispatch of the new demo has been performed. Please review the changes before merging manually.

@japan1988
japan1988 merged commit b58337b into main Oct 7, 2026
3 checks passed
@japan1988
japan1988 deleted the tasukeru-mediator-boundary-demo-20261006 branch October 7, 2026 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant