ax(ueps): replace prose comment on ParsedPacket with usage example
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run

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 <charon@lethean.io>
This commit is contained in:
Claude 2026-04-02 11:48:43 +01:00
parent 9394bbd768
commit d54d576546
No known key found for this signature in database
GPG key ID: AF404715446AEB41

View file

@ -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