From fe045de97384a333be2e157dab86c40f14e8a3bd Mon Sep 17 00:00:00 2001 From: thxCode Date: Fri, 20 Nov 2026 19:17:59 +0800 Subject: [PATCH] docs(auto-sync): stage patch targets in scratch cwd for offline check - Stage MCP-fetched upstream files in the current scratch directory before git apply --check. - Refresh .auto-sync/digests.lock.json for the updated .auto-sync/instructions.md SHA-256 digest. Signed-off-by: thxCode --- .auto-sync/digests.lock.json | 2 +- .auto-sync/instructions.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.auto-sync/digests.lock.json b/.auto-sync/digests.lock.json index c7b689c..8e77536 100644 --- a/.auto-sync/digests.lock.json +++ b/.auto-sync/digests.lock.json @@ -10,7 +10,7 @@ { "path": ".auto-sync/instructions.md", "kind": "file", - "sha256": "f02787749558046be321f73c70a12e40103290d1824313cf35f728b030487555" + "sha256": "41be3b99a6fab8dd02c84cbb2aafb1367283abf380057ce2c955bf47b15a01de" } ] } diff --git a/.auto-sync/instructions.md b/.auto-sync/instructions.md index d7324aa..67123a3 100644 --- a/.auto-sync/instructions.md +++ b/.auto-sync/instructions.md @@ -107,7 +107,7 @@ Workspace and tool path rules: - Review every affected patch under writable patch directories (`pack/cuda/patches`, `pack/rocm/patches`, `pack/cann/patches/vllm`, `pack/cann/patches/vllm_ascend`, `pack/cann/patches/vllm_omni`, `pack/cann/patches/sglang`) against the exact selected upstream source revision using `git apply --check`: - For `"unchanged"` subscriptions whose component versions did not change, retain baseline patch entries without re-fetching upstream sources. - - For updated components in offline `bash`, fetch the exact target file(s) touched by each patch at the selected tag/commit via `mcp__github__get_file_contents`, stage them at their patch-relative paths under `$TMPDIR` in one `bash` call, and verify with `git apply --check "$CANDIDATE_DIR/"`. + - For updated components in offline `bash`, fetch the exact target file(s) touched by each patch at the selected tag/commit via `mcp__github__get_file_contents`, stage them at their patch-relative paths in the current working directory in one `bash` call, and verify with `git apply --check "$CANDIDATE_DIR/"`. - Assign each patch one disposition: `retain`, `adapt`, `remove`, or `add`. - When removing an obsolete patch (`remove`), delete the `.patch` file using the mediated `delete` tool and update Dockerfile references if needed; never leave an unreferenced or empty `.patch` file behind. - Patch `versions` in `.auto-sync/proposal.json` must be bare PEP 440 version strings (e.g. `0.33.0`, never `v0.33.0` or `vllm-0.33.0`).