AGENT SKILL

AWF 防火墙故障诊断

diagnose-awf

根据错误信息、工作流运行 URL 或症状,诊断 AWF(Agentic Workflow Firewall,智能体工作流防火墙)故障。涵盖认证(api-proxy、企业版/BYOK Copilot、OIDC、mcpg)、ARC/DinD 与自托管运行器、替代运行时(gVisor/Kata/chroot)、Squid/DNS/出口(egress)拒绝、CI 与 gh-aw 安全输出失败,以及疑似安全回归问题;并将问题路由至 docs/diagnostics 中的规范诊断注册表。

适用职业SRE 工程师
License 许可
MIT
最近更新
2026-11-15
Stars
★ 160
Forks
83

01 前言 Front Matter

name
diagnose-awf
description
Diagnose an AWF (Agentic Workflow Firewall) failure from an error, workflow run URL, or symptom. Covers auth (api-proxy, enterprise/BYOK Copilot, OIDC, mcpg), ARC/DinD and self-hosted runners, alternative runtimes (gVisor/Kata/chroot), Squid/DNS/egress denials, CI and gh-aw safe-output failures, and suspected security regressions. Routes to the canonical diagnosis registry in docs/diagnostics.
allowed-tools
Bash(docker:*), Bash(gh:*), Bash(npx:*), Bash(npm:*), Bash(grep:*), Read

03 SKILL.md 正文

Diagnose AWF Failures

Single entry point for diagnosing AWF failures. The canonical knowledge lives in the diagnosis registry — this skill only routes and reports.

Procedure

  1. Read the index — docs/diagnostics/README.md for boundary routing and specialist references, and docs/diagnostics/agent-playbook.md for the report shape and safety rules.

  2. Fingerprint the run: AWF version, runner type (GitHub-hosted / self-hosted / ARC+DinD / GHES / GHEC), DOCKER_HOST, GITHUB_SERVER_URL, container runtime, provider, auth mode. Use unknown where unverified.

  3. Classify the failing boundary: runner, runtime, network, auth, ci, security.

  4. Load only matching records:

    npx tsx scripts/diagnostics/cli.ts search "<redacted error string>" --boundary <boundary>
    

    Without a clone, use the portable artifact .github/agents/diagnose-awf.md (prefer a tag matching your AWF version).

  5. Probe with the matched finding's read-only probe when the match is ambiguous — one probe at a time.

  6. Report: observed symptom, matched finding ID and evidence, affected version/topology, safe next probe, fix/workaround, citations.

Auth routing

  • api-proxy sidecar / provider token exchange → AUTH-001, AUTH-002
  • GitHub/Copilot enterprise and BYOK routing → AUTH-001, docs/auth-matrix.md
  • gh-aw-launched mcpg HTTP MCP GitHub OIDC → AUTH-003

Check configuration presence/shape, route and health status, and redacted error classes only.

Safety rules

  • Never request API keys, tokens, JWTs, Authorization headers, environment dumps, inference probes, or token exchanges.
  • Never recommend --env-all, disabling isolation, or broadening the domain allowlist by default.
  • Suspected isolation or credential-boundary regressions route to SEC-001 and the repository security review process.
  • If no record matches, say so, name the smallest missing evidence, and stop. Never invent a fix.

Specialist references

  • .github/workflows/shared/self-hosted-failure-modes.md — full runner catalog
  • .github/skills/debug-firewall/SKILL.md — Squid, iptables, container state
  • .github/skills/awf-debug-tools/SKILL.md — log parsing helpers
  • .github/skills/debugging-workflows/SKILL.md — GitHub Actions log retrieval
  • docs/auth-matrix.md, docs/compatibility.md, docs/troubleshooting.md

Updating knowledge

Follow docs/diagnostics/patterns.md. Edit the canonical record, run npm run diagnostics:render, and open a reviewed PR. Never edit generated artifacts or .lock.yml files by hand.

04 同仓库更多 Skills

github
github/gh-aw-firewall

AWF 网络隔离与域名白名单

awf-skill

使用 AWF(Agentic Workflow Firewall,智能体工作流防火墙)运行带网络隔离和域名白名单的命令。为 AI 智能体提供 L7 层 HTTP/HTTPS 出站流量控制。

安全工程师云平台安全加固
★ 160
github
github/gh-aw-firewall

AWF 智能体网络隔离与出口控制

awf-skill

使用 AWF(Agentic Workflow Firewall,智能体工作流防火墙)在网络隔离与域名白名单机制下运行命令。为 AI 智能体提供 L7 层 HTTP/HTTPS 出口(egress)控制。

安全工程师云合规与数据边界管理
★ 160
github
github/gh-aw-firewall

AWF 沙箱文件系统访问配置

sandbox-filesystem-access

为 AWF 沙箱配置文件与目录访问权限、挂载(mounts)及主机 ACL,或对这些内容进行诊断排查。

SRE 工程师开发环境与工具链管理
★ 160
github
github/gh-aw-firewall

PR 合并就绪准备

pr-finisher

为来自 GitHub Copilot 云端智能体的待合并 Pull Request 做好合并准备。推动代码审查(Reviews)、本地验证(local validation)以及 Mergeable(可合并)状态达到就绪。不执行合并操作,也无法触发 CI。

软件开发工程师代码仓库协作管理
★ 160
github
github/gh-aw-firewall

GitHub Actions 工作流调试

debugging-workflows

通过下载日志、分析摘要,并理解智能体工作流(agentic workflows)与 AWF 防火墙如何协同工作,来调试 GitHub Actions 工作流。

SRE 工程师调试与故障排查
★ 160
github
github/gh-aw-firewall

智能体工作流请求路由

agentic-workflows

将 gh-aw 的设计、创建、诊断、修补、主动调试、升级以及本地 SDLC 问题请求路由到相应的策略。

AI 工程师智能体开发
★ 160