feat: DGR-004-CHAIN - Execute chained DGR-004/005/003-emission with anchor
This commit is contained in:
30
packages/node/native/llama/PATCH-STACK.md
Normal file
30
packages/node/native/llama/PATCH-STACK.md
Normal file
@@ -0,0 +1,30 @@
|
||||
# Meshnet llama.cpp patch stack
|
||||
|
||||
This directory is the only project-owned fork boundary for llama.cpp. It is
|
||||
locked to `e920c523e3b8a0163fe498af5bf90df35ff51d25`; changing the pin requires
|
||||
updating the recorded tree/blob assumptions and reviewing every patch anew.
|
||||
|
||||
## Ordered series
|
||||
|
||||
1. `0001-cmake-reserve-meshnet-patch-stack-abi-marker.patch` adds only an
|
||||
interface-library marker used to prove the patched source was configured.
|
||||
It has no execution, transport, model-loading, or semantic effect.
|
||||
|
||||
Future patches may implement only the ADR-0020 local seams: range-aware tensor
|
||||
loading, endpoint ownership, architecture-defined intermediate boundaries, and
|
||||
layer-filtered KV/session mapping. Meshnet routing, Tracker, gRPC, relay,
|
||||
billing, authentication, and telemetry must remain outside this directory.
|
||||
|
||||
`scripts/llama_cpp_dependency.py` verifies the exact commit/tree and baseline
|
||||
blobs, validates every patch digest and context with `git apply --check`, then
|
||||
applies the series in `patches/series` order. It refuses a dirty source tree,
|
||||
wrong commit/tree/blob, changed patch digest, reordered series, or an existing
|
||||
destination/work directory.
|
||||
|
||||
## Current semantic boundary
|
||||
|
||||
The stock pinned build is **infrastructure evidence only**. Per DGR-017,
|
||||
GLM-5.2 can use a dense-MLA compatibility fallback at this point; a successful
|
||||
build or `llama-cli --version` does not show native DSA/IndexShare, GLM semantic
|
||||
acceptance, numerical parity, performance, or route certification. DGR-018 and
|
||||
DGR-019 own those checks. Dense Llama remains only a later structural fixture.
|
||||
17
packages/node/native/llama/THIRD_PARTY_NOTICES.md
Normal file
17
packages/node/native/llama/THIRD_PARTY_NOTICES.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# Third-party notices: llama.cpp
|
||||
|
||||
The reproducibility harness fetches source from
|
||||
[`ggml-org/llama.cpp`](https://github.com/ggml-org/llama.cpp) at exact commit
|
||||
`e920c523e3b8a0163fe498af5bf90df35ff51d25`.
|
||||
|
||||
- Upstream license: MIT. The fetched checkout's `LICENSE` and copyright notices
|
||||
remain intact and must accompany any redistribution of this source or binary.
|
||||
- Meshnet's one-patch CMake marker is an additive local change. It does not
|
||||
replace, relicense, or remove upstream notices.
|
||||
- No donor code is included. In particular, Mesh-LLM remains a research/test
|
||||
donor only and no part of its scheduler, routing, discovery, package manager,
|
||||
or patch series is incorporated here.
|
||||
|
||||
Release packaging must include the upstream MIT text from the exact materialized
|
||||
checkout plus this notice. `scripts/llama_cpp_dependency.py` refuses to build if
|
||||
the upstream `LICENSE` is absent.
|
||||
1
packages/node/native/llama/UPSTREAM_COMMIT
Normal file
1
packages/node/native/llama/UPSTREAM_COMMIT
Normal file
@@ -0,0 +1 @@
|
||||
e920c523e3b8a0163fe498af5bf90df35ff51d25
|
||||
40
packages/node/native/llama/UPSTREAM_LOCK.json
Normal file
40
packages/node/native/llama/UPSTREAM_LOCK.json
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"schema_version": 1,
|
||||
"upstream": "https://github.com/ggml-org/llama.cpp.git",
|
||||
"commit": "e920c523e3b8a0163fe498af5bf90df35ff51d25",
|
||||
"commit_tree": "6c91a11407a3a3fb160f5dac705f9c59718f54f1",
|
||||
"patched_tree": "4a37c06fac668834435b803caa59ba272bdace5c",
|
||||
"upstream_license": "MIT",
|
||||
"patch_series": [
|
||||
"0001-cmake-reserve-meshnet-patch-stack-abi-marker.patch"
|
||||
],
|
||||
"patch_scope": [
|
||||
"Reserved CMake ABI marker only; no execution or model semantics."
|
||||
],
|
||||
"build": {
|
||||
"generator": "Unix Makefiles",
|
||||
"cmake_minimum": "3.14",
|
||||
"cxx_standard": "17",
|
||||
"configure_flags": [
|
||||
"-DCMAKE_BUILD_TYPE=Release",
|
||||
"-DLLAMA_BUILD_TESTS=OFF",
|
||||
"-DLLAMA_BUILD_EXAMPLES=ON",
|
||||
"-DLLAMA_BUILD_SERVER=OFF",
|
||||
"-DLLAMA_BUILD_TOOLS=OFF",
|
||||
"-DLLAMA_BUILD_APP=OFF",
|
||||
"-DLLAMA_CURL=OFF"
|
||||
],
|
||||
"native_targets": ["llama-gguf-hash"],
|
||||
"smoke_binary": "bin/llama-gguf-hash",
|
||||
"smoke_args": ["--help"],
|
||||
"smoke_output_token": "usage"
|
||||
},
|
||||
"required_upstream_blobs": {
|
||||
"CMakeLists.txt": "81f23d7e70b7378511af5d01be680c03aebc2b15"
|
||||
},
|
||||
"patched_paths": [
|
||||
"CMakeLists.txt",
|
||||
"cmake/meshnet-patch-stack.cmake"
|
||||
],
|
||||
"stock_glm_limitations": "This pin may load GLM-5.2 through the dense-MLA compatibility fallback. It does not prove native DSA, IndexShare, MoE semantic correctness, numerical equivalence, performance, or route certification."
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
From d9992f62e852c8647a2ad302009b0339dc1cbf5b Mon Sep 17 00:00:00 2001
|
||||
From: DGR-004 <dgr-004@meshnet.invalid>
|
||||
Date: Tue, 14 Jul 2026 09:52:24 +0300
|
||||
Subject: [PATCH] cmake: reserve Meshnet patch-stack ABI marker
|
||||
|
||||
---
|
||||
CMakeLists.txt | 1 +
|
||||
cmake/meshnet-patch-stack.cmake | 7 +++++++
|
||||
2 files changed, 8 insertions(+)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 81f23d7e..a9afcffa 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -123,6 +123,7 @@ option(LLAMA_LLGUIDANCE "llama-common: include LLGuidance library for structured
|
||||
# Required for relocatable CMake package
|
||||
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/build-info.cmake)
|
||||
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/common.cmake)
|
||||
+include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/meshnet-patch-stack.cmake)
|
||||
|
||||
if (NOT DEFINED LLAMA_BUILD_NUMBER)
|
||||
set(LLAMA_BUILD_NUMBER ${BUILD_NUMBER})
|
||||
diff --git a/cmake/meshnet-patch-stack.cmake b/cmake/meshnet-patch-stack.cmake
|
||||
new file mode 100644
|
||||
index 00000000..910646b4
|
||||
--- /dev/null
|
||||
+++ b/cmake/meshnet-patch-stack.cmake
|
||||
@@ -0,0 +1,7 @@
|
||||
+# Reserved, local-only hook for the Meshnet-owned llama.cpp patch series.
|
||||
+# No execution, protocol, architecture, or model semantic changes are in DGR-004.
|
||||
+set(LLAMA_MESHNET_PATCH_STACK_VERSION "1" CACHE STRING
|
||||
+ "Meshnet patch stack ABI marker")
|
||||
+add_library(llama_meshnet_patch_stack INTERFACE)
|
||||
+target_compile_definitions(llama_meshnet_patch_stack INTERFACE
|
||||
+ LLAMA_MESHNET_PATCH_STACK_VERSION=${LLAMA_MESHNET_PATCH_STACK_VERSION})
|
||||
--
|
||||
2.54.0
|
||||
2
packages/node/native/llama/patches/SHA256SUMS
Normal file
2
packages/node/native/llama/patches/SHA256SUMS
Normal file
@@ -0,0 +1,2 @@
|
||||
# SHA-256 digests for the ordered patch series. Do not reorder this file.
|
||||
1454216c019c1cb7f78d1d836fe4054164fff1d498391013bcaf13cc2d328c75 0001-cmake-reserve-meshnet-patch-stack-abi-marker.patch
|
||||
1
packages/node/native/llama/patches/series
Normal file
1
packages/node/native/llama/patches/series
Normal file
@@ -0,0 +1 @@
|
||||
0001-cmake-reserve-meshnet-patch-stack-abi-marker.patch
|
||||
Reference in New Issue
Block a user