From 5bbab19caa3fe7786adc283c45062a148e444d06 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 16 Jun 2026 17:38:35 +0000 Subject: [PATCH 1/2] Initial plan From 41275c85edc0b9c82b03eba0e3c9e2e2ee194476 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 16 Jun 2026 17:50:23 +0000 Subject: [PATCH 2/2] docs: refine persona-driven workflow creation guidance Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- .github/aw/create-agentic-workflow.md | 12 ++++++++++-- .github/aw/test-coverage.md | 13 +++++++++++++ 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/.github/aw/create-agentic-workflow.md b/.github/aw/create-agentic-workflow.md index 7103e8077cf..f53401467e7 100644 --- a/.github/aw/create-agentic-workflow.md +++ b/.github/aw/create-agentic-workflow.md @@ -85,11 +85,19 @@ Use [workflow-patterns.md](workflow-patterns.md) for trigger-selection guidance. Compact scenario examples: -- **Schema review on PRs**: trigger `pull_request`, read via `github` (`gh-proxy`), publish findings with `add-comment`, call `noop` when schema is unchanged. +- **Schema/API review on PRs**: trigger `pull_request` with `paths:` scoped to backend contract files (for example `db/migrate/**`, `migrations/**`, `schema/**`, `openapi/**`, `api/**`), read via `github` (`gh-proxy`), publish findings with `add-comment`, call `noop` when contracts are unchanged. - **Visual regression on UI changes**: trigger `pull_request`, use `playwright` + `cache-memory`, keep writes in `add-comment`, call `noop` when UI paths are unchanged. - **Deployment incident triage**: use `deployment_status` for external provider failures and `workflow_run` for GitHub Actions failures, publish incident reports via `create-issue`, call `noop` when a failure self-recovers or is duplicate noise. - **Product/stakeholder digest**: use fuzzy `schedule` plus optional `workflow_dispatch`, publish digest with `create-issue`, call `noop` when there are no updates in the date window. +### 2a. Backend review compact guidance + +For backend-focused PR automation (schema migrations and API compatibility): + +- scope `pull_request.paths` to backend contract indicators instead of whole-repo review +- instruct the agent to classify changes as additive, backward-compatible, or breaking, then report only actionable risks +- include explicit `noop` criteria when no migration/API contract files changed + ### 3. Keep permissions read-only The main agent job must stay read-only. @@ -269,7 +277,7 @@ Before finalizing any newly generated workflow, verify: Before finalizing any newly generated workflow, verify: -- [ ] **Paths scope**: include `paths:`/`paths-ignore:` when the automation should ignore unrelated files +- [ ] **Paths scope**: include `paths:`/`paths-ignore:` when the automation should ignore unrelated files (for backend reviews, include migration/schema/API contract globs) - [ ] **Labels scope**: define required labels (for example `label_command` names or PR/issue label filters) when label-based routing is expected - [ ] **Workflow-name scope**: for `workflow_run`, explicitly name target workflows and conclusions to avoid accidental matches - [ ] **Date-window scope**: for reporting/triage, state the exact window (for example `last 24h`, `since previous run`, `current week`) diff --git a/.github/aw/test-coverage.md b/.github/aw/test-coverage.md index 35bd73c2a5e..dbe68b975f0 100644 --- a/.github/aw/test-coverage.md +++ b/.github/aw/test-coverage.md @@ -45,6 +45,19 @@ safe-outputs: Use **only when** no prior CI artifact exists or CI doesn't upload coverage. Supported commands: +- infer the repository ecosystem from project files before running fallback coverage +- configure `network.allowed` to include `defaults` plus the inferred ecosystem(s) (for example `node`, `python`, `go`) +- never run fallback coverage with `network: defaults` alone + +Example fallback network config: + +```yaml +network: + allowed: + - defaults + - node +``` + | Language | Command | |---|---| | Node.js | `npx jest --coverage --coverageReporters=json-summary` |