Skip to content

Repo Checks drops merged PR invariant citations on main pushes #9744

Closed

Description

@tianmind-studio

Problem

Repo Checks fails on main after a correctly documented PR touches locked product-invariant paths.

The pull-request path loads the PR body through scripts/pr-preflight, but the main-push path invokes run_checks.py without --pr-body-file. run_checks.py therefore creates an empty temporary body, and product-invariants reports every required citation as missing.

Reproduction

Main run 29360878812 failed after merging #9734:

  • Fix PTT higher-model context and cache boundary #9734 names both INV-CHAT-1 and INV-VOICE-1 in its PR body.
  • Merge commit a3e1b7401560d6ae2b671c62fcfa3873ddd05e43 retains that full body, including both IDs.
  • The main-push Hygiene job nevertheless failed product-invariants for those same IDs because it supplied an empty body.

Proposed contract

For main pushes, write the merge commit message/body to a temporary file and pass it through the existing run_checks.py --pr-body-file interface. This is deterministic and network-free, preserves the citations GitHub places in regular merge commits, and remains fail-closed for direct pushes whose commit messages omit required invariant IDs.

Add a workflow wiring regression assertion so the main-push path cannot silently drop the change description again.

Acceptance criteria

  • The exact Fix PTT higher-model context and cache boundary #9734 merge diff passes the product-invariant check using its merge commit body.
  • Pull-request behavior remains unchanged.
  • A main commit touching invariant paths without the required IDs still fails.
  • The shared manifest, workflow lint, and pre-push checks pass.

Activity

  1. added a commit that references this issue on Jul 14, 2026
    3aac677
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions