Skip to content

feat: trusted sender metadata from systemInputProvenance for operator clients - #79758

Closed
hugin-vault wants to merge 1 commit into
openclaw:mainfrom
hugin-vault:feature/logicos-channel-plugin
Closed

hugin-vault wants to merge 1 commit into
openclaw:mainfrom
hugin-vault:feature/logicos-channel-plugin

Conversation

@hugin-vault

Copy link
Copy Markdown

Summary

When operator-authenticated gateway clients (like the LogicOS API proxy) send chat messages, the agent currently sees the sender as the gateway-client identity ("LogicOS API Gateway Proxy") even though the real user identity is already passed via systemInputProvenance. This PR makes OC use the provenance sender fields when an operator client provides them.

Changes

  • primitives.ts: Add senderId, senderName, senderRole optional fields to InputProvenanceSchema
  • chat.ts: When canInjectSystemProvenance(client) is true and the provenance has sender fields, use them for SenderId/SenderName/SenderUsername instead of clientInfo. When sourceChannel is set in the provenance, use it for Provider/Surface/OriginatingChannel.

Safety

  • All changes are gated behind canInjectSystemProvenance(client) — only clients with operator.admin scope are affected
  • Falls back to existing clientInfo-based defaults when sender fields are absent
  • No breaking change: non-operator clients and clients without sender fields are completely unaffected

Task

#task:fe26cc34-b8af-49e5-8e9c-926d069551b0

Related

… clients

- Add senderId, senderName, senderRole to InputProvenanceSchema
- When operator-authenticated client sends sender fields in systemInputProvenance,
  use them for SenderId/SenderName/SenderUsername instead of clientInfo
- Use sourceChannel from provenance for Provider/Surface/OriginatingChannel
- Falls back to existing clientInfo-based defaults when fields are absent
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui gateway Gateway runtime size: XS triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. labels May 9, 2026
@clawsweeper

clawsweeper Bot commented May 9, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: feat: trusted sender metadata from systemInputProvenance for operator clients This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui gateway Gateway runtime size: XS triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant