Repository navigation
feat: audit admitted channel participant identity - #122863
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@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:
|
|
Codex review: found issues before merge. Reviewed August 14, 2026, 9:42 AM ET / 13:42 UTC. ClawSweeper reviewWhat this changesThe PR binds channel ingress participant evidence to the finalized channel context so optional execution-identity audit data cannot be replayed or substituted across routes, sessions, plugins, or lifecycle epochs. Merge readinessKeep this maintainer-labeled PR open: it is not on current main, but its new public provenance contract still needs explicit SDK and security-owner acceptance before merge. Priority: P2 Review scores
Verification
How this fits togetherChannel plugins admit inbound messages and create the final route and session context; core then records optional execution-identity audit facts. The new handoff carries validated participant provenance into that audit projection. flowchart LR
A[Inbound channel message] --> B[Plugin admission resolver]
B --> C[Final route and session]
C --> D[Host context binding]
D --> E[Audit evidence validation]
E --> F[Execution identity record]
Decision needed
Why: The repository requires this approval before widening a Plugin SDK trust boundary, and the supplied discussion contains only contributor assertions rather than an identifiable owner decision. Before merge
Findings
Agent review detailsSecurityNeeds attention: The patch changes a participant-provenance trust boundary; no concrete exploit is proven, but named SDK and security-owner approval is required before merge. Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Either obtain named SDK and security-owner approval for the narrow documented contract, or redesign the carrier as a host-private seam if that public compatibility and trust commitment is not acceptable. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds an opt-in provenance capability rather than reporting a currently reproducible defect on main. Is this the best way to solve the issue? Unclear: the proposed one-shot host-bound design aligns with the audit policy, but maintainers must first decide whether the public SDK trust commitment is the right durable boundary. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5523f8a334c9. LabelsLabel justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (36 earlier review cycles; latest 8 shown)
|
|
ClawSweeper disposition on reviewed head
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
ClawSweeper disposition on reviewed head
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
ClawSweeper disposition on reviewed head
@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:
|
|
Maintainer decision: accepted. I approve the narrow public Plugin SDK and security provenance boundary documented in this PR: one-shot, exact host-bound context binding; record- and lifecycle-epoch validation; diagnostic provenance only; no authorization effect. This disposes ClawSweeper’s remaining P1 owner-decision item. Keep the PR open and Ready for Review; do not merge or enable automerge. |
What problem this solves
Opt-in execution-identity audit could attribute an admitted channel turn to a participant, but the first resolution-to-context handoff did not bind the finalized route agent, session, message, and event-kind facts. A resolver result could therefore be substituted at first use and still retain
boundary-verifiedparticipant provenance.Canonical repair
The channel-admission owner binds the exact resolver result to every stable fact shared with the finalized context: participant, channel/account, conversation/thread/parent/native channel, route agent, dispatch/session identity, message id, inbound event kind, exact active registered plugin record, lifecycle epoch, and one-shot eligibility. Eligibility is consumed before validation; substitution, copy, replay, stale/replaced record, mixed participant, or changed scope degrades to unknown.
Trusted active registered native channel plugins remain the authoritative in-process producers of remote transport facts. Core owns exact record/epoch/scope/one-shot validation, audit projection and persistence, and stale/mismatch/replay rejection. This is diagnostic provenance only, never authorization.
All 26 production context callers retain their classification: 23 exact canonical carriers and 3 explicit unsupported paths (
feedback,raft, andreef). No public mint/copy authority, table, sidecar, schema/protocol bump, migration, fallback, config surface, or compatibility alias was added.R14 final landing refresh
Final checked head:
02a967fdd5a58b16ee9b3041cb0a40af09e19331(tree0e37a1ab9e30977378d50254619d1eed3db00dcc).The existing branch was linearly rebased onto the independently audited frozen landing target
641821f25e3e23cbfffb6e04cc7c91c20ae06b26(tree1c5cd81001cab53dc9688dada9da335d1fc87729). No merge commit was created and no newer main target was consumed.The Plugin SDK conflict was resolved arithmetically: main's Computer Use v2 contract contributes 6 exports and I2 contributes one type-only export, for 145 public entrypoints / 4,324 public exports / 2,574 callable exports. During per-commit replay, the final-tree-clean Nostr test intersection surfaced mechanically; main's narrower per-call environment isolation was retained and Git dropped the duplicate I2 isolation commit.
Cleanly merged Telegram intersections preserve:
94cdb6c46e1;72a8b9b5b46;ed08d1352b8; andQueue collect/deferral/overflow/retry still preserves ordered skills, tool allowlist intersection,
disableTools, roles, trusted/scheduled/plugin grants, provider/model routing, media order, and passive admission evidence. Evidence cannot broaden authority; mixed participants lose sender provenance only.Focused, deterministic, SDK, and review proof
641821f…, so this is non-I2 test-harness debt rather than a branch regression..artifacts/qa-e2e/I2-r14-final-02a967fdd5a5/qa-suite-summary.json.43afbd7e: one type export, one signature change, no entrypoint delta.Refreshed real Telegram HITL
Because this refresh changed Telegram producer files, DM, group, and process-restart proof was repeated against an isolated exact-head Mainframe SUT using ephemeral 1Password injection and a mock provider.
I2-DM-b6ea12b9ec005b57ac4c-be83-4bc2-90b1-3377c1a3bd81f543e893-c9d5-478f-853d-5de90a5e55d1fdd6fd92-2d79-4f04-98e9-bb4fe0a3c8f8I2-GROUP-75610b10dc6e0af56b91-f393-42a6-8722-1c8e52132f84d1508215-516e-4583-9223-e920a27328e0fd5de7c6-9e04-4a51-ae53-20e4852c04e9I2-RESTART-29d2241b36d59325a882-56b1-4694-8cf5-6d3f33af5a32dfb9ba2e-3b18-46a9-bbf9-c72896192ad626bfd10c-8355-4e00-b154-0dbc0f03ba2bJSON inspection agreed across all three turns. The isolated Gateway/mock/state/logs and credential-reference files were removed. Credential values and raw Telegram identifiers are absent from retained artifacts; a credential-aware scan redacted the ephemeral global log before cleanup.
CI and hosted review
Exact-head PR CI settled at https://github.com/openclaw/openclaw/actions/runs/31805428891: 143 jobs passed and 12 skipped.
checks-node-compact-small-28missed an existing one-secondageMsceiling by 186 ms; the test, command owner, and audit owner blobs are byte-identical to the frozen target, and the exact focused file passes locally (25/25). The only other red job is its derivativeopenclaw/ci-gate. Zero branch-attributable failures remain, so no I2 product change or duplicate broad Testbox run is warranted.Hosted ClawSweeper history remains at #122863 (comment). Exact-head hosted run https://github.com/openclaw/clawsweeper/actions/runs/31805576245 completed successfully, accepted the real behavior proof at 5/6 confidence, and retained one P1 owner decision for the public Plugin SDK/security provenance boundary. Maintainer
joshavantexplicitly accepted that narrow boundary at #122863 (comment), disposing the actionable item. The reviewer-only source-fetch limitation is covered by exact-head local inspection and clean two-chunk structured autoreview; its CI rank-up item is now settled.No hosted-review code remediation remains. The accepted R14 boundary is not being reopened.
Terminal remediation-r8 artifacts:
results/I2/remediation-r8-result.yaml—61db947f224a0679e90f6db507803b1d859a152d75049001bd24a86de9a35a56results/I2/remediation-r8-handoff.md—e8980afb043cf7cc3031588278b313eb38f913d8822ff35f001911116319d2ddevidence/I2/remediation-r8-proof.md—d856ed04e5de945084de2d55a593875013ac8f095d0f6798fa81f19986db26d5evidence/I2/remediation-r8-qa-summary.json—a55369bc6dec1bae7fbf44b9f9942446f98907db7583ffdac8f7c54dd0a0cd91The retained live proof is
.artifacts/qa-e2e/I2-r14-final-02a967fdd5a5/live-telegram-proof.json(b06337fcd6468128a350db8a53cdc40ac618853d6add4015201a9a87c243b9f0).The PR remains permanently Ready for Review, open, unmerged, and without automerge. It will not be returned to draft.
AI-assisted: yes. I understand the implementation and verified its owner boundary, lifecycle behavior, public SDK boundary, persistence constraints, Telegram intersections, deterministic/live behavior, and exact-head proof.