Skip to content

fix(core): nuke --delete-devices destroys an unclaimed provisioning device - #1518

Merged
V3RON merged 3 commits into
mainfrom
bug/1487
Nov 10, 2026
Merged

V3RON merged 3 commits into
mainfrom
bug/1487

Conversation

@V3RON

@V3RON V3RON commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Closes #1487

Status

Implement: done (1/1 green) Review: fix-check passed, 0 open Hardware: n/a Gate: running
Next: gate

Assumptions

none

Review

Spec review: 0 blocking, 0 fixed, 0 notes. Code review: 0 blocking, 0 fixed, 0 notes. Claims review: 1 blocking, 1 fixed, 0 notes.
Rounds: 1. Tokens: 1.2M.
Runs: 8. Cost USD: 1.6358. Agent seconds: 577.

Assessment: complete

Written by an agent.

@coderabbitai

coderabbitai Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Nuke now selects unleased devices in shutdown or provisioning state for destruction. A test verifies that Nuke reports and destroys a stalled provisioning device, then grants a subsequent Android lease on a different device. The Nuke cleanup-sequence paragraph was removed from the src/core/AGENTS.md documentation.

Severity of issue fixed: Medium

Merge Risk: Minimal · up to f11c2

The change enables Nuke to delete unleased provisioning devices. No actionable merge-blocking issue was established; it is ready for normal merge checks.

Pre-merge checks: Passed 5

Check name Status Explanation
Title check Passed The title clearly identifies the change: Nuke deletes an unclaimed device in provisioning state.
Description check Passed The description references the linked issue and reports implementation completion, so it is related to the changeset.
Linked Issues check Passed Issue #1487 asks nuke --delete-devices to remove a stalled provisioning device so it releases capacity. NukeService.#currentDestroyable now accepts unleased devices in provisioning or `shutdow…
Out of Scope Changes check Passed The code and test changes implement issue #1487. The src/core/AGENTS.md change removes a Nuke sequence description that only documented deleting shutdown devices, so it is related to the changed b…
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Full details: Linked Issues check

Explanation

Issue #1487 asks nuke --delete-devices to remove a stalled provisioning device so it releases capacity. NukeService.#currentDestroyable now accepts unleased devices in provisioning or shutdown, and #resetDevice passes them to the lifecycle destroy operation. The added test verifies that Nuke deletes the provisioning device, reports its ID, calls the driver destroy operation, and allows a later lease to use a different device.

Full details: Out of Scope Changes check

Explanation

The code and test changes implement issue #1487. The src/core/AGENTS.md change removes a Nuke sequence description that only documented deleting shutdown devices, so it is related to the changed behavior. No unrelated changes appear in the whole-PR diff.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 2 files.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: QUIET
  • Plan: Advanced
  • Run ID: 529e5ff0-a6b8-4dd0-9ef2-a1a658f6a677
Commits

Reviewing files that changed from the base of the PR and between fc8a897 and f11c23f.

Files selected for processing: 3

  • src/core/AGENTS.md
  • src/core/nuke-service.ts
  • src/core/nuke.test.ts
Files with no reviewable changes: 1

  • src/core/AGENTS.md

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 remain after this review.

@V3RON

V3RON commented Nov 10, 2026

Copy link
Copy Markdown
Contributor Author

Review ledger

Round 1: 1b217de
Round fix-check: f11c23f

Runs: 8. Cost USD: 1.6358. Agent seconds: 577.
Tokens input 129, output 29221, cache read 2459198, cache write 282986.
- build implementer: claude-sonnet-5-5 75 s $0.112
- audit implementer: claude-sonnet-5-5 25 s $0.1194
- review 1 reviewer: claude-sonnet-5-5 246 s $0.2629
- review 1 spec: claude-sonnet-5-5 10 s $0.0773
- review 1 code both: claude-opus-5-5 151 s $0.7798
- review 1 claims: claude-sonnet-5-5 16 s $0.0976
- fix 1 implementer: claude-sonnet-5-5 22 s $0.0848
- review fix-check reviewer: claude-sonnet-5-5 32 s $0.102
Finding outcomes: {"fixed":1}. Classes: {"documentation 7":1}.
{"findings":[{"id":"R1","role":"claims","class":"documentation 7","outcome":"fixed","path":"src/core/AGENTS.md","round":"1","fix":"f11c23f5fd7989ea44e07812287c9eacd469016c"}]}

