Strengthen daily max-credit test prompt with forced multi-turn large-file reads#37669
Merged
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
Force multi-turn large-file reads in daily max AI credits test prompt
Strengthen daily max-credit test prompt with forced multi-turn large-file reads
Jun 7, 2026
Copilot created this pull request from a session on behalf of
pelikhan
June 7, 2026 22:46
View session
pelikhan
approved these changes
Jun 7, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR aims to make the “Daily Max AI Credits Test” more reliably exceed the per-run max-ai-credits: 1 budget by forcing multiple assistant turns and multiple large-file read tasks, so the firewall cutoff behavior is exercised deterministically.
Changes:
- Strengthened the
daily-max-ai-credits-testprompt to require at least 4 assistant turns and explicit large-file reads across turns. - Updated the expected-outcome wording to emphasize a cutoff before all jobs complete.
- Refreshed generated content in
daily-ambient-context-optimizer.lock.yml(metadata and workflow description string).
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/daily-max-ai-credits-test.md | Updates the intentionally-failing prompt contract to drive higher credit/token usage via forced multi-turn large-file reads. |
| .github/workflows/daily-ambient-context-optimizer.lock.yml | Updates generated lock metadata and workflow description text for the ambient context optimizer workflow. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 2/2 changed files
- Comments generated: 2
Comment on lines
+47
to
50
| Use **at least four separate assistant turns**. Do not combine all work into one response. | ||
|
|
||
| This invocation consumes AI credits. Since the per-run budget is 1, the AWF firewall will | ||
| cut off the agent before or immediately after this call, causing the run to fail. | ||
| Turn 1: Call `noop` with the message: "Starting max-ai-credits multi-turn guardrail test." | ||
|
|
Comment on lines
1418
to
1421
| env: | ||
| WORKFLOW_NAME: "Daily Ambient Context Optimizer" | ||
| WORKFLOW_DESCRIPTION: "Samples recent agentic workflow runs, inspects the first DLLM request text, and recommends prompt, skill, and agent changes to shrink ambient context" | ||
| WORKFLOW_DESCRIPTION: "Samples recent agentic workflow runs, inspects the first DLLM request from API proxy event logs, and recommends prompt, skill, and agent changes to shrink ambient context" | ||
| HAS_PATCH: ${{ needs.agent.outputs.has_patch }} |
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.
The daily max credit test was too lightweight and could complete without reliably crossing the per-run credit boundary. This change makes the prompt explicitly drive higher token/credit consumption so the
max-ai-credits: 1guardrail is exercised deterministically.What changed
/home/runner/work/gh-aw/gh-aw/.github/workflows/daily-max-ai-credits-test.mdto require a minimum of 4 assistant turns.Prompt contract updates
noop.pkg/parser/schemas/main_workflow_schema.json.github/workflows/daily-max-ai-credits-test.lock.yml.github/workflows/daily-credit-limit-test.lock.ymlIllustrative prompt excerpt