Skip to content

fix(ci): pass required --system-prompt to engineer-bot author phase - #642

Merged
eric-wang-1990 merged 2 commits into
mainfrom
fix/engineer-bot-author-system-prompt
Aug 11, 2026
Merged

fix(ci): pass required --system-prompt to engineer-bot author phase#642
eric-wang-1990 merged 2 commits into
mainfrom
fix/engineer-bot-author-system-prompt

Conversation

@eric-wang-1990

@eric-wang-1990 eric-wang-1990 commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

The engineer-bot Fix workflow fails at the "Run bug-fix author" step for every issue-triggered run:

engineer-bot: error: the following arguments are required: --system-prompt
##[error]Process completed with exit code 2.

Root cause

engineer-bot.yaml invoked the author phase with the pre-#89 CLI form:

python -m databricks_bot_engine.engineer_bot.run --phase author --bot .bot

Engine #89 externalized the prompts out of the engine. The author phase now requires both:

  • --system-prompt PATH — argparse-required=True (this is the arg that produced the exit 2 above).
  • --user-prompt PATH — required for the author phase, enforced in run.py main() (rendered as a template, filling {{issue_*}} from author.env_tokens in .bot/config.yaml).

All bot workflows are pinned to ENGINE_REF d05dcb1, which includes #89. The followup workflow was updated for it; the author step here was missed. This breaks every issue-triggered engineer-bot fix, e.g. run 31474456965 on #640.

Fix

Pass both prompt paths, mirroring the engine's own canonical engineer-bot.yml:

--system-prompt .bot/prompts/engineer/system.md
--user-prompt   .bot/prompts/engineer/user.md

Both files already exist in this repo. --flow is intentionally omitted — .bot/config.yaml sets flow: bug-fix as the default.

This pull request and its description were written by Isaac.

The author step invoked `engineer_bot.run --phase author --bot .bot`
without `--system-prompt`. Engine #89 made that argument required and
removed the built-in default, so the pinned engine (ENGINE_REF
d05dcb1) now exits 2 with "the following arguments are required:
--system-prompt" before any fix work runs — failing every
issue-triggered engineer-bot fix.

The followup workflow was updated for engine #89 but the author step
in this workflow was missed. Point it at the author system prompt in
.bot/prompts/engineer/system.md, mirroring engineer-bot-followup.yml.

Co-authored-by: Isaac

@peco-review-bot peco-review-bot 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.

✅ No issues identified by the review bot.

Engine #89 requires the author phase to receive BOTH --system-prompt
(argparse-required) and --user-prompt (enforced in run.py main()). This
repo's .bot/config.yaml has no author.build_user_prompt hook and renders
.bot/prompts/engineer/user.md via author.env_tokens, so --user-prompt is
mandatory. Passing only --system-prompt clears the argparse error but the
run would still SystemExit at the user-prompt check. Mirror the engine's
canonical engineer-bot.yml, which passes both.

Co-authored-by: Isaac

@peco-review-bot peco-review-bot 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.

✅ No issues identified by the review bot.

@eric-wang-1990
eric-wang-1990 added this pull request to the merge queue Aug 11, 2026
@eric-wang-1990
eric-wang-1990 removed this pull request from the merge queue due to a manual request Aug 11, 2026
@eric-wang-1990
eric-wang-1990 added this pull request to the merge queue Aug 11, 2026
Merged via the queue into main with commit a3b9f38 Aug 11, 2026
17 checks passed
@eric-wang-1990
eric-wang-1990 deleted the fix/engineer-bot-author-system-prompt branch August 11, 2026 16:43
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