Skip to content

feat(channels): grade sender identifier authentication in the ingress kernel - #123782

Merged
steipete merged 8 commits into
mainfrom
omarshahine/rfc-0027-kernel
Aug 27, 2026
Merged

steipete merged 8 commits into
mainfrom
omarshahine/rfc-0027-kernel

Conversation

@omarshahine

@omarshahine omarshahine commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

Kernel PR of the accepted RFC (openclaw/rfcs#51, tracking #124218). Replaces the closed original #116281. Refreshed 2026-08-27 by maintainer review: rebased onto current main, four review findings applied, and the exact-field compatibility repairs relocated into this PR so it lands green on its own. #123793 remains the inseparable SDK/migration follow-up; keep both in the same release.

What Problem This Solves

Core models one axis of identifier trust: dangerous (mutable) versus everything else. A session-authenticated Discord snowflake and an attacker-typed SMTP From: header are indistinguishable to the allowlist gate. This PR adds the RFC's ordered identifier-authentication scale (verified > asserted > unverified > mutable) evaluated as min(entry, subject) >= minIdentifierAuthentication (default asserted — exactly today's behavior), with exact entry-to-subject match provenance, a per-message subject strength map, receipt integration, and the identifier_authentication_too_weak reason code. Threat-model item T-ACCESS-002 / recommendation R-008.

