Raxol.UI.Components.Harness.TaintBadge (Raxol v2.6.1)

View Source

A tiny inline badge marking untrusted, tool-derived content.

Render-dual of one event envelope's provenance.trust field (see docs/proposals/in-flight/harness-spec-protocol.md sec 3): renders "⚠ untrusted" in yellow when provenance.trust == :tainted (passed in as taint: true); renders nothing when trusted. This is the frontend's lethal-trifecta visibility marker (harness-spec-frontend.md sec 6) -- content whose provenance traces back to untrusted tool output must stay visibly marked, never silently blended into the primary feed.

Composed inline by Raxol.UI.Components.Harness.ToolResultBlock.

Summary

Types

t()

@type t() :: %{id: String.t() | atom(), taint: boolean(), style: map(), theme: map()}

Functions

broadcast(msg)

command(cmd)

handle_event(event, state, context)

Callback implementation for Raxol.UI.Components.Base.Component.handle_event/3.

mount(state)

Callback implementation for Raxol.UI.Components.Base.Component.mount/1.

schedule(msg, delay)

unmount(state)

Callback implementation for Raxol.UI.Components.Base.Component.unmount/1.

update(props, state)

Callback implementation for Raxol.UI.Components.Base.Component.update/2.