Skip to content

INT-597: Jumpseat's dead-code and product validation also run on pushes to main - #61

Open
hudsonaikins wants to merge 1 commit into
mainfrom
int-597-jumpseat-s-dead-code-and-product-validat
Open

hudsonaikins wants to merge 1 commit into
mainfrom
int-597-jumpseat-s-dead-code-and-product-validat

Conversation

@hudsonaikins

@hudsonaikins hudsonaikins commented Dec 6, 2026 •

Copy link
Copy Markdown
Contributor

Hand-back: INT-597 — status: ready-for-validation
Commit: 0461c87 on int-597-jumpseat-s-dead-code-and-product-validat — PR #61
What changed:
Dead code and Product validation now run on pushes to main and retain their pull-request triggers. Only the two workflow files changed.

Evidence:

Check Result Summary
uv sync --locked Passed Installed the locked environment offline from a local cache.
bash scripts/check-dead-code.sh Passed Vulture exited 0 with no findings.
uv run --locked pytest -q Passed 488 passed, 4 skipped.
uv run --locked ruff check Passed All checks passed.
uv run --locked python -c "import yaml; [yaml.safe_load(open(f)) for f in ('.github/workflows/dead-code.yml','.github/workflows/product-validation.yml')]" Passed Both workflows parsed.
actionlint .github/workflows/{dead-code,product-validation}.yml Passed Both workflows linted without diagnostics.
uv run --locked python scripts/validate.py Passed Local checks passed and recorded live acceptance covers the integration code. The run required no provider credentials or live service calls.
git diff --check && git status --short Passed Clean diff formatting. Only the two owned workflows showed changes.
uv run --locked pytest -q pass 0461c87: exit 0
Acceptance:
  • Both workflow definitions specify pull_request and restrict push to main. The workflow names, job IDs dead-code and validate, contents: read permissions, and managed header are preserved.
  • Product validation uses github.event.pull_request.head.sha || github.sha for both checkout and artifact naming.
  • Dead code retains origin/<base branch> for PRs. Pushes use github.event.before, with an empty base for an all-zero SHA. The existing script already scans all Git-listed Python files regardless of base.
  • Both local workflow equivalents passed. Inspection confirmed that the validator checks stored acceptance evidence, and the test suite guards provider HTTP calls.
    Open risks:
    The first hosted push run and its uploaded artifact can be observed after merge.

Out of scope / follow-ups — PR body text: “The CodexSkills bootstrap-code-quality.py template needs the same push-to-main trigger and base-ref handling so regeneration preserves this change.”

Out of scope / follow-ups: none
Blocker: None.
Next owner:
The dispatcher commits the worktree and includes the template note in the draft PR. Muse validates the exact commit, then Hudson owns the merge decision.

Proposed commit subject: ci: run dead-code and product validation on pushes to main

@hudsonaikins

Copy link
Copy Markdown
Contributor Author

Validation: INT-597 — status: passed
Commit validated: 0461c87
Validator: a fresh-context Claude session, standing in for Muse (Muse's subscription quota is used up until 2026-12-07 00:00 UTC). Build A (Codex) wrote the change.

Check Result Summary
Diff scope Pass Only dead-code.yml and product-validation.yml changed. Job IDs, permissions (contents: read) and headers are unchanged. No secrets or pull_request_target.
Triggers Pass Both workflows run on pull_request and on push to main
Product-validation SHA Pass Uses pull_request.head.sha || github.sha for both the checkout and the artifact name
Dead-code base Pass PRs use origin/<base>. Pushes use before, or empty when it's all zeros. The script scans every file regardless.
uv sync --locked, pytest -q, ruff check Pass 488 passed, 4 skipped; ruff clean
scripts/check-dead-code.sh Pass No findings
scripts/validate.py Pass Makes no network calls and reads no secrets; local checks and recorded live acceptance pass
YAML parse, actionlint Pass
CI on the head Pass dead-code, validate, python, image and worker
Checkout unchanged after validation Pass

Findings: none. A push-triggered run can only be seen after merge.

Next owner: Hudson, to review and merge.

🤖 Generated with Claude Code

@hudsonaikins
hudsonaikins marked this pull request as ready for review December 6, 2026 03:18
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 6, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-06T03:19:26.482731Z 0461c87 Draft marked ready
🔒 Security Review ❌ Failed 2026-12-06T03:18:18.305610Z
We couldn’t complete this review. Comment @codex security review to try again.
0461c87 Draft marked ready
ℹ️ 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

Copy link
Copy Markdown

The account paying for this security review has reached its Codex usage limits. The payer can check the Codex usage dashboard. For personal accounts, using credits requires enabling “Use credits for security reviews” in Code review settings. If you do not manage the paying account, contact this repository's admins.

This branch has not been deployed

No deployments
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