Skip to content

調査: sanctioned executor による publish guard 注入経路を復旧する #1703

Open

Description

@squne121

Machine-Readable Contract

contract_schema_version: v1
issue_kind: research
parent_issue: "none"
goal_ref: "実行ホスト環境へ publish guard を注入できる sanctioned executor を復旧し、#1671 / PR #1685 の live runtime trust 証跡を偽装不能な経路で取得可能にする"
change_kind: research-only

Parent Issue

none(単独改善)

Outcome

sanctioned executor の実行ホスト・注入境界・証跡 schema・権限モデルを current runtime で確認し、偽装可能な environment/payload を PASS 根拠にしない implementation Issue を起票できる状態。

In Scope

  • 実行ホストで publish guard を注入できる sanctioned executor の有無、呼出し権限、入力/出力 schema、artifact 保存先を read-only で確認する。
  • Codex 子 agent が親 session の runtime override を継承する挙動と、custom agent TOML/payload/environment の自己申告が effective permission/hook trust の証明にならない境界を記録する。
  • trusted host provenance を持つ executor が存在する場合は、再現可能な implementation Issue の Allowed Paths、AC、VC、host artifact binding を設計する。存在しない場合は復旧 owner と必要な host-side operation を具体化する。

Out of Scope

Acceptance Criteria

  • AC1: sanctioned executor の host provenance(実行元、権限境界、publish guard 注入可否、artifact path)が一次証跡で記録される。
  • AC2: environment/payload/TOML の自己申告だけでは effective permission profile・hook trust・nested delegation disable を PASS 判定できないことが検証される。
  • AC3: 実装可能な場合は後続 implementation Issue を起票し、不可の場合は host-side recovery operation と担当境界を本 Issue に記録する。

Verification Commands

# AC1
$ codex --version

# AC2
$ rg -n "parent turn's live runtime overrides" /tmp/openai-docs-cache/codex-manual.md

# AC3
$ gh issue list --repo squne121/loop-protocol --state open --search "sanctioned executor"

Allowed Paths

  • 読み取り専用。リポジトリ変更なし(実行ホストと Issue/PR metadata の readback に限定)

Stop Conditions

  • Outcome / Scope / AC が検索可能な形で記載されていない場合は即停止
  • Allowed Paths 外への書き込みを試みた場合は即停止
  • 権限不足(permission denied)により操作が完了できない場合は即停止
  • 成果物の書き込みに失敗した場合(I/O エラー等)は即停止
  • host-side executor の復旧に未承認の権限昇格または user/global runtime 設定変更が必要になった場合は即停止

Handoff Contract

Notes for Reviewer

