chore: update genesis timestamp, fix import paths, clean compiled JS files, and adjust mock path

- Update devnet genesis timestamp to 1766400877
- Add Receipt model for zk-proof generation with receiptId, miner, coordinator fields
- Fix import paths from settings to config across service modules (access_control, audit_logging, encryption, hsm_key_manager, key_management, zk_proofs)
- Remove compiled JavaScript files from explorer-web components and lib directories
- Update mock data base path
This commit is contained in:
oib
2025-12-22 15:51:19 +01:00
parent c8be9d7414
commit cdaf1122c3
49 changed files with 6157 additions and 908 deletions

View File

@ -1,34 +1,42 @@
# Miner (Host Ops) Task Breakdown
## Status (2025-09-27)
## Status (2025-12-22)
- **Stage 1**: Infrastructure scripts pending. Runtime behavior validated through `apps/miner-node/` control loop; host installer/systemd automation still to be implemented.
- **Stage 1**:**IMPLEMENTED** - Infrastructure scripts and runtime behavior validated through `apps/miner-node/` control loop; host installer/systemd automation implemented.
## Stage 1 (MVP)
## Stage 1 (MVP) - COMPLETED
- **Installer & Scripts**
- Finalize `/root/scripts/aitbc-miner/install_miner.sh` to install dependencies, create venv, deploy systemd unit.
- Implement `/root/scripts/aitbc-miner/miner.sh` main loop (poll, run job, submit proof) as per bootstrap spec.
- Ensure scripts detect GPU availability and switch between CUDA/CPU modes.
- Finalize `/root/scripts/aitbc-miner/install_miner.sh` to install dependencies, create venv, deploy systemd unit.
- Implement `/root/scripts/aitbc-miner/miner.sh` main loop (poll, run job, submit proof) as per bootstrap spec.
- Ensure scripts detect GPU availability and switch between CUDA/CPU modes.
- **Configuration**
- Define `/etc/aitbc/miner.conf` with environment-style keys (COORD_URL, WALLET_ADDR, API_KEY, MINER_ID, WORK_DIR, intervals).
- Document configuration editing steps and permission requirements.
- Define `/etc/aitbc/miner.conf` with environment-style keys (COORD_URL, WALLET_ADDR, API_KEY, MINER_ID, WORK_DIR, intervals).
- Document configuration editing steps and permission requirements.
- **Systemd & Logging**
- Install `aitbc-miner.service` unit with restart policy, log path, and hardening flags.
- Provide optional logrotate config under `configs/systemd/` or `configs/security/`.
- Install `aitbc-miner.service` unit with restart policy, log path, and hardening flags.
- Provide optional logrotate config under `configs/systemd/` or `configs/security/`.
- **Mock Coordinator Integration**
- Supply FastAPI mock coordinator (`mock_coordinator.py`) for local smoke testing.
- Document curl or httpie commands to validate miner registration and proof submission.
- Supply FastAPI mock coordinator (`mock_coordinator.py`) for local smoke testing.
- Document curl or httpie commands to validate miner registration and proof submission.
- **Documentation**
- Update `apps/miner-node/README.md` (ops section) and create runbooks under `docs/runbooks/` once available.
- Add troubleshooting steps (GPU check, heartbeat failures, log locations).
- Update `apps/miner-node/README.md` (ops section) and create runbooks under `docs/runbooks/` once available.
- Add troubleshooting steps (GPU check, heartbeat failures, log locations).
## Stage 2+
## Implementation Status
- Harden systemd service with `ProtectSystem`, `ProtectHome`, `NoNewPrivileges` and consider non-root user.
- Add metrics integration (Prometheus exporters, GPU telemetry).
- Automate zero-downtime updates with rolling restart instructions.
- **Location**: `/root/scripts/aitbc-miner/` and `apps/miner-node/`
- **Features**: Installer scripts, systemd service, configuration management
- **Runtime**: Poll, execute jobs, submit proofs with GPU/CPU detection
- **Integration**: Mock coordinator for local testing
- **Deployment**: Ready for host deployment with systemd automation
## Stage 2+ - IN PROGRESS
- 🔄 Harden systemd service with `ProtectSystem`, `ProtectHome`, `NoNewPrivileges` and consider non-root user.
- 🔄 Add metrics integration (Prometheus exporters, GPU telemetry).
- 🔄 Automate zero-downtime updates with rolling restart instructions.