Skip to content

Roll back the broken external-fork CI handoff - #219

Merged
michaelneale merged 1 commit into
mainfrom
micn/rollback-approved-forks
Nov 25, 2026
Merged

michaelneale merged 1 commit into
mainfrom
micn/rollback-approved-forks

Conversation

@michaelneale

Copy link
Copy Markdown
Contributor

Original problem

🤖 Restore the pre-#213 fork policy after the real external-fork trial exposed a broken approval handoff. This is the rollback requested by Mic, not a replacement design. This does not make native fork qualification work: it restores the earlier explicit rejection rather than leaving the new continuation deployed.

Diagnostics

Live fork trial #218 was opened as micspiral from merged main. Its complete change was one ordinary Rust comment, selecting all relevant checks.

  • Before approval, CI and CI PR were action_required with no jobs; target-event inference skipped. No approval bypass observed.
  • After approval, CI PR skipped its only job; ordinary CI ran on GitHub-hosted Ubuntu.
  • The base repository's SKIPPY_DEPOT_RUNNERS_ENABLED is true, but fork pull_request runs do not receive base configuration variables (GitHub explanation). The protected controller reads that variable and accepts only ci-pr.yml; the real fork selects ci.yml. Approval therefore cannot complete the intended handoff.
  • Controller startup failure separately reports a generic GitHub internal error; its retry and a trial cancellation request returned HTTP 500 during a reported Actions incident. That error is not the evidence for the routing bug.
  • Required PR checks remained pending, not falsely green. No successful native fork qualification is claimed.

Fix

Exact git revert -m 1 7f69528c219897c589a3497b1711be18e8d77a47. The resulting tree equals the merge's first parent. Removes the approved-fork controller and restores previous admission, gates, tests, and documentation. No unrelated edits, dependency changes, or live setting changes.

Compatibility

Forks requiring native work return to the previous unsupported/rejected path. Same-repository PRs, main, releases and scheduled qualification retain their pre-#213 behavior. No model/runtime, public API, ABI, or artifact-format change.

Workflow diagrams

Approved fork CI (fork-native.yml)

Before

flowchart LR
  A[Approved pull_request CI completes] --> B[Protected producer and current-head admission]
  B --> C[Reusable CI: exact fork SHA]
  B --> D[Reusable inference: exact fork SHA]
  C --> E[Artifacts and PR aggregate]
  D --> E
Loading

After

flowchart LR
  A[Workflow removed] --> B[No fork-native dispatch or artifact handoff]
Loading

CI (ci.yml)

Before

flowchart LR
  A[PR / main / reusable caller] --> B[Protected path selection]
  F[Approved fork controller and routes] --> B
  B --> C[Automation then quality]
  C --> D[Selected package smoke and artifacts]
  D --> E[CI gate; fork native work deferred to controller]
Loading

After

flowchart LR
  A[PR / main / reusable caller] --> B[Original path selection]
  B --> C[Automation then quality]
  C --> D[Selected package smoke and artifacts]
  D --> E[Original CI gate]
  E --> F[Hosted fork needing native work explicitly fails]
Loading

Inference qualification (inference.yml)

Before

flowchart LR
  A[Same-repository PR / nightly / release] --> C[Protected admission and matrix]
  B[Approved fork reusable call] --> C
  C --> D[Native qualification and evidence]
  D --> E[Summary and applicable reporting]
  F[Fork pull_request_target] --> G[Skipped; wait for continuation]
Loading

After

flowchart LR
  A[PR / nightly / release] --> B[Original protected admission]
  B --> C[Trusted source: native qualification and evidence]
  B --> D[External fork: admission rejected]
  C --> E[Summary and applicable reporting]
  D --> E
Loading

PR checks (pr-checks.yml)

Before

flowchart LR
  A[PR and producer/check/status events] --> B[Exact-head aggregate]
  F[Approved fork CI event; candidate from title] --> B
  B --> C[Require protected fork admission, CI and inference roster]
  C --> D[PR checks status]
Loading

After

flowchart LR
  A[Original PR and producer/check/status events] --> B[Original exact-head aggregate]
  B --> C[Original CI and inference requirements]
  C --> D[PR checks status]
Loading

No shared composite action changes. Existing build-artifact handoffs and publication gates are otherwise unchanged.

Validation

  • git diff --cached --check: passed.
  • git diff --cached 7f69528^1 --exit-code: passed; exact pre-merge tree restored.
  • uv run --python 3.12 --with-requirements ci/inference-publish-requirements.txt --no-project bash -c 'export SKIPPY_PYTHON="$(command -v python3)"; just ci-automation': passed, including Python automation/publication contracts, all 76 Node tests, and shell inference-report contracts.
  • actionlint -shellcheck= -pyflakes= .github/workflows/ci.yml .github/workflows/inference.yml .github/workflows/pr-checks.yml: exits 1 solely for the existing concurrency.queue: max key unsupported by the installed linter. The reverted files are byte-identical to pre-Run native CI for fork PRs after workflow approval #213; this is not introduced by the rollback.
  • No local hardware/model qualification run. GitHub CI remains separately required, and the live Actions incident may delay it. Green PR checks would not prove the rollback's protected workflow copies executed before merge.

Acceptance criteria

  • I ran the relevant local checks, or explained why they do not apply.
  • I agree to license my contributions under the Apache License, Version 2.0.

Revert merge 7f69528 (PR #213). The real fork trial selected ordinary CI because base repository variables are unavailable in fork pull_request context, while protected admission expected CI PR. Restore the prior policy pending a separately proven replacement.

Co-authored-by: Melkor <b36010fa5b9ec1747270cff036f6b47ff5dce56f179564e169fcb6cdc64c836b@buzz.gdk.so>
@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Caution

CodeRabbit couldn't post its review summary.

Error details

HttpError

@michaelneale
michaelneale merged commit ef23855 into main Nov 25, 2026
53 of 57 checks passed
@michaelneale
michaelneale deleted the micn/rollback-approved-forks branch November 25, 2026 16:16
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.

1 participant