Commit graph

24 commits

Author SHA1 Message Date
Virgil
1ee54add39 refactor(node): align remaining AX naming and examples
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-31 14:11:17 +00:00
Virgil
8fc3be03a6 refactor(node): align AX comments across public APIs
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-31 13:36:45 +00:00
Snider
5ed4451555 feat(ax): AX compliance sweep — comments as usage examples, remove linter-injected aliases
All checks were successful
Security Scan / security (push) Successful in 8s
Test / test (push) Successful in 1m31s
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>
2026-03-31 12:20:52 +01:00
Virgil
1c8592a5a0 refactor(node): align peer and handler names with AX
All checks were successful
Security Scan / security (push) Successful in 14s
Test / test (push) Successful in 1m27s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-31 05:32:08 +00:00
Virgil
79591c3635 refactor(node): trim legacy AX compatibility fields
Some checks failed
Test / test (push) Failing after 13m33s
Security Scan / security (push) Failing after 13m35s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-30 23:00:36 +00:00
Virgil
bd9efd1deb refactor(node): clarify AX-facing transport and worker names
All checks were successful
Security Scan / security (push) Successful in 11s
Test / test (push) Successful in 1m53s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-30 22:54:45 +00:00
Virgil
885070d241 refactor(node): adopt AX naming across core APIs
All checks were successful
Security Scan / security (push) Successful in 9s
Test / test (push) Successful in 1m41s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-30 22:46:11 +00:00
Virgil
851b1294bd refactor(node): rename controller and worker core fields
All checks were successful
Security Scan / security (push) Successful in 9s
Test / test (push) Successful in 1m42s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-30 22:38:29 +00:00
Virgil
f5d1ee6021 refactor(node): align worker interfaces with AX naming
Some checks failed
Security Scan / security (push) Successful in 9s
Test / test (push) Failing after 59s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-30 21:34:57 +00:00
Virgil
c03b3410e6 refactor(node): remove legacy compatibility aliases
All checks were successful
Security Scan / security (push) Successful in 10s
Test / test (push) Successful in 1m29s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-30 21:27:45 +00:00
Virgil
7ce21cdba1 refactor(node): adopt AX-native protocol names
All checks were successful
Security Scan / security (push) Successful in 10s
Test / test (push) Successful in 1m30s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-30 21:21:07 +00:00
Virgil
4c8bced1e7 refactor(node): add AX-native accessors and usage docs
All checks were successful
Security Scan / security (push) Successful in 9s
Test / test (push) Successful in 1m28s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-30 20:03:06 +00:00
Virgil
c678d20608 refactor(repo): prefer AX error names
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-30 19:44:05 +00:00
Virgil
2d63a8ba18 refactor(node): add AX-native aliases for component and path APIs
Some checks failed
Security Scan / security (push) Successful in 9s
Test / test (push) Failing after 52s
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-30 19:32:26 +00:00
Virgil
d7681bf637 refactor(repo): complete AX v0.8.0 polish pass
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-26 16:26:18 +00:00
Virgil
04ae11da43 refactor(node): replace stdlib helpers with core primitives
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-26 14:37:02 +00:00
Virgil
be55b2499b chore(node): upgrade to core v0.8.0-alpha.1
Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-26 14:31:25 +00:00
Snider
6fd3fe1cd2 refactor(node): migrate module path to dappco.re/go/core/p2p
All checks were successful
Security Scan / security (pull_request) Successful in 8s
Test / test (pull_request) Successful in 2m2s
Update go.mod module line from forge.lthn.ai/core/go-p2p to
dappco.re/go/core/p2p. Migrate core dependency paths: go-log to
dappco.re/go/core/log v0.1.0, go-io to dappco.re/go/core/io v0.2.0.
Update all .go import paths across 18 source files. Borg, Poindexter,
and Enchantrix dependencies remain on forge.lthn.ai as they have not
been migrated upstream.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-22 02:06:51 +00:00
Snider
66bc0b862f refactor: replace fmt.Errorf/os.* with go-log/go-io conventions
All checks were successful
Security Scan / security (push) Successful in 9s
Test / test (push) Successful in 2m7s
Replace all fmt.Errorf and errors.New in production code with
coreerr.E("caller.Method", "message", err) from go-log. Replace
os.ReadFile/os.WriteFile/os.MkdirAll/os.Remove with coreio.Local
equivalents from go-io. Test files left untouched.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-03-16 20:38:55 +00:00
Snider
fe04cf93aa fix: improve UEPS packet validation and worker error handling
Some checks are pending
Security Scan / security (push) Waiting to run
Test / test (push) Waiting to run
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 08:30:59 +00:00
Claude
2ac2974ec2
chore: extract repeated sentinel errors to package vars
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 16:13:09 +00:00
Claude
bee4e23a75
chore: fmt.Errorf(static) → errors.New
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 16:11:41 +00:00
Snider
ca04a88e35 refactor: apply go fix modernizers for Go 1.26
Automated fixes: interface{} → any, range-over-int, t.Context(),
wg.Go(), strings.SplitSeq, strings.Builder, slices.Contains,
maps helpers, min/max builtins.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-22 21:00:16 +00:00
Claude
8f94639ec9
feat: extract P2P networking and UEPS protocol from Mining repo
P2P node layer (peer discovery, WebSocket transport, message protocol,
worker pool, identity management) and Unified Ethical Protocol Stack
(TLV packet builder with HMAC-signed frames).

Ported from github.com/Snider/Mining/pkg/{node,ueps,logging}

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 15:47:10 +00:00