Harden demo timestamp and config validation#27
Conversation
d44bb3a to
890e5a0
Compare
d7ec1cc to
b566487
Compare
b566487 to
da33900
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: da339009a3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if isinstance(value, bool): | ||
| raise ValueError(f"{field_name} must be a positive integer.") | ||
| try: | ||
| parsed = int(value) |
There was a problem hiding this comment.
Reject non-integer correlation window values
require_positive_int currently coerces values with int(value), so a YAML value like correlation_minutes: 1.5 is silently truncated to 1 instead of being rejected. Because this helper is used by validate_demo_config and build_investigations, a misconfigured fractional window can shrink the evidence window and drop expected correlated events without any error, which defeats the intent of strict config validation.
Useful? React with 👍 / 👎.
Summary
Validation