Repository navigation
XIP-81: align with shipped libxmtp - #137
Conversation
ApprovabilityVerdict: Needs human review 1 blocking correctness issue found. Documentation-only changes to an XIP specification aligning it with shipped implementation. However, the author does not own this file (owned by @jhaaaa), and there is an unresolved review comment about an inconsistency in the validation algorithm description. You can customize Macroscope's approvability policy. Learn more. |
- Add explicit pre-commit evaluation rule (Section 2.4) and a matching security-considerations subsection. Permissions for every AppDataUpdate resolve against the pre-commit registry / admin lists; a commit cannot grant a permission and exercise it in the same commit. Bootstrap is the only exception and routes through a dedicated validator. - Update Test Cases to use shipped ComponentIds (GroupName at 0x8004, SuperAdminList at 0x8001, ConversationType at 0xBFFF, reserved 0xFF50) and add tests for the pre-commit rule, unknown-component tolerance, steady-state floor bumps, and Step A pause behavior. Move BatchProposal and KeyValueDelta tests to a "deferred" list paired with their feature. - Rationale: replace "Why range-based defaults with an override map" with "Why a per-component registry". Note BatchProposal deferral in the atomic-batching rationale. - Security Considerations: drop the "ComponentId range model" framing, reference the registry directly, note pre-commit evaluation, drop the BatchProposal sub-operation paragraph. - Backward Compatibility: BatchProposal subsection now notes deferral. - Section 1.4 table: drop the BatchProposal exception (deferred); reword AppDataUpdate row from "proposed" to "shipped". - Section 3.3 reference fix: "steps 2a-2d" -> "Step B".
- §2.2.1: "register-then-write" was wrongly said to fit in one commit; pre-commit evaluation forces split commits (or bootstrap path). - §2.2.1: clarify that SUPER_ADMIN_LIST permission is enforced in code, not from the registry — registry just covers it for type dispatch. - Rationale "Why one-time migration": drop the "only happens when all members support" claim; the shipped version-bump path pauses non-supporting peers instead of blocking the migration on them. - Rationale "Application ComponentId registration alternatives": on-chain registry is deferred; v1 ships per-group explicit registration with duplicate-id rejection at register time. - Test 8: spell out the two-proposer scenario so the pre-commit evaluation property is testable rather than ambiguous.
…nt handle - Move pre-d14n migration support out of "Optional future work" and into the existing two-step bootstrap line — that mechanism is exactly what makes pre-d14n migrations safe (lower-version peers pause on Step A). - §2.2.2 + Open Questions §5: add a brief note on a 32-byte stable identifier per application-range component, resolved by the SDK to the per-group 16-bit ComponentId. Lets multiple apps ship components without coordinating on the 16-bit namespace.
| When receiving an `AppDataUpdate` proposal: | ||
|
|
||
| 1. Verify the proposer is a current member of the group. All `AppDataUpdate` proposals MUST be rejected with `ActorNotMember` if the proposer is not a member, regardless of the target ComponentId or permission level. | ||
| 1. Verify the proposer is a current member of the group. All `AppDataUpdate` proposals MUST be rejected with `ActorNotMember` if the proposer is not a member, regardless of the target ComponentId. |
There was a problem hiding this comment.
🟡 Medium XIPs/xip-81-app-data-updates.md:228
Step 7 only rejects Remove operations on immutable components when they are already present, but Section 2.2 states immutable components MUST be rejected unconditionally — including Remove on non-existent IDs. This creates an inconsistency: the validation algorithm allows removing a non-existent immutable ID, while the normative prose forbids it. Consider clarifying step 7 to reject all Remove operations on immutable ranges regardless of presence, or document that the prose overstates the requirement.
🚀 Reply "fix it for me" or copy this AI Prompt for your agent:
In file XIPs/xip-81-app-data-updates.md around line 228:
Step 7 only rejects `Remove` operations on immutable components when they are already present, but Section 2.2 states immutable components MUST be rejected unconditionally — including `Remove` on non-existent IDs. This creates an inconsistency: the validation algorithm allows removing a non-existent immutable ID, while the normative prose forbids it. Consider clarifying step 7 to reject all `Remove` operations on immutable ranges regardless of presence, or document that the prose overstates the requirement.
Updates XIP-81 to match what landed in libxmtp.
0x8000, immutables counting down from0xBFFF. Drops the permission-banded sub-ranges from the draft.0x8000replaces range defaults +PermissionOverrideMap.MinimumSupportedProtocolVersionis itself a component (0x800A), so steady-state floor bumps work viaAppDataUpdate.ComponentIduses QUIC vlen; inbox-id-bearing components use the versionedInboxIdTLS encoding.EnableProposalsOptions { force, min_version }API surface.BatchProposal(§4), KeyValue app-data API (§5), cross-group ComponentId allocator (§2.2.2), protocol-version readiness signaling (§3.1).Note
Align XIP-81 spec with shipped libxmtp implementation
Updates xip-81-app-data-updates.md to match the state of the landed libxmtp implementation.
📊 Macroscope summarized 8cec7b3. 1 file reviewed, 2 issues evaluated, 0 issues filtered, 1 comment posted
🗂️ Filtered Issues