Skip to content

Device pairing: bind setup codes to node approvals - #46794

Closed
vincentkoc wants to merge 3 commits into
mainfrom
vincentkoc-code/pr-device-pair-node-setup-code
Closed

vincentkoc wants to merge 3 commits into
mainfrom
vincentkoc-code/pr-device-pair-node-setup-code

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

Summary

  • Problem: setup-code pairing did not bind the issued code to the intended node role and scope set.
  • Why it matters: approval should preserve the intended pairing profile instead of accepting a wider role/scope request later in the flow.
  • What changed: setup-code issuance now records the intended role and scopes, and bootstrap verification rejects mismatches.
  • What did NOT change: the existing pairing flow, token lifetime, and approval UI flow remain the same.

Change Type

  • Bug fix
  • Auth / tokens

User-visible / Behavior Changes

  • Setup-code pairing now preserves the intended node profile through verification.
  • Mismatched role or scope requests are rejected instead of being accepted under the same setup code.

Verification

  • pnpm test -- src/infra/device-bootstrap.test.ts

Human Verification

  • Verified scenarios: matching node role/scope requests succeed; mismatched role and scope requests fail.
  • Edge cases checked: empty scope lists are preserved and compared consistently.
  • What I did not verify: no live device-pair approval session was exercised in this branch.

Compatibility / Migration

  • Backward compatible? Yes
  • Config/env changes? No
  • Migration needed? No

Failure Recovery

  • How to disable/revert this change quickly: revert this PR.
  • Known bad symptoms reviewers should watch for: setup-code pairing requests failing after the requester asks for a different role or scope than the issued code allows.

@vincentkoc vincentkoc self-assigned this Mar 15, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review March 15, 2026 03:53
@greptile-apps

greptile-apps Bot commented Mar 15, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR fixes a security gap in device-pairing where setup codes were issued without binding them to the intended node role and scope set, allowing a verification request with a wider role or scope to succeed under the same code. The fix records roles and scopes into the bootstrap token record at issuance time and enforces them in verifyDeviceBootstrapToken before consuming the token.

Key changes:

  • issueDeviceBootstrapToken now accepts optional role and scopes parameters and persists them into the state file alongside the token.
  • verifyDeviceBootstrapToken checks the requested role against entry.roles and the requested scopes against entry.scopes, returning bootstrap_token_invalid on any mismatch.
  • Both call sites (extensions/device-pair/index.ts and src/pairing/setup-code.ts) are updated to pass role: "node", scopes: [].
  • Tests cover persistence of the new fields and rejection of mismatched role/scope requests, but the happy-path test for constrained token verification is missing — there is no test asserting that a matching role+scope request succeeds for a constrained token (see inline comment).
  • The index-based scope comparison implicitly depends on normalizeDeviceAuthScopes returning a sorted array; a comment or set-based comparison would make this contract more explicit.

Confidence Score: 4/5

  • Safe to merge with the caveat that a positive test for constrained token verification should be added.
  • The core enforcement logic is correctly implemented and the two call sites are consistently updated. The main gap is a missing happy-path test — no test verifies that a role+scope-constrained token actually succeeds when the correct values are presented. This means a logic inversion in the matching code would not be caught by the test suite. The scope comparison's reliance on sorted normalization is safe but implicit. No migration, config, or API breaking changes.
  • src/infra/device-bootstrap.test.ts — missing positive verification test for constrained tokens.
Prompt To Fix All With AI
This is a comment left during a code review.
Path: src/infra/device-bootstrap.ts
Line: 125-133

Comment:
**Scope comparison is order-sensitive and relies on normalizer internals**

The element-by-element index comparison is safe *today* because `normalizeDeviceAuthScopes` returns a sorted, deduplicated array for both sides. However, this is an implicit contract: if the normalization function ever stops sorting (e.g. changes to preserve insertion order), the comparison silently breaks without any compile-time or test-time signal.

