Skip to content

Fix repo-assist: add safe output discipline and iteration limits#19516

Merged
T-Gro merged 5 commits intomainfrom
copilot/debug-repo-assist-failure
Mar 31, 2026
Merged

Fix repo-assist: add safe output discipline and iteration limits#19516
T-Gro merged 5 commits intomainfrom
copilot/debug-repo-assist-failure

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 30, 2026

Agent spent ~37 minutes creating ~25 test file variants across 5+ issues without ever calling safe output MCP tools, producing empty agent_output.json. The workflow infrastructure correctly flagged this as a failure.

Changes to .github/workflows/repo-assist.md

  • New "Safe Output Discipline" section — four rules to prevent zero-output runs:
    • Produce outputs incrementally after each work item, not batched at end
    • Call noop with explanation if no action is warranted
    • Cap test iteration at 3 build-and-test cycles per issue
    • Reserve 10 minutes for Task FINAL; wrap up after 40 minutes
  • Task 1: Emit safe outputs immediately after each issue, not deferred
  • Task 2 step 3: 3-attempt limit, single test file (no variant proliferation)
  • Task 2 steps 4/5: Create PR or comment immediately on pass/fail — do not defer

Lock file and tooling upgrade

Ran gh aw upgrade and gh aw compile to regenerate lock files (v0.64.2 → v0.64.4):

  • .github/workflows/repo-assist.lock.yml — updated frontmatter hash and action versions
  • .github/workflows/regression-pr-shepherd.lock.yml — updated action versions
  • .github/aw/actions-lock.json — updated action SHAs
  • .github/agents/agentic-workflows.agent.md — updated version references

…op fallback

Root cause: Agent spent ~37 minutes creating ~25 test files across 5+ issues
without calling any safe output MCP tools, resulting in empty agent_output.json.

- Add "Safe Output Discipline" section with incremental output, noop fallback,
  3-attempt iteration limit per issue, and time awareness rules
- Task 1: call safe output tools immediately after each issue
- Task 2: limit build-and-test cycles to 3 per issue, create PRs immediately,
  do not create multiple test file variants

Agent-Logs-Url: https://github.com/dotnet/fsharp/sessions/cf589816-f234-44e2-9245-742907ee5d27

Co-authored-by: T-Gro <46543583+T-Gro@users.noreply.github.com>
Copilot AI changed the title [WIP] Debug Repo Assist workflow failure Fix repo-assist: add safe output discipline and iteration limits Mar 30, 2026
Copilot AI requested a review from T-Gro March 30, 2026 14:09
Copy link
Copy Markdown
Member

@T-Gro T-Gro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imo you must also gh aw upgrade and gh aw compile, the .lock.yml file must be carrying a diff which I do not see here.

Updates gh-aw from v0.64.2 to v0.64.4:
- Regenerate repo-assist.lock.yml with new frontmatter hash
- Regenerate regression-pr-shepherd.lock.yml
- Update actions-lock.json with new action SHAs
- Update agentic-workflows.agent.md version references

Agent-Logs-Url: https://github.com/dotnet/fsharp/sessions/0f6b9ce7-da31-403c-b633-6bb5f004484e

Co-authored-by: T-Gro <46543583+T-Gro@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Mar 30, 2026

imo you must also gh aw upgrade and gh aw compile, the .lock.yml file must be carrying a diff which I do not see here.

Done in 5886b80. Ran gh aw upgrade and gh aw compile — lock files now updated (v0.64.2 → v0.64.4), including the new frontmatter hash for repo-assist.lock.yml, updated action SHAs in actions-lock.json, and version references in agentic-workflows.agent.md.

Copilot AI requested a review from T-Gro March 30, 2026 14:30
@T-Gro T-Gro marked this pull request as ready for review March 30, 2026 16:36
@T-Gro T-Gro requested a review from a team as a code owner March 30, 2026 16:36
@T-Gro T-Gro requested a review from abonie March 30, 2026 16:36
@github-actions
Copy link
Copy Markdown
Contributor

✅ No release notes required

@T-Gro T-Gro merged commit f3b6407 into main Mar 31, 2026
4 checks passed
@T-Gro T-Gro deleted the copilot/debug-repo-assist-failure branch March 31, 2026 09:23
Copilot AI added a commit that referenced this pull request Mar 31, 2026
)

* Initial plan

* Fix repo-assist: add safe output discipline, iteration limits, and noop fallback

Root cause: Agent spent ~37 minutes creating ~25 test files across 5+ issues
without calling any safe output MCP tools, resulting in empty agent_output.json.

- Add "Safe Output Discipline" section with incremental output, noop fallback,
  3-attempt iteration limit per issue, and time awareness rules
