LoRA source resolver rejects shared cache blobs accepted by serving-artifact validation

Đang mở Phù hợp với người mới
#1,001 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@draarivpatel-ui đang làm issue này rồi.

Từ ngày 24/11/2026.

  • #1022 của @draarivpatel-ui — đang mở

Đá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 raises ValueError: LoRA artifact escapes its declared directory or repository blobs.
  • _is_cache_owned_file(shared_blob, repository) returns True for 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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của superlinked/sie

Tất cả issue của superlinked/sie

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.