Files
aitbc/docs/cli/DISABLED_COMMANDS_CLEANUP.md
aitbc 852f2e5a8a
Some checks failed
Cross-Node Transaction Testing / transaction-test (push) Has been cancelled
Deploy to Testnet / deploy-testnet (push) Has been cancelled
Documentation Validation / validate-docs (push) Has been cancelled
Documentation Validation / validate-policies-strict (push) Has been cancelled
Multi-Node Stress Testing / stress-test (push) Has been cancelled
Node Failover Simulation / failover-test (push) Has been cancelled
Integration Tests / test-service-integration (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
CLI Tests / test-cli (push) Has been cancelled
Blockchain Synchronization Verification / sync-verification (push) Successful in 11s
Contract Performance Benchmarks / benchmark-gas-usage (push) Successful in 1m36s
Contract Performance Benchmarks / benchmark-execution-time (push) Successful in 1m24s
Contract Performance Benchmarks / benchmark-throughput (push) Successful in 1m25s
Cross-Chain Functionality Tests / test-cross-chain-sync (push) Successful in 2s
Cross-Chain Functionality Tests / test-cross-chain-transactions (push) Successful in 5s
Cross-Chain Functionality Tests / test-cross-chain-bridge (push) Has been skipped
Cross-Chain Functionality Tests / test-multi-chain-consensus (push) Successful in 3s
Cross-Chain Functionality Tests / aggregate-results (push) Has been skipped
Multi-Chain Island Architecture Tests / test-multi-chain-island (push) Successful in 2s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 3s
P2P Network Verification / p2p-verification (push) Successful in 2s
Smart Contract Tests / test-solidity (map[name:aitbc-contracts path:contracts]) (push) Failing after 1m28s
Smart Contract Tests / test-solidity (map[name:aitbc-token path:packages/solidity/aitbc-token]) (push) Successful in 21s
Smart Contract Tests / test-foundry (push) Failing after 20s
Smart Contract Tests / lint-solidity (push) Successful in 30s
Smart Contract Tests / deploy-contracts (push) Successful in 1m40s
Systemd Sync / sync-systemd (push) Successful in 26s
Contract Performance Benchmarks / compare-benchmarks (push) Successful in 4s
Rename openclaw to hermes across documentation and workflows
- Update workflow paths from docs/openclaw to docs/hermes
- Rename skill prefixes from openclaw-* to hermes-*
- Update agent skill references in refactoring and analysis docs
- Rename OPENCLAW_AITBC_MASTERY_PLAN.md to reflect hermes branding
- Update CLI examples and command references throughout documentation
2026-05-07 11:42:06 +02:00

144 lines
4.7 KiB
Markdown

# Disabled Commands Cleanup Analysis
## Overview
This document analyzes the currently disabled CLI commands and provides recommendations for cleanup.
## Disabled Commands
### 1. `hermes` - Edge Computing Integration
**File**: `cli/aitbc_cli/commands/hermes.py`
**Status**: Commented out in `main.py` line 28
**Reason**: "Temporarily disabled due to command registration issues"
**Analysis**:
- **Size**: 604 lines of code
- **Functionality**: hermes integration with edge computing deployment
- **Dependencies**: httpx, JSON, time utilities
- **Potential Value**: High - edge computing is strategic for AITBC
**Recommendation**: **FIX AND RE-ENABLE**
- Command registration issues are likely minor (naming conflicts)
- Edge computing integration is valuable for the platform
- Code appears well-structured and complete
### 2. `marketplace_advanced` - Advanced Marketplace Features
**File**: `cli/aitbc_cli/commands/marketplace_advanced.py`
**Status**: Commented out in `main.py` line 29
**Reason**: "Temporarily disabled due to command registration issues"
**Analysis**:
- **Size**: Unknown (file not found in current tree)
- **Functionality**: Advanced marketplace features
- **Potential Value**: Medium to High
**Recommendation**: **LOCATE AND EVALUATE**
- File appears to be missing from current codebase
- May have been accidentally deleted
- Check git history to recover if valuable
### 3. `marketplace_cmd` - Alternative Marketplace Implementation
**File**: `cli/aitbc_cli/commands/marketplace_cmd.py`
**Status**: Exists but disabled (comment in main.py line 18)
**Reason**: Conflict with main `marketplace.py`
**Analysis**:
- **Size**: 495 lines of code
- **Functionality**: Global chain marketplace commands
- **Dependencies**: GlobalChainMarketplace, multichain config
- **Conflict**: Names conflict with existing `marketplace.py`
**Recommendation**: **MERGE OR DELETE**
- Compare with existing `marketplace.py`
- Merge unique features if valuable
- Delete if redundant
## Cleanup Action Items
### Immediate Actions (High Priority)
1. **Fix `hermes` registration**
```bash
# Uncomment line 28 in main.py
# from .commands.hermes import hermes
# cli.add_command(hermes)
```
- Test for naming conflicts
- Rename if necessary (e.g., `edge-deploy`)
2. **Resolve `marketplace` conflict**
```bash
# Compare files
diff cli/aitbc_cli/commands/marketplace.py cli/aitbc_cli/commands/marketplace_cmd.py
```
- Merge unique features
- Delete redundant file
3. **Locate missing `marketplace_advanced`**
```bash
git log --all -- "**/marketplace_advanced.py"
git checkout HEAD~1 -- cli/aitbc_cli/commands/marketplace_advanced.py
```
### Code Quality Improvements
1. **Add command registration validation**
- Prevent future naming conflicts
- Add unit tests for command registration
2. **Document command dependencies**
- Add clear documentation for each command
- Include dependency requirements
3. **Create command deprecation policy**
- Formal process for disabling commands
- Clear timeline for removal
## Security Considerations
### Current State
- Disabled commands are still present in repository
- No security risk from disabled code
- Potential for confusion among users
### Recommendations
- Remove truly unused commands to reduce attack surface
- Keep valuable disabled code in separate branch if needed
- Document reasons for disabling
## Testing Requirements
Before re-enabling any disabled command:
1. **Unit Tests**: Verify all functions work correctly
2. **Integration Tests**: Test with live coordinator API
3. **Command Registration**: Ensure no conflicts with existing commands
4. **Security Review**: Validate no security vulnerabilities
5. **Documentation**: Update help text and usage examples
## Timeline
| Week | Action | Status |
|------|--------|--------|
| 1 | Fix hermes registration issues | 🔄 In Progress |
| 1 | Resolve marketplace command conflicts | 🔄 In Progress |
| 2 | Locate and evaluate marketplace_advanced | ⏳ Pending |
| 2 | Add comprehensive tests | ⏳ Pending |
| 3 | Update documentation | ⏳ Pending |
## Risk Assessment
| Command | Risk Level | Action |
|---------|-----------|--------|
| hermes | Low | Re-enable after testing |
| marketplace_cmd | Low | Merge or delete |
| marketplace_advanced | Unknown | Locate and evaluate |
## Conclusion
The disabled commands appear to contain valuable functionality that should be restored rather than deleted. The "command registration issues" are likely minor naming conflicts that can be resolved with minimal effort.
**Next Steps**:
1. Fix the registration conflicts
2. Test thoroughly
3. Re-enable valuable commands
4. Remove truly redundant code
This cleanup will improve CLI functionality without compromising security.