Repository navigation
chore: sync actions from gh-aw@v0.77.4 - #127
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR syncs the setup/ action scripts and safe-outputs tooling from github/gh-aw@v0.77.4, updating the agentic workflow harness to improve reliability (cache recovery, cross-repo targeting), operational guardrails (effective-token limits), and Copilot CLI/runtime integration.
Changes:
- Harden cache-memory git repo handling (extra corruption recovery + added test) and disable shell history expansion in multiple scripts.
- Improve safe-outputs and handler behavior (cross-repo fallbacks, updated tool schemas/docs, failure partitioning) and add a shared
safeoutputsCLI helper. - Add effective-token guardrails + parsing utilities and Copilot SDK sidecar support; enhance Copilot CLI installation to prefer the runner toolcache.
Show a summary per file
| File | Description |
|---|---|
| setup/sh/setup_cache_memory_git.sh | Reorders/extends hook disabling to recover when git config fails due to corruption. |
| setup/sh/setup_cache_memory_git_test.sh | Adds a regression test for missing HEAD corruption recovery and renumbers subsequent tests. |
| setup/sh/sanitize_repo_memory_filenames.sh | Disables bash history expansion before strict mode. |
| setup/sh/print_prompt_summary.sh | Adds shebang, disables history expansion, and enables strict bash options. |
| setup/sh/install_copilot_cli.sh | Uses $HOME, safer chown, and prefers Copilot CLI from runner toolcache before downloading. |
| setup/sh/generate_git_patch.sh | Adds shebang and disables history expansion. |
| setup/sh/create_prompt_first.sh | Adds shebang and disables history expansion. |
| setup/sh/create_gh_aw_tmp_dir.sh | Adds shebang and disables history expansion. |
| setup/sh/create_cache_memory_dir.sh | Adds shebang and disables history expansion. |
| setup/md/safe_outputs_prompt.md | Adds retry limits and guidance to avoid inspecting infrastructure internals after failures. |
| setup/md/repo_memory_prompt.md | Removes a redundant heading block from the prompt template. |
| setup/md/mcp_cli_tools_prompt.md | Simplifies headings and tweaks section labels. |
| setup/md/daily_effective_workflow_exceeded.md | New template for “daily workflow ET guardrail exceeded” messaging. |
| setup/md/agent_failure_issue.md | Adds the daily-workflow ET guardrail context placeholder. |
| setup/js/update_pull_request_branches.cjs | Adjusts skip logging and moves update delay to occur before subsequent PR updates. |
| setup/js/update_activation_comment.cjs | Adds cross-repo fallback comment support via targetRepo + targetGithubClient. |
| setup/js/setup_threat_detection.cjs | Makes prompt context optional (soft check) so detection can continue with fallback context. |
| setup/js/safeoutputs_cli.cjs | New shared helper to emit safeoutputs via CLI (missing_tool/report_incomplete). |
| setup/js/safe_outputs_tools.json | Updates tool schemas/descriptions (temporary_id formats, comment constraints, repo targeting notes, etc.). |
| setup/js/safe_output_handler_manager.cjs | Partitions fatal vs “report-only” failures (assign_to_agent) and exports helpers. |
| setup/js/safe_output_execution_metadata.cjs | Adds SEC-004 exemption note for hashing comment bodies. |
| setup/js/runtime_import.cjs | Preserves frontmatter for agent/skill runtime-imports; continues stripping elsewhere. |
| setup/js/push_to_pull_request_branch.cjs | Cross-repo fallback activation comments and skips activation comment on empty commits. |
| setup/js/process_runner.cjs | Adds helpers to detect/forward COPILOT_SDK_URI into child process env. |
| setup/js/pick_experiment.cjs | Removes emoji from the experiment assignments summary header. |
| setup/js/mark_pull_request_as_ready_for_review.cjs | Adds cross-repo resolution/validation via repo helper utilities. |
| setup/js/link_sub_issue.cjs | Adds cross-repo resolution/validation via repo helper utilities. |
| setup/js/handle_agent_failure.cjs | Adds daily ET guardrail context and avoids double-reporting ET hard-rail as generic engine failure. |
| setup/js/generate_git_patch.cjs | Improves incremental-mode error message with repo/checkout guidance. |
| setup/js/generate_git_bundle.cjs | Improves incremental-mode error message with repo/checkout guidance. |
| setup/js/find_repo_checkout.cjs | Treats .git as dir or file (gitdir link) when locating repo checkouts. |
| setup/js/effective_tokens_hard_rail.cjs | New helper to detect “maximum effective tokens exceeded” signals. |
| setup/js/effective_tokens_context.cjs | Expands firewall log probing paths, parses max ET with suffixes, and detects hard-rail via agent stdio logs. |
| setup/js/effective_token_limits.cjs | New parsing helpers for ET limits like 200k / 2m. |
| setup/js/daily_effective_workflow_helpers.cjs | New utilities to find/sum ET usage from artifacts and compute stats. |
| setup/js/create_pull_request.cjs | Improves bundle HEAD-only handling and refines protected-file fallback push behavior. |
| setup/js/copilot_sdk_sidecar.cjs | New sidecar process manager for headless Copilot CLI SDK server mode. |
| setup/js/copilot_harness.cjs | Adds SDK env forwarding/sidecar startup, emits safeoutputs via CLI helper, and treats ET hard-rail as non-retryable. |
| setup/js/codex_harness.cjs | Treats ET hard-rail as non-retryable and uses shared safeoutputs CLI emission for missing_tool. |
| setup/js/close_pull_request.cjs | Adds cross-repo resolution/validation via repo helper utilities. |
| setup/js/close_discussion.cjs | Adds cross-repo resolution/validation via repo helper utilities. |
| setup/js/claude_harness.cjs | Treats ET hard-rail as non-retryable and uses shared safeoutputs CLI emission for missing_tool. |
| setup/js/check_daily_effective_workflow_guardrail.cjs | New guardrail to block workflows exceeding a 24h effective-token budget and write a summary. |
| setup/js/assign_milestone.cjs | Adds cross-repo support and milestone title resolution/auto-create behavior. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comments suppressed due to low confidence (1)
setup/js/find_repo_checkout.cjs:68
findGitDirectories()now pushes the repository root (dir) when it finds a.gitdirectory/file, but the JSDoc still says it returns “paths to .git directories”. Update the@returnstext to match the actual return values to avoid incorrect downstream usage.
/**
* Find all repositories that contain a .git directory or gitdir-link file
* @param {string} basePath - The base path to search from
* @param {number} [maxDepth=5] - Maximum directory depth to search
* @returns {string[]} Array of paths to .git directories
*/
- Files reviewed: 44/44 changed files
- Comments generated: 3
Comment on lines
194
to
201
| "body": { | ||
| "type": "string", | ||
| "description": "Closing comment explaining why the issue is being closed and summarizing any resolution, workaround, or conclusion." | ||
| }, | ||
| "issue_number": { | ||
| "type": ["number", "string"], | ||
| "description": "Issue number to close. This is the numeric ID from the GitHub URL (e.g., 901 in github.com/owner/repo/issues/901). If omitted, closes the issue that triggered this workflow (requires an issue event trigger)." | ||
| }, |
| "description": "Issue or PR number to add labels to. This is the numeric ID from the GitHub URL (e.g., 456 in github.com/owner/repo/issues/456). If omitted, adds labels to the item that triggered this workflow." | ||
| "type": ["number", "string"], | ||
| "pattern": "^(\\d+|#?aw_[A-Za-z0-9_]{3,12})$", | ||
| "description": "Issue or PR number to add labels to. This is the numeric ID from the GitHub URL (e.g., 456 in github.com/owner/repo/issues/456). Can also be a temporary_id from a previously created issue in the same workflow run \u2014 use the '#aw_abc123' form; the bare 'aw_abc123' form is also accepted and normalised to '#aw_abc123'. If omitted, adds labels to the issue or PR that triggered this workflow. Only works for issue or pull_request event triggers. For schedule, workflow_dispatch, or other triggers, item_number is required \u2014 omitting it will silently skip the label operation." |
Comment on lines
619
to
623
| "inputSchema": { | ||
| "type": "object", | ||
| "required": ["issue_number", "milestone_number"], | ||
| "required": ["issue_number"], | ||
| "properties": { | ||
| "issue_number": { |
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.77.4.