Skip to content

docs: overhaul README and add installation, configuration, and troubleshooting guides - #76

Merged
TrezorHannes merged 1 commit into
mainfrom
docs/overhaul
Nov 26, 2026
Merged

TrezorHannes merged 1 commit into
mainfrom
docs/overhaul

Conversation

@TrezorHannes

Copy link
Copy Markdown
Owner

Summary of Changes

PR 3 of the phased Lightning-Python-Tools optimization plan — documentation overhaul and Markdown/registry hygiene gates:

  • README.md Overhaul:
    • Added prominent operator safety disclaimer (> [!WARNING]: verify configs/dry-runs/code, MIT License "AS IS" with no warranty/liability, watch Releases/Security Advisories and SECURITY.md).
    • Added ./install.sh quickstart and common CLI commands (list, doctor, install, uninstall).
    • Added CI-verified 19-script overview table (<!-- BEGIN_LPT_SCRIPT_TABLE --> / <!-- END_LPT_SCRIPT_TABLE -->) synced with lpt_installer/registry.py, plus deep-dive links.
    • Added compact Support / Donations footer linking https://hodlmetight.org.
  • Focused Guides under docs/:
    • docs/INSTALLATION.md: interactive & CLI reference, uv/venv, systemd vs managed cron, node/vps host profiles, legacy unit migration (User=admin chown note), and config-preserving uninstall/rollback.
    • docs/CONFIGURATION.md: guided chmod 600 setup, placeholder/schema validation, section-by-section reference, and --dry-run/--debug preview flags.
    • docs/TROUBLESHOOTING.md: ./install.sh doctor check reference, CA trust, duplicate-execution guard, journalctl & cron logs, critical error flags, and .lpt-backups/ restore.
  • Hygiene Tests (tests/test_repo_hygiene.py):
    • Expanded relative link checks across all *.md files (README.md, SECURITY.md, docs/*.md, Magma/*.md, Other/*.md, Peerswap/README.md).
    • Added CI-enforced parity check between README.md's table and lpt_installer.registry.render_markdown_overview_table(), plus disclaimer/donation assertions.

Verification

  • .venv/bin/pytest tests/ -v --cov=... --cov-fail-under=35: 226 passed.
  • .venv/bin/pytest tests/test_lpt_installer.py tests/test_ca_trust_hardening.py --cov=lpt_installer --cov-fail-under=85: 15 passed.
  • Note: Greptile is not enabled / unavailable locally (greptile-guard), so this PR is verified via GitHub Actions CI + TunnelSentinel.

…eshooting guides

- Streamline README.md with operator safety disclaimer (MIT / no liability / SECURITY.md), ./install.sh quickstart, CI-synced 19-script overview table, doc links, and subtle hodlmetight.org support footer.
- Add docs/INSTALLATION.md, docs/CONFIGURATION.md, and docs/TROUBLESHOOTING.md covering interactive & CLI subcommands, systemd vs cron, node/vps profiles, legacy migration, doctor diagnostics, and .lpt-backups/ rollback.
- Expand tests/test_repo_hygiene.py to verify relative links across all *.md files, README script table parity with lpt_installer.registry, and disclaimer/donation links.
@TrezorHannes TrezorHannes added documentation Improvements or additions to documentation python Pull requests that update python code labels Nov 26, 2026
@TrezorHannes TrezorHannes self-assigned this Nov 26, 2026
@tunnelsentinel

Copy link
Copy Markdown

🛡️⚡ TunnelSentinel Code Review

Verdict: APPROVE | Confidence: 5/5 | Risk Tier: MEDIUM
"Zero leaks. Fail-closed verification."


Latest commit: 4454415 | Status: success | Reviewed: 2026-11-26 21:54 UTC

Executive Summary

  • Risk Tier: MEDIUM (prod_lines_changed=0, net_lines_changed=499, 5 files changed: README.md, docs/INSTALLATION.md, docs/CONFIGURATION.md, docs/TROUBLESHOOTING.md, tests/test_repo_hygiene.py).
  • Cross-Check Verification: Inspected the full diff across origin/main...HEAD and cross-checked every documented CLI subcommand, flag, host profile (all, node, vps), systemd unit/timer directive (lpt-<id>, TimeoutStartSec=300, Persistent=true, ProtectSystem=full/strict, SSL_CERT_FILE, REQUESTS_CA_BUNDLE), cron log/lock path (logs/cron_<id>.log, logs/.lpt-<id>.lock), legacy unit names, .lpt-backups/<timestamp>/, config template/placeholder rules, doctor checks (certifi >= 2026.10.19 vs requirements.txt >= 2026.11.20), and script dry-run/critical-error flags against install.sh, lpt_installer/*.py, config.ini.example, requirements.txt, and the target scripts (Magma/magma_sale_process.py, Magma/magma_market_fee.py, Other/fee_adjuster.py, Other/rebalance_guard.py, Other/boltz_swap-out.py, Other/swap_out-loop.py, Peerswap/peerswap-lndg_push.py, LNBits/pocketmoney.py). All documented symbols, flags, and paths match implementation.
  • Test & CI Verification:
    • .venv/bin/pytest tests/ -v --cov=LNDg --cov=Magma --cov=Other --cov=Peerswap --cov=LNBits --cov=lpt_installer --cov-report=term --cov-fail-under=35: 226 passed (48.66% total coverage, gate >= 35% passed).
    • .venv/bin/pytest tests/test_lpt_installer.py tests/test_ca_trust_hardening.py --cov=lpt_installer --cov-report=term --cov-fail-under=85: 15 passed (88.80% lpt_installer coverage, gate >= 85% passed).
    • Remote GitHub Actions CI checks (Tests/test (3.11/3.12/3.13), Tests/lint, Tests/security, GitGuardian Security Checks): 6/6 passing (local ruff binary execution is blocked by host Santa policy).
  • Findings: Zero P0/P1/P2/P3 blockers. (Informational note: in lpt_installer/cli.py, --profile is registered on the top-level parser, so ./install.sh --profile vps status is the exact invocation order.)

Review history

  • 4454415: APPROVE, 5/5, MEDIUM risk, status success, 2026-11-26 21:54 UTC

@TrezorHannes
TrezorHannes merged commit 02d5590 into main Nov 26, 2026
7 checks passed
@TrezorHannes
TrezorHannes deleted the docs/overhaul branch November 26, 2026 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant