Check the operations a team skill names against the serving build on import

Abierto
#1,769 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
python
Área
ai, backend

Línea de trabajo

Read #1143 and inspect server/operations/registry.py, server/operations/base.py, and tests/unit/test_agent_instructions.py to understand the registry and existing skill checks. First measure how reliably free-form skill text identifies operation and MCP tool names using the repository's own skills. Done means the acceptance fixtures report missing operations, pass when they exist, flag adopted skills after an upgrade, and confirm import executes no skill resource or model call.

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

Descripción

enhancement
Company

ClickHouse

Component

Not sure

Use case

#1143 lets teams import, publish and adopt skills. A skill tells an agent which Loom operations to call, by name. A skill written against another build, or adopted before an upgrade that removed an operation, still reads as valid instructions, and the agent finds out at the call.

The issue's own rules bound what a check may do: "previewing or importing a skill executes nothing", and a lossy import is rejected and not silently reduced.

Describe the solution you'd like

One text check on import and publish. This is a proposal; nothing is implemented or measured.

  • Loom compares every Loom operation the skill names with the serving build's operation registry and records that build on the artifact revision.
  • An unknown operation is reported by name.
  • An adopted skill whose named operations are missing on the current build is shown as needing an update.
  • The check reads text and executes nothing.
  • It reports only. It refuses no import until its false matches and misses are measured.

What Loom has that this builds on:

  • OPERATIONS_BY_NAME in server/operations/registry.py lists every operation a build serves.
  • Each operation also has an MCP tool name (mcp_tool_name in server/operations/base.py), so a skill that names the tool and not the operation is checked against the same registry.
  • tests/unit/test_agent_instructions.py already checks that every path, make target and module the repository's own skills name exists. This is the same check for operations, run on a team's skill.

Acceptance fixture:

  1. Importing a skill that names an operation the build lacks reports that name.
  2. The same skill passes on a build that has the operation.
  3. After an upgrade that removes an operation, the adopted skill shows as needing an update.
  4. The import runs no skill resource and makes no model call.

Evidence still needed before rollout:

  • How reliably operation names can be read from free-form skill text. Measure false matches and misses on the repository's own skills before the check refuses an import.
  • Which build an artifact records while two builds serve side by side during a rolling upgrade.
Describe alternatives you've considered
  • A declared operation list in the skill's frontmatter. It is exact, and the author has to keep it in step with the text. The two combine: a declared list is checked exactly and free text is reported.
  • Check when the agent host activates the skill. Loom holds no evidence of what a host installed, as #1143 says.
  • Run the skill in a sandbox. #1143 says import executes nothing.
Where the need comes from

An AI tool suggested this feature

Additional context

Found by source review; no skill was imported or published. The component is the skill artifact store #1143 proposes, which is not in the list.

Related: Proposed as part of #1143. Roadmap: #1232.

Lenguaje dominante
Python
Estrellas
221
Forks
35
Merge medio
14 h 21 min
PR fusionados (30 d)
873

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

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 ClickHouse/loom

Todos los issues de ClickHouse/loom

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.