Skip to content

Harden demo timestamp and config validation#27

Merged
stacknil merged 1 commit intomainfrom
codex/config-change-investigation-demo
May 10, 2026
Merged

Harden demo timestamp and config validation#27
stacknil merged 1 commit intomainfrom
codex/config-change-investigation-demo

Conversation

@stacknil
Copy link
Copy Markdown
Owner

@stacknil stacknil commented May 10, 2026

Summary

  • add shared UTC timestamp parsing for demo pipelines so naive timestamps are treated consistently
  • validate config-change demo config before loading inputs
  • add edge-case coverage for timestamp parsing, correlation-window boundaries, and config errors

Validation

  • pytest: 60 passed locally before branch update
  • CI: see PR checks

@stacknil stacknil force-pushed the codex/config-change-investigation-demo branch from d44bb3a to 890e5a0 Compare May 10, 2026 01:00
@stacknil stacknil changed the title Add config-change investigation demo Harden demo timestamp and config validation May 10, 2026
@stacknil stacknil force-pushed the codex/config-change-investigation-demo branch 2 times, most recently from d7ec1cc to b566487 Compare May 10, 2026 01:06
@stacknil stacknil force-pushed the codex/config-change-investigation-demo branch from b566487 to da33900 Compare May 10, 2026 01:08
@stacknil stacknil merged commit 55a0614 into main May 10, 2026
2 checks passed
@stacknil stacknil deleted the codex/config-change-investigation-demo branch May 10, 2026 01:10
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant