Commit Graph

140 Commits

Author SHA1 Message Date
oib
00d00cb964 docs(readme): enhance README with CLI tool documentation, GPU provider monetization focus, and performance metrics
- Add comprehensive CLI tool section with quick start guide and key features
- Add "Earn Money with Your GPU" section highlighting provider benefits and success tips
- Add CLI installation and usage examples for marketplace, agent management, and development
- Add multi-language CLI support documentation
- Add performance metrics section with response times, processing speed, and up
2026-03-02 22:36:28 +01:00
oib
7bee3f7f58 chore(gitignore): add development tests exclusion patterns
- Add dev/tests/__pycache__/ Python cache directory
- Add dev/tests/*.pyc compiled Python files
- Add dev/tests/test_results/ test output directory
- Add dev/tests/simple_test_results.json test results file
- Add dev/tests/data/ test data directory
- Add dev/tests/*.db test database files
2026-03-02 21:59:17 +01:00
oib
f086eba111 fix(pytest): remove pytest section header and configure cache directory to dev/cache/
- Remove [pytest] section header from pytest.ini configuration file
- Add cache_dir setting to store pytest cache in dev/cache/.pytest_cache instead of project root
- Prevent .pytest_cache directory creation at root level
2026-03-02 21:56:15 +01:00
oib
06e8f68cb9 chore: remove edge node configs and update paths from configs/ to config/
- Delete edge-node-aitbc.yaml primary container configuration
- Delete edge-node-aitbc1.yaml secondary container configuration
- Update docs/1_project/5_done.md path reference from configs/ to config/
- Update scripts/ops/install_miner_systemd.sh systemd service path from configs/systemd/ to config/systemd/
2026-03-02 21:56:05 +01:00
oib
3b3e93770e fix(git-hook): correct project root path and exclude .git directories from forbidden check
- Update cd path from "../.." to properly navigate to project root from scripts directory
- Add .git directory exclusion pattern to prevent false positives on git metadata
- Remove test_bad_location.py placeholder file
2026-03-02 15:50:43 +01:00
oib
d6958abdea Test prevention system fixed 2026-03-02 15:50:21 +01:00
oib
205efc0c54 Test git hook fix 2026-03-02 15:49:57 +01:00
oib
b0a5d1e945 Test commit with correctly placed file 2026-03-02 15:43:26 +01:00
oib
ccedbace53 chore: remove configuration files and enhance blockchain explorer with advanced search, analytics, and export features
- Delete .aitbc.yaml.example CLI configuration template
- Delete .lycheeignore link checker exclusion rules
- Delete .nvmrc Node.js version specification
- Add advanced search panel with filters for address, amount range, transaction type, time range, and validator
- Add analytics dashboard with transaction volume, active addresses, and block time metrics
- Add Chart.js integration
2026-03-02 15:38:25 +01:00
oib
af185cdd8b docs: remove agent identity SDK deployment and implementation documentation files
- Delete AGENT_IDENTITY_SDK_DEPLOYMENT_CHECKLIST.md deployment guide with database migration steps, configuration setup, and production deployment instructions
- Delete AGENT_IDENTITY_SDK_DOCS_UPDATE_SUMMARY.md documentation workflow completion summary with cross-reference validation and quality assurance results
- Delete AGENT_IDENTITY_SDK_IMPLEMENTATION_SUMMARY.md comprehensive implementation summary with file listings
2026-03-01 00:50:02 +01:00
oib
c97e101727 docs(plan): update milestone planning to mark phase 6 complete and transition to Q4 2026 global expansion phase
- Update Q3 2026 from "CURRENT PHASE" to "COMPLETED PHASE" with all weeks 13-24 marked complete
- Mark Q4 2026 as "NEXT PHASE" with weeks 25-28 Global Expansion APIs as 🔄 NEXT
- Update priority focus areas from "Next Phase" to "Current Phase" with global expansion emphasis
- Mark Enterprise Integration APIs and Scalability Optimization as  COMPLETE
- Update Phase 4-6 success metrics to  ACHIEVED
2026-03-01 00:34:12 +01:00
oib
7e9ba75f6c feat(coordinator-api): enhance reinforcement learning service with PyTorch-based PPO, SAC, and Rainbow DQN implementations
- Add PyTorch neural network implementations for PPO, SAC, and Rainbow DQN agents with GPU acceleration
- Implement PPOAgent with actor-critic architecture, clip ratio, and entropy regularization
- Implement SACAgent with separate actor and dual Q-function networks for continuous action spaces
- Implement RainbowDQNAgent with dueling architecture and distributional RL (51 atoms
2026-03-01 00:18:14 +01:00
oib
94b9bbc7f0 docs(plan): update milestone planning with phase 4 focus and success metrics
- Update priority areas from "100% COMPLETE" to "Next Priority Areas" with phase 4 focus
- Mark Smart Contract Development as 🔄 NEXT and Advanced AI Features as 🔄 FUTURE
- Restructure development timeline with Q2 2026 marked as COMPLETED, Q3 2026 as CURRENT PHASE
- Add Q4 2026 future planning section with weeks 25-36 roadmap
- Reorganize next development steps into completed and future sections
- Add comprehensive success metrics and
2026-03-01 00:06:33 +01:00
oib
768a0cf8fd feat(coordinator-api,docs): integrate developer platform and governance routers, complete phase 3 documentation
- Add developer_platform and governance_enhanced router imports to coordinator-api main.py
- Include developer_platform and governance_enhanced routers with /v1 prefix
- Refactor governance_service.py delegation logic to use delegatee_id directly and add logging
- Remove redundant session.add() calls, rely on session.refresh() after commit
- Update governance service docstring to reflect multi
2026-02-28 23:32:38 +01:00
oib
d8a432ce33 feat: complete phase 3 developer ecosystem and dao governance 2026-02-28 23:24:26 +01:00
oib
5bc18d684c feat: add phase 2 decentralized memory python services and tests 2026-02-28 23:19:02 +01:00
oib
c63259ef2c feat: finish phase 2 decentralized memory and storage tasks 2026-02-28 23:18:56 +01:00
oib
6c48ae64b2 feat: finish phase 1 remaining tasks docs update 2026-02-28 23:12:21 +01:00
oib
bf95cd0d9b feat: complete remaining phase 1 tasks - multi-chain wallet, atomic swaps, and multi-region deployment 2026-02-28 23:11:55 +01:00
oib
0e6c9eda72 feat(coordinator-api): integrate dynamic pricing engine with GPU marketplace and add agent identity router
- Add DynamicPricingEngine and MarketDataCollector dependencies to GPU marketplace endpoints
- Implement dynamic pricing calculation for GPU registration with market_balance strategy
- Calculate real-time dynamic prices at booking time with confidence scores and pricing factors
- Enhance /marketplace/pricing/{model} endpoint with comprehensive dynamic pricing analysis
  - Add static vs dynamic price
2026-02-28 22:57:10 +01:00
oib
85ae21a568 refactor(blockchain-explorer): add HTTPException import for error handling
- Import HTTPException from fastapi for proper exception handling in endpoints
- Prepare for enhanced error responses in blockchain explorer API routes
2026-02-28 22:04:46 +01:00
oib
12df88d196 fix(blockchain-explorer): fix template formatting and enhance health check endpoint
- Fix CSS animation syntax in HTML template by escaping curly braces for proper f-string formatting
- Replace .format() with .replace() for node_url substitution to avoid KeyError with unescaped braces
- Add blockchain node connectivity test to health check with 5s timeout
- Return degraded status when node is unreachable instead of error
- Add node_status field and API endpoints documentation to health response
2026-02-28 21:58:53 +01:00
oib
2d97783fb1 refactor(coordinator-api,blockchain-explorer): add response caching and fix timestamp handling
- Add cached decorator to admin stats, job status, payment status, and marketplace stats endpoints
- Configure cache TTLs using get_cache_config for different endpoint types (1min job_list, 30s user_balance, marketplace_stats)
- Import cache_management router and include it in main app with /v1 prefix
- Fix blockchain-explorer formatTimestamp to handle both ISO string and Unix numeric timestamps with type
2026-02-28 21:50:25 +01:00
oib
93ffaf53de feat(coordinator-api): add database connection pooling configuration and comprehensive payment validation
- Add configurable database connection pool settings (pool_size, max_overflow, pool_recycle, pool_pre_ping, echo)
- Replace hardcoded pool settings with environment-configurable values from settings
- Add QueuePool explicitly to both sync and async database engines
- Implement comprehensive Pydantic validators for payment schemas (JobPaymentCreate, PaymentRequest, ExchangePaymentRequest)
- Add regex
2026-02-28 21:35:58 +01:00
oib
57b12a882a refactor(coordinator-api): enhance startup/shutdown logging and add rate limit metrics endpoint
- Add database connection warmup during startup with connectivity test
- Expand startup logging with comprehensive configuration summary including all rate limits
- Implement graceful shutdown sequence with in-flight request handling and resource cleanup
- Add Prometheus metrics for rate limiting (hits counter and response time histogram)
- Create dedicated /rate-limit-metrics endpoint for rate limit monitoring
- Record
2026-02-28 21:29:08 +01:00
oib
2ec1ceb600 refactor(coordinator-api): make rate limits configurable via environment variables
- Add configurable rate limit settings for all endpoints (jobs, miner, admin, marketplace, exchange)
- Replace hardcoded rate limit decorators with lambda functions reading from settings
- Add rate limit configuration logging during startup
- Implement custom RateLimitExceeded exception handler with structured error responses
- Add enhanced shutdown logging for database cleanup and resource management
- Set default rate
2026-02-28 21:25:46 +01:00
oib
f05195749c feat(coordinator-api): add global exception handler and rate limiting to marketplace and exchange endpoints
- Add general exception handler to catch all unhandled exceptions with structured error responses
- Add structured logging to validation error handler with request context
- Implement slowapi rate limiting on marketplace endpoints (100/min list, 50/min stats, 30/min bid)
- Implement slowapi rate limiting on exchange payment creation (20/min)
- Add Request parameter to rate-limited endpoints for slow
2026-02-28 21:22:37 +01:00
oib
7cb0b30dae refactor: migrate all remaining modules to use shared aitbc.logging from aitbc-core package
- Replace `import logging` with `from aitbc.logging import get_logger` across blockchain-node scripts and coordinator-api modules
- Update logger initialization from `logging.getLogger(__name__)` to `get_logger(__name__)` in 30+ files
- Add production configuration validators for API keys, HMAC secret, and JWT secret in coordinator config
- Enhance coordinator startup with comprehensive initialization logging
2026-02-28 21:17:53 +01:00
oib
f6ee77f497 refactor: consolidate logging to shared aitbc-core package and upgrade database dependencies
- Upgrade SQLAlchemy to 2.0.47 with asyncio extras in blockchain-node and coordinator-api
- Add asyncpg >=0.29.0 for PostgreSQL async support
- Remove uvloop as optional dependency, make it required >=0.22.0
- Delete duplicate logger.py from blockchain-node (117 lines)
- Refactor coordinator-api logging to use shared aitbc.logging from aitbc-core package
- Add aitbc-core package dependency to coordinator
2026-02-28 21:09:14 +01:00
oib
d072acb468 docs: update documentation links and expand Q2-Q3 2026 milestone plan
- Fix broken documentation links in intro.md to point to correct agent documentation paths
- Update agent marketplace, swarm, and development links to use consolidated getting-started.md
- Expand Q2-Q3 2026 milestone plan from "OpenClaw Agent Economic Model & Scalability" to "Global Marketplace Expansion"
- Add comprehensive global infrastructure scaling strategy with multi-region deployment
- Include cross-chain agent economics
2026-02-27 23:33:39 +01:00
oib
d7e3d645a8 chore(contracts): add deployment artifacts for multi-node 2026-02-27 23:09:07 +01:00
oib
c6f1bcb62a fix(contracts): fix constructor arguments in deploy script and remove inline assembly 2026-02-27 23:07:52 +01:00
oib
7b33f9e417 feat: recreate remaining missing agent smart contracts from docs 2026-02-27 23:00:27 +01:00
oib
285c0dab1c feat: recreate AgentMarketplaceV2.sol based on docs 2026-02-27 22:57:14 +01:00
oib
8ca8fa041d feat: recreate AgentServiceMarketplace.sol based on docs 2026-02-27 22:56:13 +01:00
oib
501676ff93 feat: recreate AgentWallet.sol based on docs 2026-02-27 22:54:37 +01:00
oib
d152044c6f chore: upgrade package.json engines to Node >=22.22.0 across all packages 2026-02-27 22:48:30 +01:00
oib
864ef4343e refactor(contracts): remove deprecated AIPowerRental contract in favor of bounty system
- Delete AIPowerRental.sol (566 lines) - replaced by AgentBounty.sol
- Remove rental agreement system with provider/consumer model
- Remove performance metrics and SLA tracking
- Remove dispute resolution mechanism
- Remove ZK-proof verification for performance
- Remove provider/consumer authorization system
- Bounty system provides superior developer incentive structure
2026-02-27 21:46:54 +01:00
oib
a477681c4b feat(developer-ecosystem): implement bounty and staking system with ZK-proof integration
Phase 1 Implementation Complete:
- AgentBounty.sol: Automated bounty board with ZK-proof verification
- AgentStaking.sol: Reputation-based yield farming with dynamic APY
- BountyIntegration.sol: Cross-contract event handling and auto-verification
- Database models: Complete bounty, staking, and ecosystem metrics schemas
- REST APIs: Full bounty and staking management endpoints
- Services: Business logic for bounty creation, verification, and staking operations
- Ecosystem dashboard: Analytics and metrics tracking system

Key Features:
- Multi-tier bounty system (Bronze, Silver, Gold, Platinum)
- Performance-based APY calculation with reputation multipliers
- ZK-proof integration with PerformanceVerifier.sol
- Automatic bounty completion detection
- Comprehensive analytics dashboard
- Risk assessment and leaderboards
- Real-time metrics and predictions

Security Features:
- Reentrancy protection on all contracts
- Role-based access control
- Dispute resolution mechanism
- Early unbonding penalties
- Platform fee collection

Economic Model:
- Creation fees: 0.5%
- Success fees: 2%
- Platform fees: 1%
- Staking APY: 5-20% based on performance
- Dispute fees: 0.1%
2026-02-27 17:51:23 +01:00
oib
27e836bf3f refactor(coordinator): standardize database path to follow blockchain-node pattern
- Change coordinator database from /opt/data/coordinator.db to ./data/coordinator.db
- Update config.py to use relative path consistent with blockchain-node
- Update deployment scripts to use /opt/coordinator-api/data/coordinator.db
- Add data directory creation in init_db() for consistency
- Update .env.example files to reflect new standard
- Maintain backward compatibility for production deployment
2026-02-27 17:32:00 +01:00
oib
d023654e74 refactor(theme): remove light theme and enforce dark mode across all apps 2026-02-27 14:00:33 +01:00
oib
521f7ec04a fix(website): fix reference error on dark mode toggle button by standardizing classes and removing inline onclick 2026-02-27 13:44:14 +01:00
oib
cb6896823e fix(website): fix javascript syntax error by removing dangling brackets in main.js 2026-02-27 13:32:04 +01:00
oib
c67e2370c9 fix(website): remove invalid escape sequence syntax error in web-vitals.js 2026-02-27 13:18:56 +01:00
oib
01bdbef1e4 fix(website): synchronize theme state across all apps and prevent toggle conflicts 2026-02-27 13:15:01 +01:00
oib
c2e1b1228c fix(website): remove dead telemetry POST request from web-vitals.js to prevent 404 console errors 2026-02-27 13:05:28 +01:00
oib
e5092f2e83 fix(exchange): remove duplicate initializeTheme call and fix broken api route references 2026-02-27 12:55:26 +01:00
oib
e6094c9757 fix(website): inject font-awesome css to sub-apps to render the header cube logo 2026-02-27 12:42:10 +01:00
oib
9e70134494 fix(website): lock max-width to 1160px globally for header and containers 2026-02-27 12:36:51 +01:00
oib
39bc288a4d fix(website): remove duplicate marketplace link from header actions on landing page 2026-02-27 12:29:16 +01:00