Repository navigation
Add draft GitHub approval evidence reader - #944
Merged
Merged
Conversation
Owner
Author
|
目的は、将来の実ユーザー承認への接続に向けて、「誰が・どの提案について・どの実行に承認したか」を照合する部分を準備することです。 今回追加したのは、未接続の照合モジュールと、その模擬テストの2ファイルです。承認者・対象実行・Environment・提案と入力のハッシュ・期限を照合し、不一致、期限切れ、再実行、曖昧な記録、読み取り不能時は停止する設計です。記録が一致しても実行許可は発行しません。 ローカルでは、追加分114件、既存の確認テスト114件、既存デモ20件が合格しました。実ユーザーの認証、実行間の一回限りの承認消費、実バックエンドへの接続は未確認・未接続です。提案の有効期限は48時間とし、処理開始期限の確定は別段階に残しています。 公開リポジトリ・標準ランナー・模擬回答を使う方針を維持し、有料AI APIや常駐サーバーは追加していません。アカウント全体の保存容量と課金設定はまだ確認していません。 マージはユーザーが確認後に手動で行います。今回の追加だけでは実承認の処理は開始されません。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prepare an unconnected, read-only reader for comparing GitHub approval evidence with a fixed Tasukeru proposal.
Add two files:
scripts/tasukeru_mediation_demo/github_approval_reader.py: compare reviewer identity fields, repository, run, attempt, environment, proposal/input hashes and deadlines; classify approved or rejected records.tests/test_github_approval_reader_draft.py: 114 offline fixture tests, with network access blocked during module loading and each test.Mismatches, expired proposals, rerun attempts, ambiguous reviews and unresolved reads stop the comparison. A matching record is evidence only: the reader always returns
execution_allowed: false.This module is not connected to the workflow, authenticated GitHub transport, Environment protections or the shared one-use approval store. The existing analysis, observer and confirmation workflows remain unchanged. No AI API calls, automatic repairs, final adoption or live approval are enabled.
Local validation on Python 3.12.14 passed:
The proposal lifetime is 48 hours. The processing-start deadline must be supplied explicitly and remains a separate policy decision. Test deadlines are fixtures, not a finalized production policy.
GitHub CI verification is pending at PR creation. Leave merging to the user's manual review.