Skip to content

P438 add dataset data-quality inspector (#438) - #439

Merged
gparadis merged 1 commit into
mainfrom
issue-438-data-quality
Nov 9, 2026
Merged

gparadis merged 1 commit into
mainfrom
issue-438-data-quality

Conversation

@gparadis

@gparadis gparadis commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Closes the dataset-inspection roadmap item with a reusable data-quality pass.

  • Adds fhops.scenario.data_quality for machine availability and ground-support findings.
  • Adds fhops dataset inspect-quality with table/JSON output and --fail-on-warning.
  • Surfaces the same warnings in fhops validate; invalid pinned ground-support evidence exits non-zero.
  • Documents the 24 h/day baseline and warning-vs-error behavior.
  • Adds unit and CLI tests for non-standard hours and invalid ground-support checksums.

Verification

  • Full pytest: 1417 passed, 219 skipped
  • ruff format, ruff check, mypy src, pre-commit
  • Sphinx -W

Closes #438.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T23:28:51.632992Z 34bfe44 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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

Copy link
Copy Markdown

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: 34bfe440b4

ℹ️ 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 scenario.ground_support is not None and scenario_path is not None:
try:
ground = inspect_ground_support(scenario_path)

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 Validate ground support against the supplied scenario

For programmatic callers that modify a loaded Scenario before inspecting it, this call checks a different scenario: inspect_ground_support() reloads the YAML and uses its ground-support reference and block IDs instead of those in the supplied model. Consequently, changing scenario.ground_support.summary_sha256 to an incorrect digest still produces no error if the on-disk reference is valid, and changed block lists produce incorrect coverage findings. Inspect the supplied scenario's reference and blocks, using scenario_path only to resolve relative evidence paths.

Useful? React with 👍 / 👎.

@gparadis
gparadis merged commit 5b7ad28 into main Nov 9, 2026
2 checks passed
@gparadis
gparadis deleted the issue-438-data-quality branch November 9, 2026 23:42
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.

Dataset data-quality inspector closure

1 participant