Skip to content

fix(deps): mirror hax-sdk + python-dotenv into Docker requirements#68

Merged
AbirAbbas merged 1 commit into
mainfrom
fix/docker-requirements-hax-sdk
May 7, 2026
Merged

fix(deps): mirror hax-sdk + python-dotenv into Docker requirements#68
AbirAbbas merged 1 commit into
mainfrom
fix/docker-requirements-hax-sdk

Conversation

@AbirAbbas
Copy link
Copy Markdown
Collaborator

Summary

  • The Dockerfile installs from requirements-docker.txt, but that file had drifted from requirements.txt and was missing hax-sdk (added in feat(approval): rebase HITL plan-approval gate (supersedes #50) #66) and python-dotenv.
  • Deployed SWE-AF image therefore had no hax module. The HITL approval gate at swe_af/app.py:622 (from hax import HaxClient) blew up at runtime with No module named 'hax' whenever HAX_API_KEY was set.
  • Also bumps agentfield floor in the Docker list from >=0.1.73 to >=0.1.77 to match runtime requirements.txt (left-over drift from chore(deps): bump agentfield floor to >=0.1.77 #62).

Repro

Failing run on the test deployment: run_1778185367193_ab50c1cd (build reasoner, execution exec_20260507_202248_rtahrqx2). Error in internal logs:

❌ Execution exec_20260507_202248_rtahrqx2 failed asynchronously: No module named 'hax'

Test plan

  • CI builds the new image successfully.
  • Re-trigger an app.call("swe-planner.build", ...) with HAX_API_KEY set on the test deployment and confirm the approval gate creates a hax request instead of crashing.
  • No-HAX_API_KEY path is unchanged (the import is gated behind that env var, so the failure mode and the fix only affect the approval flow).

Notes

The two requirements files are easy to drift. Worth a follow-up to either consolidate (single file + extras) or wire a CI check that diffs them.

🤖 Generated with Claude Code

PR #66 added hax-sdk to runtime requirements.txt but left
requirements-docker.txt unchanged. The Dockerfile installs from
requirements-docker.txt, so the deployed image was missing hax-sdk
and the HITL approval gate failed at runtime with "No module named
'hax'" whenever HAX_API_KEY was set (swe_af/app.py:622).

Also bumps agentfield floor to >=0.1.77 to match the runtime list
(drift left over from PR #62) and adds python-dotenv>=1.0 which
was likewise missing from the docker variant.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@AbirAbbas AbirAbbas merged commit 5331b47 into main May 7, 2026
2 checks passed
@AbirAbbas AbirAbbas deleted the fix/docker-requirements-hax-sdk branch May 7, 2026 22:20
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