Skip to content

feat(openclaw-id): allow 256 members and 10 browsers per member on a claw - #192859

Merged
jalehman merged 1 commit into
mainfrom
openclaw-d75/claw-limits
Nov 4, 2026
Merged

jalehman merged 1 commit into
mainfrom
openclaw-d75/claw-limits

Conversation

@jalehman

@jalehman jalehman commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

An OpenClaw ID claw refuses its 51st member and each person's sixth browser, which is too small for a shared team server: the OpenClaw team server alone has about 73 maintainers and 46–62 guests.

User Impact

A claw can now have up to 256 members with up to 10 browsers each, and an owner device certificate can carry up to 10 peer keys. Owner devices stay at 20. No Gateway behavior changes until the OpenClaw ID Gateway code that consumes these constants merges.

Why This Change Was Made

256 members is the statement list limit (MAX_LIST), so a snapshot listing every member still validates and no list format changes are needed. A new test builds a snapshot at every cap and checks that one more member hits the list limit. That snapshot is about 275 KiB of JSON (about 600 KiB if every account id character needs a JSON escape). The Discovery change sizes its snapshot publication limit for this and stops rewriting derived rows one statement at a time.

Deploy order: this loosens limits, so Discovery and the loader should take it before Gateways do. Companion changes:

  • openclaw/discovery: snapshot publication limit and derived-row writes
  • openclaw/claw-loader: re-vendored protocol

Evidence

  • vitest over packages/openclaw-id-protocol: 19 files, 131 tests passed, including the new cap tests.
  • Discovery (vendoring this commit): 30 files, 227 tests passed, including publishing a worst-case snapshot and checking relay admission and member listing.
  • claw-loader (vendoring this commit): typecheck and 83 unit tests passed; a reviewer smoke test parsed and verified a 280 KB snapshot at every cap.
  • Independent review of all three diffs found no P0–P2 issues.
  • Test-lines ratchet: the new cap tests add 46 test lines, covered by config/test-lines-allocations/openclaw-id-claw-limits.txt (local check against main d7ee885db8f: OK, slack 17).

@clawsweeper

clawsweeper Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 4, 2026
@clawsweeper

clawsweeper Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR raises claw capacity to 256 members, 10 browsers per member, and 10 peer keys per owner device.

Example: An authorized owner adds member 51 to a claw.

  • Before: The membership authority returns limit_reached.
  • After: The membership authority accepts the addition, up to 256 members.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused patch has no remaining actionable findings; supplied validation supports protocol boundaries but remains below end-to-end proof.
Proof confidence 🦐 gold shrimp (3/6) The supplied maintainer-author classification places this protocol-only PR outside the ordinary contributor proof gate; the body reports protocol and companion unit tests plus a loader parsing smoke, without a recorded shipped-entry-point exercise of the increased capacity.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: A shared team claw cannot accommodate more than 50 members or five browsers per member.
Reason: The supplied maintainer-authored direction addresses a concrete team-size constraint through the established protocol owner, without adding configuration or expanding the PR into Gateway integration.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: the capacity increase addresses a concrete team-size need and remains absent from main; the previous documentation finding is fixed, with no remaining actionable code findings.

Priority: P2
Reviewed head: d0ba777d7169ad50a5dc894e577d457dfe8bc08b

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The supplied evidence does not demonstrate a running Gateway publishing a snapshot at the increased caps and downstream consumers accepting it, or a red-on-base test run.
Agent review details

How this fits together

The shared protocol package validates signed statements and applies membership limits; Gateway consumers use its allowlist to admit peers and publish signed snapshots for Discovery and browser clients.

flowchart LR
 A[Signed membership change] --> B[Signature and capability checks]
 B --> C[Membership authority and limits]
 C --> D[Current allowlist]
 D --> E[Signed membership snapshot]
 E --> F[Discovery and browser consumers]
Loading

Technical review

Best possible solution:

Retain the focused shared-limit changes and boundary tests, following the documented consumer-first rollout.

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

Current-main constants and authority checks directly establish refusal of member 51 or a sixth member browser; no target code or tests were executed during this read-only review.

Is this the best way to solve the issue?

Changing the existing shared constants is the smallest complete protocol change, and the added tests protect distinct snapshot acceptance and list-overflow boundaries without introducing production machinery.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 8c9310ee3639.

Provenance checked

  • Membership and device capacity limits changes intended behavior with a stated reason (ed57ed7: The protocol introduction bounded the per-claw allowlist and kept snapshots within structural list limits; its stated rationale did not require exactly 50 members or five peer keys.)

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

PR surface

Source +3, Tests +46, Docs +3, Other +2. Total +54 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 7 4 +3
Tests 1 48 2 +46
Docs 1 8 5 +3
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 0 +2
Total 4 65 11 +54

Labels

Label changes:

  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: A bounded capacity improvement for an unshipped remote-access feature, with no demonstrated urgent regression in a released runtime.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-04T16:05:42.102Z sha f3e11d1 :: needs changes before merge. :: [P3] Update the owner certificate table to allow ten peer keys

Reviewed November 4, 2026, 6:10 PM ET / 23:10 UTC (Revision 2).

@jalehman
jalehman marked this pull request as ready for review November 4, 2026 22:32
MAX_MEMBERS 50 -> 256 (the statement list limit), MAX_MEMBER_PEER_KEYS and
MAX_OWNER_DEVICE_PEER_KEYS 5 -> 10. A snapshot at every cap still validates;
a test builds one and checks that one more member hits the list limit.
@jalehman
jalehman force-pushed the openclaw-d75/claw-limits branch from f3e11d1 to d0ba777 Compare November 4, 2026 23:01
@jalehman

jalehman commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 4, 2026
@jalehman
jalehman merged commit ff99f81 into main Nov 4, 2026
109 of 110 checks passed
@jalehman
jalehman deleted the openclaw-d75/claw-limits branch November 4, 2026 23:23
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 5, 2026
…penclaw#192859)

MAX_MEMBERS 50 -> 256 (the statement list limit), MAX_MEMBER_PEER_KEYS and
MAX_OWNER_DEVICE_PEER_KEYS 5 -> 10. A snapshot at every cap still validates;
a test builds one and checks that one more member hits the list limit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant