fix(rep60): adopt protected current-revision controller - #271
Open
litroc wants to merge 1 commit into
Open
Conversation
Shared-Assets-Source-SHA: 7b678e681a132615add62f6ba0c9c9f1a8e34748 Shared-Assets-Source-Run: 32183178755 Shared-Assets-Sync-App-ID: 4351516
There was a problem hiding this comment.
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-readyand 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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human-authored protected rollout replacing automation PR #270. Preserves exact automation head 921dbb5; pipeline review only, with no local AI review.