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

+1 -1
View File
@@ -50,7 +50,7 @@ d5104362705e687271807f499481db6033d85988e13fac12f36e370c6fce0551 vendor/shim/ll
5d556a22069133f7931850a13094d7390ba091051f0dc98cb1cfca824142a705 vendor/shim/llama_shim.cpp
628efd8a88524082c4736d3bc52790aa459b40728f213246c54550011f2754a2 vendor/shim/log.h
1c343ff2dbf801873acc2ee67c0e874137fb36df31421f36fc5cb6812463aae4 vendor/shim/ryml_impl.cpp
11bdda7f02eede804f1b4c56f8426def63d37a83e6484806567707b207b60dd6 vendor/UPSTREAM
e378c8ae16e85f2063943132cf4c35aa255734704b54786403ad413a3b575877 vendor/UPSTREAM
45e384d3d52c73cba3a64d6e6c25d47cd738cd8a55c30629e3201046eda62947 vendor/yyjson/LICENSE
d2d58ef0a3b2267862dc363832c4f3185fd375aea933d5d3419d1a940d6ece2e vendor/yyjson/yyjson.c
ef803cda5c06b8962face6dfa39c3284b3bcf3e73f4d7317664690cc779679ca vendor/yyjson/yyjson.h
+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
----------------------------