[Bug]: `fw fabric register` prints "REFUSED" but writes the card and exits 0
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 72/100
Línea de trabajo
Empieza en agents/fabric/lib/register.sh, alrededor de las líneas 341–354, y sigue cómo afecta una regla de subsistema ausente a la escritura de la tarjeta, al mensaje impreso y al estado de salida. Reprodúcelo con un proyecto recién creado mediante fw init y una ruta no cubierta, tal como se describe. Se considera terminado cuando el comportamiento es coherente: o bien se rechaza el registro sin escribir una tarjeta y se sale con un estado distinto de cero, o bien se completa correctamente con una advertencia que no diga «REFUSED».
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Bug Description
When no subsystem rule matches the path, agents/fabric/lib/register.sh writes the card anyway (mv -f "$tmp_card" "$card_file", line 341), prints Card created: ... with Subsystem: unknown, then prints REFUSED: <path>: no subsystem rule matches — add a paths: pattern to .fabric/subsystems.yaml (line 352), and returns 0 (line 354).
So the output says the registration was refused while it succeeded. An agent or a script that trusts the exit code sees success; one that reads the message sees a refusal, and may register again after fixing subsystems.yaml, which then answers "Card already exists" and leaves subsystem: unknown in place.
Steps to Reproduce
- In a fresh
fw initproject, make sure no subsystem rule covers the file (e.g. remove.fabric/subsystems.yaml). touch notes.txt && fw fabric register notes.txt; echo "exit=$?"- Output:
Card created: .fabric/components/notes.yaml,Subsystem: unknown,REFUSED: notes.txt: no subsystem rule matches ...,exit=0; the card is on disk.
Expected Behavior
Either the registration is refused (no card written, non-zero exit), or it succeeds with a warning that does not say "REFUSED", e.g. WARN: subsystem unknown — add a paths: pattern to .fabric/subsystems.yaml.
Actual Behavior
"Card created" and "REFUSED" in the same output, exit code 0, card written with subsystem: unknown.
fw doctor output
AI Agent
Claude Code
Operating System
Linux
Additional Context
Seen on 1.8.14 in a real project, reproduced on 1.8.15 in a throwaway container (fresh fw init project, non-root, no network). register.sh is unchanged on bleeding-edge (0c3b8b6c3).
- Lenguaje dominante
- Shell
- Estrellas
- 16
- Forks
- 6
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de DimitriGeelen/agentic-engineering-framework
-
area:context bug severity:medium status:received triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
DimitriGeelen/agentic-engineering-framework#113 · 2 comentarios ·
-
area:watchtower bug severity:medium status:received triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
DimitriGeelen/agentic-engineering-framework#110 · 2 comentarios ·
-
area:fabric bug severity:medium status:received triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
DimitriGeelen/agentic-engineering-framework#109 · 2 comentarios ·
-
area:tasks bug severity:high status:received triaged
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
DimitriGeelen/agentic-engineering-framework#107 · 2 comentarios ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
Todos los issues de DimitriGeelen/agentic-engineering-framework
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
txn2/mcp-data-platform#2493 ·
Los mantenedores suelen responder en 1 día
-
Shell framework build fails at "copy the shader libraries": the iOS shader libraries are now one file b-<chain>.imgPosiblemente ocupada @xiaofeng-han la tomó hoy. Abiertobuild ios
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
clawsweeper:fix-shape-clear clawsweeper:needs-maintainer-review clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:other issue-rating: 🦞 diamond lobster P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
openclaw/crabbox#3058 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
needs-triage S3: minor
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
manaflow-ai/cmux#36796 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
YunoHost-Apps/snappymail_ynh#205 ·