Skip to content

docs: add db migration pattern, deployment_status clarification, and PR-report checklist#37904

Merged
pelikhan merged 4 commits into
mainfrom
copilot/agent-persona-exploration
Jun 8, 2026
Merged

docs: add db migration pattern, deployment_status clarification, and PR-report checklist#37904
pelikhan merged 4 commits into
mainfrom
copilot/agent-persona-exploration

Conversation

Copilot AI commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Three gaps identified by the agent persona exploration: no database migration guidance, ambiguous workflow_run vs deployment_status selection for incident automation, and no quick-reference checklist for PR-triggered reporting workflows.

workflow-patterns.md — Database Migration Safety Pattern

New pattern section (consistent with PR Visual Regression style) covering trigger path-scoping, read-only permissions, and a prompt note to suggest migration best practices in the agent prompt.

create-agentic-workflow.mdworkflow_run vs deployment_status clarification

  • Added deployment_status row to the quick decision matrix (deployments: readcreate-issue)
  • Added blockquote callout immediately after the matrix:

    workflow_run vs deployment_status: Use workflow_run when monitoring another GitHub Actions workflow in the same repository. Use deployment_status when an external service (Heroku, Vercel, Fly.io) reports deployment results back to GitHub via the Deployments API.

create-agentic-workflow.md — Compact PR-Report Checklist

New checklist section after the Recommended Workflow Skeleton covering the four key decisions before finalizing any pull_request-triggered reporting workflow: minimal permissions, safe-output mapping, network selection, and mandatory noop for clean runs.

Copilot AI linked an issue Jun 8, 2026 that may be closed by this pull request
- Add deployment_status row to decision matrix and workflow_run vs
  deployment_status clarification in create-agentic-workflow.md
- Add compact PR-report checklist to create-agentic-workflow.md
- Add Database Migration Safety Pattern to workflow-patterns.md

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Explore agent persona and workflow patterns docs: add db migration pattern, deployment_status clarification, and PR-report checklist Jun 8, 2026
Copilot AI requested a review from pelikhan June 8, 2026 19:17
Comment thread .github/aw/workflow-patterns.md Outdated
- permissions: `contents: read`, `pull-requests: read`; keep agent job read-only
- reads: changed migration file content via GitHub tools
- output: `add-comment` with a safety summary flagging risky operations; use `noop` when no concerns are detected
- safety checks to include in the agent prompt:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot remove section on safety check and replace "suggest migration best practices in the agent prompt"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 9e0b33d — replaced the detailed safety-checks sub-list with - prompt: suggest migration best practices in the agent prompt.

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI requested a review from pelikhan June 8, 2026 19:28
@pelikhan pelikhan marked this pull request as ready for review June 8, 2026 19:31
Copilot AI review requested due to automatic review settings June 8, 2026 19:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the gh-aw authoring docs to close three documentation gaps: safe patterns for database migration review workflows, clearer trigger selection between workflow_run and deployment_status for incident automation, and a compact checklist for PR-triggered reporting workflows.

Changes:

  • Added a “Database Migration Safety Pattern” to the shared workflow patterns reference.
  • Expanded the trigger decision matrix with deployment_status and added a clarifying note comparing it to workflow_run.
  • Added a compact “PR-Report Checklist” to help validate key PR-report workflow design decisions.
Show a summary per file
File Description
.github/aw/workflow-patterns.md Adds a database migration review pattern alongside existing workflow design patterns.
.github/aw/create-agentic-workflow.md Clarifies workflow_run vs deployment_status selection and adds a PR-report checklist section.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 2


For pull requests that add or modify database migration files:

- trigger: `pull_request` with `paths:` scoped to migration directories (e.g. `db/migrate/**`, `migrations/**`, `*.sql`)

- [ ] **Permissions**: `contents: read` + `pull-requests: read` in the agent job; no write permissions
- [ ] **Safe outputs**: `add-comment` for inline findings; `create-issue` for incidents needing follow-up
- [ ] **Network**: infer ecosystem from repository lock files; never use `defaults` alone when packages are installed
@pelikhan pelikhan merged commit 3236221 into main Jun 8, 2026
7 checks passed
@pelikhan pelikhan deleted the copilot/agent-persona-exploration branch June 8, 2026 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Agent Persona Exploration - 2026-06-08

3 participants