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

Aperta Adatta ai principianti
#1,001 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@draarivpatel-ui ci sta già lavorando.

Dal 24/11/2026.

  • #1022 di @draarivpatel-ui — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python

Direzione di ricerca

Inizia in packages/sie_server/src/sie_server/adapters/_lora_source.py da _check_files; confronta i suoi layout consentiti con _is_cache_owned_file nello stesso modulo e il controllo in packages/sie_server/src/sie_server/config/serving_artifacts.py. Ricostruisci il fixture locale dell'issue con la revisione da 40 caratteri e il nome del blob da 64 caratteri, poi chiama resolve_lora_source sullo snapshot. Fatto significa che il blob della cache condivisa viene accettato mentre un target non correlato continua a sollevare l'errore di escape, con un test che copre entrambi i casi.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Python
Stelle
3.5k
Fork
328
Merge medio
17h 8m
PR unite (30g)
108

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di superlinked/sie

Tutte le issue di superlinked/sie

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.