You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prepare a deliberate reconciliation of the downstream ht feature set onto the current clean upstream mirror. This issue is the planning/audit gate; it does not authorize rewriting the default branch.
Immutable baseline
Ref
Commit
Meaning
master / upstream/master
f95de9776b5b90dd993f36d2bd66a3eee21c887f
Clean upstream mirror after the 2026-07-28 sync
ht / origin/ht
798cf6cbe56440132df23eb2318f587b16e3c00e
Current downstream tip
ht-b10156-798cf6c
798cf6cbe56440132df23eb2318f587b16e3c00e
Published immutable rollback/checkpoint tag
merge base
c299a92c38b6de6a1139617652b66081828648db (b9824)
Last common upstream commit
Current divergence: 335 master-only commits and 38 ht-only commits.
Open issue / PR disposition before cutting the candidate
There are five open issues and five open draft PRs as of this audit:
This preparation issue supersedes its understated one-file scope. Keep Rebase conflict: ht on master (2026-06-28) #147 linked until the reconciliation ships, then close it with the final candidate/rollback references.
Treat as preserved scratch/archeology, not reconciliation input, unless separately reviewed and intentionally selected.
All five PRs currently target the pre-reconciliation ht. Before swapping ht, each must be merged, rebased/retargeted, or explicitly closed with a preservation reference.
Fresh conflict forecast
Measured locally with git merge-tree --write-tree --name-only master ht:
880 paths changed upstream since the merge base.
781 paths changed on ht since the merge base.
264 paths were touched on both sides.
Git predicts 200 conflicted paths.
172 conflicts are under tools/ui/.
28 conflicts are outside tools/ui/, concentrated in:
The tools/ui bulk must be classified against current fork policy, not resolved mechanically: this repo ships the prebuilt upstream UI bundle and retains only the embed/PWA glue needed by llama-server; product-facing SvelteKit/Tauri code belongs in heierchat and must not be reintroduced here.
Required method and safety rules
Lessons from #38 and the #147 triage remain binding:
Build a fresh reconciliation branch from the pinned master; do not replay a naive long rebase and accept whatever compiles.
Disable rerere for the operation. Historical cached resolutions have silently dropped HT code.
Reconstruct and review the net downstream feature set by subsystem.
Keep master pristine; all work belongs on a feature/integration branch.
Do not force-push ht until the candidate is reviewed and the maintainer explicitly approves the history rewrite.
Use --force-with-lease, pinned to the audited 798cf6cbe remote tip, if approval is given.
Retain ht-b10156-798cf6c as the rollback anchor.
Feature-preservation audit
Use README.md's HT Fork Changes inventory as the source of truth and prove preservation or intentional retirement for each subsystem:
TurboQuant types, CPU paths, fused CUDA kernels, D=512 FA paths, CLI type exposure, and tests
DFlash architecture/speculative plumbing, kernels, tests, and bench harness
Router/heierchat integration, fit byte plan, per-device eviction, reload/alias behavior, proxy hardening, and checkpoint cap
Embedding/image-input shims, Gemini compatibility, steering hints, LoRA discovery/conversion, and LCO/MLA conversion support
termd and its isolation/network policy
Prebuilt UI download/embed/PWA behavior without restoring out-of-tree product UI
HT CI triggers, runner retargeting, release behavior, branding, and contribution policy
Documentation/help output for all surviving downstream flags and cache types
For any downstream delta now present upstream, retire the duplicate intentionally and record the upstream commit/PR instead of preserving two implementations.
Validation gates
No waivers and no identifier-count-only sign-off:
C++/ggml/server configure and build per docs/build.md; at minimum build llama-server and the affected test targets
Run the relevant CTest/server suites, including router/fit, chat compatibility, responses, architecture, quantization, and backend-op coverage
CUDA compile plus TurboQuant/DFlash correctness on suitable hardware
cd tools/termd && cargo check && cargo clippy
Build with default LLAMA_USE_PREBUILT_UI=ON; verify the downloaded UI embeds and serves
Verify llama-server --help exposes all retained HT flags/types
Run feature-preservation diff/audit against ht-b10156-798cf6c
All required GitHub checks green
Schedule a fleet canary/runtime smoke for router model load/unload/reload, chat/tool conversion, embeddings/image input, DFlash, and rollback
Record exact candidate commit, test artifacts, canary image/build info, and rollback command before branch replacement
Proposed execution sequence
Resolve the open-issue/draft-PR decisions above.
Create a non-default integration branch from f95de9776b.
Reconstruct HT changes by subsystem, with focused commits and per-subsystem review.
Resolve the UI bulk according to the prebuilt-bundle boundary.
Run preservation and validation gates; fix failures without waivers.
Push the candidate as a non-default branch and review its full diff against master.
Canary and document rollback.
Obtain explicit maintainer approval for the destructive/default-branch step.
This issue closes only when the reconciled ht is based on the pinned-or-newly-repinned clean master, every README inventory item is preserved or intentionally retired with evidence, all gates pass without waivers, open work has been carried forward deliberately, and the rollback tag remains reachable.
Objective
Prepare a deliberate reconciliation of the downstream
htfeature set onto the current clean upstream mirror. This issue is the planning/audit gate; it does not authorize rewriting the default branch.Immutable baseline
master/upstream/masterf95de9776b5b90dd993f36d2bd66a3eee21c887fht/origin/ht798cf6cbe56440132df23eb2318f587b16e3c00eht-b10156-798cf6c798cf6cbe56440132df23eb2318f587b16e3c00ec299a92c38b6de6a1139617652b66081828648db(b9824)Current divergence: 335 master-only commits and 38 ht-only commits.
Open issue / PR disposition before cutting the candidate
There are five open issues and five open draft PRs as of this audit:
htbefore reconstruction or is rebased/cherry-picked onto the reconciliation candidate.htmoves.All five PRs currently target the pre-reconciliation
ht. Before swappinght, each must be merged, rebased/retargeted, or explicitly closed with a preservation reference.Fresh conflict forecast
Measured locally with
git merge-tree --write-tree --name-only master ht:htsince the merge base.tools/ui/.tools/ui/, concentrated in:.github/workflows/build-self-hosted.yml,AGENTS.md,CONTRIBUTING.mdcommon/{common.cpp,common.h,speculative.cpp},include/llama.hggml/include/ggml.h,ggml/src/ggml-cpu/arch-fallback.h,ggml/src/ggml-cuda/{fattn.cu,getrows.cu,ggml-cuda.cu}src/llama-{arch,context}*,src/models/dflash.cpptests/{CMakeLists.txt,test-backend-ops.cpp,test-llama-archs.cpp}tools/server/{server-context*,server-http.cpp,server-models.cpp,server-task.h,server.cpp}andtest_compat_oai_responses.pyscripts/ui-assets.cmake,tools/ui/embed.cppThe
tools/uibulk must be classified against current fork policy, not resolved mechanically: this repo ships the prebuilt upstream UI bundle and retains only the embed/PWA glue needed byllama-server; product-facing SvelteKit/Tauri code belongs inheierchatand must not be reintroduced here.Required method and safety rules
Lessons from #38 and the #147 triage remain binding:
master; do not replay a naive long rebase and accept whatever compiles.rererefor the operation. Historical cached resolutions have silently dropped HT code.masterpristine; all work belongs on a feature/integration branch.htuntil the candidate is reviewed and the maintainer explicitly approves the history rewrite.--force-with-lease, pinned to the audited798cf6cberemote tip, if approval is given.ht-b10156-798cf6cas the rollback anchor.Feature-preservation audit
Use README.md's HT Fork Changes inventory as the source of truth and prove preservation or intentional retirement for each subsystem:
termdand its isolation/network policyFor any downstream delta now present upstream, retire the duplicate intentionally and record the upstream commit/PR instead of preserving two implementations.
Validation gates
No waivers and no identifier-count-only sign-off:
docs/build.md; at minimum buildllama-serverand the affected test targetscd tools/termd && cargo check && cargo clippyLLAMA_USE_PREBUILT_UI=ON; verify the downloaded UI embeds and servesllama-server --helpexposes all retained HT flags/typesht-b10156-798cf6cProposed execution sequence
f95de9776b.master.htusing a lease pinned to798cf6cbe.Completion criteria
This issue closes only when the reconciled
htis based on the pinned-or-newly-repinned cleanmaster, every README inventory item is preserved or intentionally retired with evidence, all gates pass without waivers, open work has been carried forward deliberately, and the rollback tag remains reachable.