Repository navigation
feat(forkdiff): describe the whole fork, gate the analysis in CI, deploy on every push - #148
Merged
Merged
Conversation
… on every push The fork-diff page had gone stale in the way fork-diff pages do: fork.yaml pinned `fork.hash` to a May commit (8d1cbcd) and described 6 of the 825 files this fork changes, its pages workflow only re-rendered when fork.yaml itself changed, and its global ignores (`.git`, `*.sum`) matched nothing. Nothing checked any of that. Rewrite fork.yaml as an op-geth style overview of the fork as it is: ContinuousBatchingV2 (core runtime/scheduler, paged KV backend, prefix checkpoints, engine-side MTP, contract docs, tests), core library changes, tool calling and parsers, models (Gemma 4, GPT-OSS, Qwen 3.5/3.6/3.8, Nemotron-H 3.5 / DeepSeek V4 / Laguna / LFM2-MoE, quantized MoE kernels), VLMs, the selective upstream port, the OpenAI-compatible server, benchmarks and measurement, plans and specs, build and dependencies. The fork ref is `refs/heads/main`, not a hash pin; base.hash stays the real merge-base with upstream (7e2b710, 2026-04-17 — the fork never rebased). Add `scripts/check_forkdiff.py` and run it on every PR and push (forkdiff-check.yml): base.hash must equal merge-base(HEAD, upstream/main), every changed file must be described by a section, and no section may name files the fork no longer changes. Replace pages.yml with forkdiff-pages.yml, which runs the same gate before rendering, deploys on every push to main, and — since Pages is not yet enabled on this repo and the workflow token cannot enable it — keeps the page as an artifact with a notice instead of failing until an admin turns Pages on. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Gajesh2007
approved these changes
Sep 14, 2026
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.
What
This repo already had a forkdiff page, but the analysis had drifted the way fork-diff pages do:
fork.yamlpinnedfork.hashto a May commit (8d1cbcd), described 6 of the 825 files this fork changes relative to upstream, carried stale ignores (.git,*.sum), and itspages.ymlonly re-rendered whenfork.yamlitself changed. Nothing checked any of it.Rewritten
fork.yaml(op-geth style, matching the harness setup): the fork ref isrefs/heads/main(not a hash pin),base.hashis the real merge-base with upstream —7e2b7107(upstreammain, 2026-04-17; the fork never rebased, upstream fixes were selectively ported) — and every one of the 829 changed files is described under:Enforcement gate.
scripts/check_forkdiff.pyruns on every PR and push tomain(forkdiff-check.yml) and fails when:base.hash≠git merge-base HEAD upstream/main, or not an ancestor of upstreammaingit diff base.hash..HEADmatches no section glob / global ignoreIt also renders the page, so a
fork.yamlforkdiff rejects can't merge.Deploy.
pages.yml→forkdiff-pages.yml: runs the gate first, triggers on every push tomain(not justfork.yamledits), renders withgo run github.com/protolambda/forkdiff@v0.1.1, and deploys to https://layr-labs.github.io/mlx-swift-lm/.One-time admin step
GitHub Pages is not enabled on this repo (
has_pages: false) and the workflow token cannot enable it. A repo admin needs to set Settings → Pages → Source: GitHub Actions once. Until then the deploy workflow builds the page, keeps it as theforkdiff-pagerun artifact, and exits with a notice rather than failing.Verification
main:changed files 829 described 829, exit 0.Docs:
FORKDIFF.md(day-to-day, what to do after a rebase); README links the page.🤖 Generated with Claude Code