Skip to content

Abort logic for harbor trajectories#28

Open
nightlessbaron wants to merge 2 commits into
prodfrom
e2e/msa-bbq
Open

Abort logic for harbor trajectories#28
nightlessbaron wants to merge 2 commits into
prodfrom
e2e/msa-bbq

Conversation

@nightlessbaron
Copy link
Copy Markdown

Summary

Adds abort-signal propagation for harbor trajectories. When the rollout finishes with finish_reason == "abort", the session server sets an x-sglang-aborted: 1 response header so the agent can stop immediately.

This is needed because some litellm versions remap "abort""stop"/"tool_calls", masking the finish reason; reading the raw response header is the only reliable cross-version detection path.

This commit was split out of PR #17 (steps-metrics) into its own branch so it can be reviewed and merged independently into prod.

Changes

  • miles/rollout/session/sessions.py: emit x-sglang-aborted header on abort (+8 lines).

🤖 Generated with Claude Code

@nightlessbaron nightlessbaron requested a review from a team as a code owner May 29, 2026 18:29
@flukeskywalker
Copy link
Copy Markdown

flukeskywalker commented May 30, 2026

It seems the precommit issues causing the tests to fail are pre-existing? Why didn't tests fail on the recent commit? Any idea @DavidBellamy ?

@DavidBellamy
Copy link
Copy Markdown
Collaborator

This is upstream CI failing because some (16) unrelated files made their way into our prod branch without undergoing pre commit. Those files don't respect ruff/black.

Run

pre-commit run --all-files

On the prod branch and it'll resolve this CI.

@flukeskywalker @nightlessbaron

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.

3 participants