Skip to content

test(cli): check a 0.49.1 peer drops a removed device, and document the device commands - #3082

Merged
kunickiaj merged 1 commit into
mainfrom
test/l2-older-peer-removal
Nov 29, 2026
Merged

kunickiaj merged 1 commit into
mainfrom
test/l2-older-peer-removal

Conversation

@kunickiaj

@kunickiaj kunickiaj commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

Description

This closes two items left on the Remove and Block device work: test plan L2, and the CLI reference.

L2: an older peer drops a removed device. A peer from before 0.50 never asks the coordinator which devices were removed. It has to lose a removed device from its scope membership cache anyway, at its next refresh. The packed artifact smoke now checks this against a real 0.49.1 install. It reuses the 0.49.1 install that the upgrade smoke already makes.

  1. Two devices get sync identities from 0.49.1.
  2. The candidate CLI creates a coordinator group, enrolls both devices, creates a Sharing domain and grants it to both.
  3. The candidate coordinator starts on loopback.
  4. The 0.49.1 core runs one signed refreshScopeMembershipCache and caches both devices.
  5. The administrator removes one device through /v1/admin/devices/removal-preview and /v1/admin/devices/removal, the routes Devices → Remove device uses.
  6. The 0.49.1 peer's next signed refresh caches only itself.

CLI reference. A new section explains how coordinator device remove, disable and revoke differ from Remove device and Block device permanently in the Viewer, and says that Block has no CLI command.

Type of Change

  • 🚀 Feature (new functionality)
  • 🐛 Bug fix (fixes an issue)
  • 📚 Documentation (docs-only change)
  • 🔧 Maintenance (refactor, chore, CI, etc.)
  • 🧪 Testing (test-only changes)

Testing

  • pnpm build and pnpm --filter codemem test:packed-artifact passed: "Packed 0.49.1 peer drops a device the candidate coordinator removed at its next scope refresh". The 0.49.1 peer caches both devices before the removal, so the check after it would fail if the removed device stayed.

  • The packages/cli/scripts tests passed (16 tests), and the lint ratchet passed.

  • Relevant checks pass locally (pnpm run tsc, pnpm run lint, pnpm run test)

  • Added/updated tests for changes

  • Manually verified changes work as expected

Checklist

  • Code follows project style (pnpm run lint passes for touched files)
  • Self-review completed
  • Documentation updated (if needed)
  • No new warnings introduced

…he device commands

Test plan L2 for Remove device: a peer from before 0.50 never asks the
coordinator about removals, so it must lose a removed device from its
scope membership cache at its next refresh. The packed smoke now runs
the published 0.49.1 core against the candidate coordinator: both
devices are enrolled and granted a Sharing domain, the 0.49.1 peer
caches both, the administrator removes one through the coordinator's
removal routes, and the peer's next signed refresh no longer caches it.

The CLI reference now says how coordinator device remove, disable and
revoke differ from Remove device and Block device permanently in the
Viewer, and that Block has no CLI command.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-29T07:10:02.612921Z 20ec31d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copy link
Copy Markdown
Owner Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@kunickiaj
kunickiaj merged commit 7bf96fa into main Nov 29, 2026
23 checks passed
@kunickiaj
kunickiaj deleted the test/l2-older-peer-removal branch November 29, 2026 07:17
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