Documentation
¶
Overview ¶
Package rules holds the deterministic checks that mcp-reliability runs over a loaded trace. Every rule cites the normative text it enforces. A rule must never report a violation where the cited standard does not require the behavior; "SHOULD" level text produces WARN, "MUST"/"Required" produces FAIL.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Finding ¶
type Finding struct {
Rule string
Severity Severity
Message string
Spans []string // span ids that are the evidence
Ref string // URL of the normative text
}
Finding is one detected problem with evidence pointing at concrete spans.
func Sort ¶ added in v0.1.0
Sort orders findings by severity, highest first, keeping rule order otherwise.
func Wire ¶ added in v0.1.0
Wire runs the checks that need the raw JSON-RPC messages.
MCP-PROP-003: SEP-414 says the reserved keys traceparent, tracestate and baggage, when present, MUST follow the W3C formats. Only traceparent has a format strict enough to validate deterministically; tracestate and baggage are checked for being strings. MCP-PROP-004: a request carries no traceparent at all. The spec does not require propagation, so this is INFO: it explains disconnected traces.