chore: sync actions from gh-aw@v0.80.7#164
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Automated sync of the setup/ action scripts and supporting assets from gh-aw@v0.80.7, updating the activation/runtime tooling used by this repository’s agentic workflows.
Changes:
- Adds new shared helpers for slash-command matching and common entity update payload construction (issue/PR updates).
- Enhances safe-outputs behavior (invocation-time per-type max enforcement) and improves failure/diagnostic handling (engine max-runs signal, tool-call previews, Copilot SDK idle-timeout handling).
- Extends MCP and CLI bridge validation/UX (schema minLength enforcement; per-field stdin support) and updates model metadata.
Show a summary per file
| File | Description |
|---|---|
| setup/setup.sh | Adds slash_command_matcher.cjs to the safe-outputs copy list so it’s available inside the safe-outputs runtime tree. |
| setup/md/engine_max_runs_exceeded.md | New prompt template for max-runs guardrail failures. |
| setup/js/write_daily_aic_usage_cache.cjs | Improves cache logging robustness when details can’t be JSON-stringified. |
| setup/js/update_pull_request.cjs | Refactors shared update payload logic to buildCommonEntityUpdateData. |
| setup/js/update_pr_description_helpers.cjs | Minor refactor to reuse assembleMarkdownBodyParts return shape more cleanly. |
| setup/js/update_network_allowed.cjs | New script to expand tokens/domains into network.allowDomains in AWF config. |
| setup/js/update_issue.cjs | Refactors shared update payload logic to buildCommonEntityUpdateData. |
| setup/js/update_entity_helpers.cjs | New shared helper for building common issue/PR update data (title/body/footer). |
| setup/js/tool_call_details.cjs | New helper to extract a best-effort shell command string from tool payloads. |
| setup/js/slash_command_matcher.cjs | New shared parsing/matching for slash commands (exact, wildcard, catch-all). |
| setup/js/sanitize_content_core.cjs | Updates command neutralization to use slash-command matcher and handle wildcards. |
| setup/js/safe_outputs_handlers.cjs | Adds per-type max enforcement at invocation time (dual enforcement) via counted appends. |
| setup/js/safe_output_type_validator.cjs | Improves error messaging with typeHint support for required field validation. |
| setup/js/run_operation_update_upgrade.cjs | Adds notify-via-issue mode for upgrade operations and related dedup/closing logic. |
| setup/js/route_slash_command.cjs | Refactors slash parsing; adds built-in /help response generation and wildcard route matching. |
| setup/js/resolve_mentions_from_payload.cjs | Adds optional allowed-teams support by fetching team members (best-effort). |
| setup/js/parse_threat_detection_results.cjs | Extends parsing to extract final assistant verdicts from additional stream envelope types. |
| setup/js/models.json | Adds/updates model entries and costs. |
| setup/js/mcp_server_core.cjs | Adds schema-driven minLength validation and enhances empty-args guidance with schema hints. |
| setup/js/mcp_scripts_validation.cjs | Implements validateStringMinLengths helper for MCP schema validation. |
| setup/js/mcp_cli_bridge.cjs | Adds per-field stdin (--key .) support and refines stdin handling docs/behavior. |
| setup/js/handle_agent_failure.cjs | Adds tool-call previews for recent tool calls and detects engine max-runs failures. |
| setup/js/generate_usage_activity_summary.cjs | New usage artifact summarizer aggregating firewall/session/gateway activity logs. |
| setup/js/copilot_sdk_session.cjs | Adds command capture to tool start events and treats idle-timeout as success when appropriate. |
| setup/js/copilot_harness.cjs | Uses getPromptPath indirection for prompt rendering; makes proxy auth diagnostic render injectable. |
| setup/js/check_command_position.cjs | Updates command matching to support wildcard/catch-all configured commands. |
| setup/js/allowed_issue_fields.cjs | Improves allowed-fields validation (case-insensitive set, * wildcard support). |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 27/27 changed files
- Comments generated: 4
Comment on lines
+1
to
+9
| > [!WARNING] | ||
| > **Engine Max Runs Exceeded**: The {engine_label} engine hit the workflow max runs guardrail and could not continue. | ||
|
|
||
| This signal was detected from engine runtime logs. | ||
|
|
||
| **What to do next** | ||
| - Increase workflow `max-runs` if the task legitimately needs more model invocations. | ||
| - Reduce per-run model calls by simplifying prompts, limiting retries, or breaking work into smaller steps. | ||
| - Review the run logs to identify repeated loops or retries that consumed invocation budget unexpectedly. |
Comment on lines
+363
to
+369
| const leadingWhitespace = s.match(/^\s*/)?.[0] ?? ""; | ||
| const remainder = s.slice(leadingWhitespace.length); | ||
| const matchedCommand = resolveMatchedCommand(remainder, commandNames); | ||
| if (matchedCommand) { | ||
| const escapedCommand = matchedCommand.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); | ||
| return s.replace(new RegExp(`^(\\s*)/(${escapedCommand})\\b`, "i"), "$1`/$2`"); | ||
| } |
Comment on lines
371
to
379
| for (const name of commandNames) { | ||
| if (name.endsWith("*")) { | ||
| continue; | ||
| } | ||
| const escapedCommand = name.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); | ||
| result = result.replace(new RegExp(`^(\\s*)/(${escapedCommand})\\b`, "i"), "$1`/$2`"); | ||
| // Stop after first substitution (only one command can be at position 0) | ||
| const result = s.replace(new RegExp(`^(\\s*)/(${escapedCommand})\\b`, "i"), "$1`/$2`"); | ||
| if (result !== s) { | ||
| break; | ||
| return result; | ||
| } |
Comment on lines
+566
to
+571
| * When `stdinContent` is provided and non-empty, any '--key .' or '--key=.' | ||
| * pair substitutes that field's value with the raw stdin text (per-field | ||
| * stdin mode). This enables agents to pipe large text into a single field: | ||
| * printf 'Long issue body...' | safeoutputs create_issue --title "Bug" --body . | ||
| * When stdin is empty, the '.' is passed through as a literal value. | ||
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated sync of actions from gh-aw at
v0.80.7.