Commit Graph

1289 Commits

Author SHA1 Message Date
aitbc
da1d8c4c77 Remove password requirement for AI job submission to Agent Coordinator
Some checks failed
CLI Tests / test-cli (push) Failing after 4s
Security Scanning / security-scan (push) Has been cancelled
2026-04-28 17:34:53 +02:00
aitbc
d997ced044 Simplify AI handler to submit directly to Agent Coordinator without wallet signing
Some checks failed
CLI Tests / test-cli (push) Failing after 2s
Security Scanning / security-scan (push) Has been cancelled
2026-04-28 17:34:38 +02:00
aitbc
565ca25e85 Fix AI job submission to use Agent Coordinator endpoint
Some checks failed
CLI Tests / test-cli (push) Failing after 2s
Security Scanning / security-scan (push) Successful in 16s
2026-04-28 17:33:21 +02:00
aitbc
ad06297593 Fix AI handler to use same decryption as wallet handler
Some checks failed
CLI Tests / test-cli (push) Failing after 8s
Security Scanning / security-scan (push) Has been cancelled
2026-04-28 17:31:41 +02:00
aitbc
279517a53a Add detailed error logging to AI handler decryption
Some checks failed
CLI Tests / test-cli (push) Failing after 10s
Security Scanning / security-scan (push) Successful in 45s
2026-04-28 17:30:46 +02:00
aitbc
1cf46405f8 Fix AI handler with inline AES-256-GCM decryption
Some checks failed
CLI Tests / test-cli (push) Failing after 1s
Security Scanning / security-scan (push) Successful in 17s
2026-04-28 17:29:10 +02:00
aitbc
a009ba1192 Fix AI handler to import decrypt_private_key from correct module
Some checks failed
CLI Tests / test-cli (push) Failing after 10s
Security Scanning / security-scan (push) Has been cancelled
2026-04-28 17:28:41 +02:00
aitbc
b1a6f89219 Fix AI handler import path for decrypt_private_key
Some checks failed
CLI Tests / test-cli (push) Failing after 7s
Security Scanning / security-scan (push) Has started running
2026-04-28 17:28:09 +02:00
aitbc
1555746fb8 Fix AI handler to use correct keystore decryption
Some checks failed
CLI Tests / test-cli (push) Failing after 1s
Security Scanning / security-scan (push) Successful in 53s
2026-04-28 17:27:08 +02:00
aitbc
1fedd8b9ee Fix AI job submission to use correct keystore decryption and modern transaction format
Some checks failed
CLI Tests / test-cli (push) Failing after 7s
Security Scanning / security-scan (push) Successful in 1m0s
2026-04-28 17:25:30 +02:00
aitbc
1c7192852f Fix agent action handler to handle message send results
Some checks failed
CLI Tests / test-cli (push) Failing after 6s
Security Scanning / security-scan (push) Successful in 16s
2026-04-28 17:22:13 +02:00
aitbc
de3e31cc0a Fix agent message to use modern transaction payload format
Some checks failed
CLI Tests / test-cli (push) Failing after 3s
Security Scanning / security-scan (push) Has been cancelled
2026-04-28 17:21:48 +02:00
aitbc
3a2789a718 Fix CLI wallet send to decrypt private key and use modern payload 2026-04-28 17:19:10 +02:00
aitbc
5aa5038a76 Fix CLI wallet send to use modern transaction payload format
Some checks failed
CLI Tests / test-cli (push) Failing after 2s
Security Scanning / security-scan (push) Successful in 1m17s
2026-04-28 17:18:34 +02:00
aitbc
9d9ce67de1 fix: add chain_id field to TransactionRequest model
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 2s
Integration Tests / test-service-integration (push) Successful in 56s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 2s
P2P Network Verification / p2p-verification (push) Successful in 2s
Python Tests / test-python (push) Successful in 8s
Security Scanning / security-scan (push) Successful in 20s
2026-04-28 17:02:09 +02:00
aitbc
03af662d59 fix: add populate_by_name config to enable alias support
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 2s
Integration Tests / test-service-integration (push) Successful in 57s
Multi-Node Blockchain Health Monitoring / health-check (push) Has been cancelled
P2P Network Verification / p2p-verification (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
2026-04-28 17:00:10 +02:00
aitbc
d073f899d3 debug: add logging to see what's being extracted from payload
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 2s
Integration Tests / test-service-integration (push) Successful in 56s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 8s
P2P Network Verification / p2p-verification (push) Successful in 5s
Python Tests / test-python (push) Successful in 7s
Security Scanning / security-scan (push) Successful in 25s
2026-04-28 16:58:30 +02:00
aitbc
5e714cb7a3 fix: add alias for sender field to accept both 'sender' and 'from'
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 7s
Multi-Node Blockchain Health Monitoring / health-check (push) Has been cancelled
Integration Tests / test-service-integration (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
P2P Network Verification / p2p-verification (push) Successful in 5s
2026-04-28 16:56:47 +02:00
aitbc
b91f00b697 fix: handle transaction payload migration at validator level
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 2s
CLI Tests / test-cli (push) Failing after 5s
Integration Tests / test-service-integration (push) Successful in 1m2s
Multi-Node Blockchain Health Monitoring / health-check (push) Has been cancelled
P2P Network Verification / p2p-verification (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
- TransactionRequest now supports both payload shapes during migration:
  - Modern: recipient + amount
  - Legacy: to + value
- Validator normalizes both key sets and throws clear error if neither recipient key is present
- Updated send_transaction to derive gossip recipient from either payload.recipient or payload.to
- Added regression tests for the alias/normalization path
- Updated CLI to use payload-based approach with recipient and amount
2026-04-28 16:55:22 +02:00
aitbc
ba05f25c8d fix: use validation_alias for 'to' field to avoid Python keyword issues
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 4s
Integration Tests / test-service-integration (push) Successful in 56s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 2s
P2P Network Verification / p2p-verification (push) Successful in 1s
Python Tests / test-python (push) Successful in 8s
Security Scanning / security-scan (push) Successful in 25s
2026-04-28 16:36:21 +02:00
aitbc
80b79f11eb fix: simplify TransactionRequest to use 'to' directly without alias
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 3s
Integration Tests / test-service-integration (push) Successful in 58s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 2s
P2P Network Verification / p2p-verification (push) Successful in 2s
Python Tests / test-python (push) Successful in 9s
Security Scanning / security-scan (push) Successful in 26s
2026-04-28 16:17:25 +02:00
aitbc
b0ca0cb321 fix: use 'recipient' instead of 'to' in CLI to avoid Pydantic alias issues
Some checks failed
CLI Tests / test-cli (push) Failing after 8s
Security Scanning / security-scan (push) Successful in 29s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 2s
2026-04-28 15:58:50 +02:00
aitbc
d8a5ed2d35 fix: add populate_by_name config to ensure aliases work correctly
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 2s
Integration Tests / test-service-integration (push) Successful in 58s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 2s
P2P Network Verification / p2p-verification (push) Successful in 2s
Python Tests / test-python (push) Successful in 14s
Security Scanning / security-scan (push) Has started running
2026-04-28 15:55:34 +02:00
aitbc
79a5289cf5 fix: add type field to CLI transaction construction
Some checks failed
Security Scanning / security-scan (push) Has been cancelled
CLI Tests / test-cli (push) Failing after 2s
2026-04-28 15:53:58 +02:00
aitbc
65a0311240 fix: add alias 'signature' to sig field for CLI compatibility
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 11s
Security Scanning / security-scan (push) Has been cancelled
Integration Tests / test-service-integration (push) Has been cancelled
Multi-Node Blockchain Health Monitoring / health-check (push) Has been cancelled
P2P Network Verification / p2p-verification (push) Has been cancelled
Python Tests / test-python (push) Successful in 21s
2026-04-28 15:53:06 +02:00
aitbc
0020aced99 fix: add alias 'to' to recipient field for CLI compatibility
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 11s
Integration Tests / test-service-integration (push) Has started running
Multi-Node Blockchain Health Monitoring / health-check (push) Has been cancelled
P2P Network Verification / p2p-verification (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
2026-04-28 15:52:09 +02:00
aitbc
118414697f fix: rename 'to' field to 'recipient' to avoid Python keyword conflicts
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 6s
Integration Tests / test-service-integration (push) Successful in 1m4s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 7s
P2P Network Verification / p2p-verification (push) Successful in 3s
Python Tests / test-python (push) Successful in 9s
Security Scanning / security-scan (push) Successful in 1m2s
2026-04-28 15:48:19 +02:00
aitbc
fa5c8c20d7 debug: add logging for 'to' field to diagnose issue
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 11s
Integration Tests / test-service-integration (push) Successful in 1m4s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 7s
P2P Network Verification / p2p-verification (push) Successful in 10s
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
2026-04-28 15:46:40 +02:00
aitbc
1a74ec7206 debug: add logging to see tx_data.to value
Some checks failed
Integration Tests / test-service-integration (push) Successful in 1m0s
Python Tests / test-python (push) Successful in 9s
Security Scanning / security-scan (push) Successful in 29s
P2P Network Verification / p2p-verification (push) Successful in 2s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 2s
Blockchain Synchronization Verification / sync-verification (push) Failing after 2s
2026-04-28 13:50:57 +02:00
aitbc
eb502ccf80 fix: make 'to' field required in TransactionRequest
Some checks failed
Security Scanning / security-scan (push) Waiting to run
Blockchain Synchronization Verification / sync-verification (push) Failing after 7s
Integration Tests / test-service-integration (push) Has been cancelled
Multi-Node Blockchain Health Monitoring / health-check (push) Has been cancelled
P2P Network Verification / p2p-verification (push) Has started running
Python Tests / test-python (push) Has been cancelled
2026-04-28 13:50:05 +02:00
aitbc
6a3648d33c fix: add validation to require 'to' field for TRANSFER transactions
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 10s
Integration Tests / test-service-integration (push) Has been cancelled
P2P Network Verification / p2p-verification (push) Has been cancelled
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 8s
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has started running
2026-04-28 13:49:07 +02:00
aitbc
82f271cba3 debug: add logging for 'to' field in submit_transaction
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 7s
Integration Tests / test-service-integration (push) Has been cancelled
Multi-Node Blockchain Health Monitoring / health-check (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
P2P Network Verification / p2p-verification (push) Successful in 9s
Security Scanning / security-scan (push) Has been cancelled
2026-04-28 13:48:08 +02:00
aitbc
0359a7c83f fix: add validation to require 'to' field for TRANSFER transactions
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 2s
Integration Tests / test-service-integration (push) Successful in 59s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 3s
P2P Network Verification / p2p-verification (push) Successful in 2s
Python Tests / test-python (push) Successful in 9s
Security Scanning / security-scan (push) Successful in 17s
2026-04-28 13:18:11 +02:00
aitbc
285209006f fix: use top-level 'to' and 'amount' fields in submit_transaction
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 9s
Integration Tests / test-service-integration (push) Has been cancelled
Multi-Node Blockchain Health Monitoring / health-check (push) Has been cancelled
P2P Network Verification / p2p-verification (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Successful in 36s
2026-04-28 13:17:08 +02:00
aitbc
248de71724 fix: add missing 'to' and 'amount' fields to TransactionRequest model
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 9s
Integration Tests / test-service-integration (push) Has been cancelled
Multi-Node Blockchain Health Monitoring / health-check (push) Has been cancelled
P2P Network Verification / p2p-verification (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
2026-04-28 13:16:08 +02:00
aitbc
d61da16ae6 chore: remove debug logging for block production filtering
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 3s
Integration Tests / test-service-integration (push) Successful in 58s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 2s
P2P Network Verification / p2p-verification (push) Successful in 2s
Python Tests / test-python (push) Successful in 9s
Security Scanning / security-scan (push) Successful in 26s
2026-04-28 12:46:40 +02:00
aitbc
e7e0d533b0 feat: add block_production_chains setting to config
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Has been cancelled
Multi-Node Blockchain Health Monitoring / health-check (push) Has been cancelled
Integration Tests / test-service-integration (push) Has been cancelled
P2P Network Verification / p2p-verification (push) Has been cancelled
Python Tests / test-python (push) Has started running
Security Scanning / security-scan (push) Has been cancelled
2026-04-28 12:46:00 +02:00
aitbc
865f21fb85 debug: add logging for block production chain filtering
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 6s
Integration Tests / test-service-integration (push) Has been cancelled
Multi-Node Blockchain Health Monitoring / health-check (push) Has been cancelled
P2P Network Verification / p2p-verification (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has started running
2026-04-28 12:45:23 +02:00
aitbc
0029a16802 debug: add exception type to error logging
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 8s
Integration Tests / test-service-integration (push) Successful in 1m5s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 5s
P2P Network Verification / p2p-verification (push) Successful in 8s
Python Tests / test-python (push) Successful in 26s
Security Scanning / security-scan (push) Successful in 1m45s
2026-04-28 12:12:49 +02:00
aitbc
e8ac716383 debug: add decryption error logging to diagnose keystore decryption failure
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 8s
Integration Tests / test-service-integration (push) Has started running
Multi-Node Blockchain Health Monitoring / health-check (push) Has been cancelled
P2P Network Verification / p2p-verification (push) Has been cancelled
Python Tests / test-python (push) Has started running
Security Scanning / security-scan (push) Has been cancelled
2026-04-28 12:11:45 +02:00
aitbc
a1fe510a76 debug: add logging to keystore loading to diagnose key not found issue
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 2s
Integration Tests / test-service-integration (push) Successful in 1m0s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 9s
P2P Network Verification / p2p-verification (push) Successful in 11s
Python Tests / test-python (push) Successful in 27s
Security Scanning / security-scan (push) Successful in 59s
2026-04-28 12:08:29 +02:00
aitbc
941e2abce8 feat: add block_production_chains config for per-chain block production
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 4s
Integration Tests / test-service-integration (push) Successful in 1m14s
P2P Network Verification / p2p-verification (push) Successful in 9s
Python Tests / test-python (push) Successful in 1m32s
Security Scanning / security-scan (push) Successful in 23s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 3s
Allow configuring which chains should produce blocks via block_production_chains
environment variable. If not specified, defaults to all supported chains.
This enables nodes to follow some chains while only producing blocks for their own chain.
2026-04-28 11:59:29 +02:00
aitbc
a8f6cdaa4d feat: add support for new genesis-init.py script in CLI
Some checks failed
CLI Tests / test-cli (push) Failing after 11s
Security Scanning / security-scan (push) Successful in 1m27s
- Updated genesis_cli.py and unified_cli.py to prefer new genesis-init.py script
- Falls back to unified_genesis.py for wallet creation operations
- New script used for basic genesis initialization without wallet creation
- Made --proposer required when using new script
- Improved error messaging when genesis scripts not found
2026-04-28 11:56:04 +02:00
aitbc
037a6204b5 fix: remove conflicting get_engine() function in database.py
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 8s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 9s
P2P Network Verification / p2p-verification (push) Successful in 8s
Python Tests / test-python (push) Successful in 23s
Security Scanning / security-scan (push) Successful in 1m19s
Integration Tests / test-service-integration (push) Failing after 12m6s
The old get_engine() function without parameters was overriding the new
chain-specific get_engine(chain_id) function, causing TypeError when
init_db() tried to call it with a positional argument.
2026-04-28 11:36:06 +02:00
aitbc
c7c9f44800 feat: implement multi-chain architecture for AITBC services
All checks were successful
Blockchain Synchronization Verification / sync-verification (push) Successful in 2s
Integration Tests / test-service-integration (push) Successful in 58s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 2s
P2P Network Verification / p2p-verification (push) Successful in 2s
Python Tests / test-python (push) Successful in 9s
Security Scanning / security-scan (push) Successful in 27s
- Add get_db_path() method to ChainSettings for chain-specific database paths
- Update database module to support chain-specific engines with registry
- Update multi-chain manager to use subdirectory structure (data/{chain_id}/chain.db)
- Add chain-based routing to RPC endpoints (/head, /blocks/{height}, /importBlock)
- Add chain_id to P2P network handshake messages for chain isolation
- Update blockchain node to initialize databases for all supported chains
- Add chain-specific gossip subscribers (blocks.{chain_id})
- Update chain sync service to support chain-specific sync operations

Backward compatibility maintained: single-chain deployments work without configuration changes.
2026-04-28 10:44:01 +02:00
aitbc
1d02c66465 fix: update black to 26.3.1 to fix CVE-2026-32274
Some checks failed
CLI Tests / test-cli (push) Failing after 2s
Package Tests / Python package - aitbc-agent-sdk (push) Successful in 14s
Package Tests / Python package - aitbc-core (push) Successful in 16s
Package Tests / Python package - aitbc-crypto (push) Successful in 12s
Package Tests / Python package - aitbc-sdk (push) Successful in 12s
Package Tests / JavaScript package - aitbc-sdk-js (push) Successful in 6s
Package Tests / JavaScript package - aitbc-token (push) Successful in 12s
Python Tests / test-python (push) Successful in 9s
- Updated black from ^24.0.0 to ^26.3.1 in pyproject.toml
- Regenerated poetry.lock to apply the update
- Fixes arbitrary file writes from unsanitized user input in cache file name
2026-04-28 10:13:54 +02:00
aitbc
6da6249275 docs: add chain-sync service configuration requirements
Some checks failed
Documentation Validation / validate-docs (push) Successful in 12s
Documentation Validation / validate-policies-strict (push) Failing after 3s
- Documented that chain-sync should only run on follower nodes
- Explained why chain-sync on leader causes hash conflict warnings
- Added configuration instructions for enabling/disabling on different node types
- Updated network configuration to reflect current setup (aitbc as leader)
2026-04-28 10:12:57 +02:00
aitbc
724d27f0ba refactor: replace hardcoded IPs with DNS resolution in P2P IP check
All checks were successful
Blockchain Synchronization Verification / sync-verification (push) Successful in 2s
Integration Tests / test-service-integration (push) Successful in 58s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 2s
P2P Network Verification / p2p-verification (push) Successful in 2s
Python Tests / test-python (push) Successful in 10s
Security Scanning / security-scan (push) Successful in 29s
- Removed hardcoded IP mappings for aitbc, aitbc1, gitea-runner
- Added proper DNS resolution using socket.gethostbyname()
- More maintainable and works with any hostname/IP configuration
2026-04-28 10:05:45 +02:00
aitbc
82d2861272 debug: add logging to P2P IP check to understand duplicate dialing issue
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Successful in 3s
Integration Tests / test-service-integration (push) Successful in 58s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 5s
P2P Network Verification / p2p-verification (push) Successful in 3s
Security Scanning / security-scan (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
2026-04-28 10:03:32 +02:00
aitbc
e94fb58b7b fix: prevent P2P duplicate dialing for aitbc and gitea-runner hostnames
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Successful in 4s
Integration Tests / test-service-integration (push) Has been cancelled
Multi-Node Blockchain Health Monitoring / health-check (push) Has been cancelled
P2P Network Verification / p2p-verification (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
- Fixed IP check logic in _dial_peers_loop to handle aitbc and gitea-runner hostnames
- aitbc1 was dialing aitbc every 10 seconds even when already connected
- Added explicit IP mappings for aitbc (10.1.223.93) and gitea-runner (10.1.223.98)
- Prevents endless redialing between nodes
2026-04-28 10:01:51 +02:00