Repository navigation
feat(agy): switch permission-boundary live E2E to ephemeralMessage injection - #1994
Conversation
…jection (#1979) upstream google-antigravity/antigravity-cli#728 keeps toolCall injectSteps broken, so the live runner now injects natural-language ephemeralMessage instructions and bounded-retries (max 3/capability) prompt compliance, exiting EXIT_PROMPT_NONCOMPLIANT(78) when a capability never complies instead of silently falling through to the allow/deny verdict. Live verification against real AGY 1.1.9 confirms the mechanism works (3/4 capabilities compliant on round 1) but `write` never complies, so this PR does not close #1979. Co-Authored-By: Claude Sonnet 5 <[email protected]>
Preview URLPreview removed (PR #1994 closed). |
…alse-negative live投機的probe(write_to_file PreToolUse matcherへのstdin tee)で、実AGY 1.1.10のwrite_to_fileツール呼び出しには常にDescription引数が含まれることを 確認した。attempt_args["write"]にこのキーが欠けていたため、AGYが実際に 準拠したツール呼び出しを行っていても(enforcement.jsonlにdecision:deny/ policy_denyとして記録されている)、args_digestの完全一致判定が常に失敗し、 write capabilityがprompt_noncompliantと誤判定されていた(3ラウンドとも 両profileでexit 78)。 固定のDescription値を追加し、ephemeralMessage instructionにその値を 含めたところ、実AGYはverbatimでそれを再現し(デジタル指紋で確認済み)、 write capabilityは両profileでラウンド1からcompliantになった。 これによりexit 78(prompt_noncompliance)は解消されたが、genuine exit 0 にはまだ到達していない。新たに露呈した別原因(deny判定されたcapability でも実AGYはPostToolUseイベントを発火するため、post_tool_use_matches_ expectation/same_attempt_correlation predicateの「deny時はPostToolUse 皆無」という前提が実AGYの挙動と矛盾する)はwrite固有ではなく4 capability全てに影響する別問題であり、本コミットのスコープ外として 人間判断へ差し戻す。 Refs #1979
write capability の prompt-noncompliance を実 live probe で根本原因究明・修正root_cause_hypothesis(実証済み)
実証手順: PreToolUse の root_cause_confirmed: truefix_applied: true
new_live_results(この修正適用後、実 AGY 1.1.10 で再実行)
新たに露呈した別原因(write 固有ではない、genuine exit 0 の新たな障壁)write の non-compliance が解消されたことで、初めて allow/deny 判定ロジック 原因: Issue #1979 の In Scope には「deny 時の PostToolUse は forbidden 固定では status: blocked(write 固有の根本原因は解消・別原因が新たな障壁として残存)
|
Real AGY still dispatches a correlated PostToolUse event even when PreToolUse correctly denies the tool call. `_attempts_from_parent_observation` previously treated any PostToolUse occurrence on a deny-expected attempt as a mismatch (`agy_permission_boundary_inconclusive`), which made genuine live exit 0 unreachable. Per Issue #1979's In Scope contract, deny-time PostToolUse is now `characterize_and_record`: explicit PreToolUse deny and zero externally observed side effect remain required, but a correlated, secret-safe PostToolUse occurrence no longer fails the verdict. A stray (uncorrelated) PostToolUse occurrence, or one that discloses a secret, still fails. Adds the additive, optional `deny_post_tool_use_characterization` attempt field to the v1 schema and covers the new behavior with direct unit tests against `_attempts_from_parent_observation`. Live-verified with `--allow-live` against real AGY 1.1.10: both AC3 (`grounded_research`) and AC4 (`no_tools`) now exit 0.
… shutdown (#1979) socketserver.ThreadingMixIn.server_close() performs an unbounded join over per-request handler threads (block_on_close defaults to True), which is a distinct, unbounded race from the bounded self._thread.join(timeout=5) that only covers the serve_forever accept-loop thread. This only manifests after a real GET is actually served (the allow profile), never in the deny profile where no per-request thread is ever spawned. Disable block_on_close, mark request threads daemon, and bound the handler socket read timeout so an idle/pre-opened connection can never hang the thread indefinitely. Also split the previously-shared cleanup_ok boolean into independent loopback_stopped_ok / temporary_removed_ok flags so an unrelated temp-dir removal failure can no longer be misreported as a loopback shutdown failure (or vice versa). Adds a regression test driving the canary through a real request and asserting bounded shutdown, plus a test asserting the two cleanup fields are now independently derived.
PR Review Verdict独立検証実施(Allowed Paths gate: ok、CI 6/6 pass、loopback shutdown修正・deny characterization修正のコード直接確認、AC3/AC4 live実行を独立実行し実artifact確認: exit 0×2 + 実conversation_id/side effect/cleanup全true + schema validate pass、全1351 skillテスト pass)。 Blocker
verdict: REQUEST_CHANGES
reviewed_head_sha: "86bcdd911e8ac6e0b2ec041241de52ad6735a75b"
blockers:
- "references/failure-class-taxonomy.md と docs/dev/schema-governance.md が中間commit時点の古い記述(write非準拠・exit 78・Closes不使用)のままで、最終状態(exit 0達成・Closes #1979)と矛盾している。両ファイルを最終状態に合わせて更新する必要がある。"
warnings: [] |
…docs failure-class-taxonomy.md and schema-governance.md still described an intermediate state (write capability prompt-noncompliant, EXIT_PROMPT_ NONCOMPLIANT(78) on both profiles, PR not using Closes #1979) that was superseded by 18ff3be (write Description arg fix), c0e0a50 (deny-time PostToolUse characterization), and 86bcdd9 (loopback shutdown race fix). Update both files to describe the final, live-verified state: all 4 capabilities are prompt compliant and both AC3/AC4 genuinely exit 0 against real AGY 1.1.10, and this PR closes Issue #1979. Refs #1979
PR Review Verdict (final)ドキュメント修正のみのdiff(2ファイル、コード変更なし)を確認。両ファイルとも最終状態(write能力の修正・deny characterization修正・loopback shutdown修正・全capability compliant・AC3/AC4 genuine exit 0・Closes #1979使用)を正確に記述し、過去の経緯も保持していることを確認。CI 5/5 PASS、Allowed Paths gate: ok。 verdict: APPROVE
reviewed_head_sha: "4abbaddb33940715997a95196d5151fceb4f0f99"
blockers: []
warnings:
- "merge_state_status is BEHIND (mergeable=MERGEABLE); not a blocker, control-plane will run update_branch." |
敵対的レビュー結果verdict: REQUEST_CHANGES
reviewed_head_sha: "2adbd5afa519caee3d6bd227609956bf45626d11"
blockers:
- "deny 後の successful PostToolUse を合格扱いでき、AC4 の successful PostToolUse count == 0 を破る"
- "個別 artifact の exit 0 と canonical aggregate manifest の supported gate 要求が両立しない"
- "現 head の必須 CI が失敗している"
major_findings:
- "v1 schema の backward-compatible / migration不要という主張が片方向の互換性しか検証していない"
- "loopback_servers_stopped が handler thread 不在まで証明していない"
- "secret-safe artifact が raw absolute realpath を保持したまま clean を宣言する"PRは現在もopenで、確認対象headは P0-1: denyされたツールの「成功完了」を合格扱いできるIssue #1979のAC4は、deny側について明確に「successful PostToolUse count は0」と要求しています。一方、In Scopeではdeny後のPostToolUseを一律禁止せず、相関や秘密非開示を記録する方針です。両者を整合させるには、失敗・拒否結果のPostToolUseはcharacterizeしてよいが、成功PostToolUseは0件でなければならないという判定が必要です。 しかし現実装は、deny後のPostToolUseについて次の2条件しか実質的に確認しません。
これは実観測結果とも衝突しています。PRコメントには、deny後に発火したPostToolUseの 現在の公式hooks仕様では、PostToolUseはツール完了後に発火し、 必要な修正PostToolUseの保存形式に、少なくとも以下を追加すべきです。 deny側の合格条件は次のように固定します。 回帰テストとして、現在の
これはsecurity boundaryのfalse positiveなので、マージブロッカーです。 P0-2: exit 0 artifactとcanonical aggregateが論理的に両立しない新しいbootstrap predicateはpreflight時点では通常 問題は、live probeが成功しても、artifactへ渡される 一方、PR #1990で導入されたcanonical aggregate validatorは、allow/deny双方がpassなら、両artifactの したがって現在の経路は次の矛盾を持ちます。 PR本文の「AC3/AC4がexit 0」という主張だけでは、Issueが維持を要求しているallow-deny paired bindingを完了できません。Issue #1979も、PR #1990で追加済みのaggregate manifest bindingを維持するよう要求しています。 必要な修正live観測後に状態を更新してください。例えば次のようにpreflightとruntime observationを分離します。 {
"capability_gate": {
"preflight_status": "inconclusive",
"observed_status": "supported",
"status": "supported",
"evidence_source": "runtime_semantic_observation",
"observation_digest": "sha256:..."
}
}加えて、以下をvalidator invariantにする必要があります。 テストは、monkeypatchで最初から まで一続きで検証すべきです。 P0-3: 現headの必須CIが失敗している現head 失敗箇所は本PRのAGYコードとは無関係なVRT差分である可能性があります。しかし、これは「実装上の欠陥」と「マージ可能状態」を分けて扱うべき問題です。
少なくともrequired CIがgreenになるまではAPPROVEできません。 P1-1: v1 schemaの互換性判断が片方向のみPR本文は以下を主張しています。 しかしproducerは新フィールドを常時生成し、exit code 78も生成します。 変更前と変更後のschemaは、同じ
JSON Schemaの つまり正確な分類は次のとおりです。 修正候補最も明確なのは v1を維持する場合は、少なくともgovernanceに互換性方向を明記し、次を追加してください。
現状の P1-2:
|
Control-plane triage(squne121 敵対的レビュー、iteration次)P0-1・P0-2・P1-2・P1-3 を実コード確認の上、全て確認済みの実バグと判断しました:
P0-3は不正確と判断: branch protection必須contextsは 修正を実装へ委譲します。 |
#1979) Fixes 4 control-plane-confirmed bugs found by squne121's second-round adversarial review (issue comment 5190769472): - P0-1: deny-side PostToolUse pass condition ignored whether the correlated tool call actually succeeded (null error_digest). A successful side effect after an explicit deny is now a hard FAIL; only a correlated PostToolUse whose tool call itself errored/was rejected (non-null error_digest) is still characterized as acceptable. - P0-2: capability_gate never promoted past its static bootstrap result even after genuine live completion, and validate_aggregate_manifest() was defined but never invoked by the runner's own execution flow. capability_gate now promotes to status=supported/observed_status=supported with evidence_source=runtime_semantic_observation and an observation_digest after a genuine exit-0 live run (preserving the original static result as preflight_status), and _maybe_write_aggregate_manifest() now actually calls validate_aggregate_manifest() and persists the real result to aggregate/validation.json. - P1-2: loopback_servers_stopped did not prove per-request handler thread absence (block_on_close=False / daemon_threads=True only guarantee the listener closed). _LoopbackCanary now tracks active handler threads via Handler.setup/finish and stop() bound-waits on that set. - P1-3: the secret-safe scan only sanitized a deep-copy for scanning, leaving the raw absolute realpath in the real artifact. compute_binary_identity() now emits realpath_class (generalized/ masked) and realpath_digest (hash) instead of a raw realpath, so the distributed artifact never contains it and the scan-only carve-out is removed entirely. Also documents the one-directional nature of this schema's "backward_compatible" claim (P1-1) in docs/dev/schema-governance.md. Co-Authored-By: Claude Sonnet 5 <[email protected]>
PR Review Verdict(P0/P1修正後)P0-1・P0-2・P1-2・P1-3全て実コード確認+6回のfresh live実行で修正を確認。CI 6/6 PASS、Allowed Paths gate: ok、pytest 1356 pass。 BlockerPR本文に必須の verdict: REQUEST_CHANGES
reviewed_head_sha: "77e89cf5af9937a8790baec6e52adbee7de7093b"
blockers:
- "PR本文に必須の `## 受け入れ条件の達成状況` セクションが存在せず、AC1-AC8全件が個別に[x]/[ ]+根拠で記載されていない。"
warnings:
- "temporary_processes_removed flakinessの追跡用follow-up issue番号がSafety Claim Matrixに未記載。follow-up issue起票を推奨。" |
PR Review Verdict (final)PR本文のみの修正(head SHA変更なし、必須CI既にPASS済み)。 verdict: APPROVE
reviewed_head_sha: "77e89cf5af9937a8790baec6e52adbee7de7093b"
blockers: []
warnings: [] |
Summary
toolCallinjectSteps(upstreamgoogle-antigravity/antigravity-cli#728で機能しない)からephemeralMessageinjectSteps へ切り替えた。PreToolUse観測有無を確認し、非準拠 capability が 1 つでも残れば新設のEXIT_PROMPT_NONCOMPLIANT(78) で終了し、通常の allow/deny 判定へは進まない設計にした。preflight_agy.pyの live runner 束縛先 bootstrap predicate をpre_invocation_injected_tool_callからpre_invocation_ephemeral_message_injectionに変更し、live gate 条件をstatus != "supported"からstatus == "unsupported"に修正した(新 predicate は hardcode-unsupported 分岐を持たないため、旧条件のままだと live 実行が永久に到達不能になる既知の循環依存が再発するため)。validate_artifact()の secret-safe scan がrunner.binary_identity.realpath(正当な絶対パス)を誤検知し、/home/配下に home directory を持つほぼ全ホストで genuine live run を exit 1 に固定してしまう既存の潜在的欠陥(PR feat: bind AGY permission-boundary live E2E to capability gate (#1979) #1990 由来)も発見し修正した。write_to_fileの実 AGY tool call にはDescription引数が常に含まれることを live 投機的プローブで確認し、attempt_args["write"]に追加した。これによりwritecapability の恒常的 prompt-noncompliance(args_digest不一致による偽陰性)を解消した。agy_permission_boundary_inconclusive)に終わっていた根本原因を特定した。実 AGY はPreToolUseが正しく deny した後も、相関するPostToolUseイベントを発火させることがある。_attempts_from_parent_observation()のpost_tool_use_matches_expectation/same_attempt_correlationpredicate は、deny 期待の attempt に対してPostToolUseの発生をゼロ固定で要求していたため、この実挙動を誤って mismatch として扱っていた。Issue 実装: AGY permission boundaryのdeterministic live E2Eをupstream capabilityへ束縛する #1979 の In Scope が既に規定していたcharacterize_and_record(explicit deny・同一 attempt への correlation・secret 非開示を評価し、PostToolUse ゼロ固定を要求しない)を実装し、schema に additive optional fielddeny_post_tool_use_characterization(applicable/observed/correlated/secret_scan_passed)を追加した。stray(相関しない)PostToolUse や secret 開示を伴う PostToolUse は引き続き失敗として扱う。--allow-live)で、grounded_research(allow, AC3)/no_tools(deny, AC4)の両 profile が genuine exit 0 に到達した。4 capability(command/write/read/network)全てが 1 ラウンド目で prompt compliant となり、deny profile では 4 capability 全てでdeny_post_tool_use_characterization: {observed: true, correlated: true, secret_scan_passed: true}として実 AGY の PostToolUse 発火が正しく characterize された。agy_permission_boundary_inconclusiveで exit 1 していた。根本原因は_LoopbackCanary.stop()内のself._server.server_close()—socketserver.ThreadingMixInは既定でblock_on_close=Trueのため、server_close()が実際に処理した per-request handler thread に対して 無期限 のjoin()を行う。これは直後のself._thread.join(timeout=5)(serve_foreverの accept-loop thread のみを対象とする、別の bounded join)とは別物で、一切 bound されていなかった。deny profile では canary に一度も実リクエストが飛ばないため per-request thread が生成されず、この経路が常に無害だった(= deny 側だけ常に clean だった理由)。修正としてblock_on_close=False(この無期限 join 自体を無効化)・daemon_threads=True・handler 側 socket read の boundedtimeout=2(idle/事前接続コネクションがrfile.readline()で無期限に詰まることへの防御)を追加した。加えて、loopback_servers_stoppedとtemporary_processes_removedが単一の共有cleanup_okboolean にまとめられていたため、一方の失敗がもう一方にも誤って伝播していた欠陥も分離修正した(temp-dir削除失敗を人為的に注入するテストで確認)。修正後、AC3 を独立に 3 回・AC4 を独立に 2 回、クリーンな artifact-dir で実 AGY 1.1.10 に対して再実行し、全て genuine exit 0(cleanup全フィールドtrue)を確認した。post_tool_use_matches_expectationが correlation と secret-scan のみを見ており、correlate したPostToolUseのerror_digestがnull(実ツール呼び出しが deny にもかかわらず成功した、真の permission-boundary breach)であるケースを見逃していた。error_digest: nullの correlated PostToolUse は deny attempt を FAIL させ、error_digestが非 null(ツール呼び出し自体が失敗/拒否された)の場合のみcharacterize_and_recordとして許容するよう修正した。capability_gate.statusは起動時の static preflight 結果(inconclusive)のまま固定されていた。加えてvalidate_aggregate_manifest()は定義されているだけで runner 自身の実行経路からは一度も呼び出されていなかった(test からのみ呼ばれていた)。修正: genuine exit 0 到達時にcapability_gateをpreflight_status(元の static 結果を保持)・status: "supported"・observed_status: "supported"・evidence_source: "runtime_semantic_observation"・observation_digestへ昇格するようにし、_maybe_write_aggregate_manifest()がvalidate_aggregate_manifest()を実際に呼び出しその結果をaggregate/validation.jsonとして永続化するようにした。loopback_servers_stoppedがハンドラスレッド不在を証明しない(P1-2):block_on_close=False/daemon_threads=Trueは listening socket の close と accept-loop スレッドの終了のみを保証し、per-request handler スレッドの終了は保証しない。Handler.setup/Handler.finishで稼働中の handler スレッド ID を実際に追跡し、stop()がその集合に対して bounded に(既定 3 秒)実際の空集合到達を待つよう修正した。validate_artifact()の secret scan は deep copy 上でのみbinary_identity.realpathを blank にしており、実際にディスクへ書き込まれる artifact には生の絶対パス(ホストのユーザー名を含む)が残っていた。sanitize をソース側(preflight_agy.py::compute_binary_identity())へ移し、realpathを廃止してrealpath_class($HOME相対化/ベース名の汎用化表現)・realpath_digest(実パスのハッシュ)に置き換え、scan-only carve-out を撤廃した。修正後、実 AGY 1.1.10 に対し AC4(deny, no_tools)を 3 回・AC3(allow, grounded_research)を 2 回、クリーンな artifact-dir で
--allow-live再実行し、いずれも genuine exit 0 を確認した(うち deny 側は 1 回、temp ディレクトリ削除の transient race(temporary_processes_removed: false。descendant process 自体は既に absent と報告されているにもかかわらず rmtree が失敗する既知先行事象で、本 PR のスコープ外の別 flakiness。再実行で再現しないことを確認済み。追跡用 follow-up issue 実装: AGY live E2E の temp-root cleanup を原因分類付き single retry にする #1997 を起票した)で exit 1 になったが、これは今回の 4 件の修正とは無関係)。さらに allow/deny 両方を同一 pair ディレクトリで実行し、aggregate/validation.jsonが実際に{"valid": true, "reason": "valid"}を記録することを確認した(validate_aggregate_manifest()が実運用で genuine に呼ばれ pass することの実証)。Checks
pnpm typecheck(型チェック pass)pnpm lint(lint pass)pnpm test(Vitest 1835 件 pass)pnpm build(vite build 成功)uv run --locked pytest .claude/skills/gemini-cli-headless-delegation/tests/ -q(1356 件 pass。P0-1 deny 分割 test 2 件・P0-2 end-to-end promotion/aggregate test 2 件・P1-2 handler-thread test 2 件を追加)uv run --locked pytest .claude/skills/gemini-cli-headless-delegation/tests/test_model_routing.py -q(21 件 pass)pnpm test(Vitest 1849 件 pass)run_agy_permission_boundary_e2e.py --profile no_tools --allow-live→ 3 回実行、2 回 genuine exit 0・1 回はスコープ外の temp-dir 削除 race(無関係な flakiness、再実行で解消確認済み)run_agy_permission_boundary_e2e.py --profile grounded_research --allow-live→ 2 回連続で genuine exit 0(別々のクリーン artifact-dir)validate_aggregate_manifest()が実際に{"valid": true}を返すことを確認受け入れ条件の達成状況
test_agy_capability_classification.pypass(11 tests)。bootstrap predicate がpre_invocation_ephemeral_message_injectionに更新され、claim_under_test(deny_precedence_enforced等)は live run 前にsupportedを要求しない分類が実装されている。test_agy_live_runner_capability_binding.pypass(7 tests)。bootstrap predicateunsupported時に live 実行を試みずEXIT_UNAVAILABLE(77) を返すことを hermetic fake で確認。--allow-livegrounded_research 実行(本文 Notes / Safety Claim Matrix参照)。第二ラウンド修正後、独立した 2 回のクリーンな artifact-dir 実行がいずれも genuine exit 0(全 4 capability prompt compliant、network capability allow・loopback canary 実 hit)。--allow-liveno_tools 実行(本文 Notes / Safety Claim Matrix参照)。第二ラウンド修正後、独立した 3 回のクリーンな artifact-dir 実行のうち 2 回が genuine exit 0(残り 1 回は本 PR スコープ外のtemporary_processes_removedtransient race で exit 1、follow-up 実装: AGY live E2E の temp-root cleanup を原因分類付き single retry にする #1997 で追跡)。test_agy_mcp_unsupported_by_design.pypass(17 tests)。agy_permission_enforcement_hook.pyがagy_permission_policy.pyを import しない事実に基づき MCP をcompletion_blocker: falseとして扱う。test_agy_paired_artifact_schema.pypass(18 tests)。schema にattempt_method/prompt_compliance/attempt.deny_post_tool_use_characterization/capability_gate.preflight_status/observed_status/observation_digestを additive optional で追加し、producer/validator/consumer(tests) が同期済み(additionalProperties: false維持)。test_agy_process_cleanup_evidence.pypass(7 tests)。process group 単位の起動・terminate/kill・descendant 不在確認を、directory cleanup とは別 predicate として artifact に記録。test_agy_prompt_compliance_retry.pypass(6 tests)。capability ごとに最大 3 回の bounded retry を行い、期待するPreToolUseが観測されない capability が 1 つでもあればEXIT_PROMPT_NONCOMPLIANT(78) で終了することを hermetic fake で確認。Schema Change Applicability
schema_changeagy_permission_boundary_e2e_v1.schema.json(agy_permission_boundary_e2e/v1)に additive optional fieldattempt_method/prompt_compliance/attempt.deny_post_tool_use_characterization/capability_gate.preflight_status/capability_gate.observed_status/capability_gate.observation_digestを追加し、runner.exit_codeの enum に78を追加した。加えてrunner.binary_identity.realpath(required)をrealpath_class/realpath_digest(いずれも required)へ breaking に置換した(P1-3、下記 Compatibility Decision 参照)。Schema Consumer Inventory
変更対象 schema:
agy_permission_boundary_e2e/v1before/after 差分:
Consumer 列挙(rg コマンド例と結果):
rg -l "attempt_method|prompt_compliance|deny_post_tool_use_characterization" .claude/skills/gemini-cli-headless-delegationConsumer 更新状況:
run_agy_permission_boundary_e2e.py(producer,_artifact()/_attempt_template()/_attempts_from_parent_observation())attempt_method/prompt_compliance/deny_post_tool_use_characterizationを生成(_unavailable_artifact含む全経路)。deny 期待の predicate をcharacterize_and_record方式に修正run_agy_permission_boundary_e2e.py(validator,validate_artifact())test_agy_paired_artifact_schema.pytest_producer_still_always_emits_the_additive_fieldsに両フィールド追加test_agy_live_runner_capability_binding.pytest_agy_permission_boundary_runner.pydeny_post_tool_use_characterizationの 6 新規 test(correlated-post-on-deny 許容・uncorrelated 失敗・secret 開示失敗・no-post 既存挙動維持・allow 側 not-applicable・live shape の schema 妥当性)を追加test_agy_prompt_compliance_retry.pydocs/dev/schema-governance.mdCompatibility Decision(互換性判断)
additive+runner.binary_identityサブフィールドのみbreaking(P1-3)backward_compatible(attempt_method/prompt_compliance/deny_post_tool_use_characterization/capability_gate.preflight_status/observed_status/observation_digestの additive field について)。ただしrunner.binary_identity.realpath→realpath_class/realpath_digestの置換は breaking な local-contract 修正であり、旧 shape(realpathを持つ)artifact はこの schema 変更後は無効になる。no。binary_identity.realpathを直接読む consumer が万一あればrealpath_class/realpath_digestへの追従が必要(本 PR 群の producer/validator/test 以外に consumer が存在しないため実害なし、docs/dev/schema-governance.mdに明記)。requiredに追加していないため旧 v1 形状の artifact も引き続き有効。test_pre_1979_v1_shaped_artifact_without_new_fields_remains_schema_validで検証)。realpath置換はv2schema bump ではなくこの場での是正とした(docs/dev/schema-governance.mdに理由を明記)。0/1/77を変更しない拡張、additionalProperties: falseは維持。realpath置換は P1-3(secret-safe scan の抜け穴を producer 側で根本修正するため)の必須の副作用。backward_compatibleは new-reader-of-old-artifact のみを指す(旧 validator が新 shape の artifact を受理できることは保証しない)。詳細はdocs/dev/schema-governance.mdに追記した。Safety Claim Matrix
ephemeralMessage(自然言語指示)経由のみで、toolCall直接注入は使用しないreferences/failure-class-taxonomy.mdの 2026-08-04 live 検証結果セクション。実 AGY 1.1.10 でcommand/write/read/network全 capability が 1 ラウンド目で compliant を観測writeの Description 引数欠落を修正済み)test_agy_prompt_compliance_retry.py::test_run_returns_exit_prompt_noncompliant_when_any_capability_never_compliescharacterize_and_record)test_agy_permission_boundary_runner.py::test_deny_correlated_posttooluse_is_characterized_not_failed/ live 検証(AC4 全 4 capability でobserved: true, correlated: true, secret_scan_passed: trueかつ exit 0)test_agy_permission_boundary_runner.py::test_deny_uncorrelated_posttooluse_still_fails/test_deny_correlated_posttooluse_with_secret_leak_failsvalidate_artifact())はbinary_identity.realpath以外の全フィールドを引き続き scan するtest_evidence_artifact_rejects_stdout_only_or_secret_data/test_evidence_artifact_rejects_raw_diagnostic_payload(既存 test、pass 維持)--allow-live実行(実 AGY 1.1.10)、AC3 は独立 3 回・AC4 は独立 2 回、クリーンな artifact-dir でいずれもrunner.exit_code == 0、cleanup全フィールドtrue、failure_taxonomy.completion == true、validate_artifact() == (True, "valid")trueになる)_LoopbackCanary.stop()のblock_on_close=False/daemon_threads=True/handlertimeout=2化、test_agy_permission_boundary_runner.py::test_loopback_canary_stops_cleanly_and_promptly_after_a_real_hit、test_agy_permission_boundary_runner.py::test_cleanup_evidence_fields_are_independent_not_a_shared_flagerror_digest: null)場合は boundary breach として FAIL するtest_agy_permission_boundary_runner.py::test_deny_correlated_posttooluse_with_null_error_digest_fails/test_deny_correlated_posttooluse_with_error_digest_is_characterized_not_failedcapability_gateが static preflight 結果からsupported(observed_status/evidence_source/observation_digest付き)へ昇格し、元の static 結果はpreflight_statusとして保持されるtest_agy_paired_artifact_schema.py::test_full_live_pass_promotes_capability_gate_from_genuine_inconclusive(monkeypatch でsupportedを直接与えず、genuineinconclusive起点から昇格させて検証)、live 検証(.claude/tmp実行、両 profile でpreflight_status: inconclusive→status: supportedを確認)validate_aggregate_manifest()は runner 自身の実行経路から実際に呼び出され、結果が永続化されるtest_agy_paired_artifact_schema.py::test_full_live_pass_pair_writes_aggregate_that_actually_validates_supported/test_maybe_write_aggregate_manifest_writes_once_both_sides_exist、live 検証(aggregate/validation.jsonが実際に{"valid": true}を記録)_LoopbackCanary.stop()は per-request handler スレッドの実際の終了を bounded に待ってから結果を返す(listener/accept-loop の停止だけで推測しない)test_agy_permission_boundary_runner.py::test_stop_waits_for_a_slow_handler_thread_to_actually_finish/test_stop_detects_a_lingering_handler_thread_and_returns_falsebinary_identityに生の絶対 realpath を一切含まない(scan-only の carve-out ではなくソース側で sanitize)preflight_agy.py::compute_binary_identity()がrealpath_class/realpath_digestのみを返す、test_agy_paired_artifact_schema.pyの binary identity test、live 検証(realpath_class: "$HOME/.local/bin/agy"、生パス非含有を目視確認)CI Test Performance Decision(CI 性能判断)
Notes
temporary_processes_removedの transient race(AC4 live 検証中に本 PR スコープ外で観測)の追跡用 issue 実装: AGY live E2E の temp-root cleanup を原因分類付き single retry にする #1997 を起票した。Closesを使用する)--allow-live、existing auth read-only、isolated HOME、loopback network only)。references/failure-class-taxonomy.mdに既存の同旨の記載あり)。用語自体の変更は本 PR のスコープ外とする。