Skip to content

fix(rep60): adopt protected current-revision controller - #130

Open
litroc wants to merge 1 commit into
developfrom
fix/rep60-current-revision-rollout-20260818-v1
Open

fix(rep60): adopt protected current-revision controller#130
litroc wants to merge 1 commit into
developfrom
fix/rep60-current-revision-rollout-20260818-v1

Conversation

@litroc

@litroc litroc commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Human-authored protected rollout replacing automation PR #128. Preserves exact automation head 685dd4f; pipeline review only, with no local AI review.

Shared-Assets-Source-SHA: edec7c2d3c4ef73373408fdbb44c3dd5e9112676
Shared-Assets-Source-Run: 32177576480
Shared-Assets-Sync-App-ID: 4351516
@litroc
litroc requested a review from a team as a code owner August 18, 2026 22:14
Copilot AI lite review requested due to automatic review settings August 18, 2026 22:14

Copilot AI 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.

Pull request overview

This PR rolls out a human-authored REP-60 / MLX-90 “current-revision” protected review controller, replacing the prior automation sync (PR #128) while preserving the referenced automation head behavior and removing local AI egress from the push-ready flow.

Changes:

  • Introduces a protected exact-revision materializer/verifier script to bind review inputs deterministically (scripts/materialize-exact-revision-review.py).
  • Updates the local lit-push-ready evidence pipeline to prohibit local AI agents while still running deterministic snapshot/secret/topology guards.
  • Reworks the GitHub Actions Copilot gate toward a protected pull_request_target controller with supporting rerun/refresh helpers and updated job IDs referenced by .lit/push-ready.json.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
scripts/materialize-exact-revision-review.py New protected helper to materialize and verify bounded exact-revision review inputs and bind protected assets.
scripts/lit-push-ready.py Disables local agent execution; keeps deterministic workspace materialization/guardrails and updates evidence payload fields.
.lit/push-ready.json Updates remote-only check job name and disables local agent configuration flags.
.github/workflows/release-bot-exact-head-review.yml Renames/adjusts the protected exact-revision job and tightens check-run app filtering.
.github/workflows/current-revision-rerun.yml New protected workflow-dispatch helper to rerun the single verifier attempt under strict live-binding checks.
.github/workflows/copilot-review.yml Migrates to protected current-revision controller logic (pull_request_target) and publishes bound neutral results.
.github/workflows/copilot-review-refresh.yml Updates refresh workflow to locate/rerun the canonical gate under pull_request_target.
Suppressed comments (2)

.github/workflows/copilot-review.yml:38

  • request-current-revision-review is gated to only opened / ready_for_review. If the workflow is updated to run on synchronize (needed to keep required checks current), this job will still be skipped on pushes and won’t request a Copilot review for the new head SHA.
    if: >-
      github.event_name == 'pull_request_target' &&
      (github.event.action == 'opened' ||
        github.event.action == 'ready_for_review') &&
      github.event.pull_request.draft == false &&

.github/workflows/copilot-review.yml:205

  • verify-current-revision-policy is also gated to only opened / ready_for_review. On new commits (synchronize) the workflow would not publish/refresh the bound neutral check for the updated head SHA, which can leave required status missing or stale.
      (((github.event.action == 'opened' ||
        github.event.action == 'ready_for_review') &&
        github.event.pull_request.user.login != 'lightning-it-release-automation[bot]') ||
        ((github.event.action == 'opened' ||
          github.event.action == 'ready_for_review') &&

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines 6 to +8
on:
pull_request:
types:
[
opened,
synchronize,
reopened,
ready_for_review,
labeled,
unlabeled,
edited,
]
pull_request_target:
types: [opened, ready_for_review]
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.

2 participants