27 lines
1.0 KiB
Markdown
27 lines
1.0 KiB
Markdown
|
|
# Burn Script Archive
|
||
|
|
|
||
|
|
Original 39 burn_*.py scripts were on VPS /root at time of audit.
|
||
|
|
Most contained duplicated code, hardcoded tokens, and stale URLs.
|
||
|
|
|
||
|
|
## Useful Patterns Extracted
|
||
|
|
|
||
|
|
These reusable components have been migrated to proper modules:
|
||
|
|
|
||
|
|
| Original Pattern | New Location | Module |
|
||
|
|
|---|---|---|
|
||
|
|
| Gitea API client | `nexus/retry_helper.py` | retry decorator, dead letter queue |
|
||
|
|
| Cycle state tracking | `nexus/retry_helper.py` | checkpoint save/load/clear |
|
||
|
|
| Fleet health checks | `fleet/fleet.sh` | health/status/restart/run |
|
||
|
|
| Morning report gen | `nexus/morning_report.py` | structured 24h report |
|
||
|
|
|
||
|
|
## Cleanup Status
|
||
|
|
- [ ] Collect original scripts from VPS /root (requires SSH access)
|
||
|
|
- [x] Extract reusable patterns into proper modules
|
||
|
|
- [x] Create retry/recovery infrastructure
|
||
|
|
- [x] Archive placeholder — originals to be collected when VPS accessible
|
||
|
|
|
||
|
|
## Security Note
|
||
|
|
All original burn scripts contained hardcoded Gitea tokens.
|
||
|
|
No tokens were preserved in the extracted modules.
|
||
|
|
New modules use `~/.config/gitea/token` pattern.
|