Skip to content

test(id): run planted-bug preflight safety tests in CI - #12060

Merged
dezren39 merged 1 commit into
mainfrom
aster/12058-preflight-ci-20261119
Nov 19, 2026
Merged

dezren39 merged 1 commit into
mainfrom
aster/12058-preflight-ci-20261119

Conversation

@dezren39

@dezren39 dezren39 commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Summary

Fixes #12058

Verification

  • Exact workflow command passed: 5 tests in 0.276s. Disposable synthetic Git fixtures and fake Cargo only; no heavy planted-bug harness run.
  • CI policy agreement passed; git diff --check passed.
  • Registry check: baseline 36 violations -> 35, removing only this suite's missing entry. All remaining 35 unrelated baseline gaps are identical.
  • Registry semantic delta is exactly one suite; invocation matches workflow.
  • Workflow enablement checked active. Hosted CI has not run; configured nightly coverage is not a hosted pass.
  • Independent read-only reviewer approved.

Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Summary by CodeRabbit

  • Tests
    • Automated validation now includes checks for planted-bug preflight safety refusals, and the test suite is tracked in the project’s registry.

@dezren39
dezren39 requested a review from a team as a code owner November 19, 2026 18:56
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 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-19T18:58:24.145948Z f5f2596 Manual request
ℹ️ 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.

@dezren39

Copy link
Copy Markdown
Member Author

@codex review exact head f5f2596. Narrow CI wiring only; verify nightly/manual guard and registry match, no production or mutation behavior changes.

@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The test-suite registry now records the planted-bug preflight safety-refusal suite. The ID guard workflow runs the suite with isolated Python and verbose unittest output.

Changes: Planted-bug preflight CI coverage

Layer / File(s) Summary
Register and run preflight tests
.github/test-suite-registry.json, .github/workflows/id-check.yml
The registry records the test path, command, and guard workflow venue. The guard job runs the suite with isolated Python and verbose unittest output.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Other

Suggested reviewers: claude

Merge Risk: Minimal · up to f5f25

This change runs the existing planted-bug preflight safety-refusal tests in the nightly/manual ID guard and registers them in the test inventory. It has no production behavior change, and merge risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "test(id): run planted-bug preflight safety tests in CI" matches the main change. The workflow's guard job now runs the planted-bug preflight Python unittest suite from pkgs/id/tests, and th…
Linked Issues check Passed [#12058] The acceptance criteria are met at the reviewed head. The guard job in .github/workflows/id-check.yml now runs `python3 -I -m unittest discover -s pkgs/id/tests -p 'test_planted_bug_prefl…
Out of Scope Changes check Passed The PR changes two files: the guard job in .github/workflows/id-check.yml (one added unittest step, +4 lines) and one registry entry in .github/test-suite-registry.json (+14 lines). Both changes…
Full details: Title check

Explanation

The title "test(id): run planted-bug preflight safety tests in CI" matches the main change. The workflow's guard job now runs the planted-bug preflight Python unittest suite from pkgs/id/tests, and the suite is registered in the test registry. The title names the scope (ID component, tests, CI) and the purpose, so it fits the linked issue #12058.

Full details: Linked Issues check

Explanation

[#12058] The acceptance criteria are met at the reviewed head. The guard job in .github/workflows/id-check.yml now runs python3 -I -m unittest discover -s pkgs/id/tests -p 'test_planted_bug_preflight.py' -v before the matrix-normalization test. The workflow on: block has only schedule and workflow_dispatch, and the guard job has no if: filter, so the suite runs in the nightly and manual venue. A failing step fails the job and therefore the venue, as the issue requires. The suite runs the existing Python oracle with synthetic Git fixtures and fake Cargo, and it does not run the shell mutation harness, so no production behavior changes. The PR also adds a registry entry for id.planted-bug.preflight in .github/test-suite-registry.json, and the PR reports the exact command passed with 5 tests. Limits: the registry blob could not be read through the repository tool, so the registry entry rests on the supplied summary and PR description. Hosted CI has not run, so the pass result is from the PR's local report and the workflow configuration, not a hosted run.

Full details: Out of Scope Changes check

Explanation

The PR changes two files: the guard job in .github/workflows/id-check.yml (one added unittest step, +4 lines) and one registry entry in .github/test-suite-registry.json (+14 lines). Both changes connect directly to #12058, which asks for the Python safety-refusal tests to run in an automated venue and be registered if required. The PR does not change triggers, permissions, production code, the mutation harness, or deployment, and it leaves #8037 out of scope, as the PR description states. The registry diff could not be read directly, so this result relies on the supplied summary for that file. No unrelated change is shown.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fb67fc81-baee-45d7-a981-52e26aa55d10
Commits

Reviewing files that changed from the base of the PR and between 703a045 and f5f2596.

Files selected for processing: 2

  • .github/test-suite-registry.json
  • .github/workflows/id-check.yml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: f5f2596754

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

@dezren39
dezren39 merged commit 2572583 into main Nov 19, 2026
1 check passed
@dezren39
dezren39 deleted the aster/12058-preflight-ci-20261119 branch November 19, 2026 19:00
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.

test(id): run planted-bug preflight safety tests in CI

1 participant