microsoft / microsoft/amplifier
False circular dependency warnings for foundation/python-dev/shadow/sessions
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 3.1k
- Forks
- 261
- Avg merge
- 3h 28m
- Merged PRs (30d)
- 13
Description
Summary
Bundle loading emits false "Circular dependency detected" warnings for legitimate transitive dependencies within the foundation bundle hierarchy.
Reproduction
Using any bundle that includes amplifier-dev.yaml (which includes foundation):
includes:
- bundle: git+https://github.com/microsoft/amplifier-foundation@main#subdirectory=bundles/amplifier-dev.yaml
Warnings Observed
Include failed (skipping): git+https://github.com/microsoft/amplifier-foundation@main - Circular dependency detected
Include failed (skipping): file:///.../behaviors/sessions.yaml - Circular dependency detected
Include failed (skipping): git+https://github.com/microsoft/amplifier-bundle-python-dev@main - Circular dependency detected
Include failed (skipping): git+https://github.com/microsoft/amplifier-bundle-shadow@main - Circular dependency detected
Expected Behavior
These are not circular dependencies - they are legitimate transitive dependencies:
amplifier-dev.yaml
└── foundation
├── python-dev
│ └── lsp-python
├── shadow
└── behaviors/sessions.yaml
└── behaviors/logging
The same bundle appearing in multiple paths of the dependency tree (diamond dependency) should be deduplicated, not flagged as circular.
Actual Behavior
The bundle resolver incorrectly flags these as "circular" and skips them with warnings. Despite the warnings, the bundle still works (the dependencies were likely already loaded).
Impact
- Confusing/alarming warnings on every session start
- May mask actual circular dependency issues
- User perception that something is broken
Suggested Fix
The circular dependency detection should track the actual dependency path, not just whether a bundle URL has been seen before. A bundle appearing multiple times via different paths is a diamond dependency (deduplicate silently), not a circular dependency (error).
Environment
- amplifier version: 2026.01.20-fafab09
- OS: WSL2 Ubuntu
Related
- Issue #180 (subdirectory validation bug) - separate issue
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the bundle resolver's circular-dependency check and reproduce the warnings with amplifier-dev.yaml, including foundation, python-dev, shadow, and behaviors/sessions.yaml. Trace dependency paths and confirm that repeated bundles through different paths are diamond dependencies. Done means legitimate transitive dependencies are deduplicated silently while actual cycles still produce warnings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100