Apply GitHub management best practices and policies
Learning objectives
By the end of this topic, you should be able to:
- Diagnose the effective consumption or spending gate before proposing a budget change.
- Evaluate token use, context preservation, caching and session controls without inventing financial or labor savings.
- Apply organizational standards through the correct instruction scope and independently enforced controls.
- Choose secret configuration by consumer, environment, repository scope and authorized identity.
- Evaluate governance, privacy, visibility, retention and actual tool reach together.
- Apply Responsible AI principles with human review proportionate to the consequences.
- Recommend a branch strategy and determine whether the actual merge requirements are satisfied.
- Explain how model and application choices affect output, evidence and explainability.
- Select a suitable model or selector using the same accepted task and qualified cost basis.
- Distinguish prompts, prompt files, recurring instructions, procedural skills and custom agents.
- Recommend MCP only for a concrete missing capability within an authorized access path.
Govern a proposed change before delegating it
Suppose a team wants an assistant to investigate a private billing-service problem, draft a change and prepare a release briefing. Choosing an agent is only one decision. The team must also establish which evidence it may read, where its output may go, whose credentials it can use, which budget can block it and who can approve the resulting change. A well-written prompt cannot replace any of those decisions.
This chapter follows that connected decision path. Instructions describe expected behavior; permissions and repository controls restrict actions; evidence and accountable review determine whether a result is acceptable. Keep those three roles separate throughout the task. An assigned owner, a reassuring explanation, a successful tool call and a green-looking summary each prove less than an accepted business outcome.
The product procedures, names, plan conditions, numeric amounts and catalogs below are qualified by the supplied documentation snapshots. They do not establish current account entitlement, live prices, an installed runtime's configuration or availability at a historical exam-guide date. The specifically adopted gh-aw findings are limited to v1.2.2 at the commit identified below. All worked scenarios and command/configuration examples are teaching examples unless explicitly described otherwise; none reports a configuration change, remote operation or product test performed for this lesson.
Before delegation, write a decision record with enough detail for another reviewer to challenge it:
| Decision | Evidence needed | What it does not establish by itself |
|---|---|---|
| Task and acceptable output | Defined input records, scope, destination, required fields and uncertainty rules | Permission to publish, close an issue or merge a change |
| Execution host | Actual app, CLI, IDE, GitHub.com, Actions or sandbox session and repository/branch | Identical capabilities on another host |
| Identity and authority | Account, seat-supplying organization, repository rights, tool and credential scope | Authority inferred from an agent name or fluent response |
| Cost boundary | Consumption ledger, payer, period, effective limit and stop behavior | A universal token-to-dollar conversion or total-invoice ceiling |
| Data boundary | Accessible sources, exclusions, storage/sync/sharing and provider destinations | Confidentiality inferred from a personal-definition label |
| Review and integration | Current artifact, required checks, reviewer authority and permitted next action | Approval inferred from assignment or a previous version |
The record can initially contain unknowns. An explicit unknown is useful evidence of what must be resolved; filling it with a plausible owner, permission or approval creates a false basis for the next action.
Connect guidance to the controls that enforce it
Start with the host and instruction scope, then choose how much guidance to reuse. The same policy can require a prompt, a maintained procedure and a repository check, but those artifacts have different jobs. Credential and data controls are developed separately below.
Apply the standard to the actual environment
An organizational standard might require a particular test, approved definition, security review or publication decision. Applying it means identifying where guidance is delivered, where a hard control is enforced, and what evidence shows the result met the requirement. A policy-shaped sentence in a prompt does not answer all three questions.
The product procedures here follow the supplied implementation references. Support depends on client, feature, subscription and configured account; these procedures are not proof of historical availability at a guide-update date or of controls already enabled in an account.
Start with the actual client and execution environment
Identify where the work will run: an app session, CLI, an IDE, GitHub.com, an Actions-backed agent, or a cloud sandbox. Then check the relevant subscription, administrator policy, repository rights, configured tools, and data destination. Similar interfaces do not make these controls identical.
The adopted app reference states that the app is available on all Copilot plans. The Copilot app is built on the CLI, but its Business/Enterprise app policy is separate from the CLI policy. The supplied app reference says the app policy is enabled by default for Business/Enterprise but must remain enabled. Enabling CLI access does not establish that separate policy’s state. Likewise, a supported account does not imply access to a private repository or authorization to publish its information. Establish the actual blocking control before requesting a broader permission or changing a model.
The supplied app reference lists macOS, Linux and Windows as supported operating systems. On Windows, agent sessions can also run inside a Windows Subsystem for Linux (WSL) 2 distribution.
Organizational standards can describe required tests, documentation conventions, security review, or an approved source of business definitions. Instructions communicate these expectations to the model. Enforced repository access, tool permission, branch rules, and review/check requirements provide different controls. A prompt saying “follow policy” does not make a powerful credential read-only or prevent an unsupported write. Verify the produced result and any required checks rather than treating instruction inclusion as compliance.
In the supplied app reference, a cloud sandbox runs the entire session in a GitHub-hosted isolated environment. Local sandboxing instead keeps execution on the user's machine and applies operating-system restrictions to the filesystem, network and credential access available to agent-run tools. These are separate technologies: their settings, policies and commands do not transfer, and local sandboxing does not apply to cloud-sandbox sessions or sessions running on a remote host. Check the actual resource boundary rather than treating a prompt instruction or tool-approval setting as that boundary.
Choose the supported instruction scope
Repository-wide Copilot guidance uses .github/copilot-instructions.md. Matching path-specific guidance uses NAME.instructions.md below .github/instructions. Supported agent-instruction files include AGENTS.md, CLAUDE.md and GEMINI.md; their discovery depends on host and feature. They differ from specialized custom-agent definitions in .github/agents. A prompt file is invoked for a particular request rather than automatically applied as recurring guidance.
Organization owners can configure organization instructions for an organization with a Copilot Business or Enterprise subscription. In the supplied source they apply to website-running cloud/Actions sessions and code review, not local client sessions. Within that supported context they serve all organization members, regardless of which organization supplied a member’s Copilot subscription. Personal GitHub.com instructions apply to Chat on GitHub.com; CLI personal guidance uses its own local-file mechanism.
Most listed clients, including CLI, VS Code and Visual Studio, combine applicable instruction files without a general precedence order. Only for Copilot Chat on GitHub.com, the cited order is personal, applicable path-specific, repository-wide, agent instructions, then organization instructions. Avoid conflicts rather than exporting that ranking to an unrelated host.
JetBrains IDEs and Xcode can also provide global, workspace or project instruction mechanisms. These do not always map directly to GitHub's personal, repository and organization instruction types. Check the actual client's supported mechanism and task; do not infer a shared configuration path or extend GitHub.com Chat's precedence to those mechanisms.
Write short, self-contained project guidance: actual frameworks, build/test commands, documentation conventions, evidence requirements and escalation route. Generic or overly broad style/length demands may fail, especially across a large varied repository. For Copilot PR review, relevant repository instructions, agent instructions and skills come from the head branch containing the proposed changes, not the base branch. Inspect adherence and actual checks; file presence is not compliance, and nondeterministic output still needs review.
A concrete repository-instruction example
The following is a complete teaching example for the body of .github/copilot-instructions.md in a fictional task-management application. Its stack and conventions are illustrative project choices, not requirements for every repository. No file has been installed and no application or check has been run.
# Project overview
This web application helps users manage tasks and to-do lists. It uses React for the interface, Node.js for the backend and MongoDB for storage.
## Libraries and frameworks
- Use React and Tailwind CSS for the frontend.
- Use Node.js and Express for the backend.
- Use MongoDB for data storage.
- Confirm the repository's actual dependency versions before proposing a version-specific change.
## Coding standards
- End statements with semicolons and use single quotes for strings.
- Use function-based React components and arrow functions for callbacks.
## UI guidance
- Provide a toggle between light and dark modes.
- Keep the interface modern and clean.
## Verification and missing evidence
- Inspect the repository's documented build and test commands; ask the maintainer if a required command or dependency version is missing.
- Review relevant security requirements and record the checks actually performed.
- Keep proposed changes, unknown facts and verified results distinct. Escalate missing acceptance or security evidence to the responsible maintainer.
Use the example to see the difference between naming categories of guidance and supplying actual project rules. Adapt it to verified repository facts. Keep recurring guidance short and relevant: an external style-guide reference, a universal tone rule or a fixed answer-length demand may work poorly across a large, varied repository. Applicable head-branch guidance and the produced result still need inspection; the file does not enforce the rules by itself.
Verify surface-specific access and data policy
For website/Mobile sessions, an eligible plan and broad organization policy can still be narrowed by a repository owner or administrator disabling Copilot. Viewing organization data or sessions requires the organization’s SSO requirements. Without repository Write access, the session is read-only. Successful sign-in or a paid plan does not grant write rights. Keep these website conditions scoped to that surface and actual execution environment.
Choose the kind of reuse before choosing the file
Several Copilot customization artifacts contain natural-language instructions, but their roles differ. The deciding question is when and why the guidance should be available.
A prompt expresses the current request, relevant context and desired output. It suits a one-off task such as preparing a brief from a supplied issue. A prompt file packages a repeatable focused interaction. It can contain input variables and additional context so the request can be used again with different inputs.
Custom instructions provide recurring guidance within their supported scope, such as repository conventions or review expectations. A skill packages a focused procedure that the agent can load when relevant, often with examples, scripts or other resources. A custom-agent definition configures a specialized agent. It is a different artifact from either a skill or an AGENTS.md instruction file.
| Need | Appropriate starting choice | Expected use |
|---|---|---|
| Summarize one supplied issue for today's meeting | Current prompt | Provide this request and its evidence directly |
| Repeat the same meeting-brief task with different issues | Prompt file | Invoke the reusable request for the particular interaction |
| Keep a repository-wide evidence convention | Custom instructions in a supported scope | Supply recurring context to applicable work |
| Apply a detailed comparison procedure only for relevant reports | Skill | Load the procedure and resources when the task matches |
| Configure a dedicated reviewer with specialized behavior | Custom-agent definition | Use the supported specialized-agent configuration |
These are illustrative choices, not automatic conversions performed by the platform.
Prompt files are invoked for focused interactions
Repository prompt files conventionally use the .prompt.md extension in .github/prompts. The supplied reference describes support in Visual Studio Code, Visual Studio, JetBrains IDEs and Xcode, with IDE- and version-specific availability. Visual Studio Code and JetBrains IDEs also let you configure an alternate location. Check the actual host rather than assuming a file works everywhere because its extension is correct.
Unlike scoped custom instructions, a prompt file is invoked for a specific interaction. Its existence does not mean it automatically applies to all requests. Design it around a defined task, required inputs, output and limits.
For example, the following is a teaching prompt-file body for a meeting brief. It is a reusable request, not a tool invocation or an executed response:
Prepare a meeting brief from the issue supplied for this interaction.
If no issue text or authorized readable reference is supplied, ask for it.
Return: observed status, recorded owner, evidence, open questions and next action.
Separate a proposed cause from a confirmed cause.
Do not claim approval, publication or execution without the corresponding record.
Draft the brief only; do not edit the issue or send the brief.
Given hypothetical input “Issue 42: test failed; owner Maya; cause not established,” the expected brief is: “Observed status: test failed. Recorded owner: Maya. Evidence: the supplied issue statement. Open question: root cause has not been established. Next action: obtain the diagnostic evidence. This is an unsent draft.” The output includes each promised field and preserves the task's authorization boundary.
Two focused prompt-file examples
The next two artifacts are documentary prompt templates. Invoke one deliberately in a supported IDE with authorized inputs; neither template is generated application code, an executed review or security certification. The design-system link is the supplied example reference, not a file whose existence or relative path has been verified for a real repository.
Example: New React form.prompt.md
Generate a new React form component for the supplied project.
Ask for the form name and fields if they are not provided.
If the design-system document or required project context is unavailable, ask for an authorized readable reference before inventing its components.
Requirements:
- Use form design-system components: [design-system/Form.md](../docs/design-system/Form.md). Confirm the appropriate path for this repository.
- Use react-hook-form for form state management:
- Define TypeScript types for the form data.
- Prefer uncontrolled components using register.
- Use defaultValues to prevent unnecessary rerenders.
- Use yup for validation:
- Put reusable validation schemas in separate files.
- Use TypeScript types for type safety.
- Customize validation rules for a helpful user experience.
Return the proposed component and validation schema, identifying any unresolved input or dependency. Do not claim that files were saved or tests passed without the corresponding executed operation and result.
For an invocation with no form name or fields, the expected next response asks for those inputs rather than fabricating a form. Confirm the design-system reference before relying on it; selecting the prompt does not create the referenced file or install its libraries.
Example: API security review.prompt.md
Review the security of the supplied REST API. Ask for the authorized endpoint definitions and relevant implementation if they are missing.
Review criteria:
- Check that all endpoints are protected by authentication and authorization.
- Check validation of all user inputs and sanitization of data.
- Check rate limiting and throttling.
- Check logging and monitoring of security events.
For each finding, identify the relevant supplied evidence, the gap and a proposed correction. Mark unsupported conclusions as unverified. Draft the review only; do not change endpoints, deploy a fix or claim that a security check ran without its actual record.
These are separate focused requests: one asks for a form under named project criteria, while the other reviews a supplied API against named security criteria. Neither becomes automatically applied repository guidance merely by being saved as a prompt file.
Skills package selective procedures and resources
A skill is a directory containing a file named exactly SKILL.md. The documented format uses YAML frontmatter with required name and description, followed by a Markdown procedure. Each skill has its own lowercase, hyphenated subdirectory and a unique lowercase, hyphenated name, usually matching that directory. The description explains both what it does and when to use it. An optional license field describes its license. Optional resources can include scripts, examples and additional documents.
The supplied Copilot reference lists repository skill directories such as .github/skills, .claude/skills and .agents/skills, and personal directories such as ~/.copilot/skills and ~/.agents/skills. The supplied reference lists support in Copilot cloud agent, Copilot code review, Copilot CLI, the Copilot app and VSCode agent mode; check the actual intended host and feature. The agent uses the task and description to decide relevance. Selection injects SKILL.md into context and makes its directory resources available; installation alone proves neither selection nor execution. For code review on GitHub, a review-focused directory name such as code-review helps make the purpose explicit, and relevant existing skills under .github/skills can also be used automatically. Verify actual use.
Once loaded, a skill can direct a multi-step process. For example, a failure-investigation procedure can inspect a run, summarize relevant failures, retrieve full logs where needed, attempt reproduction, make a supported fix and verify the affected behavior. A script reference supplies a procedure to follow; it does not create a missing tool, credential or service connection. State how to run a referenced script, including the skill base directory and required inputs. For example, an image-conversion skill might direct the agent to run its convert-svg-to-png.sh from that base directory with the input SVG path as the first argument. This describes the procedure; it is not a claim that a shell or converter was installed or run. An externally downloaded skill directory, including one extracted from a ZIP, still needs inspection before placement in the supported project or personal directory.
A complete debugging-skill template
For example, the following documentary SKILL.md could be placed in .github/skills/github-actions-failure-debugging/ for a supported repository skill, or the corresponding supported personal skill directory. It preserves the supplied example's lowercase, hyphenated name and explicit when-to-use description; confirm the name is unique in the intended scope. The named GitHub MCP Server tools are prerequisites to check, not tools made available by the file. No skill is installed, selected or executed here.
---
name: github-actions-failure-debugging
description: Guide for debugging failing GitHub Actions workflows. Use this when asked to debug failing GitHub Actions workflows.
---
# Debug failing GitHub Actions workflows
Use this procedure for a pull request with a failing workflow. Confirm the target pull request, authorized repository access and availability of the GitHub MCP Server tools. Ask for a missing reference or connection rather than implying that the workflow has been inspected.
1. Use list_workflow_runs to find recent workflow runs for the pull request and inspect their status.
2. For failed jobs, use summarize_job_log_failures to obtain a focused summary without loading thousands of log lines into context.
3. If the summary does not provide enough information, use get_job_logs or get_workflow_run_logs for the detailed failure logs needed for the diagnosis.
4. Try to reproduce the failure in an authorized environment. If reproduction is unavailable or unsuccessful, record that limitation instead of inventing a successful reproduction.
5. Make a fix supported by the available evidence. If the failure was reproduced, verify that it is fixed before committing changes. Record the verification actually performed and any remaining uncertainty; an unverified proposal is not a confirmed fix, and a commit still requires authorization.
The conditional full-log request preserves context efficiency while retaining access to necessary evidence. Reproduction and verification are separate observations: the template requires the reproduced failure to be checked as fixed before a commit, and it does not assert that a build, test, tool call or commit has happened.
Inspect trust and actual execution
Review external skill instructions and referenced scripts before use. The saved reference warns that skills are not verified by GitHub and can contain hidden instructions or malicious scripts. Repository hosting and version pinning help identify what was selected; neither certifies safe behavior.
The documented optional allowed-tools setting can remove repeated confirmation for listed tools. Preapproving shell or bash therefore requires particular care: it can permit terminal commands without the confirmation step. Inspect both the instructions and the resources they invoke before deciding what authority to grant. Do not infer broad permission from a useful-sounding skill description.
The supplied gh skill reference is public-preview guidance requiring GitHub CLI 2.90.0 or later. Search discovers candidates; preview renders SKILL.md and its file tree without installing. Inspect that content and referenced scripts before deciding to install. Installation can select a repository interactively or a specific skill. @TAG or @SHA selects a version; --pin locks a version against ordinary updates. The two selection methods are mutually exclusive. --agent chooses the supported agent host and --scope chooses installation scope; omitting them defaults to Copilot at project scope in this reference, not a shared team-wide installation.
Installation writes source repository, ref and tree SHA provenance into the skill's frontmatter. Update uses that provenance; update --all updates without prompting. Pinned skills are skipped and require reinstalling with a new --pin value to change the pin. Provenance identifies selected content but does not certify safety.
Publishing has separate states. gh skill publish --dry-run validates the specification and remote settings such as protections and scanning without publishing. gh skill publish --fix changes metadata without publishing. gh skill publish validates and publishes. None of these checks substitutes for reviewing the procedure's behavior, and a request to inspect or validate does not authorize a remote publication. These are documentary command descriptions; no install, update or publication was performed here. Verify discovery, selection, invocation, result and actual side effects separately.
Keep gh-aw inline skills distinct
The adopted gh-aw cost guide describes a separate inline mechanism: at runtime, a ## skill: block is extracted into engine-specific skill locations for on-demand use. This is not the ordinary repository or personal SKILL.md directory format. Keep the main prompt focused on sequencing and decisions, with verbose checklists or report templates deferred to the relevant skill.
In that mechanism, a block ends at its matching explicit end marker, or otherwise at the next level-two heading or end of file. When importing a skill into the middle of a document, supply the matching explicit end boundary so later content is not swallowed into the deferred skill. The saved end-marker sentence has damaged escaped-name formatting; it does not provide a reliable copy-and-run syntax example. These boundary rules describe the adopted mechanism and do not claim a compiled workflow was tested.
Match customization to the execution environment
In the supplied cloud reference, instructions supply preferences or conventions, skills and custom agents supply task-specific procedures/configuration, MCP supplies tool or data connections, and hooks can run validation or logging commands. Those roles are not interchangeable. Cloud-sandbox dotfiles can bring personal instructions, skills and agents across repositories, while connectors and personal MCP bring external tools/context. These personal customizations do not apply to GitHub Actions-based sessions. Repository customizations for Actions require their own supported setup. Some Spaces combining multiple organizations or private and organization data also have compatibility restrictions; do not promise portability from a similar name or interface.
Resolve consumption, spending and execution limits independently
A task can be well specified and still be blocked by the wrong ledger or identity. Determine the effective gate before trying to reduce tokens or select another model. The controls below deliberately distinguish user consumption, included-pool allocation, metered charges, license fees and separate workflow accounting.
Start with the ledger and the effect
A budget is useful only when you know what it measures and what happens at its boundary. A per-user consumption cap, a department's draw from an included pool, and a limit on paid charges answer different questions. An alert can inform an owner without stopping consumption. A hard stop blocks the affected action. Neither action should be inferred merely from a field named “budget.”
The Copilot controls below follow the supplied product references. The budget feature is documented for Copilot Business, Copilot Enterprise, and the Copilot access plan for eligible enterprises. Their license amounts and interfaces are source-dated implementation guidance, not permanent prices or evidence of availability at an earlier exam-guide date. The separate gh-aw default described later is explicitly limited to the adopted v1.2.2 release.
Resolve the effective user-level budget
A user-level budget, or ULB, caps a person's total AI-credit consumption in a billing cycle. It includes both included credits and metered credits. ULBs always enforce a hard stop; the documented zero-dollar ULB immediately blocks features that consume AI credits.
Three scopes can supply the effective amount:
- An individual ULB overrides that person's cost-center ULB and the universal ULB.
- Without an individual override, the cost-center ULB supplies the per-user default for its members.
- Otherwise, the universal ULB supplies the enterprise-wide per-user default.
These are alternatives selected by specificity, not balances to add. An individual override can be higher or lower than a broader default. Unused universal capacity does not supplement an exhausted individual limit.
Only an individual ULB has the documented expiration options: no expiration by default, the end of the current billing cycle, or a chosen date. When its expiration period ends, the individual override is removed. The applicable cost-center or universal ULB then applies; if neither exists, there is no remaining user-level budget. Do not invent an inclusive date boundary that the supplied reference does not define.
An individual ULB's configured expiration date can be changed or cleared at any time.
The universal budget list is not a complete license roster. A user's row is created when they first consume AI credits after budget creation or in the new billing cycle. Users who have not consumed credits might not appear. Use the appropriate AI-usage or licensing view when the question is who holds a license.
Follow the included and paid usage gates
The effective ULB is checked first. Business and Enterprise have a shared included pool; their paid usage begins after that pool is exhausted. The documented Copilot access plan has no included allowance, so paid-usage policy matters from the first credit-consuming use.
When an included allowance is unavailable, the paid-usage policy must permit metering. Otherwise the request is blocked even if a spending budget has room. For metered usage, follow the documented allocation branch. If the user belongs to a cost center, check that cost center’s budget. Otherwise, if their seat is billed to an organization that has a budget, check the organization budget. If neither applies, check the enterprise spending limit. Do not add these scopes as if they were three personal allowances. Enterprise counting and the cost-center exclusion described below remain separate considerations. A cost-center spending budget caps the team's metered charges; it does not extend a person's ULB or limit the team's draw from an included pool.
For metered-spending budgets, Stop usage when budget limit is reached determines enforcement. The supplied reference says this setting is off by default for cost-center, organization, and enterprise spending limits. An alert without that switch does not prevent charges beyond the configured amount. ULBs have no equivalent optional switch because their stop is intrinsic.
Across applicable independent controls, the least remaining headroom can become the first blocker. Raising the wrong limit does not resolve that blocker. Check the effective scope and enforcement state before proposing an authorized change.
Worked diagnoses
The following settings are illustrative, not vendor defaults or a token-to-dollar conversion.
| Inputs and conditions | Expected diagnosis | Relevant next step |
|---|---|---|
| Universal ULB $10 USD; cost-center per-user ULB $20; individual ULB $5 | Effective ULB is $5, not $35 or $20 | If exhausted, seek an approved change to that individual limit; increasing departmental paid budget alone does not help |
| Remaining ULB $5; applicable enforced paid-spending budget has $1 remaining | Paid-spending headroom can block further metered use before the ULB | Inspect the applicable billing scope and enabled stop; a ULB increase alone does not remove this blocker |
| Paid-spending amount crossed; Stop usage is off | Continuing charges are consistent with alert-only configuration | Decide whether to enable enforcement and what approved amount should apply |
These are expected policy interpretations, not observations from an executed account test. They preserve the difference between diagnosing a control and being authorized to change it.
Treat included-usage controls separately
For Business and Enterprise, a cost-center included-usage control can cap its share of the included pool. The cap is calculated from the licenses assigned to members, rather than entered as a paid-spending amount. At that cap, the configured choice determines whether members are blocked or additional usage continues as paid overage. This differs from the cost center's metered-spending budget, which concerns paid charges. Cost-center administrators can inspect both current consumption and the automatically calculated included cap on the cost-center home page. This identifies where to verify the control; it is not a claim that an account was inspected.
The supplied snapshot assigns 1,900 included AI credits to a Business license and 3,900 to an Enterprise license. Its example of ten Business and five Enterprise licenses therefore has an included cap of:
10 × 1,900 + 5 × 3,900 = 19,000 + 19,500 = 38,500 AI credits
This calculation describes that snapshot's included-credit amounts, not a currency price or a permanent allowance. The cap changes if the product's included amount changes and is recalculated when licensed membership changes. Increases and upgrades apply immediately. Decreases and downgrades apply at the next billing-cycle start, preserving already-used credits during the current cycle. A licensed member moving between two cost centers that both use included controls causes recalculation at the next cycle. Adding or removing an unlicensed member has no effect on the cap.
Preserve billing scope and administrative authority
Enterprise owners and billing managers have the documented authority to set all budget controls. Organization owners can set organization budgets; those budgets can further restrict usage but cannot override enterprise constraints. A request to change an enterprise-wide control must reach an owner with that authority.
Organization budgets apply to the relevant organization-billed seats. Direct GitHub App usage billed to the organization also counts against that budget; the source does not provide an individual app or installation budget. An alert-only organization budget does not stop the app's spending. If a user holds Business or Enterprise licenses from several organizations, the supplied source says GitHub selects one licensing organization at random each billing cycle to bill the seat. The user’s spend can therefore count against different organization budgets in different months. A single licensing organization or direct cost-center assignment can make the applicable allocation more predictable.
An enterprise metered-spending budget excludes license fees. In the supplied source's currency example, 400 Business licenses cost $7,600 USD monthly. An enforced $5,000 USD metered budget permits $12,600 USD of combined license and metered charges, before any extra spending permitted by cost-center exclusion. It is not a $5,000 total-invoice ceiling. Keep the license-fee component and metered component separate instead of using that source-dated price as a universal quote.
By default, cost-center usage counts against the enterprise budget. An excluded cost center has metered charges that do not count toward that enterprise cap and are not blocked simply because that cap is exhausted. Its own cost-center spending budget still matters, and its users' ULBs still apply. Independent departmental funding does not mean unlimited consumption.
When an enforced budget blocks credit-consuming features, it does not remove the user's seat. Documented noncredit features, including unlimited inline completions and next edit suggestions, can continue. A billing-cycle reset or approved increase of the relevant budget can remove the block, provided the other applicable gates are satisfied. Seat removal is a separate administrative action.
Distinguish automation identities and limit periods
The adopted automation reference lists Copilot Pro, Pro+, Max, Business and Enterprise, and private or internal repositories only. Automations are unavailable in public repositories, in repositories owned by managed user accounts, when a repository administrator has disabled them, or when Copilot cloud agent is not enabled for the repository. For an organization repository, the organization must allow both Copilot cloud agent and automations; the source states that both are enabled by default, and Business/Enterprise users still require the applicable administrator-enabled cloud-agent policy. Repository Write access is required to create an automation. These availability and creation conditions are separate from the shared-automation billing permission described below.
For cloud automations in VS Code, the same supplied reference requires VS Code version 1.144 or later and the chat.automations.cloud.enabled setting to be enabled. This client-specific gate does not replace the repository, account, policy and permission conditions above.
A personal Copilot automation bills AI credits to its creator and acts as that user. A shared automation uses the applicable repository-owner billing and acts as Copilot. Both start cloud-agent sessions and also consume separately billed Actions minutes charged to the repository owner. The acting identity, credit payer, and compute payer are therefore part of the design. For a shared automation in an organization-owned repository to run, the organization must also allow Copilot cloud-agent usage billed to the organization; an administrator controls that policy.
A per-run automation credit limit stops the current run at its limit. Daily, weekly, and monthly automation limits block new starts; they do not stop work already in progress. Optional limits left empty are unset. A configured per-run limit has a documented minimum of 30 AI credits; 29 is below that minimum, while 30 meets the stated minimum. That does not establish the input domains of unrelated controls.
| Copilot automation limit | Effect at the limit | Reset or boundary |
|---|---|---|
| Per run | Stops that active run | Applies to that run; configured minimum 30 AI credits |
| Daily | Prevents new starts; existing work continues | Every day at 00:00 UTC |
| Weekly | Prevents new starts; existing work continues | Every Monday at 00:00 UTC |
| Monthly | Prevents new starts; existing work continues | First day of the month at 00:00 UTC |
For a teaching case in which the daily allowance is exhausted, a new start just before the next 00:00 UTC boundary is blocked by that daily limit. At the boundary, and just after it, the daily allowance has reset; a start must still satisfy all other applicable gates. If the relevant UTC time or usage is missing, eligibility is not established. In every case, a run already in progress is not stopped by the period limit. Reducing a period allowance does not retroactively terminate it. Choose the control whose consequence matches the intended boundary.
Apply the version-bound gh-aw daily default
GitHub Agentic Workflows has its own AWF AI Credits accounting. The supplied cost snapshot values one estimated AIC at $0.01 USD using a pricing catalog. Actual provider charges can differ, so reconcile an invoice with the provider’s billing dashboard. Do not assume this unit is identical to Copilot’s billed credit ledger or includes separately billed Actions compute. Elapsed execution duration is another measure; it is not active human labor and does not establish operator-time savings.
For gh-aw v1.2.2, at commit 399a445fe2d8926c616b54b1b82a16b5b2be4445, the daily AIC guardrail is a rolling 24-hour cumulative measure for the same workflow in the same repository. It is separate from a per-run maximum. Its effective value resolves in this order: a usable value in main frontmatter, a usable imported configuration value, the runtime Actions variable GH_AW_DEFAULT_MAX_DAILY_AI_CREDITS, and then the built-in fallback of 5000. Explicit -1 disables it. Merely omitting max-daily-ai-credits does not disable it in this release.
For an illustrative configuration with no main or imported value and no runtime override, the expected resolved threshold is 5,000 AWF AI credits. A usable runtime override supplies that value instead; an explicit main-frontmatter -1 disables the guardrail through the higher-priority configuration. These are source-based expected resolutions, not installed-compiler or billing tests. Other versions or deployments require their corresponding configuration and compilation evidence; the pinned finding does not rewrite older reference pages into agreement.
Match each gh-aw guardrail to its effect
The supplied cost guide describes several independent controls. Its defaults are snapshot-specific implementation guidance; the adopted v1.2.2 finding above resolves the daily-default question and does not certify every installed runtime.
| Control | What it bounds | Supplied snapshot detail |
|---|---|---|
max-ai-credits |
Inference accounting for one run | Default 1,000 AIC; a configured per-run bound differs from aggregate daily usage |
max-turns |
Model-response/tool-call iterations | A turn bound limits repeated work, not a count of completed human review cycles |
timeout-minutes |
Agentic step duration | Default 20 minutes |
| Generated agent-job timeout | Whole agent job | Default 60 minutes; separate from the step |
| Generated detection-job timeout | Detection job | Default 10 minutes |
| Threat-detection AIC limit | Detection inference | Separate default 400 AIC |
max-daily-ai-credits |
Same-workflow/repository rolling 24-hour accounting | Default resolution above; this is not a Copilot automation UTC-reset allowance |
For dynamic selectors such as auto, the source requires gh-aw-firewall v0.28.4 or newer for native concrete-model accounting. The proxy accounts for the actual model reported by the response, rather than assigning the selector a synthetic zero price. Missing model metadata uses conservative pricing. A model-multiplier cap also checks the resolved model: routing above the cap produces HTTP 400, model_multiplier_cap_exceeded. An unspecified multiplier uses configured defaultModelMultiplier, otherwise the highest configured multiplier. Selecting auto does not bypass the cap.
Daily validation can skip the agent before it starts. Incomplete history, permanent API failure, or quota restrictions must not become an “under budget” conclusion from partial data. Transient reads have bounded retries; unresolved accounting can use a known per-run maximum conservatively. A missing usage artifact means zero only when complete generated-job metadata establishes that all AI-powered jobs were skipped or never received a runner, without executed components carried forward from earlier attempts. Check agent, detection, and evaluation components and their actual attempts; invalid numeric accounting remains unknown. Distinguish recorded usage, confirmed zero, and conservative estimates from provider billing.
When using the repo-memory daily backend, a confirmed missing branch can bootstrap through authoritative workflow history and usage artifacts under the same limit, with Actions read access and fail-closed accounting. Existing workflows need recompilation for the clone-result input. A new or unqualified ledger does not erase recent spending: artifact accounting continues until trusted coverage is at least 24 hours old. Preserve the coverage files with the ledger shards. An insecure override or continue-on-error is not a valid bootstrap remedy.
The supplied source also exempts workflow_call, repository_dispatch, and all workflow_dispatch runs from the daily guardrail, including an ordinary manual dispatch without internal aw_context. Do not present the daily value as a universal cap on every activation. Other applicable per-run controls are separate.
Evaluate admission and shared defaults before relying on them
Admission is an optional start-time decision by an independently operated authority. gh-aw provides the client, not a hosted budget server. Participation needs a compiled workflow or repository opt-in plus a nonempty configured endpoint; setting a URL alone does not create an admission job. A workflow-level false cannot override repository-level true. Compile and commit changed opt-in configuration and generated lock files; runtime-only endpoint changes for an already participating workflow are different.
A valid approval supersedes the local daily scan for that activation, while usage collection continues. The authority must perform any required shared-budget check. The required primary allowance and independently optional detection/evaluation allowances replace the corresponding runtime limits, even when higher; omitted optional allowances retain their existing component limits. They are not one pooled budget. Supplied allowances must be plain positive JSON integers from 1 through 2,147,483,647, not strings, fractional or exponent forms, zero, or an unlimited sentinel.
An empty URL skips admission and retains local controls. On an exhausted transient outage, the default ignore policy continues with local controls, while block stops activation. Explicit denial or invalid approval blocks under either policy. A legitimate approval is not proof of a hard quota: workflow editors and repository-variable administrators can bypass participation, and concurrent executions can overshoot a shared budget. Hard quotas, reservations, settlement, and mid-run cancellation require separately enforced backend controls.
Map policy tiers from verified repository/workflow identity or independently verified deployment metadata. The admission request has no trusted server-size field; a caller’s “large” hint cannot grant a larger allowance. Its configured absolute HTTPS /api/admission endpoint has no credentials, query, or fragment; the audience defaults to the URL. Authentication uses Actions OIDC. Do not send PATs, provider tokens, or App private keys to that authority.
For shared defaults, use an authorized operator and the intended organization or repository scope. Export current managed settings before editing, preserve unrelated fields, then preview the complete change. Omitted or null entries can delete existing managed variables. Repository variables override organization variables. Unknown keys reject; the cited turn/time defaults require positive integers, while the cited AIC defaults require nonzero integers and use negative values to disable the corresponding guardrail. These domains are specific to those settings, not a rule for every budget.
Compiler-read turn/token defaults must reach the compiler process. Model and timeout defaults documented as runtime-resolved must reach the target Actions variable scope. A runtime variable change is not evidence of recompilation. Preview and --dry-run show a proposal; only an authorized actual apply changes remote settings.
For example, suppose a protected policy maps verified workflow identity to an illustrative primary allowance of 1,000 AIC and leaves an existing detection allowance unchanged. An expected review record is: “Identity verified; compiled opt-in and endpoint present; primary approval 1,000; detection allowance omitted, so retained; local daily scan superseded for this activation; shared-budget policy evaluated by the authority; provider invoice and concurrent-reservation enforcement remain separate.” If identity is unknown, the record must instead say approval is not established. This is a documentary example, not a response from a running authority.
Reduce unnecessary starts and per-run work
Busy push, check_run, and check_suite events can create hundreds of starts per day. Issue/PR lifecycle events and discussion comments have different volume. Begin with a predictable schedule or human-initiated dispatch while evaluating cost, and add event triggers with explicit safeguards. Remember that the daily guardrail exemption for manual dispatch still applies.
Run deterministic checks before invoking an agent. A supported search skip condition can avoid scheduling the agent job; a scripted preactivation noop can express more general no-work logic. For example, a successful check finding no relevant unlabeled issues has an expected “agent not needed” outcome. A failed or incomplete query has not established that outcome. Skipping inference does not erase preactivation compute already used.
Task-fit models and focused prompts/tool results target inference per run. Schedules, batching, per-user rate limits and concurrency target starts or overlap. The source’s three-runs-per-60-minute window is a policy illustration, not a currency ceiling or a delivery guarantee. Batching can share relevant context, but keep item-level quality and unresolved cases visible. Evaluate actual accepted work, usage, retries and provider charges before claiming savings; rough scenario estimates are not universal performance promises.
The documented Copilot CLI/SDK single-session soft limit is another distinct control. Set it before a task; at its threshold the agent stops cleanly, notifies the user and offers a choice to continue or raise it. That choice does not override monthly ULB or spending policy. Do not confuse this soft session behavior with a Copilot automation per-run stop or gh-aw daily accounting.
Reduce token waste while preserving deciding evidence
Once the cost gate is understood, improve the amount and usefulness of context. Removing evidence merely to make a request smaller can create a cheaper wrong answer. Relate the context measurements here to the required input set in the initial decision record.
Identify what you are measuring
A token is a unit of model input or output, often a common word or a fragment of a longer word. A context window is the model-specific capacity available when generating a response. It includes much more than the latest user prompt: system instructions, applicable custom instructions, tool definitions, conversation messages, responses, tool calls, and tool results all occupy space.
A short question can therefore belong to an expensive or nearly full session. Repeatedly loading a large log, carrying unrelated conversation history, or enabling a large collection of unnecessary MCP tools can add substantial context. The useful question is which contribution is necessary for the current task and which can be reduced without losing evidence.
Keep three measures separate. Context capacity describes how much information can be considered at once. Token usage describes model activity. AI credits and currency describe consumption and billing under the applicable model, reasoning, cache, feature, and account rules. A token count is not a universal conversion into credits or dollars, and unused context capacity is not a financial allowance.
The product procedures below describe the supplied implementation references. Client support, models, interfaces, and billing arrangements can change; they do not establish historical availability at an exam-guide date or prove what is enabled for a particular account.
Inspect the current session
In the documented Copilot CLI and GitHub Copilot app, enter /context to inspect current usage. Its output identifies the active model and tokens used against total context capacity. The breakdown can distinguish the system prompt, custom instructions, built-in tools, MCP tool definitions, message history, free space, and the response buffer. Supported IDEs use their own indicators or session-information controls; do not assume every client exposes the same command or display.
Use the breakdown to choose a specific intervention. If messages dominate because the session repeatedly ingests complete logs, request the relevant time interval and surrounding error context. If MCP definitions dominate, enable the toolsets needed for this task. If instructions dominate, remove stale or generic guidance while retaining actual project requirements. If the session simply contains necessary related work, preserve continuity through an appropriate summary or checkpoint.
The documented CLI saves tool output larger than 20 KiB to a file and supplies a preview and path instead of inserting the whole result. The positive UTF-8 byte setting COPILOT_LARGE_OUTPUT_THRESHOLD_BYTES, set before starting the CLI, changes that threshold. Raising it allows larger output into context and leaves less room for later conversation. A preview does not prove the omitted content is irrelevant: inspect the saved material when the decision depends on it.
Reduce waste while preserving quality
Start with a clear task, relevant inputs, and an acceptance condition. For example, “Explain why the renewal job failed using this error interval and the named configuration; identify missing evidence; stop after a diagnosis and proposed fix” gives a clearer boundary than “look into billing.” Include necessary surrounding conditions rather than an isolated line that might reverse the meaning of an exception.
Match capability to the work. A difficult architectural trade-off may benefit from stronger reasoning; routine documentation changes may need less. Supported reasoning controls can increase token consumption, so increasing effort without a task-related reason may add usage without improving the useful result. The supplied optimization reference describes configurable reasoning for supported models in VS Code and CLI. Fusion’s source-dated effort choices distinguish Standard (cost, quality and latency balance), High (balanced orchestration with moderate token savings), and Max (frontier capability while considering efficiency). This describes the cited choices, not a permanent ranking or a guarantee of better results.
The snapshot states a 30% model-cost discount for paid Copilot plans using Fusion through November 30, 2026. Keep both eligibility and the stated period attached to that historical offer; it is not an evergreen price or live account verification. Do not treat that date as already past on November 16, 2026.
Fusion tries to preserve the main model and its cache when possible; assisting models receive only relevant context. Separately delegated helpers run in their own sessions and do not inherit the main conversation history. Supply each helper’s goal, relevant evidence, constraints, required output and unknowns explicitly. A lighter helper can be appropriate for a focused task, but missing inputs are not an efficiency improvement.
Caching can reduce repeated input processing when context is reused. The supplied optimization snapshot describes cached input as typically priced at 10% of ordinary input and gives inactivity examples of 24 hours for OpenAI models and one hour for most others. These are source-specific billing and expiration observations, not a guarantee for every request or provider. That snapshot identifies model switches and changes to reasoning, context size, or enabled tools as causes of cache rebuilding. Set suitable controls deliberately, while changing them when correctness requires it. Preserving a cache is secondary to using an appropriate model and necessary evidence.
For a new unrelated problem, a fresh session avoids carrying irrelevant history. For related iterative work, a continuing session can preserve what was tried and why. When separating research, planning, and implementation, carry forward the goal, adopted evidence, decisions, accepted work, unresolved questions, and next action. After repeated compactions, start fresh as well when important continuity has become unreliable; first preserve the required evidence and decision record. Starting fresh without that handoff can create new exploration and errors instead of saving usage.
Research should identify relevant files and dependencies; planning produces a detailed, structured plan before changes; implementation executes against that plan with focused context. The optimization reference recommends a strong reasoning model for planning and a cheaper model suited to execution afterward. Treat that as source guidance to evaluate against the task and available models, rather than a measured quality or savings guarantee. In Copilot CLI, use /plan. In Copilot Chat in Visual Studio Code, select Plan from the agent dropdown or type plan in the context window. Keep these client-specific planning entry points distinct from the Copilot app modes described later, and preserve the necessary handoff evidence between phases.
Compare a dated offer without inventing billing eligibility
The supplied source states a 30% discount on model costs for paid Copilot plans using Fusion through November 30, 2026. For this documentary comparison, take the decision input to be a candidate usage calendar date, not the date on which someone inspected the source. Explicitly interpret “through November 30” as including that named date. This is a date-only reading of a fixed statement, not an observed billing-system rule.
The four inputs below are fictional documentary examples. Actual plan qualification, Fusion usage and account/invoice evidence have not been provided. A billing timestamp also needs the applicable timezone and cutoff; the source does not supply them.
| Candidate usage-date input | Expected documentary period result | Is the actual discount verified? |
|---|---|---|
| 2026-11-29 | Before the endpoint and within the stated period, subject to paid-plan and Fusion conditions | No; actual eligibility and model-cost billing remain unverified |
| 2026-11-30 | On the endpoint and included under the declared calendar-date interpretation, subject to the same conditions | No; this does not establish a billing timestamp cutoff |
| 2026-12-01 | After the endpoint; this snapshot offer does not establish the applicable price | No; do not invent a later offer or infer a live invoice |
| Missing date | Period membership cannot be classified | No; request the deciding usage date and any necessary timestamp context |
A matching date alone does not establish an eligible plan, actual use of Fusion or the model-cost component of a bill. Unknown inputs remain unknown. The percentage cannot be extended to an entire invoice, every AI-credit control or human work time. These are expected source-comparison outcomes, not executed pricing tests.
Understand compaction and checkpoints
Compaction summarizes older conversation history so a long session can continue. In the documented CLI and app, /compact requests manual compaction; automatic behavior and thresholds depend on the client. The CLI reference describes automatic background compaction at approximately 80% of context capacity and a brief pause near 95% if that work is still unfinished. These are documented CLI behaviors, not universal thresholds for every Copilot surface. Supported clients also differ in whether manual compaction is available; the supplied reference excludes Xcode from its listed compaction support.
The process takes a snapshot, produces a structured summary, replaces older messages with that summary while retaining original user instructions and current plan state, and keeps messages added during background compaction. Fine details can be lost, including exact wording, complete tool output, and minor decisions. Press Esc to cancel a manual compaction while it is still in progress. This cancellation boundary is different from a completed compaction, which cannot simply be reversed.
If an important earlier condition seems missing, open the saved source or a checkpoint to verify it. The supplied documentation says most clients, including the Copilot CLI, create these compaction summaries automatically. In the CLI, /session checkpoints lists each checkpoint by number and title. If the list shows 2. Implementing user dashboard, use /session checkpoints 2 to open that summary. Compare the decision with the saved evidence before continuing. A compaction summary, a file-edit restore point, and a conversation fork are separate capabilities with client-specific support. Viewing the summary reads the saved record. Restoring files or undoing an external action requires its own supported action and authorization.
Defer detail without dropping dependencies
Keep the main task’s sequencing, constraints and decisions available, while putting lengthy task-specific checklists or templates in relevant skills that the supported host can load when needed. The supplied gh-aw examples use deferred inline skills for this purpose. A skill not needed for this task need not occupy every early turn; a required policy must still be retrieved and applied before the dependent action. Detailed setup syntax belongs to the skills/workflow lessons.
For a focused helper reviewing a renewal failure, an illustrative handoff could include: goal “identify the failed step”; evidence “the selected error interval and named configuration”; constraints “do not change files or invent missing logs”; output “confirmed symptom, supported cause or unknown, evidence location, next authorized check.” The expected result can be “symptom confirmed; cause unknown because the configuration evidence is missing; request that evidence.” This retains the dependency instead of treating a small but unsupported answer as success. None of these expected artifacts is a claim that a helper was run.
Use limits and feedback for the right purpose
The per-session soft limit and monthly budget have different effects, as the earlier limit comparison explains. Neither demonstrates that a draft met its acceptance criteria.
In the documented CLI, use /chronicle tips and /chronicle cost-tips to inspect recent session patterns. Turn a supported recurring lesson into short applicable repository guidance rather than copying every log into every prompt. Do not infer a universal saving from a recommendation.
Retain deterministic tests, linting and security checks when they answer a known requirement. A cheap invalid handoff can cause additional model work, review and repair. Compare accepted work over the same task population, and keep actual token use, estimated cost, elapsed time and active human labor separate.
Worked example: a smaller evidence extract
This is an illustrative calculation, not a measured Copilot session. Two approaches address the same diagnostic task under the same acceptance criteria. Assume a 20,000-token tool dump contains an irrelevant region and can be replaced by a 5,000-token extract that retains every fact needed for the diagnosis, including relevant exceptions and error context.
| Measure | Calculation | Interpretation |
|---|---|---|
| Original selected tool contribution | 20,000 tokens | The denominator for this comparison |
| Replacement contribution | 5,000 tokens | The sufficient extract for the same task |
| Reduction | 20,000 − 5,000 = 15,000 tokens | Less context from this particular contribution |
| Percentage reduction | 15,000 ÷ 20,000 × 100 = 75% | Reduction in the selected contribution only |
The conclusion is: “The sufficient extract reduces this tool contribution by 15,000 tokens, or 75%.” It does not establish a 75% reduction in the total invoice or AI credits. Other instructions, history, outputs, reasoning, cache treatment, and repeated requests remain relevant. It also says nothing about active human labor.
To evaluate a real change, compare equivalent tasks that reach the same accepted quality, and observe the actual usage and billing measures being claimed. If the smaller extract removes a decisive condition or causes further retries, the example's sufficiency assumption fails. A smaller context with an unreliable answer has not demonstrated a successful optimization.
The AI usage page in GitHub billing settings breaks down credit consumption by feature and model. Review that evidence before selecting a credit-spend optimization.
Choose a model and require checkable explanations
Use the same evidence and acceptance criteria when comparing candidates. Model capability, task orchestration, work mode, tool approval and provider routing are separate choices. A change to one cannot supply missing evidence or silently grant another.
Model choice changes the response, not the facts
GitHub Copilot supports models with different capabilities. Some emphasize fast responses to bounded requests; others suit complex reasoning, interconnected contexts or visual inputs. The choice can affect relevance, accuracy, latency, detail and supported inputs. It does not make the underlying evidence true or complete.
A model suited to routine edits may give a concise explanation of a straightforward change. A stronger reasoning model may help compare competing explanations across files. Neither guarantees a correct response. A long answer can add unsupported details; a short one can accurately identify the missing fact that prevents a decision. Increasing reasoning effort for every task can increase usage or latency without improving the useful result.
Context capacity is also different from understanding. A large context window can receive more material, but that does not establish that the relevant exception was understood. Supply the evidence needed for the task and inspect the resulting claim. Task fit matters more than a permanent ranking of model names.
Compare task categories
The saved comparison uses several task categories. The following named choices are illustrations from that supplied snapshot, not a live catalogue, a permanent ranking or proof that an account can select them.
| Category | Illustrative choices | Useful strengths | Reason to choose another category |
|---|---|---|---|
| General-purpose coding and writing | GPT-5.6 Terra; GPT-5.3-Codex | Balance of quality, speed and cost for common functions, diffs, explanations, documentation and non-English programming contexts | Complex dependencies can need deeper reasoning; a very small repetitive edit may benefit from a faster response |
| Fast help with simple or repetitive tasks | GPT-5.6 Luna; Claude Haiku 4.5 | Responsive syntax help, small utility edits and lightweight prototypes | Multistep architecture, deep debugging or broader structured reasoning may need another category |
| Deep reasoning and debugging | GPT-5.6 Sol; Claude Sonnet 4.6 | Structured analysis across files, interconnected refactoring, architecture, trade-offs, logs and system behavior | Extra reasoning can be unnecessary for a simple edit or general writing |
| Visual-capable work | GPT-5.6 Luna; Claude Sonnet 4.6 | Interpretation of diagrams, screenshots, interfaces and visual drafts | A host without the image supplies no visual evidence; text-only work or complex architecture may suit another category |
Start with an available general-purpose candidate such as the snapshot's GPT-5.6 Terra example. Evaluate its result against the task before switching categories. The supplied table lists Gemini 3.8 Flash for quick, lightweight coding help, Grok 4.7 for complex multistep coding, and Qwen2.5 for general coding, writing, and repair. Its long-horizon examples include GPT-6 Astra for coding that needs continuous planning and verification and Claude Fable 5.1 for substantial coding and knowledge work. The table lists MAI-Code-1.1-Flash for general coding, writing, and image understanding, and Kimi K3 for long-context, multistep coding. Check availability for the actual client, plan, and policy before choosing. The GPT-6.1 Terra further-reading cell says “TBD,” so model-card evidence would need to come from another source. A blank cell in the supplied availability extract leaves release status, client support, and entitlement unresolved.
For visual work, check both the model's capability and the input path. A model that supports images gains no direct visual evidence from a client that has not provided the screenshot. A configured MCP server may provide indirect visual input in a supported setup, but actual availability, configuration and authorized access must be checked.
Specific qualifications also matter. The supplied Kimi K3 description concerns long-context, multistep coding and agentic work. Fine-tuned variants may be part of the individual-plan offering and are excluded from Copilot Business and Enterprise in that snapshot. The source reports elevated pre-release risk on certain higher-risk prompts and less consistent sensitive-topic refusals, followed by additional safeguards. Evaluate the actual capabilities, limitations and safeguards for the use case; this is no universal safety certificate. MAI performance and behavior can change as checkpoints are updated. Consequential work still needs appropriate evidence and human oversight regardless of model strength.
Check which candidates are actually available
Model access depends jointly on the Copilot plan, client and applicable organization or enterprise restrictions. Individual-plan users generally need no model-policy setup, but the supplied access reference limits Copilot Free and Student to automatic model selection. Enterprise and organization owners can enable or disable models for members with Copilot Business or Enterprise seats. Image generation uses a dedicated model managed in the same policy; disabling that model turns off that image-generation route for members.
On GitHub.com and Mobile, plan and account policy constrain model choices. For cloud agent tasks, the selection also depends on how the task starts. Repository owners or administrators can disable Copilot for a repository even when plan and policy otherwise allow it. Organization SSO requirements apply to organization data and sessions. Without repository write access, the session is read-only. These access conditions are separate from intrinsic model capability.
If a model is absent from the picker, inspect the plan, surface, task-start path, policy and documented availability. Do not immediately diagnose a client defect or bypass an administrative restriction. These conditions describe the supplied references; the saved catalogue is not a fresh verification of current availability or permission to use every listed choice.
Distinguish automatic selectors and work mode
In the supplied comparison, Copilot Fusion plus an effort level selects models and an execution pattern for the task. Auto selects a model based on the task. Fusion is not one fixed model, and Auto does not establish that the same orchestration pattern is used. Neither grants tools or credentials.
Model and reasoning effort concern capability and the effort requested for the task. The documented Copilot app work modes describe collaboration:
- Interactive: the user and agent work together, with the agent waiting for input as described by the mode.
- Plan: the agent prepares a plan for review and approval before executing it.
- Autopilot: the agent writes, tests and iterates without waiting for user input.
Tool approval is another selection. Manual approval (Ask every time) requests approval before tools. Assisted uses a model to assess requests, approving those judged safe and prompting for potentially unsafe requests; that judgment is not a correctness guarantee. Unconditional approval (Approve all) removes individual tool prompts. Resource rights still come from credentials, repository permissions and policy. A stronger model does not grant a broader token. Plan does not make an overpowered credential read-only, and Autopilot does not establish business authorization for every possible action.
In the documented app start flow, select the connected repository or folder, then choose Environment (This computer or Cloud), Workspace (New worktree or Current checkout) and the base branch. Select model/effort and work mode independently. A project may span repositories or work without one; the chosen task context must still be checked.
Within a session, the mode control's Tool permissions menu changes that session's approval level. The app's Settings → Sessions → Tool permissions instead sets the default for future local sessions. Mode, model and reasoning effort can be changed during a session. These choices do not substitute for actual environment restrictions or account authority.
For Fusion, the app shows progress steps and the model being used; hovering over the effort name below the response shows the models used. Models from a configured personal provider also appear in the picker, subject to the actual setup. The built-in rubber duck agent offers constructive critique on a different model. When consulted automatically or through /rubber-duck, it returns feedback to the main agent, which decides how to apply it. Agreement from a critic is neither human plan approval nor proof that a result passed its acceptance criteria.
Understand custom-provider boundaries
BYOK can add compatible models through different routes. Users can configure additional models for themselves in a supported client. Enterprise owners, and organization owners with the necessary permission, can make models available to eligible users through GitHub's Copilot API. Local or cloud access depends on the surface and configuration method; for example, user-configured CLI BYOK can connect to a compatible cloud service or a model server on the user's computer or network. Personal configuration is not organization-policy authority.
The supplied Copilot Chat application card lists provider examples including Anthropic, AWS Bedrock, Google AI Studio, Microsoft Foundry, OpenAI, OpenAI-compatible providers and xAI, with the chosen provider API key added in Copilot settings. This is source-dated setup guidance, not proof of current all-client entitlement or authorization to disclose a key. Use approved secret references in examples and handoffs; never copy actual API keys into them.
In that Chat Agent experience, the selected BYOK model powers the main conversation. Certain code-application or other tool calls may instead use Copilot-integrated models optimized for those tasks; those built-in models do not run through the chosen BYOK provider. Responses still pass through GitHub's API and may have filtering before presentation. This does not mean every tool call takes the built-in route or every BYOK response is filtered.
The separate default-model reference states that default-model prompts and completions pass through content filters, with public-code matching when enabled. Keep that scope distinct from the Chat BYOK statement. Neither establishes one provider-only path, identical filtering across all actions or a safety guarantee.
BYOK suggestions depend on the selected provider's strengths and training coverage. Prompts and responses are transmitted to that provider and may be subject to its retention and privacy policies. Users remain responsible for key security, usage costs and quotas, output validation, safety and quality evaluation, compliance with provider terms and determining applicable legal obligations. Check actual export and jurisdiction authorization for the selected provider and model; a source list is not legal clearance. A human must review outputs before they inform decisions affecting people. Provider choice, GitHub API transit or possible filtering does not discharge these responsibilities.
Compare complete cost for an accepted result
Different models can consume Copilot AI credits at different token-price rates. Prompt/context size, output and tool use, selected model, provider price and task/run count affect the cost. Focused context and a lighter model may reduce usage, but a fast incomplete answer is not an equivalent accepted result. There is no universal conversion from response length or elapsed seconds to credits or currency, and latency alone proves no lower bill or reduction in hands-on work.
GitHub Agentic Workflows uses a separate catalogue-based estimate: 1 AWF AIC equals $0.01 USD. Its estimate is best-effort and may differ from the provider invoice. For a concrete model present in the embedded catalogue, compilation can include provider-specific rates. Effort parameters are stripped for pricing lookup, explicit frontmatter provider pricing takes precedence, and compilation neither fetches prices nor infers rates from a related model. Reconcile the actual provider charges separately; this estimate is not the Copilot automation billing ledger.
Actions compute is charged separately from inference, and environment compute allowance is separate from AI credits. The cost source gives dated lighter-model examples such as gpt-4.1-mini and claude-haiku-4-5 for suitable routine work. Its rough scenarios include a weekly digest at four runs per month and issue triage at twenty events per month, with inference varying by model and prompt. These are budgeting illustrations, not measured prices, performance or guaranteed savings for the reader's account. Compare complete applicable usage and cost only with equivalent relevant inputs and accepted-quality results.
The adopted cost reference distinguishes the per-run Duration field, which is elapsed wall-clock time, from Actions compute billed by the minute and rounded up per job. Neither measurement is hands-on operator time.
For a hypothetical month M, assume a total of four executions, counting any failed, retry or repair-verification executions in that total. Each execution has one billable Actions job with an assumed duration of 1.2 minutes including setup. Rounding each job upward gives two billed minutes per job, so the monthly estimate is 4 executions × 1 job/execution × 2 billed minutes/job = 8 billed Actions minutes. Inference is Unknown in this example because the prompts, tool usage, model/provider and applicable prices are not supplied; estimate it separately when those inputs are known. This is planning arithmetic, not measured consumption, an invoice, a quality result or labor savings.
The adopted reference also suggests separate service accounts per repository or team, referenced through COPILOT_GITHUB_TOKEN, to attribute spend by workflow. This is an accounting option, subject to actual credential and administrative authority; use authorized secret references rather than copying token values. It does not establish model quality or grant broader resource access.
Worked selection with shared acceptance criteria
Consider three illustrative tasks. These are selection examples, not measured benchmarks or claims that a named model was run.
| Input and desired output | Candidate capability | Acceptance criteria and boundary |
|---|---|---|
| A supplied paragraph needs one terminology correction | Fast or balanced general-purpose response | Correct that phrase, preserve material conditions and avoid unrelated rewriting |
| Logs and related components support competing explanations of a failure | Stronger reasoning with sufficient relevant context | Separate observed failure from hypothesized cause, cite evidence and state the next discriminating check |
| A screenshot and field definitions need an explanation of visible workflow state | Visual-capable model in a supporting client | Interpret only visible evidence, preserve unknown underlying configuration and avoid claiming an action was executed |
For the failure investigation, suppose one candidate produces a plausible cause without citing the logs and another identifies two hypotheses plus the missing observation needed to choose between them. The second is the better supported result for that evidence, even if its answer takes longer. Missing evidence remains missing; the goal is not to force certainty.
An actual comparison should give candidates equivalent relevant inputs and the same acceptance criteria. Record whether each result met those criteria before comparing observed latency or usage. If measurements are absent, report them as unmeasured instead of assigning hypothetical savings. Inspect the final artifact after changing models or effort, because a cheaper or faster configuration is useful only if the accepted result remains sufficient.
Make explanations and evaluation evidence checkable
Ask for relevant sources, assumptions, uncertainty and the connection from evidence to recommendation. Verify those elements against the material. An answer citing a failed required check is more checkable than “the release seems unsafe,” but the failed check alone does not establish root cause, personal fault or the final business decision. A polished rationale is an output to evaluate, not privileged access to internal model reasoning. Switching models cannot manufacture a missing record.
The Responsible AI section below explains the provider-described task, baseline, latency/efficiency and safety evaluations in one place. Those population-level assessments do not replace the evidence for the particular answer being reviewed.
Worked comparison: preserve the same evidence boundary
This teaching example uses hypothetical input and expected outputs; it is not a measured model benchmark or an executed Copilot response. Both candidates receive the same records:
- Pull request 18 has one recorded approving review.
- Its required
policy-checkresult is Failed. - No diagnostic log or approved exception is supplied.
- The request permits drafting a readiness note only.
The acceptance criteria are to preserve the review and check states, avoid inventing root cause or an exception, identify missing diagnostics and refrain from merging.
| Candidate output | Assessment against the shared criteria |
|---|---|
| “One review approved PR 18, but the required policy check failed. Merge readiness is not established. Inspect the diagnostic log; this note does not merge the PR.” | Preserves distinct states, missing evidence and the draft-only boundary |
| “The reviewer approved the change, so it is ready. The failed check is probably a network problem.” | Substitutes approval for check success and invents a cause |
The first output is better supported for this input even if the second is faster or longer. An actual comparison needs observed outputs, equivalent relevant inputs and the same criteria. These expected examples establish how to judge a response; they establish neither which named model produces it nor a numerical accuracy advantage. Verify extra explanations too, and retain uncertainty until the missing log or legitimate exception is supplied.
Match credentials and MCP reach to the authorized task
A model can explain a desired action without having the right connection or authority. Conversely, a powerful server can reach more than the task needs. Establish consumer, identity, exposed tool and permitted resource before delegating a call; then diagnose failures without exposing secret values.
Establish the consumer before configuring a credential
A cloud agent may need an authorized credential to read a private package registry or configure an MCP connection. The secret value grants access according to its actual permissions. Its name identifies the configuration entry; a reference tells the intended consumer where to obtain it. Writing the name in a prompt neither creates the entry nor grants the resource access.
The procedures below describe the supplied implementation reference. Verify the actual environment and administrative authority before applying them; no secret was created or changed for these examples.
Use the smallest credential and repository scope that meets the task. Keep the value out of committed source, prompts, generated documents, and diagnostic output. The checked cloud-agent documentation has a dedicated Agents secrets-and-variables type; ordinary Actions, Codespaces, or Dependabot secrets are not automatically passed to the agent.
For a repository administrator, the documented configuration entry is repository Settings → Secrets and variables → Agents, then the appropriate secret or variable tab. Organization owners can configure the corresponding organization-level Agents entries and choose all, private/internal, or selected repositories. A repository-level entry of the same name overrides an organization-level entry. A narrower selected-repository scope avoids exposing a shared credential where it is not needed. This describes the product procedure, not authorization to create credentials or broaden access.
The environment changes what is available:
- When the agent runs on GitHub Actions, Agents secrets and variables can be exposed as environment variables to its scripts and tools.
- In a cloud sandbox, Agents secrets are available but Agents variables are not.
- Entries prefixed
COPILOT_MCP_are reserved for MCP-server use rather than ordinary agent environment variables; the server must reference the appropriate secret.
If a tool cannot authenticate, diagnose the entry type, name, repository/organization scope, execution environment, and reference. Do not print the value to prove it exists. A variable that worked in an Actions-backed environment may be absent in a cloud sandbox even when its name is correct. Similarly, an ordinary command cannot assume it receives a COPILOT_MCP_ value intended only for the MCP server.
The documentation notes migration from the older Actions copilot environment into the repository Agents type. Do not combine old environment instructions with the newer cloud-sandbox behavior as if they were one setup. Session-log masking is useful, but it does not make copying a credential into source or granting an overpowered server safe.
Configure the right level through an authorized owner
For a repository entry, the supplied original requires a repository administrator. Open repository Settings, then Secrets and variables, then Agents. Choose Secrets or Variables, select New repository secret or New repository variable, enter the approved name and value in that administrative interface, and choose Add secret or Add variable. Keep the value in the approved secret-entry workflow rather than copying it into a chat or document.
For an organization entry, the required actor is an organization owner. Use the corresponding organization Settings → Secrets and variables → Agents page and the appropriate tab. Under Repository access, choose All repositories, Private repositories, or Selected repositories. In this reference, Private repositories includes private and internal repositories. Selected repositories limits delivery to the named repositories. Save the entry and verify its intended scope without disclosing its value.
The same-name repository entry takes precedence over an organization entry. Consequently, a correctly scoped organization secret can still be shadowed by a repository-specific value. Diagnose the effective level as well as the spelling. Possession of a secret value is not authorization to distribute it to every repository.
Apply names and environment rules together
The documented naming rules allow alphanumeric characters and underscores, prohibit spaces, prohibit a starting number, and prohibit the GITHUB_ prefix. Names are case-insensitive, lowercase letters are converted to uppercase, and names must be unique at their configuration level. A valid name still needs a credential with the appropriate resource permissions.
For MCP configuration, the Agents secret or variable name must begin with COPILOT_MCP_. Only entries with that prefix are available to the MCP configuration. Conversely, prefixed entries are reserved for MCP-server use and should not be expected as ordinary command environment variables. A cloud sandbox's lack of Agents variable support still applies: adding the prefix does not turn a variable into a supported sandbox secret.
| Execution environment | Ordinary Agents entries available to commands/tools | MCP-prefixed entries |
|---|---|---|
| GitHub Actions-backed cloud agent | Supported Agents secrets and variables, including use by setup steps | Reserved for MCP-server configuration |
| Cloud sandbox | Agents secrets; Agents variables are not available | Referenced Agents secrets are available only to the configured MCP server |
Ordinary Actions, Codespaces and Dependabot stores are different types; the cloud agent receives Agents entries. The documented automatic migration from the old Actions copilot environment into repository Agents entries is a specific migration, not a promise to pass every ordinary Actions secret. Session-log masking is useful, but it does not make hard-coded values, excessive credentials or unintended destinations safe.
Distinguish custom-server credentials from verified connectors
The personal/repository configuration comparison later in this section supplies the complete key-authentication, secret-reference, account/organization scope, same-name override and combined-server ceiling rules. Apply those rules to the actual credential consumer rather than reproducing a personal secret in repository configuration. Diagnose the effective configuration before changing access.
GitHub-verified connectors are a separate connection route: GitHub manages their configuration and authentication across supported local and cloud-sandbox sessions. The cited connector support excludes sessions running on GitHub Actions. Do not transfer a connector's authentication support to a custom personal server, or assume that a personal connection supplies a repository service account.
Check the effective tool and credential boundary
The cloud agent's default GitHub MCP server uses a specially scoped token with read-only access to the current repository. Access outside that repository requires explicit credentials with broader reach. Replacing that token changes the access you must assess; the default's limited scope does not constrain an independently configured credential. Review a third-party server's tools, authentication and data access before enabling it, allow only the tools needed, and verify what is actually available in the agent session.
For delegated cloud work, such as mentioning Copilot or assigning it an issue or pull request, configured MCP tools can be called autonomously without asking for approval before each call. Review the server and its credential scope before delegation. A selected tool can reach whatever its server credentials permit, including other repositories or external systems; a read-looking prompt is not a substitute for a restricted credential.
The supplied MCP servers in Copilot managed policy is off by default and governs users receiving Business or Enterprise subscriptions from the organization or enterprise that configures it. That policy does not govern Free, Pro, Pro+ or Max access. For cloud agent and code review, repository settings and custom-agent profiles support MCP tools, not MCP resources or prompts; remote OAuth servers are unsupported in that configuration scope. Code review additionally excludes tools unless annotations.readOnlyHint is true. This hint filters tool availability; it does not reduce the real permissions of a credential or guarantee that a server is safe.
Cloud custom-agent MCP profiles are also distinct from direct IDE profiles. In the documented cloud processing order, defaults come first, custom-agent settings next, and repository settings last; later settings can override earlier ones. This is not a general Copilot CLI project-file precedence rule. Diagnose the actual surface and effective configuration instead of reusing another client's location or order.
The cited GitHub MCP push protection covers public repositories and private repositories covered by GitHub Advanced Security. It can block secrets in generated responses and actions within that coverage. It is not a universal guarantee for every repository, third-party server, log or destination. Least privilege and careful secret handling remain necessary even when masking, hints or push protection are present.
Keep telemetry and admission authentication distinct
A gh-aw telemetry example uses ${{ secrets.OTLP_ENDPOINT }} for the endpoint and ${{ secrets.OTLP_TOKEN }} for its Authorization header. These are references, not values to paste into a prompt or report. Verify the approved backend and data destination as well as authentication: exported spans can contain workflow, model and input/output-token metadata. Having a token does not authorize exporting that information.
Admission uses a different authentication mechanism: GitHub Actions OIDC. Participation requires the applicable workflow or repository opt-in to be compiled and a nonempty authority endpoint configured. A URL or secret alone does not create an admission job. The endpoint must be an absolute HTTPS /api/admission URL without embedded credentials, query parameters or a fragment; its audience defaults to that URL. Admission-related jobs need id-token: write, including permission from hand-authored reusable callers. Do not send PATs, provider tokens or GitHub App private keys to the authority.
Keep the authority's protected policy separate from caller-supplied secrets and repository or organization runtime variables. Repository variables override organization variables. Changed opt-in configuration needs compilation and committed generated files; changing an endpoint variable for an already opted-in workflow has a different runtime lifecycle. Explaining these prerequisites does not deploy an authority, export telemetry or perform an admission call.
For an illustrative integration review, suppose a repository writer asks to reuse a personal MCP secret for a shared server and to send a provider token to an admission endpoint. An appropriate expected record is: “Shared server configuration needs an authorized repository administrator and a scoped service account; a personal MCP secret cannot be referenced there. Admission must use OIDC with the proper job permission, compiled opt-in and validated endpoint/audience. No credentials have been copied, no telemetry destination approved, and no configuration or network action performed.” This records the missing authorization and configuration facts without exposing values or treating a proposal as deployed access.
Worked example: investigate an authentication failure
These are illustrative entry names and expected diagnostic outcomes. They contain no credential values, and no configuration or authentication attempt was executed.
| Input and actual consumer | Relevant evidence | Expected finding | Narrow next action |
|---|---|---|---|
| A cloud-sandbox command expects an Agents variable named BUILD_FEED_ENDPOINT | Entry type is variable; host is cloud sandbox | This environment does not receive Agents variables | Use an appropriate supported configuration method; do not print or invent a value |
| An Actions-backed command uses BUILD_FEED_TOKEN, which exists at organization and repository levels | Same case-insensitive name at both levels | Repository entry is the effective override | Ask the authorized repository administrator to inspect the intended entry and scope |
| An ordinary command expects COPILOT_MCP_REPORT_TOKEN | Prefix reserves the entry for MCP configuration | Ordinary command delivery is the wrong assumption | Check the configured MCP server reference and its actual resource permissions |
| A cloud agent expects a token stored only as an ordinary Actions secret | Store type is Actions, not Agents | That entry is not passed through the documented Agents mechanism | Route the request to the authorized administrator for the correct entry type and minimum repository scope |
The diagnostic result should describe the missing type, scope, environment or reference. “The credential is invalid” is premature when no evidence shows the intended consumer ever received it. “Print the token to confirm it exists” creates an unnecessary disclosure. If the entry is correctly delivered but access still fails, inspect the identity and required resource permissions through authorized evidence rather than assuming a broader token is the fix.
Recommend a connection for a defined missing capability
Model Context Protocol is an open standard for connecting applications to tools and data that can provide context to a language model. In Copilot, an MCP server can make an external issue tracker, documentation service or other useful system available during work.
The reason to use a server should be specific. If a task repeatedly needs the current contents of a defined external issue, a connection can avoid asking the user to copy the issue into every conversation. If the necessary source is already supplied and no external action is needed, adding a powerful connection may provide little benefit.
MCP complements prompts, files and instructions. A prompt describes the current task; instructions describe how the agent should work; a server supplies an actual connection or capability. Writing “consult the tracker” in an instruction does not create authentication or a tool. Conversely, connecting the tracker does not explain which issues are relevant or authorize edits to every record.
Evaluate the whole access path
Before recommending a server, identify the required resource and action, then check the following:
| Question | Why it changes the recommendation |
|---|---|
| Which host and execution environment will use it? | Configuration, authentication and feature support vary by surface |
| Does an applicable administrator policy permit it? | A technically compatible server can still be unavailable under managed policy |
| Which tools are actually exposed? | A server can include more actions than the task needs |
| Which account and credential scope will it use? | The connection's reach can exceed the current repository or request |
| Which data leaves the current environment? | External access must match the permitted data destination |
| How will availability and results be verified? | A saved configuration is not proof of a working authorized read |
The named MCP policy applies to users whose Copilot Business or Enterprise subscription comes from the organization or enterprise configuring that policy. It is disabled by default in the supplied reference. Copilot Free, Pro, Pro+ and Max access is not governed by this particular policy. Those exclusions do not establish unrestricted access to every resource: actual server authentication, resource permissions and other applicable policies still matter.
Review the server and its tools before enabling it. Allow only the actions required by the task and keep credentials limited to the necessary resources. A read-only documentation lookup does not justify enabling unrelated administrative write tools.
Use the configuration for the actual surface
The Copilot CLI supports local and remote servers, with the GitHub MCP server built in. The app can use repository or local Copilot configurations and provides customization controls. IDE connection and authentication options depend on the IDE.
Repository-level settings on GitHub.com apply to Copilot cloud agent, automations and code review. Review MCP tool use can be disabled separately; automations use only the tools selected for each automation. GitHub.com Chat's preconfigured tools are a separate feature; they are not the same as those repository settings. A local CLI project configuration is also different from repository settings on GitHub.com.
Check GitHub-verified MCP connectors before configuring a personal server. In the supplied reference, GitHub handles connector configuration and authentication, allowing reuse across supported local clients and cloud-sandbox sessions without separate sign-in/setup in each. These connectors do not work in GitHub Actions-based sessions. Verified supplier status does not replace checking the particular tools, data destination, account and requested action.
In the supplied cloud-agent reference, the default GitHub server uses a specially scoped read-only token for the current repository. The default Playwright server can access localhost or 127.0.0.1 resources in the agent's environment. These are cloud defaults, not guarantees for every server, credential or local client. Explicitly configuring broader credentials changes the possible reach.
Check support at the feature level. The supplied reference says cloud agent and code review support MCP tools, not MCP-provided resources or prompts. Repository-settings and custom-profile remote servers on those surfaces do not support OAuth as described there. Code review additionally requires tools to declare annotations.readOnlyHint: true; tools missing that declaration or declaring false are excluded. Generic protocol compatibility does not resolve these host-specific limits.
Choose personal or repository configuration deliberately
Personal servers support an individual's cloud workflow across repositories. The supplied reference limits these personal servers to cloud sandboxes and key-based authentication. Personal secret names use the COPILOT_MCP_ prefix, for example the placeholder reference name COPILOT_MCP_API_KEY; this is a name, not a secret value. By default these secrets are available to sessions scoped to the personal account, with optional availability in selected organizations. The referenced secret must actually exist and be available where the session runs. Personal servers are available in every such cloud session; the documented controls do not currently let you select a different subset for each individual session.
Custom HTTP and SSE server URLs do not support query parameters in this reference; pass those values as request headers instead. The combined total of personal and repository-level servers is at most 50. Use the actual combined server inventory for this ceiling. A server count is a nonnegative whole number; the source supplies no extra per-scope quota or counting exception merely because one name overrides another. The ceiling does not itself prove authentication or a successful read.
| Known combined inventory | Documentary ceiling decision | Remaining evidence |
|---|---|---|
| 0 servers | Within the ceiling, but no configured server supplies this task's missing connection | Select a supported route if a connection is needed |
| 50 servers | At the stated ceiling | Check actual required tool, authentication and resource access |
| 51 servers | Exceeds the stated ceiling | Reduce the combined configuration before relying on it |
| Inventory missing, fractional, negative or otherwise invalid | No valid count for checking the ceiling | Inspect both actual configurations; do not assume zero or infer permission |
Repository-level configuration is appropriate when collaborators need a shared connection. Repository administrators configure it for the repository, and the documented configuration is available to repository writers. For authenticated shared servers, use appropriately scoped service-account credentials rather than assuming each collaborator's personal secrets are available. Repository configuration cannot reference personal MCP secrets. If personal and repository configurations use the same server name, repository configuration takes precedence. For a custom agent in Copilot cloud agent, the profile's mcp-servers property applies to that agent. The documented processing order is cloud defaults, then custom-agent configuration, then repository settings; later configuration can override earlier values. This profile property is not used by agents running directly in IDEs, and that processing order is not Copilot CLI project-file precedence.
Validate the actual server and tool inventory before relying on it. If authentication fails, inspect the entry type, reference and permitted account or organization scope. Do not print a secret value to prove that a reference exists.
Review authority before cloud delegation
The supplied cloud reference warns that, after work is delegated through the documented assignment or mention workflow, configured MCP tool calls can occur autonomously without a fresh approval request for each call. Review server trust, allowlisted tools and credential reach before that delegation.
A server described as read-only in one environment does not make all configured servers read-only. A tool's presence also does not establish business approval to use every accessible record. A task to summarize a bug is different from authority to edit its priority, notify a customer or close the issue.
Choose supported capabilities and a discovery route
The GitHub-maintained MCP server can expose useful code-related capabilities, but their prerequisites differ. Invoking Copilot cloud agent requires a Copilot subscription; code scanning requires GitHub Advanced Security. Remote use through VSCode can expose additional remote-only toolsets, while local use depends on a compatible editor and its actual authentication/connection support. Inspect the authoritative tool inventory rather than assuming every host offers the same actions.
Enable only needed toolsets. Fewer unused tools can improve selection and reduce ambient context; toolsets can also contain resources or prompts where the consuming host supports them. That does not override the cloud/review tools-only restriction. The source describes GitHub MCP push protection for public repositories and private repositories covered by Advanced Security, blocking secrets in AI-generated responses and actions there. Do not expand this to every private repository, data destination or server.
The curated GitHub MCP Registry is a public-preview discovery catalogue, not a safety approval. Agent finder instead returns ranked runtime capability matches under the open Agentic Resource Discovery (ARD) specification. Copilot CLI has its own finder setup; the Copilot app offers an af built-in skill. Discovery is not installation, authenticated configuration, business approval or proof that a tool succeeded.
The adopted gh-aw example uses the agentic-workflows MCP tool for logs, audit and status, allowing monitoring of workflow costs and proposed frontmatter improvements through a PR. It requires actions: read permission and configuration under the tools: frontmatter key. Include this tool only in workflows needing self-inspection. A monitoring report or proposed cheaper-model/configuration PR is not approval to apply the proposal. No monitoring workflow or connection was run here.
Preserve the execution host
The supplied newer cloud experience allows cloud-sandbox sessions to continue across supported clients and to work across repositories in an organization. Actions-backed sessions have native single-repository context; broader MCP access requires explicit repository configuration and suitable credentials. A host change alone grants no access. Cloud dotfiles personalization, connectors and personal MCP do not apply to Actions-backed sessions, whose repository customizations have their own setup. Some Spaces mixing organizations or private/organization sources also have compatibility limits.
The supplied reference distinguishes three components: the client is the interface used to start or steer work, the session is its conversation and associated activity, and the environment is where the agent executes. The newer experience offers Cloud, GitHub Actions and Remote custom environments. Choose a cloud sandbox when continuity across supported clients is needed; a change of interface alone does not move the work or grant resource access.
Its environment comparison also affects confidentiality, setup and integration decisions:
| Dimension in the supplied snapshot | GitHub Actions-based session | Cloud sandbox session |
|---|---|---|
| Continuity | Available on the GitHub website | Can be shared and resumed across supported clients |
| Native repository scope | Requires one selected repository; changes stay in that repository | Can span repositories in one organization |
| Chat-data retention | 28 days | Life of the account |
| Custom environment | Actions-specific compute, network and setup configuration, including self-hosted runners | Honors repository and organization firewall allowlists; does not support custom compute, Actions-specific setup steps or self-hosted runners |
| Customization and tools | Supported custom instructions, MCP servers and content exclusions under repository setup | Custom instructions, dotfiles, personal and repository MCP servers, connectors and content exclusions across cloud sandboxes |
| Suitable need | Repository-specific integrations or custom/self-hosted execution | Cross-repository chat and quick model access when those custom execution facilities are unnecessary |
In this experience, cloud and Actions compute draw on the same monthly GitHub account allowance, separately from AI credits. These source-dated retention and allowance statements do not verify a particular account's settings or actual bill.
Keep the older and newer experiences distinct. In the older cloud-agent-plus-Chat experience, web agent entry points default to Actions, feature policies are separate, and Chat conversations and delegated tasks are separate sessions. Starting an agent task from that older Chat runs it on Actions without an environment choice. In the newer experience, Cloud is the default where a choice is offered, with workflow-dependent exceptions; a single organization/enterprise policy governs the named website/Mobile cloud experience, and the chat/agent session can use Cloud or Actions. Inspect the selected workflow and environment rather than inferring the default from the client name.
The newer session-context choices include all repositories owned by the user or an organization, a specific file/issue/PR, a selected repository and branch, or a Space. The repository selector, plus menu and mentions attach relevant context. The older experience can automatically attach a specific item or repository/branch, but multiple-repository context requires manual repository selection. Session context is different from Copilot Memory's persistent cross-session understanding. Context attachment still needs the actual repository and organization access described below.
Plan and policy still apply. Repository owners or administrators can disable Copilot for a repository, organization data/sessions require the applicable SSO, and a session without repository write access is read-only. Both cloud-sandbox and Actions tasks have the stated one-branch-at-a-time and one-PR-per-task limits; Actions-backed sessions additionally have a maximum 59-minute execution time that cannot be extended or bypassed in this reference. These are host/task restrictions, not connector permission grants or successful-delivery guarantees.
Worked recommendation
Assume an illustrative request: “Draft an internal note about external tracker issue 72 using its current description and comments. Do not change the tracker or send the note.” The approved input scope is issue 72 only.
The expected recommendation is a compatible tracker connection with the smallest available read capability and credentials restricted to the authorized resource scope. Confirm the relevant policy, authentication method and actual read tool before relying on it. Do not enable write tools merely because they arrive in the same server package.
| Observed situation | Expected decision |
|---|---|
| Authorized read returns the issue and comments | Draft a note grounded in those records, preserving unresolved questions |
| Connection cannot authenticate | Record the access gap; do not invent the issue contents or request an unnecessarily broad token |
| Server exposes reads and administrative writes | Allow only the needed reads and inspect credential scope before delegation |
| Issue describes a proposed fix without completion evidence | Report a proposed fix; do not claim execution or close the issue |
An expected note might say: “Issue 72 describes the reported failure and a proposed fix. The retrieved records do not establish that the fix was executed. This is an internal draft; no tracker update or message has been sent.” This is a teaching output, not an actual retrieval or a connection configured by the lesson.
Review actual disclosure, ownership and retained records
Tool access answers what can be reached; privacy review also asks who can see prompts, logs and results and where they persist. The automation identity and credit payer described earlier do not determine confidentiality. Apply the documented control to its actual client and data path.
Evaluate the actual data path
A governance decision concerns who can supply information, which tools can reach it, who can observe the run, and what effects may follow. The word personal, an exclusion setting, or a read-only instruction answers only part of that question. Inspect the actual host, account, repository, server credentials and output destination.
The procedures below are source-dated implementation guidance. Actual support and effective permissions must be established for the client and version being used; none of the examples changes an account or runs an automation.
Visibility is about the run as well as the definition
A personal automation's definition is visible only to its creator; its runs are still visible to repository readers. Those readers can see the prompt, logs, and resulting changes. Shared automation definitions are also visible to repository readers and editable by writers. A personal label therefore does not establish a private communication boundary. Do not put information in its prompt that repository readers must not see.
Tool access is another boundary. Native automation GitHub tools act within the scoped repository, but a selected MCP tool can reach whatever its server configuration and credentials allow. Once a cloud task is delegated, configured MCP calls can occur autonomously without fresh approval for every call. Review the resource reach and consequences before delegation. The default cloud GitHub server's read-only current-repository access and Playwright's localhost-only access are cloud defaults, not universal guarantees for every configured server or client.
Content exclusion is useful but not a universal privacy wall
Where supported, content exclusion prevents affected content from informing the relevant Copilot suggestions and responses and can prevent direct access through controlled tools. For Copilot Business and Enterprise users, the GitHub Copilot app respects exclusion policies configured at the enterprise, organization or repository level. Excluded files do not supply context in the app. Separately, the app may still generate code that exactly matches or closely resembles public code when the Suggestions matching public code policy is set to Block.
Content exclusion is not a filesystem security boundary or a substitute for operating-system permissions. Indirect information can still be supplied through an IDE, such as type information or project properties. Command/path checks may not detect every indirect access. Third-party MCP servers or clients are not guaranteed to respect the exclusion. The documented exclusions do not apply to symlinks or repositories on remote filesystems. These exceptions matter when someone claims that an agent can safely be given unrelated sensitive files merely because an exclusion pattern exists.
Establish support for the actual client and version before relying on an exclusion. Missing or unreadable support indicators do not establish either support or non-support. Use a genuine access control when a hard boundary is required.
Responsible AI requires evidence, oversight, and an effective correction path
Provider safeguards do not remove the customer's responsibility for how the output is used. Copilot can produce inaccurate, incomplete, biased, irrelevant, or misaligned results. A fluent explanation is not proof of an accurate conclusion. Check task-relevant evidence and requirements, and review generated summaries before publishing them. An AI-written PR summary or commit message supplements the contributor's understanding; it does not replace that understanding.
Use stronger oversight when an action is irreversible or affects someone's rights, access, or well-being. In sensitive or consequential domains, evaluate whether errors have a disproportionate effect on different groups. Ensure affected stakeholders can understand how the decision was made, appeal it, and update relevant input data. Overall average accuracy is not enough if a subgroup consistently receives worse treatment.
Illustrative distinction. Drafting a project-status summary can be checked against issue state, dates, and owners before publication. Using an AI summary to decide who receives an employment or educational opportunity is consequential. That second use requires scrutiny of relevant evidence and group effects, an understandable decision basis, a meaningful human review/appeal path, and correction of inaccurate input. Calling both tasks “summarization” does not make their risks equivalent. This is a governance example, not a claim that Copilot is an approved autonomous decision-maker for those settings. Applicable legal obligations and terms still need to be evaluated.
Oversight should be specific enough to change the outcome. “A human was involved” is weak if the person cannot see the evidence, challenge a mistake, stop a consequential action, or correct the underlying data. Choose a review point before the material effect, preserve the evidence needed for that review, and communicate remaining uncertainty honestly.
Configure a guardrail within its supported authority
The content-exclusion reference identifies organizations with Business or Enterprise plans as eligible. Repository administrators, organization owners and enterprise owners can configure exclusions within their documented scope. A repository administrator can exclude content for their repository, affecting any Copilot users in the enterprise who work within that repository. The organization's setting applies to users assigned a Copilot seat through that organization. Do not confuse the authority to configure this guardrail with permission to read or disclose every underlying file.
Where the relevant feature is supported, excluded content does not supply inline suggestions in the affected files or inform suggestions and responses elsewhere, and affected files are not reviewed in Copilot code review. Those are defined Copilot-tool effects. Indirect information, third-party systems and unsupported paths still need the access controls described above.
The supplied reference also states that the client sends the current repository URL to GitHub to request the appropriate exclusion policy, and that these URLs are not logged there. A policy request is a data transfer; that statement is not a blanket claim that no information ever leaves the device or that every tool has the same logging behavior. Evaluate the destination and actual tool configuration when deciding what data may be used.
Review automation trust, ownership, and changes
An automation can begin without a person initiating each task. Its trigger is therefore part of the trust boundary. By default, events from users without repository write access are ignored to reduce prompt-injection exposure. Opting in to those events changes the input population; review that decision rather than assuming every issue author is trusted. Event filters can narrow eligible issues or pull requests, and an API start can supply additional prompt context. Neither makes the supplied text authoritative instructions.
Automations inherit the scoped repository's cloud-agent custom instructions, skills, firewall rules, and Agents secrets and variables. The automation definition itself is stored outside the repository's contents: it is not committed to Git or reviewed and versioned through code pull requests. Reviewing a code diff therefore does not establish that the current automation definition, selected tools, or inherited configuration was reviewed.
Keep these review controls distinct:
- A shared automation acts as Copilot. If the repository requires at least one PR approval, PRs created by a shared automation require an additional approval by default. Administrators can disable this extra requirement through rulesets, but not through branch protection rules.
- A personal automation acts as its creator. That person cannot approve the automation's PR as though it were someone else's work; the normal prohibition on approving one's own PR remains.
- By default, GitHub Actions workflows on a cloud-agent PR wait for approval from a user with repository write access. A PR existing, or an automation suggesting a change, is not that approval.
The Suggest tools control proposes tools based on a prompt; the selected tools determine actual availability. Automations can also propose improvements to tools, triggers, and prompts. The user sees the proposed changes and chooses to apply or dismiss them. Only the authorized apply decision changes the configuration. Dismissal leaves the proposal unapplied, and a missing-tool complaint is not permission to expand access automatically.
Keep acting identity and billing separate from visibility
| Record or effect | Personal automation | Shared automation |
|---|---|---|
| Definition audience and editor | Creator only | Repository readers can view; repository writers can edit |
| Run audience | Repository readers | Repository readers |
| Identity used for GitHub actions | Creator's identity | Copilot's identity |
| AI-credit payer | Creator | Organization or personal account owning the repository |
A shared automation belongs to the repository and continues if its creator leaves or loses access. In an organization-owned repository, it can run only when the organization allows cloud-agent usage billed to the organization. A creator's entitlement alone does not establish that billing permission. GitHub Actions minutes are billed separately to the repository owner for both types.
The optional credit limits also control different events. Leaving a limit empty leaves that optional limit unset. A per-run limit has a minimum of 30 AI credits and stops the active run when reached. Daily, weekly, and monthly limits prevent new starts after the relevant limit is reached; they do not stop work already in progress. Their resets are respectively every day at 00:00 UTC, Monday at 00:00 UTC, and the first day of the month at 00:00 UTC. For example, reaching a daily limit while a run is active blocks subsequent starts until the daily reset, but does not itself cancel that active run. Do not confuse these Copilot automation periods with the separate gh-aw daily guardrail or an external admission authority's budget accounting.
For an illustrative daily-limit boundary check, assume the daily cap was reached before midnight and no other limit is blocking a new start. These are expected policy interpretations, not executed runs:
| New-start time in UTC | Expected daily-limit interpretation |
|---|---|
| November 16, 23:59 | Still blocked by the exhausted November 16 daily cap |
| November 17, 00:00 | The daily cap has reset; reassess the new period's available allowance |
| November 17, 00:01 | Use the November 17 daily allowance, subject to any consumption since reset |
| Time or timezone missing | Determine the actual UTC time before selecting a period; do not assume a reset |
Weekly, monthly, and per-run controls still need their own evaluation. None of these daily-boundary results cancels an already active run.
Separate execution, storage, syncing, and sharing
Local execution does not imply that all records stay on the device. Copilot CLI and the GitHub Copilot app store the full session record under ~/.copilot/session-state/ and a subset in a local SQLite session store used for history queries and /chronicle. IDE storage is specific to the IDE. A cloud session's execution environment is a further distinction: an Actions environment is destroyed when the session ends while its log remains on GitHub.com; a stopped cloud sandbox retains a snapshot for resumption.
Locally run CLI and app sessions sync to the user's GitHub account by default, subject to the user's sync setting. For Business and Enterprise users, the applicable Store local sessions in the Cloud policy must also be at least View from cloud. A disabled or unconfigured policy keeps those sessions local. The CLI/app remoteExport setting controls syncing; it does not establish permission to disclose the content to a new audience.
Synced data is tied to the personal account and is accessible only to its owner by default. Enabling syncing does not grant administrators access. Local sessions and cloud sandbox sessions are unshared by default, whereas Actions cloud sessions are shared with repository users by default. Sharing an individual local session gives eligible repository users view-only access; it does not add the session to the recipient's own queryable history. Finally, querying prior interactions or using /chronicle may send relevant prompts, context, and responses to an AI model. Check that data use independently of where the session originally ran.
When remote control is enabled for a session started from Copilot CLI, you can monitor and steer it while it continues to run on its original local machine. That machine must remain online. This differs from running the session in a cloud sandbox, syncing its record, or sharing it with another user.
Manage the correct session record
Sharing creates or exposes a record for an audience; archiving removes it from an active list while retaining its data. Deletion removes the relevant stored record. These actions are not interchangeable, and their controls depend on the surface and storage location. GitHub.com records have their own sharing, deletion, and archival controls; IDE behavior must be checked in the IDE's documentation. The supplied tables contain missing icon-only capability states, so those empty cells cannot establish that a particular button is supported or absent.
For a local CLI session already synced to GitHub, deletion prompts the user to decide whether to delete the synced copy as well. In the Copilot app, deleting a local session also deletes its synced copy immediately. An archive action retains the session instead of deleting it. Identify the actual client and intended local or synced record before making a retention decision.
For CLI sessions, /chronicle reindex rebuilds the session store from the files under ~/.copilot/session-state/ when files have been moved, restored from backup, or are missing from the index. It does not recreate absent source files or undo committed code, published messages, or other external effects. A restored index, an archived session, and a reversed business action require different evidence.
The supplied app reference also distinguishes Chats from task sessions: Chats opens a conversation without a dedicated branch or worktree and saves its history under the conversation name. In the app's Settings → Sessions → Manage sessions, users can view, search and filter sessions and chats, including archived chats; select multiple items to archive or delete; and restore previously archived chats. The view has separate sortable disk-space columns for working files and chat history. Archiving retains the history; restoring an archived chat is a different operation from rebuilding the CLI query index.
Worked example: a private definition is not a private run
This is an illustrative company policy. A leadership forecast may be read only by a named leadership group. A repository automation may summarize approved release issues for repository readers, but it may not read the unrelated forecast. The proposed setup is a personal Copilot automation with an MCP server whose credential can reach both the release issues and the forecast.
| Decision field | Actual scenario condition | Expected decision |
|---|---|---|
| Intended audience | Repository readers need a release-issue brief | Use only the approved repository evidence for that brief |
| Definition versus run | Personal definition is creator-only; prompts/logs/changes remain reader-visible | Do not put leadership-only forecast data in the run prompt or logs |
| Tool reach | MCP credential can reach the forecast | Narrow the configured credential/tool scope before delegation; a prompt saying ignore the forecast is not a hard boundary |
| Exclusion | A local exclusion pattern is proposed as the only protection | Check actual support and paths, and retain real access restrictions; third-party MCP behavior is not guaranteed by that pattern |
| Review points | Before delegation, a maintainer reviews permitted inputs, effective restricted tool/credential reach and the intended run audience; before sharing, the maintainer reviews the resulting evidence and destination | Hold delegation until the first review, then keep the output a draft until publication review; personal status supplies neither approval |
| Permitted output | A brief based on approved release issues | Exclude the forecast and identify any resulting limitation rather than guessing it |
An appropriate expected decision record is: “Proceed with a draft release-issue summary after the configured tools are limited to the approved sources. Leadership forecast data is outside this task's authorized input. The maintainer must review the evidence and intended repository-reader audience before sharing.” This is a proposed configuration and review decision, not a report that credentials were narrowed or publication occurred.
If a required data source is unavailable under those permissions, preserve that gap and route it to the authorized owner. Giving an agent a broader credential merely because it would improve the summary changes the risk and authority; it is not a neutral context adjustment. Likewise, selecting a more capable model changes neither the audience of logs nor the permission of an MCP server.
Make human review proportionate to the consequences
Data authorization and correctly configured tools do not make an output accurate, fair or suitable for its use. Review the explanation, affected people and actual artifact, not just whether a model completed a run. Use the same evidence standards for ordinary summaries and increase oversight when consequences demand it.
Begin with the actual use and its consequences
Responsible AI is an operating responsibility shared by the provider and the people deploying or using the system. A model's fluent answer, a provider safeguard and the presence of a human in a conversation are different observations. None alone establishes that a decision is accurate, fair, authorized or appropriate for its intended use.
The following practices apply the supplied responsible-use guidance. They are not approval for autonomous consequential decisions or a finding that a particular deployment meets its legal obligations. Product and domain-specific requirements still need to be evaluated for the actual scenario.
Provider safeguards do not remove the customer's responsibility for how the output is used. Copilot can produce inaccurate, incomplete, biased, irrelevant, or misaligned results. A fluent explanation is not proof of an accurate conclusion. Check task-relevant evidence and requirements, and review generated summaries before publishing them. An AI-written PR summary or commit message supplements the contributor's understanding; it does not replace that understanding.
Use stronger oversight when an action is irreversible or affects someone's rights, access, or well-being. In sensitive or consequential domains, evaluate whether errors have a disproportionate effect on different groups. Ensure affected stakeholders can understand how the decision was made, appeal it, and update relevant input data. Overall average accuracy is not enough if a subgroup consistently receives worse treatment.
Illustrative distinction. Drafting a project-status summary can be checked against issue state, dates, and owners before publication. Using an AI summary to decide who receives an employment or educational opportunity is consequential. That second use requires scrutiny of relevant evidence and group effects, an understandable decision basis, a meaningful human review/appeal path, and correction of inaccurate input. Calling both tasks “summarization” does not make their risks equivalent. This is a governance example, not a claim that Copilot is an approved autonomous decision-maker for those settings. Applicable legal obligations and terms still need to be evaluated.
Oversight should be specific enough to change the outcome. “A human was involved” is weak if the person cannot see the evidence, challenge a mistake, stop a consequential action, or correct the underlying data. Choose a review point before the material effect, preserve the evidence needed for that review, and communicate remaining uncertainty honestly.
Make oversight capable of changing the result
Start by identifying the proposed effect. Is the agent drafting a status explanation, publishing a statement, changing access, or contributing to a decision affecting a person's opportunities or well-being? An activity's label does not determine its consequence. Two tasks called summarization can require very different controls.
For consequential use, the supplied guidance calls for scrutiny of disproportionate effects on groups and for affected stakeholders to understand the decision, appeal it and update relevant input. A good average result can hide consistently worse treatment of a subgroup. Evaluate the evidence and relevant group effects rather than using confidence or a polished rationale as the acceptance test.
Place the meaningful human review before the material effect. The reviewer needs the evidence, an understandable account of what is known and uncertain, and authority to challenge or stop an action. An observer who cannot correct input or prevent an irreversible step is not an effective approval gate. Keep a path to amend inaccurate information and reassess the decision when its basis changes.
Evaluate applicable legal and regulatory obligations, product terms and codes of conduct for the actual use. The source explicitly warns that a platform may be inappropriate for some industries or scenarios and cannot be used in prohibited ways. Do not infer authorization from the fact that a model can generate an answer or a tool can execute an action. Missing authority remains a gap for the appropriate owner to resolve.
Use the six principles as a review framework
The supplied GitHub application card names Microsoft's six responsible AI principles. Apply them to the whole system: the technology, the people using or affected by it, and the environment in which it operates.
Consequential uses can affect access to education, employment, finance, government benefits, healthcare, housing, insurance, or legal services, or cause physical, psychological, or financial harm. Undetected incorrect or incomplete output can also reduce productivity and trust. Identify the actual people, evidence, and possible effects before choosing a control; these are alternative risk routes, not conditions that must all occur together.
| Principle | Practical question for this review |
|---|---|
| Fairness | Could errors or incomplete evidence disadvantage particular groups? |
| Reliability and safety | Does the output meet the actual requirements, including failure and boundary cases, without unacceptable harm? |
| Privacy and security | Are the inputs, model/provider data flows, generated code, and permitted actions appropriate for the information involved? |
| Inclusiveness | Have the needs and limitations of the people using or affected by the system been considered? |
| Transparency | Can relevant people understand the capability, intended use, evidence, uncertainty, and limits? |
| Accountability | Is someone responsible for review, intervention, correction, and the eventual decision? |
These are review questions applying the named framework, not a certification checklist supplied by the product. Application cards describe AI applications; platform cards describe AI platform services. Both communicate capabilities, intended uses, and limitations so application owners and affected stakeholders can understand the system. Publication of a card does not verify a particular response or approve a particular deployment.
Distinguish generated explanations from verified evidence
Copilot Chat is intended for coding-related questions, including syntax, programming concepts, debugging, tests, and code explanations. The supplied card identifies English as the primary supported language; quality may differ in other languages. It is not designed to answer general noncoding questions. The consequential-use examples below illustrate how to evaluate risk and authority; they do not expand Copilot Chat into an approved eligibility or professional decision service.
The system combines the user's prompt with available context, such as open files, repository information, and conversation history, and sends that input to a language model. The model generates code, suggestions, or explanations, which the client formats and may accompany with source links. The model's training on public text and code influences its coverage; that training is not current evidence about the user's repository or the truth of a specific claim. A hallucination can sound plausible while being unsupported, false, or fabricated. Syntax highlighting, a confident rationale, or a citation does not remove the need to inspect the underlying evidence.
Capabilities also differ by task and client. Conversational follow-ups refine an answer; supported IDE agent mode can plan, edit files, call tools, and iterate. Copilot in the Cloud combines repository questions and agentic work, while curated Spaces supply selected context. Code explanations, generated unit tests, suggested fixes, issue plans, and release or discussion summaries are reviewable outputs. Tests can omit scenarios, explanations can be incomplete, and a proposed fix may not resolve the defect. Generated text alone does not demonstrate a tool call, a successful test, or a completed repository change.
Check the actual context and external data route
The application card describes different context sources for GitHub.com, supported IDEs, Mobile, Windows Terminal, and Spaces. IDE context can include open files and repository identity; VS Code and Visual Studio can additionally use an optional .github/copilot-instructions.md, which users can disable. In Windows Terminal, context includes the active shell and chat history. The source-dated Mobile description distinguishes Enterprise access to private indexed repository data and enabled search from Pro conversations about popular public repositories; it is not a universal entitlement for every account or client.
Spaces can include repositories, files, issues, PRs, notes, images, and uploads, and can be accessed from an IDE through the remote GitHub MCP server. Only a portion of a space's content is processed for any response. A file being present therefore does not prove its contents were considered. Select relevant sources, keep them current, pair instructions with those sources, and start the conversation in the intended space. Review whether the answer reflects the actual task; curated context can still be misunderstood.
On GitHub.com and through the GitHub chat participant in supported IDEs, optional Bing search depends on administrator enablement. When used, the prompt and additional context help form a query sent to Bing under Microsoft's Privacy Statement. Check both the supported surface and the enabled policy, then consider the transmitted information. Search availability does not itself authorize disclosure, and a search result is evidence to inspect rather than a verified conclusion.
Review concrete code, command, and matching risks
Training coverage varies across languages and frameworks. Complex structures, obscure or recently developed languages, and preferences inherited from existing code can lead to incomplete suggestions or biased coding styles. Apparently valid code can still be syntactically wrong, semantically wrong, or inconsistent with the developer's intent. Review the actual implementation and run appropriate tests, including relevant error, edge, and boundary cases. Generating a test suite is not evidence that the suite ran or covers every important scenario.
Secure coding review includes checking for exposed information, hardcoded passwords or secrets, SQL-injection risks, and other vulnerabilities. Treat generated code with the same testing, IP scanning, and security scrutiny as material not independently originated by the developer. These duties remain regardless of public-code matching settings. A license reference can inform review; it does not itself establish permission, license compliance, or safety.
The supplied card describes content filtering as conditional on enablement. Public-code matching is a separate mechanism whose behavior depends on the client and setting. In VS Code, enabled matching suggestions can display links to matched code and license details. The card describes blocking filters for Visual Studio, JetBrains, Eclipse, and GitHub Mobile. Do not extend one client's behavior to every client or treat a filter as perfect detection of all harmful or restricted material.
In the documented Windows Terminal experience, Copilot suggests or explains commands. A user deliberately selects a suggestion to insert it into the command line and then runs it manually. A suggested deletion or disk-formatting command can be destructive even when safeguards exist. Inspect the command, target, and intended effect before insertion and execution. A displayed suggestion or explanation is not a record that it ran, and the user remains responsible for the action chosen.
Check completeness and freshness of generated descriptions
The source describes PR summaries on GitHub.com as requested prose overviews with linked key-change bullets, and commit-message generation on GitHub.com and GitHub Desktop as suggested titles and descriptions. Those summary/message functions are English-only in the supplied card. Desktop can use selected files or lines, so a useful generated message need not describe unselected changes.
For GitHub.com PR summaries, a file with more than 400 combined added and deleted lines is excluded from summarization. This counts changed lines in each file, not the total number of files or the length of the generated text. A summary is generated only on request and does not refresh automatically after new commits. Commit messages likewise do not refresh automatically when changes are added. Regenerate when needed and review again: regeneration carries the same inaccuracy risks. Intricate changes, short diff windows, and new languages can also make commit messages unreliable. Harmful or offensive terms in PR or commit content may be repeated in the generated text.
| Illustrative input and condition | Expected review result |
|---|---|
| One PR file has 250 added and 151 deleted lines | Its 401 combined changed lines exceed the exclusion threshold; do not claim the generated summary covers that file |
| One PR file has 250 added and 150 deleted lines | Its 400 combined changed lines are not excluded by this numerical rule alone; inclusion still does not establish accuracy |
| A summary was generated, then the diff changed, with no new generation | Treat the old text as potentially stale; inspect the new diff and generate and review a replacement as needed |
| A newly generated message repeats an offensive term from the input | Review and edit the actual wording; a fresh output is not automatically appropriate to publish |
| The per-file diff or changed-line count is unavailable or malformed | Coverage is unverified; obtain the actual diff instead of assuming a zero or below-threshold count |
These are expected static interpretations of the supplied rules, not results of running Copilot. No runtime test, publication, or commit is asserted.
Understand what provider evaluations can establish
The card describes GitHub's evaluation process rather than reporting a benchmark performed in this lesson. Quality evaluations use public open-source tasks and synthetic scenarios, including industry benchmarks and internal suites; the described benchmark data excludes real user queries and customer code. Multiple independent runs account for nondeterministic outputs. Metrics include task resolution rate, token efficiency, latency, and tool-call reliability. The description also includes re-evaluation after model updates and production monitoring of errors, latency, and aggregate usage.
Surface-specific teams compare representative tasks with established baselines and existing models. In the described process, models must meet or exceed baseline performance across key metrics, including task resolution rate, token efficiency, and latency, before advancing to the next stage. A cross-functional board makes a go/no-go decision before user-facing deployment. Safety evaluation examines risks such as hate and unfairness, sexual content, violence, self-harm, protected material, jailbreaks, and code vulnerabilities. The source describes adversarial prompts, quality rubrics, AI-assisted annotation, diverse public and synthetic datasets, iterative refinement, human alignment, and red teaming to provoke and address unwanted behavior.
This combination supplies evidence about assessed performance and risks under the described evaluation conditions. It does not guarantee a safe or correct response for a new task. No resolution rate, group-fairness rate, token saving, latency improvement, or independent safety certification has been measured here. Evaluate the actual output and context even when the provider reports rigorous evaluation.
Act on review findings and use the right feedback route
Use Copilot as a tool supporting human programming and review. Keep coding prompts within the intended task, inspect all generated code, and test the actual requirements and security concerns. A proposed test plan remains a plan until it is executed and the results are assessed. If output conflicts with evidence, correct or reject it rather than retaining it because it came from a model.
The supplied feedback routes differ: chat responses have thumbs-up/down controls; PR-summary feedback availability depends on enterprise settings; GitHub Desktop commit-message feedback can use the community discussion or an issue in its repository. Reporting feedback is neither a completed fix nor an authorization to publish. The product, risks, and guidance evolve, so verify the actual version and applicable practices when deploying these controls; this source snapshot is not live verification of every account.
Worked example: a routine status draft
This is an illustrative input set and expected output, not a retrieved project or an executed Copilot response. A team's policy permits drafting an internal status note but requires a maintainer to approve publication. The supplied records are:
- Issue 42 lists Maya as the owner and records a failing test. No root cause is established.
- Issue 43 lists Omar as the owner and records that the documentation was accepted.
- No issue dates are supplied.
- No release-approval record is supplied.
A suitable expected draft is: “Issue 42 records a failing test, with Maya listed as owner; the cause has not been established. Issue 43 records accepted documentation, with Omar listed as owner. The supplied records do not establish release approval. No issue dates were supplied, so timing is unverified; obtain and check those dates before publication. Maintainer review is required before this note is published.”
| Requirement | Evidence in the input | Expected interpretation |
|---|---|---|
| Report confirmed status | Failing test on issue 42; accepted documentation on issue 43 | Preserve each distinct state rather than call the entire release ready |
| Preserve ownership without inventing blame | Named owners are recorded; no cause is established | Identify responsibility for the work without attributing the failure's cause to a person |
| Preserve missing approval | No approval record supplied | State approval is not established |
| Check dates without inventing timing | No issue dates supplied | Dates are Unknown; obtain and check them before publication rather than assert schedule compliance |
| Keep the authorized action boundary | Drafting is allowed; publication requires review | Produce a draft and hold publication for the maintainer |
The output can be checked against the actual issue states, dates, ownership and approval evidence. A generated summary that says “all release work is complete and approved” would fail those criteria, even if its tone is confident and its formatting is excellent.
Worked example: an opportunity-affecting summary
Now assume an illustrative educational-opportunity process in which a human decision owner must evaluate the evidence and applicants can correct inaccurate records and appeal. A proposed AI summary omits a recently corrected record and recommends an adverse outcome. The two applicant groups represented in the input also have different evidence completeness. These are scenario assumptions, not product defaults or a recommendation to use Copilot to decide eligibility.
The expected decision record is: “Hold the consequential decision. The summary omits a corrected record, and the input does not support treating evidence completeness as equivalent across the represented groups. The authorized decision owner must review the corrected evidence and group effects, explain the decision basis, and preserve the stated correction and appeal route. The AI recommendation is unaccepted and has not been executed.”
That record changes the route before the material effect. It does not invent a final entitlement, assume an overall accuracy figure resolves group differences, or treat a human's presence as sufficient review. Correcting the input must be followed by reassessment; the earlier recommendation cannot remain accepted simply because the record was edited.
Review generated descriptions before publication
The supplied product reference requires review of generated PR summaries before saving or publishing them on GitHub.com. A PR summary supplements the contributor's understanding of the changes; it does not replace inspection of the actual diff and evidence. A summary saying tests passed is not a test result.
For generated commit messages on the documented GitHub.com and GitHub Desktop surfaces, review and edit the suggested title and description before committing. The reference notes that selecting the relevant files or lines in GitHub Desktop can improve accuracy, and that commit-message generation can be disabled through Copilot settings on GitHub.com. Those controls do not make every suggested description correct. Verify what actually changed and retain material limitations before the description becomes part of the durable record.
Keep integration controls independent of the assistant
A reviewed explanation or permitted tool call is still different from a permitted merge. Carry the task through a reviewable branch and inspect the current repository rules, review state, checks and destination before integration. These controls apply even when earlier planning and model choices were sound.
Use branches to isolate reviewable work
GitHub flow is a lightweight, branch-based collaboration workflow. It applies to documentation, policies and roadmaps as well as application code. A branch provides a place to propose changes without immediately changing the default branch. The pull request provides the discussion and review record for bringing that work back.
You need a GitHub account and a repository to follow GitHub flow. Its steps can be completed through the GitHub web interface, the command line with Git/GitHub CLI, or GitHub Desktop. The client is a way to perform the workflow; it does not replace repository permissions or merge requirements.
Begin with a short descriptive work branch, such as clarify-support-policy. Make focused changes and commit them with messages that explain their purpose. Push the branch so collaborators can inspect the work, then open a pull request describing the problem, proposed change and relevant evidence. A draft pull request can request early feedback before the work is ready for final review.
If the change addresses an issue, link that issue in the pull request so stakeholders can follow the related work. Use the description and, where helpful, images, links, tables or comments on specific diff lines to show reviewers what needs attention. A repository may automatically request review from specified people or teams. You can also manually @mention or request a review from the relevant people or teams. A review request asks for evaluation; it is not an approving review.
Keep unrelated changes on separate branches. Also prefer isolated, complete commits where that makes independent reversal useful. Mixing a wording correction with an unrelated access change makes the reviewer assess two risks at once. It can also prevent one change from proceeding while the other waits or make a later revert unnecessarily broad.
Respond to review comments and push corrections to the same head branch; the pull request updates with those commits. Resolve conflicts and satisfy the actual merge requirements before merging. After merge, deleting the completed work branch helps prevent accidental reuse. That deletion does not delete the pull request discussion or commit history, and the documented flow supports restoring a deleted branch when needed. Restoring the branch recovers a branch for further work; reverting the merged pull request is a separate option for undoing its changes. Cleanup itself neither reverts the merge nor erases its review record.
Match protections to the risk
A branch strategy describes how work moves. A branch policy determines what may reach a protected branch. Opening a pull request does not prove that any particular review, check or deployment was required or completed.
For a routine documentation correction, a short-lived branch and focused review may provide sufficient traceability under the team's policy. A sensitive policy change or production-affecting change may require designated reviewers, checks, resolved conversations or a successful staging deployment. Those are illustrative risk choices, not one universal set of protections imposed by GitHub flow.
In the supplied protected-branch reference, public repositories support protected branches with GitHub Free and GitHub Free for organizations. The listed GitHub Pro, Team, Enterprise Cloud and Enterprise Server plans also support protection for private repositories. Establish the actual repository visibility and plan before assuming identical availability.
The following product conditions describe the supplied reference snapshots, rather than a verification of every account's current configuration. Rules can target one specific branch, all branches, or names matched with fnmatch syntax. For example, *release* matches branch names containing “release.” Identify the intended destination and actual pattern before assessing its protection.
Inspect the effective protection on the intended destination branch. Only one matching branch protection rule applies at a time. Several matching patterns therefore do not mean their requirements are added together. Rulesets do not have that same single-rule limitation and can layer requirements. A diagnosis must identify the control that actually applies. Auto-merge can merge a pull request automatically once all merge requirements are met; enabling it does not waive an unmet requirement.
Keep review freshness separate from approval count
Repository administrators and custom roles with the “edit repository rules” permission can configure required approving reviews. The required number must come from reviewers with repository write permission; a configured code-owner requirement also needs approval from the designated owner for affected code. Required reviews mean changes reach the protected branch through an appropriately approved pull request. An assignee identifies responsibility for work; assignment does not satisfy an approving review or grant merge authority.
A blocking review has its own resolution path. If an administrator requests changes, that administrator must subsequently approve before merge. If the reviewer who requested changes is unavailable, a person with write permission can dismiss that blocking review, subject to any configured restriction limiting dismissal to particular people or teams.
Also inspect other open pull requests whose head branches point to the same commit. Pending or rejected reviews on those pull requests can block this merge even after its own required reviewers approve. A writer must first approve or dismiss the blocking review on the other pull request. An approval count on the current pull request alone is insufficient evidence.
Later commits can make an earlier approval insufficient. Two optional controls address this differently:
| Control | Effect described in the reference |
|---|---|
| Dismiss stale approvals | A change to the reviewed diff invalidates the approval and requires approval again |
| Require approval of the most recent reviewable push | Another authorized person must approve the latest push; earlier reviews need not all be discarded |
The second control specifically prevents the latest pusher from being the only person approving that new content. The first can be the stronger choice when the concern is new, unreviewed material added to an already approved pull request. Inspect the configured state after updates rather than assuming that an earlier approval covers every later commit. The merge base is the last common ancestor of the work and base branches. With either freshness setting, a merge-base update that introduces new changes can dismiss approvals as stale and require approval again. When either setting is selected, manually constructing a merge commit and pushing it directly fails unless the merge contents exactly match the merge GitHub generates for that pull request. These are conditional controls, not a claim that every update always invalidates approval.
Diagnose checks and other merge conditions independently
A failed required check can block a pull request even when the required people approved it. The reference accepts successful, skipped or neutral states for required checks; inspect the actual requirement and result. A configured expected GitHub App can also matter: a similarly named status from another producer need not satisfy the check. When a required check is configured to accept any source, manually verify the status author listed in the pull request's merge box. Use unique job names across workflows to avoid ambiguous required-status results.
Strict required checks require the branch to be up to date with its base. This is the documented default for required status checks and can require more builds when the base changes. Loose checks do not require that update, reducing rebuilds but allowing a risk that the separately tested changes are incompatible with the newer base. Disabling required checks removes that merge restriction; it does not establish that the change is correct.
Other optional controls address different evidence. When conversation resolution is enabled, all comments on the pull request must be resolved before merge. An acknowledgment without the resolved state does not satisfy that gate. Conversation resolution, commit verification, history, CI and deployment each require their own evidence.
Verify signing and history separately
Required commit signing permits contributors and bots to push commits that are signed and verified. In the documented vigilant-mode exception, commits identified as Partially verified are permitted on branches requiring signed commits. Do not treat that specific exception as permission for any unsigned commit.
GitHub evaluates commits introduced by its test merge, including the head branch's commits. Unsigned head-branch commits can therefore block a squash merge even if GitHub would sign the final squash commit; this can also affect the pull request's author. The documented repair is to rewrite and sign the unsigned head commits, or have someone with actual permission to bypass the applicable protections merge the pull request. Rewriting an unsigned pushed commit can involve rebasing with a verified signature and force pushing the rewrite, which still requires the necessary force-push permission and compliance with remaining controls.
A local squash-and-merge must have its resulting commit signed before it is pushed. If another rule requires changes through a pull request, a direct push of that local result may additionally need bypass permission. A valid signature does not satisfy an independent pull-request requirement.
Linear history excludes merge commits and requires a compatible squash or rebase merge method. The repository must allow squash merging or rebase merging before this protection can be required. Use a method that preserves that history even when force push is otherwise permitted.
Validate queued integration and deployment
On a busy branch, a merge queue avoids requiring each author to update their branch and wait for its checks before trying to merge. First the pull request passes required branch-protection checks. A user with repository write access can then enqueue it. The queue tests the change against the latest target branch together with earlier queued pull requests, using GitHub Actions or the configured CI provider. Only after the required CI checks pass does GitHub merge it using the strategy configured in branch protection. An earlier green check on the branch alone is not proof that this combined state passes.
A required deployment instead requires a successful deployment to the specified environment before merge, such as staging. For stacked pull requests, deploying one pull request also satisfies the deployment requirement of pull requests below it while the stack has linear history. That exception does not give unrelated or nonlinear work credit for an arbitrary deployment.
Understand bypass, force push and deletion
Branch protection normally blocks force pushes and deletion on matching branches. By default, its restrictions do not apply to repository administrators or custom roles with bypass permission. A policy intended to bind these actors needs the corresponding enforcement setting, Do not allow bypassing the above settings. Adding actors to bypass lists is available only when the repository belongs to an organization. An administrator's successful merge alone does not prove that the ordinary review requirements were met.
When force pushes are enabled, the rule can allow everyone with at least repository write permission, including administrators, or only specific people or teams. Confirm which option and actors were selected; ordinary write access is not blanket force-push permission while the default block remains.
Enabling force pushes does not override other protections. For example, a linear-history requirement still rejects merge commits. A force push can remove commits on which collaborators based work, disrupt pull requests or point a branch at unreviewed content. It therefore has different consequences from a normal corrective commit. When deletion is explicitly enabled, anyone with at least repository write permission can delete the protected branch. Permission to delete still does not permit deletion of a locked branch.
Distinguish a lock from a push allowlist
A locked branch is read-only: it accepts no ordinary commits and cannot be deleted. In this lock context, syncing a fork from its upstream repository is disabled by default. Allow fork syncing permits pulling upstream changes while preventing other contributions to that fork branch. The exception is specific to upstream synchronization; it does not generally reopen writes.
The separate Restrict who can push to matching branches control is supported for public repositories owned by GitHub Free organizations and all repositories owned by organizations using GitHub Team or GitHub Enterprise Cloud. This is a narrower availability condition than protected branches generally.
When that restriction is enabled, only permitted users, teams or apps can push. A user, team or installed GitHub App must have repository write access to receive push permission or permission to create a matching branch. Optionally apply the same restriction to creating branches matching the pattern; a push restriction does not silently establish that optional creation restriction. For example, restricting both push and creation for *release* to a release team also restricts who can create those matching branches.
People and apps with repository admin permission retain push and matching-branch creation eligibility under this actor restriction. That eligibility is distinct from bypassing other rules. Permitted push actors still need a pull request when one is required, and failed required checks still block them. Inspect the effective no-bypass setting independently.
Apply the policy to Copilot work
For Copilot work, identify the selected repository and branch and the actual execution environment before recommending a strategy. The supplied GitHub.com/Mobile reference describes a newer cloud experience available from October 28, 2026 to paid-plan users, subject to organization and enterprise policies; Free users retain the older chat experience. Plan and policy are independent of a repository owner or administrator disabling Copilot for that repository. Organization SSO requirements apply when viewing organization data or sessions. Without repository write access the session is read-only.
Copilot works against the repository and branch supplied for the changes. Review its proposed changes and request refinements before creating a pull request, or explicitly request a pull request in the prompt. Copilot code review evaluates changes and suggests fixes; a generated pull-request summary merely describes changes and is separate from that review. Neither establishes human approval or merge authority.
In both GitHub Actions-based and cloud sandbox sessions, Copilot works on one branch at a time and can open one pull request per task. Actions-based work can change only the single repository selected when the task starts; cloud sandbox sessions can span repositories in one organization. The maximum unextendable 59-minute execution duration applies to Actions-based sessions. It must not be generalized into a limit for every environment. These documented flows support repositories hosted on GitHub, not repositories hosted on other platforms.
A ruleset or branch protection rule can prevent Copilot from creating or updating a pull request. A repository administrator can deliberately configure a ruleset bypass for Copilot; a task request itself does not grant that bypass. Reassess the resulting effective controls before relying on a proposed change. Agent Merge's Watch and fix addresses selected failed GitHub Actions workflows, merge conflicts, or both. Fixing those selected blockers is distinct from satisfying review, signing, deployment and other merge requirements. Review and test generated changes before production use.
Worked recommendation and diagnosis
Consider an illustrative team policy: documentation changes need a focused pull request and one approving review; changes affecting access policy additionally need the designated policy reviewer, the required policy-validation check and resolved review conversations. These are teaching assumptions, not GitHub defaults.
| Proposed work | Expected recommendation | Evidence needed before merge |
|---|---|---|
| Correct one help-page sentence | Use a short descriptive branch containing only the correction | Relevant diff and the configured approving review |
| Change who can access a service | Use a separate focused branch with the access rationale | Policy-review approval, required check result and resolved conversations |
| Combine both without explanation | Separate the unrelated work | Each change can then be judged against its own requirements |
Suppose the access pull request has the designated approval, but policy-validation fails. The expected readiness decision is “blocked by the required check.” Assigning a release owner or moving a project card to Accepted does not change that result. Identify the actual failure, fix or legitimately resolve it, and inspect the new result. If the required result cannot be identified, check job-name uniqueness and the configured status producer. Removing the protection merely to enable merge does not demonstrate compliance.
If another commit changes the reviewed access policy, reassess freshness under the configured setting. The example produces a recommendation and expected diagnosis only; it does not create branches, change protections, run checks or merge anything.
Work one integrated governance decision
The following is a complete fictional teaching case. Its settings and evidence are supplied inputs, not observations from an account, repository or running assistant. The requested deliverable is a draft investigation and change plan. No credential, budget, issue, branch rule or publication is changed by producing the expected record.
Inputs
- The intended repository is a private billing-service repository; the proposed change would target its default branch, main, through a separate descriptive work branch.
- A maintainer authorizes reading an approved milestone report and drafting a plan in the private review location. The maintainer has not authorized publication, credential expansion or merging.
- The report records a completed calculation fix but lists a dependency without a readable underlying issue. The issue's owner and resolution are not established by the supplied report.
- The proposed user has an individual ULB of $5 USD, already exhausted. Broader cost-center and universal per-user defaults are $20 and $10; the department's metered budget still has room. These are illustrative settings, not vendor defaults.
- The contemplated execution environment is a cloud sandbox. REPORT_MODE was entered as an ordinary Agents variable. A separately configured COPILOT_MCP_REPORT_TOKEN secret is intended only for the MCP server that references it; its value is not an input to the model.
- A proposed external server exposes both document reads and unrelated administrative writes. No evidence authorizes those writes or access to a different repository.
- Someone proposes putting the resulting briefing on a public page. The permitted input includes private information, and no destination approval exists.
- For any later code integration, the repository requires the applicable approving review and checks. The supplied hypothetical check record shows a failed billing test; assignment to a maintainer is the only ownership signal currently given.
Expected reasoning and bounded next actions
| Question | Source-based interpretation of these inputs | Expected next action and remaining gate |
|---|---|---|
| Can the broader ULB or departmental spending room supplement the individual cap? | No. The individual ULB wins by specificity and is exhausted | Request an authorized decision on that effective control; do not claim a larger departmental paid budget fixes it |
| Does an exhausted credit control remove the seat or every noncredit feature? | No. The documented credit-feature block and seat/noncredit behavior are different | Record the actual feature being requested; do not describe seat removal as the budget outcome |
| Why might REPORT_MODE be absent in the sandbox? | The documented sandbox supplies Agents secrets, not ordinary Agents variables | Diagnose the configuration type/environment and ask the authorized owner for the appropriate supported configuration; do not print secrets |
| May an ordinary script consume the MCP-prefixed credential? | Its prefix reserves it for the configured MCP consumer | Keep the reference in the intended server configuration and inspect actual resource scope |
| Should all proposed server tools be enabled? | The task needs bounded evidence reads; unrelated administrative writes are neither needed nor authorized | Propose the smallest actual read capability and confirm accessible evidence before drawing a business conclusion |
| Can the unread dependency be called resolved? | No. The report does not establish the missing issue's state or owner | Preserve the gap and request an authorized accessible source or owner response |
| May the private briefing be published? | No destination approval or data-disclosure authority has been supplied | Keep a draft in the approved private review location |
| Is the later change merge-ready because a maintainer is assigned? | No. Assignment is not an approving review, and the supplied check is failed | Keep integration blocked pending the actual required review and successful acceptable check state |
The expected plan is deliberately narrower than “fix and publish.” It separates the cost blocker, a configuration diagnosis, a missing source, excessive proposed tool reach and a failed integration condition. Changing the model would not remove any of those facts.
Complete expected draft decision record
| Field | Expected value for this teaching case |
|---|---|
| Task | Prepare an evidence-based investigation/change plan; do not publish or merge |
| Intended repository/destination | Private billing-service repository and its approved private review location |
| Confirmed supplied evidence | The milestone report records the calculation fix; the dependency remains unsupported by an accessible underlying issue |
| Unresolved business facts | Dependency resolution and owner; actual required approval; later successful validation |
| Consumption gate | Exhausted individual $5 ULB; broader $20/$10 defaults do not add or override it |
| Environment/configuration finding | Cloud sandbox does not expose the ordinary Agents variable; MCP-prefixed secret remains scoped to its configured consumer |
| Proposed capability | Authorized, minimal document read with actual accessible source identity; no unrelated administration |
| Prohibited/unapproved actions | Public disclosure, credential expansion, budget modification and merge |
| Expected artifact | A private draft stating confirmed work, unsupported dependency, narrow configuration questions and the maintainer decisions needed |
| Review and action state | Draft only; missing evidence and authorization unresolved; no account/configuration/write/test action performed |
A suitable expected draft conclusion is: “The supplied report records the calculation fix. Dependency resolution and ownership are not established by accessible evidence. Before delegation, an authorized owner must resolve the effective consumption gate and the supported sandbox configuration. Limit any proposed connection to the permitted evidence read. Keep the briefing private and the code change unmerged until the required source, destination approval, reviewing authority and validation evidence exist.”
If later evidence changes, update the affected claim and recheck the same acceptance criteria. An authorized ULB increase would address that consumption gate only. It would not authorize public disclosure, establish a missing issue's facts, expand an MCP credential or satisfy a failed branch check.
Summary
GitHub management combines several independently evidenced decisions. Begin with the intended task, host, identity, evidence and acceptable output. Choose reusable prompts, instructions, skills or agents for their actual purpose, while enforcing action boundaries through real permissions, credential scope and repository controls.
Interpret budgets using the right consumption/spending ledger, period, payer, precedence and stop behavior. Improve token efficiency without dropping the evidence or acceptance conditions. Evaluate models and explanations on the same task, preserve the dated limits of catalogs and offers, and keep provider routing distinct from guaranteed safety.
Before delegation, inspect the real data path, session visibility and MCP reach. Apply Responsible AI principles through effective, accountable review and preserve missing or contradictory facts. Finally, a branch is integrated only when its actual current reviews, checks and other configured protections permit it. Neither instructions, an agent's claim nor a teaching example substitutes for that evidence.
