From d54d576546110e24d4e77c4a204eac8b78151e0e Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 11:48:43 +0100 Subject: [PATCH] ax(ueps): replace prose comment on ParsedPacket with usage example AX Principle 2 requires comments to show concrete usage, not describe behaviour. The old comment restated when fields are populated; the new comment shows the dispatch call an agent would make after ReadAndVerify. Co-Authored-By: Charon --- pkg/ueps/reader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ueps/reader.go b/pkg/ueps/reader.go index 6a5d994..9c1edaf 100644 --- a/pkg/ueps/reader.go +++ b/pkg/ueps/reader.go @@ -17,7 +17,7 @@ var errMissingHMAC = packetError("UEPS packet missing HMAC signature") // if err == errIntegrityViolation { /* HMAC mismatch — threat score incremented */ } var errIntegrityViolation = packetError("integrity violation: HMAC mismatch (ThreatScore +100)") -// packet.Header.IntentID, packet.Header.ThreatScore, packet.Payload — fields populated after successful ReadAndVerify +// dispatch(packet.Header.IntentID, packet.Header.ThreatScore, packet.Payload) type ParsedPacket struct { Header UEPSHeader Payload []byte