Skip to content

feat: add config-change-investigation-demo#24

Merged
stacknil merged 1 commit intomainfrom
codex/config-change-investigation-demo-v0.6
Apr 2, 2026
Merged

feat: add config-change-investigation-demo#24
stacknil merged 1 commit intomainfrom
codex/config-change-investigation-demo-v0.6

Conversation

@stacknil
Copy link
Copy Markdown
Owner

@stacknil stacknil commented Apr 1, 2026

Summary

  • add config-change-investigation-demo as a fourth deterministic, file-based demo
  • wire the new demo into the CLI, commit its sample inputs and artifacts, and add regression coverage
  • update the public repo presentation and roadmap so telemetry-lab reads as a four-demo repository and config-change investigation is no longer future work

Validation

  • python -m telemetry_window_demo.cli run-config-change-demo
  • python -m pytest

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: a987b47826

ℹ️ 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".

Comment on lines +327 to +329
if str(denial["target_system"]) == target_system
and change_time <= denial["timestamp"] <= window_end
]
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Exclude non-denied decisions from attached policy evidence

build_investigations currently attaches any policy_denials record that matches target_system and time window, but it never checks that the record was actually denied. When the input contains mixed policy outcomes, allowed decisions will be counted and reported as denial evidence, which corrupts evidence_counts and investigation conclusions. Add a decision == "denied" guard here (or enforce it during normalization) so only true denials are correlated.

Useful? React with 👍 / 👎.



def parse_timestamp(raw_value: str) -> datetime:
return datetime.fromisoformat(raw_value.replace("Z", "+00:00")).astimezone(UTC)
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 naive timestamps to keep correlation deterministic

parse_timestamp accepts timezone-naive ISO strings and immediately calls .astimezone(UTC), which makes Python interpret naive times in the host's local timezone. This means the same input timestamp can normalize differently across environments and shift events across the correlation boundary, breaking reproducibility for the demo artifacts. Require explicit timezone information (or explicitly treat naive values as UTC) before converting.

Useful? React with 👍 / 👎.

@stacknil stacknil merged commit 769b3d0 into main Apr 2, 2026
2 checks passed
@stacknil stacknil deleted the codex/config-change-investigation-demo-v0.6 branch April 2, 2026 05:01
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