vendor: the shims that hold lifted code say so in the record

The five files under vendor/shim/ are hashed by the manifest and
tamper-visible, but LIFTED FILES named only one of them
(ryml_impl.cpp, beside the rapidyaml entry). The other four carry
upstream's shape or text -- common.h transcribes llama.cpp's string
helpers unchanged, MIT, at the recorded commit; ggml.h, llama.h and
log.h declare the macros, types and log surface the byte-for-byte lifts
reach for -- and "the manifest hashes it" is tamper detection, not
provenance. A refresh could meet those files with no note of what they
mirror.

They are recorded now, beside the lifts they exist for, with what each
is, what it mirrors, and why it exists rather than the upstream file it
stands in for. The manifest re-hashes with the record, in this commit.
This commit is contained in:
fl0l0u committed 2026-11-15 20:38:10 +00:00
1 parent 5736dd11c3
commit b98c2eb13e
2 files changed
+20 -1

No files matched your search

+19
View File
@@ -253,6 +253,25 @@ vendor/shim/ryml_impl.cpp ours: defines RYML_SINGLE_HDR_DEFIN
LOCAL CHANGES: none.
vendor/shim/common.h ours -- NOT a lift -- but MIT-derived all the same:
vendor/shim/ggml.h common.h transcribes, unchanged, the string helpers
vendor/shim/llama.h the lifted chat and PEG-parser sources need from
vendor/shim/log.h llama.cpp's common/common.{h,cpp} (06938ac12); the
vendor/shim/llama_shim.cpp other four declare the small macros, types and log
surface those lifts reach for outside themselves.
Each file's own header says why the shim exists: the
lifts compile byte-for-byte without the CLI
argument machinery, the engine being replaced, or
upstream's logging subsystem. Recorded beside the
lifts because upstream's code or upstream's shape
lives in them -- this file is where lifted
provenance lives, and the manifest under which
vendor_sums hashes them is the tamper check.
LOCAL CHANGES: n/a -- maintained in place. A vendor refresh re-derives what the lifts expect
of these headers (their comments enumerate the needs); nothing is re-copied.
REWRITTEN INTO core/ INSTEAD
----------------------------