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

Abierto Apto para principiantes
#1,001 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

@draarivpatel-ui ya está trabajando en esto.

Desde el 24/11/2026.

  • #1022 de @draarivpatel-ui — abierto

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
72/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
python

Línea de trabajo

Empieza en packages/sie_server/src/sie_server/adapters/_lora_source.py en _check_files; compara sus layouts permitidos con _is_cache_owned_file en el mismo módulo y la comprobación en packages/sie_server/src/sie_server/config/serving_artifacts.py. Reconstruye el fixture local del issue con la revisión de 40 caracteres y el nombre de blob de 64 caracteres, y luego llama a resolve_lora_source sobre el snapshot. Hecho significa que el blob de caché compartido se acepta mientras un objetivo no relacionado sigue lanzando el error de escape, con una prueba que cubre ambos casos.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Python
Estrellas
3.5k
Forks
328
Merge medio
17 h 8 min
PR fusionados (30 d)
108

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de superlinked/sie

Todos los issues de superlinked/sie

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.