# Coding Agent運用大全

CURRENT_STATUS: UNKNOWN
OBSERVATION: SPEC_ONLY
FRESHNESS: UNKNOWN
PAGE_TYPE: reference
CANONICAL_URL: /tools/ea-116-coding-agent
CLAIM_IDS: none
EVIDENCE_IDS: EVD-EA-116-URL-EBC17186B3D4, EVD-EA-116-URL-408ACEE9ECE3, EA-116-R11-RESEARCH, EA-116-R11-WEB-READBACK
UNKNOWN_IDS: EA-116-UNKNOWN-01, EA-116-UNKNOWN-CURRENTNESS
OPS_IDS: none

## Summary
「GitHub Copilot cloud agentはtaskからrepository作業・PR作成へ接続でき、管理者有効化、repository opt-out、Actions minutes/AI credits等のgateを伴う。Code scanningは別の検出・SARIF/CodeQL層であり、agent生成コードの正しさ・安全性・license適合・merge可否を自動保証するものではない。」

## Current judgment
GitHub Docsはcloud agentをissue/taskから作業させ、PRを作成・外部toolからinvokeし、enterprise/org ownerがPR lifecycle metricsを見られることを記載する。Business/Enterpriseではadmin policy enableが必要で、repository opt-out、Actions minutes、AI creditsもavailability/cost gateになる。Code scanningは脆弱性・error検出、CodeQLまたはSARIF結果を扱う補助層である。これらは運用接続点の証拠だが、agent patchの正しさ、secure-by-default、license compliance、rollback成功、全repositoryへの可用性を保証しない。

## Scope
coding / provider mapping / organization overlay / implementation / security / audit / cost

## Confirmed
- GitHub Docsはcloud agentをissue/taskから作業させ、PRを作成・外部toolからinvokeし、enterprise/org ownerがPR lifecycle metricsを見られることを記載する。Business/Enterpriseではadmin policy enableが必要で、repository opt-out、Actions minutes、AI creditsもavailability/cost gateになる。Code scanningは脆弱性・error検出、CodeQLまたはSARIF結果を扱う補助層である。これらは運用接続点の証拠だが、agent patchの正しさ、secure-by-default、license compliance、rollback成功、全repositoryへの可用性を保証しない。

## UNKNOWN
- EA-116-UNKNOWN-01: agentの実際のtool permission境界、model/version pinning、network/secret access default、failure/rollback rate、各plan/regionの差、code scanning false-negative/false-positive。
- EA-116-UNKNOWN-CURRENTNESS: 外部根拠の再確認日がcanonical body/control-planeで確定していないため、currentnessはUNKNOWNとして保持する。日付を推測補完しない。

## Evidence
- EVD-EA-116-URL-EBC17186B3D4 (RESEARCH): source class: official product documentation; exact title: About GitHub Copilot cloud agent; author/org: GitHub; canonical URL: — https://docs.github.com/en/copilot/concepts/agents/cloud-agent/about-cloud-agent
- EVD-EA-116-URL-408ACEE9ECE3 (RESEARCH): source class: official security product documentation; exact title: About code scanning; author/org: GitHub; canonical URL: — https://docs.github.com/en/code-security/concepts/code-scanning/code-scanning
- EA-116-R11-RESEARCH (RESEARCH): EA-116 監査済みresearch / canonical revision binding
- EA-116-R11-WEB-READBACK (IMPL): EA-116 Web body identity / canonical readback

## Failure / limits
PRが作成・mergeされたことはコード品質の証明ではない。code scanningのalertは検出範囲とrule/configに依存し、未検出を安全の証拠にできない。branch protection、required review、CI、secret scanning、dependency pinning、license/OSS policy、runner networkは別設定。pageの機能・料金・モデル選択はPRODUCT_VOLATILE。
## Failure / limits
agentがPRを出したこと・CIが通ったこと・scannerが無alertであることを、総合的な安全・品質保証へ変換しない。
UNIT_CLOSE_STATUS: INDIVIDUAL_BOUNDED_CLOSE / EVIDENCE_RECORDED / UNKNOWN_PRESERVED

---
## Practice
paid Copilot plan、Business/Enterprise admin policy、repository opt-out、GitHub Actions/AI credits、branch permissions、secret/network restrictions、code scanning license、CI statusを確認する必要がある。実repositoryへのagent起動・PR作成・CI実行は未実施。
## Practice
read-only repo discovery→isolated branch/worktree→tests/scanning→human review→protected merge→rollback/revertのcontrol plane設計候補。実装・安全性試験未実施。
## Practice
fixture repository群で patch correctness、test pass、static alerts、dependency/license diff、secret exposure、PR review completeness、revert time、agent action traceを別scoreにする。merge率を品質scoreに代用しない。
## Practice
SECURITY/PRIVACY: least privilege token、no production secrets、network egress allowlist、sandbox runner。AUDIT: issue/branch/commit/PR/CI/scanner/model/config/approver。COST: Actions minutes、AI credits、review/rollback工数。OPERABILITY: protected branch、required checks、kill switch、revert playbook。
## Practice
本文ではagent capability、repository/IAM gate、CI/review gate、scanner coverage、cost、rollbackを分離して記載する。次回はGitHub branch protection・secret scanning・dependency/OSS controlsの一次Docsと、isolated test repositoryのTEST_PROFILEを追加する。
## WHY_THIS_MATTERS_TO_UPDATE
coding agentはrepository、branch、CI、secrets、dependency、PR、rollbackに作用するため、能力存在とenterpriseでの許可・監査・費用・品質を切り分ける必要がある。