- Task 1: call safe output tools immediately after each issue
- Task 2: limit build-and-test cycles to 3 per issue, create PRs immediately,
  do not create multiple test file variants

Agent-Logs-Url: https://github.com/dotnet/fsharp/sessions/cf589816-f234-44e2-9245-742907ee5d27

Co-authored-by: T-Gro <46543583+T-Gro@users.noreply.github.com>

* Run gh aw upgrade and gh aw compile to regenerate lock files

Updates gh-aw from v0.64.2 to v0.64.4:
- Regenerate repo-assist.lock.yml with new frontmatter hash
- Regenerate regression-pr-shepherd.lock.yml
- Update actions-lock.json with new action SHAs
- Update agentic-workflows.agent.md version references

Agent-Logs-Url: https://github.com/dotnet/fsharp/sessions/0f6b9ce7-da31-403c-b633-6bb5f004484e

Co-authored-by: T-Gro <46543583+T-Gro@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: T-Gro <46543583+T-Gro@users.noreply.github.com>
Co-authored-by: Tomas Grosup <Tomas.Grosup@gmail.com>
Co-authored-by: Adam Boniecki <20281641+abonie@users.noreply.github.com>
Co-authored-by: abonie <20281641+abonie@users.noreply.github.com>
Copilot AI added a commit that referenced this pull request Mar 31, 2026
)

* Initial plan

* Fix repo-assist: add safe output discipline, iteration limits, and noop fallback

Root cause: Agent spent ~37 minutes creating ~25 test files across 5+ issues
without calling any safe output MCP tools, resulting in empty agent_output.json.

- Add "Safe Output Discipline" section with incremental output, noop fallback,
  3-attempt iteration limit per issue, and time awareness rules
- Task 1: call safe output tools immediately after each issue
- Task 2: limit build-and-test cycles to 3 per issue, create PRs immediately,
  do not create multiple test file variants

Agent-Logs-Url: https://github.com/dotnet/fsharp/sessions/cf589816-f234-44e2-9245-742907ee5d27

Co-authored-by: T-Gro <46543583+T-Gro@users.noreply.github.com>

* Run gh aw upgrade and gh aw compile to regenerate lock files

Updates gh-aw from v0.64.2 to v0.64.4:
- Regenerate repo-assist.lock.yml with new frontmatter hash
- Regenerate regression-pr-shepherd.lock.yml
- Update actions-lock.json with new action SHAs
- Update agentic-workflows.agent.md version references

Agent-Logs-Url: https://github.com/dotnet/fsharp/sessions/0f6b9ce7-da31-403c-b633-6bb5f004484e

Co-authored-by: T-Gro <46543583+T-Gro@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: T-Gro <46543583+T-Gro@users.noreply.github.com>
Co-authored-by: Tomas Grosup <Tomas.Grosup@gmail.com>
Co-authored-by: Adam Boniecki <20281641+abonie@users.noreply.github.com>
Co-authored-by: abonie <20281641+abonie@users.noreply.github.com>
Copilot AI added a commit that referenced this pull request Mar 31, 2026
)

* Initial plan

* Fix repo-assist: add safe output discipline, iteration limits, and noop fallback

Root cause: Agent spent ~37 minutes creating ~25 test files across 5+ issues
without calling any safe output MCP tools, resulting in empty agent_output.json.

- Add "Safe Output Discipline" section with incremental output, noop fallback,
  3-attempt iteration limit per issue, and time awareness rules
- Task 1: call safe output tools immediately after each issue
- Task 2: limit build-and-test cycles to 3 per issue, create PRs immediately,
  do not create multiple test file variants

Agent-Logs-Url: https://github.com/dotnet/fsharp/sessions/cf589816-f234-44e2-9245-742907ee5d27

Co-authored-by: T-Gro <46543583+T-Gro@users.noreply.github.com>

* Run gh aw upgrade and gh aw compile to regenerate lock files

Updates gh-aw from v0.64.2 to v0.64.4:
- Regenerate repo-assist.lock.yml with new frontmatter hash
- Regenerate regression-pr-shepherd.lock.yml
- Update actions-lock.json with new action SHAs
- Update agentic-workflows.agent.md version references

Agent-Logs-Url: https://github.com/dotnet/fsharp/sessions/0f6b9ce7-da31-403c-b633-6bb5f004484e

Co-authored-by: T-Gro <46543583+T-Gro@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: T-Gro <46543583+T-Gro@users.noreply.github.com>
Co-authored-by: Tomas Grosup <Tomas.Grosup@gmail.com>
Co-authored-by: Adam Boniecki <20281641+abonie@users.noreply.github.com>
Co-authored-by: abonie <20281641+abonie@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

[aw] Repo Assist failed

3 participants