Mining/pkg/node
Claude 0c69d095de
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
ax(node): replace prose comment with usage example, rename ch to channel
AX Principle 1: ch is an opaque abbreviation for a response channel — rename
to channel so the variable's role is predictable without tracing the map type.

AX Principle 2: "handleResponse processes incoming messages…" restates the
signature. Replaced with a concrete usage example showing how it is wired.

Co-Authored-By: Charon <charon@lethean.io>
2026-04-02 08:32:39 +01:00
..
bufpool.go ax(node): replace prose comments with usage examples in bufpool.go 2026-04-02 07:59:37 +01:00
bundle.go chore: migrate module path from github.com to forge.lthn.ai 2026-02-22 21:39:01 +00:00
bundle_test.go fix: Comprehensive code hardening from 4-domain Opus review 2025-12-31 14:33:30 +00:00
controller.go ax(node): replace prose comment with usage example, rename ch to channel 2026-04-02 08:32:39 +01:00
dispatcher.go Implement STIM bundle decryption and installation 2026-02-02 06:07:05 +00:00
identity.go ax(node): replace prose comments with usage examples in NodeManager 2026-04-02 08:28:58 +01:00
identity_test.go feat: Implement challenge-response authentication for P2P (P2P-CRIT-4) 2025-12-31 15:16:00 +00:00
lethean.go ax(node): rename resp/raw to response/responseBody in lethean.go 2026-04-02 08:05:27 +01:00
lethean_test.go ax(node): add missing Bad and Ugly test triads for parseComment 2026-04-02 08:12:03 +01:00
message.go ax(node): rename loop variable v to supported in IsProtocolVersionSupported 2026-04-02 07:31:27 +01:00
message_test.go refactor: Add reliability fixes and architecture improvements 2025-12-31 12:43:46 +00:00
peer.go ax(node): replace Must* regexp anti-pattern with Compile in validatePeerName 2026-04-02 08:30:54 +01:00
peer_test.go feat: Add API configuration service and enhance security validation in commands 2025-12-31 17:46:25 +00:00
protocol.go ax(node): replace prose comments with usage examples in protocol.go 2026-04-02 08:20:07 +01:00
protocol_test.go ax(node): remove banned fmt import from protocol_test.go 2026-04-02 08:22:25 +01:00
transport.go ax(node): replace Send comment that restated the signature with a usage example 2026-04-02 08:27:26 +01:00
worker.go ax(node): replace prose-description comments with usage examples in worker.go 2026-04-02 08:26:09 +01:00
worker_test.go Implement STIM bundle decryption and installation 2026-02-02 06:07:05 +00:00