Documentation
¶
Overview ¶
Package finding holds what the two RunLore intakes (the retiring /intake/runlore and POST /v1/tasks for an internal principal) must write the same way while both exist: the task text, the public stub issue and the label charset that keeps attacker-influenced identifiers inert.
Index ¶
Constants ¶
const LabelSourceKey = "agents.ogenki.io/source-key"
LabelSourceKey carries taskid.Name of a finding's dedup key on every task made from that key (§1): tasks of one key share the label, so a replay finds the open one and a new generation starts after the last task ends.
Variables ¶
This section is empty.
Functions ¶
func LabelSafe ¶
LabelSafe transposes every character outside the label charset to "_", so no markdown or HTML trigger reaches the public issue (TW6).
Chosen over sanitize.Text deliberately: that defuses images, "]:" definitions and raw HTML but leaves an inline link, "[click](javascript:alert(1))", intact, and these fields are identifiers whose natural charset is [A-Za-z0-9_.:/-] (alert names, resource refs, severities). Transposing everything else to "_" costs nothing they legitimately hold while removing every markdown and HTML trigger character ("!", "[", "]", "(", "<", "`", space) and every invisible code point. Verdict is already a closed set and Confidence a float.
Types ¶
This section is empty.