Skip to content

feat(cli): simlock rotate and MCP rotate_device - #1123

Merged
V3RON merged 52 commits into
callstackincubator:mainfrom
leonardoxr:task/1108
Oct 31, 2026
Merged

V3RON merged 52 commits into
callstackincubator:mainfrom
leonardoxr:task/1108

Conversation

@leonardoxr

@leonardoxr leonardoxr commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Closes #1108

Status

Stacked on #1122; its diff includes #1122's commits until #1122 merges. CodeRabbit is not reviewing this repository at the moment (no activity on any PR since 2026-10-30 20:25 UTC), so this PR had the blind spec/code/claims review only.

  • The Tests lines pass, with server.test.ts's schema-key table (F11) holding rotate_device. (src/cli/index.test.ts "simlock rotate", src/mcp/server.test.ts "MCP rotate_device" and the smoke test's tool table)
  • simlock rotate --help, the root usage and the CLI reference agree; simlock instructions and connect-your-agent list rotate_device. (src/cli/commands/rotate.ts, src/cli/index.ts, cli.mdx, src/instructions/index.ts, connect-your-agent.mdx)

Assumptions

none

Review

Spec review: 0 blocking, 0 fixed, 0 notes. Code review: 3 blocking, 3 fixed, 0 notes. Claims review: 0 blocking, 0 fixed, 0 notes.
Round 2: Spec review: 1 blocking, 1 fixed, 0 notes. Code review: 1 blocking, 1 fixed, 1 note. Claims review: 0 blocking, 0 fixed, 0 notes.

  • R1 (code): simlock rotate row in the CLI reference's command table — aea4fb3
  • R2 (spec): simlock rotate through a gateway (--gateway) case added to the rotate CLI test — fbfc5a7
  • R3 (code, note): src/instructions/index.ts, documentation 8 — not fixed (non-blocking)
  • task/1107 round-2 fixes merged in — 54dd125
    Rounds: 2. Tokens: n/a.
    Assessment: complete

Written by an agent.

leonardoxr and others added 30 commits October 31, 2026 00:50
…tation, and is refused (callstackincubator#1107)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…r and gets ROTATION_UNSUPPORTED naming it (callstackincubator#1107)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…blet simulator (callstackincubator#1107)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…s and gets INPUT_UNAVAILABLE with the reason (callstackincubator#1107)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… when the helper or the write fails (callstackincubator#1107)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…esh helper; a socket open during a rotate keeps its helper (callstackincubator#1107)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…s sockets and device.rotate (callstackincubator#1107)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…gets the op's output (callstackincubator#1107)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…rotate (callstackincubator#1107)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ugh a gateway (callstackincubator#1107)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…eway (callstackincubator#1107)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…wn message (callstackincubator#1107)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…he unknown message (callstackincubator#1107)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ller's lease id (callstackincubator#1107)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… <id> to <orientation> (callstackincubator#1108)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ubator#1108)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…on (callstackincubator#1108)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…#1108)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…us leases, and exits 12 for ROTATION_UNSUPPORTED (callstackincubator#1108)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ase rotates (callstackincubator#1108)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ubator#1108)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…fusal as tool errors (callstackincubator#1108)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…otating (callstackincubator#1107)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ate_device (callstackincubator#1108)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… test asserts the canonical names (callstackincubator#1108)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
leonardoxr and others added 2 commits October 31, 2026 02:10
…rove rotate's cases (callstackincubator#1107)

The coordinator rewrote the worker's lease id only for two codes and with a
substring replace; it now maps every coded error's details.leaseId and replaces
the id only as a whole token. The rotate e2e test sends all four orientation
names, covers a rejected open and a failed shared input, and no longer waits on
the daemon's real host-load probe on Linux; the registry's lease-end close and
failure drop get a unit test.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ls, and reword the orientation claims (callstackincubator#1107)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@leonardoxr

leonardoxr commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor Author

Review ledger

Round 1: 7603ff6

Runs: 7. Cost USD: 4.2757. Agent seconds: 3632.
Tokens input 382, output 101744, cache read 10398792, cache write 646090.
- build implementer: claude-sonnet-5-5 784 s $1.3822
- audit implementer: claude-sonnet-5-5 1947 s $0.7957
- review 1 reviewer: claude-sonnet-5-5 425 s $0.2643
- review 1 spec: claude-sonnet-5-5 24 s $0.1555
- review 1 code both: claude-opus-5-5 264 s $1.2048
- review 1 claims: claude-sonnet-5-5 37 s $0.1319
- fix 1 implementer: claude-sonnet-5-5 151 s $0.3413
Finding outcomes: {"fixed":3,"incorrect":1,"nonblocking":1}. Classes: {"testing 3":5}.
{"findings":[{"id":"R1","role":"code","class":"testing 3","outcome":"fixed","path":"src/cli/commands/rotate.ts","round":"1","fix":"33b7b5313766f3deec391a15685f04aed5699fc4"},{"id":"R2","role":"code","class":"testing 3","outcome":"fixed","path":"src/cli/commands/rotate.ts","round":"1","fix":"33b7b5313766f3deec391a15685f04aed5699fc4"},{"id":"R3","role":"code","class":"testing 3","outcome":"fixed","path":"src/mcp/contracts.ts","round":"1","fix":"33b7b5313766f3deec391a15685f04aed5699fc4"},{"id":"R4","role":"code","class":"testing 3","outcome":"nonblocking","path":"src/mcp/session.ts","round":"1"},{"id":"R5","role":"code","class":"testing 3","outcome":"incorrect","path":"src/instructions/index.ts","round":"1"}]}

Written by an agent.

@V3RON
V3RON merged commit 1c1c9f5 into callstackincubator:main Oct 31, 2026
66 of 69 checks passed
V3RON added a commit that referenced this pull request Oct 31, 2026
….rotate uses it (#1106)

Refs #1105

ADR 0053: the daemon owns each lease's device input, so `device.rotate`
works with the input module off. Implemented by #1122, #1123 and #1124
(all merged); this PR flips its status to Accepted.

## Review

Spec review: skipped. Code review: skipped. Claims review: skipped.
Assessment: complete

The maintainer approved the ADR in the #1105 spec session; docs-only ADR
PRs get no code review.

*Written by an agent.*

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Szymon Chmal <szymon@chmal.it>
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.

simlock rotate and MCP rotate_device

2 participants