Activity

  1. added
    phase/research
    agent/research
    on Jul 24, 2026
  2. squne121 commented on Jul 24, 2026

    @squne121
    OwnerAuthor

    確認結果

    確認時点は 2026年7月25日(JST) です。

    Issue #1703 は OPEN の research Issue で、リポジトリ変更は明示的に Out of Scope、コメントもまだありません。したがって、#1703 自体を実装PRで直接 Closes するより、まずホスト側の一次証跡を記録して AC1〜AC3 を満たし、その結果に基づく implementation Issue を別途実行する構成が適切です。

    依存先の PR #1685 は、確認時点の head が 8641cc2d193bd0a0678467289e0e5f7e7f8ed329 で、ci、日本語チェック、hook integrity、session manifest、Pages deploy はすべて成功しています。Allowed Paths の問題や通常のコード・CI blocker は解消済みです。最新レビューの実質的な blocker は live runtime trust が not_proven のままであることだけで、fixture・E2E・CI の成功は live named-spawn/hook trust の代替として認められていません。

    既存の担当先 #1686 は既に CLOSED / not_planned です。一方、#1688 は「existing-branch publish guard の実行ホスト context 注入」を扱う OPEN implementation Issue で、codex-hook-adapter.mjs、git_mutation_command_policy.py、subprocess tests、docs という変更範囲が #1703 と直接重なります。ただし、#1688 の現在の契約は fixture/subprocess 検証に限定されており、それだけでは PR #1685 が要求する live host provenance を満たしません。原則として #1688 を改訂・再利用し、host-owned receipt/managed executor 側だけを別 Issue に分割する必要がある場合に限って新規 Issue を作るのが重複の少ない進め方です。

    #1676 は scope-rollup capability の削除・移設・保持に関する C1 migration decision を専有しています。今回の対応では、#1676 の判断を回避して capability を削除・置換してはいけません。明示的な反対根拠がない場合は、最も非破壊的な retain を暫定判断として記録し、#1685 の runtime trust 修復を先に進めるのが安全です。

    コード上も #1703 の問題設定は妥当です。publish context は現在 LOOP_PUBLISH_* のプロセス環境から読み込まれますが、Codex adapter は terminal command の env VAR=... prefix を除去して分類し、policy subprocess は hook 実行ホスト側の環境を継承します。このため、terminal 側の自己申告で trusted host context を注入することはできず、host-owned executor または managed hook が必要です。

    現在の main は 5d659231ed34036d3b4cc80277d6ef6c4bc16018 です。Claude 側では PR #1691 により local_main_branch_guard と worktree_scope_guard が一時的に外されていますが、Codex 側の .codex/hooks.json では両 guard と session-recording adapter が引き続き有効です。そのため、実装やGitHub操作を Claude Code が統括することはできますが、live trust の証明だけは実際の Codex CLI runtime で取得する必要があります。

    OpenAI の現行仕様でも、Codex subagent は親ターンの sandbox、permission mode、セッション中の runtime override を継承します。custom agent TOML の宣言だけでは実効状態を証明できません。また、project hook は現在の定義ハッシュごとに trust が必要で、managed hook は system・MDM・cloud・requirements.toml 由来の policy-trusted source として扱われます。--yolo や --dangerously-bypass-hook-trust を使った実行は、今回必要な trust 証明をむしろ無効化します。([OpenAI Developers]1) ([OpenAI Developers]2)

    実行用プロンプト

    Codex CLI への投入を推奨します。 Claude Code に投入する場合も、live runtime verification の工程では、実際の Codex CLI とその host hook/executor を起動させてください。

    あなたは squne121/loop-protocol のリポジトリ保守を、調査から実装、テスト、PR、レビュー修正、マージ、Issueクローズまで自律的に完遂する実装エージェントです。
    
    Primary Issue:
    https://github.com/squne121/loop-protocol/issues/1703
    
    Known related work:
    - Issue #1671
    - PR #1685
    - Issue #1676
    - Issue #1686
    - Issue #1688
    - Issue #1690
    - PR #1691
    
    この作業では人間への確認、承認依頼、選択肢提示、レビュー待ちを行わないでください。通常の非破壊的なリポジトリ操作、Issue/PR metadata 更新、コミット、canonical push、CI再実行、レビュー対応、通常の gated merge、Issueクローズは事前承認済みです。
    
    Claude Code でこのプロンプトを実行している場合も、Codex live runtime trust の証跡を Claude の自己申告、Claude hook、fixture、TOML、環境変数で代替してはいけません。live verification は実際の Codex CLI host 上で実行してください。
    
    ────────────────────────────────────
    1. 基本原則
    ────────────────────────────────────
    
    - リポジトリ内の AGENTS.md、CLAUDE.md、project constitution、関連する skill、issue/PR workflow を最初に読み、現行ルールを優先する。
    - 下記に記載した SHA や状態は調査時点の参考値にすぎない。作業開始時と各 publish/review/merge の直前に GitHub と origin を再読する。
    - raw `git add`、raw `git commit`、force push、直接 Ref API mutation を使わず、リポジトリに既存の controlled executor、open-pr、impl-review-loop、pr-review-judge、issue editing lane を優先する。
    - GitHub mutation には常に `--repo squne121/loop-protocol` 相当の明示的 repository binding を使用する。
    - `--yolo`、`--dangerously-bypass-hook-trust`、hook無効化、approval policy の緩和、branch protection の迂回を行わない。
    - `.env`、credentials、token、keychain、`~/.config/gh`、認証ファイル、環境変数の全量出力を読まない。`env`、`printenv`、secret listing を実行しない。
    - fixture、agent自身が書いたJSON、terminal env prefix、payload内の自己申告、custom agent TOML、単独の `codex --version` 出力を live trust の PASS 根拠にしない。
    - テスト失敗、CI失敗、レビューの REQUEST_CHANGES、merge conflict、Issue契約の不備、Allowed Paths の不足、重複候補、flake、branch drift は停止条件ではない。必要な契約更新、修正、再テストを自律的に行う。
    
    ────────────────────────────────────
    2. 開始時の live readback
    ────────────────────────────────────
    
    次を live API と origin から再取得し、開始時スナップショットを作る。
    
    - origin/main の SHA、default branch、repository visibility、branch protection の確認可能な範囲
    - Issue #1703 の title/body/state/labels/comments/updatedAt
    - Issue #1671、#1676、#1686、#1688、#1690 の title/body/state/labels/comments/updatedAt
    - PR #1685 の base/head SHA、draft、mergeability、changed files、comments、reviews、review threads、checks、workflow runs
    - #1688 または #1703 を参照する既存PR
    - 次のファイルに対する OPEN PR の変更競合
      - scripts/session-recording/codex-hook-adapter.mjs
      - scripts/agent-guards/git_mutation_command_policy.py
      - .codex/hooks.json
      - .codex/config.toml
      - .codex/rules/default.rules
      - docs/dev/session-recording-policy.md
      - docs/dev/hook-boundaries.md
    - 現在有効な Claude/Codex hook topology
    - PR #1691 マージ後の一時的な hook 非対称状態
    - #1676 の C1 migration decision の最新状態
    
    最初のスナップショットには、少なくとも次を含める。
    
    ```yaml
    START_STATE_V1:
      main_sha:
      issue_1703_updated_at:
      issue_1688_state:
      pr_1685_head_sha:
      pr_1685_ci_status:
      pr_1685_latest_verdict:
      direct_overlap_prs:
      hook_topology:
        claude:
        codex:
    

    ────────────────────────────────────
    3. Issue #1703 の research AC1〜AC3
    ────────────────────────────────────

    リポジトリ変更前に、#1703 の read-only 調査を完了する。

    3.1 sanctioned executor / host trust source の探索

    実行中の Codex host について、秘密情報を読まずに次を確認する。

    • 実際に起動された Codex executable の host-resolved realpath、ファイルdigest、version

    • active config layers と各 source の種別

      • system
      • managed / MDM / cloud / requirements.toml
      • user
      • project
      • session
      • plugin
    • active hook sources、hook definition hash、trust status

    • managed hook または managed launcher の有無

    • project hook が trust済みである場合、その trust scope と hash

    • effective permission mode

    • effective sandbox policy

    • parent turn の runtime override

    • named subagent の agent type、agent id、turn id

    • child が親 runtime override を継承したこと

    • nested delegation が実効的に無効であること

    • host-only artifact root または host-only file descriptor/capability の有無

    • agent/workspace から同じ証跡を偽造できない理由

    • executor の入力schema、出力schema、artifact path、所有者、mode、lifecycle

    codex --version は inventory として記録してよいが、単独では PASS に使わない。

    3.2 live probe

    可能なら実際の Codex named subagent を一度起動し、以下を満たす無害な live probe を実行する。

    • SubagentStart が実際に発火する
    • harmless な local tool call に対して PreToolUse が実際に発火する
    • parent session / turn / agent binding を host側で記録する
    • repository sourceへの書き込みやGitHub mutationを行わない
    • permitted ephemeral root への限定的なwriteが必要なら、生成物を専用temp rootに限定する
    • nested subagent の起動が拒否されることを副作用なしで確認する
    • hookがSKIPされた場合は PASS にしない
    • project codeからhook scriptを直接起動して同じreceiptを生成できる場合は unforgeable と判定しない

    3.3 research outcome の公開

    調査結果を #1703 に、controlled issue comment/body-update laneを優先して公開する。

    最低限、次の形式を含める。

    SANCTIONED_EXECUTOR_RESEARCH_V1:
      issue_number: 1703
      main_sha:
      executor:
        status: present | absent | insufficient
        source_kind:
        realpath:
        digest:
        privilege_boundary:
      hook_trust:
        source_kind:
        managed:
        definition_hash:
        trust_status:
      runtime:
        permission_mode_source:
        sandbox_policy_source:
        parent_override_inheritance:
        nested_delegation_verdict:
      artifact:
        path:
        owner_boundary:
        mode:
        agent_writable:
        replay_protection:
      self_attestation_negative_result:
      implementation_route:
      required_host_operation:
      blocking_permission:

    #1703 の AC1〜AC3 をチェック可能な形で本文またはコメントに記録する。

    ────────────────────────────────────
    4. 実装Issueの重複判定
    ────────────────────────────────────

    #1688 を最初の canonical implementation candidate とする。ただし機械的に新規Issueを作らない。

    次の順序で決定する。

    A. #1688 が未着手で、既存branch publish context consumerとhost provenance producerを同一の正確な契約で扱える場合:

    B. host-managed producer がリポジトリ外の管理対象であり、#1688 の repo-side consumer と同一Issueに含めると契約が虚偽または過大になる場合:

    • 最大2つの非重複 implementation Issue に分割する。

      1. 実装: existing-branch publish guard の実行ホスト context 注入を復旧する #1688: repo-side context consumer / transaction executor
      2. 新規Issue: host-managed producer / receipt / deployment binding
    • dependency orderと各成果物を明記する。

    • それぞれ 1 Issue = 1 PR とし、順番に完遂する。

    • 新規IssueのPRには Closes #<new issue>、#1688のPRには Closes #1688 を含める。

    C. trusted host producer の作成・復旧が現在の権限では不可能な場合:

    Allowed Paths が不足する場合は、実装前に controlled Issue update で正確なパスを追加する。Allowed Paths 外を黙って変更しない。

    ────────────────────────────────────
    5. 実装設計の必須条件
    ────────────────────────────────────

    実装可能な場合は、次の境界を満たす。

    5.1 trust source

    • terminal command の LOOP_PUBLISH_* env prefixをtrust sourceにしない。
    • payload、TOML、自然言語、agentが生成したartifactをtrust sourceにしない。
    • managed hook、managed launcher、またはagentから書き込めないhost-owned executorをtrust sourceにする。
    • managed source が存在しない場合、project hook trustの限界を明示し、workspace writerに対する偽装不能性を主張しない。
    • host secretや署名鍵が既に存在する場合でも、agentへ公開・読取・出力しない。署名はhost process内部だけで行う。

    5.2 transaction boundary

    existing-branch publish は可能な限り次の単一transactionとして実装する。

    1. live remote head probe
    2. repository/worktree/branch/refspec binding
    3. Issue/PR/current head binding
    4. Allowed Paths gate検証
    5. one-shot host context / nonce消費
    6. canonical pushをちょうど1回実行
    7. remote head readback
    8. receiptのatomic write
    9. 元のraw shell commandを再実行させない

    初回branch create laneと同様にexecutor自身が push を完了した場合、hookを発火させた元コマンドは抑止し、二重pushを防ぐ。

    pass-through方式を残す場合は、allow返却とshell実行の間のTOCTOU、nonce再利用、二重実行、postcondition欠落を解消したことをテストで証明する。証明できなければtransaction方式を採る。

    5.3 保持する拒否境界

    以下は引き続きfail-closedで拒否する。

    • raw git push
    • wrapper bypass
    • force / force-with-lease の未承認利用
    • tag
    • --all
    • delete ref
    • mirror
    • origin以外
    • active branch以外
    • refspec mismatch
    • stale remote head
    • local / verified / declared head mismatch
    • Allowed Paths gate != ok
    • missing / invalid / stale / replayed host context
    • wrong repo / issue / PR / worktree / base / head
    • handwritten or copied receipt

    5.4 host receipt

    必要なら次に相当するclosed-key schemaを導入する。

    PUBLISH_GUARD_HOST_PROVENANCE_V1:
      schema:
      artifact_version:
      repository:
      issue_number:
      pr_number:
      issue_contract_sha256:
      base_sha:
      head_sha:
      repo_root_realpath:
      worktree_realpath:
      branch:
      remote:
      refspec:
      expected_remote_head:
      observed_remote_head:
      allowed_paths_gate_status:
      allowed_paths_gate_digest:
      executor_realpath:
      executor_digest:
      executor_version:
      config_sources:
      hook_source_kind:
      hook_definition_hash:
      hook_trust_status:
      permission_mode:
      sandbox_policy:
      parent_session_id_hash:
      turn_id_hash:
      agent_id_hash:
      agent_type:
      nested_delegation_verdict:
      invocation_id:
      nonce:
      generated_at:
      expires_at:
      single_use:
      transaction_status:
      postcondition:
      secret_scan_status:

    要件:

    • agent-writable repository treeの外、またはhostが保護する固定root
    • regular fileのみ
    • symlink、hardlink、FIFO、socket、device拒否
    • owner一致
    • mode 0600相当
    • bounded size
    • closed key set
    • atomic write + fsync/rename相当
    • digest/readback
    • short expiry
    • one-shot nonce
    • replay、copy、wrong-head、wrong-worktree拒否
    • 生のsession id、token、credential、transcript内容を保存しない
    • IDが必要ならhash化する
    • secret scan結果を記録する

    ────────────────────────────────────
    6. テストとlive verification
    ────────────────────────────────────

    最低限、以下を実行する。

    uv run --locked pytest scripts/agent-guards/tests/test_git_mutation_command_policy.py -q
    uv run --locked pytest tests/session_recording/codex/test_hook_adapter.py -q
    pnpm typecheck
    pnpm lint
    pnpm test
    pnpm build
    git diff --check

    追加したexecutor、receipt、materializer、managed-hook adapterには専用testを追加する。

    必須negative matrix:

    • missing context
    • malformed JSON
    • unknown field
    • missing required field
    • wrong schema/version
    • stale / expired
    • future timestamp
    • replayed nonce
    • duplicate invocation
    • wrong repository
    • wrong issue / PR
    • wrong base/head
    • wrong worktree/root
    • wrong branch/refspec/remote
    • gate not ok
    • terminal env VAR=... imitation
    • direct script invocation
    • symlink/hardlink/FIFO/socket/device
    • wrong owner/mode
    • oversized artifact
    • force/tag/all/delete/mirror
    • remote head drift
    • post-push readback mismatch
    • second raw push suppression

    positive matrix:

    • fake remote上のprobe→push→readbackが1回だけ成功
    • current branch/head/Allowed Paths/host contextが全て一致
    • receiptがatomicに生成され、consumerが一度だけ受理
    • retry時はidempotent resultまたは明確なalready-completed result
    • live GitHubへテスト用refを作成・削除しない

    fixture/subprocess testの成功と、実Codex hostのlive PASSを別々に記録する。

    PR #1685 の blockerを解消するためのlive evidenceは、必ずその時点のcurrent PR headに束縛する。SKIP、not_proven、fixture-only、別headのPASSは成功扱いしない。

    ────────────────────────────────────
    7. 実装PRの作成と完遂
    ────────────────────────────────────

    • dedicated issue worktreeを作る。

    • current origin/mainをbaseにする。

    • 既存のcontrolled stage/commit executorを使用する。

    • protected pathsを変更しない。

    • commitは意味のある単位に分ける。

    • branch publishにはcanonical exact refspecを使用する。

    • Draft PRを作成する。

    • PR本文に必ず次を含める。

      • Summary
      • Before / After
      • Acceptance Criteriaごとの [x] とcurrent-head evidence
      • Verification Commandsと実測結果
      • Allowed Paths readback
      • Schema Change Applicability
      • Schema Consumer Inventory
      • Compatibility Decision
      • Safety Claim Matrix
      • Runtime Verification Evidence
      • host artifact pathとdigest。秘密情報は含めない
      • Closes #<implementation issue number>
      • Refs #1703 #1671 #1676
      • Refs PR #1685
    • PR headに対するCIを完走させる。

    • 失敗したcheckはログを調査し、scope内で修正し、再pushする。

    • unrelated failureと判断して放置せず、再現、base比較、必要なら別Issue化まで行う。

    • impl-review-loop / pr-review-judge等のリポジトリ標準レビューを実行する。

    • すべてのreview comment、REQUEST_CHANGES、inline threadに対応する。

    • headが変わるたびにAllowed Paths、CI、runtime evidence、reviewを再拘束する。

    • merge-readyになったら通常の非破壊的なrepository-approved merge方式でマージする。

    • force push、履歴書換え、branch/tag削除はしない。

    • Closes #N によりIssueが実際にcloseされたことをreadbackする。自動closeされなければ最終証跡コメントを投稿して通常のIssue closeを行う。

    ────────────────────────────────────
    8. PR #1685 の blocker 解消
    ────────────────────────────────────

    implementation PRのマージ後、PR #1685を再取得する。

    • PR feat(codex): scope-rollup-runner native agentを追加 (#1671) #1685 branchへ必要なmain変更をrepository-approvedな非破壊的方法で取り込む。

    • rebase/force pushは使わない。

    • current 実装: Codex native scope-rollup-runner を追加し SubagentStop capture を接続する #1671 contract snapshotを再取得する。

    • current PR feat(codex): scope-rollup-runner native agentを追加 (#1671) #1685 headに対してlive named-spawn/hook trust probeを再実行する。

    • 次の項目がすべてhost-owned provenanceでPASSであることを確認する。

      • release pin
      • Codex realpath/digest/version
      • effective parent permission profile
      • effective sandbox
      • parent runtime override
      • named agent identity
      • nested delegation disabled
      • hook source/hash/trust active
      • implicit dependency syncを使用していないこと
      • repository/GitHub read-only境界
      • permitted ephemeral write boundary
      • current issue/base/head/worktree binding
    • PR #1685本文をcurrent snapshot、current head、current CI、current changed files、live artifactへ更新する。

    • #1686が既にclosedでcanonical ownerでない場合は、#1688または新しいhost implementation Issueへの参照に更新する。

    • fresh TEST_VERDICT_MACHINEとLOOP_VERDICTをcurrent headに対して発行する。

    • reviewを再実行し、not_proven / SKIP blockerが消えるまで修正する。

    • #1676のC1 decisionを最新状態で確認する。明示的な反対根拠がなければ、capabilityを削除・置換せず retain を非破壊的な暫定decisionとして#1676に記録する。

    • PR #1685をreadyにし、全required checksとreview gateが満たされたらマージする。

    • PR本文の Closes #1671 を維持し、マージ後に #1671がcloseされたことをreadbackする。

    GitHubが別principalによるformal approvalを必須とし、リポジトリの自動review laneでは満たせない場合のみ、後述の「権限不足」に該当する。

    ────────────────────────────────────
    9. Issue #1703 の完了
    ────────────────────────────────────

    #1703をcloseする前に次を確認する。

    • AC1: executorの実行元、権限境界、guard注入可否、artifact pathが一次証跡付きで記録済み

    • AC2: env/payload/TOML/self-reported versionだけではPASSにできないnegative evidenceが記録済み

    • AC3:

      • 実装可能だった場合はimplementation Issueとmerged PRがリンク済み
      • 実装不可能だった場合はhost-side recovery operation、必要権限、owner boundary、期待artifactが具体的に記録済み
    • #1688または分割したimplementation Issueの最終状態が記録済み

    • PR feat(codex): scope-rollup-runner native agentを追加 (#1671) #1685 / #1671への影響が記録済み

    • #1676のC1関係が記録済み

    • fixtureとlive evidenceが混同されていない

    最終コメントを投稿し、AC1〜AC3をチェックしたうえで #1703をcloseする。

    #1686は必要がない限りreopenせず、canonical successorを示すsuperseded noteだけを追加する。

    ────────────────────────────────────
    10. 停止条件
    ────────────────────────────────────

    停止条件は次の4種類だけとする。該当しない問題では停止・質問・承認待ちをしない。

    1. 破壊的操作

      • force push
      • reset --hard等による未保存変更・commitの喪失
      • branch/tagの削除
      • Issue/PRやartifactの不可逆削除
      • unrelated historyの書換え
      • hook、branch protection、security policyの無効化・迂回
      • データ損失を伴うcleanup
        通常のcommit、branch作成、canonical push、Issue/PR編集、通常merge、Issue closeは破壊的操作に含めない。
    2. 秘密情報

      • token、password、private key、credential、raw auth config、secret-bearing transcriptを読む、表示する、複製する、artifactへ保存する必要がある場合
      • 既存credential storeを通常の認証として利用するだけなら停止不要
      • 秘密の値は絶対に取得せず、必要な署名等はhost process内部で完結させる
    3. 外部課金

      • 新しい有料サービス、課金リソース、クレジット購入、明示的な追加料金が必要な場合
      • 現在の実行セッションと既存repository CIは承認済みとする
      • 使用上限を超えてクレジット購入が必要な場合は停止する
    4. 権限不足

      • 必要なrepository write、PR merge、managed hook、system/MDM config、branch protection、別principal approval等が拒否され、既存sanctioned laneでも実行不能な場合
      • bypassや権限昇格を試みない
      • exact denied operation、error、必要最小権限、再開地点を記録して停止する

    停止する場合も、それまでに可能なread-only調査、Issueへの証跡記録、テスト、PR作成、CI修正は完了させる。

    ────────────────────────────────────
    11. 最終報告
    ────────────────────────────────────

    最後に次の形式で報告する。

    AUTONOMOUS_EXECUTION_REPORT_V1:
      initial_main_sha:
      final_main_sha:
      research_issue:
        number: 1703
        state:
        ac_status:
        final_comment:
      implementation_issues:
        - number:
          state:
          pr:
          merged_sha:
          closes_verified:
      dependent_pr:
        number: 1685
        final_head:
        ci:
        live_runtime_trust:
        review_verdict:
        merged:
      dependent_issue:
        number: 1671
        state:
      migration_issue:
        number: 1676
        recorded_decision:
      changed_files:
      test_results:
      workflow_runs:
      host_artifacts:
        - path:
          digest:
          schema:
          trust_source:
      review_actions:
      stop_condition:
        category:
        exact_blocker:
        required_permission_or_action:
        resume_point:

    stop_condition は4種類の停止条件に該当しない限り null とする。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/researchphase/research

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions