From b98c2eb13e009f8e4f6532e5c0f692a8e3cb1a72 Mon Sep 17 00:00:00 2001 From: fl0l0u Date: Sun, 15 Nov 2026 17:24:57 +0000 Subject: [PATCH] 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. --- vendor/SHA256SUMS | 2 +- vendor/UPSTREAM | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/vendor/SHA256SUMS b/vendor/SHA256SUMS index efda0cbe..6f57b8ca 100644 --- a/vendor/SHA256SUMS +++ b/vendor/SHA256SUMS @@ -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 diff --git a/vendor/UPSTREAM b/vendor/UPSTREAM index 68a26cb2..3f9b0184 100644 --- a/vendor/UPSTREAM +++ b/vendor/UPSTREAM @@ -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 ----------------------------