elastic / elastic/ai-github-actions
[product-manager-impersonator] Quick setup: validate `--workflows` IDs with suggestions
- Dominant language
- Python
- Stars
- 11
- Forks
- 16
- Avg merge
- 22h 9m
- Merged PRs (30d)
- 31
Description
## Feature Idea
**Summary:** Add preflight validation for `--workflows` values in `scripts/quick-setup.sh` so unknown workflow IDs fail fast with clear guidance and nearest-match suggestions.
## Why a Customer Would Want This
New adopters frequently copy workflow IDs manually and a typo currently fails late during remote fetch with little context. A fast, explicit validation error would make first-run setup much smoother and reduce onboarding friction/support churn.
## Rough Implementation Sketch
- Build an allowlist of supported workflow IDs from the existing curated arrays in `scripts/quick-setup.sh`.
- Validate all CSV entries from `--workflows` before any `git fetch`/branch creation or remote `curl` loop.
- On invalid IDs, print a clear error that includes valid IDs and “did you mean …” suggestions for close matches.
- Document the behavior in quick setup docs where `--workflows` is described.
## Why It Won't Be That Hard
The script already centralizes workflow IDs and parses `--workflows`; this is a localized enhancement to argument validation and error messaging without changing workflow engine behavior or repo layout.
## Evidence
- `scripts/quick-setup.sh` parses `--workflows` CSV, but has no ID validation step before execution (`scripts/quick-setup.sh#L144-L149`).
- Unknown workflow names currently fail only when constructing/fetching a remote file URL (`scripts/quick-setup.sh#L194-L203`).
- Usage/docs ask users to provide comma-separated IDs manually, increasing typo risk (`scripts/quick-setup.sh#L25`, `gh-agent-workflows/README.md#L63-L65`).
> [!NOTE]
>
> 🔒 Integrity filtering filtered 123 items
>
> Integrity filtering activated and filtered the following items during workflow execution.
> This happens when a tool call accesses a resource that does not meet the required integrity or secrecy level of the workflow.
>
> - issue:elastic/ai-github-actions#779 (`list_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
> - issue:elastic/ai-github-actions#778 (`list_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
> - issue:elastic/ai-github-actions#777 (`list_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
> - issue:elastic/ai-github-actions#776 (`list_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
> - issue:elastic/ai-github-actions#775 (`list_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
> - issue:elastic/ai-github-actions#774 (`list_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
> - issue:elastic/ai-github-actions#773 (`list_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
> - issue:elastic/ai-github-actions#772 (`list_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
> - issue:elastic/ai-github-actions#771 (`list_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
> - issue:elastic/ai-github-actions#770 (`list_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
> - issue:elastic/ai-github-actions#769 (`list_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
> - issue:elastic/ai-github-actions#768 (`list_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
> - issue:elastic/ai-github-actions#766 (`list_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
> - issue:elastic/ai-github-actions#765 (`list_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
> - issue:elastic/ai-github-actions#759 (`list_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
> - issue:elastic/ai-github-actions#757 (`list_issues`: has lower integrity than agent requires. The agent cannot read data with integrity below "approved".)
> - ... and 107 more items
>
>
---
[What is this?](https://ela.st/github-ai-tools) | [From workflow: Trigger Product Manager Impersonator](https://github.com/elastic/ai-github-actions/actions/runs/23484291199)
Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.
Contributor guide
Assessment
This issue has not been assessed yet.