Commit Graph

126 Commits

Author SHA1 Message Date
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
oib
37bdc7d034 fix(website): lock global header height to 90px and remove duplicate marketplace nav button 2026-02-27 12:25:21 +01:00
oib
2b6ac4a0bb fix(website): ensure data-theme='dark' is present on html tags across all apps for correct header rendering 2026-02-27 12:14:05 +01:00
oib
8587a9f2b5 fix(explorer): unify header and dark mode theme with global standard 2026-02-27 12:09:11 +01:00
oib
df726f9ccb fix(marketplace): resolve duplicate stats-grid element breaking stats rendering 2026-02-27 12:00:22 +01:00
oib
db63a008f4 fix(marketplace): unify header with global site header 2026-02-27 11:52:04 +01:00
oib
f3ab29a981 fix(exchange): unify header, match global theme, and fix broken API fallback/links 2026-02-27 11:48:41 +01:00
oib
5fd239e283 fix(website): use absolute paths for global header assets 2026-02-27 11:28:42 +01:00
oib
92e9b37f6d fix(website): standardize docs header and update terminology 2026-02-27 11:10:25 +01:00
oib
a12c6b274c fix(website): correct css path for docs index page 2026-02-27 11:01:00 +01:00
oib
b6cccda194 feat: optimize website for OpenClaw Agent focus 2026-02-27 10:57:10 +01:00
oib
c5af4819ff fix: change explorer port to 3001 and add systemd service configuration 2026-02-26 23:42:23 +01:00
oib
dd5c7f0e22 fix: resolve explorer transaction search, timestamp formatting, and optimize RPC total_count queries 2026-02-26 23:26:59 +01:00
oib
7bb2905cca Update database paths and fix foreign key references across coordinator API
- Change SQLite database path from `/home/oib/windsurf/aitbc/data/` to `/opt/data/`
- Fix foreign key references to use correct table names (users, wallets, gpu_registry)
- Replace governance router with new governance and community routers
- Add multi-modal RL router to main application
- Simplify DEPLOYMENT_READINESS_REPORT.md to focus on production deployment status
- Update governance router with decentralized DAO voting
2026-02-26 19:32:06 +01:00
oib
1e2ea0bb9d docs: enhance README with emojis and core features list 2026-02-26 19:25:04 +01:00