Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[Bug]: A clone's bin/fw called by full path from inside a consumer project runs the project's vendored copy instead (upgrade reports 'Bare-from-consumer')

Aperta
#105 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
bash, cli, shell

Direzione di ricerca

Start with _fw_reexec_authority in bin/fw:414 and trace how it chooses the framework copy when invoked by an explicit path from a consumer directory. Then inspect the routing into lib/upgrade.sh and compare the three reproduction commands in the issue. Done means the clone's bin/fw upgrade ... --dry-run uses the clone, or reports clearly that it routed to the project's copy; verify the behavior against the listed cases.

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

Descrizione

area:testing bug severity:medium status:in-progress triaged
Bug Description

With a full clone of upstream v1.8.11 in $CLONE and a vendored consumer in $PROJECT:

current directory command result
$PROJECT $CLONE/bin/fw upgrade $PROJECT --dry-run Bare-from-consumer detected — auto-cloning upstream
$CLONE bin/fw upgrade $PROJECT --dry-run Framework: $CLONE (v1.8.11), full preview
$PROJECT env FRAMEWORK_ROOT=$CLONE PROJECT_ROOT=$PROJECT $CLONE/bin/fw upgrade $PROJECT --dry-run Framework: $CLONE (v1.8.11), full preview

The clone's bin/fw, called explicitly, re-routes to $PROJECT/.agentic-framework (_fw_reexec_authority, bin/fw:414), then lib/upgrade.sh sees source and target as the same and switches to the bare-call path. FW_ROUTED_FROM plays no part (same result with env -u FW_ROUTED_FROM). The message speaks of a bare call although the call named another framework.

Steps to Reproduce
  1. git clone https://github.com/DimitriGeelen/agentic-engineering-framework.git "$CLONE" && git -C "$CLONE" checkout v1.8.11
  2. cd "$PROJECT" && "$CLONE/bin/fw" upgrade "$PROJECT" --dry-run
  3. Compare with cd "$CLONE" && bin/fw upgrade "$PROJECT" --dry-run, and with the env FRAMEWORK_ROOT=... PROJECT_ROOT=... form from $PROJECT.
Expected Behavior

A bin/fw invoked by a path that is not the project's copy runs itself, at least for upgrade, whose whole purpose is to apply another framework to the project. Failing that, a clear message: "call re-routed to the project's copy; run from the clone's directory or set FRAMEWORK_ROOT".

Actual Behavior

The operator believes one framework version is running; another runs, and the message ("Bare-from-consumer detected") points the wrong way. Remedy 3 of the upgrade error message contains the cd, but nothing says it is required.

fw doctor output

AI Agent

Claude Code

Operating System

Linux

Additional Context

1.8.11 (e42aa41bf), vendored consumer, Linux (Ubuntu 20.04), non-root account, Claude Code. Also found independently by another consumer project on the same host; its reproduction was re-run here on 1.8.11. The env FRAMEWORK_ROOT=... PROJECT_ROOT=... form is how this project upgraded from 1.8.6 to 1.8.11 on 2026-10-18.

Lingua principale
Shell
Stelle
16
Fork
6
Merge medio
6h 24m
PR unite (30g)
5

Preparare l'ambiente

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 DimitriGeelen/agentic-engineering-framework

Tutte le issue di DimitriGeelen/agentic-engineering-framework

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.