A more robust alternative is to compare using the same `Set`-based approach that `normalizeDeviceAuthScopes` already uses internally, or to at least leave a comment tying the comparison to the sort guarantee:

```ts
// Both arrays are sorted+deduplicated by normalizeDeviceAuthScopes,
// so index equality is equivalent to set equality here.
if (
  allowedScopes.length !== requestedScopes.length ||
  allowedScopes.some((value, index) => value !== requestedScopes[index])
) {
  return { ok: false, reason: "bootstrap_token_invalid" };
}
```

Alternatively, a set-based check avoids the dependency entirely:

```ts
const allowedSet = new Set(allowedScopes);
const requestedSet = new Set(requestedScopes);
if (
  allowedSet.size !== requestedSet.size ||
  [...requestedSet].some((s) => !allowedSet.has(s))
) {
  return { ok: false, reason: "bootstrap_token_invalid" };
}
```

How can I resolve this? If you propose a fix, please make it concise.

---

This is a comment left during a code review.
Path: src/infra/device-bootstrap.test.ts
Line: 221-259

Comment:
**Missing happy-path test for constrained token verification**

The PR adds two negative tests (role mismatch → reject, scope mismatch → reject) but never adds a corresponding positive test: issue a token with `role: "node", scopes: []` and then verify it with the *same* role and scopes, expecting `{ ok: true }`.

Without this test, a regression that accidentally inverts or short-circuits the `allowedRoles` / `allowedScopes` check (e.g. always returning `{ ok: false }` for constrained tokens) would not be caught by the test suite. The negative tests would still pass even if matching tokens were never actually accepted.

Consider adding a test that issues a role+scope-constrained token and asserts `verifyDeviceBootstrapToken` resolves to `{ ok: true }` when the same role and scopes are presented in the verification call.

How can I resolve this? If you propose a fix, please make it concise.

Last reviewed commit: 7b3630e

