feat: Implement comprehensive credit-based cost calculation and lifecycle management #836
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR depends on #827
Summary
Implements a complete credit-based payment system for Aleph resources,
extending the existing cost calculation framework to support credit
payments alongside hold and stream payments. Includes cost calculation,
balance validation, automated resource cleanup, and 1-day minimum runtime
protection.
Key Features
types (VMs, programs, storage)
runtime requirement
manages resource cleanup
handlers
Major Changes
Database & Configuration
management
all service tiers
Cost System
order)
types
Message Handlers
protection
validation methods
reporting
Automated Management
resource lifecycle
Technical Implementation
24-hour operation
payment detection
sufficient
Files Changed
configuration
Backward Compatibility
Deployment
This provides a complete credit payment ecosystem with automated resource
management while maintaining full backward compatibility.