finding

package
v0.41.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2026 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

View Source
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

func LabelSafe(s string) string

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.

func StubIssue

func StubIssue(alert, resourceRef, severity, verdict string, confidence float64, task, roomsURL string) (title, body string)

StubIssue is the public issue of a finding: alert, resource, verdict and the room, never the finding itself (R33).

func Text

func Text(title, verdict string, confidence float64, resourceRef, alert, severity, cluster, text string) string

Text is the task text of a finding: a heading, RunLore's verdict line, then its text.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL