Skip to content

[squad] Implement #53514: Map workflow semantics for WHAT/WHEN/WHERE catalogs - #53573

Merged
pelikhan merged 1 commit into
mainfrom
squad/implement-53514-wizard-catalog-mapping-f1af185a93b3735b
Aug 18, 2026
Merged

[squad] Implement #53514: Map workflow semantics for WHAT/WHEN/WHERE catalogs#53573
pelikhan merged 1 commit into
mainfrom
squad/implement-53514-wizard-catalog-mapping-f1af185a93b3735b

Conversation

@github-actions

@github-actions github-actions Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds docs/src/data/wizard-data-model.json, the wizard runtime data file called out in the Wizard Data Model Specification (Section 3, "Wizard runtime data"), translating existing gh-aw workflow concepts into the shared catalog per #53514.

What's included

  • 6 goal categories (WHAT): issue automation, PR review assistant, scheduled report, slash-command responder, discussion automation, CI triage — each declaring its compatible triggerOptionIds / destinationOptionIds plus sensible defaults.
  • 10 trigger options (WHEN): issues, issue_comment, pull_request, discussion, discussion_comment, workflow_run, slash_command, schedule (daily/weekly), and workflow_dispatch — each carrying a literal gh-aw on: frontmatter fragment, aligned with docs/src/content/docs/reference/triggers.md and command-triggers.md.
  • 5 destination options (WHERE): add-comment, add-labels, close-issue, create-pull-request, create-discussion — mapped to the actual safe-outputs: handler keys documented in docs/src/content/docs/reference/safe-outputs.md, with inferFromTriggerTypes hints so WHERE can be pre-selected as required by the parent issue (AW wizard in docs #53498).
  • A promptTemplate matching the existing example shape (goal/trigger/destination/task-details sections).

Validation

  • Confirmed against docs/public/schemas/wizard-data-model.schema.json's conventions: all id fields match ^[a-z][a-z0-9-]*$, all triggerOption.type values are within the schema's enum, and every goalCategory.triggerOptionIds/destinationOptionIds (including defaults) resolves to an existing catalog entry.
  • Verified with a script cross-checking all id references — no dangling references, no invalid types.
  • No compiler, Go, or workflow files were touched; this is a data-only addition consumed by the (not-yet-built) Astro wizard component from later issues in this epic.

Closes #53514

Generated by Squad Implement Worker · auto · 98.7 AIC · ⌖ 15.1 AIC · ⊞ 11K ·

Add this agentic workflow to your repo

To install this agentic workflow, run

gh aw add bradygaster/squad/workflows/squad-implement-worker.md@a70c752010f8adfb33f06c7aafb32db09aab1060
  • expires on Aug 31, 2026, 7:31 PM UTC-08:00

Generated by 👨‍🍳 PR Sous Chef · gpt54 · 7.29 AIC · ⌖ 7.92 AIC · ⊞ 8.8K ·
Comment /souschef to run again

Populate docs/src/data/wizard-data-model.json, the runtime data source
called out in the Wizard Data Model Specification (Section 3), mapping
existing gh-aw trigger types and safe-outputs handlers into the shared
WHAT -> WHEN -> WHERE catalog:

- 6 goal categories (issue automation, PR review, scheduled report,
  slash command responder, discussion automation, CI triage)
- 10 trigger options covering issues, issue_comment, pull_request,
  discussion, discussion_comment, workflow_run, slash_command,
  schedule (daily/weekly), and workflow_dispatch
- 5 destination options mapped to existing safe-outputs handlers
  (add-comment, add-labels, close-issue, create-pull-request,
  create-discussion) with inferFromTriggerTypes hints

All ids validated against the schema's id pattern and cross-referenced
(goalCategory trigger/destination ids resolve, defaults are members of
their option lists, trigger types are within the schema enum).

Closes #53514

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot added the squad label Aug 18, 2026
@pelikhan
pelikhan marked this pull request as ready for review August 18, 2026 03:44
Copilot AI balanced review requested due to automatic review settings August 18, 2026 03:44
@github-actions

github-actions Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor Author

Test Quality Sentinel completed test quality analysis.

No test files were added or modified in this PR. Test Quality Sentinel skipped.

🧪 Test quality analysis by Test Quality Sentinel

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

Adds the shared runtime catalog for the future Astro workflow wizard.

Changes:

  • Defines WHAT goals, WHEN triggers, and WHERE safe-output destinations.
  • Adds defaults, inference hints, and prompt-generation structure.
Show a summary per file
File Description
docs/src/data/wizard-data-model.json Adds the wizard’s runtime catalog and prompt template.

Review details

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 1/1 changed files
  • Comments generated: 4
  • Review effort level: Balanced

"id": "on-workflow-run",
"type": "other",
"text": { "label": "When another workflow run completes", "help": "Fires after a monitored CI workflow run finishes." },
"frontmatter": { "on": { "workflow_run": { "workflows": ["CI"], "types": ["completed"] } } }
},
{
"id": "on-discussion-comment",
"type": "issue_comment",
"triggerOptionIds": ["on-discussion-created", "on-discussion-comment", "slash-command", "manual-dispatch"],
"destinationOptionIds": ["comment-on-issue", "create-discussion"],
"defaultTriggerOptionId": "on-discussion-created",
"defaultDestinationOptionId": "comment-on-issue"
"triggerOptionIds": ["on-workflow-run", "manual-dispatch"],
"destinationOptionIds": ["comment-on-issue", "open-pull-request", "create-discussion"],
"defaultTriggerOptionId": "on-workflow-run",
"defaultDestinationOptionId": "comment-on-issue"
@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot Please review this PR, refresh the branch if needed, then run the pr-finisher skill and report back with validation results and any remaining blockers.

  • No failed checks were listed in the compact queue for this run.
  • Branch refresh was requested for this PR.

Generated by 👨‍🍳 PR Sous Chef · gpt54 · 7.29 AIC · ⌖ 7.92 AIC · ⊞ 8.8K ·
Comment /souschef to run again

@pelikhan
pelikhan merged commit ef4f14a into main Aug 18, 2026
22 of 23 checks passed
@pelikhan
pelikhan deleted the squad/implement-53514-wizard-catalog-mapping-f1af185a93b3735b branch August 18, 2026 04:01
Copilot stopped work on behalf of gh-aw-bot due to an error August 18, 2026 04:02
Copilot AI requested a review from gh-aw-bot August 18, 2026 04:02
@github-actions github-actions Bot mentioned this pull request Aug 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor Author

🎉 This pull request is included in a new release.

Release: v0.87.1

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Map workflow semantics for WHAT/WHEN/WHERE catalogs

3 participants