Skip to content

fix(agent-device): stop renewing commands answered unreachable - #723

Merged
V3RON merged 2 commits into
mainfrom
bug/545
Oct 20, 2026
Merged

V3RON merged 2 commits into
mainfrom
bug/545

Conversation

@V3RON

@V3RON V3RON commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Closes #545

Status

Implement: done. Review: complete. Hardware: n/a. Gate: parent coordinates; do not merge.

An agent-device command answered WORKER_UNREACHABLE now ends its front renewal reference immediately. The lease remains available for retry or heartbeat recovery, and the front does not release it or terminate worker work.

Done when

  • Stop periodic renewals after the unreachable answer, including after reconnect: triage regression in gateway-front.test.ts.
  • Preserve the lease and heartbeat recovery: disconnected/reconnect test in gateway-front.test.ts.
  • Update the module manual and HTTP API description; remove the stale renewal comment.

Assumptions

  • Assumption: retain the existing final renewal attempt when the last command reference ends; no periodic timer remains for the unreachable command.

Review

Spec review: 0 blocking, 0 fixed, 0 notes. Code review: 0 blocking, 0 fixed, 0 notes. Claims review: 0 blocking, 0 fixed, 0 notes.
Rounds: 1. Tokens: n/a.
Assessment: complete.

Written by an agent.

V3RON added 2 commits October 19, 2026 11:11
1 failing -> 0 failing. End only the answered command renewal reference; preserve worker work and heartbeat recovery.
@V3RON

V3RON commented Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

Review ledger

Runs: 4. Cost USD: 1.2523. Agent seconds: 606.
Tokens input 84, output 21865, cache read 1377837, cache write 181883.

  • review 1 reviewer both: claude-sonnet-5-5 320 s $0.1354
  • review 1 spec both: claude-sonnet-5-5 20 s $0.1128
  • review 1 code both: claude-opus-5-5 233 s $0.882
  • review 1 claims both: claude-sonnet-5-5 33 s $0.1221
    Finding outcomes: {}. Classes: {}.
{"findings": []}

Written by an agent.

@V3RON
V3RON marked this pull request as ready for review October 20, 2026 06:23
@V3RON
V3RON merged commit 36e072e into main Oct 20, 2026
43 checks passed
@V3RON
V3RON deleted the bug/545 branch October 20, 2026 06:24
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.

A command answered WORKER_UNREACHABLE keeps its lease renewed until the run limit

1 participant