Skip to content

feat: add workflow schema and upgrade agent#271

Merged
Mossaka merged 1 commit into
mainfrom
feat/add-workflow-schema-and-upgrade-agent
Jan 17, 2026
Merged

feat: add workflow schema and upgrade agent#271
Mossaka merged 1 commit into
mainfrom
feat/add-workflow-schema-and-upgrade-agent

Conversation

@Mossaka

@Mossaka Mossaka commented Jan 17, 2026

Copy link
Copy Markdown
Contributor

Summary

Add comprehensive workflow tooling improvements including JSON schema validation, automated upgrade agent, and extensive feature updates to workflow instructions and agents.

New Files

  • JSON Schema (.github/aw/schemas/agentic-workflow.json) - 6,000+ line formal schema definition for validating agentic workflow frontmatter configuration
  • Upgrade Agent (.github/agents/upgrade-agentic-workflows.md) - Automated agent for migrating workflows to latest gh-aw versions with codemods and error fixing

Workflow Instructions Updates (.github/aw/github-agentic-workflows.md)

Breaking Changes

  • Replace deprecated command: with slash_command: for /mention triggers
  • Rename create-agent-task: to create-agent-session: (old name deprecated)

New Features

  • Organization: labels: and metadata: fields for workflow categorization
  • Access Control: bots: field to allow specific bot identifiers regardless of role permissions
  • Sandbox Configuration: Comprehensive sandbox: config supporting AWF, SRT, and MCP Gateway
  • Issue Management: expires: field for auto-closing issues with auto-generated maintenance workflow
  • Discussion Management: close-older-discussions: for lifecycle management
  • Comment Management: hide-older-comments: for minimizing previous workflow comments
  • Safe Outputs: New update-discussion:, upload-asset:, and assign-to-user: operations
  • Project Management: Draft issue support in update_project: safe-output

Agent Improvements (.github/agents/create-agentic-workflow.agent.md)

  • Update terminology from "whitelist" to "allowlist"
  • Add guidance for missing-tool: create-issue: feature to track missing tools as GitHub issues
  • Add critical compilation reminders and comprehensive error handling guidance
  • Add strict mode security guidance requiring explicit user confirmation before relaxing security

Test Plan

  • ✅ Commit created successfully
  • ✅ Pre-commit hooks passed (lint and build)
  • ✅ All files staged and committed
  • ✅ Branch pushed to remote

🤖 Generated with Claude Code

This commit adds comprehensive workflow tooling improvements:

## New Files
- Add JSON schema for agentic workflow validation (.github/aw/schemas/agentic-workflow.json)
- Add upgrade agent for automated workflow migrations (.github/agents/upgrade-agentic-workflows.md)

## Workflow Instructions Updates (.github/aw/github-agentic-workflows.md)
- Replace deprecated `command:` with `slash_command:` for /mention triggers
- Add `labels:` and `metadata:` fields for workflow organization
- Add `bots:` field to allow specific bot identifiers regardless of role
- Add comprehensive `sandbox:` configuration (awf, srt, mcp-gateway)
- Add `expires:` field for auto-closing issues with maintenance workflow
- Add `close-older-discussions:` for discussion lifecycle management
- Add `hide-older-comments:` for minimizing previous workflow comments
- Add `update-discussion:` safe-output for discussion updates
- Add `upload-asset:` safe-output for publishing files to orphaned branches
- Rename `create-agent-task:` to `create-agent-session:` (deprecation)
- Add project draft issue support in `update_project:`

## Agent Improvements (.github/agents/create-agentic-workflow.agent.md)
- Update terminology from "whitelist" to "allowlist"
- Add guidance for `missing-tool: create-issue:` feature
- Add critical compilation reminders and error handling guidance
- Add strict mode security guidance with explicit confirmation requirements

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Test Coverage Report

Metric Coverage Covered/Total
Lines 77.19% 1300/1684
Statements 77.27% 1333/1725
Functions 77.17% 142/184
Branches 69.76% 450/645
Coverage Thresholds

The project has the following coverage thresholds configured:

  • Lines: 38%
  • Statements: 38%
  • Functions: 35%
  • Branches: 30%

Coverage report generated by `npm run test:coverage`

@github-actions

Copy link
Copy Markdown
Contributor

📰 BREAKING: Smoke Copilot is now investigating this pull request. Sources say the story is developing...

@github-actions

github-actions Bot commented Jan 17, 2026

Copy link
Copy Markdown
Contributor

💫 TO BE CONTINUED... Smoke Claude failed! Our hero faces unexpected challenges...

@Mossaka Mossaka merged commit 50d10c1 into main Jan 17, 2026
27 of 28 checks passed
@Mossaka Mossaka deleted the feat/add-workflow-schema-and-upgrade-agent branch January 17, 2026 09:04
@github-actions

Copy link
Copy Markdown
Contributor

Smoke Test Results (Run #21091838539)

Last 2 Merged PRs:

Test Results:

  • ✅ GitHub MCP Testing (PR review)
  • ✅ File Writing Testing (created /tmp/gh-aw/agent/smoke-test-copilot-21091838539.txt)
  • ✅ Bash Tool Testing (file verified)

Status: PASS 🎉

📰 BREAKING: Report filed by Smoke Copilot fer issue #271 🗺️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant