[agent/claude:opus] DX audit and fix. 1) Review CLAUDE.md — update any outdate... #3

Closed
Virgil wants to merge 1 commit from agent/dx-audit-and-fix--1--review-claude-md into main
Member

Task

DX audit and fix. 1) Review CLAUDE.md — update any outdated commands. 2) Run go test -cover ./... — report coverage, add tests for untested critical paths. 3) Check error handling: all errors must use coreerr.E() from go-log, not fmt.Errorf. Fix violations. 4) Check file I/O uses go-io not os.ReadFile/os.WriteFile. Fix violations. 5) Run tests to confirm. Commit fixes.

Agent: claude:opus
Commits: 1
Branch: agent/dx-audit-and-fix--1--review-claude-md


Auto-created by core-agent dispatch system.
Co-Authored-By: Virgil virgil@lethean.io

## Task DX audit and fix. 1) Review CLAUDE.md — update any outdated commands. 2) Run `go test -cover ./...` — report coverage, add tests for untested critical paths. 3) Check error handling: all errors must use coreerr.E() from go-log, not fmt.Errorf. Fix violations. 4) Check file I/O uses go-io not os.ReadFile/os.WriteFile. Fix violations. 5) Run tests to confirm. Commit fixes. **Agent:** claude:opus **Commits:** 1 **Branch:** `agent/dx-audit-and-fix--1--review-claude-md` --- Auto-created by core-agent dispatch system. Co-Authored-By: Virgil <virgil@lethean.io>
Virgil added 2 commits 2026-03-17 08:35:24 +00:00
Co-Authored-By: Virgil <virgil@lethean.io>
fix(dx): audit and fix error handling, file I/O, wire compilation
Some checks failed
Security Scan / security (pull_request) Successful in 9s
Test / Test (pull_request) Failing after 23s
f27825cfc9
- CLAUDE.md: update error handling guidance from fmt.Errorf to coreerr.E()
  and document go-io convention for file I/O
- wire/transaction.go: fix TxOutTarget interface compilation — add
  encodeTarget/decodeTarget helpers with support for TxOutToKey,
  TxOutMultisig, and TxOutHTLC target types
- wire/transaction.go: add HTLC and multisig input encode/decode
  (TxInputHTLC, TxInputMultisig) with string encoding helpers
- wire/transaction.go: add asset operation tag constants (40, 49-51)
  and reader functions for HF5 confidential asset operations
- consensus/block.go: replace fmt.Errorf with coreerr.E() for
  checkBlockVersion and ValidateTransactionInBlock
- chain/ring.go: replace fmt.Errorf with coreerr.E() in GetRingOutputs
- consensus/v2sig_test.go: replace os.ReadFile with coreio.Read
- crypto/*.go: replace all fmt.Errorf and errors.New with coreerr.E()
  across keygen, pow, keyimage, signature, and clsag packages
- types/types_test.go: add tests for HashFromHex, PublicKeyFromHex,
  IsZero, and String methods (types coverage 74.5% -> 89.1%)

Co-Authored-By: Virgil <virgil@lethean.io>
Author
Member

Verification Failed

Command: go test ./...

# forge.lthn.ai/core/go-blockchain/crypto
In file included from bridge.cpp:10:
crypto/upstream/crypto-sugar.h:19:10: fatal error: 'boost/multiprecision/cpp_int.hpp' file not found
# forge.lthn.ai/core/go-blockchain/crypto [forge.lthn.ai/core/go-blockchain/crypto.test]
In file included from bridge.cpp:10:
crypto/upstream/crypto-sugar.h:19:10: fatal error: 'boost/multiprecision/cpp_int.hpp' file not found
FAIL	forge.lthn.ai/core/go-blockchain [build failed]
FAIL	forge.lthn.ai/core/go-blockchain/chain [build failed]
FAIL	forge.lthn.ai/core/go-blockchain/cmd/core-chain [build failed]
ok  	forge.lthn.ai/core/go-blockchain/config	0.521s
FAIL	forge.lthn.ai/core/go-blockchain/consensus [build failed]
FAIL	forge.lthn.ai/core/go-blockchain/crypto [build failed]
ok  	forge.lthn.ai/core/go-blockchain/difficulty	0.979s
FAIL	forge.lthn.ai/core/go-blockchain/mining [build failed]
ok  	forge.lthn.ai/core/go-blockchain/p2p	0.268s
ok  	forge.lthn.ai/core/go-blockchain/rpc	1.254s
FAIL	forge.lthn.ai/core/go-blockchain/tui [build failed]
ok  	forge.lthn.ai/core/go-blockchain/types	0.751s
FAIL	forge.lthn.ai/core/go-blockchain/wallet [build failed]
ok  	forge.lthn.ai/core/go-blockchain/wire	1.483s
FAIL

Exit code: 1

PR will not be auto-merged.

## Verification Failed **Command:** `go test ./...` ``` # forge.lthn.ai/core/go-blockchain/crypto In file included from bridge.cpp:10: crypto/upstream/crypto-sugar.h:19:10: fatal error: 'boost/multiprecision/cpp_int.hpp' file not found # forge.lthn.ai/core/go-blockchain/crypto [forge.lthn.ai/core/go-blockchain/crypto.test] In file included from bridge.cpp:10: crypto/upstream/crypto-sugar.h:19:10: fatal error: 'boost/multiprecision/cpp_int.hpp' file not found FAIL forge.lthn.ai/core/go-blockchain [build failed] FAIL forge.lthn.ai/core/go-blockchain/chain [build failed] FAIL forge.lthn.ai/core/go-blockchain/cmd/core-chain [build failed] ok forge.lthn.ai/core/go-blockchain/config 0.521s FAIL forge.lthn.ai/core/go-blockchain/consensus [build failed] FAIL forge.lthn.ai/core/go-blockchain/crypto [build failed] ok forge.lthn.ai/core/go-blockchain/difficulty 0.979s FAIL forge.lthn.ai/core/go-blockchain/mining [build failed] ok forge.lthn.ai/core/go-blockchain/p2p 0.268s ok forge.lthn.ai/core/go-blockchain/rpc 1.254s FAIL forge.lthn.ai/core/go-blockchain/tui [build failed] ok forge.lthn.ai/core/go-blockchain/types 0.751s FAIL forge.lthn.ai/core/go-blockchain/wallet [build failed] ok forge.lthn.ai/core/go-blockchain/wire 1.483s FAIL ``` **Exit code:** 1 PR will not be auto-merged.
Virgil closed this pull request 2026-03-17 13:11:42 +00:00
Some checks failed
Security Scan / security (pull_request) Successful in 9s
Test / Test (pull_request) Failing after 23s

Pull request closed

Sign in to join this conversation.
No description provided.