Skip to content

🤖 tests: bug-bash scenario for the bash AI proxy - #5775

Merged
ThomasK33 merged 15 commits into
bash-ai-proxy/3-sshfrom
bash-ai-proxy/4-bugbash
Oct 6, 2026
Merged

ThomasK33 merged 15 commits into
bash-ai-proxy/3-sshfrom
bash-ai-proxy/4-bugbash

Conversation

@ThomasK33

@ThomasK33 ThomasK33 commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

Summary

make bug-bash gets a BUGBASH_SCENARIO=bash-ai-proxy scenario. A loopback fake provider is the app's chat model and the proxy's upstream. On each agent turn the fake model itself calls Xum's proxy, using the key Xum derives for that workspace's bash commands. A keyword in the message picks the calls, and the reply lists the HTTP results. Explorers can test the proxy, the Cost tab and Analytics end to end with no real model spend and with agent tools off.

PR 4 of 4. Test harness only.

Implementation

  • tests/bugbash/fakeProvider.ts: fixed call plans (one call, streamed, OpenAI chat and responses, five calls, twelve background calls, wrong key). The explorer picks only the plan. Probe answers carry fixed token counts, so explorers can check the Cost tab against them. The fake finds the workspace from the worktree path in the system prompt.
  • startApp.ts starts the fake and points both providers at it. It needs BUGBASH_AI=mock and sets XUM_DISABLE_AGENT_TOOLS=1 and XUM_DISABLE_TERMINALS=1 (AGENTS.md: no agent tools or terminals until the app runs in a sandbox). The bash env injection itself is covered by unit tests in 🤖 feat: count AI calls from bash commands in workspace costs (opt-in) #5772.
  • e2e.config.ts gives explorers a scenario context that lists the known, tracked findings. charters.bash-ai-proxy.txt holds the charters.

Run:

BUGBASH_AI=mock BUGBASH_SCENARIO=bash-ai-proxy BUGBASH_EFFORT=high \
  make bug-bash BUGBASH_ARGS="--charters tests/bugbash/charters.bash-ai-proxy.txt"

Validation

Four bug-bash rounds ran with an earlier version of this scenario, in which the fake model asked the agent to run fixed bash commands. Each round used Opus 5.5 and Sonnet 5.5 explorers at effort high. The first round covered six charters, about 16.6M explorer tokens in total.


Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high • Cost: $32.63

@ThomasK33
ThomasK33 added this pull request to stack #5776 October 6, 2026 18:11
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-06T20:41:32.061040Z 074dfd8 New commits
🔒 Security Review ✅ Completed 2026-10-06T20:40:58.391470Z 074dfd8 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e520c795ae

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tests/bugbash/startApp.ts Outdated
Comment thread tests/bugbash/charters.bash-ai-proxy.txt Outdated
Comment thread tests/bugbash/charters.bash-ai-proxy.txt Outdated
Comment thread tests/bugbash/charters.bash-ai-proxy.txt Outdated
@ThomasK33
ThomasK33 marked this pull request as draft October 6, 2026 18:21
@ThomasK33
ThomasK33 marked this pull request as ready for review October 6, 2026 18:57

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d3a6a857c7

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tests/bugbash/e2e.config.ts Outdated
Comment thread tests/bugbash/fakeProvider.ts Outdated
Comment thread tests/bugbash/charters.bash-ai-proxy.txt Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 31e3a046c9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tests/bugbash/fakeProvider.ts Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 84885d749b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tests/bugbash/fakeProvider.ts Outdated
Comment thread tests/bugbash/charters.bash-ai-proxy.txt Outdated
Comment thread tests/bugbash/fakeProvider.ts Outdated

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 074dfd8f29

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tests/bugbash/fakeProvider.ts
@ThomasK33
ThomasK33 added this pull request to the merge queue Oct 6, 2026
Merged via the queue into main with commit eeada15 Oct 6, 2026
58 of 61 checks passed
@ThomasK33
ThomasK33 deleted the bash-ai-proxy/4-bugbash branch October 6, 2026 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant