Skip to content

feat(cli): agent-crew cancel <build-id> (Tier 3, gated on platform #3409) - #108

Draft
abhishekmishragithub wants to merge 5 commits into
mainfrom
feat-cli-cancel-build
Draft

abhishekmishragithub wants to merge 5 commits into
mainfrom
feat-cli-cancel-build

Conversation

@abhishekmishragithub

@abhishekmishragithub abhishekmishragithub commented Aug 25, 2026 •

Copy link
Copy Markdown
Collaborator

Adds smallestai agent-crew cancel <build-id> with linked-project/--agent-id selection and --yes support. The command calls the organization-scoped backend cancellation endpoint from atoms-platform#3409. It accepts only a 2xx response containing data.message; redirects, malformed responses and failures exit nonzero, and 409 API reasons are preserved.

Build readers now recognize CANCELLED and TIMED_OUT, stop polling/streaming at those terminal states, and return a failure exit code when a deployment fails, is cancelled or times out. Rebased onto current SDK main, preserving its log scrubbing and bounded failure-tail behavior; cancellation errors also use the shared scrubber.

Validation: 298 offline custom tests passed, 1 skipped, 3 live integration tests deselected; Ruff check and format passed over 1,176 files. Current compile, test, lint and security CI checks passed. Live cancellation against a deployed backend was not run.

Keep draft until platform#3409 is deployed and staging cancellation is verified. Deploy the Lambda acceptance guard before backend cancellation/reaping and drain older in-flight Lambda invocations. Coordinate the new status readers before enabling the new backend states, then publish/enable the cancel command. No version bump or merge is performed here; publishing CI is skipped.

@crim-app

crim-app Bot commented Aug 25, 2026

Copy link
Copy Markdown

crim doesn't review pull requests automatically here.

Comment crim review on this pull request whenever you want a review.

Adds the CLI half of the build-cancel flow (CLI redesign Tier 3). New command
'smallestai agent-crew cancel <build-id>' with --agent-id and --yes, backed by
AtomsAPIClient.cancel_agent_build, which POSTs
/atoms/v1/sdk/agents/{agentId}/builds/{buildId}/cancel. A build that is already
terminal or deploying returns 409, surfaced as a clear message. Frees an agent's
build queue when a build hangs in QUEUED/BUILDING.

Gated on the platform cancel endpoint (atoms-platform #3409) shipping. No version
bump yet; release once the endpoint is live.

This branch has not been deployed

No deployments
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