Commit Graph

79 Commits

Author SHA1 Message Date
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
oib
82bbe5cb54 docs: simplify README to focus on core value proposition and remove obsolete trade-exchange HTML
- Rewrite README overview to emphasize decentralized GPU marketplace concept over technical implementation details
- Condense architecture section from detailed component listing to high-level flow diagram
- Remove directory structure table and consolidate documentation links
- Streamline quick start section by removing redundant deployment/test instructions
- Delete unused `apps/trade-exchange/index
2026-02-22 21:55:44 +01:00
oib
6901e0084f docs/config/packages: add v0.1 release prep, security status, and SDK enhancements
- Add Stage 23 roadmap for v0.1 release preparation with PyPI/npm publishing, deployment automation, and security audit milestones
- Document competitive differentiators: zkML/FHE integration, hybrid TEE/ZK verification, on-chain model marketplace, and geo-low-latency matching
- Update security documentation with smart contract audit results (0 vulnerabilities, 35 OpenZeppelin warnings)
- Add security-first setup
2026-02-19 21:47:28 +01:00
oib
1073d7b61a docs: fix blockchain RPC port references and dead links
- Update blockchain RPC port from 8081 to 9080 across infrastructure docs
- Fix confidential transactions documentation cross-references
- Standardize "Blockchain Node RPC" naming in services table
2026-02-19 10:50:51 +01:00
Andreas Michael Fleckl
b735da9e98 Merge pull request #3 from oib/codex/analyze-codebase-and-suggest-improvements-exvc22
cli/docs/tests: harden config edit invocation and add YAML empty-export coverage
2026-02-17 16:25:07 +01:00
Andreas Michael Fleckl
c23c256249 Merge branch 'main' into codex/analyze-codebase-and-suggest-improvements-exvc22 2026-02-17 16:24:35 +01:00
Andreas Michael Fleckl
f1fa7768f3 cli/docs/tests: harden editor launch and refine docs/test coverage 2026-02-17 16:23:45 +01:00
Andreas Michael Fleckl
c41ec60ed7 Merge pull request #2 from oib/codex/analyze-codebase-and-suggest-improvements-6omr61
docs/tests: fix remaining dead links and add empty-config export test
2026-02-17 16:15:25 +01:00
Andreas Michael Fleckl
b28148f5ec Merge branch 'main' into codex/analyze-codebase-and-suggest-improvements-6omr61 2026-02-17 16:15:02 +01:00
Andreas Michael Fleckl
9c8ec21479 docs/tests: fix remaining dead links and add export empty-yaml test 2026-02-17 16:10:02 +01:00
Andreas Michael Fleckl
8748329598 Merge pull request #1 from oib/codex/analyze-codebase-and-suggest-improvements
docs: add codebase review task suggestions
2026-02-17 16:01:19 +01:00
Andreas Michael Fleckl
e2dfb0ea84 fix: implement review follow-ups across docs, config, and tests 2026-02-17 16:00:11 +01:00
Andreas Michael Fleckl
a77eae9517 docs: add codebase review task suggestions 2026-02-17 15:50:54 +01:00
oib
421191ccaf feat: add transaction hash search to blockchain explorer and cleanup settlement storage
Blockchain Explorer:
- Add transaction hash search support (64-char hex pattern validation)
- Fetch and display transaction details in modal (hash, type, from/to, amount, fee, block)
- Fix regex escape sequence in block height validation
- Update search placeholder text to mention both search types
- Add blank lines between function definitions for PEP 8 compliance

Settlement Storage:
- Add timedelta import for future
2026-02-17 14:34:12 +01:00
oib
31d3d70836 feat: add blockchain RPC blocks-range endpoint and marketplace bid listing
Blockchain Node:
- Replace /blocks (pagination) with /blocks-range (height range query)
- Add start/end height parameters with 1000-block max range validation
- Return blocks in ascending height order instead of descending
- Update metrics names (rpc_get_blocks_range_*)
- Remove total count from response (return start/end/count instead)

Coordinator API:
- Add effective_url property to DatabaseConfig (SQLite/PostgreSQL defaults
2026-02-16 22:54:08 +01:00
oib
fdc3012780 feat: add skeleton loaders to marketplace and integrate global header across docs
Marketplace:
- Add skeleton loading states for stats grid and GPU offer cards
- Show animated skeleton placeholders during data fetch
- Add skeleton CSS with shimmer animation and dark mode support
- Wrap stats section in #stats-grid container for skeleton injection

Trade Exchange:
- Replace inline header with data-global-header component
- Switch GPU offers to production API (/api/miners/list)
- Add fallback to demo
2026-02-15 20:44:04 +01:00
oib
7062b2cc78 feat: add dark mode, navigation, and Web Vitals tracking to marketplace
Backend:
- Simplify DatabaseConfig: remove effective_url property and project root finder
- Update to Pydantic v2 model_config (replace nested Config class)
- Add web_vitals router to main.py and __init__.py
- Fix ExplorerService datetime handling (ensure timezone-naive comparisons)
- Fix status_label extraction to handle both enum and string job states

Frontend (Marketplace):
- Add dark mode toggle with system preference detection
2026-02-15 19:02:51 +01:00
oib
72e21fd07f feat: show Ollama plugin badge and available LLM models on marketplace cards
Backend:
- Add attributes field to MarketplaceOfferView schema
- Include attributes in _to_offer_view() response

Frontend:
- Add attributes type with Ollama fields to OfferRecord
- Show purple 'Ollama' plugin badge on cards with models
- Display available LLM model tags (gemma3, deepseek-r1, etc.)
- Add plugin-badge and model-tag CSS styles
2026-02-14 16:57:15 +01:00
oib
417259171a feat: marketplace GPU spec cards with VRAM, CUDA, region, pricing
- Add GPU fields to OfferRecord type (gpu_model, gpu_memory_gb, etc.)
- Replace flat table with responsive GPU offer cards
- Show GPU model, VRAM, GPU count, CUDA version, capacity specs
- Display pricing and SLA with provider + region
- Add offer-card CSS with spec grid, hover effects, responsive layout
2026-02-14 16:52:17 +01:00
oib
182e8572fa fix: remove /v1 from marketplace API fetch paths
nginx /api/ already maps to /v1/, so fetch paths should be
/api/marketplace/* not /api/v1/marketplace/* (double prefix)
2026-02-14 16:48:38 +01:00
oib
ba638c3905 feat: switch marketplace to production mode with real GPU offer
Coordinator API:
- Fix MarketplaceService.list_offers() to query DB instead of mock data
- Remove duplicate mock /marketplace/offers endpoint from marketplace_offers.py
- Handle status as string or enum in _to_offer_view()
- Deploy updated domain model with GPU columns to container
- Add GPU columns to marketplaceoffer table in production DB
- Register RTX 4060 Ti 16GB (at1-localhost) as marketplace offer

Marketplace Web:
- Create .env.production (VITE_MARKETPLACE_DATA_MODE=live, API=/api)
- Create vite.config.ts with base: '/marketplace/'
- Rebuild and deploy to server
2026-02-14 16:46:48 +01:00
oib
a13f5ed187 fix: marketplace asset paths and add vite.config.ts
- Fix dist/index.html: absolute /assets/ → relative assets/ paths
- Create vite.config.ts with base: '/marketplace/' for future builds
- Deploy mock data and vite.svg to server root for current build compat
2026-02-14 16:35:33 +01:00
oib
8741724250 docs: rewrite infrastructure.md — current two-tier architecture
- Document incus host reverse proxy (aitbc-proxy.conf, SSL termination)
- Document container nginx routes (18 location blocks)
- Document all 6 running services with ports and public URLs
- Update web root tree (explorer/, marketplace/, docs/, wallet/)
- Update dev workspace tree (removed stale home/, src/ references)
- Add deployment commands (scp to container)
- Consolidate health checks, monitoring, security sections
- Note purged legacy config (aitbc-website-new.conf deleted from host)
2026-02-14 16:30:28 +01:00
oib
5e69bbfab9 chore: untrack Solidity build artifacts (41 files, 2.2MB)
Already gitignored at packages/solidity/aitbc-token/artifacts/ but
files were still tracked from before. Removes 2.2MB of Hardhat
build-info and compiled contract JSON from git history going forward.
2026-02-13 23:42:47 +01:00
oib
6f60d4283f docs: add Component READMEs section to docs/README.md
Cross-reference all 20 per-component READMEs from docs/README.md:
- 10 app READMEs (blockchain-node, coordinator-api, explorer, etc.)
- 6 package/plugin READMEs (CLI, Ollama, Firefox wallet, ZK, token)
- 4 infra/testing READMEs (infra, tests, verification, examples)
2026-02-13 23:40:16 +01:00
oib
f97ace74cb chore: clean up stray .md files — delete junk, move chaos doc
- Delete apps/explorer-web/test-results/ (stale Playwright snapshots)
- Delete scripts/dev/dev-utils-README.md (orphaned from deleted dev-utils/)
- Move infra/scripts/README_chaos.md → docs/9_security/3_chaos-testing.md
2026-02-13 23:37:04 +01:00
oib
fb4b9a2e49 refactor: clean up tests/ root — delete junk, sort into subdirs
Deleted (7 files):
- test_discovery.py, test_windsurf_integration.py (trivial assert True stubs)
- pytest_simple.ini (unused --collect-only config)
- conftest_path.py (duplicate of conftest.py path setup)
- conftest_fixtures.py, conftest_full.py (unused conftest variants)

Moved to integration/ (6 files):
- test_blockchain_final.py, test_blockchain_nodes.py, test_blockchain_simple.py
- test_basic_integration.py, test_integration_simple.py, test_working_integration.py

Moved to fixtures/:
- mock_blockchain_node.py

tests/ root now has only conftest.py and README.md.
2026-02-13 23:32:58 +01:00
oib
d9481f2b92 refactor: merge scripts/test/ into tests/verification/
Move 21 standalone verification scripts from scripts/test/ to
tests/verification/. These are run-manually scripts that hit live
services (not pytest suites). Consolidates all test-related files
under tests/ with clear separation:
- tests/cli/, tests/unit/, tests/integration/, etc. = pytest suites
- tests/verification/ = standalone verification scripts
2026-02-13 23:29:48 +01:00
oib
3b4cc69179 refactor: organize scripts/, remove stale root dirs, clean up structure
scripts/ reorganization:
- Sort 14 loose root scripts into subfolders:
  blockchain/ (genesis, proposer, mock chain, testnet BTC)
  dev/ (CLI wrapper, dev services, OpenAPI gen, systemd setup, domain proxy)
  ops/ (coordinator proxy, remote tunnel)
  gpu/ (miner workflow)
- Merge scripts/testing/ into scripts/test/ (eliminate duplicate folder)
- Create scripts/examples/ for usage demos and simulations

Root-level cleanup:
- Move home/ (12 simulation scripts) → scripts/examples/
- Move dev-utils/ (2 files) → scripts/dev/
- Move protocols/receipts/sample → tests/fixtures/
- Delete stale src/ (duplicate of apps/blockchain-node/src/)
- Remove empty home/, dev-utils/, protocols/ directories

Documentation updates:
- Update docs/6_architecture/8_codebase-structure.md tree and table
- Update root README.md tree to reflect new structure
2026-02-13 23:26:53 +01:00
oib
76078221cb chore: move examples/example_client_remote.py to docs/8_development/, remove empty examples/ 2026-02-13 23:19:52 +01:00
oib
07f3a87328 docs: restructure website, optimize HTML, gitignore private files
Website docs (website/docs/):
- Delete 6 stale -md.html duplicates
- Rename docs-clients/miners/developers → clients/miners/developers.html
- Unify header/nav across all 15 pages (new .site-header pattern)
- Fix 34 dead href=# links with real targets
- Upgrade Font Awesome v4→v6 in index.html
- Replace search stub with live client-side search (15-page index)
- Extract all inline CSS into shared docs.css (+630 lines)
- Extract inline theme JS into shared theme.js
- Strip inline style= attributes from 10+ pages
- Add .announce-banner, .source-links, .search-results CSS classes
- Add Markdown Source links to clients/miners/developers pages
- Update components.html title to Architecture & Components
- Move browser-wallet.html to website/wallet/, leave redirect
- Update all dates to February 2026

Website root:
- Delete 6 root-level duplicate HTML files (160KB saved)
- Rewire index.html and 404.html links

Root README.md:
- Fix 8 broken doc links to new numbered folder structure
- Update copyright to 2026

.gitignore + .example files:
- Gitignore private files: .aitbc.yaml, .env, deploy scripts,
  GPU scripts, service scripts, infra configs, .windsurf/, website README
- Create 7 .example files for GitHub users with sanitized templates
- Untrack 47 previously committed private files

Live server:
- Push all website files to aitbc-cascade:/var/www/html/
- Clean stale admin.html and index.nginx-debian.html
2026-02-13 23:18:52 +01:00
oib
06e48ef34b chore: standardize configuration, logging, and error handling across blockchain node and coordinator API
- Add infrastructure.md and workflow files to .gitignore to prevent sensitive info leaks
- Change blockchain node mempool backend default from memory to database for persistence
- Refactor blockchain node logger with StructuredLogFormatter and AuditLogger (consistent with coordinator)
- Add structured logging fields: service, module, function, line number
- Unify coordinator config with Database
2026-02-13 22:39:43 +01:00
oib
0cbd2b507c docs: update security documentation with completed fixes and deployment status
- Add completed security fixes section to SECURITY_CLEANUP_GUIDE.md with 5 resolved vulnerabilities
- Update currentTask.md with 2026-02-13 security fixes and deployment status
- Add comprehensive security fixes section to done.md with implementation details
- Expand infrastructure.md with security configuration, environment variables, and testing notes
- Add recent progress section to roadmap.md documenting security
2026-02-13 16:23:01 +01:00
oib
de5b0f2696 refactor: replace requests with httpx in Bitcoin wallet and blockchain services
- Replace requests.Session with httpx.Client in BitcoinWallet class
- Add graceful fallback when httpx is not available with HTTP_CLIENT_AVAILABLE flag
- Add session null check in _rpc_call to prevent errors when httpx unavailable
- Update get_balance in blockchain service to use httpx.Client context manager
- Add warning log when httpx import fails to disable wallet functions
2026-02-13 16:10:57 +01:00
oib
c984a1e052 chore: enhance security configuration across applications
- Add root-level *.json to .gitignore to prevent wallet backup leaks
- Replace wildcard CORS origins with explicit localhost URLs across all apps
- Add OPTIONS method to CORS allowed methods for preflight requests
- Update coordinator database to use absolute path in data/ directory to prevent duplicates
- Add JWT secret validation in coordinator config (must be set via environment)
- Replace deprecated get_session dependency with Session
2026-02-13 16:07:03 +01:00
oib
e9646cc7dd ci: simplify CLI tests workflow to single Python version and add missing dependencies
- Remove Python version matrix (3.10, 3.11, 3.12), run only on 3.11
- Add aitbc-crypto package installation
- Add coordinator dependencies (fastapi, uvicorn, sqlmodel, etc.)
- Add pytest-asyncio for async test support
- Remove conditional coverage steps (always run on 3.11 now)
2026-02-12 21:05:05 +01:00
oib
65b63de56f docs: update README with comprehensive test results, CLI documentation, and enhanced feature descriptions
- Update key capabilities to include GPU marketplace, payments, billing, and governance
- Expand CLI section from basic examples to 12 command groups with 90+ subcommands
- Add detailed test results table showing 208 passing tests across 6 test suites
- Update documentation links to reference new CLI reference and coordinator API docs
- Revise test commands to reflect actual test structure (
2026-02-12 20:58:21 +01:00
oib
5120861e17 feat: add GPU-specific fields to marketplace offers and create dedicated GPU marketplace router
- Add GPU fields (model, memory, count, CUDA version, price, region) to MarketplaceOffer model
- Create new marketplace_gpu router for GPU-specific operations
- Update offer sync to populate GPU fields from miner capabilities
- Move GPU attributes from generic attributes dict to dedicated fields
- Update MarketplaceOfferView schema with GPU fields
- Expand CLI README with comprehensive documentation and
2026-02-12 19:08:17 +01:00