How ad-h/smart-application-lifecycle-manager works
SALM monitors processes, scores and classifies their resource use and inactivity, then recommends or automates lifecycle actions. The principal interactive workflow runs through the FastAPI app and browser UI; a separate CLI monitor provides a terminal view. Automation repeatedly scans processes, applies protection and decision rules, suspends eligible processes, and can resume managed ones. The excerpts show these calls and the UI-serving route; browser-side API behavior is not inspected.
Main entry points: webapp.py FastAPI app · automation_manager.py Automation manager · main.py CLI monitor · lifecycle_controller.py Lifecycle controller
Components 12
User interfaces
- FastAPI app
webapp.py - Web dashboard
static/index.html - CLI monitor
main.py
Process analysis
- Activity tracker
activity_tracker.py - Resource scoring
resource_analyzer.py - Process classifier
classifier.py - Decision engine
decision_engine.py
Lifecycle automation
- Automation manager
automation_manager.py - Process protection
process_protection.py - Lifecycle controller
lifecycle_controller.py
Operating system
- Host processes
Other components
- User
Connections 24
- User → FastAPI app: uses
webapp.py - FastAPI app → Web dashboard: serves
webapp.py - FastAPI app → Automation manager: controls
webapp.py - FastAPI app → Host processes: enumerates
webapp.py - FastAPI app → Activity tracker: updates
webapp.py - FastAPI app → Resource scoring: scores
webapp.py - FastAPI app → Process classifier: classifies
webapp.py - FastAPI app → Decision engine: decides
webapp.py - FastAPI app → Process protection: checks
webapp.py - FastAPI app → Lifecycle controller: requests actions
webapp.py - CLI monitor → Host processes: enumerates
main.py - CLI monitor → Activity tracker: updates
main.py - CLI monitor → Resource scoring: scores
main.py - CLI monitor → Process classifier: classifies
main.py - CLI monitor → Decision engine: decides
main.py - CLI monitor → Process protection: checks
main.py - Automation manager → Host processes: scans
automation_manager.py - Automation manager → Activity tracker: updates
automation_manager.py - Automation manager → Resource scoring: scores
automation_manager.py - Automation manager → Process classifier: classifies
automation_manager.py - Automation manager → Decision engine: decides
automation_manager.py - Automation manager → Process protection: checks
automation_manager.py - Automation manager → Lifecycle controller: suspends and resumes
automation_manager.py - Lifecycle controller → Host processes: changes state
lifecycle_controller.py