Comment on lines +125 to +133
if (Array.isArray(entry.scopes)) {
const allowedScopes = normalizeDeviceAuthScopes(entry.scopes);
if (
allowedScopes.length !== requestedScopes.length ||
allowedScopes.some((value, index) => value !== requestedScopes[index])
) {
return { ok: false, reason: "bootstrap_token_invalid" };
}
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Scope comparison is order-sensitive and relies on normalizer internals

The element-by-element index comparison is safe today because normalizeDeviceAuthScopes returns a sorted, deduplicated array for both sides. However, this is an implicit contract: if the normalization function ever stops sorting (e.g. changes to preserve insertion order), the comparison silently breaks without any compile-time or test-time signal.

A more robust alternative is to compare using the same Set-based approach that normalizeDeviceAuthScopes already uses internally, or to at least leave a comment tying the comparison to the sort guarantee:

// Both arrays are sorted+deduplicated by normalizeDeviceAuthScopes,
// so index equality is equivalent to set equality here.
if (
  allowedScopes.length !== requestedScopes.length ||
  allowedScopes.some((value, index) => value !== requestedScopes[index])
) {
  return { ok: false, reason: "bootstrap_token_invalid" };
}

Alternatively, a set-based check avoids the dependency entirely:

const allowedSet = new Set(allowedScopes);
const requestedSet = new Set(requestedScopes);
if (
  allowedSet.size !== requestedSet.size ||
  [...requestedSet].some((s) => !allowedSet.has(s))
) {
  return { ok: false, reason: "bootstrap_token_invalid" };
}
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/infra/device-bootstrap.ts
Line: 125-133

Comment:
**Scope comparison is order-sensitive and relies on normalizer internals**

The element-by-element index comparison is safe *today* because `normalizeDeviceAuthScopes` returns a sorted, deduplicated array for both sides. However, this is an implicit contract: if the normalization function ever stops sorting (e.g. changes to preserve insertion order), the comparison silently breaks without any compile-time or test-time signal.

A more robust alternative is to compare using the same `Set`-based approach that `normalizeDeviceAuthScopes` already uses internally, or to at least leave a comment tying the comparison to the sort guarantee:

```ts
// Both arrays are sorted+deduplicated by normalizeDeviceAuthScopes,
// so index equality is equivalent to set equality here.
if (
  allowedScopes.length !== requestedScopes.length ||
  allowedScopes.some((value, index) => value !== requestedScopes[index])
) {
  return { ok: false, reason: "bootstrap_token_invalid" };
}
```

Alternatively, a set-based check avoids the dependency entirely:

```ts
const allowedSet = new Set(allowedScopes);
const requestedSet = new Set(requestedScopes);
if (
  allowedSet.size !== requestedSet.size ||
  [...requestedSet].some((s) => !allowedSet.has(s))
) {
  return { ok: false, reason: "bootstrap_token_invalid" };
}
```

How can I resolve this? If you propose a fix, please make it concise.

Comment on lines +221 to +259
it("rejects a role that does not match the issued pairing profile", async () => {
const baseDir = await createTempDir();
const issued = await issueDeviceBootstrapToken({
baseDir,
role: "node",
scopes: [],
});

await expect(
verifyDeviceBootstrapToken({
token: issued.token,
deviceId: "device-123",
publicKey: "public-key-123",
role: "operator",
scopes: [],
baseDir,
}),
).resolves.toEqual({ ok: false, reason: "bootstrap_token_invalid" });
});

it("rejects scopes that do not match the issued pairing profile", async () => {
const baseDir = await createTempDir();
const issued = await issueDeviceBootstrapToken({
baseDir,
role: "node",
scopes: [],
});

await expect(
verifyDeviceBootstrapToken({
token: issued.token,
deviceId: "device-123",
publicKey: "public-key-123",
role: "node",
scopes: ["operator.admin"],
baseDir,
}),
).resolves.toEqual({ ok: false, reason: "bootstrap_token_invalid" });
});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing happy-path test for constrained token verification

The PR adds two negative tests (role mismatch → reject, scope mismatch → reject) but never adds a corresponding positive test: issue a token with role: "node", scopes: [] and then verify it with the same role and scopes, expecting { ok: true }.

Without this test, a regression that accidentally inverts or short-circuits the allowedRoles / allowedScopes check (e.g. always returning { ok: false } for constrained tokens) would not be caught by the test suite. The negative tests would still pass even if matching tokens were never actually accepted.

Consider adding a test that issues a role+scope-constrained token and asserts verifyDeviceBootstrapToken resolves to { ok: true } when the same role and scopes are presented in the verification call.

Prompt To Fix With AI
This is a comment left during a code review.
Path: src/infra/device-bootstrap.test.ts
Line: 221-259

Comment:
**Missing happy-path test for constrained token verification**

The PR adds two negative tests (role mismatch → reject, scope mismatch → reject) but never adds a corresponding positive test: issue a token with `role: "node", scopes: []` and then verify it with the *same* role and scopes, expecting `{ ok: true }`.

Without this test, a regression that accidentally inverts or short-circuits the `allowedRoles` / `allowedScopes` check (e.g. always returning `{ ok: false }` for constrained tokens) would not be caught by the test suite. The negative tests would still pass even if matching tokens were never actually accepted.

Consider adding a test that issues a role+scope-constrained token and asserts `verifyDeviceBootstrapToken` resolves to `{ ok: true }` when the same role and scopes are presented in the verification call.

How can I resolve this? If you propose a fix, please make it concise.

@vincentkoc

Copy link
Copy Markdown
Member Author

Addressed the follow-up notes.

  • Added the missing happy-path test for a constrained token with matching role and scopes.
  • Added an inline note documenting why the scope comparison is safe after normalization.

Verification:

  • pnpm test -- src/infra/device-bootstrap.test.ts

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. labels May 22, 2026
@clawsweeper

clawsweeper Bot commented May 22, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed July 5, 2026, 8:17 AM ET / 12:17 UTC.

Summary
The branch adds role/scope binding to device bootstrap token issuance, updates setup-code call sites to request node/empty scopes, adds bootstrap tests, and adds a changelog entry.

PR surface: Source +34, Tests +76, Docs +1. Total +111 across 5 files.

Reproducibility: yes. for the current merge blocker: source inspection shows current main uses PAIRING_SETUP_BOOTSTRAP_PROFILE and profile redemption state while this branch hard-codes node/empty scopes. I did not run a live device-pair session in this read-only review.

Review metrics: 1 noteworthy metric.

  • Setup-code issuance binding: 2 call sites changed to node/empty-scope token binding. Setup-code issuance is an auth boundary, and current main now relies on a shared profile constant for mobile handoff compatibility.

Stored data model
Persistent data-model change detected: serialized state: src/infra/device-bootstrap.test.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster
Relationship: superseded
Canonical: #83684
Summary: This PR is superseded by merged profile-based QR/setup-code bootstrap handoff work, with later scope hardening in the same area.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge readiness
Overall: 🧂 unranked krab
Proof: 🌊 off-meta tidepool
Patch quality: 🧂 unranked krab
Result: blocked by patch quality or review findings.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • A maintainer should close it as superseded or rebuild it on current main while preserving PAIRING_SETUP_BOOTSTRAP_PROFILE and profile redemption coverage.

Risk before merge

  • [P1] Merging or rebasing this branch while preserving the node-only setup-code binding would remove the current bounded operator handoff used by mobile QR/setup-code onboarding.
  • [P1] The branch is live-conflicting with current main, and conflict resolution would touch a bootstrap-token authorization boundary and upgrade-sensitive setup workflow.
  • [P1] The branch still carries a normal CHANGELOG.md edit even though repository policy says release generation owns changelog entries.

Maintainer options:

  1. Close Superseded Branch (recommended)
    Close this stale branch and keep the current profile-based bootstrap contract from the merged handoff and scope-hardening PRs.
  2. Rebase By Preserving Profile Contract
    If the branch is revived, rebase it by using PAIRING_SETUP_BOOTSTRAP_PROFILE and the current profile/pending/redeemed state model instead of direct node-only roles/scopes.
  3. Accept Node-Only Policy Explicitly
    Maintainers could intentionally choose a node-only setup-code policy, but that requires fresh mobile onboarding proof and docs/tests that replace the current handoff contract.

Next step before merge

  • [P2] Protected maintainer ownership, live conflicts, and auth-boundary direction make this a human close-or-rework decision rather than a safe automated repair job.

Maintainer decision needed

  • Question: Should this protected maintainer PR be closed as superseded by the merged profile-based QR/setup-code bootstrap handoff work, or should it be reworked on top of current main?
  • Rationale: The maintainer label and MEMBER author prevent automatic close, and the remaining choice is ownership/direction for an auth-boundary PR rather than a narrow automated repair.
  • Likely owner: vincentkoc — He owns the current PR and has prior setup-code bootstrap history, so he is the best first person to decide whether to close or revive the branch.
  • Options:
    • Close As Superseded (recommended): Close this PR and point to [codex] restore QR bootstrap operator handoff #83684 plus fix(gateway): gate talk secret bootstrap handoff #85690 as the current owner of the setup-code bootstrap contract.
    • Rework On Current Main: Keep the PR only if a maintainer wants Vincent or another owner to rebuild it around PAIRING_SETUP_BOOTSTRAP_PROFILE and current profile redemption state.
    • Keep For Separate Direction: Keep it open only if maintainers intentionally want a new node-only setup-code policy despite the documented mobile handoff contract.

Security
Needs attention: Security review needs attention because the stale branch changes bootstrap-token authorization and conflicts with the current profile-based pairing trust boundary.

Review findings

  • [P1] Preserve the setup-code bootstrap profile — src/pairing/setup-code.ts:403-405
Review details

Best possible solution:

Retire this branch in favor of the merged profile-based handoff work; any renewed fix should start from current main and preserve PAIRING_SETUP_BOOTSTRAP_PROFILE, pending/redeemed profile tracking, and the gateway/mobile handoff docs and tests.

Do we have a high-confidence way to reproduce the issue?

Yes for the current merge blocker: source inspection shows current main uses PAIRING_SETUP_BOOTSTRAP_PROFILE and profile redemption state while this branch hard-codes node/empty scopes. I did not run a live device-pair session in this read-only review.

Is this the best way to solve the issue?

No. The best fix is the current profile-based bootstrap contract on main, not merging this stale role/scope-only branch shape as-is.

Full review comments:

  • [P1] Preserve the setup-code bootstrap profile — src/pairing/setup-code.ts:403-405
    Current main issues setup codes with PAIRING_SETUP_BOOTSTRAP_PROFILE, which carries the node token plus bounded operator handoff documented in docs/gateway/protocol.md and covered by gateway tests. This branch hard-codes role: "node", scopes: []; if revived that way, mobile QR/setup-code onboarding would lose hello-ok.auth.deviceTokens. Late surfacing: the earlier ClawSweeper pass called this out as security risk rather than a line-level finding.
    Confidence: 0.91
    Late finding: first raised on code an earlier review cycle already covered.

Overall correctness: patch is incorrect
Overall confidence: 0.91

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 785ab7477982.

Label changes

Label justifications:

  • P1: The PR touches setup-code/bootstrap authentication in a way that can break mobile onboarding and authorization if revived incorrectly.
  • merge-risk: 🚨 compatibility: The branch conflicts with current main's documented setup-code profile handoff and could break existing mobile QR/setup-code onboarding behavior.
  • merge-risk: 🚨 security-boundary: The diff changes bootstrap token role/scope authorization and state shape, which is part of the pairing trust boundary.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🌊 off-meta tidepool and patch quality is 🧂 unranked krab.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The external contributor proof gate does not apply because this is a MEMBER-authored maintainer PR; the PR body reports focused tests but no live device-pair session.
Evidence reviewed

PR surface:

Source +34, Tests +76, Docs +1. Total +111 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 3 36 2 +34
Tests 1 76 0 +76
Docs 1 1 0 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 113 2 +111

Security concerns:

  • [medium] Stale setup-code auth boundary — src/pairing/setup-code.ts:403
    The branch constrains setup-code issuance with node-only role/scope fields instead of the current profile-based handoff, so a naive rebase could remove the bounded operator token path used for native onboarding.
    Confidence: 0.9
  • [medium] Divergent bootstrap token state shape — src/infra/device-bootstrap.ts:64
    The branch persists direct roles/scopes while current main uses profile, redeemedProfile, and pendingProfile to support multi-role bootstrap handoff and retry behavior, making authorization behavior sensitive to conflict resolution.
    Confidence: 0.86

What I checked:

  • Repository policy read: Root AGENTS.md and extensions/AGENTS.md were read fully; auth/session state, setup workflows, protected maintainer items, release-owned changelog, and plugin boundary guidance apply to this review. (AGENTS.md:1, 785ab7477982)
  • Live PR state: GitHub reports the PR as open, author vincentkoc, label maintainer, assigned to vincentkoc, mergeable CONFLICTING, mergeStateStatus DIRTY, and the prior ClawSweeper comment already identified the branch as superseded but needing maintainer handling. (db3f25ae7509)
  • PR branch binding shape: The PR branch changes setup-code issuance to hard-code role "node" with empty scopes and stores direct roles/scopes on bootstrap token records. (src/pairing/setup-code.ts:403, db3f25ae7509)
  • Current main setup-code profile: Current main defines PAIRING_SETUP_BOOTSTRAP_PROFILE as node plus bounded operator handoff scopes and both setup-code entry points issue tokens with that profile constant. (src/shared/device-bootstrap-profile.ts:27, 785ab7477982)
  • Current main token state model: Current main persists profile, redeemedProfile, and pendingProfile so one bootstrap credential can support the current multi-leg handoff/retry contract instead of a one-shot direct roles/scopes record. (src/infra/device-bootstrap.ts:238, 785ab7477982)
  • Current docs and tests: Current docs state that built-in setup-code bootstrap returns a primary node token plus bounded operator token, and gateway tests assert that the operator handoff excludes admin/pairing scopes while preserving the mobile QR retry path. Public docs: docs/gateway/protocol.md. (docs/gateway/protocol.md:134, 785ab7477982)

Likely related people:

  • vincentkoc: Vincent Koc authored and is assigned to this PR, and earlier merged setup-code bootstrap-token work appears in the same src/pairing/setup-code.ts history. (role: PR owner and prior area contributor; confidence: medium; commits: c71fb8cda07c, 7b3630e31054, db3f25ae7509; files: src/pairing/setup-code.ts, src/infra/device-bootstrap.ts, extensions/device-pair/index.ts)
  • ngutman: Nimrod Gutman authored the merged PRs that restored and then hardened the current QR/setup-code profile handoff contract. (role: recent area contributor; confidence: high; commits: 94d8391c0323, c791e4242bc8, 69fe999373fd; files: src/shared/device-bootstrap-profile.ts, src/gateway/server/ws-connection/message-handler.ts, docs/gateway/protocol.md)
  • steipete: Peter Steinberger authored the earlier node-binding commit and the profile centralization/reuse commits that shaped the current bootstrap profile API. (role: feature-history contributor; confidence: high; commits: a600c72ed7d0, 6686f1cb2ce3, 04c69ea3a0aa; files: src/infra/device-bootstrap.ts, src/shared/device-bootstrap-profile.ts, src/pairing/setup-code.ts)
  • pgondhi987: Pavan Kumar Gondhi authored the merged node-only setup-code direction that the later canonical handoff work explicitly corrected for native onboarding. (role: adjacent contributor; confidence: medium; commits: b17e77a22bf4; files: src/infra/device-bootstrap.ts, src/shared/device-bootstrap-profile.ts, src/gateway/server/ws-connection/message-handler.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@clawsweeper

clawsweeper Bot commented May 22, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper PR egg

🔥 Warming up: real-behavior proof passed; findings, security review, or rank-up moves are still in progress.

Hatch command

Comment @clawsweeper hatch when this PR is hatchable.

Hatchability rules:

  • Merged PRs are hatchable.
  • Open PRs are hatchable when they are status: 👀 ready for maintainer look, status: 🚀 automerge armed, or labeled clawsweeper:automerge.
  • Closed unmerged PRs are hatchable only when one of those hatchable labels is still present in the durable record.
What is this egg doing here?
  • Eggs appear after the PR passes real-behavior proof. It is here for vibes, not verdicts: it does not change labels, ratings, merge decisions, or automation.
  • The shell reacts to review momentum: open follow-up work warms it up, re-review makes it wobble, and a clean final review lets it hatch.
  • Hatchability usually comes from sufficient real-behavior proof, no blocking P0/P1/P2 findings, no security attention needed, and clean correctness. A merged PR is already final, so merge makes the egg hatchable independently.
  • The hatch is seeded from this repository and PR number, so the same PR keeps the same creature; the reviewed head SHA can only change safe visual details.
  • Rarity is just collectible sparkle: 🥚 common, 🌱 uncommon, 💎 rare, ✨ glimmer, and 🌈 legendary.

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels May 22, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Jun 16, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Jun 24, 2026
@clawsweeper clawsweeper Bot removed the rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. label Jul 1, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Jul 1, 2026
@steipete

steipete commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Closing as superseded by the current bootstrap-pairing hardening on main.

Those maintained changes cover the privilege-escalation concern more completely than this branch's older exact role/scope array comparison, including gateway handshake and client reconnect tests. There is no unique fix left to replay. Thanks @vincentkoc for identifying the missing bootstrap-profile binding.

@steipete steipete closed this Jul 6, 2026
@shakkernerd
shakkernerd deleted the vincentkoc-code/pr-device-pair-node-setup-code branch October 19, 2026 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: device-pair maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants