-
Notifications
You must be signed in to change notification settings - Fork 429
chore: remove user-invokable and disable-model-invocation from the gh-aw schema
#38328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -36,7 +36,7 @@ const ROOT_SORT_ORDER = [ | |
| 'labels', 'metadata', 'tracker-id', 'source', 'run-name', 'runs-on', | ||
| 'timeout-minutes', 'concurrency', 'environment', 'container', 'services', | ||
| 'network', 'sandbox', 'plugins', 'if', 'steps', 'post-steps', | ||
| 'features', 'disable-model-invocation', 'secrets', | ||
| 'features', 'secrets', | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Codemod 💡 Details
newLine := fmt.Sprintf("%sdisable-model-invocation: %v", indent, disableValue)After this PR that field is gone from the schema, so the post-codemod file will fail
The ADR at |
||
| 'secret-masking', 'bots', 'user-rate-limit', 'strict', 'safe-inputs', | ||
| 'runtimes', 'jobs', | ||
| ]; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -314,8 +314,7 @@ var PriorityJobFields = []string{"name", "runs-on", "needs", "if", "permissions" | |
| var PriorityWorkflowFields = []string{"on", "permissions", "if", "network", "imports", "safe-outputs", "steps"} | ||
|
|
||
| // IgnoredFrontmatterFields are fields that should be silently ignored during frontmatter validation | ||
| // NOTE: user-invokable is a GitHub Copilot custom agent field that is not part of the gh-aw schema | ||
| var IgnoredFrontmatterFields = []string{"user-invokable"} | ||
| var IgnoredFrontmatterFields = []string{} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Breaks validation for 💡 DetailsSchema validation runs Either:
# Confirms the affected file
grep -r "user-invokable" .github/ --include="*.md"
# .github/agents/contribution-checker.agent.md:3:user-invokable: false |
||
|
|
||
| // SharedWorkflowForbiddenFields lists fields that cannot be used in shared/included workflows. | ||
| // These fields are only allowed in main workflows (workflows with an 'on' trigger field). | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bundled CLI template files still use
disable-model-invocation: true— will fail schema validation: Two embedded data files compiled into the CLI binary are not updated by this PR:pkg/cli/data/agentic_workflow_designer_skill.md:4—disable-model-invocation: truepkg/cli/data/agentic_workflows_agent.md:4—disable-model-invocation: true💡 Details
Removing
disable-model-invocationfrom the schema without updating these embedded files means any code path that parses or validates these bundled templates will produce a schema error at runtime. Since these files are embedded in the binary via//go:embedor similar, they will silently break scaffolding/agent-creation flows that depend on them.Both lines must be removed (or the field must be replaced with its functional equivalent) before this PR is safe to merge.