Why This Change Was Made

  • Exact match provenance. Same-kind matching is bound to the exact identity field (identityFieldKey); effective strength is computed per matched entry/subject pair. This resolves the RFC's per-kind-collapse question: a weak same-kind sibling can neither weaken nor borrow from a separately matched identifier.
  • Exact-field compatibility repairs (relocated from feat(plugin-sdk): publish identifier authentication contract #123793, plus three newly found). Five bundled channels relied on cross-field same-kind matching and would have regressed silently: Twitch role aliases (4 main tests fail without the fix), Discord legacy discriminator tags, Slack already-slugged name entries, IRC nick@host entries, and Feishu ambiguous open_id/user_id entries (caught by exact-head CI's wider extension shard; the ambiguous entry now normalizes under both same-kind fields). Each repair is a bounded entry-normalization fix binding entries to their exact owning field, with a failing-before regression test.
  • Missing-claim floor (review decision). A subject that supplies a per-message authentication map floors any omitted field key to unverified; an absent map keeps static field resolution. Without this, a per-message channel declaring a verified ceiling would fail open on any code path that forgot the map — the exact incident class the RFC closes. Channels with static strength omit the map entirely and are unaffected.
  • Single-resolution invariant. Strength is resolved once at normalization intake and is required on internal normalized shapes; downstream consumers read it directly. SDK-visible input shapes keep the optional contract.
  • One canonical gate. applyMutableIdentifierPolicy (internal-only, not SDK surface) is renamed to applyIdentifierAuthenticationPolicy with all callers migrated; no deprecated internal alias remains.
  • Receipt fidelity. Aggregated admission evidence reports affected when any contribution's outcome was changed by the policy (previously required all).

Shipped dangerous and mutableIdentifierMatching remain named deprecations with exact mappings (dangerous: true → mutable; enabled matching → minimum mutable); defaults are unchanged for every existing deployment. IdentifierAuthentication is channel-authorization policy input only — never execution-identity assurance.

User Impact

No behavior change on any default path. Release-note context for plugin authors: (1) IngressReasonCode gains identifier_authentication_too_weak — exhaustive switches over the union need a new arm; (2) same-kind allowlist matching is now bound to the exact identity field — an external channel plugin whose entry normalizers place entries under a different field than the subject's same-kind identifier must bind entries to the owning field (see the five bundled repairs in this PR for the pattern); previously such entries matched by kind.

Evidence

  • Head: c93dffd90c98 on current main; original three commits preserve @omarshahine's authorship.
  • Focused: kernel + admission + SDK-runtime suites 63/63; channel regressions Discord 77, Twitch 24/24.
  • Pre-fix reproductions recorded per repair: Twitch 4 failing (vip/subscriber/owner/multi-role), Discord tag 1 failing, Slack slugged-name 1 failing, IRC nick@host 1 failing, Feishu 3 files failing on exact-head CI run 33050839866; kernel floor regression admitted a spoofed omitted-claim alias before the fix.
  • Full sibling sweep: 8,661 tests across discord/slack/msteams/googlechat/mattermost/irc/twitch — all passing; full pnpm test:extensions on the stack head green except one pre-existing order-dependent WhatsApp failure reproduced identically on clean origin/main (monitor-inbox.policy.test.ts, passes in isolation; unrelated, follow-up filed).
  • check:changed full plan passed (guards, typechecks, lint, doctor contracts); pnpm build green including plugin-SDK export checks.
  • Real-behavior proof (mock-gateway harness, real ephemeral gateway + qa-channel transport, mock provider): scenario channel-sender-allowlist — blocked observer produced no outbound, allowlisted driver received the exact marker. Verdict:
{"scenarios":[{"name":"Channel sender allowlist block and override","status":"pass","steps":[{"name":"blocks observer and allows driver","status":"pass","details":"QA-ALLOWLIST-OVERRIDE-OK"}]}],"counts":{"total":1,"passed":1,"failed":0,"skipped":0}}
  • Production LOC +696/−226 (net +470) | tests +643/−39 | docs +50. Growth is the accepted-RFC capability (gate, provenance, receipt projection); the review pass itself was net +58 production, having also deleted the internal wrapper, downstream strength fallbacks, and three dead type exports.

@clawsweeper

clawsweeper Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@clawsweeper clawsweeper Bot added 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. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 14, 2026
@clawsweeper

clawsweeper Bot commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed August 27, 2026, 6:17 AM ET / 10:17 UTC.

ClawSweeper review

What this changes

The PR replaces binary mutable-identifier handling in channel ingress allowlists with graded sender-identifier authentication, then updates bundled-channel normalizers and admission receipts.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep open: the new exact-field authentication policy can reject a valid strict-threshold match when multiple normalized fields share one configured entry ID. The PR is also maintainer-owned and protected by the maintainer label.

Priority: P1
Reviewed head: c93dffd90c98faa716da2b00495e7f8c845ed8a0

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The implementation has meaningful focused coverage and a concrete harness record, but the shared entry-ID correctness defect blocks merge.
Proof confidence 🌊 off-meta tidepool Not applicable: This is a MEMBER-authored PR, so contributor proof is not a merge gate; its body nevertheless records a mock-gateway after-fix run for the default allowlist path, not the newly found strict shared-ID case.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This is a MEMBER-authored PR, so contributor proof is not a merge gate; its body nevertheless records a mock-gateway after-fix run for the default allowlist path, not the newly found strict shared-ID case.
Evidence reviewed 6 items Shared entry ID causes cross-field rejection: The policy groups all matched pairs by opaque entry ID, rejects that ID when any normalized entry fails its threshold, and then removes every match using the ID. This incorrectly couples separately normalized fields when they share a diagnostic ID.
Public ID hook permits the collision: The identity adapter invokes resolveEntryId separately for each normalized field, while the public contract describes it only as a stable diagnostic ID and does not require field uniqueness.
Concrete bundled collision pattern: Feishu deliberately normalizes one entry under both same-kind fields, but its ID generator uses only the raw entry index. A later distinct strength on either field would remove a valid counterpart match.
Findings 1 actionable finding [P2] Keep normalized entry fields separate during threshold filtering
Security None None.

Live Verification

Command: node scripts/run-node.mjs qa suite --provider-mode mock-openai --scenario channel-sender-allowlist --concurrency 1 --fast

Result: FAIL (failed) — step 1 expect_output channel-sender-allowlist: expected terminal output was not visible within 30 seconds: "channel-sender-allowlist"

[openclaw] Building TypeScript (dist is stale: missing_private_qa_dist - private QA dist entry missing).
[openclaw] Building bundled plugin assets.
[canvas] build: node scripts/bundle-a2ui.mjs
[log] ‹DIR›/a2ui.bundle.js  chunk │ size: 399.96 kB
[log] ‹DIR›/a2ui-v0.9.bundle.js  chunk │ size: 615.66 kB
[log]
[success] rolldown v1.2.0 Finished in 111.25 ms
[diffs] build: node --import tsx ../../scripts/build-diffs-viewer-runtime.mts curated
[diffs-language-pack] build: node --import tsx ../../scripts/build-diffs-viewer-runtime.mts full
[discord] build: node --import tsx ../../scripts/build-discord-activity-sdk.mts
[tsdown-build] invocation 1/2 finished in 0.8s
node_modules/playwright-core/lib/coreBundle.js (65821:28) [EVAL] Use of direct ˋevalˋ function is strongly discouraged as it poses security risks and may cause
issues with minification.
       ╭─[ node_modules/playwright-core/lib/coreBundle.js:65821:29 ]
       │
 65821 │               const value = eval(ˋ(${expr})ˋ);
       │                             ──┬─
       │                               ╰─── Use of direct ˋevalˋ here.
       │
       │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
───────╯

node_modules/playwright-core/lib/coreBundle.js (65828:28) [EVAL] Use of direct ˋevalˋ function is strongly discouraged as it poses security risks and may cause
issues with minification.
       ╭─[ node_modules/playwright-core/lib/coreBundle.js:65828:29 ]
       │
 65828 │               const value = eval(ˋ(${expr})ˋ);
       │                             ──┬─
       │                               ╰─── Use of direct ˋevalˋ here.
       │
       │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
───────╯

node_modules/web-tree-sitter/web-tree-sitter.js (2343:30) [EVAL] Use of direct ˋevalˋ function is strongly discouraged as it poses security risks and may cause
issues with minification.
      ╭─[ node_modules/web-tree-sitter/web-tree-sitter.js:2343:31 ]
      │
 2343 │           ASM_CONSTS[start] = eval(func);
      │                               ──┬─
      │                                 ╰─── Use of direct ˋevalˋ here.
      │
      │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
──────╯

node_modules/web-tree-sitter/web-tree-sitter.js (2366:32) [EVAL] Use of direct ˋevalˋ function is strongly discouraged as it poses security risks and may cause
issues with minification.
      ╭─[ node_modules/web-tree-sitter/web-tree-sitter.js:2366:33 ]
      │
 2366 │           moduleExports[name] = eval(func);
      │                                 ──┬─
      │                                   ╰─── Use of direct ˋevalˋ here.
      │
      │ Help: Consider using indirect eval. For more information, check the documentation: https://rolldown.rs/guide/troubleshooting#avoiding-direct-eval
──────╯

[tsdown-build] invocation 2/2 finished in 15.6s
[plugin-control-plane-loads] verified 36 built modules with native require and checked doctor closures
runtime-postbuild: 11 phases completed in 4613ms (slowest: built plugin control-plane loads 3751ms)
│
◇

OpenClaw 2026.8.1 (c93dffd) — The sass is configurable. The sass being load-bearing is not.

[qa-suite] run start: scenarios=1 concurrency=1 transport=qa-channel
[qa-suite] lab start
[qa-suite] lab ready: http://127.0.0.1:34125
[qa-suite] provider start: mock-openai
[qa-suite] provider ready: http://127.0.0.1:36515
[qa-suite] gateway start

Assertions:

  • FAIL expect_output: channel-sender-allowlist
  • FAIL expect_output: [qa-suite] run complete: passed=1 failed=0 skipped=0 total=1

How this fits together

Channel plugins normalize configured sender entries and inbound identities before the shared ingress kernel decides whether to dispatch a message. That decision also supplies redacted evidence to admitted agent runs.

flowchart LR
  A[Inbound channel message] --> B[Channel identity adapter]
  C[Configured allowlist] --> B
  B --> D[Normalized entry and subject pairs]
  D --> E[Authentication threshold]
  E --> F[Ingress admission decision]
  F --> G[Agent dispatch]
  F --> H[Redacted admission receipt]
Loading

Before merge

  • Keep normalized entry fields separate during threshold filtering (P2) - resolveEntryId may return one diagnostic ID for multiple fields, and Feishu now deliberately does so. This loop adds that shared ID when any field fails, then removes the accepted exact-field match at lines 148-150; a valid strong identifier is therefore rejected whenever a weak sibling normalizes from the same raw entry. Carry a field-specific internal match identity (or equivalent pair linkage) through the filter and add the mixed-strength regression.
  • Resolve merge risk (P1) - A strict authentication threshold can silently drop an allowlisted message when one raw entry normalizes under a valid strong field and an unrelated weak field sharing its opaque entry ID.
  • Resolve merge risk (P1) - The new public ingress policy and reason-code surface remains compatibility-sensitive for external channel plugins until the paired SDK migration is landed and exact-head checks complete.
  • Complete next step (P2) - A focused core repair can preserve the intended exact-pair invariant without changing defaults or choosing new product policy.

Findings

  • [P2] Keep normalized entry fields separate during threshold filtering — src/channels/message-access/allowlist.ts:134-150
Agent review details

Security

None.

PR surface

Source +473, Tests +607, Docs +50. Total +1130 across 26 files.

View PR surface stats
Area Files Added Removed Net
Source 17 700 227 +473
Tests 8 646 39 +607
Docs 1 50 0 +50
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 26 1396 266 +1130

Review metrics

Metric Value Why it matters
Production and test delta production +696/-226; tests +643/-39; docs +50 The PR materially expands the shared ingress and SDK-facing decision surface, so the focused exact-field regression and exact-head validation are important before merge.

Stored data model

Persistent data-model change detected: database schema: src/channels/message-access/admission-decision-receipt.ts, serialized state: src/channels/message-access/state.ts, unknown-data-model-change: src/channels/message-access/state.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #124218
Summary: This PR is the kernel implementation candidate for the accepted identifier-authentication RFC; the SDK migration is an explicitly paired follow-up.

Members:

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

Merge-risk options

Maintainer options:

  1. Separate normalized field matches (recommended)
    Make threshold filtering distinguish each normalized field instance even when one configured entry intentionally maps to several fields, then add the corresponding strict-threshold regression.
  2. Pause the stack
    Do not merge the kernel or its companion SDK migration until the exact-pair invariant holds for custom entry-ID generators.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Repair shared opaque entry-ID filtering so a rejected normalized field cannot remove a separately accepted exact-field match; add a focused strict-threshold regression and rerun the channel ingress suite.

Technical review

Best possible solution:

Preserve field-specific internal match identity through authentication filtering, add a regression for a shared custom entry ID with differing field strengths, and then land this kernel before the paired SDK migration in the same release.

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

Yes. Source inspection gives a deterministic path: use a descriptor whose primary and alias normalize one entry, whose custom ID generator returns one ID per raw entry, and assign the two fields different strengths under a raised minimum.

Is this the best way to solve the issue?

No. The current filtering keys rejection solely by the diagnostic entry ID, rather than the exact normalized field/pair; preserving a field-specific internal identity is the narrow owner-boundary repair.

Full review comments:

  • [P2] Keep normalized entry fields separate during threshold filtering — src/channels/message-access/allowlist.ts:134-150
    resolveEntryId may return one diagnostic ID for multiple fields, and Feishu now deliberately does so. This loop adds that shared ID when any field fails, then removes the accepted exact-field match at lines 148-150; a valid strong identifier is therefore rejected whenever a weak sibling normalizes from the same raw entry. Carry a field-specific internal match identity (or equivalent pair linkage) through the filter and add the mixed-strength regression.
    Confidence: 0.96

Overall correctness: patch is incorrect
Overall confidence: 0.9

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 4f9466af6f54.

Labels

Label changes:

  • add merge-risk: 🚨 message-delivery: The ID collision can turn an otherwise valid allowlist match into a dropped inbound message.

Label justifications:

  • P1: The shared ingress authorization path can deny intended allowlisted channel input in the new strict-threshold mode.
  • merge-risk: 🚨 compatibility: The PR changes public channel-ingress policy and reason-code types that external plugins may consume.
  • merge-risk: 🚨 message-delivery: The ID collision can turn an otherwise valid allowlist match into a dropped inbound message.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This is a MEMBER-authored PR, so contributor proof is not a merge gate; its body nevertheless records a mock-gateway after-fix run for the default allowlist path, not the newly found strict shared-ID case.

Evidence

Acceptance criteria:

  • [P1] node scripts/run-vitest.mjs src/channels/message-access/identifier-authentication.test.ts.
  • [P1] node scripts/run-vitest.mjs extensions/feishu/src/policy.test.ts.
  • [P1] pnpm plugin-sdk:surface:check.

What I checked:

  • Shared entry ID causes cross-field rejection: The policy groups all matched pairs by opaque entry ID, rejects that ID when any normalized entry fails its threshold, and then removes every match using the ID. This incorrectly couples separately normalized fields when they share a diagnostic ID. (src/channels/message-access/allowlist.ts:128, c93dffd90c98)
  • Public ID hook permits the collision: The identity adapter invokes resolveEntryId separately for each normalized field, while the public contract describes it only as a stable diagnostic ID and does not require field uniqueness. (src/channels/message-access/runtime-identity.ts:101, c93dffd90c98)
  • Concrete bundled collision pattern: Feishu deliberately normalizes one entry under both same-kind fields, but its ID generator uses only the raw entry index. A later distinct strength on either field would remove a valid counterpart match. (extensions/feishu/src/policy.ts:26, c93dffd90c98)
  • Existing regression coverage misses shared IDs: The exact-field tests use the fallback field-qualified entry IDs and do not exercise a custom entry-ID generator shared by multiple normalizing fields. (src/channels/message-access/identifier-authentication.test.ts:39, c93dffd90c98)
  • Current-head provenance: The checked-out review revision is the submitted head and its latest commit contains the Feishu exact-field compatibility follow-up. (extensions/feishu/src/policy.ts:44, c93dffd90c98)
  • Current-main comparison unavailable: The checkout has the named main and base commits as promisor objects, but attempting the read-only comparison required a fetch that failed because github.com DNS was unavailable; no current-main equivalence or release claim is made.

Likely related people:

  • steipete: Authored the current-head Feishu repair and several preceding exact-field and receipt changes in this PR stack. (role: recent area contributor; confidence: high; commits: c93dffd90c98, 7acfef8d0a66; files: extensions/feishu/src/policy.ts, src/channels/message-access/allowlist.ts)
  • omarshahine: Authored the original graded-identifier kernel commits and the accepted RFC decision recorded for this stack. (role: feature author; confidence: high; commits: 2146d5501041, 9385e0f55701; files: src/channels/message-access/identifier-authentication.ts, src/channels/message-access/runtime-identity.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Add the shared-ID, mixed-field-strength regression and repair the filter at its identity boundary.
  • Complete exact-head checks after the repair and retain the kernel-before-SDK landing order.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
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.

Workflow

  • 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.

History

Review history (5 earlier review cycles)
  • reviewed 2026-08-14T17:58:01.433Z sha 71b3eb0 :: needs real behavior proof before merge. :: [P1] Preserve pairs through inherited route lists | [P1] Bind same-kind matches to their identity field
  • reviewed 2026-08-14T21:01:30.904Z sha 8cb319a :: found issues before merge. :: [P1] Reject dynamic access-group matches without authentication evidence
  • reviewed 2026-08-14T21:27:37.188Z sha 6b3c6db :: needs maintainer review before merge. :: none
  • reviewed 2026-08-15T17:36:52.668Z sha 6b3c6db :: needs maintainer review before merge. :: none
  • reviewed 2026-08-27T07:51:44.948Z sha 132fc7c :: found issues before merge. :: [P1] Normalize Feishu secondary user IDs on their owning identity field

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: L maintainer Maintainer-authored PR labels Aug 14, 2026
@omarshahine omarshahine self-assigned this Aug 14, 2026
@omarshahine

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 14, 2026
@omarshahine

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. 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 Aug 14, 2026
@omarshahine

Copy link
Copy Markdown
Contributor Author

Maintainer decision recorded (RFC 0027 accepted).

As RFC/security owner I accept the four-level contract and, for this pair, I have reviewed and approve the six bundled transport classifications as stated in the conformance table (Discord gateway author.id/user.id verified with PluralKit asserted; Google Chat sender.name verified behind issuer/audience checks; Mattermost post.user_id verified; Teams and Slack IDs asserted — deliberately not inflated absent exact-sender attestation; IRC prefix asserted; all display-name style aliases mutable). Every verified claim names its authoritative transport fact, which is the evidence bar this contract requires.

Decision detail and scope: openclaw/rfcs#51 (comment)

Landing order: #123782 first, then #123793. The kernel does not ship alone.

@omarshahine
omarshahine marked this pull request as ready for review August 15, 2026 17:30
omarshahine and others added 6 commits August 26, 2026 22:58
Move the Twitch role normalizers into the kernel branch and keep Discord
name and tag entries on their corresponding identity fields. Repair the
same mismatch for Slack name slugs and IRC nick@host entries.

Add regressions at the channel authorization boundaries.

Related: #123782
Co-authored-by: Omar Shahine <[email protected]>
Keep raw SDK inputs optional and carry required authentication through
normalized kernel subjects, entries, and state. Resolve static claims at
intake and floor omitted fields in a supplied per-message map to unverified.

Remove the deprecated internal policy wrapper, downstream strength
fallbacks, and unused type exports. Cover the partial-map floor, static
claims, and mutable alias behavior, and document the map contract.

Related: #123782
Preserve an authentication effect when other admission contributions were
not evaluated. Prefer any affected result, then any evaluated result,
before checking for uniformly unevaluated contributions.

Cover the mixed case through the existing redacted receipt flow.

Related: #123782
Make the ingress fixture drain accepted deliveries on stop, matching the
real monitor lifecycle. Await those deliveries directly so prefix and
reply assertions cannot race or leak completions into the next case.

Related: #123782
@steipete
steipete force-pushed the omarshahine/rfc-0027-kernel branch from 6b3c6db to 132fc7c Compare August 27, 2026 07:42
@steipete

Copy link
Copy Markdown
Contributor

Maintainer refresh 2026-08-27 (head 132fc7c82f19): addressing the review's before-merge items and rank-up moves.

  • Standalone-kernel risk — resolved. The exact-field compatibility repairs (Twitch roles, Discord tags, plus newly found Slack slugged-name and IRC nick@host instances) moved into this PR, each with a failing-before regression; the full sibling sweep (8,661 tests across the seven affected channel suites) passes on this head alone. feat(plugin-sdk): publish identifier authentication contract #123793 is rebased on this exact head and lands immediately after, same release.
  • Exact-stack proof — captured for the default path; raised-minimum skip stated. Mock-gateway harness run on this head (real ephemeral gateway + qa-channel transport): scenario channel-sender-allowlist passed — blocked observer produced no outbound, allowlisted driver received the exact marker (verdict JSON in the PR body). A gateway-config run with a raised minimum is not expressible in v1 by design: the accepted RFC ships no operator-facing minimum knob, so no gateway config path can raise it. Raised-minimum coverage lives at the channel-caller boundary instead: the Discord resolvers in feat(plugin-sdk): publish identifier authentication contract #123793 expose minIdentifierAuthentication and their strict verified PluralKit tests pass, plus 20+ resolver-level threshold tests here.
  • Coordinated review — done. Both PRs were re-reviewed together against the accepted RFC (maintainer session), including a fresh structured Codex review of the complete stack diff: no accepted/actionable findings. Review decisions applied on this head: partial per-message maps floor omitted fields to unverified (fail-closed), and receipt aggregation reports affected when any contribution was affected.
  • Exact-head CI before release — in progress. Landing waits on complete green CI for 132fc7c82f19.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 27, 2026
@openclaw-barnacle openclaw-barnacle Bot added channel: discord Channel integration: discord channel: slack Channel integration: slack channel: feishu Channel integration: feishu channel: twitch Channel integration: twitch channel: irc labels Aug 27, 2026
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. label Aug 27, 2026
@steipete
steipete merged commit d561469 into main Aug 27, 2026
359 of 361 checks passed
@steipete
steipete deleted the omarshahine/rfc-0027-kernel branch August 27, 2026 10:42
@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 28, 2026
… kernel (openclaw#123782)

* feat(channels): add identifier authentication kernel

* fix(channels): preserve exact identity provenance

* fix(channels): fail strict dynamic groups closed

* fix(channels): bind plugin allowlists to exact identity fields

Move the Twitch role normalizers into the kernel branch and keep Discord
name and tag entries on their corresponding identity fields. Repair the
same mismatch for Slack name slugs and IRC nick@host entries.

Add regressions at the channel authorization boundaries.

Related: openclaw#123782
Co-authored-by: Omar Shahine <[email protected]>

* refactor(channels): resolve identifier authentication at intake

Keep raw SDK inputs optional and carry required authentication through
normalized kernel subjects, entries, and state. Resolve static claims at
intake and floor omitted fields in a supplied per-message map to unverified.

Remove the deprecated internal policy wrapper, downstream strength
fallbacks, and unused type exports. Cover the partial-map floor, static
claims, and mutable alias behavior, and document the map contract.

Related: openclaw#123782

* fix(channels): retain affected admission contributions

Preserve an authentication effect when other admission contributions were
not evaluated. Prefer any affected result, then any evaluated result,
before checking for uniformly unevaluated contributions.

Cover the mixed case through the existing redacted receipt flow.

Related: openclaw#123782

* test(twitch): await monitor delivery before resetting mocks

Make the ingress fixture drain accepted deliveries on stop, matching the
real monitor lifecycle. Await those deliveries directly so prefix and
reply assertions cannot race or leak completions into the next case.

Related: openclaw#123782

* fix(feishu): match ambiguous allow entries under both id fields

---------

Co-authored-by: Omar Shahine <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: discord Channel integration: discord channel: feishu Channel integration: feishu channel: irc channel: slack Channel integration: slack channel: twitch Channel integration: twitch docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 message-delivery 🚨 May drop, duplicate, misroute, suppress, or wrongly target messages. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XL 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