signal_health
Verify the integrity and freshness of quantitative signals before use. Checks file existence, SHA-256 checksum validity, and data age against a configurable threshold to prevent stale or corrupted data from entering automated workflows.
Instructions
Check the health, integrity, and staleness of the quantitative signals artifact.
Use this tool for system monitoring and sanity checks before consuming signals in automated workflows.
Verifies that the signals file exists, the SHA-256 checksum is valid, and the data is within acceptable age.
Parameters:
max_age_hours: Maximum allowable signal age in hours before considering data stale.
Default is 24.0 hours.
Returns:
A dictionary containing:
- ok: Boolean indicating if the signals file is healthy and fresh.
- age_hours: Current age of the signals in hours since generation.
- max_age_hours: The freshness threshold applied.
- path: Path to the signals file on disk.
- source_model: Model that generated the signals.
- n_signals: Number of valid signals in the payload.
- as_of: Market date of the signals.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_age_hours | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |