From 08089ffcd1945cc697ee7adb83a2a31995a946bf Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 2 Apr 2026 10:36:36 +0100 Subject: [PATCH] ax(ueps): replace abstract variable names in PacketBuilder comment with concrete values MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit AX Principle 2 — comments must show concrete usage with realistic values, not abstract placeholder names. The struct-level comment for PacketBuilder used `intentID` and `payload` (undefined in context); replaced with 0x01 and []byte("ping") so an agent reading it sees an exact working call. Co-Authored-By: Charon --- pkg/ueps/packet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ueps/packet.go b/pkg/ueps/packet.go index d43af39..e45c433 100644 --- a/pkg/ueps/packet.go +++ b/pkg/ueps/packet.go @@ -37,7 +37,7 @@ type UEPSHeader struct { ThreatScore uint16 // header.ThreatScore = 100 // elevated on HMAC mismatch; 0 = clean, 65535 = maximum threat } -// builder := ueps.NewPacketBuilder(intentID, payload); frame, _ := builder.MarshalAndSign(secret) +// builder := ueps.NewPacketBuilder(0x01, []byte("ping")); frame, _ := builder.MarshalAndSign([]byte("shared-secret")) type PacketBuilder struct { Header UEPSHeader Payload []byte