Written by an agent.

@V3RON
V3RON marked this pull request as ready for review November 10, 2026 22:10
@V3RON
V3RON merged commit faa2b2b into main Nov 10, 2026
55 checks passed
@V3RON
V3RON deleted the bug/1487 branch November 10, 2026 22:18
V3RON added a commit that referenced this pull request Nov 29, 2026
…s unattended work, and a red main gets a triage (#1944)

## Not verified

- Stays a draft until #1950 (the gh shim) is on `main` and merged in
here.
- Then one fix-check.
- Reading `AGENTS_PAUSED` through a cloud proxy (a refusal stops cloud
routines); the revert on a real PR.

## Why

Before webhook deliveries: an outsider's issue could reach `main`
unread, nothing paused agents, nothing watched `main` (autonomy 7-10).

## What

- **Outsider hold.** The exit check holds any fix of an issue whose
author cannot write (read from GitHub); `fast-track-review` marks it.
- **Kill switch.** Claim, fast track, gate and red-main stop while repo
variable `AGENTS_PAUSED` exists.
- **Daily cap.** The exit check holds the 9th fix of a `fast-track` bug
merged in 24 hours.
- **Gate.** Checks every bug a PR closes; rereads holds and pause before
merging.
- **Issue text as data.** `claim.mjs <n> --text` writes the issue as
data, quoting non-writers.
- **Red main.** `red-main.mjs` reruns every first try; a test failing
both tries, not `flaky-test`, gets a `bug:new`; a lone `fast-track`
merge gets a ready revert and its bug reopens `bug:blocked`.
- **CI.** A push to `main` no longer cancels the previous push's run.
- **Docs.** Rules 8, 15, 17; DELIVERY.md; the label.
- **Sandbox:** dropped (Proof).

## Proof

Read-only `gh` shims; no write reached GitHub.

```
Outsider hold   entry check (--dry-run) on all 126 bugs filed since 2026-11-01, each as it stood
                when it became bug:ready: 41 pass, 33 of them the historic fast-track bugs (0 lost).
                fast-track-review on 4 outsiders' bugs: #1409 (PR #1533), #1487 (#1518),
                #1583 (#1890) - the 3 unattended merges - and #1714 (#1786), set ready by hand.
Cap             31 fast-track fixes merged since 2026-11-01; busiest 24 hours: 5; held by the cap: 0.
Kill switch     unit tests with a fake gh: claim, fast-track, merge-pr, red-main stop; a 502 stops.
Red main        36 failed CI push runs on main since 2026-11-01, none rerun at the time.
                1st try: 36 reruns. 2nd try, proxied by the next push run: 26 green,
                9 red but no test or job failed in both, 1 with no later run yet.
                Filed: 0. Reverts: 0. (The first rule would have filed 6, 4 followed by green.)
                No real break in the data: the one known (d7bd191, 2026-11-20) has a
                cancelled run, not a failed one. A real break costs one rerun of the failed jobs.
Sandbox         #1912's triage commands under @anthropic-ai/sandbox-runtime 0.0.83:
                gh fails TLS (x509 OSStatus -26276) without enableWeakerNetworkIsolation;
                daemon tests fail listen EPERM on their socket without allowAllUnixSockets;
                with both: gh reads, git fetch, git worktree, 28/28 tests pass.
                Still broken: git push -u (writing .git/config is denied).
                Not settable from .claude/settings.json: strictAllowlist (user or managed only),
                so in bypassPermissions any host is reached; and sandbox.enabled there would also
                sandbox hardware stages.
```

## Review

Spec review: skipped. Code review: 11 blocking, 11 fixed, 1 notes.
Claims review: 2 blocking, 2 fixed, 0 notes.
Rounds: 5. Tokens: 8.1M.
Assessment: complete

*Written by an agent.*
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.

nuke --delete-devices skips a device stalled in provisioning, so it holds a capacity slot forever

1 participant