Repository navigation
feat(openclaw-id): allow 256 members and 10 browsers per member on a claw - #192859
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis 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.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe 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]
Technical reviewBest 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
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +3, Tests +46, Docs +3, Other +2. Total +54 across 4 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed November 4, 2026, 6:10 PM ET / 23:10 UTC (Revision 2). |
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.
f3e11d1 to
d0ba777
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
…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.
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:
Evidence
vitestoverpackages/openclaw-id-protocol: 19 files, 131 tests passed, including the new cap tests.config/test-lines-allocations/openclaw-id-claw-limits.txt(local check againstmaind7ee885db8f: OK, slack 17).