Commit Graph

816 Commits

Author SHA1 Message Date
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
oib
efd358dfac docs: next milestone planning for OpenClaw Agent Economics 2026-02-26 19:22:16 +01:00
oib
88971a3216 docs: automated documentation update and phase 8 archiving 2026-02-26 19:17:53 +01:00
oib
825f157749 Update Python version requirements and fix compatibility issues
- Bump minimum Python version from 3.11 to 3.13 across all apps
- Add Python 3.11-3.13 test matrix to CLI workflow
- Document Python 3.11+ requirement in .env.example
- Fix Starlette Broadcast removal with in-process fallback implementation
- Add _InProcessBroadcast class for tests when Starlette Broadcast is unavailable
- Refactor API key validators to read live settings instead of cached values
- Update database models with explicit
2026-02-24 18:41:08 +01:00
oib
24b3a37733 Update documentation for completed enhanced services deployment
- Update 5_done.md with enhanced AI agent services deployment
- Mark Stage 20 as completed in roadmap.md with all achievements
- Update next milestone to reflect current completion status
- Mark advanced AI agents as completed with performance metrics
- Document 0.08s processing time and 94% accuracy achievements
- Update systemd integration and service deployment details
2026-02-24 18:27:27 +01:00
oib
d4001254ec Update .lycheeignore to exclude internal documentation links
- Exclude all internal documentation directories during restructuring
- Prevent link check failures during documentation migration
- Focus on external link validation only
2026-02-24 17:51:30 +01:00
oib
22ef6f56e2 Fix broken markdown links after documentation merge
- Update all docs/agents/ references to docs/11_agents/
- Fix internal links in agent documentation
- Resolve markdown link check failures
2026-02-24 17:49:52 +01:00
oib
c6b9c679b9 Fix UNIX glob pattern error in GitHub Actions
- Remove coordinator-api and blockchain-node publishing jobs
- These apps don't have proper setup.py files yet
- Keep only agent-sdk and explorer-web publishing
- Prevents glob pattern errors during build
2026-02-24 17:48:27 +01:00
oib
938ced2e27 Fix npm CI error in GitHub Actions
- Remove package-lock.json from gitignore to enable npm ci
- Add package-lock.json for explorer-web app
- Update publish-packages.yml workflow
2026-02-24 17:47:45 +01:00
oib
5c119c79ce Add release notes for v0.1.0 2026-02-24 17:45:35 +01:00
oib
1e4db1bada Release v0.1.0 - Early Testing Phase
- Agent-first architecture implementation
- Complete agent documentation and workflows
- GitHub Packages publishing infrastructure
- Debian 13 + Python 3.13 support
- NVIDIA GPU resource sharing capabilities
- Swarm intelligence coordination
- Zero-knowledge proof verification
- Automated onboarding and monitoring
2026-02-24 17:44:51 +01:00