How benstellasanti/4-termx works
4-TERMX is a Termux-oriented personal environment and infrastructure-management repository. Its main operational workflow observes installed tools and packages, reconciles changes into a system manifest and history, then lets the user audit that state and record package intent. Separate workflows synchronize repository Markdown and Canvas files to an Obsidian vault and generate repository maps. The supplied excerpts show the reconciliation and sync implementations, but not the shell entry points or wrapper wiring, so those links are omitted.
Main entry points: infra-sync.py Reconcile state · infra-audit.py Audit packages · sync-markdown-to-obsidian.py Sync Markdown · sync-canvas-to-obsidian.py Sync Canvas
Components 20
Infrastructure management
- Reconcile state
scripts/infra-sync.py - System manifest
infrastructure/system-manifest.json - Operation history
infrastructure/history/infrastructure-history.jsonl - Desired state
infrastructure/desired-state.json - Audit packages
scripts/infra-audit.py - Record intent
scripts/infra-note.py - Intent notes
Obsidian synchronization
- Sync Markdown
scripts/sync-markdown-to-obsidian.py - Sync Canvas
scripts/sync-canvas-to-obsidian.py - Repository Markdown
README.md - Canvas files
docs/canvas
Repository maps
- Generate maps
update_readme_tree.py - Repository maps
docs/repository-map.md - Canvas converter
docs/svg2canvas.py
Termux environment
- Termux preferences
.termux/termux.properties - Shell setup
.zshrc - Repository sync entry
sync-repo.sh
Other components
- User
- Package managers
- Obsidian vault
Connections 17
- Reconcile state → Package managers: observes packages
scripts/infra-sync.py - Reconcile state → System manifest: reads and writes
scripts/infra-sync.py - Reconcile state → Operation history: records changes
scripts/infra-sync.py - Audit packages → System manifest: reads observed state
scripts/infra-audit.py - Audit packages → Desired state: compares intent
scripts/infra-audit.py - User → Audit packages: requests audit
scripts/infra-audit.py - User → Record intent: records rationale
scripts/infra-note.py - Record intent → Intent notes: appends notes
scripts/infra-note.py - User → Reconcile state: runs reconciliation
scripts/infra-sync.py - Sync Markdown → Repository Markdown: copies Markdown
scripts/sync-markdown-to-obsidian.py - Sync Markdown → Obsidian vault: writes managed files
scripts/sync-markdown-to-obsidian.py - Sync Canvas → Canvas files: copies Canvas
scripts/sync-canvas-to-obsidian.py - Sync Canvas → Obsidian vault: writes managed files
scripts/sync-canvas-to-obsidian.py - User → Sync Markdown: starts sync
scripts/sync-markdown-to-obsidian.py - User → Sync Canvas: starts sync
scripts/sync-canvas-to-obsidian.py - Generate maps → Repository maps: generates maps
update_readme_tree.py - Generate maps → Canvas converter: runs converter
update_readme_tree.py