Repository navigation
feat(plugin-sdk): publish identifier authentication contract - #123793
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 27, 2026, 6:50 AM ET / 10:50 UTC. ClawSweeper reviewWhat this changesPublishes the identifier-authentication type through the channel-plugin SDK, documents transport-backed strengths, and replaces legacy identifier declarations in bundled channels. Merge readinessThis PR remains necessary: the landed ingress-kernel prerequisite does not include this distinct public SDK export and bundled-channel migration. No blocking correctness defect was found; it should remain open for normal maintainer merge handling. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherChannel plugins map inbound transport events to sender identities, then the shared ingress policy evaluates those identities for allowlists and command access. This PR lets plugin authors express that identity-strength contract and aligns bundled channels with it. flowchart LR
A[Inbound channel event] --> B[Plugin identity declaration]
B --> C[Authentication strength]
C --> D[Ingress allowlist policy]
D --> E[Command and dispatch outcome]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +33, Tests +75, Docs +19, Other +18. Total +145 across 15 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land this focused companion after exact-head validation, retaining the documented deprecated mappings while external plugins migrate to the single public type. Do we have a high-confidence way to reproduce the issue? Not applicable: this is an additive SDK and bundled-plugin contract change rather than a report of broken existing behavior. Is this the best way to solve the issue? Yes. Re-exporting only the generic type from the existing ingress SDK subpath is the narrowest public seam; exposing host admission-evidence APIs or adding a parallel contract would widen the boundary unnecessarily. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 7245ad03b794. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (10 earlier review cycles; latest 8 shown)
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
6b3c6db to
132fc7c
Compare
|
Maintainer refresh 2026-08-27 (head
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
b75ea16 to
ab16839
Compare
ab16839 to
5f6f55c
Compare
|
Merged via squash.
|
…w#123793) * feat(plugin-sdk): publish identifier authentication contract * fix(discord): distinguish PluralKit identity provenance * fix(discord): preserve PluralKit group provenance --------- Co-authored-by: Omar Shahine <[email protected]>
Companion to kernel PR #123782 (RFC openclaw/rfcs#51, tracking #124218). Refreshed 2026-08-27 by maintainer review: restacked onto the landed kernel squash (main commit d561469), and slimmed — the exact-field compatibility repairs (Discord tag, Twitch roles) moved into the kernel PR where they belong, so this PR is now purely the public contract plus the bundled-channel migrations. #123782 is landed on main; this PR completes the stack in the same release.
What Problem This Solves
The kernel grades identifier authentication, but external channel plugins cannot name the generic strength type through the supported SDK boundary, and the six bundled channels still declare the deprecated
dangerous: trueinstead of explicit strengths with documented transport facts (the RFC's PR-4 go/no-go gate).Why This Change Was Made
IdentifierAuthenticationthroughopenclaw/plugin-sdk/channel-ingress-runtime(+1 to the export budget, justified in-line; packaged consumer proves the positive import and, via@ts-expect-error, that host admission-evidence minting stays private).docs/plugins/sdk-channel-ingress.md: Discord Gateway user IDverified/ PluralKit member IDasserted(per-message map) / names+tagsmutable; Google Chatsender.nameverified/ emailmutable; Mattermost post user IDverified/ usernamemutable; IRC prefix+user@hostasserted/ nicksmutable; Teams sender/conversation IDsasserted/ namemutable; Slack IDsasserted(relay mode caps the shared claim) / namesmutable.mutableviamin(), so no outcome changes.User Impact
Existing default admissions and rejections are unchanged: every formerly non-dangerous bundled identifier is now
verifiedorasserted, and every formerdangerous: truealias is explicitlymutable. External plugin authors can type transport-authentication claims through the real package subpath.Evidence
5f6f55c9cdcatop the landed kernel (d5614697454on main); original commits preserve @omarshahine's authorship (the fourth original commit was dropped as already-upstream after relocation).pnpm plugin-sdk:surface:check: 147 entrypoints, 4,346 public exports, 0 forbidden subpaths.check:changedfull plan and real-behavior proof (mock-gatewaychannel-sender-allowlistscenario) recorded on the stack head — see the run details in the PR discussion.