Skip to content

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

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

fix(rep60): adopt protected current-revision controller#271
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 #270. Preserves exact automation head 921dbb5; pipeline review only, with no local AI review.

Shared-Assets-Source-SHA: 7b678e681a132615add62f6ba0c9c9f1a8e34748
Shared-Assets-Source-Run: 32183178755
Shared-Assets-Sync-App-ID: 4351516
Copilot AI lite review requested due to automatic review settings August 18, 2026 22:14
@litroc
litroc requested a review from a team as a code owner 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 updates the repository’s REP-60 / MLX-90 governance pipeline to use a protected “current-revision” controller flow, including deterministic local evidence generation (no local AI egress), protected review materialization/binding, and updated backmerge/promotion automation that records a reviewable main-ancestry binding.

Changes:

  • Add a protected exact-revision materializer/verifier script to generate and re-verify bounded review inputs.
  • Remove local agent (Copilot/Codex) execution from lit-push-ready and record “local_ai_egress: prohibited” in evidence.
  • Update workflows to use the protected current-revision controller, including a deterministic main-ancestry evidence binding and a protected verifier rerun helper.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
scripts/materialize-exact-revision-review.py New bounded materializer/binder/verifier used to prove exact-review inputs and protected assets.
scripts/lit-push-ready.py Disables local AI reviews; keeps deterministic snapshot guards and updates evidence payload.
.lit/push-ready.json Updates required remote gate job name and disables local agents in config.
.github/workflows/sync-main-to-develop.yml Backmerge automation now commits .lit/main-ancestry.json as deterministic evidence and exports exact-review targeting outputs.
.github/workflows/release-bot-exact-head-review.yml Renames/polishes “current revision” check publishing and tightens check-run app filtering.
.github/workflows/promote-develop-to-main.yml Adds special-case handling for ancestry-only evidence changes and dispatches protected exact-revision review.
.github/workflows/current-revision-rerun.yml New protected helper workflow to rerun the single protected verifier attempt exactly once when eligible.
.github/workflows/copilot-review.yml Replaces legacy controller with protected pull_request_target current-revision gate and publishes bound neutral results.
.github/workflows/copilot-review-refresh.yml Updates refresh logic to target pull_request_target runs and refines actor gating.

💡 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]
Comment on lines 34 to +42
if: >-
github.event_name == 'pull_request' &&
github.event_name == 'pull_request_target' &&
(github.event.action == 'opened' ||
github.event.action == 'ready_for_review') &&
github.event.pull_request.draft == false &&
github.event.pull_request.head.repo.full_name == github.repository &&
!(github.event.pull_request.user.login == 'renovate[bot]' &&
github.actor == 'renovate[bot]' &&
startsWith(github.event.pull_request.head.ref, 'renovate/') &&
github.event.pull_request.base.ref == 'develop' &&
contains(github.event.pull_request.labels.*.name, 'safe-automerge') &&
!contains(github.event.pull_request.labels.*.name, 'breaking-update')) &&
!(github.event.pull_request.user.login == 'lightning-it-shared-assets-sync[bot]' &&
startsWith(github.event.pull_request.head.ref, 'chore/sync-shared-assets-lit-') &&
github.event.pull_request.base.ref == 'develop' &&
(github.event.pull_request.title == 'chore: sync shared-assets-lit' ||
github.event.pull_request.title == 'chore: sync shared assets')) &&
!(github.event.pull_request.user.login == 'lightning-it-shared-assets-sync[bot]' &&
startsWith(github.event.pull_request.head.ref, 'chore/sync-repository-quality-') &&
github.event.pull_request.base.ref == 'develop' &&
github.event.pull_request.title == 'chore: sync repository quality assets') &&
!(github.event.pull_request.user.login == 'lightning-it-release-automation[bot]' &&
github.event.pull_request.head.repo.full_name == github.repository &&
startsWith(github.event.pull_request.head.ref, 'backmerge/') &&
endsWith(github.event.pull_request.head.ref, '-main') &&
github.event.pull_request.base.ref == 'develop' &&
startsWith(
github.event.pull_request.title,
'chore(governance): record main ancestry before '
)) &&
!(github.event.pull_request.user.login == 'lightning-it-release-automation[bot]' &&
github.event.pull_request.head.repo.full_name == github.repository &&
github.event.pull_request.head.ref == 'develop' &&
github.event.pull_request.base.ref == 'main' &&
github.event.pull_request.title == 'chore(release): promote develop to main')
github.event.pull_request.user.login == 'litroc' &&
github.actor == 'litroc' &&
github.triggering_actor == 'litroc'
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