Security and enterprise docs overstate policy enforcement for Copilot harness sessions (ChatAgentMode, ChatMCP, network filter, tool approval)
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 18/100
- Tipo di issue
- Documentazione
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- markdown, typescript
- Ambito
- documentation, security
Direzione di ricerca
Start with the "Enterprise policies" section of docs/agents/run/security.md (around lines 213-218) and the policy notes in docs/enterprise/manage-ai-settings.md (around lines 175, 228, 298, 302, 332), then compare them with the partial-support entries in agentHostPolicySupport.ts. Done means the absolute wording is qualified per harness, and each affected policy has a note like the existing ChatHooks one. Linked PR #10491 is already open against this issue, so check it before starting.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
The security and enterprise docs present several VS Code device policies as complete controls. Copilot harness (Agent Host) sessions enforce these policies only partially. Two VS Code sources say so: its own policy coverage inventory, agentHostPolicySupport.ts, at 1.142.0, and open microsoft/vscode issues. The docs don't mention these gaps, so an admin who follows them can believe a control is in place when Copilot harness sessions bypass it.
The published pages (security, manage AI settings) and vnext contain the same text.
Docs claim vs. Copilot harness behavior in 1.142
| Docs say | Copilot harness status in agentHostPolicySupport.ts |
Tracking |
|---|---|---|
security.md#L213: "Prevent the use of agent mode entirely with the ChatAgentMode policy." See also manage-ai-settings.md#L175-L177. |
partial: "Blocks the Agents window. In the editor it only switches the chat mode; Agent Host session targets remain available." |
"Not yet tracked" (source comment) |
security.md#L215: "…or disable MCP support completely (off) with the ChatMCP policy." |
partial: "independent runtime discovery does not consult VS Code MCP access." |
microsoft/vscode#328241 (open since July) |
security.md#L217 and manage-ai-settings.md#L298: ChatToolsEligibleForAutoApproval forces manual approval for individual tools. |
partial: "does not force per-tool confirmation in other approval modes." |
microsoft/vscode#337540: "assisted approval and saved session approvals can still auto-approve them" |
security.md#L218 and manage-ai-settings.md#L302: ChatToolsTerminalEnableAutoApprove set to false requires approval for terminal commands. |
partial: custom terminal tools' approval paths "still need a parity audit." |
None found |
| manage-ai-settings.md#L332-L336: "Network filtering applies to the fetch tool and Integrated Browser." | partial for ChatAgentNetworkFilter, ChatAgentAllowedNetworkDomains, and ChatAgentDeniedNetworkDomains: "native SDK sandboxing ignores them, and the permissions bridge does not translate allowlists." |
microsoft/vscode#337539: "the runtime's web_fetch bypasses it: unlisted domains prompt, and under Allow All they are fetched silently." Also microsoft/vscode#337538 |
Why this matters
- The same file describes the Copilot harness as "the candidate default replacement for Local". It is already a Session Target that users can pick in the editor. VS Code also moves Local sessions to it automatically when managed sandbox or permission settings apply (manage-ai-settings.md#L94-L97).
- Network allowlist: An organization might set
ChatAgentNetworkFilter: truewithChatAgentAllowedNetworkDomains: ["github.com"]to prevent data exfiltration. In a Copilot harness session with Allow all,web_fetchto an unlisted domain succeeds without a prompt (microsoft/vscode#337539). - Agents off: An organization might set
ChatAgentModetofalseto turn off agents. The policy blocks the Agents window (OPEN_AGENTS_WINDOW_PRECONDITION). But the editor's Session Target picker (sessionTargetPickerActionItem.ts) and its availability check (sessionTypeAvailability.ts) don't checkchat.agent.enabled. Agent Host sessions remain available there. - The docs already handle a similar gap well for hooks. manage-ai-settings.md#L228 says
ChatHooks"does not apply to Copilot harness sessions". The policies above don't have an equivalent note.
Suggested fix
- In the "Enterprise policies" section of
security.md, drop the absolute wording ("entirely", "completely", "Force") or qualify it per harness. - In
manage-ai-settings.md, add harness notes like the existingChatHooksnote forChatAgentMode,ChatToolsEligibleForAutoApproval,ChatToolsTerminalEnableAutoApprove, and network filtering. Where the source names a Copilot managed setting for Agent Host enforcement, point to it. - Consider a "Policy coverage by harness" table.
agentHostPolicySupport.tslists a status for every policy inpolicyData.jsonc, and the build fails when one is missing, so the table could be generated from it the same way the policy reference is.
How this was checked
- microsoft/vscode at
e9eaf94(1.142.0):agentHostPolicySupport.ts, the Session Target picker and availability code, andOPEN_AGENTS_WINDOW_PRECONDITION. - Linked microsoft/vscode issues #328241, #337538, #337539, and #337540, all open.
- Docs at
main@54f9a67, the live code.visualstudio.com pages, andvnextall have the same text. - No existing vscode-docs issue or open PR covers this.
- Lingua principale
- Markdown
- Stelle
- 6.7k
- Fork
- 5.8k
- Merge medio
- 9h 7m
- PR unite (30g)
- 117
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di microsoft/vscode-docs
-
Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds (span:nth-child(6)):A11y_code.visualstudio.com_AI4WForse già presa @ntrogh l’ha presa 13 giorni fa. Aperta
microsoft/vscode-docs#10424 · 1 commento · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
How VS Code team uses AIApertaidea
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
microsoft/vscode-docs#10216 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Add troubleshooting steps for the spawning of excessive rg processesForse già presa @ntrogh l’ha presa 122 giorni fa. Apertadoc-enhancement
microsoft/vscode-docs#9950 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
Tie feature update/creation with corrected/available documentation before release.Forse di nuovo libera @ntrogh l’ha presa 151 giorni fa e non c’è nessuna pull request aperta. Apertadocs-experience
microsoft/vscode-docs#9761 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
[feat] Add leading paragraph "Changes In Settings" to release notesForse di nuovo libera @ntrogh l’ha presa 165 giorni fa e non c’è nessuna pull request aperta. Apertafeature-request
microsoft/vscode-docs#9742 · 3 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di microsoft/vscode-docs
Issue simili
-
Remove DatacircleAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
collabnix/awesome-mcp-lists#230 ·
I maintainer di solito rispondono entro 9 giorni
-
beginner-friendly category:finding-titles community enhancement first-timers-only good first issue hacktoberfest help wanted low hanging fruit micro-contribution type: task up-for-grabs
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 94/100
Berserk-hub150/skillhawk#226 · 1 commento ·
I maintainer di solito rispondono entro 8 giorni
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
ianktoo/project-monitor#14 ·
-
documentation good first issue help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
steerion-labs/bounded-agent-runtime#93 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
kaimahi-agents/kaimahi#570 ·
I maintainer di solito rispondono entro 1 giorno