## SCOPE_ROUTING
coding / provider mapping / organization overlay / implementation / security / audit / cost

## CLAIM_OR_RESEARCH_QUESTION
GitHub Copilot cloud agentの現行Docsが示すtask/PR/metrics/availability gateと、GitHub code scanningの補助的役割は何か。coding agent自体の正しさや安全性を確定できるか。

## EVIDENCE TABLE
- source class: official product documentation; exact title: About GitHub Copilot cloud agent; author/org: GitHub; canonical URL: https://docs.github.com/en/copilot/concepts/agents/cloud-agent/about-cloud-agent; publication/update/access: current page accessed 2026-09-13 JST; version/release/tag/commit/API revision/model ID: Copilot cloud agent current docs; supporting locator: lines 81-85（issue/task assignment、research/plan、custom agents）、86-99（PR lifecycle metrics、external invocation）、102-108（paid plan、admin enable、repository opt-out）、125-129（GitHub Actions minutes and AI credits）; evidence label: VERIFIED_SPEC + PRODUCT_VOLATILE; relation: support / limit.
- source class: official security product documentation; exact title: About code scanning; author/org: GitHub; canonical URL: https://docs.github.com/en/code-security/concepts/code-scanning/code-scanning; publication/update/access: current page accessed 2026-09-13 JST; version/release/tag/commit/API revision/model ID: GitHub code scanning/CodeQL current docs; supporting locator: page sections on finding vulnerabilities/errors, schedule/event triggers, SARIF/API, CodeQL and third-party tools; private repository license gate as stated on page; evidence label: VERIFIED_SPEC + PRODUCT_VOLATILE; relation: context / limit.

## FINDINGS
GitHub Docsはcloud agentをissue/taskから作業させ、PRを作成・外部toolからinvokeし、enterprise/org ownerがPR lifecycle metricsを見られることを記載する。Business/Enterpriseではadmin policy enableが必要で、repository opt-out、Actions minutes、AI creditsもavailability/cost gateになる。Code scanningは脆弱性・error検出、CodeQLまたはSARIF結果を扱う補助層である。これらは運用接続点の証拠だが、agent patchの正しさ、secure-by-default、license compliance、rollback成功、全repositoryへの可用性を保証しない。

## LIMITS / COUNTEREVIDENCE / FAILURE ENVELOPE
PRが作成・mergeされたことはコード品質の証明ではない。code scanningのalertは検出範囲とrule/configに依存し、未検出を安全の証拠にできない。branch protection、required review、CI、secret scanning、dependency pinning、license/OSS policy、runner networkは別設定。pageの機能・料金・モデル選択はPRODUCT_VOLATILE。

## AVAILABILITY_GATES
paid Copilot plan、Business/Enterprise admin policy、repository opt-out、GitHub Actions/AI credits、branch permissions、secret/network restrictions、code scanning license、CI statusを確認する必要がある。実repositoryへのagent起動・PR作成・CI実行は未実施。

## IMPLEMENTATION_STATE
read-only repo discovery→isolated branch/worktree→tests/scanning→human review→protected merge→rollback/revertのcontrol plane設計候補。実装・安全性試験未実施。

## BENCHMARK_OR_EVAL
fixture repository群で patch correctness、test pass、static alerts、dependency/license diff、secret exposure、PR review completeness、revert time、agent action traceを別scoreにする。merge率を品質scoreに代用しない。

## SECURITY / PRIVACY / AUDIT / COST / OPERABILITY
SECURITY/PRIVACY: least privilege token、no production secrets、network egress allowlist、sandbox runner。AUDIT: issue/branch/commit/PR/CI/scanner/model/config/approver。COST: Actions minutes、AI credits、review/rollback工数。OPERABILITY: protected branch、required checks、kill switch、revert playbook。

## SAFE_WORDING_FOR_FUTURE_BOOK
「GitHub Copilot cloud agentはtaskからrepository作業・PR作成へ接続でき、管理者有効化、repository opt-out、Actions minutes/AI credits等のgateを伴う。Code scanningは別の検出・SARIF/CodeQL層であり、agent生成コードの正しさ・安全性・license適合・merge可否を自動保証するものではない。」

## UPDATE_WORK_HANDOFF
本文ではagent capability、repository/IAM gate、CI/review gate、scanner coverage、cost、rollbackを分離して記載する。次回はGitHub branch protection・secret scanning・dependency/OSS controlsの一次Docsと、isolated test repositoryのTEST_PROFILEを追加する。

## OPEN_UNKNOWN
agentの実際のtool permission境界、model/version pinning、network/secret access default、failure/rollback rate、各plan/regionの差、code scanning false-negative/false-positive。

## STOP_CONDITION
agentがPRを出したこと・CIが通ったこと・scannerが無alertであることを、総合的な安全・品質保証へ変換しない。
UNIT_CLOSE_STATUS: INDIVIDUAL_BOUNDED_CLOSE / EVIDENCE_RECORDED / UNKNOWN_PRESERVED

---

NEXT: /agent/start.json
STOP: This is a knowledge projection, not an execution order.