Skip to content

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

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

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

Shared-Assets-Source-SHA: edec7c2d3c4ef73373408fdbb44c3dd5e9112676
Shared-Assets-Source-Run: 32177576480
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

Task profile (LIT-GEN-GDR-GOV-30)

  • Work item: Review protected “current-revision” rollout (REP-60 / MLX-90) and local no-AI-egress adjustments
  • Risk: high (changes to required PR gates, protected workflows, and review provenance)
  • Smallest sufficient approach: focused diff + targeted repo inspection (workflows/scripts only)
  • Escalation condition: any ambiguity about event/ref invariants for pull_request_target gates or inability to prove fail-closed behavior

This PR replaces the prior automation-oriented Copilot review gate with a protected “current-revision” controller and shifts local tooling to deterministic, no-AI-egress evidence collection. It also adds a protected rerun helper and an exact-revision materializer script used by the protected release-bot workflow.

Changes:

  • Add a protected exact-revision materializer to (re)generate and bind immutable review inputs for MLX-90 verification.
  • Update local lit-push-ready evidence flow to prohibit local AI execution while preserving deterministic guardrails and recording the policy in evidence.
  • Replace/adjust GitHub Actions gates to a protected pull_request_target “current revision review” controller plus a protected rerun helper and refreshed rerun trigger logic.

Reviewed changes

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

Show a summary per file
File Description
scripts/materialize-exact-revision-review.py New materializer to fetch/derive exact-review diff + immutable metadata and bind protected assets into an input hash.
scripts/lit-push-ready.py Removes local agent reviews; enforces “no local AI egress” while still materializing deterministic review workspace and writing/verifying evidence.
.lit/push-ready.json Disables local Copilot/Codex agents and updates the remote-only Copilot gate job name reference.
.github/workflows/release-bot-exact-head-review.yml Renames/publishes “Current revision review” check and tightens check-run provenance filtering.
.github/workflows/current-revision-rerun.yml New protected helper to rerun the verifier exactly once after a neutral PASS is present.
.github/workflows/copilot-review.yml Canonical protected pull_request_target current-revision gate: requests Copilot review (for applicable PRs), verifies policy, and publishes a bound neutral result.
.github/workflows/copilot-review-refresh.yml Updates the refresh job to target pull_request_target runs and tightens actor/reviewer attribution checks.
Suppressed comments (1)

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

  • Same issue as above: TRUSTED_WORKFLOW_REF is validated only against refs/heads/develop. Any pull_request_target run for a PR whose base is main will report workflow_ref @refs/heads/main and fail this publish step.
          test "${DEFAULT_BRANCH}" = develop
          test "${TRUSTED_WORKFLOW_REF}" = \
            "${REPOSITORY}/.github/workflows/copilot-review.yml@refs/heads/${DEFAULT_BRANCH}"

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

Comment on lines +68 to +70
test "${DEFAULT_BRANCH}" = develop
test "${TRUSTED_WORKFLOW_REF}" = \
"${REPOSITORY}/.github/workflows/copilot-review.yml@refs/heads/${DEFAULT_BRANCH}"
Comment on lines +186 to 193
if [ "${marker_exists}" = true ]; then
echo "Recorded request no longer has a pending or completed exact-head review; requesting again."
fi
gh api --method POST "${requested_reviewers_url}" -f "reviewers[]=${reviewer}"
if [ "${marker_exists}" = false ]; then
gh api --method POST "repos/${REPOSITORY}/issues/${PR_NUMBER}/comments" \
-f body="<!-- mlx90-copilot-request head=${EXPECTED_HEAD} -->Copilot review request accepted for finalized head ${EXPECTED_HEAD}." >/dev/null
fi
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