feat(runs): add validation gate summary#79
Merged
Conversation
Project validation report metadata into run records and render the run-detail validation gate summary with safe raw artifact links. Co-authored-by: OpenAI Codex (GPT-5) <codex@openai.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #76.
Adds the run-detail validation gate summary to
/runs, backed by persistedvalidation_report_resultartifact metadata. The UI renders pass/fail/skipped gates withStatusBadge, explicit empty/error states, and safe raw artifact link handling for present, missing, and invalid URIs.What Changed
RunRecord.validationSummaryfrom completed validation report artifacts.ValidationGateSummaryand composed it into the run detail before review/artifact evidence.artifact://validation/...raw artifacts.Screenshots
Mixed validation gates:

Empty validation state:

Invalid and missing raw artifact handling:

Mobile dark mode:

Validation
Red-first evidence was collected before implementation for:
bun run test tests/unit/runs/run-record.test.tsbun run test tests/unit/portal/components.test.tsxbun run storybook:buildbun run test:e2e -- tests/e2e/portal.spec.tsGreen checks after implementation:
bun run test tests/unit/runs/run-record.test.tsbun run test tests/unit/portal/components.test.tsxbun run test tests/unit/portal/safe-url.test.tsbun run storybook:buildbun run test:e2e -- tests/e2e/portal.spec.tsbun run buildbun run validateAdversarial QA/security review was run read-only after the first green pass; findings around artifact URI allowlisting, newest malformed reports, and fixture/seed parity were fixed and covered by regression tests.
Co-authored-by: OpenAI Codex (GPT-5) codex@openai.com