feat(ax): AX compliance sweep — comments as usage examples, remove linter-injected aliases
Applied AX principles 1, 2, and 9 across the node, dispatcher, transport, peer,
worker, bundle, and logging packages:
- Added usage-example comments to all public methods missing them (AX-2):
dispatcher.RegisterHandler, Handlers; peer.AddPeer, UpdatePeer, RemovePeer,
AllowPublicKey, RevokePublicKey, IsPublicKeyAllowed, IsPeerAllowed, RecordSuccess,
RecordFailure, RecordTimeout, SelectOptimalPeer, SelectNearestPeers, Count,
PeersByScore, AllowedPublicKeys, ListAllowedPublicKeys; transport.Start, Stop, Send,
Connections, Broadcast, PeerConnection.Send, Close, GracefulClose
- Removed redundant inline comments that restate code (bundle.go, transport.go, worker.go)
- Added _Bad and _Ugly test categories to logging/logger_test.go to satisfy the
TestFilename_Function_{Good,Bad,Ugly} naming convention (AX-10)
- Removed all linter-injected short-form alias files (*_compat.go, *_alias_test.go)
that violated AX-1 (Err* aliases, Uint64Val, WithComponent, GetLevel, GetGlobal, etc.)
Co-Authored-By: Virgil <virgil@lethean.io>