LoRA source resolver rejects shared cache blobs accepted by serving-artifact validation
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 72/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- python
- Lĩnh vực
- backend, machine-learning
Hướng nghiên cứu
Bắt đầu trong packages/sie_server/src/sie_server/adapters/_lora_source.py tại _check_files; so sánh các layout được phép của nó với _is_cache_owned_file trong cùng module và bước kiểm tra trong packages/sie_server/src/sie_server/config/serving_artifacts.py. Dựng lại fixture cục bộ của issue với revision 40 ký tự và tên blob 64 ký tự, sau đó gọi resolve_lora_source trên snapshot. Hoàn tất nghĩa là blob cache dùng chung được chấp nhận trong khi một target không liên quan vẫn ném lỗi escape, với một test bao phủ cả hai trường hợp.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hullo folks,
I’m doing some research for Tessl Code Review and ran it against your repo. It flagged a potential issue, and I figured it made sense to share it with you:
What happens
A LoRA snapshot whose weight file resolves into the cache-level shared blob store is rejected as an escaping artifact. The same layout is explicitly accepted by the serving-artifact ownership check.
This surfaced during a retrospective review of #833. I rechecked the resolver at 1518299.
Reproduction
Create this small local fixture, using a 40-character hex revision and a 64-character hex blob name:
cache/
models--test--adapter/
snapshots/<revision>/
adapter_config.json
adapter_model.safetensors -> ../../blobs/weights
blobs/weights -> ../../blobs/bb/<64 b characters>
blobs/bb/<64 b characters>
Then call resolve_lora_source(str(snapshot)).
Observed with the unchanged resolver and temporary files:
- A regular weight file in the repository's own
blobs/directory is accepted. - Replacing that file with a link into the shared
cache/blobs/bb/<hash>store raisesValueError: LoRA artifact escapes its declared directory or repository blobs. _is_cache_owned_file(shared_blob, repository)returnsTruefor that same target.- An unrelated target outside both permitted layouts is correctly rejected.
Expected behavior
The LoRA resolver should accept the cache-owned shared-blob layout while continuing to reject unrelated targets. Otherwise, an adapter already present in a layout supported elsewhere in SIE cannot pass load-time resolution.
The difference appears to be in _check_files: it permits only the snapshot and repository-local blobs. The serving-artifact check also recognizes the shared hash layout.
Validation was a local resolver test on macOS with Python 3.14.2, using the checkout's actual modules while bypassing unrelated package initialization. It did not download weights or run model inference.
Full transparency: I work at Tessl, and we've spotted that using Tessl Code Review - using repository-level context and specific review lenses that improve over time through feedback. That’s how this finding surfaced.
We’re just getting started and want to offer the tool free to open-source projects. If this is useful, happy to give you access.
Bap
- Ngôn ngữ chính
- Python
- Star
- 3.5k
- Fork
- 328
- Merge trung bình
- 17 giờ 8 phút
- Pull request đã merge (30 ngày)
- 108
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của superlinked/sie
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
superlinked/sie#1033 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
superlinked/sie#1013 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
superlinked/sie#969 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
superlinked/sie#892 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
superlinked/sie#851 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của superlinked/sie
Issue tương tự
-
todo
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
tonybaloney/CSnakes#864 ·
-
infra
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
libre-embedded/svgen#72 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Genesis-Embodied-AI/genesis-world#3950 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
accessibility
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày